chatlab-cli 0.35.0 → 0.36.1

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 (218) hide show
  1. package/README.md +7 -7
  2. package/dist/{chat-command-24RYGJAS.mjs → chat-command-XPJ43KSW.mjs} +11 -11
  3. package/dist/chat-command-XPJ43KSW.mjs.map +1 -0
  4. package/dist/{chunk-7IGBPZMI.mjs → chunk-2JPFBIAG.mjs} +268 -76
  5. package/dist/chunk-2JPFBIAG.mjs.map +1 -0
  6. package/dist/{chunk-GQMCDWZQ.mjs → chunk-5MJO4AJB.mjs} +2 -2
  7. package/dist/{chunk-QKEARRFH.mjs → chunk-67HNPYZJ.mjs} +3 -3
  8. package/dist/{chunk-U36TQMAF.mjs → chunk-6QP47LID.mjs} +2 -2
  9. package/dist/{chunk-4GWWKHWA.mjs → chunk-FJOGBUXU.mjs} +892 -6990
  10. package/dist/chunk-FJOGBUXU.mjs.map +1 -0
  11. package/dist/{chunk-KIMJXKZO.mjs → chunk-JOVL7OTW.mjs} +2 -2
  12. package/dist/{chunk-ZBPPLXM4.mjs → chunk-L7TIIVAY.mjs} +63 -63
  13. package/dist/chunk-L7TIIVAY.mjs.map +1 -0
  14. package/dist/{chunk-DC7IUDNV.mjs → chunk-NFTCEJBJ.mjs} +27 -9
  15. package/dist/chunk-NFTCEJBJ.mjs.map +1 -0
  16. package/dist/{chunk-KXDJ7N6N.mjs → chunk-NQHZPSW2.mjs} +2 -2
  17. package/dist/chunk-Q3NEL2KK.mjs +19126 -0
  18. package/dist/chunk-Q3NEL2KK.mjs.map +1 -0
  19. package/dist/{chunk-DEFEU567.mjs → chunk-R73XMAB2.mjs} +13 -11
  20. package/dist/chunk-R73XMAB2.mjs.map +1 -0
  21. package/dist/{chunk-BRZ6YIBR.mjs → chunk-X2QBH24F.mjs} +8 -3
  22. package/dist/chunk-X2QBH24F.mjs.map +1 -0
  23. package/dist/chunk-YKMQLAVP.mjs +25 -0
  24. package/dist/chunk-YKMQLAVP.mjs.map +1 -0
  25. package/dist/cli.mjs +10 -10
  26. package/dist/contacts-worker.mjs +2 -2
  27. package/dist/global-insight-worker.mjs +136 -4
  28. package/dist/global-insight-worker.mjs.map +1 -1
  29. package/dist/{http-3K4YMWDE.mjs → http-5RVY5J5U.mjs} +13 -13
  30. package/dist/{import-D4LV565A.mjs → import-ILTWVHKU.mjs} +8 -8
  31. package/dist/index.mjs +13 -13
  32. package/dist/{mcp-KL22FKQ2.mjs → mcp-Y2YXOFB4.mjs} +9 -9
  33. package/dist/people-relationships-worker.mjs +2 -2
  34. package/dist/semantic-index-worker.mjs +1 -1
  35. package/dist/{service-KZTHBDQ5.mjs → service-ZAHXRSFD.mjs} +6 -6
  36. package/dist/service-ZAHXRSFD.mjs.map +1 -0
  37. package/dist/{src-COIB6Z4P.mjs → src-OV5ZNE3Z.mjs} +124 -98
  38. package/dist/{stream-import-FSXCFG4M.mjs → stream-import-XOUM3Z5W.mjs} +8 -8
  39. package/dist/{undici-MU5I3L6Q.mjs → undici-UGXDRJLV.mjs} +193 -193
  40. package/dist/undici-UGXDRJLV.mjs.map +1 -0
  41. package/dist/{update-checker-3N7HQEP2.mjs → update-checker-UL2FBLXH.mjs} +3 -5
  42. package/dist/{update-checker-3N7HQEP2.mjs.map → update-checker-UL2FBLXH.mjs.map} +1 -1
  43. package/dist/{worker-runtime-DPS2LURI.mjs → worker-runtime-JNGURHDM.mjs} +6 -6
  44. package/dist-cli-web/assets/AISettingsTab-vvjijrc5.js +1 -0
  45. package/dist-cli-web/assets/{AboutTab-DMPziKjj.js → AboutTab-CxI8zJNz.js} +1 -1
  46. package/dist-cli-web/assets/ActionToolsPanel.vue_vue_type_script_setup_true_lang-w0hHEodr.js +110 -0
  47. package/dist-cli-web/assets/Alert-_MYcI_E2.js +1 -0
  48. package/dist-cli-web/assets/ApiSettingsTab-CK7U6dVA.js +2 -0
  49. package/dist-cli-web/assets/BatchManageTab-1WnEqqpB.js +1 -0
  50. package/dist-cli-web/assets/{BufferResource-BXSJADxx.js → BufferResource-i64DlwQT.js} +1 -1
  51. package/dist-cli-web/assets/{CanvasRenderer-Cq--8UQ_.js → CanvasRenderer-B76mEt9A.js} +1 -1
  52. package/dist-cli-web/assets/ChatRecordDrawer-Bp6OSCrz.js +1 -0
  53. package/dist-cli-web/assets/ChatRecordWorkspace-CyfPIlIy.js +11 -0
  54. package/dist-cli-web/assets/ChatRecordWorkspace-D_oJMtqh.css +1 -0
  55. package/dist-cli-web/assets/Checkbox-Ci7IeRw1.js +1 -0
  56. package/dist-cli-web/assets/DataDirCleanupNotice-Dh63pOLt.js +1 -0
  57. package/dist-cli-web/assets/DatePicker.vue_vue_type_script_setup_true_lang-DqNBNa1D.js +1 -0
  58. package/dist-cli-web/assets/DebugToolsPanel-CbNsD9co.js +1 -0
  59. package/dist-cli-web/assets/EChart.vue_vue_type_script_setup_true_lang-YeqmodwE.js +1 -0
  60. package/dist-cli-web/assets/EChartBar.vue_vue_type_script_setup_true_lang-C3pZmq0v.js +1 -0
  61. package/dist-cli-web/assets/EChartLine.vue_vue_type_script_setup_true_lang-Co6olfwv.js +1 -0
  62. package/dist-cli-web/assets/{EChartWordcloud-KV0MdsDE.js → EChartWordcloud-rDusZwSq.js} +1 -1
  63. package/dist-cli-web/assets/{Filter-DVaqcFmI.js → Filter-yxkeHO78.js} +1 -1
  64. package/dist-cli-web/assets/GlobalTaskBar-BlZ-fFiq.js +1 -0
  65. package/dist-cli-web/assets/GroupRelationshipGalaxyView-BXQBX0zJ.js +1 -0
  66. package/dist-cli-web/assets/Label-CFAZFBQX.js +1 -0
  67. package/dist-cli-web/assets/LoadingState.vue_vue_type_script_setup_true_lang-CwgpqtMZ.js +1 -0
  68. package/dist-cli-web/assets/MessageExportModal-DU71grc7.js +1 -0
  69. package/dist-cli-web/assets/PageHeader-BDPf4NuI.js +1 -0
  70. package/dist-cli-web/assets/PageTabs.vue_vue_type_script_setup_true_lang-_j82asQU.js +1 -0
  71. package/dist-cli-web/assets/{RelationshipGalaxyCanvas-6EamagxG.js → RelationshipGalaxyCanvas-BODk18aA.js} +14 -14
  72. package/dist-cli-web/assets/RelationshipGalaxyThreeCanvas-BJyuRiC-.js +4168 -0
  73. package/dist-cli-web/assets/RelationshipGalaxyThreeCanvas-CCasBcBQ.css +1 -0
  74. package/dist-cli-web/assets/{RenderTargetSystem-mYuj4uBS.js → RenderTargetSystem-CVMvAUSv.js} +1 -1
  75. package/dist-cli-web/assets/RovingFocusItem-DC_06OmN.js +1 -0
  76. package/dist-cli-web/assets/ScreenCaptureModal-DrBFDOtC.js +1 -0
  77. package/dist-cli-web/assets/SectionTabs.vue_vue_type_script_setup_true_lang-C-Zj2biH.js +1 -0
  78. package/dist-cli-web/assets/Select-DLK2LYhO.js +1 -0
  79. package/dist-cli-web/assets/SettingsModal-BFkxzo0Y.css +1 -0
  80. package/dist-cli-web/assets/SettingsModal-DqaR4Dx5.js +2 -0
  81. package/dist-cli-web/assets/StorageTab-B0ebN0f8.js +1 -0
  82. package/dist-cli-web/assets/Switch-CokhQWxm.js +1 -0
  83. package/dist-cli-web/assets/Tabs-D1UiZNaZ.js +1 -0
  84. package/dist-cli-web/assets/Tabs-N3Q-Mpqi.js +1 -0
  85. package/dist-cli-web/assets/{ThemeCard.vue_vue_type_script_setup_true_lang-DPIvbq75.js → ThemeCard.vue_vue_type_script_setup_true_lang-OT-I0mbU.js} +1 -1
  86. package/dist-cli-web/assets/TimeSelect.vue_vue_type_script_setup_true_lang-Ccunouyf.js +1 -0
  87. package/dist-cli-web/assets/{VisuallyHiddenInput-BOdkR_GC.js → VisuallyHiddenInput-OAJEt_Y5.js} +1 -1
  88. package/dist-cli-web/assets/{WebGLRenderer-BB8ukBI_.js → WebGLRenderer-DuUeftYD.js} +1 -1
  89. package/dist-cli-web/assets/{WebGPURenderer-DDOzF1Kc.js → WebGPURenderer-DoWQxiWZ.js} +1 -1
  90. package/dist-cli-web/assets/aiChat-CdADfRnU.js +8 -0
  91. package/dist-cli-web/assets/{browserAll-BRqlnNxq.js → browserAll-Cb-mtR2y.js} +1 -1
  92. package/dist-cli-web/assets/{cli-web-ClAJ6Tao.js → cli-web-BHQCZLLg.js} +1 -1
  93. package/dist-cli-web/assets/{fetch-LY-yerw1.js → fetch-AvsnJLWJ.js} +1 -1
  94. package/dist-cli-web/assets/{fetch-Dy38lkAa.js → fetch-B-6tyYWu.js} +1 -1
  95. package/dist-cli-web/assets/{fetch-Bcy2T8Fe.js → fetch-B4PYy5JS.js} +1 -1
  96. package/dist-cli-web/assets/{fetch-DWAIk_6_.js → fetch-BbcFaCRB.js} +1 -1
  97. package/dist-cli-web/assets/fetch-BkA_so1e.js +1 -0
  98. package/dist-cli-web/assets/{fetch-q480XYZQ.js → fetch-BzXuAaT3.js} +8 -5
  99. package/dist-cli-web/assets/fetch-CW2fKvGp.js +1 -0
  100. package/dist-cli-web/assets/{fetch-DijSOvop.js → fetch-DEub4tOo.js} +1 -1
  101. package/dist-cli-web/assets/{fetch-CGu53cxT.js → fetch-DLTlYnDB.js} +1 -1
  102. package/dist-cli-web/assets/fetch-Qs38Hx1V.js +1 -0
  103. package/dist-cli-web/assets/{fetch-CP1afnT0.js → fetch-sYDJ-Zs8.js} +1 -1
  104. package/dist-cli-web/assets/{fetch-DzKlTaLz.js → fetch-ul8-uQIb.js} +1 -1
  105. package/dist-cli-web/assets/host-B6SQ6OGo.js +1 -0
  106. package/dist-cli-web/assets/host-DYIkQqvY.js +1 -0
  107. package/dist-cli-web/assets/{index-Di6FmCdk.js → index--IEkRjKe.js} +10 -10
  108. package/dist-cli-web/assets/index-9iaY_EWG.js +1 -0
  109. package/dist-cli-web/assets/index-B4J99zv3.css +1 -0
  110. package/dist-cli-web/assets/index-BBeqtL8d.css +1 -0
  111. package/dist-cli-web/assets/index-BnaLj2dx.css +1 -0
  112. package/dist-cli-web/assets/index-C7omDgiJ.js +2 -0
  113. package/dist-cli-web/assets/index-CHsM84U1.js +2 -0
  114. package/dist-cli-web/assets/index-CL8u01Pf.js +137 -0
  115. package/dist-cli-web/assets/{index-CNzv7aBW.js → index-CShh95fU.js} +1 -1
  116. package/dist-cli-web/assets/index-C_OS8Y8W.js +1 -0
  117. package/dist-cli-web/assets/{index-BRV_D8dv.js → index-D64XYYts.js} +1 -1
  118. package/dist-cli-web/assets/index-DrCc8p_I.css +1 -0
  119. package/dist-cli-web/assets/index-Dz_ddyZS.css +1 -0
  120. package/dist-cli-web/assets/index-UpTe1KzQ.js +1 -0
  121. package/dist-cli-web/assets/index-a8Hw6eD8.js +1 -0
  122. package/dist-cli-web/assets/index-jwjzZNKm.js +1 -0
  123. package/dist-cli-web/assets/index-pkxlF8Ee.js +1 -0
  124. package/dist-cli-web/assets/index-sWxuTsa7.js +36 -0
  125. package/dist-cli-web/assets/{people-page-header-Bh3KXD4g.js → people-page-header-0jvXFFnh.js} +1 -1
  126. package/dist-cli-web/assets/{prompt-DcAcgQiB.js → prompt-BPYj29Vq.js} +1 -1
  127. package/dist-cli-web/assets/{semantic-index-config-builder-CK6v64Y1.js → semantic-index-config-builder-vO37z355.js} +1 -1
  128. package/dist-cli-web/assets/service-CVoA9yNf.js +1 -0
  129. package/dist-cli-web/assets/{service-YZnJyEMq.js → service-D29Vftq9.js} +1 -1
  130. package/dist-cli-web/assets/service-DMysyLCa.js +1 -0
  131. package/dist-cli-web/assets/{useFormControl-B-aXrJZN.js → useFormControl-DVawP2DO.js} +1 -1
  132. package/dist-cli-web/assets/useTable-Bv3R_Hux.js +1 -0
  133. package/dist-cli-web/assets/useToast-BA0EwImD.js +1 -0
  134. package/dist-cli-web/assets/{vendor-echarts-DfAMQxdr.js → vendor-echarts-hTLhTs52.js} +5 -5
  135. package/dist-cli-web/assets/{vendor-echarts-wordcloud-BsaEJTPY.js → vendor-echarts-wordcloud-B8CF_NgP.js} +1 -1
  136. package/dist-cli-web/assets/{vendor-zrender-PFmZe1EY.js → vendor-zrender-D8psf1AA.js} +2 -2
  137. package/dist-cli-web/assets/{webworkerAll-Dwqmy_YO.js → webworkerAll-ZPE_yGnC.js} +1 -1
  138. package/dist-cli-web/index.html +2 -2
  139. package/package.json +4 -4
  140. package/dist/chat-command-24RYGJAS.mjs.map +0 -1
  141. package/dist/chunk-22YJOBA3.mjs +0 -9826
  142. package/dist/chunk-22YJOBA3.mjs.map +0 -1
  143. package/dist/chunk-4GWWKHWA.mjs.map +0 -1
  144. package/dist/chunk-7IGBPZMI.mjs.map +0 -1
  145. package/dist/chunk-BRZ6YIBR.mjs.map +0 -1
  146. package/dist/chunk-DC7IUDNV.mjs.map +0 -1
  147. package/dist/chunk-DEFEU567.mjs.map +0 -1
  148. package/dist/chunk-QZCNVAH6.mjs +0 -14
  149. package/dist/chunk-QZCNVAH6.mjs.map +0 -1
  150. package/dist/chunk-ZBPPLXM4.mjs.map +0 -1
  151. package/dist/service-KZTHBDQ5.mjs.map +0 -1
  152. package/dist/undici-MU5I3L6Q.mjs.map +0 -1
  153. package/dist-cli-web/assets/AISettingsTab-rQC2ocFH.js +0 -1
  154. package/dist-cli-web/assets/ActionToolsPanel.vue_vue_type_script_setup_true_lang-CnRLt_1j.js +0 -110
  155. package/dist-cli-web/assets/Alert--bTQXRcZ.js +0 -1
  156. package/dist-cli-web/assets/ApiSettingsTab-CtXl4I28.js +0 -2
  157. package/dist-cli-web/assets/BatchManageTab-1KaCPweN.js +0 -1
  158. package/dist-cli-web/assets/ChatRecordDrawer-BC0F7ok1.js +0 -11
  159. package/dist-cli-web/assets/ChatRecordDrawer-Tt6UduRC.css +0 -1
  160. package/dist-cli-web/assets/Checkbox-CwajNPGF.js +0 -1
  161. package/dist-cli-web/assets/DataDirCleanupNotice-D0Oruka2.js +0 -1
  162. package/dist-cli-web/assets/DatePicker.vue_vue_type_script_setup_true_lang-C4CsoIlq.js +0 -1
  163. package/dist-cli-web/assets/DebugToolsPanel-DVDwS-wz.js +0 -1
  164. package/dist-cli-web/assets/GlobalTaskBar-DpPMX0jx.js +0 -1
  165. package/dist-cli-web/assets/GroupRelationshipGalaxyView-CLnO3phW.js +0 -1
  166. package/dist-cli-web/assets/Label-Bt2U4lGy.js +0 -1
  167. package/dist-cli-web/assets/LoadingState.vue_vue_type_script_setup_true_lang-Cnshyn0f.js +0 -1
  168. package/dist-cli-web/assets/MessageExportModal-BozaR9UZ.js +0 -1
  169. package/dist-cli-web/assets/PageHeader-CEe0xTl3.js +0 -1
  170. package/dist-cli-web/assets/PageTabs.vue_vue_type_script_setup_true_lang-D2DZrrnv.js +0 -1
  171. package/dist-cli-web/assets/RelationshipGalaxyThreeCanvas-B6GB4PWS.js +0 -4108
  172. package/dist-cli-web/assets/RelationshipGalaxyThreeCanvas-TYGOUDiv.css +0 -1
  173. package/dist-cli-web/assets/RovingFocusItem-B2y6BG1a.js +0 -1
  174. package/dist-cli-web/assets/ScreenCaptureModal-BvAtSNNR.js +0 -1
  175. package/dist-cli-web/assets/SectionTabs.vue_vue_type_script_setup_true_lang-ueEF4zHE.js +0 -1
  176. package/dist-cli-web/assets/Select-Cm4I8u9n.js +0 -1
  177. package/dist-cli-web/assets/SettingsModal-CjVax3I6.css +0 -1
  178. package/dist-cli-web/assets/SettingsModal-Cwshzj7i.js +0 -2
  179. package/dist-cli-web/assets/StorageTab-D7HzH16Y.js +0 -1
  180. package/dist-cli-web/assets/Switch-BVw4e_19.js +0 -1
  181. package/dist-cli-web/assets/Tabs-Dqwkh3Ea.js +0 -1
  182. package/dist-cli-web/assets/Tabs-OrJkANIA.js +0 -1
  183. package/dist-cli-web/assets/TimeSelect.vue_vue_type_script_setup_true_lang-dEdo6CqM.js +0 -1
  184. package/dist-cli-web/assets/aiChat-CzFSFuOJ.js +0 -8
  185. package/dist-cli-web/assets/annual-summary-time-range-CmrAqcuj.js +0 -1
  186. package/dist-cli-web/assets/base-CawUl6ET.js +0 -1
  187. package/dist-cli-web/assets/dateFormat-DXuDxIye.js +0 -1
  188. package/dist-cli-web/assets/fetch-3_xX8Yi8.js +0 -1
  189. package/dist-cli-web/assets/index-0dp58uL4.css +0 -1
  190. package/dist-cli-web/assets/index-1X7zdLgJ.css +0 -1
  191. package/dist-cli-web/assets/index-4enwdBcq.css +0 -1
  192. package/dist-cli-web/assets/index-AudHHbMs.js +0 -1
  193. package/dist-cli-web/assets/index-CF4DTbvD.js +0 -1
  194. package/dist-cli-web/assets/index-CMLoht5R.js +0 -1
  195. package/dist-cli-web/assets/index-CMPHZH6B.css +0 -1
  196. package/dist-cli-web/assets/index-CXUTiy-V.js +0 -1
  197. package/dist-cli-web/assets/index-D5m0P4ss.js +0 -36
  198. package/dist-cli-web/assets/index-DkOrt7_X.js +0 -2
  199. package/dist-cli-web/assets/index-Dlb6fC68.js +0 -1
  200. package/dist-cli-web/assets/index-IA7YUjQX.js +0 -2
  201. package/dist-cli-web/assets/index-ZsZwPLWy.css +0 -1
  202. package/dist-cli-web/assets/index-kzU381y1.js +0 -1
  203. package/dist-cli-web/assets/index-z8Vogc-b.js +0 -137
  204. package/dist-cli-web/assets/lazy-overlay-visibility-Bd9ZFOgR.js +0 -1
  205. package/dist-cli-web/assets/member-select-utils-BXZ3oHct.js +0 -1
  206. package/dist-cli-web/assets/useTable-DPEMaGby.js +0 -1
  207. package/dist-cli-web/assets/useToast-B36MzFFy.js +0 -1
  208. /package/dist/{chunk-GQMCDWZQ.mjs.map → chunk-5MJO4AJB.mjs.map} +0 -0
  209. /package/dist/{chunk-QKEARRFH.mjs.map → chunk-67HNPYZJ.mjs.map} +0 -0
  210. /package/dist/{chunk-U36TQMAF.mjs.map → chunk-6QP47LID.mjs.map} +0 -0
  211. /package/dist/{chunk-KIMJXKZO.mjs.map → chunk-JOVL7OTW.mjs.map} +0 -0
  212. /package/dist/{chunk-KXDJ7N6N.mjs.map → chunk-NQHZPSW2.mjs.map} +0 -0
  213. /package/dist/{http-3K4YMWDE.mjs.map → http-5RVY5J5U.mjs.map} +0 -0
  214. /package/dist/{import-D4LV565A.mjs.map → import-ILTWVHKU.mjs.map} +0 -0
  215. /package/dist/{mcp-KL22FKQ2.mjs.map → mcp-Y2YXOFB4.mjs.map} +0 -0
  216. /package/dist/{src-COIB6Z4P.mjs.map → src-OV5ZNE3Z.mjs.map} +0 -0
  217. /package/dist/{stream-import-FSXCFG4M.mjs.map → stream-import-XOUM3Z5W.mjs.map} +0 -0
  218. /package/dist/{worker-runtime-DPS2LURI.mjs.map → worker-runtime-JNGURHDM.mjs.map} +0 -0
@@ -1,11 +1,11 @@
1
- import{r as tn,m as X,i as $,a as z,b as ve,e as be,c as K,d as q,f as w,g as bs,h as St,j as ue,k as cy,l as U,n as j,P as We,o as Pu,p as Mn,q as Ie,s as J,t as vy,u as hy,Z as Et,v as dy,w as F,x as ae,T as th,y as eo,z as Mr,A as rh,B as ah,C as Ve,D as py,E as gy,F as yy,G as my,H as ee,I as to,J as ro,K as nh,S as Ir,R as bl,L as ha,M as or,N as se,O as Tr,Q as ih,U as wl,V as oh,W as pe,X as _y,Y as Cl,_ as sh,$ as de,a0 as Sy,a1 as he,a2 as lh,a3 as ao,a4 as Tn,a5 as oe,a6 as Ot,a7 as Ze,a8 as me,a9 as ta,aa as Ke,ab as Me,ac as Z,ad as _i,ae as xy,af as xt,ag as ws,ah as by,ai as wy,aj as Si,ak as Cy,al as Dn,am as ku,an as xo,ao as My,ap as rn,aq as xr,ar as Ty,as as uh,at as Ru,au as bo,av as fh,aw as Dy,ax as Ay,ay as Ga,az as Ly,aA as Eu,aB as Ou,aC as Iy,aD as Py,aE as ch,aF as an,aG as Bu,aH as vh,aI as Nu,aJ as er,aK as li,aL as wo,aM as hh,aN as ky,aO as nn,aP as Ry,aQ as dh,aR as Ey,aS as Vu,aT as Oy,aU as By,aV as Ny}from"./vendor-zrender-PFmZe1EY.js";var Cs=function(r,t){return Cs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,a){e.__proto__=a}||function(e,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])},Cs(r,t)};function W(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Cs(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var zu=1e-4,ph=20;function Vy(r){return r.replace(/^\s+|\s+$/g,"")}var on=Math.min,$e=Math.max,yt=Math.abs;function ce(r,t,e,a){var n=t[0],i=t[1],o=e[0],s=e[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}var ne=zy;function zy(r,t,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Ms(r,t,e)}function Ms(r,t,e){return $(r)?Vy(r).match(/%$/)?parseFloat(r)/100*t+(e||0):parseFloat(r):r==null?NaN:+r}function Re(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),ph),r=(+r).toFixed(t),e?r:+r}function _r(r){return r.sort(function(t,e){return t-e}),r}function Dt(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return Fy(r)}function Fy(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),a=e>0?+t.slice(e+1):0,n=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function gh(r,t){var e=Math.log,a=Math.LN10,n=Math.floor(e(r[1]-r[0])/a),i=Math.round(e(yt(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function Gy(r,t){var e=tn(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var a=Math.pow(10,t),n=X(r,function(v){return(isNaN(v)?0:v)/e*a*100}),i=a*100,o=X(n,function(v){return Math.floor(v)}),s=tn(o,function(v,d){return v+d},0),l=X(n,function(v,d){return v-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,h=l.length;c<h;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return X(o,function(v){return v/a})}function Hy(r,t){var e=Math.max(Dt(r),Dt(t)),a=r+t;return e>ph?a:Re(a,e)}function yh(r){var t=Math.PI*2;return(r%t+t)%t}function xi(r){return r>-zu&&r<zu}var Wy=/^(?:(\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 Pr(r){if(r instanceof Date)return r;if($(r)){var t=Wy.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function Uy(r){return Math.pow(10,Ml(r))}function Ml(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function mh(r,t){var e=Ml(r),a=Math.pow(10,e),n=r/a,i;return n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10,r=i*a,e>=-20?+r.toFixed(e<0?-e:0):r}function Fu(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=t&&(n[o]=t,i[o]=o?1:1-e),t=n[o],e=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function bi(r){var t=parseFloat(r);return t==r&&(t!==0||!$(r)||r.indexOf("x")<=0)?t:NaN}function Yy(r){return!isNaN(bi(r))}function _h(){return Math.round(Math.random()*9)}function Sh(r,t){return t===0?r:Sh(t,r%t)}function Gu(r,t){return r==null?t:t==null?r:r*t/Sh(r,t)}var Zy="[ECharts] ",Xy=typeof console<"u"&&console.warn&&console.log;function $y(r,t,e){Xy&&console[r](Zy+t)}function xh(r,t){$y("error",r)}function ke(r){throw new Error(r)}function Hu(r,t,e){return(t-r)*e+r}var bh="series\0",Ky="\0_ec_\0";function Ae(r){return r instanceof Array?r:r==null?[]:[r]}function Ts(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var a=0,n=e.length;a<n;a++){var i=e[a];!r.emphasis[t].hasOwnProperty(i)&&r[t].hasOwnProperty(i)&&(r.emphasis[t][i]=r[t][i])}}}var Wu=["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 An(r){return K(r)&&!z(r)&&!(r instanceof Date)?r.value:r}function qy(r){return K(r)&&!(r instanceof Array)}function jy(r,t,e){var a=e==="normalMerge",n=e==="replaceMerge",i=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=q();w(t,function(l,u){if(!K(l)){t[u]=null;return}});var s=Qy(r,o,e);return(a||n)&&Jy(s,r,o,t),a&&em(s,t),a||n?tm(s,t,n):i&&rm(s,t),am(s),s}function Qy(r,t,e){var a=[];if(e==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&t.set(i.id,n),a.push({existing:e==="replaceMerge"||sn(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function Jy(r,t,e,a){w(a,function(n,i){if(!(!n||n.id==null)){var o=Xa(n.id),s=e.get(o);if(s!=null){var l=r[s];St(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=t[s],a[i]=null}}})}function em(r,t){w(t,function(e,a){if(!(!e||e.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||e.id==null)&&!sn(e)&&!sn(i)&&wh("name",i,e)){r[n].newOption=e,t[a]=null;return}}})}function tm(r,t,e){w(t,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||sn(n.existing)||n.existing&&a.id!=null&&!wh("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=e):r.push({newOption:a,brandNew:e,existing:null,keyInfo:null}),i++}})}function rm(r,t){w(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function am(r){var t=q();w(r,function(e){var a=e.existing;a&&t.set(a.id,e)}),w(r,function(e){var a=e.newOption;St(!a||a.id==null||!t.get(a.id)||t.get(a.id)===e,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&t.set(a.id,e),!e.keyInfo&&(e.keyInfo={})}),w(r,function(e,a){var n=e.existing,i=e.newOption,o=e.keyInfo;if(K(i)){if(o.name=i.name!=null?Xa(i.name):n?n.name:bh+a,n)o.id=Xa(n.id);else if(i.id!=null)o.id=Xa(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function wh(r,t,e){var a=ut(t[r],null),n=ut(e[r],null);return a!=null&&n!=null&&a===n}function Xa(r){return ut(r,"")}function ut(r,t){return r==null?t:$(r)?r:ve(r)||bs(r)?r+"":t}function Tl(r){var t=r.name;return!!(t&&t.indexOf(bh))}function sn(r){return r&&r.id!=null&&Xa(r.id).indexOf(Ky)===0}function nm(r,t,e){w(r,function(a){var n=a.newOption;K(n)&&(a.keyInfo.mainType=t,a.keyInfo.subType=im(t,n,a.existing,e))})}function im(r,t,e,a){var n=t.type?t.type:e?e.subType:a.determineSubType(r,t);return n}function om(r,t){var e={},a={};return n(r||[],e),n(t||[],a,e),[i(e),i(a)];function n(o,s,l){for(var u=0,f=o.length;u<f;u++){var c=ut(o[u].seriesId,null);if(c==null)return;for(var h=Ae(o[u].dataIndex),v=l&&l[c],d=0,p=h.length;d<p;d++){var y=h[d];v&&v[y]?v[y]=null:(s[c]||(s[c]={}))[y]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function Dr(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return z(t.dataIndex)?X(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return z(t.name)?X(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function ie(){var r="__ec_inner_"+sm++;return function(t){return t[r]||(t[r]={})}}var sm=_h();function Co(r,t,e){var a=Dl(t,e),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=e?e.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,f){var c=da(r,f,u,{useDefault:l===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Dl(r,t){var e;if($(r)){var a={};a[r+"Index"]=0,e=a}else e=r;var n=q(),i={},o=!1;return w(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||t&&t.includeMainTypes&&ue(t.includeMainTypes,f)<0)){o=o||!!f;var h=n.get(f)||n.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var Ne={useDefault:!0,enableAll:!1,enableNone:!1},lm={useDefault:!1,enableAll:!0,enableNone:!0};function da(r,t,e,a){a=a||Ne;var n=e.index,i=e.id,o=e.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(t))?[l]:[],s}if(n==="none"||n===!1){if(a.enableNone)return s.models=[],s;n=-1}return n==="all"&&(a.enableAll?n=i=o=null:n=-1),s.models=r.queryComponents({mainType:t,index:n,id:i,name:o}),s}function Ch(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function um(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function fm(r){return r==="auto"?be.domSupported?"html":"richText":r||"html"}function Mh(r,t,e,a,n){var i=t==null||t==="auto";if(a==null)return a;if(ve(a)){var o=Hu(e||0,a,n);return Re(o,i?Math.max(Dt(e||0),Dt(a)):t)}else{if($(a))return n<1?e:a;for(var s=[],l=e,u=a,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var h=r.getDimensionInfo(c);if(h&&h.type==="ordinal")s[c]=(n<1&&l?l:u)[c];else{var v=l&&l[c]?l[c]:0,d=u[c],o=Hu(v,d,n);s[c]=Re(o,i?Math.max(Dt(v),Dt(d)):t)}}return s}}var cm=".",ur="___EC__COMPONENT__CONTAINER___",Th="___EC__EXTENDED_CLASS___";function mt(r){var t={main:"",sub:""};if(r){var e=r.split(cm);t.main=e[0]||"",t.sub=e[1]||""}return t}function vm(r){St(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function hm(r){return!!(r&&r[Th])}function Al(r,t){r.$constructor=r,r.extend=function(e){var a=this,n;return dm(a)?n=(function(i){W(o,i);function o(){return i.apply(this,arguments)||this}return o})(a):(n=function(){(e.$constructor||a).apply(this,arguments)},cy(n,this)),U(n.prototype,e),n[Th]=!0,n.extend=this.extend,n.superCall=ym,n.superApply=mm,n.superClass=a,n}}function dm(r){return j(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function Dh(r,t){r.extend=t.extend}var pm=Math.round(Math.random()*10);function gm(r){var t=["__\0is_clz",pm++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function ym(r,t){for(var e=[],a=2;a<arguments.length;a++)e[a-2]=arguments[a];return this.superClass.prototype[t].apply(r,e)}function mm(r,t,e){return this.superClass.prototype[t].apply(r,e)}function no(r){var t={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){vm(n),a.prototype.type=n;var i=mt(n);if(!i.sub)t[i.main]=a;else if(i.sub!==ur){var o=e(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=t[a];if(o&&o[ur]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=mt(a),i=[],o=t[n.main];return o&&o[ur]?w(o,function(s,l){l!==ur&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=mt(a);return!!t[n.main]},r.getAllClassMainTypes=function(){var a=[];return w(t,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=mt(a),i=t[n.main];return i&&i[ur]};function e(a){var n=t[a.main];return(!n||!n[ur])&&(n=t[a.main]={},n[ur]=!0),n}}function ln(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&ue(n,l)>=0||i&&ue(i,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var _m=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Sm=ln(_m),xm=(function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return Sm(this,t,e)},r})(),te=ie(),bm=function(r,t,e,a){if(a){var n=te(a);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,n.ssrType="chart",a.type==="group"&&a.traverse(function(i){var o=te(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},Uu=1,Yu={},Ah=ie(),Ll=ie(),Il=0,io=1,oo=2,tt=["emphasis","blur","select"],wi=["normal","emphasis","blur","select"],wm=10,Cm=9,br="highlight",ui="downplay",Ci="select",Ds="unselect",Mi="toggleSelect",Pl="selectchanged";function Fr(r){return r!=null&&r!=="none"}function so(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function Lh(r){so(r,"emphasis",oo)}function Ih(r){r.hoverState===oo&&so(r,"normal",Il)}function kl(r){so(r,"blur",io)}function Ph(r){r.hoverState===io&&so(r,"normal",Il)}function Mm(r){r.selected=!0}function Tm(r){r.selected=!1}function Zu(r,t,e){t(r,e)}function Bt(r,t,e){Zu(r,t,e),r.isGroup&&r.traverse(function(a){Zu(a,t,e)})}function Xu(r,t){switch(t){case"emphasis":r.hoverState=oo;break;case"normal":r.hoverState=Il;break;case"blur":r.hoverState=io;break;case"select":r.selected=!0}}function Dm(r,t,e,a){for(var n=r.style,i={},o=0;o<t.length;o++){var s=t[o],l=n[s];i[s]=l??(a&&a[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function Am(r,t,e,a){var n=e&&ue(e,"select")>=0,i=!1;if(r instanceof We){var o=Ah(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Fr(s)||Fr(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=U({},a),u=U({},u),u.fill=s):!Fr(u.fill)&&Fr(s)?(i=!0,a=U({},a),u=U({},u),u.fill=Pu(s)):!Fr(u.stroke)&&Fr(l)&&(i||(a=U({},a),u=U({},u)),u.stroke=Pu(l)),a.style=u}}if(a&&a.z2==null){i||(a=U({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f??wm)}return a}function Lm(r,t,e){if(e&&e.z2==null){e=U({},e);var a=r.z2SelectLift;e.z2=r.z2+(a??Cm)}return e}function Im(r,t,e){var a=ue(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:Dm(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=U({},e),o=U({opacity:a?n:i.opacity*.1},o),e.style=o),e}function Mo(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return Am(this,r,t,e);if(r==="blur")return Im(this,r,e);if(r==="select")return Lm(this,r,e)}return e}function kh(r){r.stateProxy=Mo;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Mo),e&&(e.stateProxy=Mo)}function $u(r,t){!Bh(r,t)&&!r.__highByOuter&&Bt(r,Lh)}function Ku(r,t){!Bh(r,t)&&!r.__highByOuter&&Bt(r,Ih)}function Ti(r,t){r.__highByOuter|=1<<(t||0),Bt(r,Lh)}function Di(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Bt(r,Ih)}function Pm(r){Bt(r,kl)}function Rh(r){Bt(r,Ph)}function Eh(r){Bt(r,Mm)}function Oh(r){Bt(r,Tm)}function Bh(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function Nh(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=Ll(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){Ph(u)}),s&&e.push(i)),o.isBlured=!1}),w(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function As(r,t,e,a){var n=a.getModel();e=e||"coordinateSystem";function i(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&Rh(h)}}if(r!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(r),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 h=c&&s?c===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!h||t==="series"&&f)){var v=a.getViewOfSeriesModel(u);if(v.group.traverse(function(y){y.__highByOuter&&f&&t==="self"||kl(y)}),Mn(t))i(u.getData(),t);else if(K(t))for(var d=Ie(t),p=0;p<d.length;p++)i(u.getData(d[p]),t[d[p]]);l.push(u),Ll(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var c=a.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,n)}})}}function Ls(r,t,e){if(!(r==null||t==null)){var a=e.getModel().getComponent(r,t);if(a){Ll(a).isBlured=!0;var n=e.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){kl(i)})}}}function km(r,t,e){var a=r.seriesIndex,n=r.getData(t.dataType);if(n){var i=Dr(n,t);i=(z(i)?i[0]:i)||0;var o=n.getItemGraphicEl(i);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=te(o);As(a,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),c=r.get(["emphasis","blurScope"]);f!=null&&As(a,f,c,e)}}}function Rl(r,t,e,a){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return n;var i=a.getModel().getComponent(r,t);if(!i)return n;var o=a.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(te(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Rm(r,t,e){var a=te(r),n=Rl(a.componentMainType,a.componentIndex,a.componentHighDownName,e),i=n.dispatchers,o=n.focusSelf;i?(o&&Ls(a.componentMainType,a.componentIndex,e),w(i,function(s){return $u(s,t)})):(As(a.seriesIndex,a.focus,a.blurScope,e),a.focus==="self"&&Ls(a.componentMainType,a.componentIndex,e),$u(r,t))}function Em(r,t,e){Nh(e);var a=te(r),n=Rl(a.componentMainType,a.componentIndex,a.componentHighDownName,e).dispatchers;n?w(n,function(i){return Ku(i,t)}):Ku(r,t)}function Om(r,t,e){if(Ps(t)){var a=t.dataType,n=r.getData(a),i=Dr(n,t);z(i)||(i=[i]),r[t.type===Mi?"toggleSelect":t.type===Ci?"select":"unselect"](i,a)}}function qu(r){var t=r.getAllData();w(t,function(e){var a=e.data,n=e.type;a.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?Eh(i):Oh(i)})})}function Bm(r){var t=[];return r.eachSeries(function(e){var a=e.getAllData();w(a,function(n){n.data;var i=n.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Ai(r,t,e){El(r,!0),Bt(r,kh),Vm(r,t,e)}function Nm(r){El(r,!1)}function tr(r,t,e,a){a?Nm(r):Ai(r,t,e)}function Vm(r,t,e){var a=te(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var ju=["emphasis","blur","select"],zm={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function oa(r,t,e,a){e=e||"itemStyle";for(var n=0;n<ju.length;n++){var i=ju[n],o=t.getModel([i,e]),s=r.ensureState(i);s.style=o[zm[e]]()}}function El(r,t){var e=t===!1,a=r;r.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!e)}function Is(r){return!!(r&&r.__highDownDispatcher)}function Fm(r){var t=Yu[r];return t==null&&Uu<=32&&(t=Yu[r]=Uu++),t}function Ps(r){var t=r.type;return t===Ci||t===Ds||t===Mi}function Qu(r){var t=r.type;return t===br||t===ui}function Gm(r){var t=Ah(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var Hm=ie();function Ol(r,t,e,a,n){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,c=void 0;a?(u=J(a.duration,200),f=J(a.easing,"cubicOut"),c=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),c=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(c=i.delay)),j(c)&&(c=c(e,n)),j(u)&&(u=u(e));var h={duration:u||0,delay:c,easing:f};return h}else return null}function Bl(r,t,e,a,n,i,o){var s=!1,l;j(n)?(o=i,i=n,n=null):K(n)&&(i=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=Ol(r,a,n,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(t,n):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function De(r,t,e,a,n,i){Bl("update",r,t,e,a,n,i)}function Ee(r,t,e,a,n,i){Bl("enter",r,t,e,a,n,i)}function ra(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function Li(r,t,e,a,n,i){ra(r)||Bl("leave",r,t,e,a,n,i)}function Ju(r,t,e,a){r.removeTextContent(),r.removeTextGuideLine(),Li(r,{style:{opacity:0}},t,e,a)}function $a(r,t,e){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||Ju(n,t,e,a)}):Ju(r,t,e,a)}function un(r){Hm(r).oldStyle=r.style}var ks={},$t=["x","y"],sa=["width","height"];function Wm(r){return We.extend(r)}var Um=my;function Ym(r,t){return Um(r,t)}function vt(r,t){ks[r]=t}function Rs(r){if(ks.hasOwnProperty(r))return ks[r]}function fn(r,t,e,a){var n=dy(r,t);return e&&(a==="center"&&(e=zh(e,n.getBoundingRect())),Fh(n,e)),n}function Vh(r,t,e){var a=new Et({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(e==="center"){var i={width:n.width,height:n.height};a.setStyle(zh(t,i))}}});return a}function zh(r,t){var e=t.width/t.height,a=r.height*e,n;a<=r.width?n=r.height:(a=r.width,n=a/e);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-a/2,y:o-n/2,width:a,height:n}}var Es=vy;function Fh(r,t){if(r.applyTransform){var e=r.getBoundingRect(),a=e.calculateTransform(t);r.applyTransform(a)}}function cn(r,t){return gy(r,r,{lineWidth:t}),r}function Zm(r,t){return yy(r,r,t),r}var Xm=hy;function Ka(r,t){for(var e=rh([]);r&&r!==t;)ah(e,r.getLocalTransform(),e),r=r.parent;return e}function Qt(r,t,e){return t&&!Mn(t)&&(t=th.getLocalTransform(t)),e&&(t=eo([],t)),Mr([],r,t)}function Nl(r,t,e){var a=t[4]===0||t[5]===0||t[0]===0?1:yt(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:yt(2*t[4]/t[2]),i=[r==="left"?-a:r==="right"?a:0,r==="top"?-n:r==="bottom"?n:0];return i=Qt(i,t,e),yt(i[0])>yt(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function ef(r){return!r.isGroup}function $m(r){return r.shape!=null}function Gh(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){ef(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return $m(o)&&(s.shape=ee(o.shape)),s}var i=a(r);t.traverse(function(o){if(ef(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),De(o,l,e,te(o).dataIndex)}}})}function Km(r,t){return X(r,function(e){var a=e[0];a=$e(a,t.x),a=on(a,t.x+t.width);var n=e[1];return n=$e(n,t.y),n=on(n,t.y+t.height),[a,n]})}function qm(r,t){var e=$e(r.x,t.x),a=on(r.x+r.width,t.x+t.width),n=$e(r.y,t.y),i=on(r.y+r.height,t.y+t.height);if(a>=e&&i>=n)return{x:e,y:n,width:a-e,height:i-n}}function Vl(r,t,e){var a=U({rectHover:!0},t),n=a.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),ae(n,e),new Et(a)):fn(r.replace("path://",""),a,e,"center")}function jm(r,t,e,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(Hh(r,t,e,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function Hh(r,t,e,a,n,i,o,s){var l=e-r,u=a-t,f=o-n,c=s-i,h=To(f,c,l,u);if(Qm(h))return!1;var v=r-n,d=t-i,p=To(v,d,l,u)/h;if(p<0||p>1)return!1;var y=To(v,d,f,c)/h;return!(y<0||y>1)}function To(r,t,e,a){return r*a-e*t}function Qm(r){return r<=1e-6&&r>=-1e-6}function vn(r,t,e,a,n){return t==null||(ve(t)?fe[0]=fe[1]=fe[2]=fe[3]=t:(fe[0]=t[0],fe[1]=t[1],fe[2]=t[2],fe[3]=t[3]),a&&(fe[0]=$e(0,fe[0]),fe[1]=$e(0,fe[1]),fe[2]=$e(0,fe[2]),fe[3]=$e(0,fe[3])),e&&(fe[0]=-fe[0],fe[1]=-fe[1],fe[2]=-fe[2],fe[3]=-fe[3]),tf(r,fe,"x","width",3,1,n&&n[0]||0),tf(r,fe,"y","height",0,2,n&&n[1]||0)),r}var fe=[0,0,0,0];function tf(r,t,e,a,n,i,o){var s=t[i]+t[n],l=r[a];r[a]+=s,o=$e(0,on(o,l)),r[a]<o?(r[a]=o,r[e]+=t[n]>=0?-t[n]:t[i]>=0?l+t[i]:yt(s)>1e-8?(l-o)*t[n]/s:0):r[e]-=t[n]}function lo(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,n=$(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&w(Ie(l),function(f){F(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=te(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:ae({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function Os(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function pa(r,t){if(r)if(z(r))for(var e=0;e<r.length;e++)Os(r[e],t);else Os(r,t)}function zl(r){return!r||yt(r[1])<On&&yt(r[2])<On||yt(r[0])<On&&yt(r[3])<On}var On=1e-5;function hn(r,t){return r?Ve.copy(r,t):t.clone()}function Fl(r,t){return t?py(r||to(),t):void 0}function dn(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function Jm(r){var t=-1/0,e=1/0;Os(r,function(i){a(i),a(i.getTextContent()),a(i.getTextGuideLine())});function a(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(i.states[o[s]]);n(i)}}function n(i){if(i){var o=i.z2;o>t&&(t=o),o<e&&(e=o)}}return e>t&&(e=t=0),{min:e,max:t}}function Wh(r,t,e){Uh(r,t,e,-1/0)}function Uh(r,t,e,a){if(r.ignoreModelZ)return a;var n=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)a=$e(Uh(s[l],t,e,a),a);else r.z=t,r.zlevel=e,a=$e(r.z2||0,a);if(n&&(n.z=t,n.zlevel=e,isFinite(a)&&(n.z2=a+2)),i){var u=r.textGuideLineConfig;i.z=t,i.zlevel=e,isFinite(a)&&(i.z2=a+(u&&u.showAbove?1:-1))}return a}vt("circle",ro);vt("ellipse",nh);vt("sector",Ir);vt("ring",bl);vt("polygon",ha);vt("polyline",or);vt("rect",se);vt("line",Tr);vt("bezierCurve",ih);vt("arc",wl);const Yh=Object.freeze(Object.defineProperty({__proto__:null,Arc:wl,BezierCurve:ih,BoundingRect:Ve,Circle:ro,CompoundPath:oh,Ellipse:nh,Group:pe,Image:Et,IncrementalDisplayable:_y,Line:Tr,LinearGradient:Cl,OrientedBoundingRect:sh,Path:We,Point:de,Polygon:ha,Polyline:or,RadialGradient:Sy,Rect:se,Ring:bl,Sector:Ir,Text:he,WH:sa,XY:$t,applyTransform:Qt,calcZ2Range:Jm,clipPointsByRect:Km,clipRectByRect:qm,createIcon:Vl,ensureCopyRect:hn,ensureCopyTransform:Fl,expandOrShrinkRect:vn,extendPath:Ym,extendShape:Wm,getShapeClass:Rs,getTransform:Ka,groupTransition:Gh,initProps:Ee,isBoundingRectAxisAligned:zl,isElementRemoved:ra,lineLineIntersect:Hh,linePolygonIntersect:jm,makeImage:Vh,makePath:fn,mergePath:Es,registerShape:vt,removeElement:Li,removeElementWithFadeOut:$a,resizePath:Fh,retrieveZInfo:dn,setTooltipConfig:lo,subPixelOptimize:Xm,subPixelOptimizeLine:cn,subPixelOptimizeRect:Zm,transformDirection:Nl,traverseElements:pa,traverseUpdateZ:Wh,updateProps:De},Symbol.toStringTag,{value:"Module"}));var uo={};function Zh(r,t){for(var e=0;e<tt.length;e++){var a=tt[e],n=t[a],i=r.ensureState(a);i.style=i.style||{},i.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function Bs(r,t,e){var a=r.labelFetcher,n=r.labelDataIndex,i=r.labelDimIndex,o=t.normal,s;a&&(s=a.getFormattedLabel(n,"normal",null,i,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=j(r.defaultText)?r.defaultText(n,r,e):r.defaultText);for(var l={normal:s},u=0;u<tt.length;u++){var f=tt[u],c=t[f];l[f]=J(a?a.getFormattedLabel(n,f,null,i,c&&c.get("formatter")):null,s)}return l}function kr(r,t,e,a){e=e||uo;for(var n=r instanceof he,i=!1,o=0;o<wi.length;o++){var s=t[wi[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=n?r:r.getTextContent();if(i){n||(l||(l=new he,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Bs(e,t),f=t.normal,c=!!f.getShallow("show"),h=Te(f,a&&a.normal,e,!1,!n);h.text=u.normal,n||r.setTextConfig(Ii(f,e,!1));for(var o=0;o<tt.length;o++){var v=tt[o],s=t[v];if(s){var d=l.ensureState(v),p=!!J(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=Te(s,a&&a[v],e,!0,!n),d.style.text=u[v],!n){var y=r.ensureState(v);y.textConfig=Ii(s,e,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!c,l.useStyle(h),l.dirty(),e.enableTextSetter&&(ga(l).setLabelText=function(g){var m=Bs(e,t,g);Zh(l,m)})}else l&&(l.ignore=!0);r.dirty()}function rr(r,t){t=t||"label";for(var e={normal:r.getModel(t)},a=0;a<tt.length;a++){var n=tt[a];e[n]=r.getModel([n,t])}return e}function Te(r,t,e,a,n){var i={};return e0(i,r,e,a,n),t&&U(i,t),i}function Ii(r,t,e){t=t||{};var a={},n,i=r.getShallow("rotate"),o=J(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(e?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(a.position=n),s!=null&&(a.offset=s),i!=null&&(i*=Math.PI/180,a.rotation=i),o!=null&&(a.distance=o),a.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(a.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(a.layoutRect=t.layoutRect),a}function e0(r,t,e,a,n){e=e||uo;var i=t.ecModel,o=i&&i.option.textStyle,s=t0(t),l;if(s){l={};var u="richInheritPlainLabel",f=J(t.get(u),i?i.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var h=t.getModel(["rich",c]);of(l[c]={},h,o,t,f,e,a,n,!1,!0)}}l&&(r.rich=l);var v=t.get("overflow");v&&(r.overflow=v);var d=t.get("lineOverflow");d&&(r.lineOverflow=d);var p=r,y=t.get("minMargin");if(y!=null)y=ve(y)?y/2:0,p.margin=[y,y,y,y],p.__marginType=Jr.minMargin;else{var g=t.get("textMargin");g!=null&&(p.margin=lh(g),p.__marginType=Jr.textMargin)}of(r,t,o,null,null,e,a,n,!0,!1)}function t0(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||uo).rich;if(e){t=t||{};for(var a=Ie(e),n=0;n<a.length;n++){var i=a[n];t[i]=1}}r=r.parentModel}return t}var rf=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],af=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],nf=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function of(r,t,e,a,n,i,o,s,l,u){e=!o&&e||uo;var f=i&&i.inheritColor,c=t.getShallow("color"),h=t.getShallow("textBorderColor"),v=J(t.getShallow("opacity"),e.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(h==="inherit"||h==="auto")&&(f?h=f:h=null),s||(c=c||e.color,h=h||e.textBorderColor),c!=null&&(r.fill=c),h!=null&&(r.stroke=h);var d=J(t.getShallow("textBorderWidth"),e.textBorderWidth);d!=null&&(r.lineWidth=d);var p=J(t.getShallow("textBorderType"),e.textBorderType);p!=null&&(r.lineDash=p);var y=J(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);y!=null&&(r.lineDashOffset=y),!o&&v==null&&!u&&(v=i&&i.defaultOpacity),v!=null&&(r.opacity=v),!o&&!s&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var g=0;g<rf.length;g++){var m=rf[g],_=n!==!1&&a?ao(t.getShallow(m),a.getShallow(m),e[m]):J(t.getShallow(m),e[m]);_!=null&&(r[m]=_)}for(var g=0;g<af.length;g++){var m=af[g],_=t.getShallow(m);_!=null&&(r[m]=_)}if(r.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(r.verticalAlign=S)}if(!l||!i.disableBox){for(var g=0;g<nf.length;g++){var m=nf[g],_=t.getShallow(m);_!=null&&(r[m]=_)}var b=t.getShallow("borderType");b!=null&&(r.borderDash=b),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&f&&(r.backgroundColor=f),(r.borderColor==="auto"||r.borderColor==="inherit")&&f&&(r.borderColor=f)}}function Xh(r,t){var e=t&&t.getModel("textStyle");return Tn([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var ga=ie();function r0(r,t,e,a){if(r){var n=ga(r);n.prevValue=n.value,n.value=e;var i=t.normal;n.valueAnimation=i.get("valueAnimation"),n.valueAnimation&&(n.precision=i.get("precision"),n.defaultInterpolatedText=a,n.statesModels=t)}}function a0(r,t,e,a,n){var i=ga(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=J(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var c=Mh(e,i.precision,s,l,f);i.interpolatedValue=f===1?null:c;var h=Bs({labelDataIndex:t,labelFetcher:n,defaultText:o?o(c):c+""},i.statesModels,c);Zh(r,h)}r.percent=0,(i.prevValue==null?Ee:De)(r,{percent:1},a,t,null,u)}var Jr={minMargin:1,textMargin:2},n0=["textStyle","color"],Do=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Ao=new he,i0=(function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(n0):null)},r.prototype.getFont=function(){return Xh({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},a=0;a<Do.length;a++)e[Do[a]]=this.getShallow(Do[a]);return Ao.useStyle(e),Ao.update(),Ao.getBoundingRect()},r})(),$h=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],o0=ln($h),s0=(function(){function r(){}return r.prototype.getLineStyle=function(t){return o0(this,t)},r})(),Kh=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],l0=ln(Kh),u0=(function(){function r(){}return r.prototype.getItemStyle=function(t,e){return l0(this,t,e)},r})(),ye=(function(){function r(t,e,a){this.parentModel=e,this.ecModel=a,this.option=t}return r.prototype.init=function(t,e,a){},r.prototype.mergeOption=function(t,e){oe(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var a=this.option,n=a==null?a:a[t];if(n==null&&!e){var i=this.parentModel;i&&(n=i.getShallow(t))}return n},r.prototype.getModel=function(t,e){var a=t!=null,n=a?this.parsePath(t):null,i=a?this._doGet(n):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(i,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(ee(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!be.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var a=this.option;if(!t)return a;for(var n=0;n<t.length&&!(t[n]&&(a=a&&typeof a=="object"?a[t[n]]:null,a==null));n++);return a==null&&e&&(a=e._doGet(this.resolveParentPath(t),e.parentModel)),a},r})();Al(ye);gm(ye);Ot(ye,s0);Ot(ye,u0);Ot(ye,xm);Ot(ye,i0);var f0=Math.round(Math.random()*10);function fo(r){return[r||"",f0++].join("_")}function c0(r){var t={};r.registerSubTypeDefaulter=function(e,a){var n=mt(e);t[n.main]=a},r.determineSubType=function(e,a){var n=a.type;if(!n){var i=mt(e).main;r.hasSubTypes(e)&&t[i]&&(n=t[i](a))}return n}}function v0(r,t){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=e(o),f=u.graph,c=u.noEntryList,h={};for(w(i,function(m){h[m]=!0});c.length;){var v=c.pop(),d=f[v],p=!!h[v];p&&(s.call(l,v,d.originalDeps.slice()),delete h[v]),w(d.successor,p?g:y)}w(h,function(){var m="";throw new Error(m)});function y(m){f[m].entryCount--,f[m].entryCount===0&&c.push(m)}function g(m){h[m]=!0,y(m)}};function e(i){var o={},s=[];return w(i,function(l){var u=a(o,l),f=u.originalDeps=t(l),c=n(f,i);u.entryCount=c.length,u.entryCount===0&&s.push(l),w(c,function(h){ue(u.predecessor,h)<0&&u.predecessor.push(h);var v=a(o,h);ue(v.successor,h)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function a(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function n(i,o){var s=[];return w(i,function(l){ue(o,l)>=0&&s.push(l)}),s}}function ya(r,t){return oe(oe({},r,!0),t,!0)}const h0={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:". "}}}},d0={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Pi="ZH",Gl="EN",aa=Gl,fi={},Hl={},qh=be.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||aa).toUpperCase();return r.indexOf(Pi)>-1?Pi:aa})():aa;function jh(r,t){r=r.toUpperCase(),Hl[r]=new ye(t),fi[r]=t}function p0(r){if($(r)){var t=fi[r.toUpperCase()]||{};return r===Pi||r===Gl?ee(t):oe(ee(t),ee(fi[aa]),!1)}else return oe(ee(r),ee(fi[aa]),!1)}function Ns(r){return Hl[r]}function g0(){return Hl[aa]}jh(Gl,h0);jh(Pi,d0);var y0=null;function ki(){return y0}var Wl=1e3,Ul=Wl*60,qa=Ul*60,et=qa*24,sf=et*365,m0={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})/},ci={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},_0="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Bn="{yyyy}-{MM}-{dd}",lf={year:"{yyyy}",month:"{yyyy}-{MM}",day:Bn,hour:Bn+" "+ci.hour,minute:Bn+" "+ci.minute,second:Bn+" "+ci.second,millisecond:_0},wr=["year","month","day","hour","minute","second","millisecond"],S0=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function x0(r){return!$(r)&&!j(r)?b0(r):r}function b0(r){r=r||{};var t={},e=!0;return w(wr,function(a){e&&(e=r[a]==null)}),w(wr,function(a,n){var i=r[a];t[a]={};for(var o=null,s=n;s>=0;s--){var l=wr[s],u=K(i)&&!z(i)?i[l]:i,f=void 0;z(u)?(f=u.slice(),o=f[0]||""):$(u)?(o=u,f=[o]):(o==null?o=ci[a]:m0[l].test(o)||(o=t[l][l][0]+" "+o),f=[o],e&&(f[1]="{primary|"+o+"}")),t[a][l]=f}}),t}function Ft(r,t){return r+="","0000".substr(0,t-r.length)+r}function ja(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function w0(r){return r===ja(r)}function C0(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function co(r,t,e,a){var n=Pr(r),i=n[Qh(e)](),o=n[Yl(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[Zl(e)](),u=n["get"+(e?"UTC":"")+"Day"](),f=n[Xl(e)](),c=(f-1)%12+1,h=n[$l(e)](),v=n[Kl(e)](),d=n[ql(e)](),p=f>=12?"pm":"am",y=p.toUpperCase(),g=a instanceof ye?a:Ns(a||qh)||g0(),m=g.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),b=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ft(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Ft(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ft(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ft(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Ft(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Ft(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Ft(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Ft(d,3)).replace(/{S}/g,d+"")}function M0(r,t,e,a,n){var i=null;if($(e))i=e;else if(j(e)){var o={time:r.time,level:r.time.level},s=ki();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=e(r.value,t,o)}else{var l=r.time;if(l){var u=e[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=Ri(r.value,n);i=e[f][f][0]}}return co(new Date(r.value),i,n,a)}function Ri(r,t){var e=Pr(r),a=e[Yl(t)]()+1,n=e[Zl(t)](),i=e[Xl(t)](),o=e[$l(t)](),s=e[Kl(t)](),l=e[ql(t)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&i===0,v=h&&n===1,d=v&&a===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Vs(r,t,e){switch(t){case"year":r[Jh(e)](0);case"month":r[ed(e)](1);case"day":r[td(e)](0);case"hour":r[rd(e)](0);case"minute":r[ad(e)](0);case"second":r[nd(e)](0)}return r}function Qh(r){return r?"getUTCFullYear":"getFullYear"}function Yl(r){return r?"getUTCMonth":"getMonth"}function Zl(r){return r?"getUTCDate":"getDate"}function Xl(r){return r?"getUTCHours":"getHours"}function $l(r){return r?"getUTCMinutes":"getMinutes"}function Kl(r){return r?"getUTCSeconds":"getSeconds"}function ql(r){return r?"getUTCMilliseconds":"getMilliseconds"}function T0(r){return r?"setUTCFullYear":"setFullYear"}function Jh(r){return r?"setUTCMonth":"setMonth"}function ed(r){return r?"setUTCDate":"setDate"}function td(r){return r?"setUTCHours":"setHours"}function rd(r){return r?"setUTCMinutes":"setMinutes"}function ad(r){return r?"setUTCSeconds":"setSeconds"}function nd(r){return r?"setUTCMilliseconds":"setMilliseconds"}function id(r){if(!Yy(r))return $(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function od(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,a){return a.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Ln=lh;function zs(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Tn(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?Pr(r):r;if(isNaN(+l)){if(s)return"-"}else return co(l,a,e)}if(t==="ordinal")return bs(r)?n(r):ve(r)&&i(r)?r+"":"-";var u=bi(r);return i(u)?id(u):bs(r)?n(r):typeof r=="boolean"?r+"":"-"}var uf=["a","b","c","d","e","f","g"],Lo=function(r,t){return"{"+r+(t??"")+"}"};function sd(r,t,e){z(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i<n.length;i++){var o=uf[i];r=r.replace(Lo(o),Lo(o,0))}for(var s=0;s<a;s++)for(var l=0;l<n.length;l++){var u=t[s][n[l]];r=r.replace(Lo(uf[l],s),e?Ze(u):u)}return r}function D0(r,t,e){return w(t,function(a,n){r=r.replace("{"+n+"}",a)}),r}function A0(r,t){var e=$(r)?{color:r,extraCssText:t}:r||{},a=e.color,n=e.type;t=e.extraCssText;var i=e.renderMode||"html";if(!a)return"";if(i==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ze(a)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ze(a)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function UT(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function Ar(r,t){return t=t||"transparent",$(r)?r:K(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function ff(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var vi={},Io={},vo=(function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(t,e){this._nonSeriesBoxMasterList=a(vi),this._normalMasterList=a(Io);function a(n,i){var o=[];return w(n,function(s,l){var u=s.create(t,e);o=o.concat(u||[])}),o}},r.prototype.update=function(t,e){w(this._normalMasterList,function(a){a.update&&a.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(t,e){if(t==="matrix"||t==="calendar"){vi[t]=e;return}Io[t]=e},r.get=function(t){return Io[t]||vi[t]},r})();function L0(r){return!!vi[r]}var Fs={coord:1,coord2:2};function I0(r){ld.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var ld=q();function P0(r){var t=r.getShallow("coord",!0),e=Fs.coord;if(t==null){var a=ld.get(r.type);a&&a.getCoord2&&(e=Fs.coord2,t=a.getCoord2(r))}return{coord:t,from:e}}var Tt={none:0,dataCoordSys:1,boxCoordSys:2};function k0(r,t){var e=r.getShallow("coordinateSystem"),a=r.getShallow("coordinateSystemUsage",!0),n=Tt.none;if(e){var i=r.mainType==="series";a==null&&(a=i?"data":"box"),a==="data"?(n=Tt.dataCoordSys,i||(n=Tt.none)):a==="box"&&(n=Tt.boxCoordSys,!i&&!L0(e)&&(n=Tt.none))}return{coordSysType:e,kind:n}}function ud(r){var t=r.targetModel,e=r.coordSysType,a=r.coordSysProvider,n=r.isDefaultDataCoordSys;r.allowNotFound;var i=k0(t),o=i.kind,s=i.coordSysType;if(n&&o!==Tt.dataCoordSys&&(o=Tt.dataCoordSys,s=e),o===Tt.none||s!==e)return!1;var l=a(e,t);return l?(o===Tt.dataCoordSys?t.coordinateSystem=l:t.boxCoordinateSystem=l,!0):!1}var R0=function(r,t){var e=t.getReferringComponents(r,Ne).models[0];return e&&e.coordinateSystem},hi=w,E0=["left","right","top","bottom","width","height"],Sr=[["width","left","right"],["height","top","bottom"]];function jl(r,t,e,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),h=c&&c.getBoundingRect(),v,d;if(r==="horizontal"){var p=f.width+(h?-h.x+f.x:0);v=i+p,v>a||l.newline?(i=0,v=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var y=f.height+(h?-h.y+f.y:0);d=o+y,d>n||l.newline?(i+=s+e,o=0,d=y,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+e:o=d+e)})}var na=jl;me(jl,"vertical");me(jl,"horizontal");function O0(r,t){return{left:r.getShallow("left",t),top:r.getShallow("top",t),right:r.getShallow("right",t),bottom:r.getShallow("bottom",t),width:r.getShallow("width",t),height:r.getShallow("height",t)}}function B0(r,t){var e=Rr(r,t,{enableLayoutOnlyByCenter:!0}),a=r.getBoxLayoutParams(),n,i;if(e.type===Ha.point)i=e.refPoint,n=rt(a,{width:t.getWidth(),height:t.getHeight()});else{var o=r.get("center"),s=z(o)?o:[o,o];n=rt(a,e.refContainer),i=e.boxCoordFrom===Fs.coord2?e.refPoint:[ne(s[0],n.width)+n.x,ne(s[1],n.height)+n.y]}return{viewRect:n,center:i}}function N0(r,t){var e=B0(r,t),a=e.viewRect,n=e.center,i=r.get("radius");z(i)||(i=[0,i]);var o=ne(a.width,t.getWidth()),s=ne(a.height,t.getHeight()),l=Math.min(o,s),u=ne(i[0],l/2),f=ne(i[1],l/2);return{cx:n[0],cy:n[1],r0:u,r:f,viewRect:a}}function rt(r,t,e){e=Ln(e||0);var a=t.width,n=t.height,i=ne(r.left,a),o=ne(r.top,n),s=ne(r.right,a),l=ne(r.bottom,n),u=ne(r.width,a),f=ne(r.height,n),c=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=a-s-h-i),isNaN(f)&&(f=n-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>a/n?u=a*.8:f=n*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(i)&&(i=a-s-u-h),isNaN(o)&&(o=n-l-f-c),r.left||r.right){case"center":i=a/2-u/2-e[3];break;case"right":i=a-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-e[0];break;case"bottom":o=n-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=a-h-i-(s||0)),isNaN(f)&&(f=n-c-o-(l||0));var d=new Ve((t.x||0)+i+e[3],(t.y||0)+o+e[0],u,f);return d.margin=e,d}var Ha={rect:1,point:2};function Rr(r,t,e){var a,n,i,o=r.boxCoordinateSystem,s;if(o){var l=P0(r),u=l.coord,f=l.from;if(o.dataToLayout){i=Ha.rect,s=f;var c=o.dataToLayout(u);a=c.contentRect||c.rect}else e&&e.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=Ha.point,s=f,n=o.dataToPoint(u))}return i==null&&(i=Ha.rect),i===Ha.rect&&(a||(a={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),n=[a.x+a.width/2,a.y+a.height/2]),{type:i,refContainer:a,refPoint:n,boxCoordFrom:s}}function V0(r,t,e,a,n,i){i=i||r,i.x=r.x,i.y=r.y;var o;if(o=r.getBoundingRect(),r.needLocalTransform()){var s=r.getLocalTransform();o=o.clone(),o.applyTransform(s)}var l=rt(ae({width:o.width,height:o.height},t),e,a),u=l.x-o.x,f=l.y-o.y;return i.x+=u,i.y+=f,i===r&&r.markRedraw(),!0}function z0(r,t){return r[Sr[t][0]]!=null||r[Sr[t][1]]!=null&&r[Sr[t][2]]!=null}function pn(r){var t=r.layoutMode||r.constructor.layoutMode;return K(t)?t:t?{type:t}:null}function Rt(r,t,e){var a=e&&e.ignoreSize;!z(a)&&(a=[a,a]);var n=o(Sr[0],0),i=o(Sr[1],1);l(Sr[0],r,n),l(Sr[1],r,i);function o(u,f){var c={},h=0,v={},d=0,p=2;if(hi(u,function(m){v[m]=r[m]}),hi(u,function(m){F(t,m)&&(c[m]=v[m]=t[m]),s(c,m)&&h++,s(v,m)&&d++}),a[f])return s(t,u[1])?v[u[2]]=null:s(t,u[2])&&(v[u[1]]=null),v;if(d===p||!h)return v;if(h>=p)return c;for(var y=0;y<u.length;y++){var g=u[y];if(!F(c,g)&&F(r,g)){c[g]=r[g];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){hi(u,function(h){f[h]=c[h]})}}function Er(r){return F0({},r)}function F0(r,t){return t&&r&&hi(E0,function(e){F(t,e)&&(r[e]=t[e])}),r}var G0=ie(),re=(function(r){W(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.uid=fo("ec_cpt_model"),i}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=pn(this),i=n?Er(e):{},o=a.getTheme();oe(e,o.get(this.mainType)),oe(e,this.getDefaultOption()),n&&Rt(e,i,n)},t.prototype.mergeOption=function(e,a){oe(this.option,e,!0);var n=pn(this);n&&Rt(this.option,e,n)},t.prototype.optionUpdated=function(e,a){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!hm(e))return e.defaultOption;var a=G0(this);if(!a.defaultOption){for(var n=[],i=e;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=oe(s,n[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return da(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},a)},t.prototype.getBoxLayoutParams=function(){return O0(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=(function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0})(),t})(ye);Dh(re,ye);no(re);c0(re);v0(re,H0);function H0(r){var t=[];return w(re.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=X(t,function(e){return mt(e).main}),r!=="dataset"&&ue(t,"dataset")<=0&&t.unshift("dataset"),t}var O={color:{},darkColor:{},size:{}},_e=O.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)"};U(_e,{primary:_e.neutral80,secondary:_e.neutral70,tertiary:_e.neutral60,quaternary:_e.neutral50,disabled:_e.neutral20,border:_e.neutral30,borderTint:_e.neutral20,borderShade:_e.neutral40,background:_e.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:_e.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:_e.neutral70,axisLineTint:_e.neutral40,axisTick:_e.neutral70,axisTickMinor:_e.neutral60,axisLabel:_e.neutral70,axisSplitLine:_e.neutral15,axisMinorSplitLine:_e.neutral05});for(var fr in _e)if(_e.hasOwnProperty(fr)){var cf=_e[fr];fr==="theme"?O.darkColor.theme=_e.theme.slice():fr==="highlight"?O.darkColor.highlight="rgba(255,231,130,0.4)":fr.indexOf("accent")===0?O.darkColor[fr]=ta(cf,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):O.darkColor[fr]=ta(cf,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}O.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var fd="";typeof navigator<"u"&&(fd=navigator.platform||"");var Gr="rgba(0, 0, 0, 0.2)",cd=O.color.theme[0],W0=ta(cd,null,null,.9);const U0={darkMode:"auto",colorBy:"series",color:O.color.theme,gradientColor:[W0,cd],aria:{decal:{decals:[{color:Gr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Gr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Gr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Gr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Gr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Gr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:fd.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 vd=q(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),qe="original",Fe="arrayRows",nt="objectRows",ht="keyedColumns",Jt="typedArray",hd="unknown",ft="column",Or="row",Pe={Must:1,Might:2,Not:3},dd=ie();function Y0(r){dd(r).datasetMap=q()}function Z0(r,t,e){var a={},n=Ql(t);if(!n||!r)return a;var i=[],o=[],s=t.ecModel,l=dd(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,f,c;r=r.slice(),w(r,function(p,y){var g=K(p)?p:r[y]={name:p};g.type==="ordinal"&&f==null&&(f=y,c=d(g)),a[g.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});w(r,function(p,y){var g=p.name,m=d(p);if(f==null){var _=h.valueWayDim;v(a[g],_,m),v(o,_,m),h.valueWayDim+=m}else if(f===y)v(a[g],0,m),v(i,0,m);else{var _=h.categoryWayDim;v(a[g],_,m),v(o,_,m),h.categoryWayDim+=m}});function v(p,y,g){for(var m=0;m<g;m++)p.push(y+m)}function d(p){var y=p.dimsDef;return y?y.length:1}return i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function X0(r,t,e){var a={},n=Ql(r);if(!n)return a;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===nt||i===ht)&&w(o,function(f,c){(K(f)?f.name:f)==="name"&&(s=c)});var l=(function(){for(var f={},c={},h=[],v=0,d=Math.min(5,e);v<d;v++){var p=gd(t.data,i,t.seriesLayoutBy,o,t.startIndex,v);h.push(p);var y=p===Pe.Not;if(y&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!y&&h[f.n]===Pe.Not)&&(f.n=v),g(f)&&h[f.n]!==Pe.Not)return f;y||(p===Pe.Might&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v)&&(c.n=v))}function g(m){return m.v!=null&&m.n!=null}return g(f)?f:g(c)?c:null})();if(l){a.value=[l.v];var u=s??l.n;a.itemName=[u],a.seriesName=[u]}return a}function Ql(r){var t=r.get("data",!0);if(!t)return da(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Ne).models[0]}function $0(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:da(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Ne).models}function pd(r,t){return gd(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function gd(r,t,e,a,n,i){var o,s=5;if(Ke(r))return Pe.Not;var l,u;if(a){var f=a[i];K(f)?(l=f.name,u=f.type):$(f)&&(l=f)}if(u!=null)return u==="ordinal"?Pe.Must:Pe.Not;if(t===Fe){var c=r;if(e===Or){for(var h=c[i],v=0;v<(h||[]).length&&v<s;v++)if((o=S(h[n+v]))!=null)return o}else for(var v=0;v<c.length&&v<s;v++){var d=c[n+v];if(d&&(o=S(d[i]))!=null)return o}}else if(t===nt){var p=r;if(!l)return Pe.Not;for(var v=0;v<p.length&&v<s;v++){var y=p[v];if(y&&(o=S(y[l]))!=null)return o}}else if(t===ht){var g=r;if(!l)return Pe.Not;var h=g[l];if(!h||Ke(h))return Pe.Not;for(var v=0;v<h.length&&v<s;v++)if((o=S(h[v]))!=null)return o}else if(t===qe)for(var m=r,v=0;v<m.length&&v<s;v++){var y=m[v],_=An(y);if(!z(_))return Pe.Not;if((o=S(_[i]))!=null)return o}function S(b){var x=$(b);if(b!=null&&Number.isFinite(Number(b))&&b!=="")return x?Pe.Might:Pe.Not;if(x&&b!=="-")return Pe.Must}return Pe.Not}var K0=q();function q0(r,t,e){var a=K0.get(t);if(!a)return e;var n=a(r);return n?e.concat(n):e}var vf=ie();ie();var Jl=(function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,a){var n=Ae(this.get("color",!0)),i=this.get("colorLayer",!0);return Q0(this,vf,n,i,t,e,a)},r.prototype.clearColorPalette=function(){J0(this,vf)},r})();function j0(r,t){for(var e=r.length,a=0;a<e;a++)if(r[a].length>t)return r[a];return r[e-1]}function Q0(r,t,e,a,n,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!a?e:j0(a,o);if(f=f||e,!(!f||!f.length)){var c=f[l];return n&&(u[n]=c),s.paletteIdx=(l+1)%f.length,c}}function J0(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Nn,xa,hf,df="\0_ec_inner",e_=1,eu=(function(r){W(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,a,n,i,o,s){i=i||{},this.option=null,this._theme=new ye(i),this._locale=new ye(o),this._optionManager=s},t.prototype.setOption=function(e,a,n){var i=yf(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,yf(a))},t.prototype._resetOption=function(e,a){var n=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?hf(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&w(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=q(),u=a&&a.replaceMergeMainTypeMap;Y0(this),w(e,function(c,h){c!=null&&(re.hasClass(h)?h&&(s.push(h),l.set(h,!0)):n[h]=n[h]==null?ee(c):oe(n[h],c,!0))}),u&&u.each(function(c,h){re.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),re.topologicalTravel(s,re.getAllClassMainTypes(),f,this);function f(c){var h=q0(this,c,Ae(e[c])),v=i.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=jy(v,h,d);nm(p,c,re),n[c]=null,i.set(c,null),o.set(c,0);var y=[],g=[],m=0,_;w(p,function(S,b){var x=S.existing,C=S.newOption;if(!C)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=c==="series",D=re.getClass(c,S.keyInfo.subType,!T);if(!D)return;if(c==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===D)x.name=S.keyInfo.name,x.mergeOption(C,this),x.optionUpdated(C,!1);else{var A=U({componentIndex:b},S.keyInfo);x=new D(C,this,this,A),U(x,A),S.brandNew&&(x.__requireNewView=!0),x.init(C,this,this),x.optionUpdated(null,!0)}}x?(y.push(x.option),g.push(x),m++):(y.push(void 0),g.push(void 0))},this),n[c]=y,i.set(c,g),o.set(c,m),c==="series"&&Nn(this)}this._seriesIndices||Nn(this)},t.prototype.getOption=function(){var e=ee(this.option);return w(e,function(a,n){if(re.hasClass(n)){for(var i=Ae(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!sn(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[df],e},t.prototype.setTheme=function(e){this._theme=new ye(e),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,a){var n=this._componentsMap.get(e);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(e){var a=e.mainType;if(!a)return[];var n=e.index,i=e.id,o=e.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return n!=null?(l=[],w(Ae(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=pf("id",i,s):o!=null?l=pf("name",o,s):l=Me(s,function(u){return!!u}),gf(l,e)},t.prototype.findComponents=function(e){var a=e.query,n=e.mainType,i=s(a),o=i?this.queryComponents(i):Me(this._componentsMap.get(n),function(u){return!!u});return l(gf(o,e));function s(u){var f=n+"Index",c=n+"Id",h=n+"Name";return u&&(u[f]!=null||u[c]!=null||u[h]!=null)?{mainType:n,index:u[f],id:u[c],name:u[h]}:null}function l(u){return e.filter?Me(u,e.filter):u}},t.prototype.eachComponent=function(e,a,n){var i=this._componentsMap;if(j(e)){var o=a,s=e;i.each(function(c,h){for(var v=0;c&&v<c.length;v++){var d=c[v];d&&s.call(o,h,d,d.componentIndex)}})}else for(var l=$(e)?i.get(e):K(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&a.call(n,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var a=ut(e,null);return Me(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Me(this._componentsMap.get("series"),function(a){return!!a&&a.subType===e})},t.prototype.getSeries=function(){return Me(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,a){xa(this),w(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];e.call(a,i,n)},this)},t.prototype.eachRawSeries=function(e,a){w(this._componentsMap.get("series"),function(n){n&&e.call(a,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,a,n){xa(this),w(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===e&&a.call(n,o,i)},this)},t.prototype.eachRawSeriesByType=function(e,a,n){return w(this.getSeriesByType(e),a,n)},t.prototype.isSeriesFiltered=function(e){return xa(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,a){xa(this);var n=[];w(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];e.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=q(n)},t.prototype.restoreData=function(e){Nn(this);var a=this._componentsMap,n=[];a.each(function(i,o){re.hasClass(o)&&n.push(o)}),re.topologicalTravel(n,re.getAllClassMainTypes(),function(i){w(a.get(i),function(o){o&&(i!=="series"||!t_(o,e))&&o.restoreData()})})},t.internalField=(function(){Nn=function(e){var a=e._seriesIndices=[];w(e._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),e._seriesIndicesMap=q(a)},xa=function(e){},hf=function(e,a){e.option={},e.option[df]=e_,e._componentsMap=q({series:[]}),e._componentsCount=q();var n=a.aria;K(n)&&n.enabled==null&&(n.enabled=!0),r_(a,e._theme.option),oe(a,U0,!1),e._mergeOption(a,null)}})(),t})(ye);function t_(r,t){if(t){var e=t.seriesIndex,a=t.seriesId,n=t.seriesName;return e!=null&&r.componentIndex!==e||a!=null&&r.id!==a||n!=null&&r.name!==n}}function r_(r,t){var e=r.color&&!r.colorLayer;w(t,function(a,n){n==="colorLayer"&&e||n==="color"&&r.color||re.hasClass(n)||(typeof a=="object"?r[n]=r[n]?oe(r[n],a,!1):ee(a):r[n]==null&&(r[n]=a))})}function pf(r,t,e){if(z(t)){var a=q();return w(t,function(i){if(i!=null){var o=ut(i,null);o!=null&&a.set(i,!0)}}),Me(e,function(i){return i&&a.get(i[r])})}else{var n=ut(t,null);return Me(e,function(i){return i&&n!=null&&i[r]===n})}}function gf(r,t){return t.hasOwnProperty("subType")?Me(r,function(e){return e&&e.subType===t.subType}):r}function yf(r){var t=q();return r&&w(Ae(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Ot(eu,Jl);var a_=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],yd=(function(){function r(t){w(a_,function(e){this[e]=Z(t[e],t)},this)}return r})(),n_=/^(min|max)?(.+)$/,i_=(function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,a){t&&(w(Ae(t.series),function(o){o&&o.data&&Ke(o.data)&&_i(o.data)}),w(Ae(t.dataset),function(o){o&&o.source&&Ke(o.source)&&_i(o.source)})),t=ee(t);var n=this._optionBackup,i=o_(t,e,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],ee(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,a=this._timelineOptions;if(a.length){var n=t.getComponent("timeline");n&&(e=ee(a[n.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),a=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!n.length&&!i)return s;for(var l=0,u=n.length;l<u;l++)s_(n[l].query,e,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!u_(o,this._currentMediaIndices)&&(s=X(o,function(f){return ee(f===-1?i.option:n[f].option)})),this._currentMediaIndices=o,s},r})();function o_(r,t,e){var a=[],n,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,c=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((c||f)&&(r.options=r.media=null),i=r),f&&z(u)&&w(u,function(v){v&&v.option&&(v.query?a.push(v):n||(n=v))}),h(i),w(l,function(v){return h(v)}),w(a,function(v){return h(v.option)});function h(v){w(t,function(d){d(v,e)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}function s_(r,t,e){var a={width:t,height:e,aspectratio:t/e},n=!0;return w(r,function(i,o){var s=o.match(n_);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();l_(a[u],i,l)||(n=!1)}}),n}function l_(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function u_(r,t){return r.join(",")===t.join(",")}var it=w,gn=K,mf=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Po(r){var t=r&&r.itemStyle;if(t)for(var e=0,a=mf.length;e<a;e++){var n=mf[e],i=t.normal,o=t.emphasis;i&&i[n]&&(r[n]=r[n]||{},r[n].normal?oe(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?oe(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Be(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var a=r[t].normal,n=r[t].emphasis;a&&(e?(r[t].normal=r[t].emphasis=null,ae(r[t],a)):r[t]=a),n&&(r.emphasis=r.emphasis||{},r.emphasis[t]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function Wa(r){Be(r,"itemStyle"),Be(r,"lineStyle"),Be(r,"areaStyle"),Be(r,"label"),Be(r,"labelLine"),Be(r,"upperLabel"),Be(r,"edgeLabel")}function xe(r,t){var e=gn(r)&&r[t],a=gn(e)&&e.textStyle;if(a)for(var n=0,i=Wu.length;n<i;n++){var o=Wu[n];a.hasOwnProperty(o)&&(e[o]=a[o])}}function Je(r){r&&(Wa(r),xe(r,"label"),r.emphasis&&xe(r.emphasis,"label"))}function f_(r){if(gn(r)){Po(r),Wa(r),xe(r,"label"),xe(r,"upperLabel"),xe(r,"edgeLabel"),r.emphasis&&(xe(r.emphasis,"label"),xe(r.emphasis,"upperLabel"),xe(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Po(t),Je(t));var e=r.markLine;e&&(Po(e),Je(e));var a=r.markArea;a&&Je(a);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var i=r.links||r.edges;if(i&&!Ke(i))for(var o=0;o<i.length;o++)Je(i[o]);w(r.categories,function(u){Wa(u)})}if(n&&!Ke(n))for(var o=0;o<n.length;o++)Je(n[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Je(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)z(l[o])?(Je(l[o][0]),Je(l[o][1])):Je(l[o]);r.type==="gauge"?(xe(r,"axisLabel"),xe(r,"title"),xe(r,"detail")):r.type==="treemap"?(Be(r.breadcrumb,"itemStyle"),w(r.levels,function(u){Wa(u)})):r.type==="tree"&&Wa(r.leaves)}}function wt(r){return z(r)?r:r?[r]:[]}function _f(r){return(z(r)?r[0]:r)||{}}function c_(r,t){it(wt(r.series),function(a){gn(a)&&f_(a)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),it(e,function(a){it(wt(r[a]),function(n){n&&(xe(n,"axisLabel"),xe(n.axisPointer,"label"))})}),it(wt(r.parallel),function(a){var n=a&&a.parallelAxisDefault;xe(n,"axisLabel"),xe(n&&n.axisPointer,"label")}),it(wt(r.calendar),function(a){Be(a,"itemStyle"),xe(a,"dayLabel"),xe(a,"monthLabel"),xe(a,"yearLabel")}),it(wt(r.radar),function(a){xe(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),it(wt(r.geo),function(a){gn(a)&&(Je(a),it(wt(a.regions),function(n){Je(n)}))}),it(wt(r.timeline),function(a){Je(a),Be(a,"label"),Be(a,"itemStyle"),Be(a,"controlStyle",!0);var n=a.data;z(n)&&w(n,function(i){K(i)&&(Be(i,"label"),Be(i,"itemStyle"))})}),it(wt(r.toolbox),function(a){Be(a,"iconStyle"),it(a.feature,function(n){Be(n,"iconStyle")})}),xe(_f(r.axisPointer),"label"),xe(_f(r.tooltip).axisPointer,"label")}function v_(r,t){for(var e=t.split(","),a=r,n=0;n<e.length&&(a=a&&a[e[n]],a!=null);n++);return a}function h_(r,t,e,a){for(var n=t.split(","),i=r,o,s=0;s<n.length-1;s++)o=n[s],i[o]==null&&(i[o]={}),i=i[o];i[n[s]]==null&&(i[n[s]]=e)}function Sf(r){r&&w(d_,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var d_=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],p_=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],ko=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ba(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<ko.length;e++){var a=ko[e][1],n=ko[e][0];t[a]!=null&&(t[n]=t[a])}}function xf(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function bf(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function g_(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function md(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&md(r[e].children,t)}function _d(r,t){c_(r,t),r.series=Ae(r.series),w(r.series,function(e){if(K(e)){var a=e.type;if(a==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(a==="pie"||a==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),xf(e.label);var n=e.data;if(n&&!Ke(n))for(var i=0;i<n.length;i++)xf(n[i]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(a==="gauge"){var o=v_(e,"pointer.color");o!=null&&h_(e,"itemStyle.color",o)}else if(a==="bar"){ba(e),ba(e.backgroundStyle),ba(e.emphasis);var n=e.data;if(n&&!Ke(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(ba(n[i]),ba(n[i]&&n[i].emphasis))}else if(a==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),bf(e),md(e.data,bf)}else a==="graph"||a==="sankey"?g_(e):a==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&ae(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Sf(e)}}),r.dataRange&&(r.visualMap=r.dataRange),w(p_,function(e){var a=r[e];a&&(z(a)||(a=[a]),w(a,function(n){Sf(n)}))})}function y_(r){var t=q();r.eachSeries(function(e){var a=e.get("stack");if(a){var n=t.get(a)||t.set(a,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),t.each(function(e){if(e.length!==0){var a=e[0].seriesModel,n=a.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&e.reverse(),w(e,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?e[o-1].seriesModel:null)}),m_(e)}})}function m_(r){w(r,function(t,e){var a=[],n=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,c){var h=o.get(t.stackedDimension,c);if(isNaN(h))return n;var v,d;s?d=o.getRawIndex(c):v=o.get(t.stackedByDimension,c);for(var p=NaN,y=e-1;y>=0;y--){var g=r[y];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,v)),d>=0){var m=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&h>=0&&m>0||l==="samesign"&&h<=0&&m<0){h=Hy(h,m),p=m;break}}}return a[0]=h,a[1]=p,a})})}var ho=(function(){function r(t){this.data=t.data||(t.sourceFormat===ht?{}:[]),this.sourceFormat=t.sourceFormat||hd,this.seriesLayoutBy=t.seriesLayoutBy||ft,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var a=0;a<e.length;a++){var n=e[a];n.type==null&&pd(this,a)===Pe.Must&&(n.type="ordinal")}}return r})();function tu(r){return r instanceof ho}function Gs(r,t,e){e=e||xd(r);var a=t.seriesLayoutBy,n=S_(r,e,a,t.sourceHeader,t.dimensions),i=new ho({data:r,sourceFormat:e,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:ee(t)});return i}function Sd(r){return new ho({data:r,sourceFormat:Ke(r)?Jt:qe})}function __(r){return new ho({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:ee(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function xd(r){var t=hd;if(Ke(r))t=Jt;else if(z(r)){r.length===0&&(t=Fe);for(var e=0,a=r.length;e<a;e++){var n=r[e];if(n!=null){if(z(n)||Ke(n)){t=Fe;break}else if(K(n)){t=nt;break}}}}else if(K(r)){for(var i in r)if(F(r,i)&&Mn(r[i])){t=ht;break}}return t}function S_(r,t,e,a,n){var i,o;if(!r)return{dimensionsDefine:wf(n),startIndex:o,dimensionsDetectedCount:i};if(t===Fe){var s=r;a==="auto"||a==null?Cf(function(u){u!=null&&u!=="-"&&($(u)?o==null&&(o=1):o=0)},e,s,10):o=ve(a)?a:a?1:0,!n&&o===1&&(n=[],Cf(function(u,f){n[f]=u!=null?u+"":""},e,s,1/0)),i=n?n.length:e===Or?s.length:s[0]?s[0].length:null}else if(t===nt)n||(n=x_(r));else if(t===ht)n||(n=[],w(r,function(u,f){n.push(f)}));else if(t===qe){var l=An(r[0]);i=z(l)&&l.length||1}return{startIndex:o,dimensionsDefine:wf(n),dimensionsDetectedCount:i}}function x_(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return Ie(e)}function wf(r){if(r){var t=q();return X(r,function(e,a){e=K(e)?e:{name:e};var n={name:e.name,displayName:e.displayName,type:e.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var i=t.get(n.name);return i?n.name+="-"+i.count++:t.set(n.name,{count:1}),n})}}function Cf(r,t,e,a){if(t===Or)for(var n=0;n<e.length&&n<a;n++)r(e[n]?e[n][0]:null,n);else for(var i=e[0]||[],n=0;n<i.length&&n<a;n++)r(i[n],n)}function bd(r){var t=r.sourceFormat;return t===nt||t===ht}var cr,vr,hr,dr,Mf,Tf,wd=(function(){function r(t,e){var a=tu(t)?t:Sd(t);this._source=a;var n=this._data=a.data,i=a.sourceFormat;a.seriesLayoutBy,i===Jt&&(this._offset=0,this._dimSize=e,this._data=n),Tf(this,n,a)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=(function(){var t=r.prototype;t.pure=!1,t.persistent=!0})(),r.internalField=(function(){var t;Tf=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,v=Mf[ru(u,f)];if(U(o,v),u===Jt)o.getItem=e,o.count=n,o.fillStorage=a;else{var d=Cd(u,f);o.getItem=Z(d,null,s,c,h);var p=Md(u,f);o.count=Z(p,null,s,c,h)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},a=function(o,s,l,u){for(var f=this._data,c=this._dimSize,h=0;h<c;h++){for(var v=u[h],d=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],y=s-o,g=l[h],m=0;m<y;m++){var _=f[m*c+h];g[o+m]=_,_<d&&(d=_),_>p&&(p=_)}v[0]=d,v[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};Mf=(t={},t[Fe+"_"+ft]={pure:!0,appendData:i},t[Fe+"_"+Or]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[nt]={pure:!0,appendData:i},t[ht]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[qe]={appendData:i},t[Jt]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})(),Vn=function(r){z(r)||xh("series.data or dataset.source must be an array.")};cr={},cr[Fe+"_"+ft]=Vn,cr[Fe+"_"+Or]=Vn,cr[nt]=Vn,cr[ht]=function(r,t){for(var e=0;e<t.length;e++){var a=t[e].name;a==null&&xh("dimension name must not be null/undefined.")}},cr[qe]=Vn;var Df=function(r,t,e,a){return r[a]},b_=(vr={},vr[Fe+"_"+ft]=function(r,t,e,a){return r[a+t]},vr[Fe+"_"+Or]=function(r,t,e,a,n){a+=t;for(var i=n||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[a]:null}return i},vr[nt]=Df,vr[ht]=function(r,t,e,a,n){for(var i=n||[],o=0;o<e.length;o++){var s=e[o].name,l=s!=null?r[s]:null;i[o]=l?l[a]:null}return i},vr[qe]=Df,vr);function Cd(r,t){var e=b_[ru(r,t)];return e}var Af=function(r,t,e){return r.length},w_=(hr={},hr[Fe+"_"+ft]=function(r,t,e){return Math.max(0,r.length-t)},hr[Fe+"_"+Or]=function(r,t,e){var a=r[0];return a?Math.max(0,a.length-t):0},hr[nt]=Af,hr[ht]=function(r,t,e){var a=e[0].name,n=a!=null?r[a]:null;return n?n.length:0},hr[qe]=Af,hr);function Md(r,t){var e=w_[ru(r,t)];return e}var Ro=function(r,t,e){return r[t]},C_=(dr={},dr[Fe]=Ro,dr[nt]=function(r,t,e){return r[e]},dr[ht]=Ro,dr[qe]=function(r,t,e){var a=An(r);return a instanceof Array?a[t]:a},dr[Jt]=Ro,dr);function Td(r){var t=C_[r];return t}function ru(r,t){return r===Fe?r+"_"+t:r}function la(r,t,e){if(r){var a=r.getRawDataItem(t);if(a!=null){var n=r.getStore(),i=n.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=n.getDimensionProperty(o);return Td(i)(a,o,s)}else{var l=a;return i===qe&&(l=An(a)),l}}}}var M_=/\{@(.+?)\}/g,T_=(function(){function r(){}return r.prototype.getDataParams=function(t,e){var a=this.getData(e),n=this.getRawValue(t,e),i=a.getRawIndex(t),o=a.getName(t),s=a.getRawDataItem(t),l=a.getItemVisual(t,"style"),u=l&&l[a.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,h=c==="series",v=a.userOutput&&a.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:s,dataType:e,value:n,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,a,n,i,o){e=e||"normal";var s=this.getData(a),l=this.getDataParams(t,a);if(o&&(l.value=o.interpolatedValue),n!=null&&z(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(t);i=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(j(i))return l.status=e,l.dimensionIndex=n,i(l);if($(i)){var f=sd(i,l);return f.replace(M_,function(c,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var p=la(s,t,d);if(o&&z(o.interpolatedValue)){var y=s.getDimensionIndex(d);y>=0&&(p=o.interpolatedValue[y])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return la(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r})();function Lf(r){var t,e;return K(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Qa(r){return new D_(r)}var D_=(function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,a=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(a)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!a&&(c||v<d)){var p=this._progress;if(z(p))for(var y=0;y<p.length;y++)this._doProgress(p[y],v,d,l,u);else this._doProgress(p,v,d,l,u)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,a,n,i){If.reset(e,a,n,i),this._callingProgress=t,this._callingProgress({start:e,end:a,count:a-e,next:If.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,a;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(a=e.forceFirstProgress,e=e.progress),z(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),a},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r})(),If=(function(){var r,t,e,a,n,i={reset:function(l,u,f,c){t=l,r=u,e=f,a=c,n=Math.ceil(a/e),i.next=e>1&&a>0?s:o}};return i;function o(){return t<r?t++:null}function s(){var l=t%n*e+Math.ceil(t/n),u=t>=r?null:l<a?l:t;return t++,u}})();function di(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!ve(r)&&r!=null&&r!=="-"&&(r=+Pr(r)),r==null||r===""?NaN:Number(r))}q({number:function(r){return parseFloat(r)},time:function(r){return+Pr(r)},trim:function(r){return $(r)?Tn(r):r}});var A_=(function(){function r(t,e){var a=t==="desc";this._resultLT=a?1:-1,e==null&&(e=a?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var a=ve(t)?t:bi(t),n=ve(e)?e:bi(e),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=$(t),l=$(e);s&&(a=l?t:0),l&&(n=s?e:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r})(),L_=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return di(t,e)},r})();function I_(r,t){var e=new L_,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==ft&&ke(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(p,y){var g=p.name,m={index:y,name:g,displayName:p.displayName};if(s.push(m),g!=null){var _="";F(l,g)&&ke(_),l[g]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var c=Cd(n,ft);t.__isBuiltIn&&(e.getRawDataItem=function(p){return c(a,i,s,p)},e.getRawData=Z(P_,null,r)),e.cloneRawData=Z(k_,null,r);var h=Md(n,ft);e.count=Z(h,null,a,i,s);var v=Td(n);e.retrieveValue=function(p,y){var g=c(a,i,s,p);return d(g,y)};var d=e.retrieveValueFromItem=function(p,y){if(p!=null){var g=s[y];if(g)return v(p,y,g.name)}};return e.getDimensionInfo=Z(R_,null,s,l),e.cloneAllDimensionInfo=Z(E_,null,s),e}function P_(r){var t=r.sourceFormat;if(!au(t)){var e="";ke(e)}return r.data}function k_(r){var t=r.sourceFormat,e=r.data;if(!au(t)){var a="";ke(a)}if(t===Fe){for(var n=[],i=0,o=e.length;i<o;i++)n.push(e[i].slice());return n}else if(t===nt){for(var n=[],i=0,o=e.length;i<o;i++)n.push(U({},e[i]));return n}}function R_(r,t,e){if(e!=null){if(ve(e)||!isNaN(e)&&!F(t,e))return r[e];if(F(t,e))return t[e]}}function E_(r){return ee(r)}var Dd=q();function O_(r){r=ee(r);var t=r.type,e="";t||ke(e);var a=t.split(":");a.length!==2&&ke(e);var n=!1;a[0]==="echarts"&&(t=a[1],n=!0),r.__isBuiltIn=n,Dd.set(t,r)}function B_(r,t,e){var a=Ae(r),n=a.length,i="";n||ke(i);for(var o=0,s=n;o<s;o++){var l=a[o];t=N_(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function N_(r,t,e,a){var n="";t.length||ke(n),K(r)||ke(n);var i=r.type,o=Dd.get(i);o||ke(n);var s=X(t,function(u){return I_(u,o)}),l=Ae(o.transform({upstream:s[0],upstreamList:s,config:ee(r.config)}));return X(l,function(u,f){var c="";K(u)||ke(c),u.data||ke(c);var h=xd(u.data);au(h)||ke(c);var v,d=t[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),v={seriesLayoutBy:ft,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:ft,sourceHeader:0,dimensions:u.dimensions};return Gs(u.data,v,null)})}function au(r){return r===Fe||r===nt}var po="undefined",V_=typeof Uint32Array===po?Array:Uint32Array,z_=typeof Uint16Array===po?Array:Uint16Array,Ad=typeof Int32Array===po?Array:Int32Array,Pf=typeof Float64Array===po?Array:Float64Array,Ld={float:Pf,int:Ad,ordinal:Array,number:Array,time:Pf},Eo;function Hr(r){return r>65535?V_:z_}function Wr(){return[1/0,-1/0]}function F_(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function kf(r,t,e,a,n){var i=Ld[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new i(a)}var Hs=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=q()}return r.prototype.initData=function(t,e,a){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),i=this.defaultDimValueGetter=Eo[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],bd(n),this._dimensions=X(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(t);if(i!=null){if(n[i].type===e)return i}else i=n.length;return n[i]={type:e},a.set(t,i),this._chunks[i]=new Ld[e||"float"](this._rawCount),this._rawExtent[i]=Wr(),i},r.prototype.collectOrdinalMeta=function(t,e){var a=this._chunks[t],n=this._dimensions[t],i=this._rawExtent,o=n.ordinalOffset||0,s=a.length;o===0&&(i[t]=Wr());for(var l=i[t],u=o;u<s;u++){var f=a[u]=e.parseAndCollect(a[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=e,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],a=e.ordinalMeta;return a},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,a=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},r.prototype.appendValues=function(t,e){for(var a=this._chunks,n=this._dimensions,i=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<i;u++){var f=n[u];kf(a,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var v=h-s,d=0;d<i;d++){var f=n[d],p=Eo.arrayRows.call(this,t[v]||c,f.property,v,d);a[d][h]=p;var y=o[d];p<y[0]&&(y[0]=p),p>y[1]&&(y[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=X(o,function(m){return m.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=Wr()),kf(i,f,c.type,e,a)}if(n.fillStorage)n.fillStorage(t,e,i,l);else for(var h=[],v=t;v<e;v++){h=n.getItem(v,h);for(var d=0;d<s;d++){var p=i[d],y=this._dimValueGetter(h,u[d],v,d);p[v]=y;var g=l[d];y<g[0]&&(g[0]=y),y>g[1]&&(g[1]=y)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var a=this._chunks[t];return a?a[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var a=[],n=[];if(e==null){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)n.push(i)}else n=t;for(var i=0,o=n.length;i<o;i++)a.push(this.get(n[i],e));return a},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var a=this._chunks[t];return a?a[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],a=0;if(e)for(var n=0,i=this.count();n<i;n++){var o=this.get(t,n);isNaN(o)||(a+=o)}return a},r.prototype.getMedian=function(t){var e=[];this.each([t],function(i){isNaN(i)||e.push(i)});var a=e.sort(function(i,o){return i-o}),n=this.count();return n===0?0:n%2===1?a[(n-1)/2]:(a[n/2]+a[n/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,a=e[t];if(a!=null&&a<this._count&&a===t)return t;for(var n=0,i=this._count-1;n<=i;){var o=(n+i)/2|0;if(e[o]<t)n=o+1;else if(e[o]>t)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var a=e.constructor,n=this._count;if(a===Array){t=new a(n);for(var i=0;i<n;i++)t[i]=e[i]}else t=new a(e.buffer,0,n)}else{var a=Hr(this._rawCount);t=new a(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var a=this.clone(),n=a.count(),i=Hr(a._rawCount),o=new i(n),s=[],l=t.length,u=0,f=t[0],c=a._chunks,h=0;h<n;h++){var v=void 0,d=a.getRawIndex(h);if(l===0)v=e(h);else if(l===1){var p=c[f][d];v=e(p,h)}else{for(var y=0;y<l;y++)s[y]=c[t[y]][d];s[y]=h,v=e.apply(null,s)}v&&(o[u++]=d)}return u<n&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},r.prototype.selectRange=function(t){var e=this.clone(),a=e._count;if(!a)return this;var n=Ie(t),i=n.length;if(!i)return this;var o=e.count(),s=Hr(e._rawCount),l=new s(o),u=0,f=n[0],c=t[f][0],h=t[f][1],v=e._chunks,d=!1;if(!e._indices){var p=0;if(i===1){for(var y=v[n[0]],g=0;g<a;g++){var m=y[g];(m>=c&&m<=h||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var y=v[n[0]],_=v[n[1]],S=t[n[1]][0],b=t[n[1]][1],g=0;g<a;g++){var m=y[g],x=_[g];(m>=c&&m<=h||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var g=0;g<o;g++){var C=e.getRawIndex(g),m=v[n[0]][C];(m>=c&&m<=h||isNaN(m))&&(l[u++]=C)}else for(var g=0;g<o;g++){for(var T=!0,C=e.getRawIndex(g),D=0;D<i;D++){var A=n[D],m=v[A][C];(m<t[A][0]||m>t[A][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(g))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var a=this.clone(t);return this._updateDims(a,t,e),a},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,a){for(var n=t._chunks,i=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=Wr();for(var c=0;c<s;c++){for(var h=t.getRawIndex(c),v=0;v<o;v++)l[v]=n[e[v]][h];l[o]=c;var d=a&&a.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var p=e[f],y=d[f],g=u[p],m=n[p];m&&(m[h]=y),y<g[0]&&(g[0]=y),y>g[1]&&(g[1]=y)}}}},r.prototype.lttbDownSample=function(t,e){var a=this.clone([t],!0),n=a._chunks,i=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,c,h,v=new(Hr(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),y=Math.min(d+l*2,o),g=(y+p)/2,m=0,_=p;_<y;_++){var S=this.getRawIndex(_),b=i[S];isNaN(b)||(m+=b)}m/=y-p;var x=d,C=Math.min(d+l,o),T=d-1,D=i[u];f=-1,h=x;for(var A=-1,M=0,_=x;_<C;_++){var S=this.getRawIndex(_),b=i[S];if(isNaN(b)){M++,A<0&&(A=S);continue}c=Math.abs((T-g)*(b-D)-(T-_)*(m-D)),c>f&&(f=c,h=S)}M>0&&M<C-x&&(v[s++]=Math.min(A,h),h=Math.max(A,h)),v[s++]=h,u=h}return v[s++]=this.getRawIndex(o-1),a._count=s,a._indices=v,a.getRawIndex=this._getRawIdx,a},r.prototype.minmaxDownSample=function(t,e){for(var a=this.clone([t],!0),n=a._chunks,i=Math.floor(1/e),o=n[t],s=this.count(),l=new(Hr(this._rawCount))(Math.ceil(s/i)*2),u=0,f=0;f<s;f+=i){var c=f,h=o[this.getRawIndex(c)],v=f,d=o[this.getRawIndex(v)],p=i;f+i>s&&(p=s-f);for(var y=0;y<p;y++){var g=this.getRawIndex(f+y),m=o[g];m<h&&(h=m,c=f+y),m>d&&(d=m,v=f+y)}var _=this.getRawIndex(c),S=this.getRawIndex(v);c<v?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return a._count=u,a._indices=l,a._updateGetRawIdx(),a},r.prototype.downSample=function(t,e,a,n){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),c=i._rawExtent[t]=Wr(),h=new(Hr(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var y=this.getRawIndex(d+p);s[p]=u[y]}var g=a(s),m=this.getRawIndex(Math.min(d+n(s,g)||0,f-1));u[m]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),h[v++]=m}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var a=t.length,n=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(a){case 0:e(i);break;case 1:e(n[t[0]][s],i);break;case 2:e(n[t[0]][s],n[t[1]][s],i);break;default:for(var l=0,u=[];l<a;l++)u[l]=n[t[l]][s];u[l]=i,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],a=Wr();if(!e)return a;var n=this.count(),i=!this._indices,o;if(i)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=a;for(var s=o[0],l=o[1],u=0;u<n;u++){var f=this.getRawIndex(u),c=e[f];c<s&&(s=c),c>l&&(l=c)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][e]);return a},r.prototype.clone=function(t,e){var a=new r,n=this._chunks,i=t&&tn(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?F_(n[o]):n[o];else a._chunks=n;return this._copyCommonProps(a),e||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=ee(this._extent),t._rawExtent=ee(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var a=this._indices.length;e=new t(a);for(var n=0;n<a;n++)e[n]=this._indices[n]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function t(e,a,n,i){return di(e[i],this._dimensions[i])}Eo={arrayRows:t,objectRows:function(e,a,n,i){return di(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return di(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}})(),r})(),Id=(function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),a=!!e.length,n,i;if(zn(t)){var o=t,s=void 0,l=void 0,u=void 0;if(a){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=Ke(s)?Jt:qe,i=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=J(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=J(c.sourceHeader,h.sourceHeader),p=J(c.dimensions,h.dimensions),y=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;n=y?[Gs(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var g=t;if(a){var m=this._applyTransform(e);n=m.sourceList,i=m.upstreamSignList}else{var _=g.get("source",!0);n=[Gs(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,a=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var i="";t.length!==1&&Ef(i)}var o,s=[],l=[];return w(t,function(u){u.prepareSource();var f=u.getSource(n||0),c="";n!=null&&!f&&Ef(c),s.push(f),l.push(u._getVersionSign())}),a?o=B_(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[__(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var a=t[e];if(a._isDirty()||this._upstreamSignList[e]!==a._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var a=this._getUpstreamSourceManagers();return a[0]&&a[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,a){var n=0,i=this._storeList,o=i[n];o||(o=i[n]={});var s=o[a];if(!s){var l=this._getUpstreamSourceManagers()[0];zn(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,a):(s=new Hs,s.initData(new wd(e,t.length),t)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(zn(t)){var e=Ql(t);return e?[e.getSourceManager()]:[]}else return X($0(t),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,a,n;if(zn(t))e=t.get("seriesLayoutBy",!0),a=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;e=i.get("seriesLayoutBy",!0),a=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:a,dimensions:n}},r})();function Rf(r){var t=r.option.transform;t&&_i(r.option.transform)}function zn(r){return r.mainType==="series"}function Ef(r){throw new Error(r)}var G_="line-height:1";function Pd(r){var t=r.lineHeight;return t==null?G_:"line-height:"+Ze(t+"")+"px"}function kd(r,t){var e=r.color||O.color.tertiary,a=r.fontSize||12,n=r.fontWeight||"400",i=r.color||O.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Ze(a+"")+"px;color:"+Ze(e)+";font-weight:"+Ze(n+""),valueStyle:"font-size:"+Ze(o+"")+"px;color:"+Ze(i)+";font-weight:"+Ze(s+"")}:{nameStyle:{fontSize:a,fill:e,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var H_=[0,10,20,30],W_=["",`
1
+ import{i as $,r as tn,m as X,a as z,b as K,e as be,c as q,d as w,f as ve,g as bs,h as St,j as ue,_ as W,k as fy,l as U,n as j,P as We,o as Iu,p as Mn,q as Ie,s as J,t as cy,u as vy,T as eh,v as eo,w as Mr,x as th,y as rh,Z as Et,z as ae,B as Ve,A as hy,C as dy,D as F,E as py,F as gy,G as yy,H as ee,I as to,J as ro,K as ah,S as Ir,R as xl,L as ha,M as or,N as se,O as Tr,Q as nh,U as bl,V as ih,W as pe,X as my,Y as wl,$ as oh,a0 as de,a1 as _y,a2 as he,a3 as sh,a4 as Tn,a5 as ao,a6 as oe,a7 as Ot,a8 as Ze,a9 as me,aa as ta,ab as Ke,ac as Me,ad as Z,ae as _i,af as Sy,ag as xt,ah as ws,ai as xy,aj as by,ak as Si,al as wy,am as Dn,an as Pu,ao as xo,ap as Cy,aq as rn,ar as xr,as as My,at as lh,au as ku,av as bo,aw as uh,ax as Ty,ay as Dy,az as Ga,aA as Ay,aB as Ru,aC as Eu,aD as Ly,aE as Iy,aF as fh,aG as an,aH as Ou,aI as ch,aJ as Bu,aK as er,aL as li,aM as wo,aN as vh,aO as Py,aP as nn,aQ as ky,aR as hh,aS as Ry,aT as Nu,aU as Ey,aV as Oy,aW as By}from"./vendor-zrender-D8psf1AA.js";var Vu=1e-4,dh=20;function Ny(r){return r.replace(/^\s+|\s+$/g,"")}var on=Math.min,$e=Math.max,yt=Math.abs;function ce(r,t,e,a){var n=t[0],i=t[1],o=e[0],s=e[1],l=i-n,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(a)if(l>0){if(r<=n)return o;if(r>=i)return s}else{if(r>=n)return o;if(r<=i)return s}else{if(r===n)return o;if(r===i)return s}return(r-n)/l*u+o}var ne=Vy;function Vy(r,t,e){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return Cs(r,t,e)}function Cs(r,t,e){return $(r)?Ny(r).match(/%$/)?parseFloat(r)/100*t+(e||0):parseFloat(r):r==null?NaN:+r}function Re(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),dh),r=(+r).toFixed(t),e?r:+r}function _r(r){return r.sort(function(t,e){return t-e}),r}function Dt(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return zy(r)}function zy(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),a=e>0?+t.slice(e+1):0,n=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:n-1-i;return Math.max(0,o-a)}function ph(r,t){var e=Math.log,a=Math.LN10,n=Math.floor(e(r[1]-r[0])/a),i=Math.round(e(yt(t[1]-t[0]))/a),o=Math.min(Math.max(-n+i,0),20);return isFinite(o)?o:20}function Fy(r,t){var e=tn(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var a=Math.pow(10,t),n=X(r,function(v){return(isNaN(v)?0:v)/e*a*100}),i=a*100,o=X(n,function(v){return Math.floor(v)}),s=tn(o,function(v,d){return v+d},0),l=X(n,function(v,d){return v-o[d]});s<i;){for(var u=Number.NEGATIVE_INFINITY,f=null,c=0,h=l.length;c<h;++c)l[c]>u&&(u=l[c],f=c);++o[f],l[f]=0,++s}return X(o,function(v){return v/a})}function Gy(r,t){var e=Math.max(Dt(r),Dt(t)),a=r+t;return e>dh?a:Re(a,e)}function gh(r){var t=Math.PI*2;return(r%t+t)%t}function xi(r){return r>-Vu&&r<Vu}var Hy=/^(?:(\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 Pr(r){if(r instanceof Date)return r;if($(r)){var t=Hy.exec(r);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(r==null)return new Date(NaN);return new Date(Math.round(r))}function Wy(r){return Math.pow(10,Cl(r))}function Cl(r){if(r===0)return 0;var t=Math.floor(Math.log(r)/Math.LN10);return r/Math.pow(10,t)>=10&&t++,t}function yh(r,t){var e=Cl(r),a=Math.pow(10,e),n=r/a,i;return n<1.5?i=1:n<2.5?i=2:n<4?i=3:n<7?i=5:i=10,r=i*a,e>=-20?+r.toFixed(e<0?-e:0):r}function zu(r){r.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,e=1,a=0;a<r.length;){for(var n=r[a].interval,i=r[a].close,o=0;o<2;o++)n[o]<=t&&(n[o]=t,i[o]=o?1:1-e),t=n[o],e=i[o];n[0]===n[1]&&i[0]*i[1]!==1?r.splice(a,1):a++}return r;function s(l,u,f){return l.interval[f]<u.interval[f]||l.interval[f]===u.interval[f]&&(l.close[f]-u.close[f]===(f?-1:1)||!f&&s(l,u,1))}}function bi(r){var t=parseFloat(r);return t==r&&(t!==0||!$(r)||r.indexOf("x")<=0)?t:NaN}function Uy(r){return!isNaN(bi(r))}function mh(){return Math.round(Math.random()*9)}function _h(r,t){return t===0?r:_h(t,r%t)}function Fu(r,t){return r==null?t:t==null?r:r*t/_h(r,t)}var Yy="[ECharts] ",Zy=typeof console<"u"&&console.warn&&console.log;function Xy(r,t,e){Zy&&console[r](Yy+t)}function Sh(r,t){Xy("error",r)}function ke(r){throw new Error(r)}function Gu(r,t,e){return(t-r)*e+r}var xh="series\0",$y="\0_ec_\0";function Ae(r){return r instanceof Array?r:r==null?[]:[r]}function Ms(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var a=0,n=e.length;a<n;a++){var i=e[a];!r.emphasis[t].hasOwnProperty(i)&&r[t].hasOwnProperty(i)&&(r.emphasis[t][i]=r[t][i])}}}var Hu=["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 An(r){return K(r)&&!z(r)&&!(r instanceof Date)?r.value:r}function Ky(r){return K(r)&&!(r instanceof Array)}function qy(r,t,e){var a=e==="normalMerge",n=e==="replaceMerge",i=e==="replaceAll";r=r||[],t=(t||[]).slice();var o=q();w(t,function(l,u){if(!K(l)){t[u]=null;return}});var s=jy(r,o,e);return(a||n)&&Qy(s,r,o,t),a&&Jy(s,t),a||n?em(s,t,n):i&&tm(s,t),rm(s),s}function jy(r,t,e){var a=[];if(e==="replaceAll")return a;for(var n=0;n<r.length;n++){var i=r[n];i&&i.id!=null&&t.set(i.id,n),a.push({existing:e==="replaceMerge"||sn(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return a}function Qy(r,t,e,a){w(a,function(n,i){if(!(!n||n.id==null)){var o=Xa(n.id),s=e.get(o);if(s!=null){var l=r[s];St(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=n,l.existing=t[s],a[i]=null}}})}function Jy(r,t){w(t,function(e,a){if(!(!e||e.name==null))for(var n=0;n<r.length;n++){var i=r[n].existing;if(!r[n].newOption&&i&&(i.id==null||e.id==null)&&!sn(e)&&!sn(i)&&bh("name",i,e)){r[n].newOption=e,t[a]=null;return}}})}function em(r,t,e){w(t,function(a){if(a){for(var n,i=0;(n=r[i])&&(n.newOption||sn(n.existing)||n.existing&&a.id!=null&&!bh("id",a,n.existing));)i++;n?(n.newOption=a,n.brandNew=e):r.push({newOption:a,brandNew:e,existing:null,keyInfo:null}),i++}})}function tm(r,t){w(t,function(e){r.push({newOption:e,brandNew:!0,existing:null,keyInfo:null})})}function rm(r){var t=q();w(r,function(e){var a=e.existing;a&&t.set(a.id,e)}),w(r,function(e){var a=e.newOption;St(!a||a.id==null||!t.get(a.id)||t.get(a.id)===e,"id duplicates: "+(a&&a.id)),a&&a.id!=null&&t.set(a.id,e),!e.keyInfo&&(e.keyInfo={})}),w(r,function(e,a){var n=e.existing,i=e.newOption,o=e.keyInfo;if(K(i)){if(o.name=i.name!=null?Xa(i.name):n?n.name:xh+a,n)o.id=Xa(n.id);else if(i.id!=null)o.id=Xa(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,e)}})}function bh(r,t,e){var a=ut(t[r],null),n=ut(e[r],null);return a!=null&&n!=null&&a===n}function Xa(r){return ut(r,"")}function ut(r,t){return r==null?t:$(r)?r:ve(r)||bs(r)?r+"":t}function Ml(r){var t=r.name;return!!(t&&t.indexOf(xh))}function sn(r){return r&&r.id!=null&&Xa(r.id).indexOf($y)===0}function am(r,t,e){w(r,function(a){var n=a.newOption;K(n)&&(a.keyInfo.mainType=t,a.keyInfo.subType=nm(t,n,a.existing,e))})}function nm(r,t,e,a){var n=t.type?t.type:e?e.subType:a.determineSubType(r,t);return n}function im(r,t){var e={},a={};return n(r||[],e),n(t||[],a,e),[i(e),i(a)];function n(o,s,l){for(var u=0,f=o.length;u<f;u++){var c=ut(o[u].seriesId,null);if(c==null)return;for(var h=Ae(o[u].dataIndex),v=l&&l[c],d=0,p=h.length;d<p;d++){var y=h[d];v&&v[y]?v[y]=null:(s[c]||(s[c]={}))[y]=1}}}function i(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var f=i(o[u],!0);f.length&&l.push({seriesId:u,dataIndex:f})}return l}}function Dr(r,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return z(t.dataIndex)?X(t.dataIndex,function(e){return r.indexOfRawIndex(e)}):r.indexOfRawIndex(t.dataIndex);if(t.name!=null)return z(t.name)?X(t.name,function(e){return r.indexOfName(e)}):r.indexOfName(t.name)}function ie(){var r="__ec_inner_"+om++;return function(t){return t[r]||(t[r]={})}}var om=mh();function Co(r,t,e){var a=Tl(t,e),n=a.mainTypeSpecified,i=a.queryOptionMap,o=a.others,s=o,l=e?e.defaultMainType:null;return!n&&l&&i.set(l,{}),i.each(function(u,f){var c=da(r,f,u,{useDefault:l===f,enableAll:e&&e.enableAll!=null?e.enableAll:!0,enableNone:e&&e.enableNone!=null?e.enableNone:!0});s[f+"Models"]=c.models,s[f+"Model"]=c.models[0]}),s}function Tl(r,t){var e;if($(r)){var a={};a[r+"Index"]=0,e=a}else e=r;var n=q(),i={},o=!1;return w(e,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=u[1],c=(u[2]||"").toLowerCase();if(!(!f||!c||t&&t.includeMainTypes&&ue(t.includeMainTypes,f)<0)){o=o||!!f;var h=n.get(f)||n.set(f,{});h[c]=s}}),{mainTypeSpecified:o,queryOptionMap:n,others:i}}var Ne={useDefault:!0,enableAll:!1,enableNone:!1},sm={useDefault:!1,enableAll:!0,enableNone:!0};function da(r,t,e,a){a=a||Ne;var n=e.index,i=e.id,o=e.name,s={models:null,specified:n!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=a.useDefault&&(l=r.getComponent(t))?[l]:[],s}if(n==="none"||n===!1){if(a.enableNone)return s.models=[],s;n=-1}return n==="all"&&(a.enableAll?n=i=o=null:n=-1),s.models=r.queryComponents({mainType:t,index:n,id:i,name:o}),s}function wh(r,t,e){r.setAttribute?r.setAttribute(t,e):r[t]=e}function lm(r,t){return r.getAttribute?r.getAttribute(t):r[t]}function um(r){return r==="auto"?be.domSupported?"html":"richText":r||"html"}function Ch(r,t,e,a,n){var i=t==null||t==="auto";if(a==null)return a;if(ve(a)){var o=Gu(e||0,a,n);return Re(o,i?Math.max(Dt(e||0),Dt(a)):t)}else{if($(a))return n<1?e:a;for(var s=[],l=e,u=a,f=Math.max(l?l.length:0,u.length),c=0;c<f;++c){var h=r.getDimensionInfo(c);if(h&&h.type==="ordinal")s[c]=(n<1&&l?l:u)[c];else{var v=l&&l[c]?l[c]:0,d=u[c],o=Gu(v,d,n);s[c]=Re(o,i?Math.max(Dt(v),Dt(d)):t)}}return s}}var fm=".",ur="___EC__COMPONENT__CONTAINER___",Mh="___EC__EXTENDED_CLASS___";function mt(r){var t={main:"",sub:""};if(r){var e=r.split(fm);t.main=e[0]||"",t.sub=e[1]||""}return t}function cm(r){St(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(r),'componentType "'+r+'" illegal')}function vm(r){return!!(r&&r[Mh])}function Dl(r,t){r.$constructor=r,r.extend=function(e){var a=this,n;return hm(a)?n=(function(i){W(o,i);function o(){return i.apply(this,arguments)||this}return o})(a):(n=function(){(e.$constructor||a).apply(this,arguments)},fy(n,this)),U(n.prototype,e),n[Mh]=!0,n.extend=this.extend,n.superCall=gm,n.superApply=ym,n.superClass=a,n}}function hm(r){return j(r)&&/^class\s/.test(Function.prototype.toString.call(r))}function Th(r,t){r.extend=t.extend}var dm=Math.round(Math.random()*10);function pm(r){var t=["__\0is_clz",dm++].join("_");r.prototype[t]=!0,r.isInstance=function(e){return!!(e&&e[t])}}function gm(r,t){for(var e=[],a=2;a<arguments.length;a++)e[a-2]=arguments[a];return this.superClass.prototype[t].apply(r,e)}function ym(r,t,e){return this.superClass.prototype[t].apply(r,e)}function no(r){var t={};r.registerClass=function(a){var n=a.type||a.prototype.type;if(n){cm(n),a.prototype.type=n;var i=mt(n);if(!i.sub)t[i.main]=a;else if(i.sub!==ur){var o=e(i);o[i.sub]=a}}return a},r.getClass=function(a,n,i){var o=t[a];if(o&&o[ur]&&(o=n?o[n]:null),i&&!o)throw new Error(n?"Component "+a+"."+(n||"")+" is used but not imported.":a+".type should be specified.");return o},r.getClassesByMainType=function(a){var n=mt(a),i=[],o=t[n.main];return o&&o[ur]?w(o,function(s,l){l!==ur&&i.push(s)}):i.push(o),i},r.hasClass=function(a){var n=mt(a);return!!t[n.main]},r.getAllClassMainTypes=function(){var a=[];return w(t,function(n,i){a.push(i)}),a},r.hasSubTypes=function(a){var n=mt(a),i=t[n.main];return i&&i[ur]};function e(a){var n=t[a.main];return(!n||!n[ur])&&(n=t[a.main]={},n[ur]=!0),n}}function ln(r,t){for(var e=0;e<r.length;e++)r[e][1]||(r[e][1]=r[e][0]);return t=t||!1,function(a,n,i){for(var o={},s=0;s<r.length;s++){var l=r[s][1];if(!(n&&ue(n,l)>=0||i&&ue(i,l)<0)){var u=a.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var mm=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],_m=ln(mm),Sm=(function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return _m(this,t,e)},r})(),te=ie(),xm=function(r,t,e,a){if(a){var n=te(a);n.dataIndex=e,n.dataType=t,n.seriesIndex=r,n.ssrType="chart",a.type==="group"&&a.traverse(function(i){var o=te(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},Wu=1,Uu={},Dh=ie(),Al=ie(),Ll=0,io=1,oo=2,tt=["emphasis","blur","select"],wi=["normal","emphasis","blur","select"],bm=10,wm=9,br="highlight",ui="downplay",Ci="select",Ts="unselect",Mi="toggleSelect",Il="selectchanged";function Fr(r){return r!=null&&r!=="none"}function so(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function Ah(r){so(r,"emphasis",oo)}function Lh(r){r.hoverState===oo&&so(r,"normal",Ll)}function Pl(r){so(r,"blur",io)}function Ih(r){r.hoverState===io&&so(r,"normal",Ll)}function Cm(r){r.selected=!0}function Mm(r){r.selected=!1}function Yu(r,t,e){t(r,e)}function Bt(r,t,e){Yu(r,t,e),r.isGroup&&r.traverse(function(a){Yu(a,t,e)})}function Zu(r,t){switch(t){case"emphasis":r.hoverState=oo;break;case"normal":r.hoverState=Ll;break;case"blur":r.hoverState=io;break;case"select":r.selected=!0}}function Tm(r,t,e,a){for(var n=r.style,i={},o=0;o<t.length;o++){var s=t[o],l=n[s];i[s]=l??(a&&a[s])}for(var o=0;o<r.animators.length;o++){var u=r.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(e)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function Dm(r,t,e,a){var n=e&&ue(e,"select")>=0,i=!1;if(r instanceof We){var o=Dh(r),s=n&&o.selectFill||o.normalFill,l=n&&o.selectStroke||o.normalStroke;if(Fr(s)||Fr(l)){a=a||{};var u=a.style||{};u.fill==="inherit"?(i=!0,a=U({},a),u=U({},u),u.fill=s):!Fr(u.fill)&&Fr(s)?(i=!0,a=U({},a),u=U({},u),u.fill=Iu(s)):!Fr(u.stroke)&&Fr(l)&&(i||(a=U({},a),u=U({},u)),u.stroke=Iu(l)),a.style=u}}if(a&&a.z2==null){i||(a=U({},a));var f=r.z2EmphasisLift;a.z2=r.z2+(f??bm)}return a}function Am(r,t,e){if(e&&e.z2==null){e=U({},e);var a=r.z2SelectLift;e.z2=r.z2+(a??wm)}return e}function Lm(r,t,e){var a=ue(r.currentStates,t)>=0,n=r.style.opacity,i=a?null:Tm(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=U({},e),o=U({opacity:a?n:i.opacity*.1},o),e.style=o),e}function Mo(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return Dm(this,r,t,e);if(r==="blur")return Lm(this,r,e);if(r==="select")return Am(this,r,e)}return e}function Ph(r){r.stateProxy=Mo;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=Mo),e&&(e.stateProxy=Mo)}function Xu(r,t){!Oh(r,t)&&!r.__highByOuter&&Bt(r,Ah)}function $u(r,t){!Oh(r,t)&&!r.__highByOuter&&Bt(r,Lh)}function Ti(r,t){r.__highByOuter|=1<<(t||0),Bt(r,Ah)}function Di(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&Bt(r,Lh)}function Im(r){Bt(r,Pl)}function kh(r){Bt(r,Ih)}function Rh(r){Bt(r,Cm)}function Eh(r){Bt(r,Mm)}function Oh(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function Bh(r){var t=r.getModel(),e=[],a=[];t.eachComponent(function(n,i){var o=Al(i),s=n==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&a.push(l),o.isBlured&&(l.group.traverse(function(u){Ih(u)}),s&&e.push(i)),o.isBlured=!1}),w(a,function(n){n&&n.toggleBlurSeries&&n.toggleBlurSeries(e,!1,t)})}function Ds(r,t,e,a){var n=a.getModel();e=e||"coordinateSystem";function i(u,f){for(var c=0;c<f.length;c++){var h=u.getItemGraphicEl(f[c]);h&&kh(h)}}if(r!=null&&!(!t||t==="none")){var o=n.getSeriesByIndex(r),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 h=c&&s?c===s:f;if(!(e==="series"&&!f||e==="coordinateSystem"&&!h||t==="series"&&f)){var v=a.getViewOfSeriesModel(u);if(v.group.traverse(function(y){y.__highByOuter&&f&&t==="self"||Pl(y)}),Mn(t))i(u.getData(),t);else if(K(t))for(var d=Ie(t),p=0;p<d.length;p++)i(u.getData(d[p]),t[d[p]]);l.push(u),Al(u).isBlured=!0}}),n.eachComponent(function(u,f){if(u!=="series"){var c=a.getViewOfComponentModel(f);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,n)}})}}function As(r,t,e){if(!(r==null||t==null)){var a=e.getModel().getComponent(r,t);if(a){Al(a).isBlured=!0;var n=e.getViewOfComponentModel(a);!n||!n.focusBlurEnabled||n.group.traverse(function(i){Pl(i)})}}}function Pm(r,t,e){var a=r.seriesIndex,n=r.getData(t.dataType);if(n){var i=Dr(n,t);i=(z(i)?i[0]:i)||0;var o=n.getItemGraphicEl(i);if(!o)for(var s=n.count(),l=0;!o&&l<s;)o=n.getItemGraphicEl(l++);if(o){var u=te(o);Ds(a,u.focus,u.blurScope,e)}else{var f=r.get(["emphasis","focus"]),c=r.get(["emphasis","blurScope"]);f!=null&&Ds(a,f,c,e)}}}function kl(r,t,e,a){var n={focusSelf:!1,dispatchers:null};if(r==null||r==="series"||t==null||e==null)return n;var i=a.getModel().getComponent(r,t);if(!i)return n;var o=a.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return n;for(var s=o.findHighDownDispatchers(e),l,u=0;u<s.length;u++)if(te(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function km(r,t,e){var a=te(r),n=kl(a.componentMainType,a.componentIndex,a.componentHighDownName,e),i=n.dispatchers,o=n.focusSelf;i?(o&&As(a.componentMainType,a.componentIndex,e),w(i,function(s){return Xu(s,t)})):(Ds(a.seriesIndex,a.focus,a.blurScope,e),a.focus==="self"&&As(a.componentMainType,a.componentIndex,e),Xu(r,t))}function Rm(r,t,e){Bh(e);var a=te(r),n=kl(a.componentMainType,a.componentIndex,a.componentHighDownName,e).dispatchers;n?w(n,function(i){return $u(i,t)}):$u(r,t)}function Em(r,t,e){if(Is(t)){var a=t.dataType,n=r.getData(a),i=Dr(n,t);z(i)||(i=[i]),r[t.type===Mi?"toggleSelect":t.type===Ci?"select":"unselect"](i,a)}}function Ku(r){var t=r.getAllData();w(t,function(e){var a=e.data,n=e.type;a.eachItemGraphicEl(function(i,o){r.isSelected(o,n)?Rh(i):Eh(i)})})}function Om(r){var t=[];return r.eachSeries(function(e){var a=e.getAllData();w(a,function(n){n.data;var i=n.type,o=e.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Ai(r,t,e){Rl(r,!0),Bt(r,Ph),Nm(r,t,e)}function Bm(r){Rl(r,!1)}function tr(r,t,e,a){a?Bm(r):Ai(r,t,e)}function Nm(r,t,e){var a=te(r);t!=null?(a.focus=t,a.blurScope=e):a.focus&&(a.focus=null)}var qu=["emphasis","blur","select"],Vm={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function oa(r,t,e,a){e=e||"itemStyle";for(var n=0;n<qu.length;n++){var i=qu[n],o=t.getModel([i,e]),s=r.ensureState(i);s.style=o[Vm[e]]()}}function Rl(r,t){var e=t===!1,a=r;r.highDownSilentOnTouch&&(a.__highDownSilentOnTouch=r.highDownSilentOnTouch),(!e||a.__highDownDispatcher)&&(a.__highByOuter=a.__highByOuter||0,a.__highDownDispatcher=!e)}function Ls(r){return!!(r&&r.__highDownDispatcher)}function zm(r){var t=Uu[r];return t==null&&Wu<=32&&(t=Uu[r]=Wu++),t}function Is(r){var t=r.type;return t===Ci||t===Ts||t===Mi}function ju(r){var t=r.type;return t===br||t===ui}function Fm(r){var t=Dh(r);t.normalFill=r.style.fill,t.normalStroke=r.style.stroke;var e=r.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}var Gm=ie();function El(r,t,e,a,n){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=r==="update";if(s){var u=void 0,f=void 0,c=void 0;a?(u=J(a.duration,200),f=J(a.easing,"cubicOut"),c=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),c=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(f=i.easing),i.delay!=null&&(c=i.delay)),j(c)&&(c=c(e,n)),j(u)&&(u=u(e));var h={duration:u||0,delay:c,easing:f};return h}else return null}function Ol(r,t,e,a,n,i,o){var s=!1,l;j(n)?(o=i,i=n,n=null):K(n)&&(i=n.cb,o=n.during,s=n.isFrom,l=n.removeOpt,n=n.dataIndex);var u=r==="leave";u||t.stopAnimation("leave");var f=El(r,a,n,u?l||{}:null,a&&a.getAnimationDelayParams?a.getAnimationDelayParams(t,n):null);if(f&&f.duration>0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function De(r,t,e,a,n,i){Ol("update",r,t,e,a,n,i)}function Ee(r,t,e,a,n,i){Ol("enter",r,t,e,a,n,i)}function ra(r){if(!r.__zr)return!0;for(var t=0;t<r.animators.length;t++){var e=r.animators[t];if(e.scope==="leave")return!0}return!1}function Li(r,t,e,a,n,i){ra(r)||Ol("leave",r,t,e,a,n,i)}function Qu(r,t,e,a){r.removeTextContent(),r.removeTextGuideLine(),Li(r,{style:{opacity:0}},t,e,a)}function $a(r,t,e){function a(){r.parent&&r.parent.remove(r)}r.isGroup?r.traverse(function(n){n.isGroup||Qu(n,t,e,a)}):Qu(r,t,e,a)}function un(r){Gm(r).oldStyle=r.style}var Ps={},$t=["x","y"],sa=["width","height"];function Hm(r){return We.extend(r)}var Wm=yy;function Um(r,t){return Wm(r,t)}function vt(r,t){Ps[r]=t}function ks(r){if(Ps.hasOwnProperty(r))return Ps[r]}function fn(r,t,e,a){var n=dy(r,t);return e&&(a==="center"&&(e=Vh(e,n.getBoundingRect())),zh(n,e)),n}function Nh(r,t,e){var a=new Et({style:{image:r,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(n){if(e==="center"){var i={width:n.width,height:n.height};a.setStyle(Vh(t,i))}}});return a}function Vh(r,t){var e=t.width/t.height,a=r.height*e,n;a<=r.width?n=r.height:(a=r.width,n=a/e);var i=r.x+r.width/2,o=r.y+r.height/2;return{x:i-a/2,y:o-n/2,width:a,height:n}}var Rs=cy;function zh(r,t){if(r.applyTransform){var e=r.getBoundingRect(),a=e.calculateTransform(t);r.applyTransform(a)}}function cn(r,t){return py(r,r,{lineWidth:t}),r}function Ym(r,t){return gy(r,r,t),r}var Zm=vy;function Ka(r,t){for(var e=th([]);r&&r!==t;)rh(e,r.getLocalTransform(),e),r=r.parent;return e}function Qt(r,t,e){return t&&!Mn(t)&&(t=eh.getLocalTransform(t)),e&&(t=eo([],t)),Mr([],r,t)}function Bl(r,t,e){var a=t[4]===0||t[5]===0||t[0]===0?1:yt(2*t[4]/t[0]),n=t[4]===0||t[5]===0||t[2]===0?1:yt(2*t[4]/t[2]),i=[r==="left"?-a:r==="right"?a:0,r==="top"?-n:r==="bottom"?n:0];return i=Qt(i,t,e),yt(i[0])>yt(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Ju(r){return!r.isGroup}function Xm(r){return r.shape!=null}function Fh(r,t,e){if(!r||!t)return;function a(o){var s={};return o.traverse(function(l){Ju(l)&&l.anid&&(s[l.anid]=l)}),s}function n(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Xm(o)&&(s.shape=ee(o.shape)),s}var i=a(r);t.traverse(function(o){if(Ju(o)&&o.anid){var s=i[o.anid];if(s){var l=n(o);o.attr(n(s)),De(o,l,e,te(o).dataIndex)}}})}function $m(r,t){return X(r,function(e){var a=e[0];a=$e(a,t.x),a=on(a,t.x+t.width);var n=e[1];return n=$e(n,t.y),n=on(n,t.y+t.height),[a,n]})}function Km(r,t){var e=$e(r.x,t.x),a=on(r.x+r.width,t.x+t.width),n=$e(r.y,t.y),i=on(r.y+r.height,t.y+t.height);if(a>=e&&i>=n)return{x:e,y:n,width:a-e,height:i-n}}function Nl(r,t,e){var a=U({rectHover:!0},t),n=a.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(n.image=r.slice(8),ae(n,e),new Et(a)):fn(r.replace("path://",""),a,e,"center")}function qm(r,t,e,a,n){for(var i=0,o=n[n.length-1];i<n.length;i++){var s=n[i];if(Gh(r,t,e,a,s[0],s[1],o[0],o[1]))return!0;o=s}}function Gh(r,t,e,a,n,i,o,s){var l=e-r,u=a-t,f=o-n,c=s-i,h=To(f,c,l,u);if(jm(h))return!1;var v=r-n,d=t-i,p=To(v,d,l,u)/h;if(p<0||p>1)return!1;var y=To(v,d,f,c)/h;return!(y<0||y>1)}function To(r,t,e,a){return r*a-e*t}function jm(r){return r<=1e-6&&r>=-1e-6}function vn(r,t,e,a,n){return t==null||(ve(t)?fe[0]=fe[1]=fe[2]=fe[3]=t:(fe[0]=t[0],fe[1]=t[1],fe[2]=t[2],fe[3]=t[3]),a&&(fe[0]=$e(0,fe[0]),fe[1]=$e(0,fe[1]),fe[2]=$e(0,fe[2]),fe[3]=$e(0,fe[3])),e&&(fe[0]=-fe[0],fe[1]=-fe[1],fe[2]=-fe[2],fe[3]=-fe[3]),ef(r,fe,"x","width",3,1,n&&n[0]||0),ef(r,fe,"y","height",0,2,n&&n[1]||0)),r}var fe=[0,0,0,0];function ef(r,t,e,a,n,i,o){var s=t[i]+t[n],l=r[a];r[a]+=s,o=$e(0,on(o,l)),r[a]<o?(r[a]=o,r[e]+=t[n]>=0?-t[n]:t[i]>=0?l+t[i]:yt(s)>1e-8?(l-o)*t[n]/s:0):r[e]-=t[n]}function lo(r){var t=r.itemTooltipOption,e=r.componentModel,a=r.itemName,n=$(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:a,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&w(Ie(l),function(f){F(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=te(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:a,option:ae({content:a,encodeHTMLContent:!0,formatterParams:s},n)}}function Es(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function pa(r,t){if(r)if(z(r))for(var e=0;e<r.length;e++)Es(r[e],t);else Es(r,t)}function Vl(r){return!r||yt(r[1])<On&&yt(r[2])<On||yt(r[0])<On&&yt(r[3])<On}var On=1e-5;function hn(r,t){return r?Ve.copy(r,t):t.clone()}function zl(r,t){return t?hy(r||to(),t):void 0}function dn(r){return{z:r.get("z")||0,zlevel:r.get("zlevel")||0}}function Qm(r){var t=-1/0,e=1/0;Es(r,function(i){a(i),a(i.getTextContent()),a(i.getTextGuideLine())});function a(i){if(!(!i||i.isGroup)){var o=i.currentStates;if(o.length)for(var s=0;s<o.length;s++)n(i.states[o[s]]);n(i)}}function n(i){if(i){var o=i.z2;o>t&&(t=o),o<e&&(e=o)}}return e>t&&(e=t=0),{min:e,max:t}}function Hh(r,t,e){Wh(r,t,e,-1/0)}function Wh(r,t,e,a){if(r.ignoreModelZ)return a;var n=r.getTextContent(),i=r.getTextGuideLine(),o=r.isGroup;if(o)for(var s=r.childrenRef(),l=0;l<s.length;l++)a=$e(Wh(s[l],t,e,a),a);else r.z=t,r.zlevel=e,a=$e(r.z2||0,a);if(n&&(n.z=t,n.zlevel=e,isFinite(a)&&(n.z2=a+2)),i){var u=r.textGuideLineConfig;i.z=t,i.zlevel=e,isFinite(a)&&(i.z2=a+(u&&u.showAbove?1:-1))}return a}vt("circle",ro);vt("ellipse",ah);vt("sector",Ir);vt("ring",xl);vt("polygon",ha);vt("polyline",or);vt("rect",se);vt("line",Tr);vt("bezierCurve",nh);vt("arc",bl);const Uh=Object.freeze(Object.defineProperty({__proto__:null,Arc:bl,BezierCurve:nh,BoundingRect:Ve,Circle:ro,CompoundPath:ih,Ellipse:ah,Group:pe,Image:Et,IncrementalDisplayable:my,Line:Tr,LinearGradient:wl,OrientedBoundingRect:oh,Path:We,Point:de,Polygon:ha,Polyline:or,RadialGradient:_y,Rect:se,Ring:xl,Sector:Ir,Text:he,WH:sa,XY:$t,applyTransform:Qt,calcZ2Range:Qm,clipPointsByRect:$m,clipRectByRect:Km,createIcon:Nl,ensureCopyRect:hn,ensureCopyTransform:zl,expandOrShrinkRect:vn,extendPath:Um,extendShape:Hm,getShapeClass:ks,getTransform:Ka,groupTransition:Fh,initProps:Ee,isBoundingRectAxisAligned:Vl,isElementRemoved:ra,lineLineIntersect:Gh,linePolygonIntersect:qm,makeImage:Nh,makePath:fn,mergePath:Rs,registerShape:vt,removeElement:Li,removeElementWithFadeOut:$a,resizePath:zh,retrieveZInfo:dn,setTooltipConfig:lo,subPixelOptimize:Zm,subPixelOptimizeLine:cn,subPixelOptimizeRect:Ym,transformDirection:Bl,traverseElements:pa,traverseUpdateZ:Hh,updateProps:De},Symbol.toStringTag,{value:"Module"}));var uo={};function Yh(r,t){for(var e=0;e<tt.length;e++){var a=tt[e],n=t[a],i=r.ensureState(a);i.style=i.style||{},i.style.text=n}var o=r.currentStates.slice();r.clearStates(!0),r.setStyle({text:t.normal}),r.useStates(o,!0)}function Os(r,t,e){var a=r.labelFetcher,n=r.labelDataIndex,i=r.labelDimIndex,o=t.normal,s;a&&(s=a.getFormattedLabel(n,"normal",null,i,o&&o.get("formatter"),e!=null?{interpolatedValue:e}:null)),s==null&&(s=j(r.defaultText)?r.defaultText(n,r,e):r.defaultText);for(var l={normal:s},u=0;u<tt.length;u++){var f=tt[u],c=t[f];l[f]=J(a?a.getFormattedLabel(n,f,null,i,c&&c.get("formatter")):null,s)}return l}function kr(r,t,e,a){e=e||uo;for(var n=r instanceof he,i=!1,o=0;o<wi.length;o++){var s=t[wi[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=n?r:r.getTextContent();if(i){n||(l||(l=new he,r.setTextContent(l)),r.stateProxy&&(l.stateProxy=r.stateProxy));var u=Os(e,t),f=t.normal,c=!!f.getShallow("show"),h=Te(f,a&&a.normal,e,!1,!n);h.text=u.normal,n||r.setTextConfig(Ii(f,e,!1));for(var o=0;o<tt.length;o++){var v=tt[o],s=t[v];if(s){var d=l.ensureState(v),p=!!J(s.getShallow("show"),c);if(p!==c&&(d.ignore=!p),d.style=Te(s,a&&a[v],e,!0,!n),d.style.text=u[v],!n){var y=r.ensureState(v);y.textConfig=Ii(s,e,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(h.x=l.style.x),l.style.y!=null&&(h.y=l.style.y),l.ignore=!c,l.useStyle(h),l.dirty(),e.enableTextSetter&&(ga(l).setLabelText=function(g){var m=Os(e,t,g);Yh(l,m)})}else l&&(l.ignore=!0);r.dirty()}function rr(r,t){t=t||"label";for(var e={normal:r.getModel(t)},a=0;a<tt.length;a++){var n=tt[a];e[n]=r.getModel([n,t])}return e}function Te(r,t,e,a,n){var i={};return Jm(i,r,e,a,n),t&&U(i,t),i}function Ii(r,t,e){t=t||{};var a={},n,i=r.getShallow("rotate"),o=J(r.getShallow("distance"),e?null:5),s=r.getShallow("offset");return n=r.getShallow("position")||(e?null:"inside"),n==="outside"&&(n=t.defaultOutsidePosition||"top"),n!=null&&(a.position=n),s!=null&&(a.offset=s),i!=null&&(i*=Math.PI/180,a.rotation=i),o!=null&&(a.distance=o),a.outsideFill=r.get("color")==="inherit"?t.inheritColor||null:"auto",t.autoOverflowArea!=null&&(a.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(a.layoutRect=t.layoutRect),a}function Jm(r,t,e,a,n){e=e||uo;var i=t.ecModel,o=i&&i.option.textStyle,s=e0(t),l;if(s){l={};var u="richInheritPlainLabel",f=J(t.get(u),i?i.get(u):void 0);for(var c in s)if(s.hasOwnProperty(c)){var h=t.getModel(["rich",c]);nf(l[c]={},h,o,t,f,e,a,n,!1,!0)}}l&&(r.rich=l);var v=t.get("overflow");v&&(r.overflow=v);var d=t.get("lineOverflow");d&&(r.lineOverflow=d);var p=r,y=t.get("minMargin");if(y!=null)y=ve(y)?y/2:0,p.margin=[y,y,y,y],p.__marginType=Jr.minMargin;else{var g=t.get("textMargin");g!=null&&(p.margin=sh(g),p.__marginType=Jr.textMargin)}nf(r,t,o,null,null,e,a,n,!0,!1)}function e0(r){for(var t;r&&r!==r.ecModel;){var e=(r.option||uo).rich;if(e){t=t||{};for(var a=Ie(e),n=0;n<a.length;n++){var i=a[n];t[i]=1}}r=r.parentModel}return t}var tf=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],rf=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],af=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function nf(r,t,e,a,n,i,o,s,l,u){e=!o&&e||uo;var f=i&&i.inheritColor,c=t.getShallow("color"),h=t.getShallow("textBorderColor"),v=J(t.getShallow("opacity"),e.opacity);(c==="inherit"||c==="auto")&&(f?c=f:c=null),(h==="inherit"||h==="auto")&&(f?h=f:h=null),s||(c=c||e.color,h=h||e.textBorderColor),c!=null&&(r.fill=c),h!=null&&(r.stroke=h);var d=J(t.getShallow("textBorderWidth"),e.textBorderWidth);d!=null&&(r.lineWidth=d);var p=J(t.getShallow("textBorderType"),e.textBorderType);p!=null&&(r.lineDash=p);var y=J(t.getShallow("textBorderDashOffset"),e.textBorderDashOffset);y!=null&&(r.lineDashOffset=y),!o&&v==null&&!u&&(v=i&&i.defaultOpacity),v!=null&&(r.opacity=v),!o&&!s&&r.fill==null&&i.inheritColor&&(r.fill=i.inheritColor);for(var g=0;g<tf.length;g++){var m=tf[g],_=n!==!1&&a?ao(t.getShallow(m),a.getShallow(m),e[m]):J(t.getShallow(m),e[m]);_!=null&&(r[m]=_)}for(var g=0;g<rf.length;g++){var m=rf[g],_=t.getShallow(m);_!=null&&(r[m]=_)}if(r.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(r.verticalAlign=S)}if(!l||!i.disableBox){for(var g=0;g<af.length;g++){var m=af[g],_=t.getShallow(m);_!=null&&(r[m]=_)}var b=t.getShallow("borderType");b!=null&&(r.borderDash=b),(r.backgroundColor==="auto"||r.backgroundColor==="inherit")&&f&&(r.backgroundColor=f),(r.borderColor==="auto"||r.borderColor==="inherit")&&f&&(r.borderColor=f)}}function Zh(r,t){var e=t&&t.getModel("textStyle");return Tn([r.fontStyle||e&&e.getShallow("fontStyle")||"",r.fontWeight||e&&e.getShallow("fontWeight")||"",(r.fontSize||e&&e.getShallow("fontSize")||12)+"px",r.fontFamily||e&&e.getShallow("fontFamily")||"sans-serif"].join(" "))}var ga=ie();function t0(r,t,e,a){if(r){var n=ga(r);n.prevValue=n.value,n.value=e;var i=t.normal;n.valueAnimation=i.get("valueAnimation"),n.valueAnimation&&(n.precision=i.get("precision"),n.defaultInterpolatedText=a,n.statesModels=t)}}function r0(r,t,e,a,n){var i=ga(r);if(!i.valueAnimation||i.prevValue===i.value)return;var o=i.defaultInterpolatedText,s=J(i.interpolatedValue,i.prevValue),l=i.value;function u(f){var c=Ch(e,i.precision,s,l,f);i.interpolatedValue=f===1?null:c;var h=Os({labelDataIndex:t,labelFetcher:n,defaultText:o?o(c):c+""},i.statesModels,c);Yh(r,h)}r.percent=0,(i.prevValue==null?Ee:De)(r,{percent:1},a,t,null,u)}var Jr={minMargin:1,textMargin:2},a0=["textStyle","color"],Do=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Ao=new he,n0=(function(){function r(){}return r.prototype.getTextColor=function(t){var e=this.ecModel;return this.getShallow("color")||(!t&&e?e.get(a0):null)},r.prototype.getFont=function(){return Zh({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},r.prototype.getTextRect=function(t){for(var e={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},a=0;a<Do.length;a++)e[Do[a]]=this.getShallow(Do[a]);return Ao.useStyle(e),Ao.update(),Ao.getBoundingRect()},r})(),Xh=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],i0=ln(Xh),o0=(function(){function r(){}return r.prototype.getLineStyle=function(t){return i0(this,t)},r})(),$h=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],s0=ln($h),l0=(function(){function r(){}return r.prototype.getItemStyle=function(t,e){return s0(this,t,e)},r})(),ye=(function(){function r(t,e,a){this.parentModel=e,this.ecModel=a,this.option=t}return r.prototype.init=function(t,e,a){},r.prototype.mergeOption=function(t,e){oe(this.option,t,!0)},r.prototype.get=function(t,e){return t==null?this.option:this._doGet(this.parsePath(t),!e&&this.parentModel)},r.prototype.getShallow=function(t,e){var a=this.option,n=a==null?a:a[t];if(n==null&&!e){var i=this.parentModel;i&&(n=i.getShallow(t))}return n},r.prototype.getModel=function(t,e){var a=t!=null,n=a?this.parsePath(t):null,i=a?this._doGet(n):this.option;return e=e||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(n)),new r(i,e,this.ecModel)},r.prototype.isEmpty=function(){return this.option==null},r.prototype.restoreData=function(){},r.prototype.clone=function(){var t=this.constructor;return new t(ee(this.option))},r.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},r.prototype.resolveParentPath=function(t){return t},r.prototype.isAnimationEnabled=function(){if(!be.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},r.prototype._doGet=function(t,e){var a=this.option;if(!t)return a;for(var n=0;n<t.length&&!(t[n]&&(a=a&&typeof a=="object"?a[t[n]]:null,a==null));n++);return a==null&&e&&(a=e._doGet(this.resolveParentPath(t),e.parentModel)),a},r})();Dl(ye);pm(ye);Ot(ye,o0);Ot(ye,l0);Ot(ye,Sm);Ot(ye,n0);var u0=Math.round(Math.random()*10);function fo(r){return[r||"",u0++].join("_")}function f0(r){var t={};r.registerSubTypeDefaulter=function(e,a){var n=mt(e);t[n.main]=a},r.determineSubType=function(e,a){var n=a.type;if(!n){var i=mt(e).main;r.hasSubTypes(e)&&t[i]&&(n=t[i](a))}return n}}function c0(r,t){r.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=e(o),f=u.graph,c=u.noEntryList,h={};for(w(i,function(m){h[m]=!0});c.length;){var v=c.pop(),d=f[v],p=!!h[v];p&&(s.call(l,v,d.originalDeps.slice()),delete h[v]),w(d.successor,p?g:y)}w(h,function(){var m="";throw new Error(m)});function y(m){f[m].entryCount--,f[m].entryCount===0&&c.push(m)}function g(m){h[m]=!0,y(m)}};function e(i){var o={},s=[];return w(i,function(l){var u=a(o,l),f=u.originalDeps=t(l),c=n(f,i);u.entryCount=c.length,u.entryCount===0&&s.push(l),w(c,function(h){ue(u.predecessor,h)<0&&u.predecessor.push(h);var v=a(o,h);ue(v.successor,h)<0&&v.successor.push(l)})}),{graph:o,noEntryList:s}}function a(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function n(i,o){var s=[];return w(i,function(l){ue(o,l)>=0&&s.push(l)}),s}}function ya(r,t){return oe(oe({},r,!0),t,!0)}const v0={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:". "}}}},h0={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var Pi="ZH",Fl="EN",aa=Fl,fi={},Gl={},Kh=be.domSupported?(function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||aa).toUpperCase();return r.indexOf(Pi)>-1?Pi:aa})():aa;function qh(r,t){r=r.toUpperCase(),Gl[r]=new ye(t),fi[r]=t}function d0(r){if($(r)){var t=fi[r.toUpperCase()]||{};return r===Pi||r===Fl?ee(t):oe(ee(t),ee(fi[aa]),!1)}else return oe(ee(r),ee(fi[aa]),!1)}function Bs(r){return Gl[r]}function p0(){return Gl[aa]}qh(Fl,v0);qh(Pi,h0);var g0=null;function ki(){return g0}var Hl=1e3,Wl=Hl*60,qa=Wl*60,et=qa*24,of=et*365,y0={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})/},ci={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}"},m0="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}",Bn="{yyyy}-{MM}-{dd}",sf={year:"{yyyy}",month:"{yyyy}-{MM}",day:Bn,hour:Bn+" "+ci.hour,minute:Bn+" "+ci.minute,second:Bn+" "+ci.second,millisecond:m0},wr=["year","month","day","hour","minute","second","millisecond"],_0=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function S0(r){return!$(r)&&!j(r)?x0(r):r}function x0(r){r=r||{};var t={},e=!0;return w(wr,function(a){e&&(e=r[a]==null)}),w(wr,function(a,n){var i=r[a];t[a]={};for(var o=null,s=n;s>=0;s--){var l=wr[s],u=K(i)&&!z(i)?i[l]:i,f=void 0;z(u)?(f=u.slice(),o=f[0]||""):$(u)?(o=u,f=[o]):(o==null?o=ci[a]:y0[l].test(o)||(o=t[l][l][0]+" "+o),f=[o],e&&(f[1]="{primary|"+o+"}")),t[a][l]=f}}),t}function Ft(r,t){return r+="","0000".substr(0,t-r.length)+r}function ja(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function b0(r){return r===ja(r)}function w0(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function co(r,t,e,a){var n=Pr(r),i=n[jh(e)](),o=n[Ul(e)]()+1,s=Math.floor((o-1)/3)+1,l=n[Yl(e)](),u=n["get"+(e?"UTC":"")+"Day"](),f=n[Zl(e)](),c=(f-1)%12+1,h=n[Xl(e)](),v=n[$l(e)](),d=n[Kl(e)](),p=f>=12?"pm":"am",y=p.toUpperCase(),g=a instanceof ye?a:Bs(a||Kh)||p0(),m=g.getModel("time"),_=m.get("month"),S=m.get("monthAbbr"),b=m.get("dayOfWeek"),x=m.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Ft(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Ft(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Ft(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Ft(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Ft(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Ft(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Ft(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Ft(d,3)).replace(/{S}/g,d+"")}function C0(r,t,e,a,n){var i=null;if($(e))i=e;else if(j(e)){var o={time:r.time,level:r.time.level},s=ki();s&&s.makeAxisLabelFormatterParamBreak(o,r.break),i=e(r.value,t,o)}else{var l=r.time;if(l){var u=e[l.lowerTimeUnit][l.upperTimeUnit];i=u[Math.min(l.level,u.length-1)]||""}else{var f=Ri(r.value,n);i=e[f][f][0]}}return co(new Date(r.value),i,n,a)}function Ri(r,t){var e=Pr(r),a=e[Ul(t)]()+1,n=e[Yl(t)](),i=e[Zl(t)](),o=e[Xl(t)](),s=e[$l(t)](),l=e[Kl(t)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&i===0,v=h&&n===1,d=v&&a===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Ns(r,t,e){switch(t){case"year":r[Qh(e)](0);case"month":r[Jh(e)](1);case"day":r[ed(e)](0);case"hour":r[td(e)](0);case"minute":r[rd(e)](0);case"second":r[ad(e)](0)}return r}function jh(r){return r?"getUTCFullYear":"getFullYear"}function Ul(r){return r?"getUTCMonth":"getMonth"}function Yl(r){return r?"getUTCDate":"getDate"}function Zl(r){return r?"getUTCHours":"getHours"}function Xl(r){return r?"getUTCMinutes":"getMinutes"}function $l(r){return r?"getUTCSeconds":"getSeconds"}function Kl(r){return r?"getUTCMilliseconds":"getMilliseconds"}function M0(r){return r?"setUTCFullYear":"setFullYear"}function Qh(r){return r?"setUTCMonth":"setMonth"}function Jh(r){return r?"setUTCDate":"setDate"}function ed(r){return r?"setUTCHours":"setHours"}function td(r){return r?"setUTCMinutes":"setMinutes"}function rd(r){return r?"setUTCSeconds":"setSeconds"}function ad(r){return r?"setUTCMilliseconds":"setMilliseconds"}function nd(r){if(!Uy(r))return $(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function id(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,a){return a.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var Ln=sh;function Vs(r,t,e){var a="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function n(f){return f&&Tn(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?Pr(r):r;if(isNaN(+l)){if(s)return"-"}else return co(l,a,e)}if(t==="ordinal")return bs(r)?n(r):ve(r)&&i(r)?r+"":"-";var u=bi(r);return i(u)?nd(u):bs(r)?n(r):typeof r=="boolean"?r+"":"-"}var lf=["a","b","c","d","e","f","g"],Lo=function(r,t){return"{"+r+(t??"")+"}"};function od(r,t,e){z(t)||(t=[t]);var a=t.length;if(!a)return"";for(var n=t[0].$vars||[],i=0;i<n.length;i++){var o=lf[i];r=r.replace(Lo(o),Lo(o,0))}for(var s=0;s<a;s++)for(var l=0;l<n.length;l++){var u=t[s][n[l]];r=r.replace(Lo(lf[l],s),e?Ze(u):u)}return r}function T0(r,t,e){return w(t,function(a,n){r=r.replace("{"+n+"}",a)}),r}function D0(r,t){var e=$(r)?{color:r,extraCssText:t}:r||{},a=e.color,n=e.type;t=e.extraCssText;var i=e.renderMode||"html";if(!a)return"";if(i==="html")return n==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Ze(a)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ze(a)+";"+(t||"")+'"></span>';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:n==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:a}:{width:10,height:10,borderRadius:5,backgroundColor:a}}}function WT(r){return r&&r.charAt(0).toUpperCase()+r.substr(1)}function Ar(r,t){return t=t||"transparent",$(r)?r:K(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function uf(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var vi={},Io={},vo=(function(){function r(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return r.prototype.create=function(t,e){this._nonSeriesBoxMasterList=a(vi),this._normalMasterList=a(Io);function a(n,i){var o=[];return w(n,function(s,l){var u=s.create(t,e);o=o.concat(u||[])}),o}},r.prototype.update=function(t,e){w(this._normalMasterList,function(a){a.update&&a.update(t,e)})},r.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},r.register=function(t,e){if(t==="matrix"||t==="calendar"){vi[t]=e;return}Io[t]=e},r.get=function(t){return Io[t]||vi[t]},r})();function A0(r){return!!vi[r]}var zs={coord:1,coord2:2};function L0(r){sd.set(r.fullType,{getCoord2:void 0}).getCoord2=r.getCoord2}var sd=q();function I0(r){var t=r.getShallow("coord",!0),e=zs.coord;if(t==null){var a=sd.get(r.type);a&&a.getCoord2&&(e=zs.coord2,t=a.getCoord2(r))}return{coord:t,from:e}}var Tt={none:0,dataCoordSys:1,boxCoordSys:2};function P0(r,t){var e=r.getShallow("coordinateSystem"),a=r.getShallow("coordinateSystemUsage",!0),n=Tt.none;if(e){var i=r.mainType==="series";a==null&&(a=i?"data":"box"),a==="data"?(n=Tt.dataCoordSys,i||(n=Tt.none)):a==="box"&&(n=Tt.boxCoordSys,!i&&!A0(e)&&(n=Tt.none))}return{coordSysType:e,kind:n}}function ld(r){var t=r.targetModel,e=r.coordSysType,a=r.coordSysProvider,n=r.isDefaultDataCoordSys;r.allowNotFound;var i=P0(t),o=i.kind,s=i.coordSysType;if(n&&o!==Tt.dataCoordSys&&(o=Tt.dataCoordSys,s=e),o===Tt.none||s!==e)return!1;var l=a(e,t);return l?(o===Tt.dataCoordSys?t.coordinateSystem=l:t.boxCoordinateSystem=l,!0):!1}var k0=function(r,t){var e=t.getReferringComponents(r,Ne).models[0];return e&&e.coordinateSystem},hi=w,R0=["left","right","top","bottom","width","height"],Sr=[["width","left","right"],["height","top","bottom"]];function ql(r,t,e,a,n){var i=0,o=0;a==null&&(a=1/0),n==null&&(n=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),h=c&&c.getBoundingRect(),v,d;if(r==="horizontal"){var p=f.width+(h?-h.x+f.x:0);v=i+p,v>a||l.newline?(i=0,v=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var y=f.height+(h?-h.y+f.y:0);d=o+y,d>n||l.newline?(i+=s+e,o=0,d=y,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+e:o=d+e)})}var na=ql;me(ql,"vertical");me(ql,"horizontal");function E0(r,t){return{left:r.getShallow("left",t),top:r.getShallow("top",t),right:r.getShallow("right",t),bottom:r.getShallow("bottom",t),width:r.getShallow("width",t),height:r.getShallow("height",t)}}function O0(r,t){var e=Rr(r,t,{enableLayoutOnlyByCenter:!0}),a=r.getBoxLayoutParams(),n,i;if(e.type===Ha.point)i=e.refPoint,n=rt(a,{width:t.getWidth(),height:t.getHeight()});else{var o=r.get("center"),s=z(o)?o:[o,o];n=rt(a,e.refContainer),i=e.boxCoordFrom===zs.coord2?e.refPoint:[ne(s[0],n.width)+n.x,ne(s[1],n.height)+n.y]}return{viewRect:n,center:i}}function B0(r,t){var e=O0(r,t),a=e.viewRect,n=e.center,i=r.get("radius");z(i)||(i=[0,i]);var o=ne(a.width,t.getWidth()),s=ne(a.height,t.getHeight()),l=Math.min(o,s),u=ne(i[0],l/2),f=ne(i[1],l/2);return{cx:n[0],cy:n[1],r0:u,r:f,viewRect:a}}function rt(r,t,e){e=Ln(e||0);var a=t.width,n=t.height,i=ne(r.left,a),o=ne(r.top,n),s=ne(r.right,a),l=ne(r.bottom,n),u=ne(r.width,a),f=ne(r.height,n),c=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=a-s-h-i),isNaN(f)&&(f=n-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>a/n?u=a*.8:f=n*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(i)&&(i=a-s-u-h),isNaN(o)&&(o=n-l-f-c),r.left||r.right){case"center":i=a/2-u/2-e[3];break;case"right":i=a-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=n/2-f/2-e[0];break;case"bottom":o=n-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=a-h-i-(s||0)),isNaN(f)&&(f=n-c-o-(l||0));var d=new Ve((t.x||0)+i+e[3],(t.y||0)+o+e[0],u,f);return d.margin=e,d}var Ha={rect:1,point:2};function Rr(r,t,e){var a,n,i,o=r.boxCoordinateSystem,s;if(o){var l=I0(r),u=l.coord,f=l.from;if(o.dataToLayout){i=Ha.rect,s=f;var c=o.dataToLayout(u);a=c.contentRect||c.rect}else e&&e.enableLayoutOnlyByCenter&&o.dataToPoint&&(i=Ha.point,s=f,n=o.dataToPoint(u))}return i==null&&(i=Ha.rect),i===Ha.rect&&(a||(a={x:0,y:0,width:t.getWidth(),height:t.getHeight()}),n=[a.x+a.width/2,a.y+a.height/2]),{type:i,refContainer:a,refPoint:n,boxCoordFrom:s}}function N0(r,t,e,a,n,i){i=i||r,i.x=r.x,i.y=r.y;var o;if(o=r.getBoundingRect(),r.needLocalTransform()){var s=r.getLocalTransform();o=o.clone(),o.applyTransform(s)}var l=rt(ae({width:o.width,height:o.height},t),e,a),u=l.x-o.x,f=l.y-o.y;return i.x+=u,i.y+=f,i===r&&r.markRedraw(),!0}function V0(r,t){return r[Sr[t][0]]!=null||r[Sr[t][1]]!=null&&r[Sr[t][2]]!=null}function pn(r){var t=r.layoutMode||r.constructor.layoutMode;return K(t)?t:t?{type:t}:null}function Rt(r,t,e){var a=e&&e.ignoreSize;!z(a)&&(a=[a,a]);var n=o(Sr[0],0),i=o(Sr[1],1);l(Sr[0],r,n),l(Sr[1],r,i);function o(u,f){var c={},h=0,v={},d=0,p=2;if(hi(u,function(m){v[m]=r[m]}),hi(u,function(m){F(t,m)&&(c[m]=v[m]=t[m]),s(c,m)&&h++,s(v,m)&&d++}),a[f])return s(t,u[1])?v[u[2]]=null:s(t,u[2])&&(v[u[1]]=null),v;if(d===p||!h)return v;if(h>=p)return c;for(var y=0;y<u.length;y++){var g=u[y];if(!F(c,g)&&F(r,g)){c[g]=r[g];break}}return c}function s(u,f){return u[f]!=null&&u[f]!=="auto"}function l(u,f,c){hi(u,function(h){f[h]=c[h]})}}function Er(r){return z0({},r)}function z0(r,t){return t&&r&&hi(R0,function(e){F(t,e)&&(r[e]=t[e])}),r}var F0=ie(),re=(function(r){W(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.uid=fo("ec_cpt_model"),i}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=pn(this),i=n?Er(e):{},o=a.getTheme();oe(e,o.get(this.mainType)),oe(e,this.getDefaultOption()),n&&Rt(e,i,n)},t.prototype.mergeOption=function(e,a){oe(this.option,e,!0);var n=pn(this);n&&Rt(this.option,e,n)},t.prototype.optionUpdated=function(e,a){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!vm(e))return e.defaultOption;var a=F0(this);if(!a.defaultOption){for(var n=[],i=e;i;){var o=i.prototype.defaultOption;o&&n.push(o),i=i.superClass}for(var s={},l=n.length-1;l>=0;l--)s=oe(s,n[l],!0);a.defaultOption=s}return a.defaultOption},t.prototype.getReferringComponents=function(e,a){var n=e+"Index",i=e+"Id";return da(this.ecModel,e,{index:this.get(n,!0),id:this.get(i,!0)},a)},t.prototype.getBoxLayoutParams=function(){return E0(this,!1)},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=(function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0})(),t})(ye);Th(re,ye);no(re);f0(re);c0(re,G0);function G0(r){var t=[];return w(re.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=X(t,function(e){return mt(e).main}),r!=="dataset"&&ue(t,"dataset")<=0&&t.unshift("dataset"),t}var O={color:{},darkColor:{},size:{}},_e=O.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)"};U(_e,{primary:_e.neutral80,secondary:_e.neutral70,tertiary:_e.neutral60,quaternary:_e.neutral50,disabled:_e.neutral20,border:_e.neutral30,borderTint:_e.neutral20,borderShade:_e.neutral40,background:_e.neutral05,backgroundTint:"rgba(234,237,245,0.5)",backgroundTransparent:"rgba(255,255,255,0)",backgroundShade:_e.neutral10,shadow:"rgba(0,0,0,0.2)",shadowTint:"rgba(129,130,136,0.2)",axisLine:_e.neutral70,axisLineTint:_e.neutral40,axisTick:_e.neutral70,axisTickMinor:_e.neutral60,axisLabel:_e.neutral70,axisSplitLine:_e.neutral15,axisMinorSplitLine:_e.neutral05});for(var fr in _e)if(_e.hasOwnProperty(fr)){var ff=_e[fr];fr==="theme"?O.darkColor.theme=_e.theme.slice():fr==="highlight"?O.darkColor.highlight="rgba(255,231,130,0.4)":fr.indexOf("accent")===0?O.darkColor[fr]=ta(ff,null,function(r){return r*.5},function(r){return Math.min(1,1.3-r)}):O.darkColor[fr]=ta(ff,null,function(r){return r*.9},function(r){return 1-Math.pow(r,1.5)})}O.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var ud="";typeof navigator<"u"&&(ud=navigator.platform||"");var Gr="rgba(0, 0, 0, 0.2)",fd=O.color.theme[0],H0=ta(fd,null,null,.9);const W0={darkMode:"auto",colorBy:"series",color:O.color.theme,gradientColor:[H0,fd],aria:{decal:{decals:[{color:Gr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Gr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Gr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Gr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Gr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Gr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:ud.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 cd=q(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),qe="original",Fe="arrayRows",nt="objectRows",ht="keyedColumns",Jt="typedArray",vd="unknown",ft="column",Or="row",Pe={Must:1,Might:2,Not:3},hd=ie();function U0(r){hd(r).datasetMap=q()}function Y0(r,t,e){var a={},n=jl(t);if(!n||!r)return a;var i=[],o=[],s=t.ecModel,l=hd(s).datasetMap,u=n.uid+"_"+e.seriesLayoutBy,f,c;r=r.slice(),w(r,function(p,y){var g=K(p)?p:r[y]={name:p};g.type==="ordinal"&&f==null&&(f=y,c=d(g)),a[g.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});w(r,function(p,y){var g=p.name,m=d(p);if(f==null){var _=h.valueWayDim;v(a[g],_,m),v(o,_,m),h.valueWayDim+=m}else if(f===y)v(a[g],0,m),v(i,0,m);else{var _=h.categoryWayDim;v(a[g],_,m),v(o,_,m),h.categoryWayDim+=m}});function v(p,y,g){for(var m=0;m<g;m++)p.push(y+m)}function d(p){var y=p.dimsDef;return y?y.length:1}return i.length&&(a.itemName=i),o.length&&(a.seriesName=o),a}function Z0(r,t,e){var a={},n=jl(r);if(!n)return a;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===nt||i===ht)&&w(o,function(f,c){(K(f)?f.name:f)==="name"&&(s=c)});var l=(function(){for(var f={},c={},h=[],v=0,d=Math.min(5,e);v<d;v++){var p=pd(t.data,i,t.seriesLayoutBy,o,t.startIndex,v);h.push(p);var y=p===Pe.Not;if(y&&f.v==null&&v!==s&&(f.v=v),(f.n==null||f.n===f.v||!y&&h[f.n]===Pe.Not)&&(f.n=v),g(f)&&h[f.n]!==Pe.Not)return f;y||(p===Pe.Might&&c.v==null&&v!==s&&(c.v=v),(c.n==null||c.n===c.v)&&(c.n=v))}function g(m){return m.v!=null&&m.n!=null}return g(f)?f:g(c)?c:null})();if(l){a.value=[l.v];var u=s??l.n;a.itemName=[u],a.seriesName=[u]}return a}function jl(r){var t=r.get("data",!0);if(!t)return da(r.ecModel,"dataset",{index:r.get("datasetIndex",!0),id:r.get("datasetId",!0)},Ne).models[0]}function X0(r){return!r.get("transform",!0)&&!r.get("fromTransformResult",!0)?[]:da(r.ecModel,"dataset",{index:r.get("fromDatasetIndex",!0),id:r.get("fromDatasetId",!0)},Ne).models}function dd(r,t){return pd(r.data,r.sourceFormat,r.seriesLayoutBy,r.dimensionsDefine,r.startIndex,t)}function pd(r,t,e,a,n,i){var o,s=5;if(Ke(r))return Pe.Not;var l,u;if(a){var f=a[i];K(f)?(l=f.name,u=f.type):$(f)&&(l=f)}if(u!=null)return u==="ordinal"?Pe.Must:Pe.Not;if(t===Fe){var c=r;if(e===Or){for(var h=c[i],v=0;v<(h||[]).length&&v<s;v++)if((o=S(h[n+v]))!=null)return o}else for(var v=0;v<c.length&&v<s;v++){var d=c[n+v];if(d&&(o=S(d[i]))!=null)return o}}else if(t===nt){var p=r;if(!l)return Pe.Not;for(var v=0;v<p.length&&v<s;v++){var y=p[v];if(y&&(o=S(y[l]))!=null)return o}}else if(t===ht){var g=r;if(!l)return Pe.Not;var h=g[l];if(!h||Ke(h))return Pe.Not;for(var v=0;v<h.length&&v<s;v++)if((o=S(h[v]))!=null)return o}else if(t===qe)for(var m=r,v=0;v<m.length&&v<s;v++){var y=m[v],_=An(y);if(!z(_))return Pe.Not;if((o=S(_[i]))!=null)return o}function S(b){var x=$(b);if(b!=null&&Number.isFinite(Number(b))&&b!=="")return x?Pe.Might:Pe.Not;if(x&&b!=="-")return Pe.Must}return Pe.Not}var $0=q();function K0(r,t,e){var a=$0.get(t);if(!a)return e;var n=a(r);return n?e.concat(n):e}var cf=ie();ie();var Ql=(function(){function r(){}return r.prototype.getColorFromPalette=function(t,e,a){var n=Ae(this.get("color",!0)),i=this.get("colorLayer",!0);return j0(this,cf,n,i,t,e,a)},r.prototype.clearColorPalette=function(){Q0(this,cf)},r})();function q0(r,t){for(var e=r.length,a=0;a<e;a++)if(r[a].length>t)return r[a];return r[e-1]}function j0(r,t,e,a,n,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(n))return u[n];var f=o==null||!a?e:q0(a,o);if(f=f||e,!(!f||!f.length)){var c=f[l];return n&&(u[n]=c),s.paletteIdx=(l+1)%f.length,c}}function Q0(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var Nn,xa,vf,hf="\0_ec_inner",J0=1,Jl=(function(r){W(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,a,n,i,o,s){i=i||{},this.option=null,this._theme=new ye(i),this._locale=new ye(o),this._optionManager=s},t.prototype.setOption=function(e,a,n){var i=gf(a);this._optionManager.setOption(e,n,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,a){return this._resetOption(e,gf(a))},t.prototype._resetOption=function(e,a){var n=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?vf(this,o):(this.restoreData(),this._mergeOption(o,a)),n=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(n=!0,this._mergeOption(s,a))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&w(l,function(u){n=!0,this._mergeOption(u,a)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,a){var n=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=q(),u=a&&a.replaceMergeMainTypeMap;U0(this),w(e,function(c,h){c!=null&&(re.hasClass(h)?h&&(s.push(h),l.set(h,!0)):n[h]=n[h]==null?ee(c):oe(n[h],c,!0))}),u&&u.each(function(c,h){re.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),re.topologicalTravel(s,re.getAllClassMainTypes(),f,this);function f(c){var h=K0(this,c,Ae(e[c])),v=i.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=qy(v,h,d);am(p,c,re),n[c]=null,i.set(c,null),o.set(c,0);var y=[],g=[],m=0,_;w(p,function(S,b){var x=S.existing,C=S.newOption;if(!C)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=c==="series",D=re.getClass(c,S.keyInfo.subType,!T);if(!D)return;if(c==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===D)x.name=S.keyInfo.name,x.mergeOption(C,this),x.optionUpdated(C,!1);else{var A=U({componentIndex:b},S.keyInfo);x=new D(C,this,this,A),U(x,A),S.brandNew&&(x.__requireNewView=!0),x.init(C,this,this),x.optionUpdated(null,!0)}}x?(y.push(x.option),g.push(x),m++):(y.push(void 0),g.push(void 0))},this),n[c]=y,i.set(c,g),o.set(c,m),c==="series"&&Nn(this)}this._seriesIndices||Nn(this)},t.prototype.getOption=function(){var e=ee(this.option);return w(e,function(a,n){if(re.hasClass(n)){for(var i=Ae(a),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!sn(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[n]=i}}),delete e[hf],e},t.prototype.setTheme=function(e){this._theme=new ye(e),this._resetOption("recreate",null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,a){var n=this._componentsMap.get(e);if(n){var i=n[a||0];if(i)return i;if(a==null){for(var o=0;o<n.length;o++)if(n[o])return n[o]}}},t.prototype.queryComponents=function(e){var a=e.mainType;if(!a)return[];var n=e.index,i=e.id,o=e.name,s=this._componentsMap.get(a);if(!s||!s.length)return[];var l;return n!=null?(l=[],w(Ae(n),function(u){s[u]&&l.push(s[u])})):i!=null?l=df("id",i,s):o!=null?l=df("name",o,s):l=Me(s,function(u){return!!u}),pf(l,e)},t.prototype.findComponents=function(e){var a=e.query,n=e.mainType,i=s(a),o=i?this.queryComponents(i):Me(this._componentsMap.get(n),function(u){return!!u});return l(pf(o,e));function s(u){var f=n+"Index",c=n+"Id",h=n+"Name";return u&&(u[f]!=null||u[c]!=null||u[h]!=null)?{mainType:n,index:u[f],id:u[c],name:u[h]}:null}function l(u){return e.filter?Me(u,e.filter):u}},t.prototype.eachComponent=function(e,a,n){var i=this._componentsMap;if(j(e)){var o=a,s=e;i.each(function(c,h){for(var v=0;c&&v<c.length;v++){var d=c[v];d&&s.call(o,h,d,d.componentIndex)}})}else for(var l=$(e)?i.get(e):K(e)?this.findComponents(e):null,u=0;l&&u<l.length;u++){var f=l[u];f&&a.call(n,f,f.componentIndex)}},t.prototype.getSeriesByName=function(e){var a=ut(e,null);return Me(this._componentsMap.get("series"),function(n){return!!n&&a!=null&&n.name===a})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get("series")[e]},t.prototype.getSeriesByType=function(e){return Me(this._componentsMap.get("series"),function(a){return!!a&&a.subType===e})},t.prototype.getSeries=function(){return Me(this._componentsMap.get("series"),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(e,a){xa(this),w(this._seriesIndices,function(n){var i=this._componentsMap.get("series")[n];e.call(a,i,n)},this)},t.prototype.eachRawSeries=function(e,a){w(this._componentsMap.get("series"),function(n){n&&e.call(a,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,a,n){xa(this),w(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===e&&a.call(n,o,i)},this)},t.prototype.eachRawSeriesByType=function(e,a,n){return w(this.getSeriesByType(e),a,n)},t.prototype.isSeriesFiltered=function(e){return xa(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,a){xa(this);var n=[];w(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];e.call(a,o,i)&&n.push(i)},this),this._seriesIndices=n,this._seriesIndicesMap=q(n)},t.prototype.restoreData=function(e){Nn(this);var a=this._componentsMap,n=[];a.each(function(i,o){re.hasClass(o)&&n.push(o)}),re.topologicalTravel(n,re.getAllClassMainTypes(),function(i){w(a.get(i),function(o){o&&(i!=="series"||!e_(o,e))&&o.restoreData()})})},t.internalField=(function(){Nn=function(e){var a=e._seriesIndices=[];w(e._componentsMap.get("series"),function(n){n&&a.push(n.componentIndex)}),e._seriesIndicesMap=q(a)},xa=function(e){},vf=function(e,a){e.option={},e.option[hf]=J0,e._componentsMap=q({series:[]}),e._componentsCount=q();var n=a.aria;K(n)&&n.enabled==null&&(n.enabled=!0),t_(a,e._theme.option),oe(a,W0,!1),e._mergeOption(a,null)}})(),t})(ye);function e_(r,t){if(t){var e=t.seriesIndex,a=t.seriesId,n=t.seriesName;return e!=null&&r.componentIndex!==e||a!=null&&r.id!==a||n!=null&&r.name!==n}}function t_(r,t){var e=r.color&&!r.colorLayer;w(t,function(a,n){n==="colorLayer"&&e||n==="color"&&r.color||re.hasClass(n)||(typeof a=="object"?r[n]=r[n]?oe(r[n],a,!1):ee(a):r[n]==null&&(r[n]=a))})}function df(r,t,e){if(z(t)){var a=q();return w(t,function(i){if(i!=null){var o=ut(i,null);o!=null&&a.set(i,!0)}}),Me(e,function(i){return i&&a.get(i[r])})}else{var n=ut(t,null);return Me(e,function(i){return i&&n!=null&&i[r]===n})}}function pf(r,t){return t.hasOwnProperty("subType")?Me(r,function(e){return e&&e.subType===t.subType}):r}function gf(r){var t=q();return r&&w(Ae(r.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}Ot(Jl,Ql);var r_=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],gd=(function(){function r(t){w(r_,function(e){this[e]=Z(t[e],t)},this)}return r})(),a_=/^(min|max)?(.+)$/,n_=(function(){function r(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return r.prototype.setOption=function(t,e,a){t&&(w(Ae(t.series),function(o){o&&o.data&&Ke(o.data)&&_i(o.data)}),w(Ae(t.dataset),function(o){o&&o.source&&Ke(o.source)&&_i(o.source)})),t=ee(t);var n=this._optionBackup,i=i_(t,e,!n);this._newBaseOption=i.baseOption,n?(i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},r.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],ee(t?e.baseOption:this._newBaseOption)},r.prototype.getTimelineOption=function(t){var e,a=this._timelineOptions;if(a.length){var n=t.getComponent("timeline");n&&(e=ee(a[n.getCurrentIndex()]))}return e},r.prototype.getMediaOption=function(t){var e=this._api.getWidth(),a=this._api.getHeight(),n=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!n.length&&!i)return s;for(var l=0,u=n.length;l<u;l++)o_(n[l].query,e,a)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!l_(o,this._currentMediaIndices)&&(s=X(o,function(f){return ee(f===-1?i.option:n[f].option)})),this._currentMediaIndices=o,s},r})();function i_(r,t,e){var a=[],n,i,o=r.baseOption,s=r.timeline,l=r.options,u=r.media,f=!!r.media,c=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((c||f)&&(r.options=r.media=null),i=r),f&&z(u)&&w(u,function(v){v&&v.option&&(v.query?a.push(v):n||(n=v))}),h(i),w(l,function(v){return h(v)}),w(a,function(v){return h(v.option)});function h(v){w(t,function(d){d(v,e)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:n,mediaList:a}}function o_(r,t,e){var a={width:t,height:e,aspectratio:t/e},n=!0;return w(r,function(i,o){var s=o.match(a_);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();s_(a[u],i,l)||(n=!1)}}),n}function s_(r,t,e){return e==="min"?r>=t:e==="max"?r<=t:r===t}function l_(r,t){return r.join(",")===t.join(",")}var it=w,gn=K,yf=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Po(r){var t=r&&r.itemStyle;if(t)for(var e=0,a=yf.length;e<a;e++){var n=yf[e],i=t.normal,o=t.emphasis;i&&i[n]&&(r[n]=r[n]||{},r[n].normal?oe(r[n].normal,i[n]):r[n].normal=i[n],i[n]=null),o&&o[n]&&(r[n]=r[n]||{},r[n].emphasis?oe(r[n].emphasis,o[n]):r[n].emphasis=o[n],o[n]=null)}}function Be(r,t,e){if(r&&r[t]&&(r[t].normal||r[t].emphasis)){var a=r[t].normal,n=r[t].emphasis;a&&(e?(r[t].normal=r[t].emphasis=null,ae(r[t],a)):r[t]=a),n&&(r.emphasis=r.emphasis||{},r.emphasis[t]=n,n.focus&&(r.emphasis.focus=n.focus),n.blurScope&&(r.emphasis.blurScope=n.blurScope))}}function Wa(r){Be(r,"itemStyle"),Be(r,"lineStyle"),Be(r,"areaStyle"),Be(r,"label"),Be(r,"labelLine"),Be(r,"upperLabel"),Be(r,"edgeLabel")}function xe(r,t){var e=gn(r)&&r[t],a=gn(e)&&e.textStyle;if(a)for(var n=0,i=Hu.length;n<i;n++){var o=Hu[n];a.hasOwnProperty(o)&&(e[o]=a[o])}}function Je(r){r&&(Wa(r),xe(r,"label"),r.emphasis&&xe(r.emphasis,"label"))}function u_(r){if(gn(r)){Po(r),Wa(r),xe(r,"label"),xe(r,"upperLabel"),xe(r,"edgeLabel"),r.emphasis&&(xe(r.emphasis,"label"),xe(r.emphasis,"upperLabel"),xe(r.emphasis,"edgeLabel"));var t=r.markPoint;t&&(Po(t),Je(t));var e=r.markLine;e&&(Po(e),Je(e));var a=r.markArea;a&&Je(a);var n=r.data;if(r.type==="graph"){n=n||r.nodes;var i=r.links||r.edges;if(i&&!Ke(i))for(var o=0;o<i.length;o++)Je(i[o]);w(r.categories,function(u){Wa(u)})}if(n&&!Ke(n))for(var o=0;o<n.length;o++)Je(n[o]);if(t=r.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Je(s[o]);if(e=r.markLine,e&&e.data)for(var l=e.data,o=0;o<l.length;o++)z(l[o])?(Je(l[o][0]),Je(l[o][1])):Je(l[o]);r.type==="gauge"?(xe(r,"axisLabel"),xe(r,"title"),xe(r,"detail")):r.type==="treemap"?(Be(r.breadcrumb,"itemStyle"),w(r.levels,function(u){Wa(u)})):r.type==="tree"&&Wa(r.leaves)}}function wt(r){return z(r)?r:r?[r]:[]}function mf(r){return(z(r)?r[0]:r)||{}}function f_(r,t){it(wt(r.series),function(a){gn(a)&&u_(a)});var e=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&e.push("valueAxis","categoryAxis","logAxis","timeAxis"),it(e,function(a){it(wt(r[a]),function(n){n&&(xe(n,"axisLabel"),xe(n.axisPointer,"label"))})}),it(wt(r.parallel),function(a){var n=a&&a.parallelAxisDefault;xe(n,"axisLabel"),xe(n&&n.axisPointer,"label")}),it(wt(r.calendar),function(a){Be(a,"itemStyle"),xe(a,"dayLabel"),xe(a,"monthLabel"),xe(a,"yearLabel")}),it(wt(r.radar),function(a){xe(a,"name"),a.name&&a.axisName==null&&(a.axisName=a.name,delete a.name),a.nameGap!=null&&a.axisNameGap==null&&(a.axisNameGap=a.nameGap,delete a.nameGap)}),it(wt(r.geo),function(a){gn(a)&&(Je(a),it(wt(a.regions),function(n){Je(n)}))}),it(wt(r.timeline),function(a){Je(a),Be(a,"label"),Be(a,"itemStyle"),Be(a,"controlStyle",!0);var n=a.data;z(n)&&w(n,function(i){K(i)&&(Be(i,"label"),Be(i,"itemStyle"))})}),it(wt(r.toolbox),function(a){Be(a,"iconStyle"),it(a.feature,function(n){Be(n,"iconStyle")})}),xe(mf(r.axisPointer),"label"),xe(mf(r.tooltip).axisPointer,"label")}function c_(r,t){for(var e=t.split(","),a=r,n=0;n<e.length&&(a=a&&a[e[n]],a!=null);n++);return a}function v_(r,t,e,a){for(var n=t.split(","),i=r,o,s=0;s<n.length-1;s++)o=n[s],i[o]==null&&(i[o]={}),i=i[o];i[n[s]]==null&&(i[n[s]]=e)}function _f(r){r&&w(h_,function(t){t[0]in r&&!(t[1]in r)&&(r[t[1]]=r[t[0]])})}var h_=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],d_=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],ko=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ba(r){var t=r&&r.itemStyle;if(t)for(var e=0;e<ko.length;e++){var a=ko[e][1],n=ko[e][0];t[a]!=null&&(t[n]=t[a])}}function Sf(r){r&&r.alignTo==="edge"&&r.margin!=null&&r.edgeDistance==null&&(r.edgeDistance=r.margin)}function xf(r){r&&r.downplay&&!r.blur&&(r.blur=r.downplay)}function p_(r){r&&r.focusNodeAdjacency!=null&&(r.emphasis=r.emphasis||{},r.emphasis.focus==null&&(r.emphasis.focus="adjacency"))}function yd(r,t){if(r)for(var e=0;e<r.length;e++)t(r[e]),r[e]&&yd(r[e].children,t)}function md(r,t){f_(r,t),r.series=Ae(r.series),w(r.series,function(e){if(K(e)){var a=e.type;if(a==="line")e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(a==="pie"||a==="gauge"){e.clockWise!=null&&(e.clockwise=e.clockWise),Sf(e.label);var n=e.data;if(n&&!Ke(n))for(var i=0;i<n.length;i++)Sf(n[i]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(a==="gauge"){var o=c_(e,"pointer.color");o!=null&&v_(e,"itemStyle.color",o)}else if(a==="bar"){ba(e),ba(e.backgroundStyle),ba(e.emphasis);var n=e.data;if(n&&!Ke(n))for(var i=0;i<n.length;i++)typeof n[i]=="object"&&(ba(n[i]),ba(n[i]&&n[i].emphasis))}else if(a==="sunburst"){var s=e.highlightPolicy;s&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=s)),xf(e),yd(e.data,xf)}else a==="graph"||a==="sankey"?p_(e):a==="map"&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&ae(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),_f(e)}}),r.dataRange&&(r.visualMap=r.dataRange),w(d_,function(e){var a=r[e];a&&(z(a)||(a=[a]),w(a,function(n){_f(n)}))})}function g_(r){var t=q();r.eachSeries(function(e){var a=e.get("stack");if(a){var n=t.get(a)||t.set(a,[]),i=e.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:e};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;n.push(o)}}),t.each(function(e){if(e.length!==0){var a=e[0].seriesModel,n=a.get("stackOrder")||"seriesAsc";n==="seriesDesc"&&e.reverse(),w(e,function(i,o){i.data.setCalculationInfo("stackedOnSeries",o>0?e[o-1].seriesModel:null)}),y_(e)}})}function y_(r){w(r,function(t,e){var a=[],n=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,f,c){var h=o.get(t.stackedDimension,c);if(isNaN(h))return n;var v,d;s?d=o.getRawIndex(c):v=o.get(t.stackedByDimension,c);for(var p=NaN,y=e-1;y>=0;y--){var g=r[y];if(s||(d=g.data.rawIndexOf(g.stackedByDimension,v)),d>=0){var m=g.data.getByRawIndex(g.stackResultDimension,d);if(l==="all"||l==="positive"&&m>0||l==="negative"&&m<0||l==="samesign"&&h>=0&&m>0||l==="samesign"&&h<=0&&m<0){h=Gy(h,m),p=m;break}}}return a[0]=h,a[1]=p,a})})}var ho=(function(){function r(t){this.data=t.data||(t.sourceFormat===ht?{}:[]),this.sourceFormat=t.sourceFormat||vd,this.seriesLayoutBy=t.seriesLayoutBy||ft,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var a=0;a<e.length;a++){var n=e[a];n.type==null&&dd(this,a)===Pe.Must&&(n.type="ordinal")}}return r})();function eu(r){return r instanceof ho}function Fs(r,t,e){e=e||Sd(r);var a=t.seriesLayoutBy,n=__(r,e,a,t.sourceHeader,t.dimensions),i=new ho({data:r,sourceFormat:e,seriesLayoutBy:a,dimensionsDefine:n.dimensionsDefine,startIndex:n.startIndex,dimensionsDetectedCount:n.dimensionsDetectedCount,metaRawOption:ee(t)});return i}function _d(r){return new ho({data:r,sourceFormat:Ke(r)?Jt:qe})}function m_(r){return new ho({data:r.data,sourceFormat:r.sourceFormat,seriesLayoutBy:r.seriesLayoutBy,dimensionsDefine:ee(r.dimensionsDefine),startIndex:r.startIndex,dimensionsDetectedCount:r.dimensionsDetectedCount})}function Sd(r){var t=vd;if(Ke(r))t=Jt;else if(z(r)){r.length===0&&(t=Fe);for(var e=0,a=r.length;e<a;e++){var n=r[e];if(n!=null){if(z(n)||Ke(n)){t=Fe;break}else if(K(n)){t=nt;break}}}}else if(K(r)){for(var i in r)if(F(r,i)&&Mn(r[i])){t=ht;break}}return t}function __(r,t,e,a,n){var i,o;if(!r)return{dimensionsDefine:bf(n),startIndex:o,dimensionsDetectedCount:i};if(t===Fe){var s=r;a==="auto"||a==null?wf(function(u){u!=null&&u!=="-"&&($(u)?o==null&&(o=1):o=0)},e,s,10):o=ve(a)?a:a?1:0,!n&&o===1&&(n=[],wf(function(u,f){n[f]=u!=null?u+"":""},e,s,1/0)),i=n?n.length:e===Or?s.length:s[0]?s[0].length:null}else if(t===nt)n||(n=S_(r));else if(t===ht)n||(n=[],w(r,function(u,f){n.push(f)}));else if(t===qe){var l=An(r[0]);i=z(l)&&l.length||1}return{startIndex:o,dimensionsDefine:bf(n),dimensionsDetectedCount:i}}function S_(r){for(var t=0,e;t<r.length&&!(e=r[t++]););if(e)return Ie(e)}function bf(r){if(r){var t=q();return X(r,function(e,a){e=K(e)?e:{name:e};var n={name:e.name,displayName:e.displayName,type:e.type};if(n.name==null)return n;n.name+="",n.displayName==null&&(n.displayName=n.name);var i=t.get(n.name);return i?n.name+="-"+i.count++:t.set(n.name,{count:1}),n})}}function wf(r,t,e,a){if(t===Or)for(var n=0;n<e.length&&n<a;n++)r(e[n]?e[n][0]:null,n);else for(var i=e[0]||[],n=0;n<i.length&&n<a;n++)r(i[n],n)}function xd(r){var t=r.sourceFormat;return t===nt||t===ht}var cr,vr,hr,dr,Cf,Mf,bd=(function(){function r(t,e){var a=eu(t)?t:_d(t);this._source=a;var n=this._data=a.data,i=a.sourceFormat;a.seriesLayoutBy,i===Jt&&(this._offset=0,this._dimSize=e,this._data=n),Mf(this,n,a)}return r.prototype.getSource=function(){return this._source},r.prototype.count=function(){return 0},r.prototype.getItem=function(t,e){},r.prototype.appendData=function(t){},r.prototype.clean=function(){},r.protoInitialize=(function(){var t=r.prototype;t.pure=!1,t.persistent=!0})(),r.internalField=(function(){var t;Mf=function(o,s,l){var u=l.sourceFormat,f=l.seriesLayoutBy,c=l.startIndex,h=l.dimensionsDefine,v=Cf[tu(u,f)];if(U(o,v),u===Jt)o.getItem=e,o.count=n,o.fillStorage=a;else{var d=wd(u,f);o.getItem=Z(d,null,s,c,h);var p=Cd(u,f);o.count=Z(p,null,s,c,h)}};var e=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,f=u*o,c=0;c<u;c++)s[c]=l[f+c];return s},a=function(o,s,l,u){for(var f=this._data,c=this._dimSize,h=0;h<c;h++){for(var v=u[h],d=v[0]==null?1/0:v[0],p=v[1]==null?-1/0:v[1],y=s-o,g=l[h],m=0;m<y;m++){var _=f[m*c+h];g[o+m]=_,_<d&&(d=_),_>p&&(p=_)}v[0]=d,v[1]=p}},n=function(){return this._data?this._data.length/this._dimSize:0};Cf=(t={},t[Fe+"_"+ft]={pure:!0,appendData:i},t[Fe+"_"+Or]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[nt]={pure:!0,appendData:i},t[ht]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[qe]={appendData:i},t[Jt]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}})(),r})(),Vn=function(r){z(r)||Sh("series.data or dataset.source must be an array.")};cr={},cr[Fe+"_"+ft]=Vn,cr[Fe+"_"+Or]=Vn,cr[nt]=Vn,cr[ht]=function(r,t){for(var e=0;e<t.length;e++){var a=t[e].name;a==null&&Sh("dimension name must not be null/undefined.")}},cr[qe]=Vn;var Tf=function(r,t,e,a){return r[a]},x_=(vr={},vr[Fe+"_"+ft]=function(r,t,e,a){return r[a+t]},vr[Fe+"_"+Or]=function(r,t,e,a,n){a+=t;for(var i=n||[],o=r,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[a]:null}return i},vr[nt]=Tf,vr[ht]=function(r,t,e,a,n){for(var i=n||[],o=0;o<e.length;o++){var s=e[o].name,l=s!=null?r[s]:null;i[o]=l?l[a]:null}return i},vr[qe]=Tf,vr);function wd(r,t){var e=x_[tu(r,t)];return e}var Df=function(r,t,e){return r.length},b_=(hr={},hr[Fe+"_"+ft]=function(r,t,e){return Math.max(0,r.length-t)},hr[Fe+"_"+Or]=function(r,t,e){var a=r[0];return a?Math.max(0,a.length-t):0},hr[nt]=Df,hr[ht]=function(r,t,e){var a=e[0].name,n=a!=null?r[a]:null;return n?n.length:0},hr[qe]=Df,hr);function Cd(r,t){var e=b_[tu(r,t)];return e}var Ro=function(r,t,e){return r[t]},w_=(dr={},dr[Fe]=Ro,dr[nt]=function(r,t,e){return r[e]},dr[ht]=Ro,dr[qe]=function(r,t,e){var a=An(r);return a instanceof Array?a[t]:a},dr[Jt]=Ro,dr);function Md(r){var t=w_[r];return t}function tu(r,t){return r===Fe?r+"_"+t:r}function la(r,t,e){if(r){var a=r.getRawDataItem(t);if(a!=null){var n=r.getStore(),i=n.getSource().sourceFormat;if(e!=null){var o=r.getDimensionIndex(e),s=n.getDimensionProperty(o);return Md(i)(a,o,s)}else{var l=a;return i===qe&&(l=An(a)),l}}}}var C_=/\{@(.+?)\}/g,M_=(function(){function r(){}return r.prototype.getDataParams=function(t,e){var a=this.getData(e),n=this.getRawValue(t,e),i=a.getRawIndex(t),o=a.getName(t),s=a.getRawDataItem(t),l=a.getItemVisual(t,"style"),u=l&&l[a.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,c=this.mainType,h=c==="series",v=a.userOutput&&a.userOutput.get();return{componentType:c,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:h?this.subType:null,seriesIndex:this.seriesIndex,seriesId:h?this.id:null,seriesName:h?this.name:null,name:o,dataIndex:i,data:s,dataType:e,value:n,color:u,borderColor:f,dimensionNames:v?v.fullDimensions:null,encode:v?v.encode:null,$vars:["seriesName","name","value"]}},r.prototype.getFormattedLabel=function(t,e,a,n,i,o){e=e||"normal";var s=this.getData(a),l=this.getDataParams(t,a);if(o&&(l.value=o.interpolatedValue),n!=null&&z(l.value)&&(l.value=l.value[n]),!i){var u=s.getItemModel(t);i=u.get(e==="normal"?["label","formatter"]:[e,"label","formatter"])}if(j(i))return l.status=e,l.dimensionIndex=n,i(l);if($(i)){var f=od(i,l);return f.replace(C_,function(c,h){var v=h.length,d=h;d.charAt(0)==="["&&d.charAt(v-1)==="]"&&(d=+d.slice(1,v-1));var p=la(s,t,d);if(o&&z(o.interpolatedValue)){var y=s.getDimensionIndex(d);y>=0&&(p=o.interpolatedValue[y])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return la(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,a){},r})();function Af(r){var t,e;return K(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function Qa(r){return new T_(r)}var T_=(function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,a=t&&t.skip;if(this._dirty&&e){var n=this.context;n.data=n.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!a&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(m){return!(m>=1)&&(m=1),m}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(a)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!a&&(c||v<d)){var p=this._progress;if(z(p))for(var y=0;y<p.length;y++)this._doProgress(p[y],v,d,l,u);else this._doProgress(p,v,d,l,u)}this._dueIndex=d;var g=this._settedOutputEnd!=null?this._settedOutputEnd:d;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},r.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},r.prototype._doProgress=function(t,e,a,n,i){Lf.reset(e,a,n,i),this._callingProgress=t,this._callingProgress({start:e,end:a,count:a-e,next:Lf.next},this.context)},r.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var e,a;!t&&this._reset&&(e=this._reset(this.context),e&&e.progress&&(a=e.forceFirstProgress,e=e.progress),z(e)&&!e.length&&(e=null)),this._progress=e,this._modBy=this._modDataCount=null;var n=this._downstream;return n&&n.dirty(),a},r.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},r.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},r.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},r.prototype.getUpstream=function(){return this._upstream},r.prototype.getDownstream=function(){return this._downstream},r.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},r})(),Lf=(function(){var r,t,e,a,n,i={reset:function(l,u,f,c){t=l,r=u,e=f,a=c,n=Math.ceil(a/e),i.next=e>1&&a>0?s:o}};return i;function o(){return t<r?t++:null}function s(){var l=t%n*e+Math.ceil(t/n),u=t>=r?null:l<a?l:t;return t++,u}})();function di(r,t){var e=t&&t.type;return e==="ordinal"?r:(e==="time"&&!ve(r)&&r!=null&&r!=="-"&&(r=+Pr(r)),r==null||r===""?NaN:Number(r))}q({number:function(r){return parseFloat(r)},time:function(r){return+Pr(r)},trim:function(r){return $(r)?Tn(r):r}});var D_=(function(){function r(t,e){var a=t==="desc";this._resultLT=a?1:-1,e==null&&(e=a?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var a=ve(t)?t:bi(t),n=ve(e)?e:bi(e),i=isNaN(a),o=isNaN(n);if(i&&(a=this._incomparable),o&&(n=this._incomparable),i&&o){var s=$(t),l=$(e);s&&(a=l?t:0),l&&(n=s?e:0)}return a<n?this._resultLT:a>n?-this._resultLT:0},r})(),A_=(function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return di(t,e)},r})();function L_(r,t){var e=new A_,a=r.data,n=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==ft&&ke(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(p,y){var g=p.name,m={index:y,name:g,displayName:p.displayName};if(s.push(m),g!=null){var _="";F(l,g)&&ke(_),l[g]=m}});else for(var f=0;f<r.dimensionsDetectedCount;f++)s.push({index:f});var c=wd(n,ft);t.__isBuiltIn&&(e.getRawDataItem=function(p){return c(a,i,s,p)},e.getRawData=Z(I_,null,r)),e.cloneRawData=Z(P_,null,r);var h=Cd(n,ft);e.count=Z(h,null,a,i,s);var v=Md(n);e.retrieveValue=function(p,y){var g=c(a,i,s,p);return d(g,y)};var d=e.retrieveValueFromItem=function(p,y){if(p!=null){var g=s[y];if(g)return v(p,y,g.name)}};return e.getDimensionInfo=Z(k_,null,s,l),e.cloneAllDimensionInfo=Z(R_,null,s),e}function I_(r){var t=r.sourceFormat;if(!ru(t)){var e="";ke(e)}return r.data}function P_(r){var t=r.sourceFormat,e=r.data;if(!ru(t)){var a="";ke(a)}if(t===Fe){for(var n=[],i=0,o=e.length;i<o;i++)n.push(e[i].slice());return n}else if(t===nt){for(var n=[],i=0,o=e.length;i<o;i++)n.push(U({},e[i]));return n}}function k_(r,t,e){if(e!=null){if(ve(e)||!isNaN(e)&&!F(t,e))return r[e];if(F(t,e))return t[e]}}function R_(r){return ee(r)}var Td=q();function E_(r){r=ee(r);var t=r.type,e="";t||ke(e);var a=t.split(":");a.length!==2&&ke(e);var n=!1;a[0]==="echarts"&&(t=a[1],n=!0),r.__isBuiltIn=n,Td.set(t,r)}function O_(r,t,e){var a=Ae(r),n=a.length,i="";n||ke(i);for(var o=0,s=n;o<s;o++){var l=a[o];t=B_(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function B_(r,t,e,a){var n="";t.length||ke(n),K(r)||ke(n);var i=r.type,o=Td.get(i);o||ke(n);var s=X(t,function(u){return L_(u,o)}),l=Ae(o.transform({upstream:s[0],upstreamList:s,config:ee(r.config)}));return X(l,function(u,f){var c="";K(u)||ke(c),u.data||ke(c);var h=Sd(u.data);ru(h)||ke(c);var v,d=t[0];if(d&&f===0&&!u.dimensions){var p=d.startIndex;p&&(u.data=d.data.slice(0,p).concat(u.data)),v={seriesLayoutBy:ft,sourceHeader:p,dimensions:d.metaRawOption.dimensions}}else v={seriesLayoutBy:ft,sourceHeader:0,dimensions:u.dimensions};return Fs(u.data,v,null)})}function ru(r){return r===Fe||r===nt}var po="undefined",N_=typeof Uint32Array===po?Array:Uint32Array,V_=typeof Uint16Array===po?Array:Uint16Array,Dd=typeof Int32Array===po?Array:Int32Array,If=typeof Float64Array===po?Array:Float64Array,Ad={float:If,int:Dd,ordinal:Array,number:Array,time:If},Eo;function Hr(r){return r>65535?N_:V_}function Wr(){return[1/0,-1/0]}function z_(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function Pf(r,t,e,a,n){var i=Ad[e||"float"];if(n){var o=r[t],s=o&&o.length;if(s!==a){for(var l=new i(a),u=0;u<s;u++)l[u]=o[u];r[t]=l}}else r[t]=new i(a)}var Gs=(function(){function r(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=q()}return r.prototype.initData=function(t,e,a){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var n=t.getSource(),i=this.defaultDimValueGetter=Eo[n.sourceFormat];this._dimValueGetter=a||i,this._rawExtent=[],xd(n),this._dimensions=X(e,function(o){return{type:o.type,property:o.property}}),this._initDataFromProvider(0,t.count())},r.prototype.getProvider=function(){return this._provider},r.prototype.getSource=function(){return this._provider.getSource()},r.prototype.ensureCalculationDimension=function(t,e){var a=this._calcDimNameToIdx,n=this._dimensions,i=a.get(t);if(i!=null){if(n[i].type===e)return i}else i=n.length;return n[i]={type:e},a.set(t,i),this._chunks[i]=new Ad[e||"float"](this._rawCount),this._rawExtent[i]=Wr(),i},r.prototype.collectOrdinalMeta=function(t,e){var a=this._chunks[t],n=this._dimensions[t],i=this._rawExtent,o=n.ordinalOffset||0,s=a.length;o===0&&(i[t]=Wr());for(var l=i[t],u=o;u<s;u++){var f=a[u]=e.parseAndCollect(a[u]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}n.ordinalMeta=e,n.ordinalOffset=s,n.type="ordinal"},r.prototype.getOrdinalMeta=function(t){var e=this._dimensions[t],a=e.ordinalMeta;return a},r.prototype.getDimensionProperty=function(t){var e=this._dimensions[t];return e&&e.property},r.prototype.appendData=function(t){var e=this._provider,a=this.count();e.appendData(t);var n=e.count();return e.persistent||(n+=a),a<n&&this._initDataFromProvider(a,n,!0),[a,n]},r.prototype.appendValues=function(t,e){for(var a=this._chunks,n=this._dimensions,i=n.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,e||0),u=0;u<i;u++){var f=n[u];Pf(a,u,f.type,l,!0)}for(var c=[],h=s;h<l;h++)for(var v=h-s,d=0;d<i;d++){var f=n[d],p=Eo.arrayRows.call(this,t[v]||c,f.property,v,d);a[d][h]=p;var y=o[d];p<y[0]&&(y[0]=p),p>y[1]&&(y[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,a){for(var n=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=X(o,function(m){return m.property}),f=0;f<s;f++){var c=o[f];l[f]||(l[f]=Wr()),Pf(i,f,c.type,e,a)}if(n.fillStorage)n.fillStorage(t,e,i,l);else for(var h=[],v=t;v<e;v++){h=n.getItem(v,h);for(var d=0;d<s;d++){var p=i[d],y=this._dimValueGetter(h,u[d],v,d);p[v]=y;var g=l[d];y<g[0]&&(g[0]=y),y>g[1]&&(g[1]=y)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e<this._count))return NaN;var a=this._chunks[t];return a?a[this.getRawIndex(e)]:NaN},r.prototype.getValues=function(t,e){var a=[],n=[];if(e==null){e=t,t=[];for(var i=0;i<this._dimensions.length;i++)n.push(i)}else n=t;for(var i=0,o=n.length;i<o;i++)a.push(this.get(n[i],e));return a},r.prototype.getByRawIndex=function(t,e){if(!(e>=0&&e<this._rawCount))return NaN;var a=this._chunks[t];return a?a[e]:NaN},r.prototype.getSum=function(t){var e=this._chunks[t],a=0;if(e)for(var n=0,i=this.count();n<i;n++){var o=this.get(t,n);isNaN(o)||(a+=o)}return a},r.prototype.getMedian=function(t){var e=[];this.each([t],function(i){isNaN(i)||e.push(i)});var a=e.sort(function(i,o){return i-o}),n=this.count();return n===0?0:n%2===1?a[(n-1)/2]:(a[n/2]+a[n/2-1])/2},r.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,a=e[t];if(a!=null&&a<this._count&&a===t)return t;for(var n=0,i=this._count-1;n<=i;){var o=(n+i)/2|0;if(e[o]<t)n=o+1;else if(e[o]>t)i=o-1;else return o}return-1},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var a=e.constructor,n=this._count;if(a===Array){t=new a(n);for(var i=0;i<n;i++)t[i]=e[i]}else t=new a(e.buffer,0,n)}else{var a=Hr(this._rawCount);t=new a(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},r.prototype.filter=function(t,e){if(!this._count)return this;for(var a=this.clone(),n=a.count(),i=Hr(a._rawCount),o=new i(n),s=[],l=t.length,u=0,f=t[0],c=a._chunks,h=0;h<n;h++){var v=void 0,d=a.getRawIndex(h);if(l===0)v=e(h);else if(l===1){var p=c[f][d];v=e(p,h)}else{for(var y=0;y<l;y++)s[y]=c[t[y]][d];s[y]=h,v=e.apply(null,s)}v&&(o[u++]=d)}return u<n&&(a._indices=o),a._count=u,a._extent=[],a._updateGetRawIdx(),a},r.prototype.selectRange=function(t){var e=this.clone(),a=e._count;if(!a)return this;var n=Ie(t),i=n.length;if(!i)return this;var o=e.count(),s=Hr(e._rawCount),l=new s(o),u=0,f=n[0],c=t[f][0],h=t[f][1],v=e._chunks,d=!1;if(!e._indices){var p=0;if(i===1){for(var y=v[n[0]],g=0;g<a;g++){var m=y[g];(m>=c&&m<=h||isNaN(m))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var y=v[n[0]],_=v[n[1]],S=t[n[1]][0],b=t[n[1]][1],g=0;g<a;g++){var m=y[g],x=_[g];(m>=c&&m<=h||isNaN(m))&&(x>=S&&x<=b||isNaN(x))&&(l[u++]=p),p++}d=!0}}if(!d)if(i===1)for(var g=0;g<o;g++){var C=e.getRawIndex(g),m=v[n[0]][C];(m>=c&&m<=h||isNaN(m))&&(l[u++]=C)}else for(var g=0;g<o;g++){for(var T=!0,C=e.getRawIndex(g),D=0;D<i;D++){var A=n[D],m=v[A][C];(m<t[A][0]||m>t[A][1])&&(T=!1)}T&&(l[u++]=e.getRawIndex(g))}return u<o&&(e._indices=l),e._count=u,e._extent=[],e._updateGetRawIdx(),e},r.prototype.map=function(t,e){var a=this.clone(t);return this._updateDims(a,t,e),a},r.prototype.modify=function(t,e){this._updateDims(this,t,e)},r.prototype._updateDims=function(t,e,a){for(var n=t._chunks,i=[],o=e.length,s=t.count(),l=[],u=t._rawExtent,f=0;f<e.length;f++)u[e[f]]=Wr();for(var c=0;c<s;c++){for(var h=t.getRawIndex(c),v=0;v<o;v++)l[v]=n[e[v]][h];l[o]=c;var d=a&&a.apply(null,l);if(d!=null){typeof d!="object"&&(i[0]=d,d=i);for(var f=0;f<d.length;f++){var p=e[f],y=d[f],g=u[p],m=n[p];m&&(m[h]=y),y<g[0]&&(g[0]=y),y>g[1]&&(g[1]=y)}}}},r.prototype.lttbDownSample=function(t,e){var a=this.clone([t],!0),n=a._chunks,i=n[t],o=this.count(),s=0,l=Math.floor(1/e),u=this.getRawIndex(0),f,c,h,v=new(Hr(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));v[s++]=u;for(var d=1;d<o-1;d+=l){for(var p=Math.min(d+l,o-1),y=Math.min(d+l*2,o),g=(y+p)/2,m=0,_=p;_<y;_++){var S=this.getRawIndex(_),b=i[S];isNaN(b)||(m+=b)}m/=y-p;var x=d,C=Math.min(d+l,o),T=d-1,D=i[u];f=-1,h=x;for(var A=-1,M=0,_=x;_<C;_++){var S=this.getRawIndex(_),b=i[S];if(isNaN(b)){M++,A<0&&(A=S);continue}c=Math.abs((T-g)*(b-D)-(T-_)*(m-D)),c>f&&(f=c,h=S)}M>0&&M<C-x&&(v[s++]=Math.min(A,h),h=Math.max(A,h)),v[s++]=h,u=h}return v[s++]=this.getRawIndex(o-1),a._count=s,a._indices=v,a.getRawIndex=this._getRawIdx,a},r.prototype.minmaxDownSample=function(t,e){for(var a=this.clone([t],!0),n=a._chunks,i=Math.floor(1/e),o=n[t],s=this.count(),l=new(Hr(this._rawCount))(Math.ceil(s/i)*2),u=0,f=0;f<s;f+=i){var c=f,h=o[this.getRawIndex(c)],v=f,d=o[this.getRawIndex(v)],p=i;f+i>s&&(p=s-f);for(var y=0;y<p;y++){var g=this.getRawIndex(f+y),m=o[g];m<h&&(h=m,c=f+y),m>d&&(d=m,v=f+y)}var _=this.getRawIndex(c),S=this.getRawIndex(v);c<v?(l[u++]=_,l[u++]=S):(l[u++]=S,l[u++]=_)}return a._count=u,a._indices=l,a._updateGetRawIdx(),a},r.prototype.downSample=function(t,e,a,n){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/e),u=o[t],f=this.count(),c=i._rawExtent[t]=Wr(),h=new(Hr(this._rawCount))(Math.ceil(f/l)),v=0,d=0;d<f;d+=l){l>f-d&&(l=f-d,s.length=l);for(var p=0;p<l;p++){var y=this.getRawIndex(d+p);s[p]=u[y]}var g=a(s),m=this.getRawIndex(Math.min(d+n(s,g)||0,f-1));u[m]=g,g<c[0]&&(c[0]=g),g>c[1]&&(c[1]=g),h[v++]=m}return i._count=v,i._indices=h,i._updateGetRawIdx(),i},r.prototype.each=function(t,e){if(this._count)for(var a=t.length,n=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(a){case 0:e(i);break;case 1:e(n[t[0]][s],i);break;case 2:e(n[t[0]][s],n[t[1]][s],i);break;default:for(var l=0,u=[];l<a;l++)u[l]=n[t[l]][s];u[l]=i,e.apply(null,u)}}},r.prototype.getDataExtent=function(t){var e=this._chunks[t],a=Wr();if(!e)return a;var n=this.count(),i=!this._indices,o;if(i)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=a;for(var s=o[0],l=o[1],u=0;u<n;u++){var f=this.getRawIndex(u),c=e[f];c<s&&(s=c),c>l&&(l=c)}return o=[s,l],this._extent[t]=o,o},r.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var a=[],n=this._chunks,i=0;i<n.length;i++)a.push(n[i][e]);return a},r.prototype.clone=function(t,e){var a=new r,n=this._chunks,i=t&&tn(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<n.length;o++)a._chunks[o]=i[o]?z_(n[o]):n[o];else a._chunks=n;return this._copyCommonProps(a),e||(a._indices=this._cloneIndices()),a._updateGetRawIdx(),a},r.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=ee(this._extent),t._rawExtent=ee(this._rawExtent)},r.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,e=void 0;if(t===Array){var a=this._indices.length;e=new t(a);for(var n=0;n<a;n++)e[n]=this._indices[n]}else e=new t(this._indices);return e}return null},r.prototype._getRawIdxIdentity=function(t){return t},r.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},r.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},r.internalField=(function(){function t(e,a,n,i){return di(e[i],this._dimensions[i])}Eo={arrayRows:t,objectRows:function(e,a,n,i){return di(e[a],this._dimensions[i])},keyedColumns:t,original:function(e,a,n,i){var o=e&&(e.value==null?e:e.value);return di(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(e,a,n,i){return e[i]}}})(),r})(),Ld=(function(){function r(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return r.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},r.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},r.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},r.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},r.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,e=this._getUpstreamSourceManagers(),a=!!e.length,n,i;if(zn(t)){var o=t,s=void 0,l=void 0,u=void 0;if(a){var f=e[0];f.prepareSource(),u=f.getSource(),s=u.data,l=u.sourceFormat,i=[f._getVersionSign()]}else s=o.get("data",!0),l=Ke(s)?Jt:qe,i=[];var c=this._getSourceMetaRawOption()||{},h=u&&u.metaRawOption||{},v=J(c.seriesLayoutBy,h.seriesLayoutBy)||null,d=J(c.sourceHeader,h.sourceHeader),p=J(c.dimensions,h.dimensions),y=v!==h.seriesLayoutBy||!!d!=!!h.sourceHeader||p;n=y?[Fs(s,{seriesLayoutBy:v,sourceHeader:d,dimensions:p},l)]:[]}else{var g=t;if(a){var m=this._applyTransform(e);n=m.sourceList,i=m.upstreamSignList}else{var _=g.get("source",!0);n=[Fs(_,this._getSourceMetaRawOption(),null)],i=[]}}this._setLocalSource(n,i)},r.prototype._applyTransform=function(t){var e=this._sourceHost,a=e.get("transform",!0),n=e.get("fromTransformResult",!0);if(n!=null){var i="";t.length!==1&&Rf(i)}var o,s=[],l=[];return w(t,function(u){u.prepareSource();var f=u.getSource(n||0),c="";n!=null&&!f&&Rf(c),s.push(f),l.push(u._getVersionSign())}),a?o=O_(a,s,{datasetIndex:e.componentIndex}):n!=null&&(o=[m_(s[0])]),{sourceList:o,upstreamSignList:l}},r.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),e=0;e<t.length;e++){var a=t[e];if(a._isDirty()||this._upstreamSignList[e]!==a._getVersionSign())return!0}},r.prototype.getSource=function(t){t=t||0;var e=this._sourceList[t];if(!e){var a=this._getUpstreamSourceManagers();return a[0]&&a[0].getSource(t)}return e},r.prototype.getSharedDataStore=function(t){var e=t.makeStoreSchema();return this._innerGetDataStore(e.dimensions,t.source,e.hash)},r.prototype._innerGetDataStore=function(t,e,a){var n=0,i=this._storeList,o=i[n];o||(o=i[n]={});var s=o[a];if(!s){var l=this._getUpstreamSourceManagers()[0];zn(this._sourceHost)&&l?s=l._innerGetDataStore(t,e,a):(s=new Gs,s.initData(new bd(e,t.length),t)),o[a]=s}return s},r.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(zn(t)){var e=jl(t);return e?[e.getSourceManager()]:[]}else return X(X0(t),function(a){return a.getSourceManager()})},r.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,e,a,n;if(zn(t))e=t.get("seriesLayoutBy",!0),a=t.get("sourceHeader",!0),n=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;e=i.get("seriesLayoutBy",!0),a=i.get("sourceHeader",!0),n=i.get("dimensions",!0)}return{seriesLayoutBy:e,sourceHeader:a,dimensions:n}},r})();function kf(r){var t=r.option.transform;t&&_i(r.option.transform)}function zn(r){return r.mainType==="series"}function Rf(r){throw new Error(r)}var F_="line-height:1";function Id(r){var t=r.lineHeight;return t==null?F_:"line-height:"+Ze(t+"")+"px"}function Pd(r,t){var e=r.color||O.color.tertiary,a=r.fontSize||12,n=r.fontWeight||"400",i=r.color||O.color.secondary,o=r.fontSize||14,s=r.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Ze(a+"")+"px;color:"+Ze(e)+";font-weight:"+Ze(n+""),valueStyle:"font-size:"+Ze(o+"")+"px;color:"+Ze(i)+";font-weight:"+Ze(s+"")}:{nameStyle:{fontSize:a,fill:e,fontWeight:n},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var G_=[0,10,20,30],H_=["",`
2
2
  `,`
3
3
 
4
4
  `,`
5
5
 
6
6
 
7
- `];function Lr(r,t){return t.type=r,t}function Ws(r){return r.type==="section"}function Rd(r){return Ws(r)?U_:Y_}function Ed(r){if(Ws(r)){var t=0,e=r.blocks.length,a=e>1||e>0&&!r.noHeader;return w(r.blocks,function(n){var i=Ed(n);i>=t&&(t=i+ +(a&&(!i||Ws(n)&&!n.noHeader)))}),t}return 0}function U_(r,t,e,a){var n=t.noHeader,i=Z_(Ed(t)),o=[],s=t.blocks||[];St(!s||z(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(F(u,l)){var f=new A_(u[l],null);s.sort(function(p,y){return f.evaluate(p.sortParam,y.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(p,y){var g=t.valueFormatter,m=Rd(p)(g?U(U({},r),{valueFormatter:g}):r,p,y>0?i.html:0,a);m!=null&&o.push(m)});var c=r.renderMode==="richText"?o.join(i.richText):Us(a,o.join(""),n?e:i.html);if(n)return c;var h=zs(t.header,"ordinal",r.useUTC),v=kd(a,r.renderMode).nameStyle,d=Pd(a);return r.renderMode==="richText"?Od(r,h,v)+i.richText+c:Us(a,'<div style="'+v+";"+d+';">'+Ze(h)+"</div>"+c,e)}function Y_(r,t,e,a){var n=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=z(S)?S:[S],X(S,function(b,x){return zs(b,z(v)?v[x]:v,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||O.color.secondary,n),h=i?"":zs(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!i,y=!s&&i,g=kd(a,n),m=g.nameStyle,_=g.valueStyle;return n==="richText"?(s?"":c)+(i?"":Od(r,h,m))+(o?"":K_(r,d,p,y,_)):Us(a,(s?"":c)+(i?"":X_(h,!s,m))+(o?"":$_(d,p,y,_)),e)}}function Of(r,t,e,a,n,i){if(r){var o=Rd(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function Z_(r){return{html:H_[r],richText:W_[r]}}function Us(r,t,e){var a='<div style="clear:both"></div>',n="margin: "+e+"px 0 0",i=Pd(r);return'<div style="'+n+";"+i+';">'+t+a+"</div>"}function X_(r,t,e){var a=t?"margin-left:2px":"";return'<span style="'+e+";"+a+'">'+Ze(r)+"</span>"}function $_(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=z(r)?r:[r],'<span style="'+i+";"+a+'">'+X(r,function(o){return Ze(o)}).join("&nbsp;&nbsp;")+"</span>"}function Od(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function K_(r,t,e,a,n){var i=[n],o=a?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(t)?t.join(" "):t,i)}function Bd(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return Ar(a)}function Nd(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Oo=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=_h()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var n=a==="richText"?this._generateStyleName():null,i=A0({color:e,type:t,renderMode:a,markerId:n});return $(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};z(e)?w(e,function(i){return U(a,i)}):U(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r})();function q_(r){var t=r.series,e=r.dataIndex,a=r.multipleSeries,n=t.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=z(s),u=Bd(t,e),f,c,h,v;if(o>1||l&&!o){var d=j_(s,t,e,i,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);v=f=la(n,e,i[0]),c=p.type}else v=f=l?s[0]:s;var y=Tl(t),g=y&&t.name||"",m=n.getName(e),_=a?g:m;return Lr("section",{header:g,noHeader:a||!y,sortParam:v,blocks:[Lr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Tn(_),value:f,valueType:c,dataIndex:e})].concat(h||[])})}function j_(r,t,e,a,n){var i=t.getData(),o=tn(r,function(c,h,v){var d=i.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?w(a,function(c){f(la(i,e,c),c)}):w(r,f);function f(c,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(Lr("nameValue",{markerType:"subItem",markerColor:n,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Gt=ie();function Fn(r,t){return r.getName(t)||r.getId(t)}var Q_="__universalTransitionEnabled",Ge=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Qa({count:eS,reset:tS}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=Gt(this).sourceManager=new Id(this);i.prepareSource();var o=this.getInitialData(e,n);Nf(o,this),this.dataTask.context.data=o,Gt(this).dataBeforeProcessed=o,Bf(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=pn(this),i=n?Er(e):{},o=this.subType;re.hasClass(o)&&(o+="Series"),oe(e,a.getTheme().get(this.subType)),oe(e,this.getDefaultOption()),Ts(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Rt(e,i,n)},t.prototype.mergeOption=function(e,a){e=oe(this.option,e,!0),this.fillDataTextStyle(e.data);var n=pn(this);n&&Rt(this.option,e,n);var i=Gt(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);Nf(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Gt(this).dataBeforeProcessed=o,Bf(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Ke(e))for(var a=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Ts(e[n],"label",a)},t.prototype.getInitialData=function(e,a){},t.prototype.appendData=function(e){var a=this.getRawData();a.appendData(e.data)},t.prototype.getData=function(e){var a=Ys(this);if(a){var n=a.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return Gt(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var a=Ys(this);if(a){var n=a.context;n.outputData=e,a!==this.dataTask&&(n.data=e)}Gt(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return q(e)},t.prototype.getSourceManager=function(){return Gt(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Gt(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,a,n,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(e);if(!s||!l)return[];var u=l.dataToCoord(n);i==null&&(i=1/0);var f=[],c=1/0,h=-1,v=0;return o.each(a,function(d,p){var y=l.dataToCoord(d),g=u-y,m=Math.abs(g);m<=i&&((m<c||m===c&&g>=0&&h<0)&&(c=m,h=g,v=0),g===h&&(f[v++]=p))}),f.length=v,f},t.prototype.formatTooltip=function(e,a,n){return q_({series:this,dataIndex:e,multipleSeries:a})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(be.node&&!(e&&e.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,a,n){var i=this.ecModel,o=Jl.prototype.getColorFromPalette.call(this,e,a,n);return o||(o=i.getColorFromPalette(e,a,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,a){this._innerSelect(this.getData(a),e)},t.prototype.unselect=function(e,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=Fn(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,a){for(var n=[],i=0;i<e.length;i++)n[0]=e[i],this.isSelected(e[i],a)?this.unselect(n,a):this.select(n,a)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,a=Ie(e),n=[],i=0;i<a.length;i++){var o=e[a[i]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[Fn(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Q_])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){K(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=a[f],h=Fn(e,c);u[h]=!0,this._selectedDataIndicesMap[h]=e.getRawIndex(c)}}else if(s==="single"||s===!0){var v=a[l-1],h=Fn(e,v);o.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(i={},i[h]=e.getRawIndex(v),i)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var a=[];e.hasItemOption&&e.each(function(n){var i=e.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(e,a)}},t.registerClass=function(e){return re.registerClass(e)},t.protoInitialize=(function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"})(),t})(re);Ot(Ge,T_);Ot(Ge,Jl);Dh(Ge,re);function Bf(r){var t=r.name;Tl(r)||(r.name=J_(r)||t)}function J_(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),a=[];return w(e,function(n){var i=t.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function eS(r){return r.model.getRawData().count()}function tS(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),rS}function rS(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Nf(r,t){w(xy(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,me(aS,t))})}function aS(r,t){var e=Ys(r);return e&&e.setOutputEnd((t||this).count()),t}function Ys(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var a=e.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}var He=(function(){function r(){this.group=new pe,this.uid=fo("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){},r.prototype.updateLayout=function(t,e,a,n){},r.prototype.updateVisual=function(t,e,a,n){},r.prototype.toggleBlurSeries=function(t,e,a){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r})();Al(He);no(He);function nu(){var r=ie();return function(t){var e=r(t),a=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!!(a&&a.large),s=e.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var Vd=ie(),nS=nu(),Oe=(function(){function r(){this.group=new pe,this.uid=fo("viewChart"),this.renderTask=Qa({plan:iS,reset:oS}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.highlight=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&zf(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&zf(i,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateLayout=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateVisual=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.eachRendered=function(t){pa(this.group,t)},r.markUpdateMethod=function(t,e){Vd(t).updateMethod=e},r.protoInitialize=(function(){var t=r.prototype;t.type="chart"})(),r})();function Vf(r,t,e){r&&Is(r)&&(t==="emphasis"?Ti:Di)(r,e)}function zf(r,t,e){var a=Dr(r,t),n=t&&t.highlightKey!=null?Fm(t.highlightKey):null;a!=null?w(Ae(a),function(i){Vf(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){Vf(i,e,n)})}Al(Oe);no(Oe);function iS(r){return nS(r.model)}function oS(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=n&&Vd(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,n),sS[l]}var sS={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Ei="\0__throttleOriginMethod",Ff="\0__throttleRate",Gf="\0__throttleType";function iu(r,t,e){var a,n=0,i=0,o=null,s,l,u,f;t=t||0;function c(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];a=new Date().getTime(),l=this,u=v;var p=f||t,y=f||e;f=null,s=a-(y?n:i)-p,clearTimeout(o),y?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),n=a};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function go(r,t,e,a){var n=r[t];if(n){var i=n[Ei]||n,o=n[Gf],s=n[Ff];if(s!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=iu(i,e,a==="debounce"),n[Ei]=i,n[Gf]=a,n[Ff]=e}return n}}function Oi(r,t){var e=r[t];e&&e[Ei]&&(e.clear&&e.clear(),r[t]=e[Ei])}var Hf=ie(),Wf={itemStyle:ln(Kh,!0),lineStyle:ln($h,!0)},lS={lineStyle:"stroke",itemStyle:"fill"};function zd(r,t){var e=r.visualStyleMapper||Wf[t];return e||(console.warn("Unknown style type '"+t+"'."),Wf.itemStyle)}function Fd(r,t){var e=r.visualDrawType||lS[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var uS={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=zd(r,a),o=i(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=Fd(r,a),u=o[l],f=j(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||j(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||j(o.stroke)?h:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),y=U({},o);y[l]=f(p),v.setItemVisual(d,"style",y)}}}},wa=new ye,fS={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=zd(r,a),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){wa.option=l[a];var u=n(wa),f=o.ensureUniqueItemVisual(s,"style");U(f,u),wa.option.decal&&(o.setItemVisual(s,"decal",wa.option.decal),wa.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},cS={performRawSeries:!0,overallReset:function(r){var t=q();r.eachSeries(function(e){var a=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+a,i=t.get(n);i||(i={},t.set(n,i)),Hf(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),n={},i=e.getData(),o=Hf(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=Fd(e,s);i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u],c=i.getItemVisual(f,"colorFromPalette");if(c){var h=i.ensureUniqueItemVisual(f,"style"),v=a.getName(u)||u+"",d=a.count();h[l]=e.getColorFromPalette(v,o,d)}})}})}},Gn=Math.PI;function vS(r,t){t=t||{},ae(t,{text:"loading",textColor:O.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:O.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var e=new pe,a=new se({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(a);var n=new he({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new se({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new wl({shape:{startAngle:-Gn/2,endAngle:-Gn/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Gn*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Gn*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var Gd=(function(){function r(t,e,a,n){this._stageTaskMap=q(),this.ecInstance=t,this.api=e,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var a=this._pipelineMap.get(t.__pipeline.id),n=a.context,i=!e&&a.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var a=this._pipelineMap.get(t.uid),n=t.getData(),i=n.count(),o=a.progressiveEnabled&&e.incrementalPrepareRender&&i>=a.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,a=e._pipelineMap=q();t.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),a=this.api;w(this._allHandlers,function(n){var i=t.get(n.uid)||t.set(n.uid,{}),o="";St(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,e,a),n.overallReset&&this._createOverallStageTask(n,i,e,a)},this)},r.prototype.prepareView=function(t,e,a,n){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=a,o.api=n,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,a){this._performStageTasks(this._visualHandlers,t,e,a)},r.prototype._performStageTasks=function(t,e,a,n){n=n||{};var i=!1,o=this;w(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(y){s(n,y)&&(y.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,a);var p=o.getPerformArgs(h,n.block);d.each(function(y){y.perform(p)}),h.perform(p)&&(i=!0)}else c&&c.each(function(y,g){s(n,y)&&y.dirty();var m=o.getPerformArgs(y,n.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(y.context.model),o.updatePayload(y,a),y.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(a){e=a.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,a,n){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=q(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||Qa({plan:yS,reset:mS,count:SS}));v.context={model:c,ecModel:a,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(c,v)}},r.prototype._createOverallStageTask=function(t,e,a,n){var i=this,o=e.overallTask=e.overallTask||Qa({reset:hS});o.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=q(),u=t.seriesType,f=t.getTargetSeries,c=!0,h=!1,v="";St(!t.createOnAllSeries,v),u?a.eachRawSeriesByType(u,d):f?f(a,n).each(d):(c=!1,w(a.getSeries(),d));function d(p){var y=p.uid,g=l.set(y,s&&s.get(y)||(h=!0,Qa({reset:dS,onDirty:gS})));g.context={model:p,overallProgress:c},g.agent=o,g.__block=c,i._pipe(p,g)}h&&o.dirty()},r.prototype._pipe=function(t,e){var a=t.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return j(t)&&(t={overallReset:t,seriesType:xS(t)}),t.uid=fo("stageHandler"),e&&(t.visualType=e),t},r})();function hS(r){r.overallReset(r.ecModel,r.api,r.payload)}function dS(r){return r.overallProgress&&pS}function pS(){this.agent.dirty(),this.getDownstream().dirty()}function gS(){this.agent&&this.agent.dirty()}function yS(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function mS(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Ae(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?X(t,function(e,a){return Hd(a)}):_S}var _S=Hd(0);function Hd(r){return function(t,e){var a=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var i=t.start;i<t.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(t,a)}}function SS(r){return r.data.count()}function xS(r){Bi=null;try{r(yn,Wd)}catch{}return Bi}var yn={},Wd={},Bi;Ud(yn,eu);Ud(Wd,yd);yn.eachSeriesByType=yn.eachRawSeriesByType=function(r){Bi=r};yn.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Bi=r.subType)};function Ud(r,t){for(var e in t.prototype)r[e]=xt}var H=O.darkColor,bS=H.background,Ca=function(){return{axisLine:{lineStyle:{color:H.axisLine}},splitLine:{lineStyle:{color:H.axisSplitLine}},splitArea:{areaStyle:{color:[H.backgroundTint,H.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:H.axisMinorSplitLine}},axisLabel:{color:H.axisLabel},axisName:{}}},Uf={label:{color:H.secondary},itemStyle:{borderColor:H.borderTint},dividerLineStyle:{color:H.border}},Yd={darkMode:!0,color:H.theme,backgroundColor:bS,axisPointer:{lineStyle:{color:H.border},crossStyle:{color:H.borderShade},label:{color:H.tertiary}},legend:{textStyle:{color:H.secondary},pageTextStyle:{color:H.tertiary}},textStyle:{color:H.secondary},title:{textStyle:{color:H.primary},subtextStyle:{color:H.quaternary}},toolbox:{iconStyle:{borderColor:H.accent50}},tooltip:{backgroundColor:H.neutral20,defaultBorderColor:H.border,textStyle:{color:H.tertiary}},dataZoom:{borderColor:H.accent10,textStyle:{color:H.tertiary},brushStyle:{color:H.backgroundTint},handleStyle:{color:H.neutral00,borderColor:H.accent20},moveHandleStyle:{color:H.accent40},emphasis:{handleStyle:{borderColor:H.accent50}},dataBackground:{lineStyle:{color:H.accent30},areaStyle:{color:H.accent20}},selectedDataBackground:{lineStyle:{color:H.accent50},areaStyle:{color:H.accent30}}},visualMap:{textStyle:{color:H.secondary},handleStyle:{borderColor:H.neutral30}},timeline:{lineStyle:{color:H.accent10},label:{color:H.tertiary},controlStyle:{color:H.accent30,borderColor:H.accent30}},calendar:{itemStyle:{color:H.neutral00,borderColor:H.neutral20},dayLabel:{color:H.tertiary},monthLabel:{color:H.secondary},yearLabel:{color:H.secondary}},matrix:{x:Uf,y:Uf,backgroundColor:{borderColor:H.axisLine},body:{itemStyle:{borderColor:H.borderTint}}},timeAxis:Ca(),logAxis:Ca(),valueAxis:Ca(),categoryAxis:Ca(),line:{symbol:"circle"},graph:{color:H.theme},gauge:{title:{color:H.secondary},axisLine:{lineStyle:{color:[[1,H.neutral05]]}},axisLabel:{color:H.axisLabel},detail:{color:H.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:H.background}},radar:(function(){var r=Ca();return r.axisName={color:H.axisLabel},r.axisLine.lineStyle.color=H.neutral20,r})(),treemap:{breadcrumb:{itemStyle:{color:H.neutral20,textStyle:{color:H.secondary}},emphasis:{itemStyle:{color:H.neutral30}}}},sunburst:{itemStyle:{borderColor:H.background}},map:{itemStyle:{borderColor:H.border,areaColor:H.neutral10},label:{color:H.tertiary},emphasis:{label:{color:H.primary},itemStyle:{areaColor:H.highlight}},select:{label:{color:H.primary},itemStyle:{areaColor:H.highlight}}},geo:{itemStyle:{borderColor:H.border,areaColor:H.neutral10},emphasis:{label:{color:H.primary},itemStyle:{areaColor:H.highlight}},select:{label:{color:H.primary},itemStyle:{color:H.highlight}}}};Yd.categoryAxis.splitLine.show=!1;var wS=(function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},a={},n={};if($(t)){var i=mt(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};w(t,function(l,u){for(var f=!1,c=0;c<o.length;c++){var h=o[c],v=u.lastIndexOf(h);if(v>0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:e,dataQuery:a,otherQuery:n}},r.prototype.filter=function(t,e){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),Zs=["symbol","symbolSize","symbolRotate","symbolOffset"],Yf=Zs.concat(["symbolKeepAspect"]),CS={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o<Zs.length;o++){var s=Zs[o],l=r.get(s);j(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,e.setVisual(U({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),t.isSeriesFiltered(r))return;var u=Ie(n);function f(c,h){for(var v=r.getRawValue(h),d=r.getDataParams(h),p=0;p<u.length;p++){var y=u[p];c.setItemVisual(h,y,n[y](v,d))}}return{dataEach:i?f:null}}},MS={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function a(n,i){for(var o=n.getItemModel(i),s=0;s<Yf.length;s++){var l=Yf[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:e.hasItemOption?a:null}}};function Zd(r,t,e){switch(e){case"color":var a=r.getItemVisual(t,"style");return a[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function Xd(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function TS(r,t,e,a){switch(e){case"color":var n=r.ensureUniqueItemVisual(t,"style");n[r.getVisual("drawType")]=a,r.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(t,"style").opacity=a;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(t,e,a);break}}function DS(r,t){function e(a,n){var i=[];return a.eachComponent({mainType:"series",subType:r,query:n},function(o){i.push(o.seriesIndex)}),i}w([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){t(a[0],function(n,i,o){n=U({},n),o.dispatchAction(U(n,{type:a[1],seriesIndex:e(i,n)}))})})}function Ur(r,t,e,a,n){var i=r+t;e.isSilent(i)||a.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(),h=Dr(c,n.fromActionPayload);e.trigger(i,{type:i,seriesId:o.id,name:z(h)?c.getName(h[0]):c.getName(h),selected:$(l)?l:U({},l)})}})}function AS(r,t,e){r.on("selectchanged",function(a){var n=e.getModel();a.isFromClick?(Ur("map","selectchanged",t,n,a),Ur("pie","selectchanged",t,n,a)):a.fromAction==="select"?(Ur("map","selected",t,n,a),Ur("pie","selected",t,n,a)):a.fromAction==="unselect"&&(Ur("map","unselected",t,n,a),Ur("pie","unselected",t,n,a))})}function ea(r,t,e){for(var a;r&&!(t(r)&&(a=r,e));)r=r.__hostTarget||r.parent;return a}var LS=We.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,n=t.width/2,i=t.height/2;r.moveTo(e,a-i),r.lineTo(e+n,a+i),r.lineTo(e-n,a+i),r.closePath()}}),IS=We.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,n=t.width/2,i=t.height/2;r.moveTo(e,a-i),r.lineTo(e+n,a),r.lineTo(e,a+i),r.lineTo(e-n,a),r.closePath()}}),PS=We.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,a=t.y,n=t.width/5*3,i=Math.max(n,t.height),o=n/2,s=o*o/(i-o),l=a-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),h=Math.cos(u),v=o*.6,d=o*.7;r.moveTo(e-f,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+f-c*v,l+s+h*v,e,a-d,e,a),r.bezierCurveTo(e,a-d,e-f+c*v,l+s+h*v,e-f,l+s),r.closePath()}}),kS=We.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,a=t.width,n=t.x,i=t.y,o=a/3*2;r.moveTo(n,i),r.lineTo(n+o,i+e),r.lineTo(n,i+e/4*3),r.lineTo(n-o,i+e),r.lineTo(n,i),r.closePath()}}),RS={line:Tr,rect:se,roundRect:se,square:se,circle:ro,diamond:IS,pin:PS,arrow:kS,triangle:LS},ES={line:function(r,t,e,a,n){n.x1=r,n.y1=t+a/2,n.x2=r+e,n.y2=t+a/2},rect:function(r,t,e,a,n){n.x=r,n.y=t,n.width=e,n.height=a},roundRect:function(r,t,e,a,n){n.x=r,n.y=t,n.width=e,n.height=a,n.r=Math.min(e,a)/4},square:function(r,t,e,a,n){var i=Math.min(e,a);n.x=r,n.y=t,n.width=i,n.height=i},circle:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.r=Math.min(e,a)/2},diamond:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.width=e,n.height=a},pin:function(r,t,e,a,n){n.x=r+e/2,n.y=t+a/2,n.width=e,n.height=a},arrow:function(r,t,e,a,n){n.x=r+e/2,n.y=t+a/2,n.width=e,n.height=a},triangle:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.width=e,n.height=a}},Ni={};w(RS,function(r,t){Ni[t]=new r});var OS=We.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var a=ws(r,t,e),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(a.y=e.y+e.height*.4),a},buildPath:function(r,t,e){var a=t.symbolType;if(a!=="none"){var n=Ni[a];n||(a="rect",n=Ni[a]),ES[a](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function BS(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||O.color.neutral00,e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function at(r,t,e,a,n,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=Vh(r.slice(8),new Ve(t,e,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=fn(r.slice(7),{},new Ve(t,e,a,n),o?"center":"cover"):l=new OS({shape:{symbolType:r,x:t,y:e,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=BS,i&&l.setColor(i),l}function $d(r){return z(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function Kd(r,t){if(r!=null)return z(r)||(r=[r,r]),[ne(r[0],t[0])||0,ne(J(r[1],r[0]),t[1])||0]}var Bo=new by,Zf=new wy(100),Xf=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Vi(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),a=t.getZr(),n=a.painter.type==="svg";r.dirty&&Bo.delete(r);var i=Bo.get(r);if(i)return i;var o=ae(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/e,Bo.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],c=!0,h=0;h<Xf.length;++h){var v=o[Xf[h]];if(v!=null&&!z(v)&&!$(v)&&!ve(v)&&typeof v!="boolean"){c=!1;break}f.push(v)}var d;if(c){d=f.join(",")+(n?"-svg":"");var p=Zf.get(d);p&&(n?u.svgElement=p:u.image=p)}var y=jd(o.dashArrayX),g=NS(o.dashArrayY),m=qd(o.symbol),_=VS(y),S=Qd(g),b=!n&&Si.createCanvas(),x=n&&{tag:"g",attrs:{},key:"dcl",children:[]},C=D(),T;b&&(b.width=C.width*e,b.height=C.height*e,T=b.getContext("2d")),A(),c&&Zf.put(d,b||x),u.image=b,u.svgElement=x,u.svgWidth=C.width,u.svgHeight=C.height;function D(){for(var M=1,P=0,L=_.length;P<L;++P)M=Gu(M,_[P]);for(var E=1,P=0,L=m.length;P<L;++P)E=Gu(E,m[P].length);M*=E;var I=S*_.length*m.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(I,o.maxTileHeight))}}function A(){T&&(T.clearRect(0,0,b.width,b.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,b.width,b.height)));for(var M=0,P=0;P<g.length;++P)M+=g[P];if(M<=0)return;for(var L=-S,E=0,I=0,k=0;L<C.height;){if(E%2===0){for(var N=I/2%m.length,R=0,B=0,V=0;R<C.width*2;){for(var G=0,P=0;P<y[k].length;++P)G+=y[k][P];if(G<=0)break;if(B%2===0){var Y=(1-o.symbolSize)*.5,Q=R+y[k][B]*Y,ge=L+g[E]*Y,we=y[k][B]*o.symbolSize,Nt=g[E]*o.symbolSize,Vr=V/2%m[N].length;Vt(Q,ge,we,Nt,m[N][Vr])}R+=y[k][B],++V,++B,B===y[k].length&&(B=0)}++k,k===y.length&&(k=0)}L+=g[E],++I,++E,E===g.length&&(E=0)}function Vt(ma,_a,kn,Rn,En){var lr=n?1:e,zt=at(En,ma*lr,_a*lr,kn*lr,Rn*lr,o.color,o.symbolKeepAspect);if(n){var bt=a.painter.renderOneToVNode(zt);bt&&x.children.push(bt)}else Cy(T,zt)}}}}function qd(r){if(!r||r.length===0)return[["rect"]];if($(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!$(r[e])){t=!1;break}if(t)return qd([r]);for(var a=[],e=0;e<r.length;++e)$(r[e])?a.push([r[e]]):a.push(r[e]);return a}function jd(r){if(!r||r.length===0)return[[0,0]];if(ve(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,a=0;a<r.length;++a)if(!ve(r[a])){e=!1;break}if(e)return jd([r]);for(var n=[],a=0;a<r.length;++a)if(ve(r[a])){var t=Math.ceil(r[a]);n.push([t,t])}else{var t=X(r[a],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function NS(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(ve(r)){var t=Math.ceil(r);return[t,t]}var e=X(r,function(a){return Math.ceil(a)});return r.length%2?e.concat(e):e}function VS(r){return X(r,function(t){return Qd(t)})}function Qd(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function zS(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var a=e.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=Vi(s,t)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=Vi(n,t)}}})}var ot=new Dn,Jd={};function FS(r,t){Jd[r]=t}function GS(r){return Jd[r]}var ep={};function HS(r,t){ep[r]=t}function WS(r){return ep[r]}var US=1,YS=800,ZS=900,XS=1e3,$S=2e3,KS=5e3,tp=1e3,qS=1100,ou=2e3,rp=3e3,jS=4e3,yo=4500,QS=4600,JS=5e3,ex=6e3,ap=7e3,tx={PROCESSOR:{FILTER:XS,SERIES_FILTER:YS,STATISTIC:KS},VISUAL:{LAYOUT:tp,PROGRESSIVE_LAYOUT:qS,GLOBAL:ou,CHART:rp,POST_CHART_LAYOUT:QS,COMPONENT:jS,BRUSH:JS,CHART_ITEM:yo,ARIA:ex,DECAL:ap}},Ce="__flagInMainProcess",Hn="__mainProcessVersion",Le="__pendingUpdate",No="__needsUpdateStatus",$f=/^[a-zA-Z0-9_]+$/,Vo="__connectUpdateStatus",Kf=0,rx=1,ax=2;function np(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return op(this,r,t)}}function ip(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return op(this,r,t)}}function op(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Dn.prototype[t].apply(r,e)}var sp=(function(r){W(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(Dn),lp=sp.prototype;lp.on=ip("on");lp.off=ip("off");var pr,zo,Wn,Ct,Un,Fo,Go,Yr,Zr,qf,jf,Ho,Qf,Yn,Jf,up,je,ec,Xr,fp=(function(r){W(t,r);function t(e,a,n){var i=r.call(this,new wS)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},i._dom=e;var o="canvas",s="auto",l=!1;i[Hn]=1,n.ssr;var u=i._zr=ku(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:J(n.useDirtyRect,l),useCoarsePointer:J(n.useCoarsePointer,s),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=iu(Z(u.flush,u),17),i._updateTheme(a),i._locale=p0(n.locale||qh),i._coordSysMgr=new vo;var f=i._api=Jf(i);function c(h,v){return h.__prio-v.__prio}return xo(Fi,c),xo(Ks,c),i._scheduler=new Gd(i,f,Ks,Fi),i._messageCenter=new sp,i._initEvents(),i.resize=Z(i.resize,i),u.animation.on("frame",i._onframe,i),qf(u,i),jf(u,i),_i(i),i}return t.prototype._onframe=function(){if(!this._disposed){ec(this);var e=this._scheduler;if(this[Le]){var a=this[Le].silent;this[Ce]=!0,Xr(this);try{pr(this),Ct.update.call(this,null,this[Le].updateParams)}catch(l){throw this[Ce]=!1,this[Le]=null,l}this._zr.flush(),this[Ce]=!1,this[Le]=null,Yr.call(this,a),Zr.call(this,a)}else if(e.unfinished){var n=US,i=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),Fo(this,i),e.performVisualTasks(i),Yn(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,a,n){if(!this[Ce]){if(this._disposed){this.id;return}var i,o,s;if(K(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Ce]=!0,Xr(this),!this._model||a){var l=new i_(this._api),u=this._theme,f=this._model=new eu;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},qs);var c={seriesTransition:s,optionChanged:!0};if(n)this[Le]={silent:i,updateParams:c},this[Ce]=!1,this.getZr().wakeUp();else{try{pr(this),Ct.update.call(this,null,c)}catch(h){throw this[Le]=null,this[Ce]=!1,h}this._ssr||this._zr.flush(),this[Le]=null,this[Ce]=!1,Yr.call(this,i),Zr.call(this,i)}}},t.prototype.setTheme=function(e,a){if(!this[Ce]){if(this._disposed){this.id;return}var n=this._model;if(n){var i=a&&a.silent,o=null;this[Le]&&(i==null&&(i=this[Le].silent),o=this[Le].updateParams,this[Le]=null),this[Ce]=!0,Xr(this);try{this._updateTheme(e),n.setTheme(this._theme),pr(this),Ct.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Ce]=!1,s}this[Ce]=!1,Yr.call(this,i),Zr.call(this,i)}}},t.prototype._updateTheme=function(e){$(e)&&(e=cp[e]),e&&(e=ee(e),e&&_d(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||be.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var a=this._zr.painter;return a.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr,a=e.storage.getDisplayList();return w(a,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var a=e.excludeComponents,n=this._model,i=[],o=this;w(a,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return w(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var a=e.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(tc[n]){var l=s,u=s,f=-s,c=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();w(Ja,function(_,S){if(_.group===n){var b=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ee(e)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),c=o(x.bottom,c),h.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,p=c-u,y=Si.createCanvas(),g=ku(y,{renderer:a?"svg":"canvas"});if(g.resize({width:d,height:p}),a){var m="";return w(h,function(_){var S=_.left-l,b=_.top-u;m+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return e.connectedBackgroundColor&&g.add(new se({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),w(h,function(_){var S=new Et({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});g.add(S)}),g.refreshImmediately(),y.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,a,n){return Un(this,"convertToPixel",e,a,n)},t.prototype.convertToLayout=function(e,a,n){return Un(this,"convertToLayout",e,a,n)},t.prototype.convertFromPixel=function(e,a,n){return Un(this,"convertFromPixel",e,a,n)},t.prototype.containPixel=function(e,a){if(this._disposed){this.id;return}var n=this._model,i,o=Co(n,e);return w(o,function(s,l){l.indexOf("Models")>=0&&w(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(a);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(a,u))}},this)},this),!!i},t.prototype.getVisual=function(e,a){var n=this._model,i=Co(n,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?Zd(s,l,a):Xd(s,a)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;w(nx,function(n){var i=function(o){var s=e.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&ea(l,function(p){var y=te(p);if(y&&y.dataIndex!=null){var g=y.dataModel||s.getSeriesByIndex(y.seriesIndex);return u=g&&g.getDataParams(y.dataIndex,y.dataType,l)||{},!0}else if(y.eventData)return u=U({},y.eventData),!0},!0),u){var c=u.componentType,h=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=u.seriesIndex);var v=c&&h!=null&&s.getComponent(c,h),d=v&&e[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];u.event=o,u.type=n,e._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:v,view:d},e.trigger(n,u)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)});var a=this._messageCenter;w($s,function(n,i){a.on(i,function(o){e.trigger(i,o)})}),AS(a,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&Ch(this.getDom(),lu,"");var a=this,n=a._api,i=a._model;w(a._componentsViews,function(o){o.dispose(i,n)}),w(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete Ja[a.id]},t.prototype.resize=function(e){if(!this[Ce]){if(this._disposed){this.id;return}this._zr.resize(e);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=e&&e.silent;this[Le]&&(i==null&&(i=this[Le].silent),n=!0,this[Le]=null),this[Ce]=!0,Xr(this);try{n&&pr(this),Ct.update.call(this,{type:"resize",animation:U({duration:0},e&&e.animation)})}catch(o){throw this[Ce]=!1,o}this[Ce]=!1,Yr.call(this,i),Zr.call(this,i)}}},t.prototype.showLoading=function(e,a){if(this._disposed){this.id;return}if(K(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!!js[e]){var n=js[e](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var a=U({},e);return a.type=Xs[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if(K(a)||(a={silent:!!a}),!!zi[e.type]&&this._model){if(this[Ce]){this._pendingActions.push(e);return}var n=a.silent;Go.call(this,e,n);var i=a.flush;i?this._zr.flush():i!==!1&&be.browser.weChat&&this._throttledZrFlush(),Yr.call(this,n),Zr.call(this,n)}},t.prototype.updateLabelLayout=function(){ot.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var a=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){pr=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),zo(c,!0),zo(c,!1),h.plan()},zo=function(c,h){for(var v=c._model,d=c._scheduler,p=h?c._componentsViews:c._chartsViews,y=h?c._componentsMap:c._chartsMap,g=c._zr,m=c._api,_=0;_<p.length;_++)p[_].__alive=!1;h?v.eachComponent(function(x,C){x!=="series"&&S(C)}):v.eachSeries(S);function S(x){var C=x.__requireNewView;x.__requireNewView=!1;var T="_ec_"+x.id+"_"+x.type,D=!C&&y[T];if(!D){var A=mt(x.type),M=h?He.getClass(A.main,A.sub):Oe.getClass(A.sub);D=new M,D.init(v,m),y[T]=D,p.push(D),g.add(D.group)}x.__viewId=D.__id=T,D.__alive=!0,D.__model=x,D.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!h&&d.prepareView(D,x,v,m)}for(var _=0;_<p.length;){var b=p[_];b.__alive?_++:(!h&&b.renderTask.dispose(),g.remove(b.group),b.dispose(v,m),p.splice(_,1),y[b.__id]===b&&delete y[b.__id],b.__id=b.group.__ecComponentInfo=null)}},Wn=function(c,h,v,d,p){var y=c._model;if(y.setUpdatePayload(v),!d){w([].concat(c._componentsViews).concat(c._chartsViews),b);return}var g={};g[d+"Id"]=v[d+"Id"],g[d+"Index"]=v[d+"Index"],g[d+"Name"]=v[d+"Name"];var m={mainType:d,query:g};p&&(m.subType=p);var _=v.excludeSeriesId,S;_!=null&&(S=q(),w(Ae(_),function(x){var C=ut(x,null);C!=null&&S.set(C,!0)})),y&&y.eachComponent(m,function(x){var C=S&&S.get(x.id)!=null;if(!C)if(Qu(v))if(x instanceof Ge)v.type===br&&!v.notBlur&&!x.get(["emphasis","disabled"])&&km(x,v,c._api);else{var T=Rl(x.mainType,x.componentIndex,v.name,c._api),D=T.focusSelf,A=T.dispatchers;v.type===br&&D&&!v.notBlur&&Ls(x.mainType,x.componentIndex,c._api),A&&w(A,function(M){v.type===br?Ti(M):Di(M)})}else Ps(v)&&x instanceof Ge&&(Om(x,v,c._api),qu(x),je(c))},c),y&&y.eachComponent(m,function(x){var C=S&&S.get(x.id)!=null;C||b(c[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},c);function b(x){x&&x.__alive&&x[h]&&x[h](x.__model,y,c._api,v)}},Ct={prepareAndUpdate:function(c){pr(this),Ct.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,h){var v=this._model,d=this._api,p=this._zr,y=this._coordSysMgr,g=this._scheduler;if(v){v.setUpdatePayload(c),g.restoreData(v,c),g.performSeriesTasks(v),y.create(v,d),g.performDataProcessorTasks(v,c),Fo(this,v),y.update(v,d),a(v),g.performVisualTasks(v,c);var m=v.get("backgroundColor")||"transparent";p.setBackgroundColor(m);var _=v.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),Ho(this,v,d,c,h),ot.trigger("afterupdate",v,d)}},updateTransform:function(c){var h=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(c);var p=[];v.eachComponent(function(g,m){if(g!=="series"){var _=h.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,v,d,c);S&&S.update&&p.push(_)}else p.push(_)}});var y=q();v.eachSeries(function(g){var m=h._chartsMap[g.__viewId];if(m.updateTransform){var _=m.updateTransform(g,v,d,c);_&&_.update&&y.set(g.uid,1)}else y.set(g.uid,1)}),a(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0,dirtyMap:y}),Yn(this,v,d,c,{},y),ot.trigger("afterupdate",v,d)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),Oe.markUpdateMethod(c,"updateView"),a(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),Ho(this,h,this._api,c,{}),ot.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,v=this._model;v&&(v.setUpdatePayload(c),v.eachSeries(function(d){d.getData().clearAllVisual()}),Oe.markUpdateMethod(c,"updateVisual"),a(v),this._scheduler.performVisualTasks(v,c,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,p){if(d!=="series"){var y=h.getViewOfComponentModel(p);y&&y.__alive&&y.updateVisual(p,v,h._api,c)}}),v.eachSeries(function(d){var p=h._chartsMap[d.__viewId];p.updateVisual(d,v,h._api,c)}),ot.trigger("afterupdate",v,this._api))},updateLayout:function(c){Ct.update.call(this,c)}};function e(c,h,v,d,p){if(c._disposed){c.id;return}for(var y=c._model,g=c._coordSysMgr.getCoordinateSystems(),m,_=Co(y,v),S=0;S<g.length;S++){var b=g[S];if(b[h]&&(m=b[h](y,_,d,p))!=null)return m}}Un=e,Fo=function(c,h){var v=c._chartsMap,d=c._scheduler;h.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},Go=function(c,h){var v=this,d=this.getModel(),p=c.type,y=c.escapeConnect,g=zi[p],m=(g.update||"update").split(":"),_=m.pop(),S=m[0]!=null&&mt(m[0]);this[Ce]=!0,Xr(this);var b=[c],x=!1;c.batch&&(x=!0,b=X(c.batch,function(k){return k=ae(U({},k),c),k.batch=null,k}));var C=[],T,D=[],A=g.nonRefinedEventType,M=Ps(c),P=Qu(c);if(P&&Nh(this._api),w(b,function(k){var N=g.action(k,d,v._api);if(g.refineEvent?D.push(N):T=N,T=T||U({},k),T.type=A,C.push(T),P){var R=Dl(c),B=R.queryOptionMap,V=R.mainTypeSpecified,G=V?B.keys()[0]:"series";Wn(v,_,k,G),je(v)}else M?(Wn(v,_,k,"series"),je(v)):S&&Wn(v,_,k,S.main,S.sub)}),_!=="none"&&!P&&!M&&!S)try{this[Le]?(pr(this),Ct.update.call(this,c),this[Le]=null):Ct[_].call(this,c)}catch(k){throw this[Ce]=!1,k}if(x?T={type:A,escapeConnect:y,batch:C}:T=C[0],this[Ce]=!1,!h){var L=void 0;if(g.refineEvent){var E=g.refineEvent(D,c,d,this._api).eventContent;St(K(E)),L=ae({type:g.refinedEventType},E),L.fromAction=c.type,L.fromActionPayload=c,L.escapeConnect=!0}var I=this._messageCenter;I.trigger(T.type,T),L&&I.trigger(L.type,L)}},Yr=function(c){for(var h=this._pendingActions;h.length;){var v=h.shift();Go.call(this,v,c)}},Zr=function(c){!c&&this.trigger("updated")},qf=function(c,h){c.on("rendered",function(v){h.trigger("rendered",v),c.animation.isFinished()&&!h[Le]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},jf=function(c,h){c.on("mouseover",function(v){var d=v.target,p=ea(d,Is);p&&(Rm(p,v,h._api),je(h))}).on("mouseout",function(v){var d=v.target,p=ea(d,Is);p&&(Em(p,v,h._api),je(h))}).on("click",function(v){var d=v.target,p=ea(d,function(m){return te(m).dataIndex!=null},!0);if(p){var y=p.selected?"unselect":"select",g=te(p);h._api.dispatchAction({type:y,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function a(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function n(c){var h=[],v=[],d=!1;if(c.eachComponent(function(m,_){var S=_.get("zlevel")||0,b=_.get("z")||0,x=_.getZLevelKey();d=d||!!x,(m==="series"?v:h).push({zlevel:S,z:b,idx:_.componentIndex,type:m,key:x})}),d){var p=h.concat(v),y,g;xo(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),w(p,function(m){var _=c.getComponent(m.type,m.idx),S=m.zlevel,b=m.key;y!=null&&(S=Math.max(y,S)),b?(S===y&&b!==g&&S++,g=b):g&&(S===y&&S++,g=""),y=S,_.setZLevel(S)})}}Ho=function(c,h,v,d,p){n(h),Qf(c,h,v,d,p),w(c._chartsViews,function(y){y.__alive=!1}),Yn(c,h,v,d,p),w(c._chartsViews,function(y){y.__alive||y.remove(h,v)})},Qf=function(c,h,v,d,p,y){w(y||c._componentsViews,function(g){var m=g.__model;u(m,g),g.render(m,h,v,d),l(m,g),f(m,g)})},Yn=function(c,h,v,d,p,y){var g=c._scheduler;p=U(p||{},{updatedSeries:h.getSeries()}),ot.trigger("series:beforeupdate",h,v,p);var m=!1;h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;g.updatePayload(b,d),u(_,S),y&&y.get(_.uid)&&b.dirty(),b.perform(g.getPerformArgs(b))&&(m=!0),S.group.silent=!!_.get("silent"),s(_,S),qu(_)}),g.unfinished=m||g.unfinished,ot.trigger("series:layoutlabels",h,v,p),ot.trigger("series:transition",h,v,p),h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];l(_,S),f(_,S)}),o(c,h),ot.trigger("series:afterupdate",h,v,p)},je=function(c){c[No]=!0,c.getZr().wakeUp()},Xr=function(c){c[Hn]=(c[Hn]+1)%1e3},ec=function(c){c[No]&&(c.getZr().storage.traverse(function(h){ra(h)||i(h)}),c[No]=!1)};function i(c){for(var h=[],v=c.currentStates,d=0;d<v.length;d++){var p=v[d];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}c.selected&&c.states.select&&h.push("select"),c.hoverState===oo&&c.states.emphasis?h.push("emphasis"):c.hoverState===io&&c.states.blur&&h.push("blur"),c.useStates(h)}function o(c,h){var v=c._zr,d=v.storage,p=0;d.traverse(function(y){y.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!be.node&&!be.worker&&h.eachSeries(function(y){if(!y.preventUsingHoverLayer){var g=c._chartsMap[y.__viewId];g.__alive&&g.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function s(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function l(c,h){if(!c.preventAutoZ){var v=dn(c);h.eachRendered(function(d){return Wh(d,v.z,v.zlevel),!0})}}function u(c,h){h.eachRendered(function(v){if(!ra(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(c,h){var v=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=v.get("duration"),y=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(g){if(g.states&&g.states.emphasis){if(ra(g))return;if(g instanceof We&&Gm(g),g.__dirty){var m=g.prevStates;m&&g.useStates(m)}if(d){g.stateTransition=y;var _=g.getTextContent(),S=g.getTextGuideLine();_&&(_.stateTransition=y),S&&(S.stateTransition=y)}g.__dirty&&i(g)}})}Jf=function(c){return new((function(h){W(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){Ti(d,p),je(c)},v.prototype.leaveEmphasis=function(d,p){Di(d,p),je(c)},v.prototype.enterBlur=function(d){Pm(d),je(c)},v.prototype.leaveBlur=function(d){Rh(d),je(c)},v.prototype.enterSelect=function(d){Eh(d),je(c)},v.prototype.leaveSelect=function(d){Oh(d),je(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v.prototype.getMainProcessVersion=function(){return c[Hn]},v})(yd))(c)},up=function(c){function h(v,d){for(var p=0;p<v.length;p++){var y=v[p];y[Vo]=d}}w(Xs,function(v,d){c._messageCenter.on(d,function(p){if(tc[c.group]&&c[Vo]!==Kf){if(p&&p.escapeConnect)return;var y=c.makeActionFromEvent(p),g=[];w(Ja,function(m){m!==c&&m.group===c.group&&g.push(m)}),h(g,Kf),w(g,function(m){m[Vo]!==rx&&m.dispatchAction(y)}),h(g,ax)}})})}})(),t})(Dn),su=fp.prototype;su.on=np("on");su.off=np("off");su.one=function(r,t,e){var a=this;function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),a.off(r,n)}this.on.call(this,r,n,e)};var nx=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var zi={},Xs={},$s={},Ks=[],qs=[],Fi=[],cp={},js={},Ja={},tc={},ix=+new Date-0,lu="_echarts_instance_";function YT(r,t,e){var a=!(e&&e.ssr);if(a){var n=ox(r);if(n)return n}var i=new fp(r,t,e);return i.id="ec_"+ix++,Ja[i.id]=i,a&&Ch(r,lu,i.id),up(i),ot.trigger("afterinit",i),i}function ox(r){return Ja[um(r,lu)]}function vp(r,t){cp[r]=t}function hp(r){ue(qs,r)<0&&qs.push(r)}function dp(r,t){fu(Ks,r,t,$S)}function sx(r){uu("afterinit",r)}function lx(r){uu("afterupdate",r)}function uu(r,t){ot.on(r,t)}function Br(r,t,e){var a,n,i,o,s;j(t)&&(e=t,t=""),K(r)?(a=r.type,n=r.event,o=r.update,s=r.publishNonRefinedEvent,e||(e=r.action),i=r.refineEvent):(a=r,n=t);function l(f){return f.toLowerCase()}n=l(n||a);var u=i?l(a):n;zi[a]||(St($f.test(a)&&$f.test(n)),i&&St(n!==a),zi[a]={actionType:a,refinedEventType:n,nonRefinedEventType:u,update:o,action:e,refineEvent:i},$s[n]=1,i&&s&&($s[u]=1),Xs[u]=a)}function ux(r,t){vo.register(r,t)}function fx(r,t){fu(Fi,r,t,tp,"layout")}function Nr(r,t){fu(Fi,r,t,rp,"visual")}var rc=[];function fu(r,t,e,a,n){if((j(t)||K(t))&&(e=t,t=a),!(ue(rc,e)>=0)){rc.push(e);var i=Gd.wrapStageHandler(e,n);i.__prio=t,i.__raw=e,r.push(i)}}function pp(r,t){js[r]=t}function cx(r,t,e){var a=GS("registerMap");a&&a(r,t,e)}var vx=O_;Nr(ou,uS);Nr(yo,fS);Nr(yo,cS);Nr(ou,CS);Nr(yo,MS);Nr(ap,zS);hp(_d);dp(ZS,y_);pp("default",vS);Br({type:br,event:br,update:br},xt);Br({type:ui,event:ui,update:ui},xt);Br({type:Ci,event:Pl,update:Ci,action:xt,refineEvent:cu,publishNonRefinedEvent:!0});Br({type:Ds,event:Pl,update:Ds,action:xt,refineEvent:cu,publishNonRefinedEvent:!0});Br({type:Mi,event:Pl,update:Mi,action:xt,refineEvent:cu,publishNonRefinedEvent:!0});function cu(r,t,e,a){return{eventContent:{selected:Bm(e),isFromClick:t.isFromClick||!1}}}vp("default",{});vp("dark",Yd);function Ma(r){return r==null?0:r.length||1}function ac(r){return r}var gp=(function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||ac,this._newKeyGetter=n||ac,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,a={},n=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,a,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],l=a[s],u=Ma(l);if(u>1){var f=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(f,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,a={},n={},i=[],o=[];this._initIndexMap(t,a,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=a[l],f=n[l],c=Ma(u),h=Ma(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),n[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(c>1)for(var v=0;v<c;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(t,e){for(var a=0;a<t.length;a++){var n=t[a],i=e[n],o=Ma(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);e[n]=null}},r.prototype._initIndexMap=function(t,e,a,n){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[n](t[o],o);if(i||(a[o]=s),!!e){var l=e[s],u=Ma(l);u===0?(e[s]=o,i&&a.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r})(),hx=(function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function dx(r,t){var e={},a=e.encode={},n=q(),i=[],o=[],s={};w(r.dimensions,function(h){var v=r.getDimensionInfo(h),d=v.coordDim;if(d){var p=v.coordDimIndex;Wo(a,d)[p]=h,v.isExtraCoord||(n.set(d,1),gx(v.type)&&(i[0]=h),Wo(s,d)[p]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}vd.each(function(y,g){var m=Wo(a,g),_=v.otherDims[g];_!=null&&_!==!1&&(m[_]=v.name)})});var l=[],u={};n.each(function(h,v){var d=a[v];u[v]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=X(l,function(h){return r.getDimensionInfo(h).storeDimIndex}),e.encodeFirstDimNotExtra=u;var f=a.label;f&&f.length&&(i=f.slice());var c=a.tooltip;return c&&c.length?o=c.slice():o.length||(o=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=o,e.userOutput=new hx(s,t),e}function Wo(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function px(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function gx(r){return!(r==="ordinal"||r==="time")}var pi=(function(){function r(t){this.otherDims={},t!=null&&U(this,t)}return r})(),yx=ie(),mx={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},yp=(function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=Sp(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return J(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=bd(this.source),a=!xp(t),n="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=e?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=e?h.name:null,u=h.type)}i.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!c||!c.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=mx[u]||"f",f&&(n+=f.uid),n+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,n].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,a=0;e<this._fullDimCount;e++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(n=i.name),a++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function mp(r){return r instanceof yp}function _p(r){for(var t=q(),e=0;e<(r||[]).length;e++){var a=r[e],n=K(a)?a.name:a;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function Sp(r){var t=yx(r);return t.dimNameMap||(t.dimNameMap=_p(r.dimensionsDefine))}function xp(r){return r>30}var Ta=K,Ht=X,_x=typeof Int32Array>"u"?Array:Int32Array,Sx="e\0\0",nc=-1,xx=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],bx=["_approximateExtent"],ic,Zn,Da,Aa,Uo,La,Yo,bp=(function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a,n=!1;mp(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,a=t),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<a.length;f++){var c=a[f],h=$(c)?new pi({name:c}):c instanceof pi?c:new pi(c),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(v),i[v]=h,u[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]);var p=f;ve(h.storeDimIndex)&&(p=h.storeDimIndex),d.itemName===0&&(this._nameDimIdx=p),d.itemId===0&&(this._idDimIdx=p),n&&(h.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var y=this._dimIdxToName=q();w(o,function(g){y.set(i[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var a=this._dimIdxToName.get(e);if(a!=null)return a;var n=this._schema.getSourceDimension(e);if(n)return n.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var a=this._getDimInfo(t);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(ve(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(a){return e.hasOwnProperty(a)?e[a]:void 0}:function(a){return e[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var a=this._dimSummary;if(e==null)return a.encodeFirstDimNotExtra[t];var n=a.encode[t];return n?n[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,a=e.encode[t];return(a||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,a){var n=this,i;if(t instanceof Hs&&(i=t),!i){var o=this.dimensions,s=tu(t)||Mn(t)?new wd(t,o.length):t;i=new Hs;var l=Ht(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(s,l,a)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=dx(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var a=this._store.appendValues(t,e&&e.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s<i;s++){var l=s-n;this._nameList[s]=e[l],o&&Yo(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,a=0;a<e.length;a++){var n=this._dimInfos[e[a]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Jt&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===qe;if(l&&!n.pure)for(var u=[],f=t;f<e;f++){var c=n.getItem(f,u);if(!this.hasItemOption&&qy(c)&&(this.hasItemOption=!0),c){var h=c.name;i[f]==null&&h!=null&&(i[f]=ut(h,null));var v=c.id;o[f]==null&&v!=null&&(o[f]=ut(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)Yo(this,f);ic(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){Ta(t)?U(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),a=this._nameList[e];return a==null&&this._nameDimIdx!=null&&(a=Da(this,this._nameDimIdx,e)),a==null&&(a=""),a},r.prototype._getCategory=function(t,e){var a=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[a]:a},r.prototype.getId=function(t){return Zn(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var a=this._store,n=this._dimInfos[t];if(n)return a.get(n.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var a=this._store,n=this._dimInfos[t];if(n)return a.getByRawIndex(n.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var a=this,n=this._store;return z(t)?n.getValues(Ht(t,function(i){return a._getStoreDimIndex(i)}),e):n.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,a=0,n=e.length;a<n;a++)if(isNaN(this._store.get(e[a],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,a=this._store.count();e<a;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var a=t&&this._invertedIndicesMap[t],n=a&&a[e];return n==null||isNaN(n)?nc:n},r.prototype.each=function(t,e,a){j(t)&&(a=e,e=t,t=[]);var n=a||this,i=Ht(Aa(t),this._getStoreDimIndex,this);this._store.each(i,n?Z(e,n):e)},r.prototype.filterSelf=function(t,e,a){j(t)&&(a=e,e=t,t=[]);var n=a||this,i=Ht(Aa(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?Z(e,n):e),this},r.prototype.selectRange=function(t){var e=this,a={},n=Ie(t);return w(n,function(i){var o=e._getStoreDimIndex(i);a[o]=t[i]}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(t,e,a){j(t)&&(a=e,e=t,t=[]),a=a||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},a),n},r.prototype.map=function(t,e,a,n){var i=a||n||this,o=Ht(Aa(t),this._getStoreDimIndex,this),s=La(this);return s._store=this._store.map(o,i?Z(e,i):e),s},r.prototype.modify=function(t,e,a,n){var i=a||n||this,o=Ht(Aa(t),this._getStoreDimIndex,this);this._store.modify(o,i?Z(e,i):e)},r.prototype.downSample=function(t,e,a,n){var i=La(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,a,n),i},r.prototype.minmaxDownSample=function(t,e){var a=La(this);return a._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),a},r.prototype.lttbDownSample=function(t,e){var a=La(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),a},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,a=this.getRawDataItem(t);return new ye(a,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new gp(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(a){return Zn(t,a)},function(a){return Zn(e,a)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},Ta(t)?U(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var a=this._itemVisuals[t],n=a&&a[e];return n??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var a=this._itemVisuals,n=a[t];n||(n=a[t]={});var i=n[e];return i==null&&(i=this.getVisual(e),z(i)?i=i.slice():Ta(i)&&(i=U({},i)),n[e]=i),i},r.prototype.setItemVisual=function(t,e,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,Ta(e)?U(n,e):n[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Ta(t)?U(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,a){this._itemLayouts[t]=a?U(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var a=this.hostModel&&this.hostModel.seriesIndex;bm(a,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){w(this._graphicEls,function(a,n){a&&t&&t.call(e,a,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Ht(this.dimensions,this._getDimInfo,this),this.hostModel)),Uo(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];j(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return e.apply(this,[n].concat(My(arguments)))})},r.internalField=(function(){ic=function(t){var e=t._invertedIndicesMap;w(e,function(a,n){var i=t._dimInfos[n],o=i.ordinalMeta,s=t._store;if(o){a=e[n]=new _x(o.categories.length);for(var l=0;l<a.length;l++)a[l]=nc;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},Da=function(t,e,a){return ut(t._getCategory(e,a),null)},Zn=function(t,e){var a=t._idList[e];return a==null&&t._idDimIdx!=null&&(a=Da(t,t._idDimIdx,e)),a==null&&(a=Sx+e),a},Aa=function(t){return z(t)||(t=t!=null?[t]:[]),t},La=function(t){var e=new r(t._schema?t._schema:Ht(t.dimensions,t._getDimInfo,t),t.hostModel);return Uo(e,t),e},Uo=function(t,e){w(xx.concat(e.__wrappedMethods||[]),function(a){e.hasOwnProperty(a)&&(t[a]=e[a])}),t.__wrappedMethods=e.__wrappedMethods,w(bx,function(a){t[a]=ee(e[a])}),t._calculationInfo=U({},e._calculationInfo)},Yo=function(t,e){var a=t._nameList,n=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=a[e],l=n[e];if(s==null&&i!=null&&(a[e]=s=Da(t,i,e)),l==null&&o!=null&&(n[e]=l=Da(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[e]=l}}})(),r})();function ZT(r,t){return vu(r,t).dimensions}function vu(r,t){tu(r)||(r=Sd(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=q(),i=[],o=Cx(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&xp(o),l=a===r.dimensionsDefine,u=l?Sp(r):_p(a),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var c=q(f),h=new Ad(o),v=0;v<h.length;v++)h[v]=-1;function d(D){var A=h[D];if(A<0){var M=a[D],P=K(M)?M:{name:M},L=new pi,E=P.name;E!=null&&u.get(E)!=null&&(L.name=L.displayName=E),P.type!=null&&(L.type=P.type),P.displayName!=null&&(L.displayName=P.displayName);var I=i.length;return h[D]=I,L.storeDimIndex=D,i.push(L),L}return i[A]}if(!s)for(var v=0;v<o;v++)d(v);c.each(function(D,A){var M=Ae(D).slice();if(M.length===1&&!$(M[0])&&M[0]<0){c.set(A,!1);return}var P=c.set(A,[]);w(M,function(L,E){var I=$(L)?u.get(L):L;I!=null&&I<o&&(P[E]=I,y(d(I),A,E))})});var p=0;w(e,function(D){var A,M,P,L;if($(D))A=D,L={};else{L=D,A=L.name;var E=L.ordinalMeta;L.ordinalMeta=null,L=U({},L),L.ordinalMeta=E,M=L.dimsDef,P=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var I=c.get(A);if(I!==!1){if(I=Ae(I),!I.length)for(var k=0;k<(M&&M.length||1);k++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&I.push(p++)}w(I,function(N,R){var B=d(N);if(l&&L.type!=null&&(B.type=L.type),y(ae(B,L),A,R),B.name==null&&M){var V=M[R];!K(V)&&(V={name:V}),B.name=B.displayName=V.name,B.defaultTooltip=V.defaultTooltip}P&&ae(B.otherDims,P)})}});function y(D,A,M){vd.get(A)!=null?D.otherDims[A]=M:(D.coordDim=A,D.coordDimIndex=M,n.set(A,!0))}var g=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=g?m||1:0;var S=g||"value";function b(D){D.name==null&&(D.name=D.coordDim)}if(s)w(i,function(D){b(D)}),i.sort(function(D,A){return D.storeDimIndex-A.storeDimIndex});else for(var x=0;x<o;x++){var C=d(x),T=C.coordDim;T==null&&(C.coordDim=Mx(S,n,_),C.coordDimIndex=0,(!g||m<=0)&&(C.isExtraCoord=!0),m--),b(C),C.type==null&&(pd(r,x)===Pe.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type="ordinal")}return wx(i),new yp({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function wx(r){for(var t=q(),e=0;e<r.length;e++){var a=r[e],n=a.name,i=t.get(n)||0;i>0&&(a.name=n+(i-1)),i++,t.set(n,i)}}function Cx(r,t,e,a){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return w(t,function(i){var o;K(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function Mx(r,t,e){if(e||t.hasKey(r)){for(var a=0;t.hasKey(r+a);)a++;r+=a}return t.set(r,!0),r}var Tx=(function(){function r(t){this.coordSysDims=[],this.axisMap=q(),this.categoryAxisMap=q(),this.coordSysName=t}return r})();function Dx(r){var t=r.get("coordinateSystem"),e=new Tx(t),a=Ax[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var Ax={cartesian2d:function(r,t,e,a){var n=r.getReferringComponents("xAxis",Ne).models[0],i=r.getReferringComponents("yAxis",Ne).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",i),$r(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),$r(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var n=r.getReferringComponents("singleAxis",Ne).models[0];t.coordSysDims=["single"],e.set("single",n),$r(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var n=r.getReferringComponents("polar",Ne).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),$r(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),$r(o)&&(a.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,a){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();w(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];e.set(f,u),$r(u)&&(a.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(r,t,e,a){var n=r.getReferringComponents("matrix",Ne).models[0];t.coordSysDims=["x","y"];var i=n.getDimensionModel("x"),o=n.getDimensionModel("y");e.set("x",i),e.set("y",o),a.set("x",i),a.set("y",o)}};function $r(r){return r.get("type")==="category"}function Lx(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,s;Ix(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,c,h;if(w(i,function(m,_){$(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!a&&!u&&(a=!0),f){c="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;w(i,function(m){m.coordDim===v&&p++});var y={name:c,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},g={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(h,d),g.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(y),o.appendCalculationDimension(g)):(i.push(y),i.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function Ix(r){return!mp(r.schema)}function ua(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function Px(r,t){return ua(r,t)?r.getCalculationInfo("stackResultDimension"):t}function kx(r,t){var e=r.get("coordinateSystem"),a=vo.get(e),n;return t&&t.coordSysDims&&(n=X(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=px(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function Rx(r,t,e){var a,n;return e&&w(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function In(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;n=a.getSource(),i=n.sourceFormat===qe;var o=Dx(t),s=kx(t,o),l=e.useEncodeDefaulter,u=j(l)?l:l?me(Z0,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=vu(n,f),h=Rx(c.dimensions,e.createInvertedIndices,o),v=i?null:a.getSharedDataStore(c),d=Lx(t,{schema:c,store:v}),p=new bp(c,t);p.setCalculationInfo(d);var y=h!=null&&Ex(n)?function(g,m,_,S){return S===h?_:this.defaultDimValueGetter(g,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?n:v,null,y),p}function Ex(r){if(r.sourceFormat===qe){var t=Ox(r.data||[]);return!z(An(t))}}function Ox(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}function Qs(r){return r.type==="interval"||r.type==="log"}function Bx(r,t,e,a,n){var i={},o=i.interval=mh(t/e);a!=null&&o<a&&(o=i.interval=a),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=mn(o),l=i.niceTickExtent=[Re(Math.ceil(r[0]/o)*o,s),Re(Math.floor(r[1]/o)*o,s)];return Nx(l,r),i}function Zo(r){var t=Math.pow(10,Ml(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Re(e*t)}function mn(r){return Dt(r)+2}function oc(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function Nx(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),oc(r,0,t),oc(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function hu(r,t){return r>=t[0]&&r<=t[1]}var Vx=(function(){function r(){this.normalize=sc,this.scale=lc}return r.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=Z(t.normalize,t),this.scale=Z(t.scale,t)):(this.normalize=sc,this.scale=lc)},r})();function sc(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function lc(r,t){return r*(t[1]-t[0])+t[0]}function Js(r,t,e){var a=Math.log(r);return[Math.log(e?t[0]:Math.max(0,t[0]))/a,Math.log(e?t[1]:Math.max(0,t[1]))/a]}var sr=(function(){function r(t){this._calculator=new Vx,this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent(t[0]<e[0]?t[0]:e[0],t[1]>e[1]?t[1]:e[1])},r.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},r.prototype._innerSetExtent=function(t,e){var a=this._extent;isNaN(t)||(a[0]=t),isNaN(e)||(a[1]=e),this._brkCtx&&this._brkCtx.update(a)},r.prototype.setBreaksFromOption=function(t){},r.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},r.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},r.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},r.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r})();no(sr);var zx=0,el=(function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++zx,this._onCollect=t.onCollect}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&X(a,Fx);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,a=this._needCollect;if(!$(t)&&!a)return t;if(a&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(a?(e=this.categories.length,this.categories[e]=t,n.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=q(this.categories))},r})();function Fx(r){return K(r)&&r.value!=null?r.value:r+""}var wp=(function(r){W(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new el({})),z(n)&&(n=new el({categories:X(n,function(i){return K(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return t.prototype.parse=function(e){return e==null?NaN:$(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return hu(e,this._extent)&&e>=0&&e<this._ordinalMeta.categories.length},t.prototype.normalize=function(e){return e=this._getTickNumber(e),this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(this._calculator.scale(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],a=this._extent,n=a[0];n<=a[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o<l;++o){var u=a[o];n[o]=u,i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;n.push(f),i[f]=o}},t.prototype._getTickNumber=function(e){var a=this._ticksByOrdinalNumber;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getRawOrdinalNumber=function(e){var a=this._ordinalNumbersByTick;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var a=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[a];return n==null?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(sr);sr.registerClass(wp);var Wt=Re,ar=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e==null||e===""?NaN:Number(e)},t.prototype.contain=function(e){return hu(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=mn(e)},t.prototype.getTicks=function(e){e=e||{};var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=ki(),l=[];if(!a)return l;e.breakTicks;var u=1e4;n[0]<i[0]&&(e.expandToNicedExtent?l.push({value:Wt(i[0]-a,o)}):l.push({value:n[0]}));for(var f=function(d,p){return Math.round((p-d)/a)},c=i[0];c<=i[1];){if(l.push({value:c}),c=Wt(c+a,o),this._brkCtx){var h=this._brkCtx.calcNiceTickMultiple(c,f);h>=0&&(c=Wt(c+h*a,o))}if(l.length>0&&c===l[l.length-1].value)break;if(l.length>u)return[]}var v=l.length?l[l.length-1].value:i[1];return n[1]>v&&(e.expandToNicedExtent?l.push({value:Wt(v+a,o)}):l.push({value:n[1]})),e.breakTicks,l},t.prototype.getMinorTicks=function(e){for(var a=this.getTicks({expandToNicedExtent:!0}),n=[],i=this.getExtent(),o=1;o<a.length;o++){var s=a[o],l=a[o-1];if(!(l.break||s.break)){for(var u=0,f=[],c=s.value-l.value,h=c/e,v=mn(h);u<e-1;){var d=Wt(l.value+(u+1)*h,v);d>i[0]&&d<i[1]&&f.push(d),u++}var p=ki();p&&p.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(y){return y},this._interval,i),n.push(f)}}return n},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(e,a){if(e==null)return"";var n=a&&a.precision;n==null?n=Dt(e.value)||0:n==="auto"&&(n=this._intervalPrecision);var i=Wt(e.value,n,!0);return id(i)},t.prototype.calcNiceTicks=function(e,a,n){e=e||5;var i=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,i.reverse(),this._innerSetExtent(i[0],i[1]),i=this._extent.slice());var s=Bx(i,o,e,a,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var a=this._extent.slice();if(a[0]===a[1])if(a[0]!==0){var n=Math.abs(a[0]);e.fixMax||(a[1]+=n/2),a[0]-=n/2}else a[1]=1;var i=a[1]-a[0];isFinite(i)||(a[0]=0,a[1]=1),this._innerSetExtent(a[0],a[1]),a=this._extent.slice(),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval,s=this._intervalPrecision;e.fixMin||(a[0]=Wt(Math.floor(a[0]/o)*o,s)),e.fixMax||(a[1]=Wt(Math.ceil(a[1]/o)*o,s)),this._innerSetExtent(a[0],a[1])},t.prototype.setNiceExtent=function(e,a){this._niceExtent=[e,a]},t.type="interval",t})(sr);sr.registerClass(ar);var Cp=typeof Float32Array<"u",Gx=Cp?Float32Array:Array;function At(r){return z(r)?Cp?new Float32Array(r):r:new Gx(r)}var tl="__ec_stack_";function Mp(r){return r.get("stack")||tl+r.seriesIndex}function du(r){return r.dim+r.index}function Hx(r){var t=[],e=r.axis,a="axis0";if(e.type==="category"){for(var n=e.getBandWidth(),i=0;i<r.count;i++)t.push(ae({bandWidth:n,axisKey:a,stackId:tl+i},r));for(var o=Ap(t),s=[],i=0;i<r.count;i++){var l=o[a][tl+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function Tp(r,t){var e=[];return t.eachSeriesByType(r,function(a){Lp(a)&&e.push(a)}),e}function Wx(r){var t={};w(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var c=l.getData(),h=f.dim+"_"+f.index,v=c.getDimensionIndex(c.mapDimension(f.dim)),d=c.getStore(),p=0,y=d.count();p<y;++p){var g=d.get(v,p);t[h]?t[h].push(g):t[h]=[g]}});var e={};for(var a in t)if(t.hasOwnProperty(a)){var n=t[a];if(n){n.sort(function(l,u){return l-u});for(var i=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(i=i===null?s:Math.min(i,s))}e[a]=i}}return e}function Dp(r){var t=Wx(r),e=[];return w(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],f=Math.abs(o[1]-o[0]),c=i.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=u?f/h*u:f}else{var v=a.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=ne(a.get("barWidth"),s),p=ne(a.get("barMaxWidth"),s),y=ne(a.get("barMinWidth")||(Ip(a)?.5:1),s),g=a.get("barGap"),m=a.get("barCategoryGap"),_=a.get("defaultBarGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:y,barGap:g,barCategoryGap:m,defaultBarGap:_,axisKey:du(i),stackId:Mp(a)})}),Ap(e)}function Ap(r){var t={};w(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:a.defaultBarGap||0,stacks:{}},l=s.stacks;t[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=a.barMaxWidth;c&&(l[u].maxWidth=c);var h=a.barMinWidth;h&&(l[u].minWidth=h);var v=a.barGap;v!=null&&(s.gap=v);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return w(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=Ie(i).length;s=Math.max(35-l*4,15)+"%"}var u=ne(s,o),f=ne(a.gap,1),c=a.remainedWidth,h=a.autoWidthCount,v=(c-u)/(h+(h-1)*f);v=Math.max(v,0),w(i,function(g){var m=g.maxWidth,_=g.minWidth;if(g.width){var S=g.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),g.width=S,c-=S+f*S,h--}else{var S=v;m&&m<S&&(S=Math.min(m,c)),_&&_>S&&(S=_),S!==v&&(g.width=S,c-=S+f*S,h--)}}),v=(c-u)/(h+(h-1)*f),v=Math.max(v,0);var d=0,p;w(i,function(g,m){g.width||(g.width=v),p=g,d+=g.width*(1+f)}),p&&(d-=p.width*f);var y=-d/2;w(i,function(g,m){e[n][m]=e[n][m]||{bandWidth:o,offset:y,width:g.width},y+=g.width*(1+f)})}),e}function Ux(r,t,e){if(r&&t){var a=r[du(t)];return a}}function Yx(r,t){var e=Tp(r,t),a=Dp(e);w(e,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=Mp(n),u=a[du(s)][l],f=u.offset,c=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function Zx(r){return{seriesType:r,plan:nu(),reset:function(t){if(Lp(t)){var e=t.getData(),a=t.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),f=e.getCalculationInfo("stackResultDimension"),c=ua(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=Xx(n,i),d=Ip(t),p=t.get("barMinHeight")||0,y=f&&e.getDimensionIndex(f),g=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&At(b*3),C=d&&l&&At(b*3),T=d&&At(b),D=a.master.getRect(),A=h?D.width:D.height,M,P=S.getStore(),L=0;(M=_.next())!=null;){var E=P.get(c?y:o,M),I=P.get(s,M),k=v,N=void 0;c&&(N=+E-P.get(o,M));var R=void 0,B=void 0,V=void 0,G=void 0;if(h){var Y=a.dataToPoint([E,I]);if(c){var Q=a.dataToPoint([N,I]);k=Q[0]}R=k,B=Y[1]+m,V=Y[0]-k,G=g,Math.abs(V)<p&&(V=(V<0?-1:1)*p)}else{var Y=a.dataToPoint([I,E]);if(c){var Q=a.dataToPoint([I,N]);k=Q[1]}R=Y[0]+m,B=k,V=g,G=Y[1]-k,Math.abs(G)<p&&(G=(G<=0?-1:1)*p)}d?(x[L]=R,x[L+1]=B,x[L+2]=h?V:G,C&&(C[L]=h?D.x:R,C[L+1]=h?B:D.y,C[L+2]=A),T[M]=M):S.setItemLayout(M,{x:R,y:B,width:V,height:G}),L+=3}d&&S.setLayout({largePoints:x,largeDataIndices:T,largeBackgroundPoints:C,valueAxisHorizontal:h})}}}}}}function Lp(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function Ip(r){return r.pipelineContext&&r.pipelineContext.large}function Xx(r,t){var e=t.model.get("startValue");return e||(e=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?e>0?e:1:e))}var $x=function(r,t,e,a){for(;e<a;){var n=e+a>>>1;r[n][1]<t?e=n+1:a=n}return e},Pp=(function(r){W(t,r);function t(e){var a=r.call(this,e)||this;return a.type="time",a}return t.prototype.getLabel=function(e){var a=this.getSetting("useUTC");return co(e.value,lf[C0(ja(this._minLevelUnit))]||lf.second,a,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,a,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return M0(e,a,n,o,i)},t.prototype.getTicks=function(e){var a=this._interval,n=this._extent,i=[];if(!a)return i;var o=this.getSetting("useUTC"),s=Ri(n[1],o);i.push({value:n[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var l=rb(this._minLevelUnit,this._approxInterval,o,n,this._getExtentSpanWithBreaks(),this._brkCtx);i=i.concat(l);var u=Ri(n[1],o);i.push({value:n[1],time:{level:0,upperTimeUnit:u,lowerTimeUnit:u}}),this.getSetting("useUTC");var f=wr.length-1,c=0;return w(i,function(h){f=Math.min(f,ue(wr,h.time.upperTimeUnit)),c=Math.max(c,h.time.level)}),i},t.prototype.calcNiceExtent=function(e){var a=this.getExtent();if(a[0]===a[1]&&(a[0]-=et,a[1]+=et),a[1]===-1/0&&a[0]===1/0){var n=new Date;a[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),a[0]=a[1]-et}this._innerSetExtent(a[0],a[1]),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,a,n){e=e||10;var i=this._getExtentSpanWithBreaks();this._approxInterval=i/e,a!=null&&this._approxInterval<a&&(this._approxInterval=a),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var o=Xn.length,s=Math.min($x(Xn,this._approxInterval,0,o),o-1);this._interval=Xn[s][1],this._intervalPrecision=mn(this._interval),this._minLevelUnit=Xn[Math.max(s-1,0)][0]},t.prototype.parse=function(e){return ve(e)?e:+Pr(e)},t.prototype.contain=function(e){return hu(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.type="time",t})(ar),Xn=[["second",Wl],["minute",Ul],["hour",qa],["quarter-day",qa*6],["half-day",qa*12],["day",et*1.2],["half-week",et*3.5],["week",et*7],["month",et*31],["quarter",et*95],["half-year",sf/2],["year",sf]];function Kx(r,t,e,a){return Vs(new Date(t),r,a).getTime()===Vs(new Date(e),r,a).getTime()}function qx(r,t){return r/=et,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function jx(r){var t=30*et;return r/=t,r>6?6:r>3?3:r>2?2:1}function Qx(r){return r/=qa,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function uc(r,t){return r/=t?Ul:Wl,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function Jx(r){return mh(r)}function eb(r,t,e){var a=Math.max(0,ue(wr,t)-1);return Vs(new Date(r),wr[a],e).getTime()}function tb(r,t){var e=new Date(0);e[r](1);var a=e.getTime();e[r](1+t);var n=e.getTime()-a;return function(i,o){return Math.max(0,Math.round((o-i)/n))}}function rb(r,t,e,a,n,i){var o=1e4,s=S0,l=0;function u(L,E,I,k,N,R,B){for(var V=tb(N,L),G=E,Y=new Date(G);G<I&&G<=a[1]&&(B.push({value:G}),!(l++>o));)if(Y[N](Y[k]()+L),G=Y.getTime(),i){var Q=i.calcNiceTickMultiple(G,V);Q>0&&(Y[N](Y[k]()+Q*L),G=Y.getTime())}B.push({value:G,notAdd:!0})}function f(L,E,I){var k=[],N=!E.length;if(!Kx(ja(L),a[0],a[1],e)){N&&(E=[{value:eb(a[0],L,e)},{value:a[1]}]);for(var R=0;R<E.length-1;R++){var B=E[R].value,V=E[R+1].value;if(B!==V){var G=void 0,Y=void 0,Q=void 0,ge=!1;switch(L){case"year":G=Math.max(1,Math.round(t/et/365)),Y=Qh(e),Q=T0(e);break;case"half-year":case"quarter":case"month":G=jx(t),Y=Yl(e),Q=Jh(e);break;case"week":case"half-week":case"day":G=qx(t),Y=Zl(e),Q=ed(e),ge=!0;break;case"half-day":case"quarter-day":case"hour":G=Qx(t),Y=Xl(e),Q=td(e);break;case"minute":G=uc(t,!0),Y=$l(e),Q=rd(e);break;case"second":G=uc(t,!1),Y=Kl(e),Q=ad(e);break;case"millisecond":G=Jx(t),Y=ql(e),Q=nd(e);break}V>=a[0]&&B<=a[1]&&u(G,B,V,Y,Q,ge,k),L==="year"&&I.length>1&&R===0&&I.unshift({value:I[0].value-G})}}for(var R=0;R<k.length;R++)I.push(k[R])}}for(var c=[],h=[],v=0,d=0,p=0;p<s.length;++p){var y=ja(s[p]);if(w0(s[p])){f(s[p],c[c.length-1]||[],h);var g=s[p+1]?ja(s[p+1]):null;if(y!==g){if(h.length){d=v,h.sort(function(L,E){return L.value-E.value});for(var m=[],_=0;_<h.length;++_){var S=h[_].value;(_===0||h[_-1].value!==S)&&(m.push(h[_]),S>=a[0]&&S<=a[1]&&v++)}var b=n/t;if(v>b*1.5&&d>b/1.5||(c.push(m),v>b||r===s[p]))break}h=[]}}}for(var x=Me(X(c,function(L){return Me(L,function(E){return E.value>=a[0]&&E.value<=a[1]&&!E.notAdd})}),function(L){return L.length>0}),C=[],T=x.length-1,p=0;p<x.length;++p)for(var D=x[p],A=0;A<D.length;++A){var M=Ri(D[A].value,e);C.push({value:D[A].value,time:{level:T-p,upperTimeUnit:M,lowerTimeUnit:M}})}C.sort(function(L,E){return L.value-E.value});for(var P=[],p=0;p<C.length;++p)(p===0||C[p].value!==C[p-1].value)&&P.push(C[p]);return P}sr.registerClass(Pp);var rl=Re,ab=Math.floor,nb=Math.ceil,$n=Math.pow,Kn=Math.log,kp=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new ar,e}return t.prototype.getTicks=function(e){e=e||{};var a=this._extent.slice(),n=this._originalScale.getExtent(),i=r.prototype.getTicks.call(this,e),o=this.base;return this._originalScale._innerGetBreaks(),X(i,function(s){var l=s.value,u=null,f=$n(o,l);l===a[0]&&this._fixMin?u=n[0]:l===a[1]&&this._fixMax&&(u=n[1]);var c;return u!=null&&(f=Xo(f,u)),{value:f,break:c}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(e,a){this._originalScale.setExtent(e,a);var n=Js(this.base,[e,a]);r.prototype.setExtent.call(this,n[0],n[1])},t.prototype.getExtent=function(){var e=this.base,a=r.prototype.getExtent.call(this);a[0]=$n(e,a[0]),a[1]=$n(e,a[1]);var n=this._originalScale.getExtent();return this._fixMin&&(a[0]=Xo(a[0],n[0])),this._fixMax&&(a[1]=Xo(a[1],n[1])),a},t.prototype.unionExtentFromData=function(e,a){this._originalScale.unionExtentFromData(e,a);var n=Js(this.base,e.getApproximateExtent(a),!0);this._innerUnionExtent(n)},t.prototype.calcNiceTicks=function(e){e=e||10;var a=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(!(!isFinite(n)||n<=0)){var i=Uy(n),o=e/n*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[rl(nb(a[0]/i)*i),rl(ab(a[1]/i)*i)];this._interval=i,this._intervalPrecision=mn(i),this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){r.prototype.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.contain=function(e){return e=Kn(e)/Kn(this.base),r.prototype.contain.call(this,e)},t.prototype.normalize=function(e){return e=Kn(e)/Kn(this.base),r.prototype.normalize.call(this,e)},t.prototype.scale=function(e){return e=r.prototype.scale.call(this,e),$n(this.base,e)},t.prototype.setBreaksFromOption=function(e){},t.type="log",t})(ar);function Xo(r,t){return rl(r,Dt(t))}sr.registerClass(kp);var ib=(function(){function r(t,e,a){this._prepareParams(t,e,a)}return r.prototype._prepareParams=function(t,e,a){a[1]<a[0]&&(a=[NaN,NaN]),this._dataMin=a[0],this._dataMax=a[1];var n=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=e.get("min",!0);i==null&&(i=e.get("startValue",!0));var o=this._modelMinRaw=i;j(o)?this._modelMinNum=qn(t,o({min:a[0],max:a[1]})):o!=="dataMin"&&(this._modelMinNum=qn(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(j(s)?this._modelMaxNum=qn(t,s({min:a[0],max:a[1]})):s!=="dataMax"&&(this._modelMaxNum=qn(t,s)),n)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=z(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[rn(u[0],1),rn(u[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,a=this._dataMax,n=this._axisDataLen,i=this._boundaryGapInner,o=t?null:a-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?a:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?n?0:NaN:e-i[0]*o),l==null&&(l=t?n?n-1:NaN:a+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=xr(s)||xr(l)||t&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},r.prototype.modifyDataMinMax=function(t,e){this[sb[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=ob[t];this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r})(),ob={min:"_determinedMin",max:"_determinedMax"},sb={min:"_dataMin",max:"_dataMax"};function Rp(r,t,e){var a=r.rawExtentInfo;return a||(a=new ib(r,t,e),r.rawExtentInfo=a,a)}function qn(r,t){return t==null?null:xr(t)?NaN:r.parse(t)}function Ep(r,t){var e=r.type,a=Rp(r,t,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=t.ecModel;if(o&&e==="time"){var s=Tp("bar",o),l=!1;if(w(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=Dp(s),f=lb(n,i,t,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function lb(r,t,e,a){var n=e.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=Ux(a,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;w(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;w(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,c=1-(s+l)/i,h=f/c-f;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function fc(r,t){var e=t,a=Ep(r,e),n=a.extent,i=e.get("splitNumber");r instanceof kp&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setBreaksFromOption(Np(e)),r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function ub(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new wp({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Pp({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(sr.getClass(t)||ar)}}function fb(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function Pn(r){var t=r.getLabelModel().get("formatter");if(r.type==="time"){var e=x0(t);return function(n,i){return r.scale.getFormattedLabel(n,i,e)}}else{if($(t))return function(n){var i=r.scale.getLabel(n),o=t.replace("{value}",i??"");return o};if(j(t)){if(r.type==="category")return function(n,i){return t(Gi(r,n),n.value-r.scale.getExtent()[0],null)};var a=ki();return function(n,i){var o=null;return a&&(o=a.makeAxisLabelFormatterParamBreak(o,n.break)),t(Gi(r,n),i,o)}}else return function(n){return r.scale.getLabel(n)}}}function Gi(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function pu(r){var t=r.get("interval");return t??"auto"}function Op(r){return r.type==="category"&&pu(r.getLabelModel())===0}function Bp(r,t){var e={};return w(r.mapDimensionsAll(t),function(a){e[Px(r,a)]=!0}),Ie(e)}function cb(r,t,e){t&&w(Bp(t,e),function(a){var n=t.getApproximateExtent(a);n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1])})}function fa(r){return r==="middle"||r==="center"}function _n(r){return r.getShallow("show")}function Np(r){var t=r.get("breaks",!0);t==null}var Vp=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r})();function XT(r,t){return t=t||{},Te(r,null,null,t.state!=="normal")}var cc=[],vb={registerPreprocessor:hp,registerProcessor:dp,registerPostInit:sx,registerPostUpdate:lx,registerUpdateLifecycle:uu,registerAction:Br,registerCoordinateSystem:ux,registerLayout:fx,registerVisual:Nr,registerTransform:vx,registerLoading:pp,registerMap:cx,registerImpl:FS,PRIORITY:tx,ComponentModel:re,ComponentView:He,SeriesModel:Ge,ChartView:Oe,registerComponentModel:function(r){re.registerClass(r)},registerComponentView:function(r){He.registerClass(r)},registerSeriesModel:function(r){Ge.registerClass(r)},registerChartView:function(r){Oe.registerClass(r)},registerCustomSeries:function(r,t){HS(r,t)},registerSubTypeDefaulter:function(r,t){re.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){Ty(r,t)}};function Xe(r){if(z(r)){w(r,function(t){Xe(t)});return}ue(cc,r)>=0||(cc.push(r),j(r)&&(r={install:r}),r.install(vb))}var hb=ie(),en=ie(),ct={estimate:1,determine:2};function Hi(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function zp(r,t){var e=X(t,function(a){return r.scale.parse(a)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function db(r,t){var e=r.getLabelModel().get("customValues");if(e){var a=Pn(r),n=r.scale.getExtent(),i=zp(r,e),o=Me(i,function(s){return s>=n[0]&&s<=n[1]});return{labels:X(o,function(s){var l={value:s};return{formattedLabel:a(l),rawLabel:r.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return r.type==="category"?gb(r,t):mb(r)}function pb(r,t,e){var a=r.getTickModel().get("customValues");if(a){var n=r.scale.getExtent(),i=zp(r,a);return{ticks:Me(i,function(o){return o>=n[0]&&o<=n[1]})}}return r.type==="category"?yb(r,t):{ticks:X(r.scale.getTicks(e),function(o){return o.value})}}function gb(r,t){var e=r.getLabelModel(),a=Fp(r,e,t);return!e.get("show")||r.scale.isBlank()?{labels:[]}:a}function Fp(r,t,e){var a=Sb(r),n=pu(t),i=e.kind===ct.estimate;if(!i){var o=Hp(a,n);if(o)return o}var s,l;j(n)?s=Yp(r,n):(l=n==="auto"?xb(r,e):n,s=Up(r,l));var u={labels:s,labelCategoryInterval:l};return i?e.out.noPxChangeTryDetermine.push(function(){return al(a,n,u),!0}):al(a,n,u),u}function yb(r,t){var e=_b(r),a=pu(t),n=Hp(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),j(a))i=Yp(r,a,!0);else if(a==="auto"){var s=Fp(r,r.getLabelModel(),Hi(ct.determine));o=s.labelCategoryInterval,i=X(s.labels,function(l){return l.tickValue})}else o=a,i=Up(r,o,!0);return al(e,a,{ticks:i,tickCategoryInterval:o})}function mb(r){var t=r.scale.getTicks(),e=Pn(r);return{labels:X(t,function(a,n){return{formattedLabel:e(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value,time:a.time,break:a.break}})}}var _b=Gp("axisTick"),Sb=Gp("axisLabel");function Gp(r){return function(e){return en(e)[r]||(en(e)[r]={list:[]})}}function Hp(r,t){for(var e=0;e<r.list.length;e++)if(r.list[e].key===t)return r.list[e].value}function al(r,t,e){return r.list.push({key:t,value:e}),e}function xb(r,t){if(t.kind===ct.estimate){var e=r.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return en(r).autoInterval=e,!0}),e}var a=en(r).autoInterval;return a??(en(r).autoInterval=r.calculateCategoryInterval(t))}function bb(r,t){var e=t.kind,a=Cb(r),n=Pn(r),i=(a.axisRotate-a.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],h=r.dataToCoord(c+1)-r.dataToCoord(c),v=Math.abs(h*Math.cos(i)),d=Math.abs(h*Math.sin(i)),p=0,y=0;c<=s[1];c+=u){var g=0,m=0,_=uh(n({value:c}),a.font,"center","top");g=_.width*1.3,m=_.height*1.3,p=Math.max(p,g,7),y=Math.max(y,m,7)}var S=p/v,b=y/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var x=Math.max(0,Math.floor(Math.min(S,b)));if(e===ct.estimate)return t.out.noPxChangeTryDetermine.push(Z(wb,null,r,x,l)),x;var C=Wp(r,x,l);return C??x}function wb(r,t,e){return Wp(r,t,e)==null}function Wp(r,t,e){var a=hb(r.model),n=r.getExtent(),i=a.lastAutoInterval,o=a.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-t)<=1&&Math.abs(o-e)<=1&&i>t&&a.axisExtent0===n[0]&&a.axisExtent1===n[1])return i;a.lastTickCount=e,a.lastAutoInterval=t,a.axisExtent0=n[0],a.axisExtent1=n[1]}function Cb(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Up(r,t,e){var a=Pn(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=Op(r),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;h&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);v&&d-l!==i[1]&&p(i[1]);function p(y){var g={value:y};s.push(e?y:{formattedLabel:a(g),rawLabel:n.getLabel(g),tickValue:y,time:void 0,break:void 0})}return s}function Yp(r,t,e){var a=r.scale,n=Pn(r),i=[];return w(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),i}var vc=[0,1],Zp=(function(){function r(t,e,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=a||[0,0]}return r.prototype.contain=function(t){var e=this._extent,a=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=a&&t<=n},r.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return gh(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var a=this._extent;a[0]=t,a[1]=e},r.prototype.dataToCoord=function(t,e){var a=this._extent,n=this.scale;return t=n.normalize(n.parse(t)),this.onBand&&n.type==="ordinal"&&(a=a.slice(),hc(a,n.count())),ce(t,vc,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),hc(a,n.count()));var i=ce(t,a,vc,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),a=pb(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),n=a.ticks,i=X(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return Mb(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var a=this.scale.getMinorTicks(e),n=X(a,function(i){return X(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(t){return t=t||Hi(ct.determine),db(this,t).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),a=e[1]-e[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(t){return t=t||Hi(ct.determine),bb(this,t)},r})();function hc(r,t){var e=r[1]-r[0],a=t,n=e/a/2;r[0]+=n,r[1]-=n}function Mb(r,t,e,a){var n=t.length;if(!r.onBand||e||!n)return;var i=r.getExtent(),o,s;if(n===1)t[0].coord=i[0],t[0].onBand=!0,o=t[1]={coord:i[1],tickValue:t[0].tickValue,onBand:!0};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;w(t,function(v){v.coord-=u/2,v.onBand=!0});var f=r.scale.getExtent();s=1+f[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s,tickValue:f[1]+1,onBand:!0},t.push(o)}var c=i[0]>i[1];h(t[0].coord,i[0])&&(a?t[0].coord=i[0]:t.shift()),a&&h(i[0],t[0].coord)&&t.unshift({coord:i[0],onBand:!0}),h(i[1],o.coord)&&(a?o.coord=i[1]:t.pop()),a&&h(o.coord,i[1])&&t.push({coord:i[1],onBand:!0});function h(v,d){return v=Re(v),d=Re(d),c?v>d:v<d}}function $T(r){var t=Ge.extend(r);return Ge.registerClass(t),t}function KT(r){var t=Oe.extend(r);return Oe.registerClass(t),t}var Ia=Math.PI*2,gr=fh.CMD,Tb=["top","right","bottom","left"];function Db(r,t,e,a,n){var i=e.width,o=e.height;switch(r){case"top":a.set(e.x+i/2,e.y-t),n.set(0,-1);break;case"bottom":a.set(e.x+i/2,e.y+o+t),n.set(0,1);break;case"left":a.set(e.x-t,e.y+o/2),n.set(-1,0);break;case"right":a.set(e.x+i+t,e.y+o/2),n.set(1,0);break}}function Ab(r,t,e,a,n,i,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*e+r,c=s*e+t;if(Math.abs(a-n)%Ia<1e-4)return l[0]=f,l[1]=c,u-e;if(i){var h=a;a=Ga(n),n=Ga(h)}else a=Ga(a),n=Ga(n);a>n&&(n+=Ia);var v=Math.atan2(s,o);if(v<0&&(v+=Ia),v>=a&&v<=n||v+Ia>=a&&v+Ia<=n)return l[0]=f,l[1]=c,u-e;var d=e*Math.cos(a)+r,p=e*Math.sin(a)+t,y=e*Math.cos(n)+r,g=e*Math.sin(n)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(y-o)*(y-o)+(g-s)*(g-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=y,l[1]=g,Math.sqrt(_))}function Wi(r,t,e,a,n,i,o,s){var l=n-r,u=i-t,f=e-r,c=a-t,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var v=l*f+u*c,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*f,y=o[1]=t+d*c;return Math.sqrt((p-n)*(p-n)+(y-i)*(y-i))}function Xp(r,t,e,a,n,i,o){e<0&&(r=r+e,e=-e),a<0&&(t=t+a,a=-a);var s=r+e,l=t+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var st=[];function Lb(r,t,e){var a=Xp(t.x,t.y,t.width,t.height,r.x,r.y,st);return e.set(st[0],st[1]),a}function Ib(r,t,e){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,f=t.data,c=r.x,h=r.y,v=0;v<f.length;){var d=f[v++];v===1&&(a=f[v],n=f[v+1],i=a,o=n);var p=u;switch(d){case gr.M:i=f[v++],o=f[v++],a=i,n=o;break;case gr.L:p=Wi(a,n,f[v],f[v+1],c,h,st,!0),a=f[v++],n=f[v++];break;case gr.C:p=Ay(a,n,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],c,h,st),a=f[v++],n=f[v++];break;case gr.Q:p=Dy(a,n,f[v++],f[v++],f[v],f[v+1],c,h,st),a=f[v++],n=f[v++];break;case gr.A:var y=f[v++],g=f[v++],m=f[v++],_=f[v++],S=f[v++],b=f[v++];v+=1;var x=!!(1-f[v++]);s=Math.cos(S)*m+y,l=Math.sin(S)*_+g,v<=1&&(i=s,o=l);var C=(c-y)*_/m+y;p=Ab(y,g,_,S,S+b,x,C,h,st),a=Math.cos(S+b)*m+y,n=Math.sin(S+b)*_+g;break;case gr.R:i=a=f[v++],o=n=f[v++];var T=f[v++],D=f[v++];p=Xp(i,o,T,D,c,h,st);break;case gr.Z:p=Wi(a,n,i,o,c,h,st,!0),a=i,n=o;break}p<u&&(u=p,e.set(st[0],st[1]))}return u}var lt=new de,le=new de,Se=new de,_t=new de,gt=new de;function dc(r,t){if(r){var e=r.getTextGuideLine(),a=r.getTextContent();if(a&&e){var n=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=n.candidates||Tb,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,f=r.getComputedTransform(),c=f&&eo([],f),h=t.get("length2")||0;u&&Se.copy(u);for(var v=0;v<o.length;v++){var d=o[v];Db(d,0,s,lt,_t),de.scaleAndAdd(le,lt,_t,h),le.transform(c);var p=r.getBoundingRect(),y=u?u.distance(le):r instanceof We?Ib(le,r.path,Se):Lb(le,p,Se);y<l&&(l=y,le.transform(f),Se.transform(f),Se.toArray(i[0]),le.toArray(i[1]),lt.toArray(i[2]))}$p(i,t.get("minTurnAngle")),e.setShape({points:i})}}}var Ui=[],Ye=new de;function $p(r,t){if(t<=180&&t>0){t=t/180*Math.PI,lt.fromArray(r[0]),le.fromArray(r[1]),Se.fromArray(r[2]),de.sub(_t,lt,le),de.sub(gt,Se,le);var e=_t.len(),a=gt.len();if(!(e<.001||a<.001)){_t.scale(1/e),gt.scale(1/a);var n=_t.dot(gt),i=Math.cos(t);if(i<n){var o=Wi(le.x,le.y,Se.x,Se.y,lt.x,lt.y,Ui,!1);Ye.fromArray(Ui),Ye.scaleAndAdd(gt,o/Math.tan(Math.PI-t));var s=Se.x!==le.x?(Ye.x-le.x)/(Se.x-le.x):(Ye.y-le.y)/(Se.y-le.y);if(isNaN(s))return;s<0?de.copy(Ye,le):s>1&&de.copy(Ye,Se),Ye.toArray(r[1])}}}}function Pb(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,lt.fromArray(r[0]),le.fromArray(r[1]),Se.fromArray(r[2]),de.sub(_t,le,lt),de.sub(gt,Se,le);var a=_t.len(),n=gt.len();if(!(a<.001||n<.001)){_t.scale(1/a),gt.scale(1/n);var i=_t.dot(t),o=Math.cos(e);if(i<o){var s=Wi(le.x,le.y,Se.x,Se.y,lt.x,lt.y,Ui,!1);Ye.fromArray(Ui);var l=Math.PI/2,u=Math.acos(gt.dot(t)),f=l+u-e;if(f>=l)de.copy(Ye,Se);else{Ye.scaleAndAdd(gt,s/Math.tan(Math.PI/2-f));var c=Se.x!==le.x?(Ye.x-le.x)/(Se.x-le.x):(Ye.y-le.y)/(Se.y-le.y);if(isNaN(c))return;c<0?de.copy(Ye,le):c>1&&de.copy(Ye,Se)}Ye.toArray(r[1])}}}}function $o(r,t,e,a){var n=e==="normal",i=n?r:r.ensureState(e);i.ignore=t;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function kb(r,t){var e=t.smooth,a=t.points;if(a)if(r.moveTo(a[0][0],a[0][1]),e>0&&a.length>=3){var n=Ru(a[0],a[1]),i=Ru(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*e,s=bo([],a[1],a[0],o/n),l=bo([],a[1],a[2],o/i),u=bo([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f<a.length;f++)r.lineTo(a[f][0],a[f][1])}function Kp(r,t,e){var a=r.getTextGuideLine(),n=r.getTextContent();if(!n){a&&r.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=n.ignore,l=0;l<wi.length;l++){var u=wi[l],f=t[u],c=u==="normal";if(f){var h=f.get("show"),v=c?s:J(n.states[u]&&n.states[u].ignore,s);if(v||!J(h,o)){var d=c?a:a&&a.states[u];d&&(d.ignore=!0),a&&$o(a,!0,u,f);continue}a||(a=new or,r.setTextGuideLine(a),!c&&(s||!o)&&$o(a,!0,"normal",t.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),$o(a,!1,u,f)}}if(a){ae(a.style,e),a.style.fill=null;var p=i.get("showAbove"),y=r.textGuideLineConfig=r.textGuideLineConfig||{};y.showAbove=p||!1,a.buildPath=kb}}function qp(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},a=0;a<tt.length;a++){var n=tt[a];e[n]=r.getModel([n,t])}return e}var pc=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],Rb=1,Yi=2,jp=Rb|Yi;function Zi(r,t,e){e=e||jp,t?r.dirty|=e:r.dirty&=~e}function Qp(r,t){return t=t||jp,r.dirty==null||!!(r.dirty&t)}function nr(r){if(r)return Qp(r)&&Jp(r,r.label,r),r}function Jp(r,t,e){var a=t.getComputedTransform();r.transform=Fl(r.transform,a);var n=r.localRect=hn(r.localRect,t.getBoundingRect()),i=t.style,o=i.margin,s=e&&e.marginForce,l=e&&e.minMarginForce,u=e&&e.marginDefault,f=i.__marginType;f==null&&u&&(o=u,f=Jr.textMargin);for(var c=0;c<4;c++)Ko[c]=f===Jr.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===Jr.textMargin&&vn(n,Ko,!1,!1);var h=r.rect=hn(r.rect,n);return a&&h.applyTransform(a),f===Jr.minMargin&&vn(h,Ko,!1,!1),r.axisAligned=zl(a),(r.label=r.label||{}).ignore=t.ignore,Zi(r,!1),Zi(r,!0,Yi),r}var Ko=[0,0,0,0];function Eb(r,t,e){return r.transform=Fl(r.transform,e),r.localRect=hn(r.localRect,t),r.rect=hn(r.rect,t),e&&r.rect.applyTransform(e),r.axisAligned=zl(e),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function Ob(r,t){if(r){r.label.x+=t.x,r.label.y+=t.y,r.label.markRedraw();var e=r.transform;e&&(e[4]+=t.x,e[5]+=t.y);var a=r.rect;a&&(a.x+=t.x,a.y+=t.y);var n=r.obb;n&&n.fromBoundingRect(r.localRect,e)}}function nl(r,t){for(var e=0;e<pc.length;e++){var a=pc[e];r[a]==null&&(r[a]=t[a])}return nr(r)}function gc(r){var t=r.obb;return(!t||Qp(r,Yi))&&(r.obb=t=t||new sh,t.fromBoundingRect(r.localRect,r.transform),Zi(r,!1,Yi)),t}function il(r,t,e,a,n){var i=r.length,o=$t[t],s=sa[t];if(i<2)return!1;r.sort(function(C,T){return C.rect[o]-T.rect[o]});for(var l=0,u,f=!1,c=0;c<i;c++){var h=r[c],v=h.rect;u=v[o]-l,u<0&&(v[o]-=u,h.label[o]-=u,f=!0),l=v[o]+v[s]}var d=r[0],p=r[i-1],y,g;m(),y<0&&b(-y,.8),g<0&&b(g,.8),m(),_(y,g,1),_(g,y,-1),m(),y<0&&x(-y),g<0&&x(g);function m(){y=d.rect[o]-e,g=a-p.rect[o]-p.rect[s]}function _(C,T,D){if(C<0){var A=Math.min(T,-C);if(A>0){S(A*D,0,i);var M=A+C;M<0&&b(-M*D,1)}else b(-C*D,1)}}function S(C,T,D){C!==0&&(f=!0);for(var A=T;A<D;A++){var M=r[A],P=M.rect;P[o]+=C,M.label[o]+=C}}function b(C,T){for(var D=[],A=0,M=1;M<i;M++){var P=r[M-1].rect,L=Math.max(r[M].rect[o]-P[o]-P[s],0);D.push(L),A+=L}if(A){var E=Math.min(Math.abs(C)/A,T);if(C>0)for(var M=0;M<i-1;M++){var I=D[M]*E;S(I,0,M+1)}else for(var M=i-1;M>0;M--){var I=D[M-1]*E;S(-I,M,i)}}}function x(C){var T=C<0?-1:1;C=Math.abs(C);for(var D=Math.ceil(C/(i-1)),A=0;A<i-1;A++)if(T>0?S(D,0,A+1):S(-D,i-A-1,i),C-=D,C<=0)return}return f}function Bb(r){for(var t=0;t<r.length;t++){var e=r[t],a=e.defaultAttr,n=e.labelLine;e.label.attr("ignore",a.ignore),n&&n.attr("ignore",a.labelGuideIgnore)}}function eg(r){var t=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function e(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var a=0;a<r.length;a++){var n=nr(r[a]);if(!n.label.ignore){for(var i=n.label,o=n.labelLine,s=!1,l=0;l<t.length;l++)if(gu(n,t[l],null,{touchThreshold:.05})){s=!0;break}s?(e(i),o&&e(o)):t.push(n)}}}function gu(r,t,e,a){return!r||!t||r.label&&r.label.ignore||t.label&&t.label.ignore||!r.rect.intersect(t.rect,e,a)?!1:r.axisAligned&&t.axisAligned?!0:gc(r).intersect(gc(t),e,a)}function Nb(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function Vb(r,t){var e=r.label,a=t&&t.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:Nb(a&&a.shape.points)}}var yc=["align","verticalAlign","width","height","fontSize"],Ue=new th,qo=ie(),zb=ie();function jn(r,t,e){for(var a=0;a<e.length;a++){var n=e[a];t[n]!=null&&(r[n]=t[n])}}var Qn=["x","y","rotation"],Fb=(function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,a,n,i){var o=n.style,s=n.__hostTarget,l=s.textConfig||{},u=n.getComputedTransform(),f=n.getBoundingRect().plain();Ve.applyTransform(f,f,u),u?Ue.setLocalTransform(u):(Ue.x=Ue.y=Ue.rotation=Ue.originX=Ue.originY=0,Ue.scaleX=Ue.scaleY=1),Ue.rotation=Ga(Ue.rotation);var c=n.__hostTarget,h;if(c){h=c.getBoundingRect().plain();var v=c.getComputedTransform();Ve.applyTransform(h,h,v)}var d=h&&c.getTextGuideLine();this._labelList.push({label:n,labelLine:d,seriesModel:a,dataIndex:t,dataType:e,layoutOptionOrCb:i,layoutOption:null,rect:f,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:d&&d.ignore,x:Ue.x,y:Ue.y,scaleX:Ue.scaleX,scaleY:Ue.scaleY,rotation:Ue.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var a=t.__model,n=a.get("labelLayout");(j(n)||Ie(n).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=te(i);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,a,o,n)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),a=t.getHeight();function n(_,S){return function(){dc(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;j(o.layoutOptionOrCb)?f=o.layoutOptionOrCb(Vb(o,l)):f=o.layoutOptionOrCb,f=f||{},o.layoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var h=!1;if(f.x!=null?(s.x=ne(f.x,e),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=ne(f.y,a),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:f.labelLinePoints}),h=!1)}var d=qo(s);d.needsUpdateLabelLine=h,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<yc.length;p++){var y=yc[p];s.setStyle(y,f[y]!=null?f[y]:u.style[y])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var g=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);g=m.getItemModel(o.dataIndex)}s.on("drag",n(l,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),a=t.getHeight(),n=[];w(this._labelList,function(l){l.defaultAttr.ignore||n.push(nl({},l))});var i=Me(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Me(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});il(i,0,0,e),il(o,1,0,a);var s=Me(n,function(l){return l.layoutOption.hideOverlap});Bb(s),eg(s)},r.prototype.processLabelsOverall=function(){var t=this;w(this._chartViewList,function(e){var a=e.__model,n=e.ignoreLabelLineUpdate,i=a.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,l=o.getTextContent();!s&&l&&(s=qo(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,a),i&&t._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(t,e){var a=t.getTextContent(),n=te(t),i=n.dataIndex;if(a&&i!=null){var o=e.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var c=s.getModel("labelLine");Kp(t,qp(s),l),dc(t,c)}},r.prototype._animateLabels=function(t,e){var a=t.getTextContent(),n=t.getTextGuideLine();if(a&&(t.forceLabelAnimation||!a.ignore&&!a.invisible&&!t.disableLabelAnimation&&!ra(t))){var i=qo(a),o=i.oldLayout,s=te(t),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},f=e.getData(s.dataType);if(o){a.attr(o);var h=t.prevStates;h&&(ue(h,"select")>=0&&a.attr(i.oldLayoutSelect),ue(h,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),De(a,u,e,l)}else if(a.attr(u),!ga(a).valueAnimation){var c=J(a.style.opacity,1);a.style.opacity=0,Ee(a,{style:{opacity:c}},e,l)}if(i.oldLayout=u,a.states.select){var v=i.oldLayoutSelect={};jn(v,u,Qn),jn(v,a.states.select,Qn)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};jn(d,u,Qn),jn(d,a.states.emphasis,Qn)}a0(a,l,f,e,e)}if(n&&!n.ignore&&!n.invisible){var i=zb(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),De(n,{shape:p},e)):(n.setShape(p),n.style.strokePercent=0,Ee(n,{style:{strokePercent:1}},e)),i.oldLayout=p}},r})(),jo=ie();function Gb(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=jo(e).labelManager;n||(n=jo(e).labelManager=new Fb),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=jo(e).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}function Hb(r){r.registerPainter("canvas",Ly)}var Wb=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return In(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var a=new pe,n=at("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);a.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=e.itemHeight*.8,u=at(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);a.add(u),u.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=O.color.neutral00,u.style.lineWidth=2),a},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(Ge);function Sn(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var n=la(r,t,e[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<e.length;o++)i.push(la(r,t,e[o]));return i.join(" ")}}function tg(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!z(t))return t+"";for(var a=[],n=0;n<e.length;n++){var i=r.getDimensionIndex(e[n]);i>=0&&a.push(t[i])}return a.join(" ")}var yu=(function(r){W(t,r);function t(e,a,n,i){var o=r.call(this)||this;return o.updateData(e,a,n,i),o}return t.prototype._createSymbol=function(e,a,n,i,o,s){this.removeAll();var l=at(e,-1,-1,2,2,null,s);l.attr({z2:J(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=Ub,this._symbolType=e,this.add(l)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ti(this.childAt(0))},t.prototype.downplay=function(){Di(this.childAt(0))},t.prototype.setZ=function(e,a){var n=this.childAt(0);n.zlevel=e,n.z=a},t.prototype.setDraggable=function(e,a){var n=this.childAt(0);n.draggable=e,n.cursor=!a&&e?"move":n.cursor},t.prototype.updateData=function(e,a,n,i){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,a),u=t.getSymbolZ2(e,a),f=o!==this._symbolType,c=i&&i.disableAnimation;if(f){var h=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,l,u,h)}else{var v=this.childAt(0);v.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?v.attr(d):De(v,d,s,a),un(v)}if(this._updateCommon(e,a,l,n,i),f){var v=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Ee(v,d,s,a)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,a,n,i,o){var s=this.childAt(0),l=e.hostModel,u,f,c,h,v,d,p,y,g;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,y=i.hoverScale,g=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var m=i&&i.itemModel?i.itemModel:e.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=rr(m),y=_.getShallow("scale"),g=m.getShallow("cursor")}var S=e.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=Kd(e.getItemVisual(a,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var x=e.getItemVisual(a,"style"),C=x.fill;if(s instanceof Et){var T=s.style;s.useStyle(U({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(U({},x)):s.useStyle(x),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=e.getItemVisual(a,"liftZ"),A=this._z2;D!=null?A==null&&(this._z2=s.z2,s.z2+=D):A!=null&&(s.z2=A,this._z2=null);var M=o&&o.useNameLabel;kr(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:P,inheritColor:C,defaultOpacity:x.opacity});function P(I){return M?e.getName(I):Sn(e,I)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var E=y==null||y===!0?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;L.scaleX=this._sizeX*E,L.scaleY=this._sizeY*E,this.setSymbolScale(1),tr(this,h,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,n){var i=this.childAt(0),o=te(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&Li(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Li(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return $d(e.getItemVisual(a,"symbolSize"))},t.getSymbolZ2=function(e,a){return e.getItemVisual(a,"z2")},t})(pe);function Ub(r,t){this.parent.drift(r,t)}function Qo(r,t,e,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a.isIgnore&&a.isIgnore(e))&&!(a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function mc(r){return r!=null&&!K(r)&&(r={isIgnore:r}),r||{}}function _c(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:rr(t),cursorStyle:t.get("cursor")}}var Yb=(function(){function r(t){this.group=new pe,this._SymbolCtor=t||yu}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=mc(e);var a=this.group,n=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=_c(t),u={disableAnimation:s},f=e.getSymbolPoint||function(c){return t.getItemLayout(c)};i||a.removeAll(),t.diff(i).add(function(c){var h=f(c);if(Qo(t,h,c,e)){var v=new o(t,c,l,u);v.setPosition(h),t.setItemGraphicEl(c,v),a.add(v)}}).update(function(c,h){var v=i.getItemGraphicEl(h),d=f(c);if(!Qo(t,d,c,e)){a.remove(v);return}var p=t.getItemVisual(c,"symbol")||"circle",y=v&&v.getSymbolType&&v.getSymbolType();if(!v||y&&y!==p)a.remove(v),v=new o(t,c,l,u),v.setPosition(d);else{v.updateData(t,c,l,u);var g={x:d[0],y:d[1]};s?v.attr(g):De(v,g,n)}a.add(v),t.setItemGraphicEl(c,v)}).remove(function(c){var h=i.getItemGraphicEl(c);h&&h.fadeOut(function(){a.remove(h)},n)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(a,n){var i=t._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=_c(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=mc(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(Qo(e,o,i,a)){var s=new this._SymbolCtor(e,i,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){pa(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,a=this._data;a&&t?a.eachItemGraphicEl(function(n){n.fadeOut(function(){e.remove(n)},a.hostModel)}):e.removeAll()},r})();function rg(r,t,e){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=Zb(n,e),o=a.dim,s=n.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=X(r.dimensions,function(d){return t.mapDimension(d)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return ua(t,c[0])&&(h=!0,c[0]=v),ua(t,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Zb(r,t){var e=0,a=r.scale.getExtent();return t==="start"?e=a[0]:t==="end"?e=a[1]:ve(t)&&!isNaN(t)?e=t:a[0]>0?e=a[0]:a[1]<0&&(e=a[1]),e}function ag(r,t,e,a){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,a),o[1-i]=n,t.dataToPoint(o)}function Xb(r,t){var e=[];return t.diff(r).add(function(a){e.push({cmd:"+",idx:a})}).update(function(a,n){e.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){e.push({cmd:"-",idx:a})}).execute(),e}function $b(r,t,e,a,n,i,o,s){for(var l=Xb(r,t),u=[],f=[],c=[],h=[],v=[],d=[],p=[],y=rg(n,t,o),g=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,x=void 0,C=void 0;switch(S.cmd){case"=":x=S.idx*2,C=S.idx1*2;var T=g[x],D=g[x+1],A=m[C],M=m[C+1];(isNaN(T)||isNaN(D))&&(T=A,D=M),u.push(T,D),f.push(A,M),c.push(e[x],e[x+1]),h.push(a[C],a[C+1]),p.push(t.getRawIndex(S.idx1));break;case"+":var P=S.idx,L=y.dataDimsForPoint,E=n.dataToPoint([t.get(L[0],P),t.get(L[1],P)]);C=P*2,u.push(E[0],E[1]),f.push(m[C],m[C+1]);var I=ag(y,n,t,P);c.push(I[0],I[1]),h.push(a[C],a[C+1]),p.push(t.getRawIndex(P));break;case"-":b=!1}b&&(v.push(S),d.push(d.length))}d.sort(function(we,Nt){return p[we]-p[Nt]});for(var k=u.length,N=At(k),R=At(k),B=At(k),V=At(k),G=[],_=0;_<d.length;_++){var Y=d[_],Q=_*2,ge=Y*2;N[Q]=u[ge],N[Q+1]=u[ge+1],R[Q]=f[ge],R[Q+1]=f[ge+1],B[Q]=c[ge],B[Q+1]=c[ge+1],V[Q]=h[ge],V[Q+1]=h[ge+1],G[_]=v[Y]}return{current:N,next:R,stackedOnCurrent:B,stackedOnNext:V,status:G}}var Ut=Math.min,Yt=Math.max;function Cr(r,t){return isNaN(r)||isNaN(t)}function ol(r,t,e,a,n,i,o,s,l){for(var u,f,c,h,v,d,p=e,y=0;y<a;y++){var g=t[p*2],m=t[p*2+1];if(p>=n||p<0)break;if(Cr(g,m)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](g,m),c=g,h=m;else{var _=g-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=t[b*2],C=t[b*2+1];x===g&&C===m&&y<a;)y++,b+=i,p+=i,x=t[b*2],C=t[b*2+1],g=t[p*2],m=t[p*2+1],_=g-u,S=m-f;var T=y+1;if(l)for(;Cr(x,C)&&T<a;)T++,b+=i,x=t[b*2],C=t[b*2+1];var D=.5,A=0,M=0,P=void 0,L=void 0;if(T>=a||Cr(x,C))v=g,d=m;else{A=x-u,M=C-f;var E=g-u,I=x-g,k=m-f,N=C-m,R=void 0,B=void 0;if(s==="x"){R=Math.abs(E),B=Math.abs(I);var V=A>0?1:-1;v=g-V*R*o,d=m,P=g+V*B*o,L=m}else if(s==="y"){R=Math.abs(k),B=Math.abs(N);var G=M>0?1:-1;v=g,d=m-G*R*o,P=g,L=m+G*B*o}else R=Math.sqrt(E*E+k*k),B=Math.sqrt(I*I+N*N),D=B/(B+R),v=g-A*o*(1-D),d=m-M*o*(1-D),P=g+A*o*D,L=m+M*o*D,P=Ut(P,Yt(x,g)),L=Ut(L,Yt(C,m)),P=Yt(P,Ut(x,g)),L=Yt(L,Ut(C,m)),A=P-g,M=L-m,v=g-A*R/B,d=m-M*R/B,v=Ut(v,Yt(u,g)),d=Ut(d,Yt(f,m)),v=Yt(v,Ut(u,g)),d=Yt(d,Ut(f,m)),A=g-v,M=m-d,P=g+A*B/R,L=m+M*B/R}r.bezierCurveTo(c,h,v,d,g,m),c=P,h=L}else r.lineTo(g,m)}u=g,f=m,p+=i}return y}var ng=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),Kb=(function(r){W(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polyline",a}return t.prototype.getDefaultStyle=function(){return{stroke:O.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new ng},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&Cr(n[o*2-2],n[o*2-1]);o--);for(;i<o&&Cr(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=ol(e,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},t.prototype.getPointOn=function(e,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,i=n.data,o=fh.CMD,s,l,u=a==="x",f=[],c=0;c<i.length;){var h=i[c++],v=void 0,d=void 0,p=void 0,y=void 0,g=void 0,m=void 0,_=void 0;switch(h){case o.M:s=i[c++],l=i[c++];break;case o.L:if(v=i[c++],d=i[c++],_=u?(e-s)/(v-s):(e-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=i[c++],d=i[c++],p=i[c++],y=i[c++],g=i[c++],m=i[c++];var b=u?Eu(s,v,p,g,e,f):Eu(l,d,y,m,e,f);if(b>0)for(var x=0;x<b;x++){var C=f[x];if(C<=1&&C>=0){var S=u?Ou(l,d,y,m,C):Ou(s,v,p,g,C);return u?[e,S]:[S,e]}}s=g,l=m;break}}},t})(We),qb=(function(r){W(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(ng),jb=(function(r){W(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polygon",a}return t.prototype.getDefaultShape=function(){return new qb},t.prototype.buildPath=function(e,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&Cr(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Cr(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=ol(e,n,o,s,s,1,a.smooth,l,a.connectNulls);ol(e,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,e.closePath()}},t})(We);function ig(r,t,e,a,n){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=e.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new se({shape:{x:o,y:s,width:l,height:u}});if(t){var h=r.getBaseAxis(),v=h.isHorizontal(),d=h.inverse;v?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var p=j(n)?function(y){n(y,c)}:null;Ee(c,{shape:{width:l,height:u,x:o,y:s}},e,null,a,p)}return c}function og(r,t,e){var a=r.getArea(),n=Re(a.r0,1),i=Re(a.r,1),o=new Ir({shape:{cx:Re(r.cx,1),cy:Re(r.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=n,Ee(o,{shape:{endAngle:a.endAngle,r:i}},e)}return o}function sg(r,t,e,a,n){if(r){if(r.type==="polar")return og(r,t,e);if(r.type==="cartesian2d")return ig(r,t,e,a,n)}else return null;return null}function xn(r,t){return r.type===t}function Sc(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function xc(r){for(var t=1/0,e=1/0,a=-1/0,n=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(t=Math.min(o,t),a=Math.max(o,a)),isNaN(s)||(e=Math.min(s,e),n=Math.max(s,n))}return[[t,e],[a,n]]}function bc(r,t){var e=xc(r),a=e[0],n=e[1],i=xc(t),o=i[0],s=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(a[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function wc(r){return ve(r)?r:r?.5:0}function Qb(r,t,e){if(!e.valueDim)return[];for(var a=t.count(),n=At(a*2),i=0;i<a;i++){var o=ag(e,r,t,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function Zt(r,t,e,a,n){var i=e.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],h=[];if(n){for(l=0;l<r.length;l+=2){var v=t||r;!isNaN(v[l])&&!isNaN(v[l+1])&&h.push(r[l],r[l+1])}r=h}for(l=0;l<r.length-2;l+=2)switch(c[0]=r[l+2],c[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),a){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+c[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=c[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function Jb(r,t){var e=[],a=r.length,n,i;function o(f,c,h){var v=f.coord,d=(h-v)/(c.coord-v),p=Iy(d,[f.color,c.color]);return{coord:h,color:p}}for(var s=0;s<a;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>t){i?e.push(o(i,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),i=l}return e}function ew(r,t,e){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&t.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=t.getAxis(n),u=X(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=Jb(u,n==="x"?e.getWidth():e.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=h[0].coord-d,y=h[v-1].coord+d,g=y-p;if(g<.001)return"transparent";w(h,function(_){_.offset=(_.coord-p)/g}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var m=new Cl(0,0,0,0,h,!0);return m[n]=p,m[n+"2"]=y,m}}}function tw(r,t,e){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(n&&rw(i,t))){var o=t.mapDimension(i.dim),s={};return w(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function rw(r,t){var e=r.getExtent(),a=Math.abs(e[1]-e[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=t.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if(yu.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function aw(r,t){return isNaN(r)||isNaN(t)}function nw(r){for(var t=r.length/2;t>0&&aw(r[t*2-2],r[t*2-1]);t--);return t-1}function Cc(r,t){return[r[t*2],r[t*2+1]]}function iw(r,t,e){for(var a=r.length/2,n=e==="x"?0:1,i,o,s=0,l=-1,u=0;u<a;u++)if(o=r[u*2+n],!(isNaN(o)||isNaN(r[u*2+1-n]))){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function lg(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<tt.length;t++)if(r.get([tt[t],"endLabel","show"]))return!0;return!1}function Jo(r,t,e,a){if(xn(t,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=lg(a)?function(v,d){r._endLabelOnDuring(v,d,o,s,i,n,t)}:null,u=t.getBaseAxis().isHorizontal(),f=ig(t,e,a,function(){var v=r._endLabel;v&&e&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var c=f.shape,h=Math.max(c.width,c.height);u?(c.y-=h,c.height+=h*2):(c.x-=h,c.width+=h*2)}return l&&l(1,f),f}else return og(t,e,a)}function ow(r,t){var e=t.getBaseAxis(),a=e.isHorizontal(),n=e.inverse,i=a?n?"right":"left":"center",o=a?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var sw=(function(r){W(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new pe,a=new Yb;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=e,this._changePolyState=Z(this._changePolyState,this)},t.prototype.render=function(e,a,n){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),f=s.getLayout("points")||[],c=i.type==="polar",h=this._coordSys,v=this._symbolDraw,d=this._polyline,p=this._polygon,y=this._lineGroup,g=!a.ssr&&e.get("animation"),m=!u.isEmpty(),_=u.get("origin"),S=rg(i,s,_),b=m&&Qb(i,s,S),x=e.get("showSymbol"),C=e.get("connectNulls"),T=x&&!c&&tw(e,s,i),D=this._data;D&&D.eachItemGraphicEl(function(we,Nt){we.__temp&&(o.remove(we),D.setItemGraphicEl(Nt,null))}),x||v.remove(),o.add(y);var A=c?!1:e.get("step"),M;i&&i.getArea&&e.get("clip",!0)&&(M=i.getArea(),M.width!=null?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var P=ew(s,i,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&h.type===i.type&&A===this._step))x&&v.updateData(s,{isIgnore:T,clipShape:M,disableAnimation:!0,getSymbolPoint:function(we){return[f[we*2],f[we*2+1]]}}),g&&this._initSymbolLabelAnimation(s,i,M),A&&(b&&(b=Zt(b,f,i,A,C)),f=Zt(f,null,i,A,C)),d=this._newPolyline(f),m?p=this._newPolygon(f,b):p&&(y.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,i,Ar(P)),y.setClipPath(Jo(this,i,!0,e));else{m&&!p?p=this._newPolygon(f,b):p&&!m&&(y.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,i,Ar(P));var L=y.getClipPath();if(L){var E=Jo(this,i,!1,e);Ee(L,{shape:E.shape},e)}else y.setClipPath(Jo(this,i,!0,e));x&&v.updateData(s,{isIgnore:T,clipShape:M,disableAnimation:!0,getSymbolPoint:function(we){return[f[we*2],f[we*2+1]]}}),(!Sc(this._stackedOnPoints,b)||!Sc(this._points,f))&&(g?this._doUpdateAnimation(s,b,i,n,A,_,C):(A&&(b&&(b=Zt(b,f,i,A,C)),f=Zt(f,null,i,A,C)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:b})))}var I=e.getModel("emphasis"),k=I.get("focus"),N=I.get("blurScope"),R=I.get("disabled");if(d.useStyle(ae(l.getLineStyle(),{fill:"none",stroke:P,lineJoin:"bevel"})),oa(d,e,"lineStyle"),d.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var B=d.getState("emphasis").style;B.lineWidth=+d.style.lineWidth+1}te(d).seriesIndex=e.seriesIndex,tr(d,k,N,R);var V=wc(e.get("smooth")),G=e.get("smoothMonotone");if(d.setShape({smooth:V,smoothMonotone:G,connectNulls:C}),p){var Y=s.getCalculationInfo("stackedOnSeries"),Q=0;p.useStyle(ae(u.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Y&&(Q=wc(Y.get("smooth"))),p.setShape({smooth:V,stackedOnSmooth:Q,smoothMonotone:G,connectNulls:C}),oa(p,e,"areaStyle"),te(p).seriesIndex=e.seriesIndex,tr(p,k,N,R)}var ge=this._changePolyState;s.eachItemGraphicEl(function(we){we&&(we.onHoverStateChange=ge)}),this._polyline.onHoverStateChange=ge,this._data=s,this._coordSys=i,this._stackedOnPoints=b,this._points=f,this._step=A,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,a){te(a).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,a,n,i){var o=e.getData(),s=Dr(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=e.get("zlevel")||0,v=e.get("z")||0;u=new yu(o,s),u.x=f,u.y=c,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Oe.prototype.highlight.call(this,e,a,n,i)},t.prototype.downplay=function(e,a,n,i){var o=e.getData(),s=Dr(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Oe.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;Xu(this._polyline,e),a&&Xu(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new Kb({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},t.prototype._newPolygon=function(e,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new jb({shape:{points:e,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");j(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=j(c)?c(null):c;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var y=[v.x,v.y],g=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,b=a.pointToCoord(y);i?(g=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(g=S.r0,m=S.r,_=b[0])}else{var x=n;i?(g=x.x,m=x.x+x.width,_=v.x):(g=x.y+x.height,m=x.y,_=v.y)}var C=m===g?0:(_-g)/(m-g);l&&(C=1-C);var T=j(c)?c(d):f*C+h,D=p.getSymbolPath(),A=D.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:T}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,n){var i=e.getModel("endLabel");if(lg(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new he({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=nw(l);f>=0&&(kr(s,rr(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?tg(o,v):Sn(o,c)},enableTextSetter:!0},ow(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=n.getLayout("points"),h=n.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,y=l.getBaseAxis(),g=y.isHorizontal(),m=y.inverse,_=a.shape,S=m?g?_.x:_.y+_.height:g?_.x+_.width:_.y,b=(g?p:0)*(m?-1:1),x=(g?0:-p)*(m?-1:1),C=g?"x":"y",T=iw(c,S,C),D=T.range,A=D[1]-D[0],M=void 0;if(A>=1){if(A>1&&!v){var P=Cc(c,D[0]);u.attr({x:P[0]+b,y:P[1]+x}),o&&(M=h.getRawValue(D[0]))}else{var P=f.getPointOn(S,C);P&&u.attr({x:P[0]+b,y:P[1]+x});var L=h.getRawValue(D[0]),E=h.getRawValue(D[1]);o&&(M=Mh(n,d,L,E,T.t))}i.lastFrameIndex=D[0]}else{var I=e===1||i.lastFrameIndex>0?D[0]:0,P=Cc(c,I);o&&(M=h.getRawValue(I)),u.attr({x:P[0]+b,y:P[1]+x})}if(o){var k=ga(u);typeof k.setLabelText=="function"&&k.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,c=e.hostModel,h=$b(this._data,e,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,y=h.stackedOnNext;if(o&&(d=Zt(h.stackedOnCurrent,h.current,n,o,l),v=Zt(h.current,null,n,o,l),y=Zt(h.stackedOnNext,h.next,n,o,l),p=Zt(h.next,null,n,o,l)),bc(v,p)>3e3||f&&bc(d,y)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:y}));return}u.shape.__points=h.current,u.shape.points=v;var g={shape:{points:p}};h.current!==v&&(g.shape.__points=h.next),u.stopAnimation(),De(u,g,c),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),De(f,{shape:{stackedOnPoints:y}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=h.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var C=u.shape.__points,T=0;T<m.length;T++){var D=m[T].el,A=m[T].ptIdx*2;D.x=C[A],D.y=C[A+1],D.markRedraw()}})},t.prototype.remove=function(e){var a=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(i,o){i.__temp&&(a.remove(i),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(Oe);function lw(r,t){return{seriesType:r,plan:nu(),reset:function(e){var a=e.getData(),n=e.coordinateSystem;if(e.pipelineContext,!!n){var i=X(n.dimensions,function(c){return a.mapDimension(c)}).slice(0,2),o=i.length,s=a.getCalculationInfo("stackResultDimension");ua(a,i[0])&&(i[0]=s),ua(a,i[1])&&(i[1]=s);var l=a.getStore(),u=a.getDimensionIndex(i[0]),f=a.getDimensionIndex(i[1]);return o&&{progress:function(c,h){for(var v=c.end-c.start,d=At(v*o),p=[],y=[],g=c.start,m=0;g<c.end;g++){var _=void 0;if(o===1){var S=l.get(u,g);_=n.dataToPoint(S,null,y)}else p[0]=l.get(u,g),p[1]=l.get(f,g),_=n.dataToPoint(p,null,y);d[m++]=_[0],d[m++]=_[1]}h.setLayout("points",d)}}}}}}var uw={average:function(r){for(var t=0,e=0,a=0;a<r.length;a++)isNaN(r[a])||(t+=r[a],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},fw=function(r){return Math.round(r.length/2)};function ug(r){return{seriesType:r,reset:function(t,e,a){var n=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=a.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/v)):i==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/v));var d=void 0;$(i)?d=uw[i]:j(i)&&(d=i),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/v,d,fw))}}}}}function qT(r){r.registerChartView(sw),r.registerSeriesModel(Wb),r.registerLayout(lw("line")),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),a=t.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,ug("line"))}var sl=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return In(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(n)w(i.getAxes(),function(h,v){if(h.type==="category"&&a!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),y=o[v],g=a[v]==="x1"||a[v]==="y1";if(g&&!p&&(y+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[g?1:0]);return}for(var m=void 0,_=void 0,S=1,b=0;b<d.length;b++){var x=d[b].coord,C=b===d.length-1?d[b-1].tickValue+S:d[b].tickValue;if(C===y){_=x;break}else if(C<y)m=x;else if(m!=null&&C>y){_=(x+m)/2;break}b===1&&(S=C-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},t})(Ge);Ge.registerClass(sl);var cw=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return In(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>e&&(e=a),e},t.prototype.brushSelector=function(e,a,n){return n.rect(a.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=ya(sl.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:O.color.primary,borderWidth:2}},realtimeSort:!1}),t})(sl),vw=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),Mc=(function(r){W(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new vw},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,f=a.startAngle,c=a.endAngle,h=a.clockwise,v=Math.PI*2,d=h?c-f<v:f-c<v;d||(f=c-(h?v:-v));var p=Math.cos(f),y=Math.sin(f),g=Math.cos(c),m=Math.sin(c);d?(e.moveTo(p*o+n,y*o+i),e.arc(p*u+n,y*u+i,l,-Math.PI+f,f,!h)):e.moveTo(p*s+n,y*s+i),e.arc(n,i,s,f,c,!h),e.arc(g*u+n,m*u+i,l,c-Math.PI*2,c-Math.PI,!h),o!==0&&e.arc(n,i,o,c,f,h)},t})(We);function hw(r,t){t=t||{};var e=t.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return ws(a,n,i);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,f=u.cx,c=u.cy,h=u.r,v=u.r0,d=(h+v)/2,p=u.startAngle,y=u.endAngle,g=(p+y)/2,m=e?Math.abs(h-v)/2:0,_=Math.cos,S=Math.sin,b=f+h*_(p),x=c+h*S(p),C="left",T="top";switch(s){case"startArc":b=f+(v-l)*_(g),x=c+(v-l)*S(g),C="center",T="top";break;case"insideStartArc":b=f+(v+l)*_(g),x=c+(v+l)*S(g),C="center",T="bottom";break;case"startAngle":b=f+d*_(p)+Jn(p,l+m,!1),x=c+d*S(p)+ei(p,l+m,!1),C="right",T="middle";break;case"insideStartAngle":b=f+d*_(p)+Jn(p,-l+m,!1),x=c+d*S(p)+ei(p,-l+m,!1),C="left",T="middle";break;case"middle":b=f+d*_(g),x=c+d*S(g),C="center",T="middle";break;case"endArc":b=f+(h+l)*_(g),x=c+(h+l)*S(g),C="center",T="bottom";break;case"insideEndArc":b=f+(h-l)*_(g),x=c+(h-l)*S(g),C="center",T="top";break;case"endAngle":b=f+d*_(y)+Jn(y,l+m,!0),x=c+d*S(y)+ei(y,l+m,!0),C="left",T="middle";break;case"insideEndAngle":b=f+d*_(y)+Jn(y,-l+m,!0),x=c+d*S(y)+ei(y,-l+m,!0),C="right",T="middle";break;default:return ws(a,n,i)}return a=a||{},a.x=b,a.y=x,a.align=C,a.verticalAlign=T,a}}function dw(r,t,e,a){if(ve(a)){r.setTextConfig({rotation:a});return}else if(z(t)){r.setTextConfig({rotation:0});return}var n=r.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+o)/2,l,u=e(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function Jn(r,t,e){return t*Math.sin(r)*(e?-1:1)}function ei(r,t,e){return t*Math.cos(r)*(e?1:-1)}function Ua(r,t,e){var a=r.get("borderRadius");if(a==null)return e?{cornerRadius:0}:null;z(a)||(a=[a,a,a,a]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:X(a,function(i){return rn(i,n)})}}var es=Math.max,ts=Math.min;function pw(r,t){var e=r.getArea&&r.getArea();if(xn(r,"cartesian2d")){var a=r.getBaseAxis();if(a.type!=="category"||!a.onBand){var n=t.getLayout("bandWidth");a.isHorizontal()?(e.x-=n,e.width+=n*2):(e.y-=n,e.height+=n*2)}}return e}var gw=(function(r){W(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,a,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,a,n):this._renderNormal(e,a,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,a){this._progressiveEls=[],this._incrementalRenderLarge(e,a)},t.prototype.eachRendered=function(e){pa(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e,a,n,i){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var h=e.isAnimationEnabled()?e:null,v=yw(e,u);v&&this._enableRealtimeSort(v,s,n);var d=e.get("clip",!0)||v,p=pw(u,s);o.removeClipPath();var y=e.get("roundCap",!0),g=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],b=this._backgroundEls,x=i&&i.isInitSort,C=i&&i.type==="changeAxisOrder";function T(M){var P=ti[u.type](s,M);if(!P)return null;var L=Cw(u,c,P);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[M]=L,L}s.diff(l).add(function(M){var P=s.getItemModel(M),L=ti[u.type](s,M,P);if(L&&(g&&T(M),!(!s.hasValue(M)||!Ic[u.type](L)))){var E=!1;d&&(E=Tc[u.type](p,L));var I=Dc[u.type](e,s,M,L,c,h,f.model,!1,y);v&&(I.forceLabelAnimation=!0),Pc(I,s,M,P,L,e,c,u.type==="polar"),x?I.attr({shape:L}):v?Ac(v,h,I,L,M,c,!1,!1):Ee(I,{shape:L},e,M),s.setItemGraphicEl(M,I),o.add(I),I.ignore=E}}).update(function(M,P){var L=s.getItemModel(M),E=ti[u.type](s,M,L);if(E){if(g){var I=void 0;b.length===0?I=T(P):(I=b[P],I.useStyle(m.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),S[M]=I);var k=ti[u.type](s,M),N=cg(c,k,u);De(I,{shape:N},h,M)}var R=l.getItemGraphicEl(P);if(!s.hasValue(M)||!Ic[u.type](E)){o.remove(R);return}var B=!1;d&&(B=Tc[u.type](p,E),B&&o.remove(R));var V=R&&(R.type==="sector"&&y||R.type==="sausage"&&!y);if(V&&(R&&$a(R,e,P),R=null),R?un(R):R=Dc[u.type](e,s,M,E,c,h,f.model,!0,y),v&&(R.forceLabelAnimation=!0),C){var G=R.getTextContent();if(G){var Y=ga(G);Y.prevValue!=null&&(Y.prevValue=Y.value)}}else Pc(R,s,M,L,E,e,c,u.type==="polar");x?R.attr({shape:E}):v?Ac(v,h,R,E,M,c,!0,C):De(R,{shape:E},e,M,null),s.setItemGraphicEl(M,R),R.ignore=B,o.add(R)}}).remove(function(M){var P=l.getItemGraphicEl(M);P&&$a(P,e,M)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new pe);D.removeAll();for(var A=0;A<S.length;++A)D.add(S[A]);o.add(D),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,a,n){this._clear(),Rc(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,a){this._removeBackground(),Rc(a,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var a=e.get("clip",!0)&&sg(e.coordinateSystem,!1,e),n=this.group;a?n.setClipPath(a):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,a,n){var i=this;if(a.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,e,n),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(a,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,a,n){var i=[];return e.each(e.mapDimension(a.dim),function(o,s){var l=n(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:X(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,a,n){for(var i=n.scale,o=e.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,i.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:a(e.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(e,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,a,n,i){if(this._isOrderChangedWithinSameData(e,a,n)){var o=this._dataSort(e,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,a,n){var i=a.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,a){this._clear(this._model),this._removeOnRenderedListener(a)},t.prototype.dispose=function(e,a){this._removeOnRenderedListener(a)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var a=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){$a(i,e,te(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(Oe),Tc={cartesian2d:function(r,t){var e=t.width<0?-1:1,a=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,i=r.y+r.height,o=es(t.x,r.x),s=ts(t.x+t.width,n),l=es(t.y,r.y),u=ts(t.y+t.height,i),f=s<o,c=u<l;return t.x=f&&o>n?s:o,t.y=c&&l>i?u:l,t.width=f?0:s-o,t.height=c?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}var n=ts(t.r,r.r),i=es(t.r0,r.r0);t.r=n,t.r0=i;var o=n-i<0;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}return o}},Dc={cartesian2d:function(r,t,e,a,n,i,o,s,l){var u=new se({shape:U({},a),z2:1});if(u.__dataIndex=e,u.name="item",i){var f=u.shape,c=n?"height":"width";f[c]=0}return u},polar:function(r,t,e,a,n,i,o,s,l){var u=!n&&l?Mc:Ir,f=new u({shape:a,z2:1});f.name="item";var c=fg(n);if(f.calculateTextPosition=hw(c,{isRoundCap:u===Mc}),i){var h=f.shape,v=n?"r":"endAngle",d={};h[v]=n?a.r0:a.startAngle,d[v]=a[v],(s?De:Ee)(f,{shape:d},i)}return f}};function yw(r,t){var e=r.get("realtimeSort",!0),a=t.getBaseAxis();if(e&&a.type==="category"&&t.type==="cartesian2d")return{baseAxis:a,otherAxis:t.getOtherAxis(a)}}function Ac(r,t,e,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?De:Ee)(e,{shape:l},t,n,null);var f=t?r.baseAxis.model:null;(o?De:Ee)(e,{shape:u},f,n)}function Lc(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var mw=["x","y","width","height"],_w=["cx","cy","r","startAngle","endAngle"],Ic={cartesian2d:function(r){return!Lc(r,mw)},polar:function(r){return!Lc(r,_w)}},ti={cartesian2d:function(r,t,e){var a=r.getItemLayout(t);if(!a)return null;var n=e?xw(e,a):0,i=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,t,e){var a=r.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function Sw(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function fg(r){return(function(t){var e=t?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+e;default:return a}}})(r)}function Pc(r,t,e,a,n,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var f=r.shape,c=Ua(a.getModel("itemStyle"),f,!0);U(f,c),r.setShape(f)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=a.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",d=rr(a);kr(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:Sn(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var y=a.get(["label","position"]);r.textConfig.inside=y==="middle"?!0:null,dw(r,y==="outside"?v:y,fg(o),a.get(["label","rotate"]))}r0(p,d,i.getRawValue(e),function(m){return tg(t,m)});var g=a.getModel(["emphasis"]);tr(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),oa(r,a),Sw(n)&&(r.style.fill="none",r.style.stroke="none",w(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function xw(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(a,n,i)}var bw=(function(){function r(){}return r})(),kc=(function(r){W(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new bw},t.prototype.buildPath=function(e,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[i]=u,l[o]=n[f+2],s[i]=n[f+i],s[o]=n[f+o],e.rect(s[0],s[1],l[0],l[1])},t})(We);function Rc(r,t,e,a){var n=r.getData(),i=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints");if(u){var f=new kc({shape:{points:u},incremental:!!a,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),e&&e.push(f)}var c=new kc({shape:{points:n.getLayout("largePoints")},incremental:!!a,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,t.add(c),c.useStyle(n.getVisual("style")),c.style.stroke=null,te(c).seriesIndex=r.seriesIndex,r.get("silent")||(c.on("mousedown",Ec),c.on("mousemove",Ec)),e&&e.push(c)}var Ec=iu(function(r){var t=this,e=ww(t,r.offsetX,r.offsetY);te(t).dataIndex=e>=0?e:null},30,!1);function ww(r,t,e){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=i.length/3;f<c;f++){var h=f*3;if(l[a]=u,l[n]=i[h+2],s[a]=i[h+a],s[n]=i[h+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function cg(r,t,e){if(xn(e,"cartesian2d")){var a=t,n=e.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=e.getArea(),i=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function Cw(r,t,e){var a=r.type==="polar"?Ir:se;return new a({shape:cg(t,e,r),silent:!0,z2:0})}function jT(r){r.registerChartView(gw),r.registerSeriesModel(cw),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,me(Yx,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Zx("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,ug("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var a=t.componentType||"series";e.eachComponent({mainType:a,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var Oc=Math.PI*2,ri=Math.PI/180;function Mw(r,t,e){t.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=N0(a,e),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=o.viewRect,h=-a.get("startAngle")*ri,v=a.get("endAngle"),d=a.get("padAngle")*ri;v=v==="auto"?h-Oc:-v*ri;var p=a.get("minAngle")*ri,y=p+d,g=0;n.each(i,function(N){!isNaN(N)&&g++});var m=n.getSum(i),_=Math.PI/(m||g)*2,S=a.get("clockwise"),b=a.get("roseType"),x=a.get("stillShowZeroSum"),C=n.getDataExtent(i);C[0]=0;var T=S?1:-1,D=[h,v],A=T*d/2;Py(D,!S),h=D[0],v=D[1];var M=vg(a);M.startAngle=h,M.endAngle=v,M.clockwise=S,M.cx=s,M.cy=l,M.r=u,M.r0=f;var P=Math.abs(v-h),L=P,E=0,I=h;if(n.setLayout({viewRect:c,r:u}),n.each(i,function(N,R){var B;if(isNaN(N)){n.setItemLayout(R,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:s,cy:l,r0:f,r:b?NaN:u});return}b!=="area"?B=m===0&&x?_:N*_:B=P/g,B<y?(B=y,L-=y):E+=N;var V=I+T*B,G=0,Y=0;d>B?(G=I+T*B/2,Y=G):(G=I+A,Y=V-A),n.setItemLayout(R,{angle:B,startAngle:G,endAngle:Y,clockwise:S,cx:s,cy:l,r0:f,r:b?ce(N,C,[f,u]):u}),I=V}),L<Oc&&g)if(L<=.001){var k=P/g;n.each(i,function(N,R){if(!isNaN(N)){var B=n.getItemLayout(R);B.angle=k;var V=0,G=0;k<d?(V=h+T*(R+1/2)*k,G=V):(V=h+T*R*k+A,G=h+T*(R+1)*k-A),B.startAngle=V,B.endAngle=G}})}else _=L/E,I=h,n.each(i,function(N,R){if(!isNaN(N)){var B=n.getItemLayout(R),V=B.angle===y?y:N*_,G=0,Y=0;V<d?(G=I+T*V/2,Y=G):(G=I+A,Y=I+T*V-A),B.startAngle=G,B.endAngle=Y,I+=T*V}})})}var vg=ie();function hg(r){return{seriesType:r,reset:function(t,e){var a=e.findComponents({mainType:"legend"});if(!(!a||!a.length)){var n=t.getData();n.filterSelf(function(i){for(var o=n.getName(i),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}var Tw=Math.PI/180;function Bc(r,t,e,a,n,i,o,s,l,u){if(r.length<2)return;function f(p){for(var y=p.rB,g=y*y,m=0;m<p.list.length;m++){var _=p.list[m],S=Math.abs(_.label.y-e),b=a+_.len,x=b*b,C=Math.sqrt(Math.abs((1-S*S/g)*x)),T=t+(C+_.len2)*n,D=T-_.label.x,A=_.targetTextWidth-D*n;dg(_,A,!0),_.label.x=T}}function c(p){for(var y={list:[],maxY:0},g={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],S=_.label.y>e?g:y,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*n,C=a+_.len,T=Math.abs(x)<C?Math.sqrt(b*b/(1-x*x/C/C)):C;S.rB=T,S.maxY=b}S.list.push(_)}f(y),f(g)}for(var h=r.length,v=0;v<h;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-u;r[v].linePoints[1][0]+=d,r[v].label.x=u}il(r,1,l,l+o)&&c(r)}function Dw(r,t,e,a,n,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,h=0;h<r.length;h++){var v=r[h].label;rs(r[h])||(v.x<t?(f=Math.min(f,v.x),l.push(r[h])):(c=Math.max(c,v.x),u.push(r[h])))}for(var h=0;h<r.length;h++){var d=r[h];if(!rs(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,p=d.linePoints,y=void 0;d.labelAlignTo==="edge"?v.x<t?y=p[2][0]-d.labelDistance-o-d.edgeDistance:y=o+n-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<t?y=f-o-d.bleedMargin:y=o+n-c-d.bleedMargin:v.x<t?y=v.x-o-d.bleedMargin:y=o+n-v.x-d.bleedMargin,d.targetTextWidth=y,dg(d,y,!1)}}Bc(u,t,e,a,1,n,i,o,s,c),Bc(l,t,e,a,-1,n,i,o,s,f);for(var h=0;h<r.length;h++){var d=r[h];if(!rs(d)&&d.linePoints){var v=d.label,p=d.linePoints,g=d.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,S=v.style.backgroundColor?0:_,b=d.rect.width+S,x=p[1][0]-p[2][0];g?v.x<t?p[2][0]=o+d.edgeDistance+b+d.labelDistance:p[2][0]=o+n-d.edgeDistance-b-d.labelDistance:(v.x<t?p[2][0]=v.x+d.labelDistance:p[2][0]=v.x-d.labelDistance,p[1][0]=p[2][0]+x),p[1][1]=p[2][1]=v.y}}}function dg(r,t,e){if(r.labelStyleWidth==null){var a=r.label,n=a.style,i=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,f=i.width+(o?0:l);if(t<f||e){if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",t-l);var c=a.getBoundingRect();a.setStyle("width",Math.ceil(c.width)),a.setStyle("backgroundColor",o)}else{var h=t-l,v=t<f?h:e?h>r.unconstrainedWidth?null:h:null;a.setStyle("width",v)}pg(i,a)}}}function pg(r,t){Nc.rect=r,Jp(Nc,t,Aw)}var Aw={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},Nc={};function rs(r){return r.position==="center"}function Lw(r){var t=r.getData(),e=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*Tw,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var C in x.states)if(x.states[C].ignore===!1)return!0;return!1}t.each(function(x){var C=t.getItemGraphicEl(x),T=C.shape,D=C.getTextContent(),A=C.getTextGuideLine(),M=t.getItemModel(x),P=M.getModel("label"),L=P.get("position")||M.get(["emphasis","label","position"]),E=P.get("distanceToLabelLine"),I=P.get("alignTo"),k=ne(P.get("edgeDistance"),u),N=P.get("bleedMargin");N==null&&(N=Math.min(u,h)>200?10:2);var R=M.getModel("labelLine"),B=R.get("length");B=ne(B,u);var V=R.get("length2");if(V=ne(V,u),Math.abs(T.endAngle-T.startAngle)<o){w(D.states,v),D.ignore=!0,A&&(w(A.states,v),A.ignore=!0);return}if(d(D)){var G=(T.startAngle+T.endAngle)/2,Y=Math.cos(G),Q=Math.sin(G),ge,we,Nt,Vr;a=T.cx,n=T.cy;var Vt=L==="inside"||L==="inner";if(L==="center")ge=T.cx,we=T.cy,Vr="center";else{var ma=(Vt?(T.r+T.r0)/2*Y:T.r*Y)+a,_a=(Vt?(T.r+T.r0)/2*Q:T.r*Q)+n;if(ge=ma+Y*3,we=_a+Q*3,!Vt){var kn=ma+Y*(B+l-T.r),Rn=_a+Q*(B+l-T.r),En=kn+(Y<0?-1:1)*V,lr=Rn;I==="edge"?ge=Y<0?f+k:f+u-k:ge=En+(Y<0?-E:E),we=lr,Nt=[[ma,_a],[kn,Rn],[En,lr]]}Vr=Vt?"center":I==="edge"?Y>0?"right":"left":Y>0?"left":"right"}var zt=Math.PI,bt=0,Sa=P.get("rotate");if(ve(Sa))bt=Sa*(zt/180);else if(L==="center")bt=0;else if(Sa==="radial"||Sa===!0){var uy=Y<0?-G+zt:-G;bt=uy}else if(Sa==="tangential"&&L!=="outside"&&L!=="outer"){var zr=Math.atan2(Y,Q);zr<0&&(zr=zt*2+zr);var fy=Q>0;fy&&(zr=zt+zr),bt=zr-zt}if(i=!!bt,D.x=ge,D.y=we,D.rotation=bt,D.setStyle({verticalAlign:"middle"}),Vt){D.setStyle({align:Vr});var So=D.states.select;So&&(So.x+=D.x,So.y+=D.y)}else{var _o=new Ve(0,0,0,0);pg(_o,D),e.push({label:D,labelLine:A,position:L,len:B,len2:V,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new de(Y,Q),linePoints:Nt,textAlign:Vr,labelDistance:E,labelAlignTo:I,edgeDistance:k,bleedMargin:N,rect:_o,unconstrainedWidth:_o.width,labelStyleWidth:D.style.width})}C.setTextConfig({inside:Vt})}}),!i&&r.get("avoidLabelOverlap")&&Dw(e,a,n,l,u,h,f,c);for(var p=0;p<e.length;p++){var y=e[p],g=y.label,m=y.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:y.textAlign}),_&&(w(g.states,v),g.ignore=!0);var S=g.states.select;S&&(S.x+=g.x,S.y+=g.y)}if(m){var b=y.linePoints;_||!b?(w(m.states,v),m.ignore=!0):($p(b,y.minTurnAngle),Pb(b,y.surfaceNormal,y.maxSurfaceAngle),m.setShape({points:b}),g.__hostTarget.textGuideLineConfig={anchor:new de(b[0][0],b[0][1])})}}}var Iw=(function(r){W(t,r);function t(e,a,n){var i=r.call(this)||this;i.z2=2;var o=new he;return i.setTextContent(o),i.updateData(e,a,n,!0),i}return t.prototype.updateData=function(e,a,n,i){var o=this,s=e.hostModel,l=e.getItemModel(a),u=l.getModel("emphasis"),f=e.getItemLayout(a),c=U(Ua(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(i){o.setShape(c);var h=s.getShallow("animationType");s.ecModel.ssr?(Ee(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):h==="scale"?(o.shape.r=f.r0,Ee(o,{shape:{r:f.r}},s,a)):n!=null?(o.setShape({startAngle:n,endAngle:n}),Ee(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,a)):(o.shape.endAngle=f.startAngle,De(o,{shape:{endAngle:f.endAngle}},s,a))}else un(o),De(o,{shape:c},s,a);o.useStyle(e.getItemVisual(a,"style")),oa(o,l);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(v)*d,y=Math.sin(v)*d,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,e,a),o.ensureState("emphasis").shape=U({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Ua(u.getModel("itemStyle"),f)),U(o.ensureState("select"),{x:p,y,shape:Ua(l.getModel(["select","itemStyle"]),f)}),U(o.ensureState("blur"),{shape:Ua(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&U(m.ensureState("select"),{x:p,y}),U(_.ensureState("select"),{x:p,y}),tr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a,n){var i=this,o=a.getItemModel(n),s=o.getModel("labelLine"),l=a.getItemVisual(n,"style"),u=l&&l.fill,f=l&&l.opacity;kr(i,rr(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:e.getFormattedLabel(n,"normal")||a.getName(n)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=o.get(["label","position"]);if(h!=="outside"&&h!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new or,this.setTextGuideLine(v)),Kp(this,qp(o),{stroke:u,opacity:ao(s.get(["lineStyle","opacity"]),f,1)})}},t})(Ir),Pw=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,n,i){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var h=vg(e),v=new Ir({shape:ee(h)});v.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(d){var p=new Iw(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var y=s.getItemGraphicEl(p);y.updateData(o,d,u),y.off("click"),l.add(y),o.setItemGraphicEl(d,y)}).remove(function(d){var p=s.getItemGraphicEl(d);$a(p,e,d)}).execute(),Lw(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t})(Oe);function gg(r,t,e){t=z(t)&&{coordDimensions:t}||U({encodeDefine:r.getEncode()},t);var a=r.getSource(),n=vu(a,t).dimensions,i=new bp(n,r);return i.initData(a,e),i}var yg=(function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var a=this._getDataWithEncodedVisual();return a.getItemVisual(t,e)},r})(),kw=ie(),mg=(function(r){W(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new yg(Z(this.getData,this),Z(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return gg(this,{coordDimensions:["value"],encodeDefaulter:me(X0,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),n=kw(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=Gy(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Ts(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t})(Ge);I0({fullType:mg.type,getCoord2:function(r){return r.getShallow("center")}});function Rw(r){return{seriesType:r,reset:function(t,e){var a=t.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(ve(o)&&!isNaN(o)&&o<0)})}}}function QT(r){r.registerChartView(Pw),r.registerSeriesModel(mg),DS("pie",r.registerAction),r.registerLayout(me(Mw,"pie")),r.registerProcessor(hg("pie")),r.registerProcessor(Rw("pie"))}var _g={left:0,right:0,top:0,bottom:0},Xi=["25%","25%"],Ew=(function(r){W(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(e,a){var n=Er(e.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&e.outerBounds&&Rt(e.outerBounds,n)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&Rt(this.option.outerBounds,e.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:_g,outerBoundsContain:"all",outerBoundsClampWidth:Xi[0],outerBoundsClampHeight:Xi[1],backgroundColor:O.color.transparent,borderWidth:1,borderColor:O.color.neutral30},t})(re),ll=(function(r){W(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ne).models[0]},t.type="cartesian2dAxis",t})(re);Ot(ll,Vp);var Sg={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:O.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:O.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:O.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[O.color.backgroundTint,O.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:O.color.neutral00,borderColor:O.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},Ow=oe({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},Sg),mu=oe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:O.color.axisMinorSplitLine,width:1}}},Sg),Bw=oe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},mu),Nw=ae({logBase:10},mu);const xg={category:Ow,value:mu,time:Bw,log:Nw};var Vw={value:1,category:1,time:1,log:1},zw=null;function Fw(){return zw}function Vc(r,t,e,a){w(Vw,function(n,i){var o=oe(oe({},xg[i],!0),a,!0),s=(function(l){W(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=pn(this),v=h?Er(f):{},d=c.getTheme();oe(f,d.get(i+"Axis")),oe(f,this.getDefaultOption()),f.type=zc(f),h&&Rt(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=el.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){return{breaks:[]}},u.type=t+"Axis."+i,u.defaultOption=o,u})(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",zc)}function zc(r){return r.type||(r.data?"category":"value")}var Gw=(function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return X(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Me(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r})(),ul=["x","y"];function Fc(r){return(r.type==="interval"||r.type==="time")&&!r.hasBreaks()}var Hw=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=ul,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!Fc(e)||!Fc(a))){var n=e.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-n[0]*f,v=o[1]-i[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=eo([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,a){var n=this.dataToPoint(e),i=this.dataToPoint(a),o=this.getArea(),s=new Ve(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,a,n){n=n||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Mr(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},t.prototype.clampData=function(e,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(e[0]),u=i.parse(e[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},t.prototype.pointToData=function(e,a,n){if(n=n||[],this._invTransform)return Mr(n,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),a),n[1]=o.coordToData(o.toLocalCoord(e[1]),a),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-e,o=Math.min(n[0],n[1])-e,s=Math.max(a[0],a[1])-i+e,l=Math.max(n[0],n[1])-o+e;return new Ve(i,o,s,l)},t})(Gw),Ww=(function(r){W(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),e&&a[0]>a[1]&&a.reverse(),a},t.prototype.pointToData=function(e,a){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),a)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t})(Zp),Uw="expandAxisBreak",Kt=Math.PI,Yw=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],Zw=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],bn=ie(),bg=ie(),wg=(function(){function r(t){this.recordMap={},this.resolveAxisNameOverlap=t}return r.prototype.ensureRecord=function(t){var e=t.axis.dim,a=t.componentIndex,n=this.recordMap,i=n[e]||(n[e]=[]);return i[a]||(i[a]={ready:{}})},r})();function Xw(r,t,e,a){var n=e.axis,i=t.ensureRecord(e),o=[],s,l=_u(r.axisName)&&fa(r.nameLocation);w(a,function(d){var p=nr(d);if(!(!p||p.label.ignore)){o.push(p);var y=i.transGroup;l&&(y.transform?eo(Pa,y.transform):rh(Pa),p.transform&&ah(Pa,Pa,p.transform),Ve.copy(ai,p.localRect),ai.applyTransform(Pa),s?s.union(ai):Ve.copy(s=new Ve(0,0,0,0),ai))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var c=n.getExtent(),h=Math.min(c[0],c[1]),v=Math.max(c[0],c[1])-h;s.union(new Ve(h,0,v,1))}i.stOccupiedRect=s,i.labelInfoList=o}var Pa=to(),ai=new Ve(0,0,0,0),Cg=function(r,t,e,a,n,i){if(fa(r.nameLocation)){var o=i.stOccupiedRect;o&&Mg(Eb({},o,i.transGroup.transform),a,n)}else Tg(i.labelInfoList,i.dirVec,a,n)};function Mg(r,t,e){var a=new de;gu(r,t,a,{direction:Math.atan2(e.y,e.x),bidirectional:!1,touchThreshold:.05})&&Ob(t,a)}function Tg(r,t,e,a){for(var n=de.dot(a,t)>=0,i=0,o=r.length;i<o;i++){var s=r[n?i:o-1-i];s.label.ignore||Mg(s,e,a)}}var It=(function(){function r(t,e,a,n){this.group=new pe,this._axisModel=t,this._api=e,this._local={},this._shared=n||new wg(Cg),this._resetCfgDetermined(a)}return r.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(t){var e=this._axisModel,a=e.getDefaultOption?e.getDefaultOption():{},n=J(t.axisName,e.get("name")),i=e.get("nameMoveOverlap");(i==null||i==="auto")&&(i=J(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:J(t.nameDirection,1),tickDirection:J(t.tickDirection,1),labelDirection:J(t.labelDirection,1),labelOffset:J(t.labelOffset,0),silent:J(t.silent,!0),axisName:n,nameLocation:ao(e.get("nameLocation"),a.nameLocation,"end"),shouldNameMoveOverlap:_u(n)&&i,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=o;var s=new pe({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(e);l.transGroup=this._transformGroup,l.dirVec=new de(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(t,e){var a=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),w($w,function(n){t[n]&&Kw[n](a._cfg,a._local,a._shared,a._axisModel,a.group,a._transformGroup,a._api,e||{})}),this},r.innerTextLayout=function(t,e,a){var n=yh(e-t),i,o;return xi(n)?(o=a>0?"top":"bottom",i="center"):xi(n-Kt)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<Kt?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r})(),$w=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],Kw={axisLine:function(r,t,e,a,n,i,o){var s=a.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=a.axis.getExtent(),u=i.transform,f=[l[0],0],c=[l[1],0],h=f[0]>c[0];u&&(Mr(f,f,u),Mr(c,c,u));var v=U({lineCap:"round"},a.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(a.get(["axisLine","breakLine"])&&a.axis.scale.hasBreaks())Fw().buildAxisBreakLine(a,n,i,d);else{var p=new Tr(U({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));cn(p.shape,p.style.lineWidth),p.anid="line",n.add(p)}var y=a.get(["axisLine","symbol"]);if(y!=null){var g=a.get(["axisLine","symbolSize"]);$(y)&&(y=[y,y]),($(g)||ve(g))&&(g=[g,g]);var m=Kd(a.get(["axisLine","symbolOffset"])||0,g),_=g[0],S=g[1];w([{rotate:r.rotation+Math.PI/2,offset:m[0],r:0},{rotate:r.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(b,x){if(y[x]!=="none"&&y[x]!=null){var C=at(y[x],-_/2,-S/2,_,S,v.stroke,!0),T=b.r+b.offset,D=h?c:f;C.attr({rotation:b.rotate,x:D[0]+T*Math.cos(r.rotation),y:D[1]-T*Math.sin(r.rotation),silent:!0,z2:11}),n.add(C)}})}}},axisTickLabelEstimate:function(r,t,e,a,n,i,o,s){var l=Hc(t,n,s);l&&Gc(r,t,e,a,n,i,o,ct.estimate)},axisTickLabelDetermine:function(r,t,e,a,n,i,o,s){var l=Hc(t,n,s);l&&Gc(r,t,e,a,n,i,o,ct.determine);var u=Jw(r,n,i,a);Qw(r,t.labelLayoutList,u),e1(r,n,i,a,r.tickDirection)},axisName:function(r,t,e,a,n,i,o,s){var l=e.ensureRecord(a);t.nameEl&&(n.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(_u(u)){var f=r.nameLocation,c=r.nameDirection,h=a.getModel("nameTextStyle"),v=a.get("nameGap")||0,d=a.axis.getExtent(),p=a.axis.inverse?-1:1,y=new de(0,0),g=new de(0,0);f==="start"?(y.x=d[0]-p*v,g.x=-p):f==="end"?(y.x=d[1]+p*v,g.x=p):(y.x=(d[0]+d[1])/2,y.y=r.labelOffset+c*v,g.y=c);var m=to();g.transform(ch(m,m,r.rotation));var _=a.get("nameRotate");_!=null&&(_=_*Kt/180);var S,b;fa(f)?S=It.innerTextLayout(r.rotation,_??r.rotation,c):(S=qw(r.rotation,f,_||0,d),b=r.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var x=h.getFont(),C=a.get("nameTruncate",!0)||{},T=C.ellipsis,D=an(r.raw.nameTruncateMaxWidth,C.maxWidth,b),A=s.nameMarginLevel||0,M=new he({x:y.x,y:y.y,rotation:S.rotation,silent:It.isLabelSilent(a),style:Te(h,{text:u,font:x,overflow:"truncate",width:D,ellipsis:T,fill:h.getTextColor()||a.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(lo({el:M,componentModel:a,itemName:u}),M.__fullText=u,M.anid="name",a.get("triggerEvent")){var P=It.makeAxisEventDataBase(a);P.targetType="axisName",P.name=u,te(M).eventData=P}i.add(M),M.updateTransform(),t.nameEl=M;var L=l.nameLayout=nr({label:M,priority:M.z2,defaultAttr:{ignore:M.ignore},marginDefault:fa(f)?Yw[A]:Zw[A]});if(l.nameLocation=f,n.add(M),M.decomposeTransform(),r.shouldNameMoveOverlap&&L){var E=e.ensureRecord(a);e.resolveAxisNameOverlap(r,e,a,L,g,E)}}}};function Gc(r,t,e,a,n,i,o,s){Ag(t)||t1(r,t,n,s,a,o);var l=t.labelLayoutList;r1(r,a,l,i),r.rotation;var u=r.optionHideOverlap;jw(a,l,u),u&&eg(Me(l,function(f){return f&&!f.label.ignore})),Xw(r,e,a,l)}function qw(r,t,e,a){var n=yh(e-r),i,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return xi(n-Kt/2)?(o=l?"bottom":"top",i="center"):xi(n-Kt*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<Kt*1.5&&n>Kt/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function jw(r,t,e){if(Op(r.axis))return;function a(s,l,u){var f=nr(t[l]),c=nr(t[u]);if(!(!f||!c)){if(s===!1||f.suggestIgnore){Ya(f.label);return}if(c.suggestIgnore){Ya(c.label);return}var h=.1;if(!e){var v=[0,0,0,0];f=nl({marginForce:v},f),c=nl({marginForce:v},c)}gu(f,c,null,{touchThreshold:h})&&Ya(s?c.label:f.label)}}var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]),o=t.length;a(n,0,1),a(i,o-1,o-2)}function Qw(r,t,e){r.showMinorTicks||w(t,function(a){if(a&&a.label.ignore)for(var n=0;n<e.length;n++){var i=e[n],o=bg(i),s=bn(a.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){Ya(i);return}}})}function Ya(r){r&&(r.ignore=!0)}function Dg(r,t,e,a,n){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(Mr(o,o,t),Mr(s,s,t));var f=new Tr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});cn(f.shape,f.style.lineWidth),f.anid=n+"_"+r[l].tickValue,i.push(f);var c=bg(f);c.onBand=!!r[l].onBand,c.tickValue=r[l].tickValue}return i}function Jw(r,t,e,a){var n=a.axis,i=a.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=r.tickDirection*i.get("length"),u=n.getTicksCoords(),f=Dg(u,e.transform,l,ae(s.getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)t.add(f[c]);return f}function e1(r,t,e,a,n){var i=a.axis,o=a.getModel("minorTick");if(!(!r.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),f=ae(l.getLineStyle(),ae(a.getModel("axisTick").getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var h=Dg(s[c],e.transform,u,f,"minorticks_"+c),v=0;v<h.length;v++)t.add(h[v])}}function Hc(r,t,e){if(Ag(r)){var a=r.axisLabelsCreationContext,n=a.out.noPxChangeTryDetermine;if(e.noPxChange){for(var i=!0,o=0;o<n.length;o++)i=i&&n[o]();if(i)return!1}n.length&&(t.remove(r.labelGroup),fl(r,null,null,null))}return!0}function t1(r,t,e,a,n,i){var o=n.axis,s=an(r.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new pe;e.add(l);var u=Hi(a);if(!s||o.scale.isBlank()){fl(t,[],l,u);return}var f=n.getModel("axisLabel"),c=o.getViewLabels(u),h=(an(r.raw.labelRotate,f.get("rotate"))||0)*Kt/180,v=It.innerTextLayout(r.rotation,h,r.labelDirection),d=n.getCategories&&n.getCategories(!0),p=[],y=n.get("triggerEvent"),g=1/0,m=-1/0;w(c,function(S,b){var x,C=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(S.tickValue):S.tickValue,T=S.formattedLabel,D=S.rawLabel,A=f;if(d&&d[C]){var M=d[C];K(M)&&M.textStyle&&(A=new ye(M.textStyle,f,n.ecModel))}var P=A.getTextColor()||n.get(["axisLine","lineStyle","color"]),L=A.getShallow("align",!0)||v.textAlign,E=J(A.getShallow("alignMinLabel",!0),L),I=J(A.getShallow("alignMaxLabel",!0),L),k=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||v.textVerticalAlign,N=J(A.getShallow("verticalAlignMinLabel",!0),k),R=J(A.getShallow("verticalAlignMaxLabel",!0),k),B=10+(((x=S.time)===null||x===void 0?void 0:x.level)||0);g=Math.min(g,B),m=Math.max(m,B);var V=new he({x:0,y:0,rotation:0,silent:It.isLabelSilent(n),z2:B,style:Te(A,{text:T,align:b===0?E:b===c.length-1?I:L,verticalAlign:b===0?N:b===c.length-1?R:k,fill:j(P)?P(o.type==="category"?D:o.type==="value"?C+"":C,b):P})});V.anid="label_"+C;var G=bn(V);if(G.break=S.break,G.tickValue=C,G.layoutRotation=v.rotation,lo({el:V,componentModel:n,itemName:T,formatterParamsExtra:{isTruncated:function(){return V.isTruncated},value:D,tickIndex:b}}),y){var Y=It.makeAxisEventDataBase(n);Y.targetType="axisLabel",Y.value=D,Y.tickIndex=b,S.break&&(Y.break={start:S.break.parsedBreak.vmin,end:S.break.parsedBreak.vmax}),o.type==="category"&&(Y.dataIndex=C),te(V).eventData=Y,S.break&&n1(n,i,V,S.break)}p.push(V),l.add(V)});var _=X(p,function(S){return{label:S,priority:bn(S).break?S.z2+(m-g+1):S.z2,defaultAttr:{ignore:S.ignore}}});fl(t,_,l,u)}function Ag(r){return!!r.labelLayoutList}function fl(r,t,e,a){r.labelLayoutList=t,r.labelGroup=e,r.axisLabelsCreationContext=a}function r1(r,t,e,a){var n=t.get(["axisLabel","margin"]);w(e,function(i,o){var s=nr(i);if(s){var l=s.label,u=bn(l);s.suggestIgnore=l.ignore,l.ignore=!1,Bu(Mt,a1),Mt.x=t.axis.dataToCoord(u.tickValue),Mt.y=r.labelOffset+r.labelDirection*n,Mt.rotation=u.layoutRotation,a.add(Mt),Mt.updateTransform(),a.remove(Mt),Mt.decomposeTransform(),Bu(l,Mt),l.markRedraw(),Zi(s,!0),nr(s)}})}var Mt=new se,a1=new se;function _u(r){return!!r}function n1(r,t,e,a){e.on("click",function(n){var i={type:Uw,breaks:[{start:a.parsedBreak.breakOption.start,end:a.parsedBreak.breakOption.end}]};i[r.axis.dim+"AxisIndex"]=r.componentIndex,t.dispatchAction(i)})}function $i(r,t,e){e=e||{};var a=t.axis,n={},i=a.getAxesOnZeroOf()[0],o=a.position,s=i?"onZero":o,l=a.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=t.get("offset")||0,h=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(i){var v=i.toGlobalCoord(i.dataToCoord(0));h[f.onZero]=Math.max(Math.min(v,h[1]),h[0])}n.position=[l==="y"?h[f[s]]:u[0],l==="x"?h[f[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=d[o],n.labelOffset=i?h[f[o]]-h[f.onZero]:0,t.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),an(e.labelInside,t.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var p=t.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-p:p,n.z2=1,n}function i1(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function Wc(r){var t={xAxisModel:null,yAxisModel:null};return w(t,function(e,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,Ne).models[0];t[a]=i}),t}function o1(r,t,e,a,n,i){for(var o=$i(r,e),s=!1,l=!1,u=0;u<t.length;u++)Qs(t[u].getOtherAxis(e.axis).scale)&&(s=l=!0,e.axis.type==="category"&&e.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new It(e,a,o,n)}function s1(r,t,e){var a=$i(t,e);r.updateCfg(a)}function Lg(r,t,e){var a=ar.prototype,n=a.getTicks.call(e),i=a.getTicks.call(e,{expandToNicedExtent:!0}),o=n.length-1,s=a.getInterval.call(e),l=Ep(r,t),u=l.extent,f=l.fixMin,c=l.fixMax;r.type==="log"&&(u=Js(r.base,u,!0)),r.setBreaksFromOption(Np(t)),r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var h=a.getExtent.call(r);f&&(u[0]=h[0]),c&&(u[1]=h[1]);var v=a.getInterval.call(r),d=u[0],p=u[1];if(f&&c)v=(p-d)/o;else if(f)for(p=u[0]+v*o;p<u[1]&&isFinite(p)&&isFinite(u[1]);)v=Zo(v),p=u[0]+v*o;else if(c)for(d=u[1]-v*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)v=Zo(v),d=u[1]-v*o;else{var y=r.getTicks().length-1;y>o&&(v=Zo(v));var g=v*o;p=Math.ceil(u[1]/v)*v,d=Re(p-g),d<0&&u[0]>=0?(d=0,p=Re(g)):p>0&&u[1]<=0&&(p=0,d=-Re(g))}var m=(n[0].value-i[0].value)/s,_=(n[o].value-i[o].value)/s;a.setExtent.call(r,d+v*m,p+v*_),a.setInterval.call(r,v),(m||_)&&a.setNiceExtent.call(r,d+v,p-v)}var Uc=[[3,1],[0,2]],l1=(function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ul,this._initCartesian(t,e,a),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var a=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=Ie(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],v=o[h],d=v.model,p=v.scale;Qs(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(fc(p,d),Qs(p)&&(s=v))}f.length&&(s||(s=f.pop(),fc(s.scale,s.model)),w(f,function(y){Lg(y.scale,y.model,s.scale)}))}}n(a.x),n(a.y);var i={};w(a.x,function(o){Yc(a,"y",o,i)}),w(a.y,function(o){Yc(a,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,a){var n=Rr(t,e),i=this._rect=rt(t.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(Ig(o,i),!a){var u=f1(i,s,o,l,e),f=void 0;if(l)f=$c(i.clone(),"axisLabel",null,i,o,u,n);else{var c=c1(t,i,n),h=c.outerBoundsRect,v=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;h&&(f=$c(h,v,d,i,o,u,n))}Pg(i,o,ct.determine,null,f,n)}w(this._coordsList,function(p){p.calcAffineTransform()})},r.prototype.getAxis=function(t,e){var a=this._axesMap[t];if(a!=null)return a[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var a="x"+t+"y"+e;return this._coordsMap[a]}K(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,a){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(t,e,a){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,a=t.xAxisModel||e&&e.getReferringComponents("xAxis",Ne).models[0],n=t.yAxisModel||e&&e.getReferringComponents("yAxis",Ne).models[0],i=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,ue(o,s)<0&&(s=null);else if(a&&n)s=this.getCartesian(a.componentIndex,n.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,a){var n=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,w(s.x,function(f,c){w(s.y,function(h,v){var d="x"+c+"y"+v,p=new Hw(d);p.master=n,p.model=t,n._coordsMap[d]=p,n._coordsList.push(p),p.addAxis(f),p.addAxis(h)})});function u(f){return function(c,h){if(as(c,t)){var v=c.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new Ww(f,ub(c),[0,0],c.get("type"),v),p=d.type==="category";d.onBand=p&&c.get("boundaryGap"),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=i,d.index=h,i._axesList.push(d),s[f][h]=d,l[f]++}}}},r.prototype._updateScale=function(t,e){w(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var i=n.model.get("categorySortInfo");n.scale.setSortInfo(i)}}),t.eachSeries(function(n){if(i1(n)){var i=Wc(n),o=i.xAxisModel,s=i.yAxisModel;if(!as(o,e)||!as(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),f=l.getAxis("x"),c=l.getAxis("y");a(u,f),a(u,c)}},this);function a(n,i){w(Bp(n,i.dim),function(o){i.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],a=[];return w(this.getCartesians(),function(n){var i=t!=null&&t!=="auto"?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(i);ue(e,i)<0&&e.push(i),ue(a,o)<0&&a.push(o)}),{baseAxes:e,otherAxes:a}},r.create=function(t,e){var a=[];return t.eachComponent("grid",function(n,i){var o=new r(n,t,e);o.name="grid_"+i,o.resize(n,e,!0),n.coordinateSystem=o,a.push(o)}),t.eachSeries(function(n){ud({targetModel:n,coordSysType:"cartesian2d",coordSysProvider:i});function i(){var o=Wc(n),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel(),f=u.coordinateSystem;return f.getCartesian(s.componentIndex,l.componentIndex)}}),a},r.dimensions=ul,r})();function as(r,t){return r.getCoordSysModel()===t}function Yc(r,t,e,a){e.getAxesOnZeroOf=function(){return i?[i]:[]};var n=r[t],i,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Zc(n[l])&&(i=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&Zc(n[u])&&!a[f(n[u])]){i=n[u];break}i&&(a[f(i)]=!0);function f(c){return c.dim+"_"+c.index}}function Zc(r){return r&&r.type!=="category"&&r.type!=="time"&&fb(r)}function u1(r,t){var e=r.getExtent(),a=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+t}:function(n){return a-n+t},r.toLocalCoord=r.dim==="x"?function(n){return n-t}:function(n){return a-n+t}}function Ig(r,t){w(r.x,function(e){return Xc(e,t.x,t.width)}),w(r.y,function(e){return Xc(e,t.y,t.height)})}function Xc(r,t,e){var a=[0,e],n=r.inverse?1:0;r.setExtent(a[n],a[1-n]),u1(r,t)}function $c(r,t,e,a,n,i,o){Pg(a,n,ct.estimate,t,!1,o);var s=[0,0,0,0];u(0),u(1),f(a,0,NaN),f(a,1,NaN);var l=vh(s,function(h){return h>0})==null;return vn(a,s,!0,!0,e),Ig(n,a),l;function u(h){w(n[$t[h]],function(v){if(_n(v.model)){var d=i.ensureRecord(v.model),p=d.labelInfoList;if(p)for(var y=0;y<p.length;y++){var g=p[y],m=v.scale.normalize(bn(g.label).tickValue);m=h===1?1-m:m,f(g.rect,h,m),f(g.rect,1-h,NaN)}var _=d.nameLayout;if(_){var m=fa(d.nameLocation)?.5:NaN;f(_.rect,h,m),f(_.rect,1-h,NaN)}}})}function f(h,v,d){var p=r[$t[v]]-h[$t[v]],y=h[sa[v]]+h[$t[v]]-(r[sa[v]]+r[$t[v]]);p=c(p,1-d),y=c(y,d);var g=Uc[v][0],m=Uc[v][1];s[g]=$e(s[g],p),s[m]=$e(s[m],y)}function c(h,v){return h>0&&!xr(v)&&v>1e-4&&(h/=v),h}}function f1(r,t,e,a,n){var i=new wg(v1);return w(e,function(o){return w(o,function(s){if(_n(s.model)){var l=!a;s.axisBuilder=o1(r,t,s.model,n,i,l)}})}),i}function Pg(r,t,e,a,n,i){var o=e===ct.determine;w(t,function(u){return w(u,function(f){_n(f.model)&&(s1(f.axisBuilder,r,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[$t[1-u]]=r[sa[u]]<=i.refContainer[sa[u]]*.5?0:1-u===1?2:1}w(t,function(u,f){return w(u,function(c){_n(c.model)&&((a==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function c1(r,t,e){var a,n=r.get("outerBoundsMode",!0);n==="same"?a=t.clone():(n==null||n==="auto")&&(a=rt(r.get("outerBounds",!0)||_g,e.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||ue(["all","axisLabel"],i)<0?o="all":o=i;var s=[Ms(J(r.get("outerBoundsClampWidth",!0),Xi[0]),t.width),Ms(J(r.get("outerBoundsClampHeight",!0),Xi[1]),t.height)];return{outerBoundsRect:a,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var v1=function(r,t,e,a,n,i){var o=e.axis.dim==="x"?"y":"x";Cg(r,t,e,a,n,i),fa(r.nameLocation)||w(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&Tg(s.labelInfoList,s.dirVec,a,n)})};function h1(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return d1(e,r,t),e.seriesInvolved&&g1(e,r),e}function d1(r,t,e){var a=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];w(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=wn(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",a);if(w(s.getAxes(),me(p,!1,null)),s.getTooltipAxes&&a&&c.get("show")){var h=c.get("trigger")==="axis",v=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||v)&&w(d.baseAxes,me(p,v?"cross":!0,h)),v&&w(d.otherAxes,me(p,"cross",!1))}function p(y,g,m){var _=m.model.getModel("axisPointer",n),S=_.get("show");if(!(!S||S==="auto"&&!y&&!cl(_))){g==null&&(g=_.get("triggerTooltip")),_=y?p1(m,c,n,t,y,g):_;var b=_.get("snap"),x=_.get("triggerEmphasis"),C=wn(m.model),T=g||b||m.type==="category",D=r.axesInfo[C]={key:C,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:x,involveSeries:T,snap:b,useHandle:cl(_),seriesModels:[],linkGroup:null};u[C]=D,r.seriesInvolved=r.seriesInvolved||T;var A=y1(i,m);if(A!=null){var M=o[A]||(o[A]={axesInfo:{}});M.axesInfo[C]=D,M.mapper=i[A].mapper,D.linkGroup=M}}}})}function p1(r,t,e,a,n,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};w(s,function(h){l[h]=ee(o.get(h))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&ae(u,c.textStyle)}}return r.model.getModel("axisPointer",new ye(l,e,a))}function g1(r,t){t.eachSeries(function(e){var a=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!a||!a.model||n==="none"||n===!1||n==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||w(r.coordSysAxesInfo[wn(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function y1(r,t){for(var e=t.model,a=t.dim,n=0;n<r.length;n++){var i=r[n]||{};if(ns(i[a+"AxisId"],e.id)||ns(i[a+"AxisIndex"],e.componentIndex)||ns(i[a+"AxisName"],e.name))return n}}function ns(r,t){return r==="all"||z(r)&&ue(r,t)>=0||r===t}function m1(r){var t=Su(r);if(t){var e=t.axisPointerModel,a=t.axis.scale,n=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=a.parse(o));var s=cl(e);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function Su(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[wn(r)]}function _1(r){var t=Su(r);return t&&t.axisPointerModel}function cl(r){return!!r.get(["handle","show"])}function wn(r){return r.type+"||"+r.id}var Kc={},kg=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){this.axisPointerClass&&m1(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},t.prototype.updateAxisPointer=function(e,a,n,i){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,a){var n=this._axisPointer;n&&n.remove(a)},t.prototype.dispose=function(e,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,a,n){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=_1(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,a,n):this._disposeAxisPointer(a)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,a){Kc[e]=a},t.getAxisPointerClass=function(e){return e&&Kc[e]},t.type="axis",t})(He),vl=ie();function S1(r,t,e,a){var n=e.axis;if(!n.scale.isBlank()){var i=e.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=vl(r).splitAreaColors,h=q(),v=0;if(c)for(var d=0;d<u.length;d++){var p=c.get(u[d].tickValue);if(p!=null){v=(p+(f-1)*d)%f;break}}var y=n.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=z(s)?s:[s];for(var d=1;d<u.length;d++){var m=n.toGlobalCoord(u[d].coord),_=void 0,S=void 0,b=void 0,x=void 0;n.isHorizontal()?(_=y,S=l.y,b=m-_,x=l.height,y=_+b):(_=l.x,S=y,b=l.width,x=m-S,y=S+x);var C=u[d-1].tickValue;C!=null&&h.set(C,v),t.add(new se({anid:C!=null?"area_"+C:null,shape:{x:_,y:S,width:b,height:x},style:ae({fill:s[v]},g),autoBatch:!0,silent:!0})),v=(v+1)%f}vl(r).splitAreaColors=h}}}function x1(r){vl(r).splitAreaColors=null}var b1=["splitArea","splitLine","minorSplitLine","breakArea"],Rg=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,a,n,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new pe,this.group.add(this._axisGroup),!!_n(e)){this._axisGroup.add(e.axis.axisBuilder.group),w(b1,function(l){e.get([l,"show"])&&w1[l](this,this._axisGroup,e,e.getCoordSysModel(),n)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||Gh(o,this._axisGroup,e),r.prototype.render.call(this,e,a,n,i)}},t.prototype.remove=function(){x1(this)},t.type="cartesianAxis",t})(kg),w1={splitLine:function(r,t,e,a,n){var i=e.axis;if(!i.scale.isBlank()){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=z(l)?l:[l];for(var c=a.coordinateSystem.getRect(),h=i.isHorizontal(),v=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],y=[],g=s.getLineStyle(),m=0;m<d.length;m++){var _=i.toGlobalCoord(d[m].coord);if(!(m===0&&!u||m===d.length-1&&!f)){var S=d[m].tickValue;h?(p[0]=_,p[1]=c.y,y[0]=_,y[1]=c.y+c.height):(p[0]=c.x,p[1]=_,y[0]=c.x+c.width,y[1]=_);var b=v++%l.length,x=new Tr({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:y[0],y2:y[1]},style:ae({stroke:l[b]},g),silent:!0});cn(x.shape,g.lineWidth),t.add(x)}}}},minorSplitLine:function(r,t,e,a,n){var i=e.axis,o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=a.coordinateSystem.getRect(),u=i.isHorizontal(),f=i.getMinorTicksCoords();if(f.length)for(var c=[],h=[],v=s.getLineStyle(),d=0;d<f.length;d++)for(var p=0;p<f[d].length;p++){var y=i.toGlobalCoord(f[d][p].coord);u?(c[0]=y,c[1]=l.y,h[0]=y,h[1]=l.y+l.height):(c[0]=l.x,c[1]=y,h[0]=l.x+l.width,h[1]=y);var g=new Tr({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:v,silent:!0});cn(g.shape,v.lineWidth),t.add(g)}},splitArea:function(r,t,e,a,n){S1(r,t,e,a)},breakArea:function(r,t,e,a,n){e.axis.scale}},Eg=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t})(Rg),C1=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Eg.type,e}return t.type="yAxis",t})(Rg),M1=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,a){this.group.removeAll(),e.get("show")&&this.group.add(new se({shape:e.coordinateSystem.getRect(),style:ae({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(He),qc={offset:0};function T1(r){r.registerComponentView(M1),r.registerComponentModel(Ew),r.registerCoordinateSystem("cartesian2d",l1),Vc(r,"x",ll,qc),Vc(r,"y",ll,qc),r.registerComponentView(Eg),r.registerComponentView(C1),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function D1(r){r.eachSeriesByType("radar",function(t){var e=t.getData(),a=[],n=t.coordinateSystem;if(n){var i=n.getIndicatorAxes();w(i,function(o,s){e.each(e.mapDimension(i[s].dim),function(l,u){a[u]=a[u]||[];var f=n.dataToPoint(l,s);a[u][s]=jc(f)?f:Qc(n)})}),e.each(function(o){var s=vh(a[o],function(l){return jc(l)})||Qc(n);a[o].push(s.slice()),e.setItemLayout(o,a[o])})}})}function jc(r){return!isNaN(r[0])&&!isNaN(r[1])}function Qc(r){return[r.cx,r.cy]}function A1(r){var t=r.polar;if(t){z(t)||(t=[t]);var e=[];w(t,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],z(r.radar)||(r.radar=[r.radar]),r.radar.push(a)):e.push(a)}),r.polar=e}w(r.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var L1=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(h,v){var d=h.getItemVisual(v,"symbol")||"circle";if(d!=="none"){var p=$d(h.getItemVisual(v,"symbolSize")),y=at(d,-1,-1,2,2),g=h.getItemVisual(v,"symbolRotate")||0;return y.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:g*Math.PI/180||0}),y}}function f(h,v,d,p,y,g){d.removeAll();for(var m=0;m<v.length-1;m++){var _=u(p,y);_&&(_.__dimIdx=m,h[m]?(_.setPosition(h[m]),Yh[g?"initProps":"updateProps"](_,{x:v[m][0],y:v[m][1]},e,y)):_.setPosition(v[m]),d.add(_))}}function c(h){return X(h,function(v){return[i.cx,i.cy]})}s.diff(l).add(function(h){var v=s.getItemLayout(h);if(v){var d=new ha,p=new or,y={shape:{points:v}};d.shape.points=c(v),p.shape.points=c(v),Ee(d,y,e,h),Ee(p,y,e,h);var g=new pe,m=new pe;g.add(p),g.add(d),g.add(m),f(p.shape.points,v,m,s,h,!0),s.setItemGraphicEl(h,g)}}).update(function(h,v){var d=l.getItemGraphicEl(v),p=d.childAt(0),y=d.childAt(1),g=d.childAt(2),m={shape:{points:s.getItemLayout(h)}};m.shape.points&&(f(p.shape.points,m.shape.points,g,s,h,!1),un(y),un(p),De(p,m,e),De(y,m,e),s.setItemGraphicEl(h,d))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,v){var d=s.getItemModel(v),p=h.childAt(0),y=h.childAt(1),g=h.childAt(2),m=s.getItemVisual(v,"style"),_=m.fill;o.add(h),p.useStyle(ae(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),oa(p,d,"lineStyle"),oa(y,d,"areaStyle");var S=d.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();y.ignore=b,w(["emphasis","select","blur"],function(C){var T=d.getModel([C,"areaStyle"]),D=T.isEmpty()&&T.parentModel.isEmpty();y.ensureState(C).ignore=D&&b;var A=d.getModel([C,"lineStyle"]).getLineStyle();p.ensureState(C).style=A;var M=T.getAreaStyle();y.ensureState(C).style=M;var P=d.getModel([C,"itemStyle"]).getItemStyle();g.eachChild(function(L){L.ensureState(C).style=ee(P)})}),y.useStyle(ae(d.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var x=d.getModel("emphasis");g.eachChild(function(C){if(C instanceof Et){var T=C.style;C.useStyle(U({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},m))}else C.useStyle(m),C.setColor(_),C.style.strokeNoScale=!0;var D=s.getStore().get(s.getDimensionIndex(C.__dimIdx),v);(D==null||isNaN(D))&&(D=""),kr(C,rr(d),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:C.__dimIdx,defaultText:D,inheritColor:_,defaultOpacity:m.opacity})}),tr(h,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t})(Oe),I1=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new yg(Z(this.getData,this),Z(this.getRawData,this))},t.prototype.getInitialData=function(e,a){return gg(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,f=Bd(this,e);return Lr("section",{header:u,sortBlocks:!0,blocks:X(s,function(c){var h=i.get(i.mapDimension(c.dim),e);return Lr("nameValue",{markerType:"subItem",markerColor:f,name:c.name,value:h,sortParam:h})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var a=this.getData(),n=this.coordinateSystem,i=a.getValues(X(n.dimensions,function(u){return a.mapDimension(u)}),e),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(i[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t})(Ge),ka=xg.value;function ni(r,t){return ae({show:t},r)}var P1=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),a=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),h=this.get("triggerEvent"),v=X(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=ae({color:d.color},l));var y=oe(ee(d),{boundaryGap:e,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:h},!1);if($(f)){var g=y.name;y.name=f.replace("{value}",g??"")}else j(f)&&(y.name=f(y.name,y));var m=new ye(y,null,this.ecModel);return Ot(m,Vp.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:O.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:oe({lineStyle:{color:O.color.neutral20}},ka.axisLine),axisLabel:ni(ka.axisLabel,!1),axisTick:ni(ka.axisTick,!1),splitLine:ni(ka.splitLine,!0),splitArea:ni(ka.splitArea,!0),indicator:[]},t})(re),k1=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group;i.removeAll(),this._buildAxes(e,n),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,a){var n=e.coordinateSystem,i=n.getIndicatorAxes(),o=X(i,function(s){var l=s.model.get("showName")?s.name:"",u=new It(s.model,a,{axisName:l,position:[n.cx,n.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});w(o,function(s){s.build(),this.group.add(s.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var a=e.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),h=l.get("color"),v=u.get("color"),d=z(h)?h:[h],p=z(v)?v:[v],y=[],g=[];function m(I,k,N){var R=N%k.length;return I[R]=I[R]||[],R}if(i==="circle")for(var _=n[0].getTicksCoords(),S=a.cx,b=a.cy,x=0;x<_.length;x++){if(f){var C=m(y,d,x);y[C].push(new ro({shape:{cx:S,cy:b,r:_[x].coord}}))}if(c&&x<_.length-1){var C=m(g,p,x);g[C].push(new bl({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,D=X(n,function(I,k){var N=I.getTicksCoords();return T=T==null?N.length-1:Math.min(N.length-1,T),X(N,function(R){return a.coordToPoint(R.coord,k)})}),A=[],x=0;x<=T;x++){for(var M=[],P=0;P<n.length;P++)M.push(D[P][x]);if(M[0]&&M.push(M[0].slice()),f){var C=m(y,d,x);y[C].push(new or({shape:{points:M}}))}if(c&&A){var C=m(g,p,x-1);g[C].push(new ha({shape:{points:M.concat(A)}}))}A=M.slice().reverse()}var L=l.getLineStyle(),E=u.getAreaStyle();w(g,function(I,k){this.group.add(Es(I,{style:ae({stroke:"none",fill:p[k%p.length]},E),silent:!0}))},this),w(y,function(I,k){this.group.add(Es(I,{style:ae({fill:"none",stroke:d[k%d.length]},L),silent:!0}))},this)},t.type="radar",t})(He),R1=(function(r){W(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return t})(Zp),E1=(function(){function r(t,e,a){this.dimensions=[],this._model=t,this._indicatorAxes=X(t.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new R1(o,new ar);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(t,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var a=this._indicatorAxes[e];return this.coordToPoint(a.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var a=this._indicatorAxes[e],n=a.angle,i=this.cx+t*Math.cos(n),o=this.cy-t*Math.sin(n);return[i,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=Math.sqrt(e*e+a*a);e/=n,a/=n;for(var i=Math.atan2(-a,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],c=Math.abs(i-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(n))]},r.prototype.resize=function(t,e){var a=Rr(t,e).refContainer,n=t.get("center"),i=Math.min(a.width,a.height)/2;this.cx=ne(n[0],a.width)+a.x,this.cy=ne(n[1],a.height)+a.y,this.startAngle=t.get("startAngle")*Math.PI/180;var o=t.get("radius");($(o)||ve(o))&&(o=[0,o]),this.r0=ne(o[0],i),this.r=ne(o[1],i),w(this._indicatorAxes,function(s,l){s.setExtent(this.r0,this.r);var u=this.startAngle+l*Math.PI*2/this._indicatorAxes.length;u=Math.atan2(Math.sin(u),Math.cos(u)),s.angle=u},this)},r.prototype.update=function(t,e){var a=this._indicatorAxes,n=this._model;w(a,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==n)){var u=s.getData();w(a,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var i=n.get("splitNumber"),o=new ar;o.setExtent(0,i),o.setInterval(1),w(a,function(s,l){Lg(s.scale,s.model,o)})},r.prototype.convertToPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.create=function(t,e){var a=[];return t.eachComponent("radar",function(n){var i=new r(n,t,e);a.push(i),n.coordinateSystem=i}),t.eachSeriesByType("radar",function(n){n.get("coordinateSystem")==="radar"&&(n.coordinateSystem=a[n.get("radarIndex")||0])}),a},r.dimensions=[],r})();function O1(r){r.registerCoordinateSystem("radar",E1),r.registerComponentModel(P1),r.registerComponentView(k1),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(a){e.setItemVisual(a,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}function JT(r){Xe(O1),r.registerChartView(L1),r.registerSeriesModel(I1),r.registerLayout(D1),r.registerProcessor(hg("radar")),r.registerPreprocessor(A1)}var B1=ie();function Jc(r,t){return!!B1(r)[t]}Br({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},xt);var N1={axisPointer:1,tooltip:1,brush:1};function V1(r,t,e){var a=t.getComponentByElement(r.topTarget);if(!a||a===e||N1.hasOwnProperty(a.mainType))return!1;var n=a.coordinateSystem;if(!n||n.model===e)return!1;var i=dn(a),o=dn(e);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var z1=(function(r){W(t,r);function t(e){var a=r.call(this)||this;a._zr=e;var n=Z(a._mousedownHandler,a),i=Z(a._mousemoveHandler,a),o=Z(a._mouseupHandler,a),s=Z(a._mousewheelHandler,a),l=Z(a._pinchHandler,a);return a.enable=function(u,f){var c=f.zInfo,h=dn(c.component),v=h.z,d=h.zlevel,p={component:c.component,z:v,zlevel:d,z2:J(c.z2,-1/0)},y=U({},f.triggerInfo);this._opt=ae(U({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:p,triggerInfo:y}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this._enabled=!0,this.disable(),(u===!0||u==="move"||u==="pan")&&(Ea(e,"mousedown",n,p),Ea(e,"mousemove",i,p),Ea(e,"mouseup",o,p)),(u===!0||u==="scale"||u==="zoom")&&(Ea(e,"mousewheel",s,p),Ea(e,"pinch",l,p)))},a.disable=function(){this._enabled=!1,Oa(e,"mousedown",n),Oa(e,"mousemove",i),Oa(e,"mouseup",o),Oa(e,"mousewheel",s),Oa(e,"pinch",l)},a}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(e,a,n){var i=this._opt,o=i.zInfoParsed;if(V1(e,i.api,o.component))return!1;var s=i.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(e,a,n)),u&&s.isInClip&&!s.isInClip(e,a,n)&&(u=!1),u},t.prototype._decideCursorStyle=function(e,a,n,i){var o=e.target;if(!o&&this._checkPointer(e,a,n))return"grab";if(i)return o&&o.cursor||"default"},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(Nu(e)||Ra(e))){for(var a=e.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var n=e.offsetX,i=e.offsetY;this._checkPointer(e,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){var a=this._zr;if(!(e.gestureEvent==="pinch"||Jc(a,"globalPan")||Ra(e))){var n=e.offsetX,i=e.offsetY;if(!this._dragging||!gi("moveOnMouseMove",e,this._opt)){var o=this._decideCursorStyle(e,n,i,!1);o&&a.setCursorStyle(o);return}a.setCursorStyle("grabbing");var s=this._x,l=this._y,u=n-s,f=i-l;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&er(e.event),e.__ecRoamConsumed=!0,ev(this,"pan","moveOnMouseMove",e,{dx:u,dy:f,oldX:s,oldY:l,newX:n,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!Ra(e)){var a=this._zr;if(!Nu(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&a.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!Ra(e)){var a=gi("zoomOnMouseWheel",e,this._opt),n=gi("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,o=Math.abs(i),s=e.offsetX,l=e.offsetY;if(!(i===0||!a&&!n)){if(a){var u=o>3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var c=Math.abs(i),h=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(Jc(this._zr,"globalPan")||Ra(e))){var a=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,e,{scale:a,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,a,n,i,o){e._checkPointer(i,o.originX,o.originY)&&(er(i.event),i.__ecRoamConsumed=!0,ev(e,a,n,i,o))},t})(Dn);function Ra(r){return r.__ecRoamConsumed}var F1=ie();function mo(r){var t=F1(r);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function Ea(r,t,e,a){for(var n=mo(r),i=n.roam,o=i[t]=i[t]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-a.zlevel||l.z-a.z||l.z2-a.z2)<=0)break}o.splice(s,0,{listener:e,zInfoParsed:a}),G1(r,t)}function Oa(r,t,e){for(var a=mo(r),n=a.roam[t]||[],i=0;i<n.length;i++)if(n[i].listener===e){n.splice(i,1),n.length||H1(r,t);return}}function G1(r,t){var e=mo(r);e.uniform[t]||r.on(t,e.uniform[t]=function(a){var n=e.roam[t];if(n)for(var i=0;i<n.length;i++)n[i].listener(a)})}function H1(r,t){var e=mo(r),a=e.uniform;a[t]&&(r.off(t,a[t]),a[t]=null)}function ev(r,t,e,a,n){n.isAvailableBehavior=Z(gi,null,e,a),r.trigger(t,n)}function gi(r,t,e){var a=e[r];return!r||a&&(!$(a)||t.event[a+"Key"])}var Cn=w,W1=K,Ki=-1,ze=(function(){function r(t){var e=t.mappingMethod,a=t.type,n=this.option=ee(t);this.type=a,this.mappingMethod=e,this._normalizeData=Z1[e];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(is(n),U1(n)):e==="category"?n.categories?Y1(n):is(n,!0):(St(e!=="linear"||n.dataExtent),is(n))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return Z(this._normalizeData,this)},r.listVisualTypes=function(){return Ie(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,a){K(t)?w(t,e,a):e.call(a,t)},r.mapVisual=function(t,e,a){var n,i=z(t)?[]:K(t)?{}:(n=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(t){var e={},a;return t&&Cn(r.visualHandlers,function(n,i){t.hasOwnProperty(i)&&(e[i]=t[i],a=!0)}),a?e:null},r.prepareVisualTypes=function(t){if(z(t))t=t.slice();else if(W1(t)){var e=[];Cn(t,function(a,n){e.push(n)}),t=e}else return[];return t.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,a){for(var n,i=1/0,o=0,s=e.length;o<s;o++){var l=e[o].value;if(l!=null){if(l===t||$(l)&&l===t+"")return o;a&&h(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(oi(c[1],t,f[1]))return o}else if(f[1]===1/0){if(oi(c[0],f[0],t))return o}else if(oi(c[0],f[0],t)&&oi(c[1],t,f[1]))return o;a&&h(f[0],o),a&&h(f[1],o)}}if(a)return t===1/0?e.length-1:t===-1/0?0:n;function h(v,d){var p=Math.abs(v-t);p<i&&(i=p,n=d)}},r.visualHandlers={color:{applyVisual:Ba("color"),getColorMapper:function(){var t=this.option;return Z(t.mappingMethod==="category"?function(e,a){return!a&&(e=this._normalizeData(e)),Za.call(this,e)}:function(e,a,n){var i=!!n;return!a&&(e=this._normalizeData(e)),n=wo(e,t.parsedVisual,n),i?n:li(n,"rgba")},this)},_normalizedToVisual:{linear:function(t){return li(wo(t,this.option.parsedVisual),"rgba")},category:Za,piecewise:function(t,e){var a=dl.call(this,e);return a==null&&(a=li(wo(t,this.option.parsedVisual),"rgba")),a},fixed:yr}},colorHue:ii(function(t,e){return ta(t,e)}),colorSaturation:ii(function(t,e){return ta(t,null,e)}),colorLightness:ii(function(t,e){return ta(t,null,null,e)}),colorAlpha:ii(function(t,e){return ky(t,e)}),decal:{applyVisual:Ba("decal"),_normalizedToVisual:{linear:null,category:Za,piecewise:null,fixed:null}},opacity:{applyVisual:Ba("opacity"),_normalizedToVisual:hl([0,1])},liftZ:{applyVisual:Ba("liftZ"),_normalizedToVisual:{linear:yr,category:yr,piecewise:yr,fixed:yr}},symbol:{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("symbol",n)},_normalizedToVisual:{linear:tv,category:Za,piecewise:function(t,e){var a=dl.call(this,e);return a==null&&(a=tv.call(this,t)),a},fixed:yr}},symbolSize:{applyVisual:Ba("symbolSize"),_normalizedToVisual:hl([0,1])}},r})();function U1(r){var t=r.pieceList;r.hasSpecialVisual=!1,w(t,function(e,a){e.originIndex=a,e.visual!=null&&(r.hasSpecialVisual=!0)})}function Y1(r){var t=r.categories,e=r.categoryMap={},a=r.visual;if(Cn(t,function(o,s){e[o]=s}),!z(a)){var n=[];K(a)?Cn(a,function(o,s){var l=e[s];n[l??Ki]=o}):n[Ki]=a,a=Og(r,n)}for(var i=t.length-1;i>=0;i--)a[i]==null&&(delete e[t[i]],t.pop())}function is(r,t){var e=r.visual,a=[];K(e)?Cn(e,function(i){a.push(i)}):e!=null&&a.push(e);var n={color:1,symbol:1};!t&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),Og(r,a)}function ii(r){return{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("color",r(e("color"),n))},_normalizedToVisual:hl([0,1])}}function tv(r){var t=this.option.visual;return t[Math.round(ce(r,[0,1],[0,t.length-1],!0))]||{}}function Ba(r){return function(t,e,a){a(r,this.mapValueToVisual(t))}}function Za(r){var t=this.option.visual;return t[this.option.loop&&r!==Ki?r%t.length:r]}function yr(){return this.option.visual[0]}function hl(r){return{linear:function(t){return ce(t,r,this.option.visual,!0)},category:Za,piecewise:function(t,e){var a=dl.call(this,e);return a==null&&(a=ce(t,r,this.option.visual,!0)),a},fixed:yr}}function dl(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var a=ze.findPieceIndex(r,e),n=e[a];if(n&&n.visual)return n.visual[this.type]}}function Og(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=X(t,function(e){var a=hh(e);return a||[0,0,0,1]})),t}var Z1={linear:function(r){return ce(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=ze.findPieceIndex(r,t,!0);if(e!=null)return ce(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??Ki},fixed:xt};function oi(r,t,e){return r?t<=e:t<e}function ca(r,t,e,a,n,i){r=r||0;var o=e[1]-e[0];if(n!=null&&(n=Kr(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(t[1]-t[0]);s=Kr(s,[0,o]),n=i=Kr(s,[n,i]),a=0}t[0]=Kr(t[0],e),t[1]=Kr(t[1],e);var l=os(t,a);t[a]+=r;var u=n||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[a]=Kr(t[a],f);var c;return c=os(t,a),n!=null&&(c.sign!==l.sign||c.span<n)&&(t[1-a]=t[a]+l.sign*n),c=os(t,a),i!=null&&c.span>i&&(t[1-a]=t[a]+c.sign*i),t}function os(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Kr(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var X1=256,$1=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Si.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),v=t.length;c.width=e,c.height=a;for(var d=0;d<v;++d){var p=t[d],y=p[0],g=p[1],m=p[2],_=n(m);h.globalAlpha=_,h.drawImage(s,y-f,g-f)}if(!c.width||!c.height)return c;for(var S=h.getImageData(0,0,c.width,c.height),b=S.data,x=0,C=b.length,T=this.minOpacity,D=this.maxOpacity,A=D-T;x<C;){var _=b[x+3]/256,M=Math.floor(_*(X1-1))*4;if(_>0){var P=o(_)?l:u;_>0&&(_=_*A+T),b[x++]=P[M],b[x++]=P[M+1],b[x++]=P[M+2],b[x++]=P[M+3]*_*256}else x+=4}return h.putImageData(S,0,0),c},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Si.createCanvas()),e=this.pointSize+this.blurSize,a=e*2;t.width=a,t.height=a;var n=t.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor=O.color.neutral99,n.beginPath(),n.arc(-e,e,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),t},r.prototype._getGradient=function(t,e){for(var a=this._gradientPixels,n=a[e]||(a[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r})();function K1(r,t,e){var a=r[1]-r[0];t=X(t,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=t.length,i=0;return function(o){var s;for(s=i;s<n;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===n)for(s=i-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<n&&e[s]}}function q1(r,t){var e=r[1]-r[0];return t=[(t[0]-r[0])/e,(t[1]-r[0])/e],function(a){return a>=t[0]&&a<=t[1]}}function rv(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var j1=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(e,n,0,e.getData().count()):rv(o)&&this._renderOnGeo(o,e,i,n)},t.prototype.incrementalPrepareRender=function(e,a,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,a,n,i){var o=a.coordinateSystem;o&&(rv(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnGridLike(a,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){pa(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,a,n,i,o){var s=e.coordinateSystem,l=xn(s,"cartesian2d"),u=xn(s,"matrix"),f,c,h,v;if(l){var d=s.getAxis("x"),p=s.getAxis("y");f=d.getBandWidth()+.5,c=p.getBandWidth()+.5,h=d.scale.getExtent(),v=p.scale.getExtent()}for(var y=this.group,g=e.getData(),m=e.getModel(["emphasis","itemStyle"]).getItemStyle(),_=e.getModel(["blur","itemStyle"]).getItemStyle(),S=e.getModel(["select","itemStyle"]).getItemStyle(),b=e.get(["itemStyle","borderRadius"]),x=rr(e),C=e.getModel("emphasis"),T=C.get("focus"),D=C.get("blurScope"),A=C.get("disabled"),M=l||u?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],P=n;P<i;P++){var L=void 0,E=g.getItemVisual(P,"style");if(l){var I=g.get(M[0],P),k=g.get(M[1],P);if(isNaN(g.get(M[2],P))||isNaN(I)||isNaN(k)||I<h[0]||I>h[1]||k<v[0]||k>v[1])continue;var N=s.dataToPoint([I,k]);L=new se({shape:{x:N[0]-f/2,y:N[1]-c/2,width:f,height:c},style:E})}else if(u){var R=s.dataToLayout([g.get(M[0],P),g.get(M[1],P)]).rect;if(xr(R.x))continue;L=new se({z2:1,shape:R,style:E})}else{if(isNaN(g.get(M[1],P)))continue;var B=s.dataToLayout([g.get(M[0],P)]),R=B.contentRect||B.rect;if(xr(R.x)||xr(R.y))continue;L=new se({z2:1,shape:R,style:E})}if(g.hasItemOption){var V=g.getItemModel(P),G=V.getModel("emphasis");m=G.getModel("itemStyle").getItemStyle(),_=V.getModel(["blur","itemStyle"]).getItemStyle(),S=V.getModel(["select","itemStyle"]).getItemStyle(),b=V.get(["itemStyle","borderRadius"]),T=G.get("focus"),D=G.get("blurScope"),A=G.get("disabled"),x=rr(V)}L.shape.r=b;var Y=e.getRawValue(P),Q="-";Y&&Y[2]!=null&&(Q=Y[2]+""),kr(L,x,{labelFetcher:e,labelDataIndex:P,defaultOpacity:E.opacity,defaultText:Q}),L.ensureState("emphasis").style=m,L.ensureState("blur").style=_,L.ensureState("select").style=S,tr(L,T,D,A),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),y.add(L),g.setItemGraphicEl(P,L),this._progressiveEls&&this._progressiveEls.push(L)}},t.prototype._renderOnGeo=function(e,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new $1;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=e.getViewRect().clone(),c=e.getRoamTransform();f.applyTransform(c);var h=Math.max(f.x,0),v=Math.max(f.y,0),d=Math.min(f.width+f.x,i.getWidth()),p=Math.min(f.height+f.y,i.getHeight()),y=d-h,g=p-v,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(C,T,D){var A=e.dataToPoint([C,T]);return A[0]-=h,A[1]-=v,A.push(D),A}),S=n.getExtent(),b=n.type==="visualMap.continuous"?q1(S,n.option.range):K1(S,n.getPieceList(),n.option.selected);u.update(_,y,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var x=new Et({style:{width:y,height:g,x:h,y:v,image:u.canvas},silent:!0});this.group.add(x)},t.type="heatmap",t})(Oe),Q1=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return In(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=vo.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:O.color.primary}}},t})(Ge);function eD(r){r.registerChartView(j1),r.registerSeriesModel(Q1)}var av={color:"fill",borderColor:"stroke"},J1={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Pt=ie(),eC=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,a){return In(null,this)},t.prototype.getDataParams=function(e,a,n){var i=r.prototype.getDataParams.call(this,e,a);return n&&(i.info=Pt(n).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t})(Ge);function tC(r,t){return t=t||[0,0],X(["x","y"],function(e,a){var n=this.getAxis(e),i=t[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function rC(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:Z(tC,r)}}}function aC(r,t){return t=t||[0,0],X([0,1],function(e){var a=t[e],n=r[e]/2,i=[],o=[];return i[e]=a-n,o[e]=a+n,i[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(o)[e])},this)}function nC(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:Z(aC,r)}}}function iC(r,t){var e=this.getAxis(),a=t instanceof Array?t[0]:t,n=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(a-n)-e.dataToCoord(a+n))}function oC(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:Z(iC,r)}}}function sC(r,t){return t=t||[0,0],X(["Radius","Angle"],function(e,a){var n="get"+e+"Axis",i=this[n](),o=t[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function lC(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),a=t.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=t.dataToRadius(n[0]),o=e.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:Z(sC,r)}}}function uC(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)},layout:function(a,n){return r.dataToLayout(a,n)}}}}function fC(r){var t=r.getRect();return{coordSys:{type:"matrix",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e,a){return r.dataToPoint(e,a)},layout:function(e,a){return r.dataToLayout(e,a)}}}}function cC(r,t,e,a){return r&&(r.legacy||r.legacy!==!1&&!e&&!a&&t!=="tspan"&&(t==="text"||F(r,"text")))}function vC(r,t,e){var a=r,n,i,o;if(t==="text")o=a;else{o={},F(a,"text")&&(o.text=a.text),F(a,"rich")&&(o.rich=a.rich),F(a,"textFill")&&(o.fill=a.textFill),F(a,"textStroke")&&(o.stroke=a.textStroke),F(a,"fontFamily")&&(o.fontFamily=a.fontFamily),F(a,"fontSize")&&(o.fontSize=a.fontSize),F(a,"fontStyle")&&(o.fontStyle=a.fontStyle),F(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=F(a,"textPosition");e?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),F(a,"textPosition")&&(n.position=a.textPosition),F(a,"textOffset")&&(n.offset=a.textOffset),F(a,"textRotation")&&(n.rotation=a.textRotation),F(a,"textDistance")&&(n.distance=a.textDistance)}return nv(o,r),w(o.rich,function(l){nv(l,l)}),{textConfig:n,textContent:i}}function nv(r,t){t&&(t.font=t.textFont||t.font,F(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),F(t,"textAlign")&&(r.align=t.textAlign),F(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),F(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),F(t,"textWidth")&&(r.width=t.textWidth),F(t,"textHeight")&&(r.height=t.textHeight),F(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),F(t,"textPadding")&&(r.padding=t.textPadding),F(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),F(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),F(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),F(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),F(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),F(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),F(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function iv(r,t,e){var a=r;a.textPosition=a.textPosition||e.position||"inside",e.offset!=null&&(a.textOffset=e.offset),e.rotation!=null&&(a.textRotation=e.rotation),e.distance!=null&&(a.textDistance=e.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||O.color.neutral99;ov(a,t);var o=a.textFill==null;return n?o&&(a.textFill=e.insideFill||O.color.neutral00,!a.textStroke&&e.insideStroke&&(a.textStroke=e.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||e.outsideFill||O.color.neutral00),!a.textStroke&&e.outsideStroke&&(a.textStroke=e.outsideStroke)),a.text=t.text,a.rich=t.rich,w(t.rich,function(s){ov(s,s)}),a}function ov(r,t){t&&(F(t,"fill")&&(r.textFill=t.fill),F(t,"stroke")&&(r.textStroke=t.fill),F(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),F(t,"font")&&(r.font=t.font),F(t,"fontStyle")&&(r.fontStyle=t.fontStyle),F(t,"fontWeight")&&(r.fontWeight=t.fontWeight),F(t,"fontSize")&&(r.fontSize=t.fontSize),F(t,"fontFamily")&&(r.fontFamily=t.fontFamily),F(t,"align")&&(r.textAlign=t.align),F(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),F(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),F(t,"width")&&(r.textWidth=t.width),F(t,"height")&&(r.textHeight=t.height),F(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),F(t,"padding")&&(r.textPadding=t.padding),F(t,"borderColor")&&(r.textBorderColor=t.borderColor),F(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),F(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),F(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),F(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),F(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),F(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),F(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),F(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),F(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),F(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var Bg={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},sv=Ie(Bg);tn(nn,function(r,t){return r[t]=1,r},{});nn.join(", ");var qi=["","style","shape","extra"],va=ie();function xu(r,t,e,a,n){var i=r+"Animation",o=Ol(r,a,n)||{},s=va(t).userDuring;return o.duration>0&&(o.during=s?Z(_C,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),U(o,e[i]),o}function hC(r,t,e,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=e.isAnimationEnabled(),l=va(r),u=t.style;l.userDuring=t.during;var f={},c={};if(xC(r,t,c),r.type==="compound")for(var h=r.shape.paths,v=t.shape.paths,d=0;d<v.length;d++){var p=v[d];ss("shape",p,h[d])}else ss("shape",t,c),ss("extra",t,c);if(!i&&s&&(SC(r,t,f),lv("shape",r,t,f),lv("extra",r,t,f),bC(r,t,u,f)),c.style=u,pC(r,c,o),yC(r,t),s)if(i){var y={};w(qi,function(m){var _=m?t[m]:t;_&&_.enterFrom&&(m&&(y[m]=y[m]||{}),U(m?y[m]:y,_.enterFrom))});var g=xu("enter",r,t,e,n);g.duration>0&&r.animateFrom(y,g)}else gC(r,t,n||0,e,f);dC(r,t),u?r.dirty():r.markRedraw()}function dC(r,t){for(var e=va(r).leaveToProps,a=0;a<qi.length;a++){var n=qi[a],i=n?t[n]:t;i&&i.leaveTo&&(e||(e=va(r).leaveToProps={}),n&&(e[n]=e[n]||{}),U(n?e[n]:e,i.leaveTo))}}function bu(r,t,e,a){if(r){var n=r.parent,i=va(r).leaveToProps;if(i){var o=xu("update",r,t,e,0);o.done=function(){n&&n.remove(r)},r.animateTo(i,o)}else n&&n.remove(r)}}function ia(r){return r==="all"}function pC(r,t,e){var a=t.style;if(!r.isGroup&&a){if(e){r.useStyle({});for(var n=r.animators,i=0;i<n.length;i++){var o=n[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(a)}t&&(t.style=null,t&&r.attr(t),t.style=a)}function gC(r,t,e,a,n){if(n){var i=xu("update",r,t,a,e);i.duration>0&&r.animateFrom(n,i)}}function yC(r,t){F(t,"silent")&&(r.silent=t.silent),F(t,"ignore")&&(r.ignore=t.ignore),r instanceof dh&&F(t,"invisible")&&(r.invisible=t.invisible),r instanceof We&&F(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var dt={},mC={setTransform:function(r,t){return dt.el[r]=t,this},getTransform:function(r){return dt.el[r]},setShape:function(r,t){var e=dt.el,a=e.shape||(e.shape={});return a[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=dt.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=dt.el,a=e.style;return a&&(a[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=dt.el.style;if(t)return t[r]},setExtra:function(r,t){var e=dt.el.extra||(dt.el.extra={});return e[r]=t,this},getExtra:function(r){var t=dt.el.extra;if(t)return t[r]}};function _C(){var r=this,t=r.el;if(t){var e=va(t).userDuring,a=r.userDuring;if(e!==a){r.el=r.userDuring=null;return}dt.el=t,a(mC)}}function lv(r,t,e,a){var n=e[r];if(n){var i=t[r],o;if(i){var s=e.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),ia(l))U(o,i);else for(var u=Ae(l),f=0;f<u.length;f++){var c=u[f],h=i[c];o[c]=h}else if(ia(s)||ue(s,r)>=0){!o&&(o=a[r]={});for(var v=Ie(i),f=0;f<v.length;f++){var c=v[f],h=i[c];wC(n[c],h)&&(o[c]=h)}}}}}function ss(r,t,e){var a=t[r];if(a)for(var n=e[r]={},i=Ie(a),o=0;o<i.length;o++){var s=i[o];n[s]=Ry(a[s])}}function SC(r,t,e){for(var a=t.transition,n=ia(a)?nn:Ae(a||[]),i=0;i<n.length;i++){var o=n[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];e[o]=s}}}function xC(r,t,e){for(var a=0;a<sv.length;a++){var n=sv[a],i=Bg[n],o=t[n];o&&(e[i[0]]=o[0],e[i[1]]=o[1])}for(var a=0;a<nn.length;a++){var s=nn[a];t[s]!=null&&(e[s]=t[s])}}function bC(r,t,e,a){if(e){var n=r.style,i;if(n){var o=e.transition,s=t.transition;if(o&&!ia(o)){var l=Ae(o);!i&&(i=a.style={});for(var u=0;u<l.length;u++){var f=l[u],c=n[f];i[f]=c}}else if(r.getAnimationStyleProps&&(ia(s)||ia(o)||ue(s,"style")>=0)){var h=r.getAnimationStyleProps(),v=h?h.style:null;if(v){!i&&(i=a.style={});for(var d=Ie(e),u=0;u<d.length;u++){var f=d[u];if(v[f]){var c=n[f];i[f]=c}}}}}}}function wC(r,t){return Mn(r)?r!==t:r!=null&&isFinite(r)}var Ng=ie(),CC=["percent","easing","shape","style","extra"];function MC(r){r.stopAnimation("keyframe"),r.attr(Ng(r))}function Vg(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(z(t)){w(t,function(s){Vg(r,s,e)});return}var a=t.keyframes,n=t.duration;if(e&&n==null){var i=Ol("enter",e,0);n=i&&i.duration}if(!(!a||!n)){var o=Ng(r);w(qi,function(s){if(!(s&&!r[s])){var l;a.sort(function(u,f){return u.percent-f.percent}),w(a,function(u){var f=r.animators,c=s?u[s]:u;if(c){var h=Ie(c);if(s||(h=Me(h,function(p){return ue(CC,p)<0})),!!h.length){l||(l=r.animate(s,t.loop,!0),l.scope="keyframe");for(var v=0;v<f.length;v++)f[v]!==l&&f[v].targetName===l.targetName&&f[v].stopTracks(h);s&&(o[s]=o[s]||{});var d=s?o[s]:o;w(h,function(p){d[p]=((s?r[s]:r)||{})[p]}),l.whenWithKeys(n*u.percent,c,h,u.easing)}}}),l&&l.delay(t.delay||0).duration(n).start(t.easing)}})}}}var kt="emphasis",qt="normal",wu="blur",Cu="select",ir=[qt,kt,wu,Cu],ls={normal:["itemStyle"],emphasis:[kt,"itemStyle"],blur:[wu,"itemStyle"],select:[Cu,"itemStyle"]},us={normal:["label"],emphasis:[kt,"label"],blur:[wu,"label"],select:[Cu,"label"]},TC=["x","y"],DC="e\0\0",Qe={normal:{},emphasis:{},blur:{},select:{}},AC={cartesian2d:rC,geo:nC,single:oC,polar:lC,calendar:uC,matrix:fC};function pl(r){return r instanceof We}function gl(r){return r instanceof dh}function LC(r,t){t.copyTransform(r),gl(t)&&gl(r)&&(t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t.invisible=r.invisible,t.ignore=r.ignore,pl(t)&&pl(r)&&t.setShape(r.shape))}var IC=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){this._progressiveEls=null;var o=this._data,s=e.getData(),l=this.group,u=uv(e,s,a,n);o||l.removeAll(),s.diff(o).add(function(c){fs(n,null,c,u(c,i),e,l,s)}).remove(function(c){var h=o.getItemGraphicEl(c);h&&bu(h,Pt(h).option,e)}).update(function(c,h){var v=o.getItemGraphicEl(h);fs(n,v,c,u(c,i),e,l,s)}).execute();var f=e.get("clip",!0)?sg(e.coordinateSystem,!1,e):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(e,a,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,a,n,i,o){var s=a.getData(),l=uv(a,s,n,i),u=this._progressiveEls=[];function f(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}for(var c=e.start;c<e.end;c++){var h=fs(null,null,c,l(c,o),a,this.group,s);h&&(h.traverse(f),u.push(h))}},t.prototype.eachRendered=function(e){pa(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,a,n,i){var o=a.element;if(o==null||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},t.type="custom",t})(Oe);function Mu(r){var t=r.type,e;if(t==="path"){var a=r.shape,n=a.width!=null&&a.height!=null?{x:a.x||0,y:a.y||0,width:a.width,height:a.height}:null,i=Gg(a);e=fn(i,null,n,a.layout||"center"),Pt(e).customPathData=i}else if(t==="image")e=new Et({}),Pt(e).customImagePath=r.style.image;else if(t==="text")e=new he({});else if(t==="group")e=new pe;else if(t==="compoundPath"){var a=r.shape;if(!a||!a.paths){var o="";ke(o)}var s=X(a.paths,function(f){if(f.type==="path")return fn(f.shape.pathData,f,null);var c=Rs(f.type);if(!c){var h="";ke(h)}return new c});e=new oh({shape:{paths:s}})}else{var l=Rs(t);if(!l){var o="";ke(o)}e=new l}return Pt(e).customGraphicType=t,e.name=r.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function Tu(r,t,e,a,n,i,o){MC(t);var s=n&&n.normal.cfg;s&&t.setTextConfig(s),a&&a.transition==null&&(a.transition=TC);var l=a&&a.style;if(l){if(t.type==="text"){var u=l;F(u,"textFill")&&(u.fill=u.textFill),F(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,c=pl(t)?l.decal:null;r&&c&&(c.dirty=!0,f=Vi(c,r)),l.__decalPattern=f}if(gl(t)&&l){var f=l.__decalPattern;f&&(l.decal=f)}hC(t,a,i,{dataIndex:e,isInit:o,clearStyle:!0}),Vg(t,a.keyframeAnimation,i)}function zg(r,t,e,a,n){var i=t.isGroup?null:t,o=n&&n[r].cfg;if(i){var s=i.ensureState(r);if(a===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=a||null;o&&(s.textConfig=o),kh(i)}}function PC(r,t,e){if(!r.isGroup){var a=r,n=e.currentZ,i=e.currentZLevel;a.z=n,a.zlevel=i;var o=t.z2;o!=null&&(a.z2=o||0);for(var s=0;s<ir.length;s++)kC(a,t,ir[s])}}function kC(r,t,e){var a=e===qt,n=a?t:ji(t,e),i=n?n.z2:null,o;i!=null&&(o=a?r:r.ensureState(e),o.z2=i||0)}function uv(r,t,e,a){var n=r.get("renderItem");if(typeof n=="string"){var i=WS(n);i&&(n=i)}var o=r.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):AC[o.type](o));for(var l=ae({getWidth:a.getWidth,getHeight:a.getHeight,getZr:a.getZr,getDevicePixelRatio:a.getDevicePixelRatio,value:b,style:C,ordinalRawValue:x,styleEmphasis:T,visual:M,barLayout:P,currentSeriesIndices:L,font:E},s.api||{}),u={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:s.coordSys,dataInsideLength:t.count(),encode:RC(r.getData()),itemPayload:r.get("itemPayload")||{}},f,c,h={},v={},d={},p={},y=0;y<ir.length;y++){var g=ir[y];d[g]=r.getModel(ls[g]),p[g]=r.getModel(us[g])}function m(I){return I===f?c||(c=t.getItemModel(I)):t.getItemModel(I)}function _(I,k){return t.hasItemOption?I===f?h[k]||(h[k]=m(I).getModel(ls[k])):m(I).getModel(ls[k]):d[k]}function S(I,k){return t.hasItemOption?I===f?v[k]||(v[k]=m(I).getModel(us[k])):m(I).getModel(us[k]):p[k]}return function(I,k){return f=I,c=null,h={},v={},n&&n(ae({dataIndexInside:I,dataIndex:t.getRawIndex(I),actionType:k?k.type:null},u),l)};function b(I,k){return k==null&&(k=f),t.getStore().get(t.getDimensionIndex(I||0),k)}function x(I,k){k==null&&(k=f),I=I||0;var N=t.getDimensionInfo(I);if(!N){var R=t.getDimensionIndex(I);return R>=0?t.getStore().get(R,k):void 0}var B=t.get(N.name,k),V=N&&N.ordinalMeta;return V?V.categories[B]:B}function C(I,k){k==null&&(k=f);var N=t.getItemVisual(k,"style"),R=N&&N.fill,B=N&&N.opacity,V=_(k,qt).getItemStyle();R!=null&&(V.fill=R),B!=null&&(V.opacity=B);var G={inheritColor:$(R)?R:O.color.neutral99},Y=S(k,qt),Q=Te(Y,null,G,!1,!0);Q.text=Y.getShallow("show")?J(r.getFormattedLabel(k,qt),Sn(t,k)):null;var ge=Ii(Y,G,!1);return A(I,V),V=iv(V,Q,ge),I&&D(V,I),V.legacy=!0,V}function T(I,k){k==null&&(k=f);var N=_(k,kt).getItemStyle(),R=S(k,kt),B=Te(R,null,null,!0,!0);B.text=R.getShallow("show")?ao(r.getFormattedLabel(k,kt),r.getFormattedLabel(k,qt),Sn(t,k)):null;var V=Ii(R,null,!0);return A(I,N),N=iv(N,B,V),I&&D(N,I),N.legacy=!0,N}function D(I,k){for(var N in k)F(k,N)&&(I[N]=k[N])}function A(I,k){I&&(I.textFill&&(k.textFill=I.textFill),I.textPosition&&(k.textPosition=I.textPosition))}function M(I,k){if(k==null&&(k=f),F(av,I)){var N=t.getItemVisual(k,"style");return N?N[av[I]]:null}if(F(J1,I))return t.getItemVisual(k,I)}function P(I){if(o.type==="cartesian2d"){var k=o.getBaseAxis();return Hx(ae({axis:k},I))}}function L(){return e.getCurrentSeriesIndices()}function E(I){return Xh(I,e)}}function RC(r){var t={};return w(r.dimensions,function(e){var a=r.getDimensionInfo(e);if(!a.isExtraCoord){var n=a.coordDim,i=t[n]=t[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(e)}}),t}function fs(r,t,e,a,n,i,o){if(!a){i.remove(t);return}var s=Du(r,t,e,a,n,i);return s&&o.setItemGraphicEl(e,s),s&&tr(s,a.focus,a.blurScope,a.emphasisDisabled),s}function Du(r,t,e,a,n,i){var o=-1,s=t;t&&Fg(t,a,n)&&(o=ue(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=Mu(a),s&&LC(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),a.tooltipDisabled&&(u.tooltipDisabled=!0),Qe.normal.cfg=Qe.normal.conOpt=Qe.emphasis.cfg=Qe.emphasis.conOpt=Qe.blur.cfg=Qe.blur.conOpt=Qe.select.cfg=Qe.select.conOpt=null,Qe.isLegacy=!1,OC(u,e,a,n,l,Qe),EC(u,e,a,n,l),Tu(r,u,e,a,Qe,n,l),F(a,"info")&&(Pt(u).info=a.info);for(var f=0;f<ir.length;f++){var c=ir[f];if(c!==qt){var h=ji(a,c),v=Au(a,h,c);zg(c,u,h,v,Qe)}}return PC(u,a,n),a.type==="group"&&BC(r,u,e,a,n),o>=0?i.replaceAt(u,o):i.add(u),u}function Fg(r,t,e){var a=Pt(r),n=t.type,i=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&FC(i)&&Gg(i)!==a.customPathData||n==="image"&&F(o,"image")&&o.image!==a.customImagePath}function EC(r,t,e,a,n){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&Fg(o,i,a)&&(o=null),o||(o=Mu(i),r.setClipPath(o)),Tu(null,o,t,i,null,a,n)}}function OC(r,t,e,a,n,i){if(!(r.isGroup||r.type==="compoundPath")){fv(e,null,i),fv(e,kt,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=Mu(o),r.setTextContent(f)),Tu(null,f,t,o,null,a,n);for(var c=o&&o.style,h=0;h<ir.length;h++){var v=ir[h];if(v!==qt){var d=i[v].conOpt;zg(v,f,d,Au(o,d,v),null)}}c?f.dirty():f.markRedraw()}}}}function fv(r,t,e){var a=t?ji(r,t):r,n=t?Au(r,a,kt):r.style,i=r.type,o=a?a.textConfig:null,s=r.textContent,l=s?t?ji(s,t):s:null;if(n&&(e.isLegacy||cC(n,i,!!o,!!l))){e.isLegacy=!0;var u=vC(n,i,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var f=l;!f.type&&(f.type="text")}var c=t?e[t]:e.normal;c.cfg=o,c.conOpt=l}function ji(r,t){return t?r?r[t]:null:r}function Au(r,t,e){var a=t&&t.style;return a==null&&e===kt&&r&&(a=r.styleEmphasis),a}function BC(r,t,e,a,n){var i=a.children,o=i?i.length:0,s=a.$mergeChildren,l=s==="byName"||a.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){VC({api:r,oldChildren:t.children()||[],newChildren:i||[],dataIndex:e,seriesModel:n,group:t});return}u&&t.removeAll();for(var f=0;f<o;f++){var c=i[f],h=t.childAt(f);c?(c.ignore==null&&(c.ignore=!1),Du(r,h,e,c,n,t)):h.ignore=!0}for(var v=t.childCount()-1;v>=f;v--){var d=t.childAt(v);NC(t,d,n)}}}function NC(r,t,e){t&&bu(t,Pt(r).option,e)}function VC(r){new gp(r.oldChildren,r.newChildren,cv,cv,r).add(vv).update(vv).remove(zC).execute()}function cv(r,t){var e=r&&r.name;return e??DC+t}function vv(r,t){var e=this.context,a=r!=null?e.newChildren[r]:null,n=t!=null?e.oldChildren[t]:null;Du(e.api,n,e.dataIndex,a,e.seriesModel,e.group)}function zC(r){var t=this.context,e=t.oldChildren[r];e&&bu(e,Pt(e).option,t.seriesModel)}function Gg(r){return r&&(r.pathData||r.d)}function FC(r){return r&&(F(r,"pathData")||F(r,"d"))}function tD(r){r.registerChartView(IC),r.registerSeriesModel(eC)}var mr=ie(),hv=ee,cs=Z,GC=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,a,n){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,e,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new pe,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),a.getZr().add(s);else{var h=me(dv,e,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,e)}gv(s,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var a=e.get("animation"),n=t.axis,i=n.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=Su(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(t,e,a,n,i){},r.prototype.createPointerEl=function(t,e,a,n){var i=e.pointer;if(i){var o=mr(t).pointerEl=new Yh[i.type](hv(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,n){if(e.label){var i=mr(t).labelEl=new he(hv(e.label));t.add(i),pv(i,n)}},r.prototype.updatePointerEl=function(t,e,a){var n=mr(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),a(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,a,n){var i=mr(t).labelEl;i&&(i.setStyle(e.label.style),a(i,{x:e.label.x,y:e.label.y}),pv(i,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Vl(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){er(u.event)},onmousedown:cs(this._onHandleDragMove,this,0,0),drift:cs(this._onHandleDragMove,this),ondragend:cs(this._onHandleDragEnd,this)}),a.add(n)),gv(n,e,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");z(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,go(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){dv(this._axisPointerModel,!e&&this._moveAnimation,this._handle,vs(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(vs(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(vs(n)),mr(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),a=this._group,n=this._handle;e&&a&&(this._lastGraphicKey=null,a&&e.remove(a),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Oi(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,a){return a=a||0,{x:t[a],y:t[1-a],width:e[a],height:e[1-a]}},r})();function dv(r,t,e,a){Hg(mr(e).lastProp,a)||(mr(e).lastProp=a,t?De(e,a,r):(e.stopAnimation(),e.attr(a)))}function Hg(r,t){if(K(r)&&K(t)){var e=!0;return w(t,function(a,n){e=e&&Hg(r[n],a)}),!!e}else return r===t}function pv(r,t){r[t.get(["label","show"])?"show":"hide"]()}function vs(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function gv(r,t,e){var a=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=e)})}function HC(r){var t=r.get("type"),e=r.getModel(t+"Style"),a;return t==="line"?(a=e.getLineStyle(),a.fill=null):t==="shadow"&&(a=e.getAreaStyle(),a.stroke=null),a}function WC(r,t,e,a,n){var i=e.get("value"),o=Wg(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Ln(s.get("padding")||0),u=s.getFont(),f=uh(o,u),c=n.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=n.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var p=n.verticalAlign;p==="bottom"&&(c[1]-=v),p==="middle"&&(c[1]-=v/2),UC(c,h,v,a);var y=s.get("backgroundColor");(!y||y==="auto")&&(y=t.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:Te(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function UC(r,t,e,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Wg(r,t,e,a,n){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:Gi(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};w(a,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),$(o)?i=o.replace("{value}",i):j(o)&&(i=o(s))}return i}function Ug(r,t,e){var a=to();return ch(a,a,e.rotation),Ey(a,a,e.position),Qt([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function YC(r,t,e,a,n,i){var o=It.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),WC(t,a,n,i,{position:Ug(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function ZC(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function XC(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var $C=(function(r){W(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),f=yv(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var h=HC(i),v=KC[u](s,c,f);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=$i(l.getRect(),n);YC(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=$i(a.axis.grid.getRect(),a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=Ug(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=yv(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[e.x,e.y];c[f]+=a[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t})(GC);function yv(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var KC={line:function(r,t,e){var a=ZC([t,e[0]],[t,e[1]],mv(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:XC([t-a/2,e[0]],[a,n],mv(r))}}};function mv(r){return r.dim==="x"?0:1}var qC=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:O.color.border,width:1,type:"dashed"},shadowStyle:{color:O.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:O.color.neutral00,padding:[5,7,5,7],backgroundColor:O.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:O.color.accent40,throttle:40}},t})(re),Lt=ie(),jC=w;function Yg(r,t,e){if(!be.node){var a=t.getZr();Lt(a).records||(Lt(a).records={}),QC(a,t);var n=Lt(a).records[r]||(Lt(a).records[r]={});n.handler=e}}function QC(r,t){if(Lt(r).initialized)return;Lt(r).initialized=!0,e("click",me(_v,"click")),e("mousemove",me(_v,"mousemove")),e("globalout",eM);function e(a,n){r.on(a,function(i){var o=tM(t);jC(Lt(r).records,function(s){s&&n(s,i,o.dispatchAction)}),JC(o.pendings,t)})}}function JC(r,t){var e=r.showTip.length,a=r.hideTip.length,n;e?n=r.showTip[e-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function eM(r,t,e){r.handler("leave",null,e)}function _v(r,t,e,a){t.handler(r,e,a)}function tM(r){var t={showTip:[],hideTip:[]},e=function(a){var n=t[a.type];n?n.push(a):(a.dispatchAction=e,r.dispatchAction(a))};return{dispatchAction:e,pendings:t}}function yl(r,t){if(!be.node){var e=t.getZr(),a=(Lt(e).records||{})[r];a&&(Lt(e).records[r]=null)}}var rM=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=a.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Yg("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})})},t.prototype.remove=function(e,a){yl("axisPointer",a)},t.prototype.dispose=function(e,a){yl("axisPointer",a)},t.type="axisPointer",t})(He);function Zg(r,t){var e=[],a=r.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=Dr(i,r);if(o==null||o<0||z(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(X(l.dimensions,function(g){return i.mapDimension(g)}),o))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),e=[y.x+y.width/2,y.y+y.height/2]}return{point:e,el:s}}var Sv=ie();function aM(r,t,e){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||Z(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){yi(n)&&(n=Zg({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=yi(n),u=i.axesInfo,f=s.axesInfo,c=a==="leave"||yi(n),h={},v={},d={list:[],map:{}},p={showPointer:me(iM,v),showTooltip:me(oM,d)};w(s.coordSysMap,function(g,m){var _=l||g.containPoint(n);w(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,C=fM(u,S);if(!c&&_&&(!u||C)){var T=C&&C.value;T==null&&!l&&(T=x.pointToData(n)),T!=null&&xv(S,T,p,!1,h)}})});var y={};return w(f,function(g,m){var _=g.linkGroup;_&&!v[m]&&w(_.axesInfo,function(S,b){var x=v[b];if(S!==g&&x){var C=x.value;_.mapper&&(C=g.axis.scale.parse(_.mapper(C,bv(S),bv(g)))),y[g.key]=C}})}),w(y,function(g,m){xv(f[m],g,p,!0,h)}),sM(v,f,h),lM(d,n,r,o),uM(f,o,e),h}}function xv(r,t,e,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=nM(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&U(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function nM(r,t){var e=t.axis,a=e.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return w(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(a),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,e);h=v.dataIndices,c=v.nestestValue}else{if(h=l.indicesOfNearest(a,f[0],r,e.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var d=r-c,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,n=c,i.length=0),w(h,function(y){i.push({seriesIndex:l.seriesIndex,dataIndexInside:y,dataIndex:l.getData().getRawIndex(y)})}))}}),{payloadBatch:i,snapToValue:n}}function iM(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function oM(r,t,e,a){var n=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=wn(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function sM(r,t,e){var a=e.axesInfo=[];w(t,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function lM(r,t,e,a){if(yi(t)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function uM(r,t,e){var a=e.getZr(),n="axisPointerLastHighlights",i=Sv(a)[n]||{},o=Sv(a)[n]={};w(r,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&w(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];w(i,function(u,f){!o[f]&&l.push(u)}),w(o,function(u,f){!i[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function fM(r,t){for(var e=0;e<(r||[]).length;e++){var a=r[e];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function bv(r){var t=r.axis.model,e={},a=e.axisDim=r.axis.dim;return e.axisIndex=e[a+"AxisIndex"]=t.componentIndex,e.axisName=e[a+"AxisName"]=t.name,e.axisId=e[a+"AxisId"]=t.id,e}function yi(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Xg(r){kg.registerAxisPointerClass("CartesianAxisPointer",$C),r.registerComponentModel(qC),r.registerComponentView(rM),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!z(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=h1(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},aM)}function rD(r){Xe(T1),Xe(Xg)}var cM=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a,n){var i=Er(e);r.prototype.init.apply(this,arguments),wv(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),wv(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.layoutMode="box",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:O.color.axisLine,width:1,type:"solid"}},itemStyle:{color:O.color.neutral00,borderWidth:1,borderColor:O.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:O.size.s,color:O.color.secondary},monthLabel:{show:!0,position:"start",margin:O.size.s,align:"center",formatter:null,color:O.color.secondary},yearLabel:{show:!0,position:null,margin:O.size.xl,formatter:null,color:O.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t})(re);function wv(r,t){var e=r.cellSize,a;z(e)?a=e:a=r.cellSize=[e,e],a.length===1&&(a[1]=a[0]);var n=X([0,1],function(i){return z0(t,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});Rt(r,t,{type:"box",ignoreSize:n})}var vM=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group;i.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(e,s,i),this._renderLines(e,s,l,i),this._renderYearText(e,s,l,i),this._renderMonthText(e,u,l,i),this._renderWeekText(e,u,s,l,i)},t.prototype._renderDayRect=function(e,a,n){for(var i=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToCalendarLayout([u],!1).tl,c=new se({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(c)}},t.prototype._renderLines=function(e,a,n,i){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=a.start,h=0;c.time<=a.end.time;h++){d(c.formatedDate),h===0&&(c=s.getDateInfo(a.start.y+"-"+a.start.m));var v=c.date;v.setMonth(v.getMonth()+1),c=s.getDateInfo(v)}d(s.getNextNDay(a.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToCalendarLayout([p],!1).tl);var y=o._getLinePointsOfOneWeek(e,p,n);o._tlpoints.push(y[0]),o._blpoints.push(y[y.length-1]),u&&o._drawSplitline(y,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,i)},t.prototype._getEdgesPoints=function(e,a,n){var i=[e[0].slice(),e[e.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},t.prototype._drawSplitline=function(e,a,n){var i=new or({z2:20,shape:{points:e},style:a});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,a,n){for(var i=e.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToCalendarLayout([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[n==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,a){return $(e)&&e?D0(e,a):j(e)?e(a):a.nameMap},t.prototype._yearTextPositionControl=function(e,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,a,n,i){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,h=n==="horizontal"?0:1,v={top:[f,u[h][1]],bottom:[f,u[1-h][1]],left:[u[1-h][0],c],right:[u[h][0],c]},d=a.start.y;+a.end.y>+a.start.y&&(d=d+"-"+a.end.y);var p=o.get("formatter"),y={start:a.start.y,end:a.end.y,nameMap:d},g=this._formatterLabel(p,y),m=new he({z2:30,style:Te(o,{text:g}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,v[l],n,l,s)),i.add(m)}},t.prototype._monthTextPositionControl=function(e,a,n,i,o){var s="left",l="top",u=e[0],f=e[1];return n==="horizontal"?(f=f+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,a,n,i){var o=e.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||$(s))&&(s&&(a=Ns(s)||a),s=a.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,v=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=o.get("silent"),y=0;y<c[h].length-1;y++){var g=c[h][y].slice(),m=this._firstDayOfMonth[y];if(d){var _=this._firstDayPoints[y];g[v]=(_[v]+c[0][y+1][v])/2}var S=o.get("formatter"),b=s[+m.m-1],x={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:b},C=this._formatterLabel(S,x),T=new he({z2:30,style:U(Te(o,{text:C}),this._monthTextPositionControl(g,d,n,u,l)),silent:p});i.add(T)}}},t.prototype._weekTextPositionControl=function(e,a,n,i,o){var s="center",l="middle",u=e[0],f=e[1],c=n==="start";return a==="horizontal"?(u=u+i+(c?1:-1)*o[0]/2,s=c?"right":"left"):(f=f+i+(c?1:-1)*o[1]/2,l=c?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(e,a,n,i,o){var s=e.getModel("dayLabel");if(s.get("show")){var l=e.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),c=s.get("margin"),h=l.getFirstDayOfWeek();if(!f||$(f)){f&&(a=Ns(f)||a);var v=a.get(["time","dayOfWeekShort"]);f=v||X(a.get(["time","dayOfWeekAbbr"]),function(x){return x[0]})}var d=l.getNextNDay(n.end.time,7-n.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];c=ne(c,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(n.start.time,-(7+n.fweek)).time,c=-c);for(var y=s.get("silent"),g=0;g<7;g++){var m=l.getNextNDay(d,g),_=l.dataToCalendarLayout([m.time],!1).center,S=g;S=Math.abs((g+h)%7);var b=new he({z2:30,style:U(Te(s,{text:f[S]}),this._weekTextPositionControl(_,i,u,c,p)),silent:y});o.add(b)}}},t.type="calendar",t})(He),hs=864e5,hM=(function(){function r(t,e,a){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=t,this._update(e,a)}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(t){t=Pr(t);var e=t.getFullYear(),a=t.getMonth()+1,n=a<10?"0"+a:""+a,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:e+"",m:n,d:o,day:s,time:t.getTime(),formatedDate:e+"-"+n+"-"+o,date:t}},r.prototype.getNextNDay=function(t,e){return e=e||0,e===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},r.prototype._update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var a=this._rangeInfo.weeks||1,n=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[a,7]:[7,a];w([0,1],function(c){f(i,c)&&(o[n[c]]=i[c]*s[c])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=rt(o,l);w([0,1],function(c){f(i,c)||(i[c]=u[n[c]]/s[c])});function f(c,h){return c[h]!=null&&c[h]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(t,e,a){a=a||[],z(t)&&(t=t[0]),e==null&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,o=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<i.end.time+hs))return a[0]=a[1]=NaN,a;var s=n.day,l=this._getRangeInfo([i.start.time,o]).nthWeek;return this._orient==="vertical"?(a[0]=this._rect.x+s*this._sw+this._sw/2,a[1]=this._rect.y+l*this._sh+this._sh/2):(a[0]=this._rect.x+l*this._sw+this._sw/2,a[1]=this._rect.y+s*this._sh+this._sh/2),a},r.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},r.prototype.dataToLayout=function(t,e,a){a=a||{};var n=a.rect=a.rect||{},i=a.contentRect=a.contentRect||{},o=this.dataToPoint(t,e);return n.x=o[0]-this._sw/2,n.y=o[1]-this._sh/2,n.width=this._sw,n.height=this._sh,Ve.copy(i,n),vn(i,this._lineWidth/2,!0,!0),a},r.prototype.dataToCalendarLayout=function(t,e){var a=this.dataToPoint(t,e);return{center:a,tl:[a[0]-this._sw/2,a[1]-this._sh/2],tr:[a[0]+this._sw/2,a[1]-this._sh/2],br:[a[0]+this._sw/2,a[1]+this._sh/2],bl:[a[0]-this._sw/2,a[1]+this._sh/2]}},r.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,a=Math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(a,e-1,n):this._getDateByWeeksAndDay(e,a-1,n)},r.prototype.convertToPixel=function(t,e,a){var n=ds(e);return n===this?n.dataToPoint(a):null},r.prototype.convertToLayout=function(t,e,a){var n=ds(e);return n===this?n.dataToLayout(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=ds(e);return n===this?n.pointToData(a):null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var t=this._model.get("range"),e;if(z(t)&&t.length===1&&(t=t[0]),z(t))e=t;else{var a=t.toString();if(/^\d{4}$/.test(a)&&(e=[a+"-01-01",a+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(a)){var n=this.getDateInfo(a),i=n.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);e=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(a)&&(e=[a,a])}if(!e)return t;var s=this._getRangeInfo(e);return s.start.time>s.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],a;e[0].time>e[1].time&&(a=!0,e.reverse());var n=Math.floor(e[1].time/hs)-Math.floor(e[0].time/hs)+1,i=new Date(e[0].time),o=i.getDate(),s=e[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-e[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-e[1].time)*u>0;)n-=u,i.setDate(l-u);var f=Math.floor((n+e[0].day+6)/7),c=a?-f+1:f-1;return a&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:n,weeks:f,nthWeek:c,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,a){var n=this._getRangeInfo(a);if(t>n.weeks||t===0&&e<n.fweek||t===n.weeks&&e>n.lweek)return null;var i=(t-1)*7-n.fweek+e,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(t,e){var a=[];return t.eachComponent("calendar",function(n){var i=new r(n,t,e);a.push(i),n.coordinateSystem=i}),t.eachComponent(function(n,i){ud({targetModel:i,coordSysType:"calendar",coordSysProvider:R0})}),a},r.dimensions=["time","value"],r})();function ds(r){var t=r.calendarModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}function aD(r){r.registerComponentModel(cM),r.registerComponentView(vM),r.registerCoordinateSystem("calendar",hM)}var Cv=["x","y","radius","angle","single"],dM=["cartesian2d","polar","singleAxis"];function pM(r){var t=r.get("coordinateSystem");return ue(dM,t)>=0}function jt(r){return r+"Axis"}function gM(r,t){var e=q(),a=[],n=q();r.eachComponent({mainType:"dataZoom",query:t},function(f){n.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!n.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){n.set(f.uid,!0),a.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(h,v){var d=e.get(h);d&&d[v]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,h){(e.get(c)||e.set(c,[]))[h]=!0})}return a}function $g(r){var t=r.ecModel,e={infoList:[],infoMap:q()};return r.eachTargetAxis(function(a,n){var i=t.getComponent(jt(a),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(i)}}}),e}var ps=(function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r})(),Qi=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,a,n){var i=Mv(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var a=Mv(e);oe(this.option,e,!0),oe(this.settledOption,a,!0),this._doInit(a)},t.prototype._doInit=function(e){var a=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),a=this._targetAxisInfoMap=q(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var a=!1;return w(Cv,function(n){var i=this.getReferringComponents(jt(n),lm);if(i.specified){a=!0;var o=new ps;w(i.models,function(s){o.add(s.componentIndex)}),e.set(n,o)}},this),a},t.prototype._fillAutoTargetAxisByOrient=function(e,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===a}});l(s,"single")}function l(u,f){var c=u[0];if(c){var h=new ps;if(h.add(c.componentIndex),e.set(f,h),i=!1,f==="x"||f==="y"){var v=c.getReferringComponents("grid",Ne).models[0];v&&w(u,function(d){c.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Ne).models[0]&&h.add(d.componentIndex)})}}}i&&w(Cv,function(u){if(i){var f=n.findComponents({mainType:jt(u),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var c=new ps;c.add(f[0].componentIndex),e.set(u,c),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(a){!e&&(e=a)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var a=this._rangePropMode,n=this.get("rangeMode");w([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(a,n){e==null&&(e=this.ecModel.getComponent(jt(a),n))},this),e},t.prototype.eachTargetAxis=function(e,a){this._targetAxisInfoMap.each(function(n,i){w(n.indexList,function(o){e.call(a,i,o)})})},t.prototype.getAxisProxy=function(e,a){var n=this.getAxisModel(e,a);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,a){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[a])return this.ecModel.getComponent(jt(e),a)},t.prototype.setRawRange=function(e){var a=this.option,n=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(a[i[0]]=n[i[0]]=e[i[0]],a[i[1]]=n[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var a=this.option;w(["start","startValue","end","endValue"],function(n){a[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,a){if(e==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,a).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;a||(a=u)}return a},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t})(re);function Mv(r){var t={};return w(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}var Kg=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){this.dataZoomModel=e,this.ecModel=a,this.api=n},t.type="dataZoom",t})(He),Qr=w,Tv=_r,yM=(function(){function r(t,e,a,n){this._dimName=t,this._axisIndex=e,this.ecModel=n,this._dataZoomModel=a}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(pM(e)){var a=jt(this._dimName),n=e.getReferringComponents(a,Ne).models[0];n&&this._axisIndex===n.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return ee(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,a=this.getAxisModel(),n=a.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;Qr(["start","end"],function(h,v){var d=t[h],p=t[h+"Value"];i[v]==="percent"?(d==null&&(d=o[v]),p=n.parse(ce(d,o,e))):(u=!0,p=p==null?e[v]:n.parse(p),d=ce(p,e,o)),l[v]=p==null||isNaN(p)?e[v]:p,s[v]=d==null||isNaN(d)?o[v]:d}),Tv(l),Tv(s);var f=this._minMaxSpan;u?c(l,s,e,o,!1):c(s,l,o,e,!0);function c(h,v,d,p,y){var g=y?"Span":"ValueSpan";ca(0,h,d,"all",f["min"+g],f["max"+g]);for(var m=0;m<2;m++)v[m]=ce(h[m],d,p,!0),y&&(v[m]=n.parse(v[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=mM(this,this._dimName,e),this._updateMinMaxSpan();var a=this.calculateDataWindow(t.settledOption);this._valueWindow=a.valueWindow,this._percentWindow=a.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var a=this._dimName,n=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;Qr(n,function(l){var u=l.getData(),f=u.mapDimensionsAll(a);if(f.length){if(i==="weakFilter"){var c=u.getStore(),h=X(f,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var d,p,y,g=0;g<f.length;g++){var m=c.get(h[g],v),_=!isNaN(m),S=m<o[0],b=m>o[1];if(_&&!S&&!b)return!0;_&&(y=!0),S&&(d=!0),b&&(p=!0)}return y&&d&&p})}else Qr(f,function(v){if(i==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});Qr(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,a=this._dataExtent;Qr(["min","max"],function(n){var i=e.get(n+"Span"),o=e.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=ce(a[0]+o,a,[0,100],!0):i!=null&&(o=ce(i,[0,100],a,!0)-a[0]),t[n+"Span"]=i,t[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,a=this._valueWindow;if(e){var n=gh(a,[0,500]);n=Math.min(n,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),e[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r})();function mM(r,t,e){var a=[1/0,-1/0];Qr(e,function(o){cb(a,o.getData(),t)});var n=r.getAxisModel(),i=Rp(n.axis.scale,n,a).calculate();return[i.min,i.max]}var _M={getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(jt(o),s);n(o,s,l,i)})})}t(function(n,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new yM(n,i,s,r),e.push(o.__dzAxisProxy))});var a=q();return w(e,function(n){w(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).reset(e)}),e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var a=e.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};function SM(r){r.registerAction("dataZoom",function(t,e){var a=gM(e,t);w(a,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Dv=!1;function qg(r){Dv||(Dv=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,_M),SM(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function xM(r,t){var e=Ln(t.get("padding")),a=t.getItemStyle(["color","opacity"]);a.fill=t.get("backgroundColor");var n=new se({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:a,silent:!0,z2:-1});return n}var bM=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:O.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:O.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:O.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:O.color.tertiary,fontSize:14}},t})(re);function jg(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function Qg(r){if(be.domSupported){for(var t=document.documentElement.style,e=0,a=r.length;e<a;e++)if(r[e]in t)return r[e]}}var Jg=Qg(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),wM=Qg(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function ey(r,t){if(!r)return t;t=od(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function CM(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var MM=ey(wM,"transition"),Lu=ey(Jg,"transform"),TM="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(be.transform3dSupported?"will-change:transform;":"");function DM(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function AM(r,t,e){if(!$(e)||e==="inside")return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");t=Ar(t);var i=DM(e),o=Math.max(Math.round(n)*1.5,6),s="",l=Lu+":",u;ue(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+n,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*n)/2+Math.SQRT2*n-(h-c)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=t+" solid "+n+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'<div style="'+p.join("")+'"></div>'}function LM(r,t,e){var a="cubic-bezier(0.23,1,0.32,1)",n="",i="";return e&&(n=" "+r/2+"s "+a,i="opacity"+n+",visibility"+n),t||(n=" "+r+"s "+a,i+=(i.length?",":"")+(be.transformSupported?""+Lu+n:",left"+n+",top"+n)),MM+":"+i}function Av(r,t,e){var a=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!be.transformSupported)return e?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=be.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return e?"top:0;left:0;"+Lu+":"+o+";":[["top",0],["left",0],[Jg,o]]}function IM(r){var t=[],e=r.get("fontSize"),a=r.getTextColor();a&&t.push("color:"+a),t.push("font:"+r.getFont());var n=J(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+n+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),w(["decoration","align"],function(u){var f=r.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function PM(r,t,e,a){var n=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),c=r.getModel("textStyle"),h=Nd(r,"html"),v=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+v),t&&i>0&&n.push(LM(i,e,a)),o&&n.push("background-color:"+o),w(["width","color","radius"],function(d){var p="border-"+d,y=od(p),g=r.get(y);g!=null&&n.push(p+":"+g+(d==="color"?"":"px"))}),n.push(IM(c)),h!=null&&n.push("padding:"+Ln(h).join("px ")+"px"),n.join(";")+";"}function Lv(r,t,e,a,n){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&By(r,o,e,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var kM=(function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,be.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=t.getZr(),i=e.appendTo,o=i&&($(i)?document.querySelector(i):Vu(i)?i:j(i)&&i(t.getDom()));Lv(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(a),this._api=t,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();Oy(f,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),a=CM(e,"position"),n=e.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=TM+PM(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+Av(i[0],i[1],!0)+("border-color:"+Ar(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,a,n,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if($(i)&&a.get("trigger")==="item"&&!jg(a)&&(s=AM(a,n,i)),$(t))o.innerHTML=t+s;else if(t){o.innerHTML="",z(t)||(t=[t]);for(var l=0;l<t.length;l++)Vu(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(this.el){var a=this._styleCoord;if(Lv(a,this._zr,this._container,t,e),a[0]!=null&&a[1]!=null){var n=this.el.style,i=Av(a[0],a[1]);w(i,function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",be.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Z(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;Ny(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var a=e.parentNode;a&&a.removeChild(e)}this.el=this._container=null},r})(),RM=(function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Pv(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,a,n,i){var o=this;K(t)&&ke(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new he({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:Nd(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),w(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),w(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),a=Iv(t.style);return[e.width+a.left+a.right,e.height+a.top+a.bottom]},r.prototype.moveTo=function(t,e){var a=this.el;if(a){var n=this._styleCoord;Pv(n,this._zr,t,e),t=n[0],e=n[1];var i=a.style,o=Xt(i.borderWidth||0),s=Iv(i);a.x=t+o+s.left,a.y=e+o+s.top,a.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Z(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function Xt(r){return Math.max(0,r)}function Iv(r){var t=Xt(r.shadowBlur||0),e=Xt(r.shadowOffsetX||0),a=Xt(r.shadowOffsetY||0);return{left:Xt(t-e),right:Xt(t+e),top:Xt(t-a),bottom:Xt(t+a)}}function Pv(r,t,e,a){r[0]=e,r[1]=a,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var EM=new se({shape:{x:-1,y:-1,width:2,height:2}}),OM=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){if(!(be.node||!a.getDom())){var n=e.getComponent("tooltip"),i=this._renderMode=fm(n.get("renderMode"));this._tooltipContent=i==="richText"?new RM(a):new kM(a,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,a,n){if(!(be.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=a,this._api=n;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?go(this,"_updatePosition",50,"fixRate"):Oi(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,a=e.get("triggerOn");Yg("itemTooltip",this._api,Z(function(n,i,o){a!=="none"&&(a.indexOf(n)>=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,a=this._ecModel,n=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,a,n,i){if(!(i.from===this.uid||be.node||!n.getDom())){var o=kv(i,n);this._ticket="";var s=i.dataByCoordSys,l=zM(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=EM;f.x=i.x,f.y=i.y,f.update(),te(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,a,n,i))return;var c=Zg(i,a),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(kv(i,n))},t.prototype._manuallyAxisShowTip=function(e,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var f=u.getData(),c=Na([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,a){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var s=te(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;ea(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(te(f).dataIndex!=null?l=f:te(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(e,l,a):u?this._showComponentItemTooltip(e,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},t.prototype._showOrMove=function(e,a){var n=e.get("showDelay");a=Z(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},t.prototype._showAxisTooltip=function(e,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=Na([a.tooltipOption],i),l=this._renderMode,u=[],f=Lr("section",{blocks:[],noHeader:!0}),c=[],h=new Oo;w(e,function(m){w(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=Wg(b,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),C=Lr("section",{header:x,noHeader:!Tn(x),sortBlocks:!0,blocks:[]});f.blocks.push(C),w(_.seriesDataIndices,function(T){var D=n.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,M=D.getDataParams(A);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Gi(S.axis,{value:b}),M.axisValueLabel=x,M.marker=h.makeTooltipMarker("item",Ar(M.color),l);var P=Lf(D.formatTooltip(A,!0,null)),L=P.frag;if(L){var E=Na([D],i).get("valueFormatter");C.blocks.push(E?U({valueFormatter:E},L):L)}P.text&&c.push(P.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var v=a.position,d=s.get("order"),p=Of(f,h,l,d,n.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var y=l==="richText"?`
7
+ `];function Lr(r,t){return t.type=r,t}function Hs(r){return r.type==="section"}function kd(r){return Hs(r)?W_:U_}function Rd(r){if(Hs(r)){var t=0,e=r.blocks.length,a=e>1||e>0&&!r.noHeader;return w(r.blocks,function(n){var i=Rd(n);i>=t&&(t=i+ +(a&&(!i||Hs(n)&&!n.noHeader)))}),t}return 0}function W_(r,t,e,a){var n=t.noHeader,i=Y_(Rd(t)),o=[],s=t.blocks||[];St(!s||z(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(F(u,l)){var f=new D_(u[l],null);s.sort(function(p,y){return f.evaluate(p.sortParam,y.sortParam)})}else l==="seriesDesc"&&s.reverse()}w(s,function(p,y){var g=t.valueFormatter,m=kd(p)(g?U(U({},r),{valueFormatter:g}):r,p,y>0?i.html:0,a);m!=null&&o.push(m)});var c=r.renderMode==="richText"?o.join(i.richText):Ws(a,o.join(""),n?e:i.html);if(n)return c;var h=Vs(t.header,"ordinal",r.useUTC),v=Pd(a,r.renderMode).nameStyle,d=Id(a);return r.renderMode==="richText"?Ed(r,h,v)+i.richText+c:Ws(a,'<div style="'+v+";"+d+';">'+Ze(h)+"</div>"+c,e)}function U_(r,t,e,a){var n=r.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=z(S)?S:[S],X(S,function(b,x){return Vs(b,z(v)?v[x]:v,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||O.color.secondary,n),h=i?"":Vs(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),p=!s||!i,y=!s&&i,g=Pd(a,n),m=g.nameStyle,_=g.valueStyle;return n==="richText"?(s?"":c)+(i?"":Ed(r,h,m))+(o?"":$_(r,d,p,y,_)):Ws(a,(s?"":c)+(i?"":Z_(h,!s,m))+(o?"":X_(d,p,y,_)),e)}}function Ef(r,t,e,a,n,i){if(r){var o=kd(r),s={useUTC:n,renderMode:e,orderMode:a,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function Y_(r){return{html:G_[r],richText:H_[r]}}function Ws(r,t,e){var a='<div style="clear:both"></div>',n="margin: "+e+"px 0 0",i=Id(r);return'<div style="'+n+";"+i+';">'+t+a+"</div>"}function Z_(r,t,e){var a=t?"margin-left:2px":"";return'<span style="'+e+";"+a+'">'+Ze(r)+"</span>"}function X_(r,t,e,a){var n=e?"10px":"20px",i=t?"float:right;margin-left:"+n:"";return r=z(r)?r:[r],'<span style="'+i+";"+a+'">'+X(r,function(o){return Ze(o)}).join("&nbsp;&nbsp;")+"</span>"}function Ed(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function $_(r,t,e,a,n){var i=[n],o=a?10:20;return e&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(z(t)?t.join(" "):t,i)}function Od(r,t){var e=r.getData().getItemVisual(t,"style"),a=e[r.visualDrawType];return Ar(a)}function Bd(r,t){var e=r.get("padding");return e??(t==="richText"?[8,10]:10)}var Oo=(function(){function r(){this.richTextStyles={},this._nextStyleNameId=mh()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,a){var n=a==="richText"?this._generateStyleName():null,i=D0({color:e,type:t,renderMode:a,markerId:n});return $(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(t,e){var a={};z(e)?w(e,function(i){return U(a,i)}):U(a,e);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+t+"}"},r})();function K_(r){var t=r.series,e=r.dataIndex,a=r.multipleSeries,n=t.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(e),l=z(s),u=Od(t,e),f,c,h,v;if(o>1||l&&!o){var d=q_(s,t,e,i,u);f=d.inlineValues,c=d.inlineValueTypes,h=d.blocks,v=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);v=f=la(n,e,i[0]),c=p.type}else v=f=l?s[0]:s;var y=Ml(t),g=y&&t.name||"",m=n.getName(e),_=a?g:m;return Lr("section",{header:g,noHeader:a||!y,sortParam:v,blocks:[Lr("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Tn(_),value:f,valueType:c,dataIndex:e})].concat(h||[])})}function q_(r,t,e,a,n){var i=t.getData(),o=tn(r,function(c,h,v){var d=i.getDimensionInfo(v);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?w(a,function(c){f(la(i,e,c),c)}):w(r,f);function f(c,h){var v=i.getDimensionInfo(h);!v||v.otherDims.tooltip===!1||(o?u.push(Lr("nameValue",{markerType:"subItem",markerColor:n,name:v.displayName,value:c,valueType:v.type})):(s.push(c),l.push(v.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Gt=ie();function Fn(r,t){return r.getName(t)||r.getId(t)}var j_="__universalTransitionEnabled",Ge=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return t.prototype.init=function(e,a,n){this.seriesIndex=this.componentIndex,this.dataTask=Qa({count:J_,reset:eS}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n);var i=Gt(this).sourceManager=new Ld(this);i.prepareSource();var o=this.getInitialData(e,n);Bf(o,this),this.dataTask.context.data=o,Gt(this).dataBeforeProcessed=o,Of(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(e,a){var n=pn(this),i=n?Er(e):{},o=this.subType;re.hasClass(o)&&(o+="Series"),oe(e,a.getTheme().get(this.subType)),oe(e,this.getDefaultOption()),Ms(e,"label",["show"]),this.fillDataTextStyle(e.data),n&&Rt(e,i,n)},t.prototype.mergeOption=function(e,a){e=oe(this.option,e,!0),this.fillDataTextStyle(e.data);var n=pn(this);n&&Rt(this.option,e,n);var i=Gt(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(e,a);Bf(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Gt(this).dataBeforeProcessed=o,Of(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(e){if(e&&!Ke(e))for(var a=["show"],n=0;n<e.length;n++)e[n]&&e[n].label&&Ms(e[n],"label",a)},t.prototype.getInitialData=function(e,a){},t.prototype.appendData=function(e){var a=this.getRawData();a.appendData(e.data)},t.prototype.getData=function(e){var a=Us(this);if(a){var n=a.context.data;return e==null||!n.getLinkedData?n:n.getLinkedData(e)}else return Gt(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var a=Us(this);if(a){var n=a.context;n.outputData=e,a!==this.dataTask&&(n.data=e)}Gt(this).data=e},t.prototype.getEncode=function(){var e=this.get("encode",!0);if(e)return q(e)},t.prototype.getSourceManager=function(){return Gt(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Gt(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var e=this.get("colorBy");return e||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,a,n,i){var o=this.getData(),s=this.coordinateSystem,l=s&&s.getAxis(e);if(!s||!l)return[];var u=l.dataToCoord(n);i==null&&(i=1/0);var f=[],c=1/0,h=-1,v=0;return o.each(a,function(d,p){var y=l.dataToCoord(d),g=u-y,m=Math.abs(g);m<=i&&((m<c||m===c&&g>=0&&h<0)&&(c=m,h=g,v=0),g===h&&(f[v++]=p))}),f.length=v,f},t.prototype.formatTooltip=function(e,a,n){return K_({series:this,dataIndex:e,multipleSeries:a})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(be.node&&!(e&&e.ssr))return!1;var a=this.getShallow("animation");return a&&this.getData().count()>this.getShallow("animationThreshold")&&(a=!1),!!a},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,a,n){var i=this.ecModel,o=Ql.prototype.getColorFromPalette.call(this,e,a,n);return o||(o=i.getColorFromPalette(e,a,n)),o},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,a){this._innerSelect(this.getData(a),e)},t.prototype.unselect=function(e,a){var n=this.option.selectedMap;if(n){var i=this.option.selectedMode,o=this.getData(a);if(i==="series"||n==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<e.length;s++){var l=e[s],u=Fn(o,l);n[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(e,a){for(var n=[],i=0;i<e.length;i++)n[0]=e[i],this.isSelected(e[i],a)?this.unselect(n,a):this.select(n,a)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,a=Ie(e),n=[],i=0;i<a.length;i++){var o=e[a[i]];o>=0&&n.push(o)}return n},t.prototype.isSelected=function(e,a){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(a);return(n==="all"||n[Fn(i,e)])&&!i.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[j_])return!0;var e=this.option.universalTransition;return e?e===!0?!0:e&&e.enabled:!1},t.prototype._innerSelect=function(e,a){var n,i,o=this.option,s=o.selectedMode,l=a.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){K(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,f=0;f<l;f++){var c=a[f],h=Fn(e,c);u[h]=!0,this._selectedDataIndicesMap[h]=e.getRawIndex(c)}}else if(s==="single"||s===!0){var v=a[l-1],h=Fn(e,v);o.selectedMap=(n={},n[h]=!0,n),this._selectedDataIndicesMap=(i={},i[h]=e.getRawIndex(v),i)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var a=[];e.hasItemOption&&e.each(function(n){var i=e.getRawDataItem(n);i&&i.selected&&a.push(n)}),a.length>0&&this._innerSelect(e,a)}},t.registerClass=function(e){return re.registerClass(e)},t.protoInitialize=(function(){var e=t.prototype;e.type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",e.visualDrawType="fill"})(),t})(re);Ot(Ge,M_);Ot(Ge,Ql);Th(Ge,re);function Of(r){var t=r.name;Ml(r)||(r.name=Q_(r)||t)}function Q_(r){var t=r.getRawData(),e=t.mapDimensionsAll("seriesName"),a=[];return w(e,function(n){var i=t.getDimensionInfo(n);i.displayName&&a.push(i.displayName)}),a.join(" ")}function J_(r){return r.model.getRawData().count()}function eS(r){var t=r.model;return t.setData(t.getRawData().cloneShallow()),tS}function tS(r,t){t.outputData&&r.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Bf(r,t){w(Sy(r.CHANGABLE_METHODS,r.DOWNSAMPLE_METHODS),function(e){r.wrapMethod(e,me(rS,t))})}function rS(r,t){var e=Us(r);return e&&e.setOutputEnd((t||this).count()),t}function Us(r){var t=(r.ecModel||{}).scheduler,e=t&&t.getPipeline(r.uid);if(e){var a=e.currentTask;if(a){var n=a.agentStubMap;n&&(a=n.get(r.uid))}return a}}var He=(function(){function r(){this.group=new pe,this.uid=fo("viewComponent")}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){},r.prototype.updateLayout=function(t,e,a,n){},r.prototype.updateVisual=function(t,e,a,n){},r.prototype.toggleBlurSeries=function(t,e,a){},r.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},r})();Dl(He);no(He);function au(){var r=ie();return function(t){var e=r(t),a=t.pipelineContext,n=!!e.large,i=!!e.progressiveRender,o=e.large=!!(a&&a.large),s=e.progressiveRender=!!(a&&a.progressiveRender);return(n!==o||i!==s)&&"reset"}}var Nd=ie(),aS=au(),Oe=(function(){function r(){this.group=new pe,this.uid=fo("viewChart"),this.renderTask=Qa({plan:nS,reset:iS}),this.renderTask.context={view:this}}return r.prototype.init=function(t,e){},r.prototype.render=function(t,e,a,n){},r.prototype.highlight=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&Vf(i,n,"emphasis")},r.prototype.downplay=function(t,e,a,n){var i=t.getData(n&&n.dataType);i&&Vf(i,n,"normal")},r.prototype.remove=function(t,e){this.group.removeAll()},r.prototype.dispose=function(t,e){},r.prototype.updateView=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateLayout=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.updateVisual=function(t,e,a,n){this.render(t,e,a,n)},r.prototype.eachRendered=function(t){pa(this.group,t)},r.markUpdateMethod=function(t,e){Nd(t).updateMethod=e},r.protoInitialize=(function(){var t=r.prototype;t.type="chart"})(),r})();function Nf(r,t,e){r&&Ls(r)&&(t==="emphasis"?Ti:Di)(r,e)}function Vf(r,t,e){var a=Dr(r,t),n=t&&t.highlightKey!=null?zm(t.highlightKey):null;a!=null?w(Ae(a),function(i){Nf(r.getItemGraphicEl(i),e,n)}):r.eachItemGraphicEl(function(i){Nf(i,e,n)})}Dl(Oe);no(Oe);function nS(r){return aS(r.model)}function iS(r){var t=r.model,e=r.ecModel,a=r.api,n=r.payload,i=t.pipelineContext.progressiveRender,o=r.view,s=n&&Nd(n).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,e,a,n),oS[l]}var oS={incrementalPrepareRender:{progress:function(r,t){t.view.incrementalRender(r,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(r,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Ei="\0__throttleOriginMethod",zf="\0__throttleRate",Ff="\0__throttleType";function nu(r,t,e){var a,n=0,i=0,o=null,s,l,u,f;t=t||0;function c(){i=new Date().getTime(),o=null,r.apply(l,u||[])}var h=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];a=new Date().getTime(),l=this,u=v;var p=f||t,y=f||e;f=null,s=a-(y?n:i)-p,clearTimeout(o),y?o=setTimeout(c,p):s>=0?c():o=setTimeout(c,-s),n=a};return h.clear=function(){o&&(clearTimeout(o),o=null)},h.debounceNextCall=function(v){f=v},h}function go(r,t,e,a){var n=r[t];if(n){var i=n[Ei]||n,o=n[Ff],s=n[zf];if(s!==e||o!==a){if(e==null||!a)return r[t]=i;n=r[t]=nu(i,e,a==="debounce"),n[Ei]=i,n[Ff]=a,n[zf]=e}return n}}function Oi(r,t){var e=r[t];e&&e[Ei]&&(e.clear&&e.clear(),r[t]=e[Ei])}var Gf=ie(),Hf={itemStyle:ln($h,!0),lineStyle:ln(Xh,!0)},sS={lineStyle:"stroke",itemStyle:"fill"};function Vd(r,t){var e=r.visualStyleMapper||Hf[t];return e||(console.warn("Unknown style type '"+t+"'."),Hf.itemStyle)}function zd(r,t){var e=r.visualDrawType||sS[t];return e||(console.warn("Unknown style type '"+t+"'."),"fill")}var lS={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=r.getModel(a),i=Vd(r,a),o=i(n),s=n.getShallow("decal");s&&(e.setVisual("decal",s),s.dirty=!0);var l=zd(r,a),u=o[l],f=j(u)?u:null,c=o.fill==="auto"||o.stroke==="auto";if(!o[l]||f||c){var h=r.getColorFromPalette(r.name,null,t.getSeriesCount());o[l]||(o[l]=h,e.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||j(o.fill)?h:o.fill,o.stroke=o.stroke==="auto"||j(o.stroke)?h:o.stroke}if(e.setVisual("style",o),e.setVisual("drawType",l),!t.isSeriesFiltered(r)&&f)return e.setVisual("colorFromPalette",!1),{dataEach:function(v,d){var p=r.getDataParams(d),y=U({},o);y[l]=f(p),v.setItemVisual(d,"style",y)}}}},wa=new ye,uS={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!(r.ignoreStyleOnData||t.isSeriesFiltered(r))){var e=r.getData(),a=r.visualStyleAccessPath||"itemStyle",n=Vd(r,a),i=e.getVisual("drawType");return{dataEach:e.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[a]){wa.option=l[a];var u=n(wa),f=o.ensureUniqueItemVisual(s,"style");U(f,u),wa.option.decal&&(o.setItemVisual(s,"decal",wa.option.decal),wa.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},fS={performRawSeries:!0,overallReset:function(r){var t=q();r.eachSeries(function(e){var a=e.getColorBy();if(!e.isColorBySeries()){var n=e.type+"-"+a,i=t.get(n);i||(i={},t.set(n,i)),Gf(e).scope=i}}),r.eachSeries(function(e){if(!(e.isColorBySeries()||r.isSeriesFiltered(e))){var a=e.getRawData(),n={},i=e.getData(),o=Gf(e).scope,s=e.visualStyleAccessPath||"itemStyle",l=zd(e,s);i.each(function(u){var f=i.getRawIndex(u);n[f]=u}),a.each(function(u){var f=n[u],c=i.getItemVisual(f,"colorFromPalette");if(c){var h=i.ensureUniqueItemVisual(f,"style"),v=a.getName(u)||u+"",d=a.count();h[l]=e.getColorFromPalette(v,o,d)}})}})}},Gn=Math.PI;function cS(r,t){t=t||{},ae(t,{text:"loading",textColor:O.color.primary,fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255,255,255,0.8)",showSpinner:!0,color:O.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var e=new pe,a=new se({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(a);var n=new he({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new se({style:{fill:"none"},textContent:n,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});e.add(i);var o;return t.showSpinner&&(o=new bl({shape:{startAngle:-Gn/2,endAngle:-Gn/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Gn*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Gn*3/2}).delay(300).start("circularInOut"),e.add(o)),e.resize=function(){var s=n.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(r.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=r.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:f}),i.setShape({x:u-l,y:f-l,width:l*2,height:l*2}),a.setShape({x:0,y:0,width:r.getWidth(),height:r.getHeight()})},e.resize(),e}var Fd=(function(){function r(t,e,a,n){this._stageTaskMap=q(),this.ecInstance=t,this.api=e,a=this._dataProcessorHandlers=a.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=a.concat(n)}return r.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(a){var n=a.overallTask;n&&n.dirty()})},r.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var a=this._pipelineMap.get(t.__pipeline.id),n=a.context,i=!e&&a.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>a.blockIndex,o=i?a.step:null,s=n&&n.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},r.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},r.prototype.updateStreamModes=function(t,e){var a=this._pipelineMap.get(t.uid),n=t.getData(),i=n.count(),o=a.progressiveEnabled&&e.incrementalPrepareRender&&i>=a.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=a.context={progressiveRender:o,modDataCount:l,large:s}},r.prototype.restorePipelines=function(t){var e=this,a=e._pipelineMap=q();t.eachSeries(function(n){var i=n.getProgressive(),o=n.uid;a.set(o,{id:o,head:null,tail:null,threshold:n.getProgressiveThreshold(),progressiveEnabled:i&&!(n.preventIncremental&&n.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(n,n.dataTask)})},r.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),a=this.api;w(this._allHandlers,function(n){var i=t.get(n.uid)||t.set(n.uid,{}),o="";St(!(n.reset&&n.overallReset),o),n.reset&&this._createSeriesStageTask(n,i,e,a),n.overallReset&&this._createOverallStageTask(n,i,e,a)},this)},r.prototype.prepareView=function(t,e,a,n){var i=t.renderTask,o=i.context;o.model=e,o.ecModel=a,o.api=n,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},r.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},r.prototype.performVisualTasks=function(t,e,a){this._performStageTasks(this._visualHandlers,t,e,a)},r.prototype._performStageTasks=function(t,e,a,n){n=n||{};var i=!1,o=this;w(t,function(l,u){if(!(n.visualType&&n.visualType!==l.visualType)){var f=o._stageTaskMap.get(l.uid),c=f.seriesTaskMap,h=f.overallTask;if(h){var v,d=h.agentStubMap;d.each(function(y){s(n,y)&&(y.dirty(),v=!0)}),v&&h.dirty(),o.updatePayload(h,a);var p=o.getPerformArgs(h,n.block);d.each(function(y){y.perform(p)}),h.perform(p)&&(i=!0)}else c&&c.each(function(y,g){s(n,y)&&y.dirty();var m=o.getPerformArgs(y,n.block);m.skip=!l.performRawSeries&&e.isSeriesFiltered(y.context.model),o.updatePayload(y,a),y.perform(m)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},r.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(a){e=a.dataTask.perform()||e}),this.unfinished=e||this.unfinished},r.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},r.prototype.updatePayload=function(t,e){e!=="remain"&&(t.context.payload=e)},r.prototype._createSeriesStageTask=function(t,e,a,n){var i=this,o=e.seriesTaskMap,s=e.seriesTaskMap=q(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?a.eachRawSeries(f):l?a.eachRawSeriesByType(l,f):u&&u(a,n).each(f);function f(c){var h=c.uid,v=s.set(h,o&&o.get(h)||Qa({plan:gS,reset:yS,count:_S}));v.context={model:c,ecModel:a,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(c,v)}},r.prototype._createOverallStageTask=function(t,e,a,n){var i=this,o=e.overallTask=e.overallTask||Qa({reset:vS});o.context={ecModel:a,api:n,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=q(),u=t.seriesType,f=t.getTargetSeries,c=!0,h=!1,v="";St(!t.createOnAllSeries,v),u?a.eachRawSeriesByType(u,d):f?f(a,n).each(d):(c=!1,w(a.getSeries(),d));function d(p){var y=p.uid,g=l.set(y,s&&s.get(y)||(h=!0,Qa({reset:hS,onDirty:pS})));g.context={model:p,overallProgress:c},g.agent=o,g.__block=c,i._pipe(p,g)}h&&o.dirty()},r.prototype._pipe=function(t,e){var a=t.uid,n=this._pipelineMap.get(a);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},r.wrapStageHandler=function(t,e){return j(t)&&(t={overallReset:t,seriesType:SS(t)}),t.uid=fo("stageHandler"),e&&(t.visualType=e),t},r})();function vS(r){r.overallReset(r.ecModel,r.api,r.payload)}function hS(r){return r.overallProgress&&dS}function dS(){this.agent.dirty(),this.getDownstream().dirty()}function pS(){this.agent&&this.agent.dirty()}function gS(r){return r.plan?r.plan(r.model,r.ecModel,r.api,r.payload):null}function yS(r){r.useClearVisual&&r.data.clearAllVisual();var t=r.resetDefines=Ae(r.reset(r.model,r.ecModel,r.api,r.payload));return t.length>1?X(t,function(e,a){return Gd(a)}):mS}var mS=Gd(0);function Gd(r){return function(t,e){var a=e.data,n=e.resetDefines[r];if(n&&n.dataEach)for(var i=t.start;i<t.end;i++)n.dataEach(a,i);else n&&n.progress&&n.progress(t,a)}}function _S(r){return r.data.count()}function SS(r){Bi=null;try{r(yn,Hd)}catch{}return Bi}var yn={},Hd={},Bi;Wd(yn,Jl);Wd(Hd,gd);yn.eachSeriesByType=yn.eachRawSeriesByType=function(r){Bi=r};yn.eachComponent=function(r){r.mainType==="series"&&r.subType&&(Bi=r.subType)};function Wd(r,t){for(var e in t.prototype)r[e]=xt}var H=O.darkColor,xS=H.background,Ca=function(){return{axisLine:{lineStyle:{color:H.axisLine}},splitLine:{lineStyle:{color:H.axisSplitLine}},splitArea:{areaStyle:{color:[H.backgroundTint,H.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:H.axisMinorSplitLine}},axisLabel:{color:H.axisLabel},axisName:{}}},Wf={label:{color:H.secondary},itemStyle:{borderColor:H.borderTint},dividerLineStyle:{color:H.border}},Ud={darkMode:!0,color:H.theme,backgroundColor:xS,axisPointer:{lineStyle:{color:H.border},crossStyle:{color:H.borderShade},label:{color:H.tertiary}},legend:{textStyle:{color:H.secondary},pageTextStyle:{color:H.tertiary}},textStyle:{color:H.secondary},title:{textStyle:{color:H.primary},subtextStyle:{color:H.quaternary}},toolbox:{iconStyle:{borderColor:H.accent50}},tooltip:{backgroundColor:H.neutral20,defaultBorderColor:H.border,textStyle:{color:H.tertiary}},dataZoom:{borderColor:H.accent10,textStyle:{color:H.tertiary},brushStyle:{color:H.backgroundTint},handleStyle:{color:H.neutral00,borderColor:H.accent20},moveHandleStyle:{color:H.accent40},emphasis:{handleStyle:{borderColor:H.accent50}},dataBackground:{lineStyle:{color:H.accent30},areaStyle:{color:H.accent20}},selectedDataBackground:{lineStyle:{color:H.accent50},areaStyle:{color:H.accent30}}},visualMap:{textStyle:{color:H.secondary},handleStyle:{borderColor:H.neutral30}},timeline:{lineStyle:{color:H.accent10},label:{color:H.tertiary},controlStyle:{color:H.accent30,borderColor:H.accent30}},calendar:{itemStyle:{color:H.neutral00,borderColor:H.neutral20},dayLabel:{color:H.tertiary},monthLabel:{color:H.secondary},yearLabel:{color:H.secondary}},matrix:{x:Wf,y:Wf,backgroundColor:{borderColor:H.axisLine},body:{itemStyle:{borderColor:H.borderTint}}},timeAxis:Ca(),logAxis:Ca(),valueAxis:Ca(),categoryAxis:Ca(),line:{symbol:"circle"},graph:{color:H.theme},gauge:{title:{color:H.secondary},axisLine:{lineStyle:{color:[[1,H.neutral05]]}},axisLabel:{color:H.axisLabel},detail:{color:H.primary}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}},funnel:{itemStyle:{borderColor:H.background}},radar:(function(){var r=Ca();return r.axisName={color:H.axisLabel},r.axisLine.lineStyle.color=H.neutral20,r})(),treemap:{breadcrumb:{itemStyle:{color:H.neutral20,textStyle:{color:H.secondary}},emphasis:{itemStyle:{color:H.neutral30}}}},sunburst:{itemStyle:{borderColor:H.background}},map:{itemStyle:{borderColor:H.border,areaColor:H.neutral10},label:{color:H.tertiary},emphasis:{label:{color:H.primary},itemStyle:{areaColor:H.highlight}},select:{label:{color:H.primary},itemStyle:{areaColor:H.highlight}}},geo:{itemStyle:{borderColor:H.border,areaColor:H.neutral10},emphasis:{label:{color:H.primary},itemStyle:{areaColor:H.highlight}},select:{label:{color:H.primary},itemStyle:{color:H.highlight}}}};Ud.categoryAxis.splitLine.show=!1;var bS=(function(){function r(){}return r.prototype.normalizeQuery=function(t){var e={},a={},n={};if($(t)){var i=mt(t);e.mainType=i.main||null,e.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};w(t,function(l,u){for(var f=!1,c=0;c<o.length;c++){var h=o[c],v=u.lastIndexOf(h);if(v>0&&v===u.length-h.length){var d=u.slice(0,v);d!=="data"&&(e.mainType=d,e[h.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(u)&&(a[u]=l,f=!0),f||(n[u]=l)})}return{cptQuery:e,dataQuery:a,otherQuery:n}},r.prototype.filter=function(t,e){var a=this.eventInfo;if(!a)return!0;var n=a.targetEl,i=a.packedEvent,o=a.model,s=a.view;if(!o||!s)return!0;var l=e.cptQuery,u=e.dataQuery;return f(l,o,"mainType")&&f(l,o,"subType")&&f(l,o,"index","componentIndex")&&f(l,o,"name")&&f(l,o,"id")&&f(u,i,"name")&&f(u,i,"dataIndex")&&f(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,e.otherQuery,n,i));function f(c,h,v,d){return c[v]==null||h[d||v]===c[v]}},r.prototype.afterTrigger=function(){this.eventInfo=null},r})(),Ys=["symbol","symbolSize","symbolRotate","symbolOffset"],Uf=Ys.concat(["symbolKeepAspect"]),wS={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){var e=r.getData();if(r.legendIcon&&e.setVisual("legendIcon",r.legendIcon),!r.hasSymbolVisual)return;for(var a={},n={},i=!1,o=0;o<Ys.length;o++){var s=Ys[o],l=r.get(s);j(l)?(i=!0,n[s]=l):a[s]=l}if(a.symbol=a.symbol||r.defaultSymbol,e.setVisual(U({legendIcon:r.legendIcon||a.symbol,symbolKeepAspect:r.get("symbolKeepAspect")},a)),t.isSeriesFiltered(r))return;var u=Ie(n);function f(c,h){for(var v=r.getRawValue(h),d=r.getDataParams(h),p=0;p<u.length;p++){var y=u[p];c.setItemVisual(h,y,n[y](v,d))}}return{dataEach:i?f:null}}},CS={createOnAllSeries:!0,performRawSeries:!0,reset:function(r,t){if(!r.hasSymbolVisual||t.isSeriesFiltered(r))return;var e=r.getData();function a(n,i){for(var o=n.getItemModel(i),s=0;s<Uf.length;s++){var l=Uf[s],u=o.getShallow(l,!0);u!=null&&n.setItemVisual(i,l,u)}}return{dataEach:e.hasItemOption?a:null}}};function Yd(r,t,e){switch(e){case"color":var a=r.getItemVisual(t,"style");return a[r.getVisual("drawType")];case"opacity":return r.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getItemVisual(t,e)}}function Zd(r,t){switch(t){case"color":var e=r.getVisual("style");return e[r.getVisual("drawType")];case"opacity":return r.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return r.getVisual(t)}}function MS(r,t,e,a){switch(e){case"color":var n=r.ensureUniqueItemVisual(t,"style");n[r.getVisual("drawType")]=a,r.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":r.ensureUniqueItemVisual(t,"style").opacity=a;break;case"symbol":case"symbolSize":case"liftZ":r.setItemVisual(t,e,a);break}}function TS(r,t){function e(a,n){var i=[];return a.eachComponent({mainType:"series",subType:r,query:n},function(o){i.push(o.seriesIndex)}),i}w([[r+"ToggleSelect","toggleSelect"],[r+"Select","select"],[r+"UnSelect","unselect"]],function(a){t(a[0],function(n,i,o){n=U({},n),o.dispatchAction(U(n,{type:a[1],seriesIndex:e(i,n)}))})})}function Ur(r,t,e,a,n){var i=r+t;e.isSilent(i)||a.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(),h=Dr(c,n.fromActionPayload);e.trigger(i,{type:i,seriesId:o.id,name:z(h)?c.getName(h[0]):c.getName(h),selected:$(l)?l:U({},l)})}})}function DS(r,t,e){r.on("selectchanged",function(a){var n=e.getModel();a.isFromClick?(Ur("map","selectchanged",t,n,a),Ur("pie","selectchanged",t,n,a)):a.fromAction==="select"?(Ur("map","selected",t,n,a),Ur("pie","selected",t,n,a)):a.fromAction==="unselect"&&(Ur("map","unselected",t,n,a),Ur("pie","unselected",t,n,a))})}function ea(r,t,e){for(var a;r&&!(t(r)&&(a=r,e));)r=r.__hostTarget||r.parent;return a}var AS=We.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,n=t.width/2,i=t.height/2;r.moveTo(e,a-i),r.lineTo(e+n,a+i),r.lineTo(e-n,a+i),r.closePath()}}),LS=We.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(r,t){var e=t.cx,a=t.cy,n=t.width/2,i=t.height/2;r.moveTo(e,a-i),r.lineTo(e+n,a),r.lineTo(e,a+i),r.lineTo(e-n,a),r.closePath()}}),IS=We.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.x,a=t.y,n=t.width/5*3,i=Math.max(n,t.height),o=n/2,s=o*o/(i-o),l=a-i+o+s,u=Math.asin(s/o),f=Math.cos(u)*o,c=Math.sin(u),h=Math.cos(u),v=o*.6,d=o*.7;r.moveTo(e-f,l+s),r.arc(e,l,o,Math.PI-u,Math.PI*2+u),r.bezierCurveTo(e+f-c*v,l+s+h*v,e,a-d,e,a),r.bezierCurveTo(e,a-d,e-f+c*v,l+s+h*v,e-f,l+s),r.closePath()}}),PS=We.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(r,t){var e=t.height,a=t.width,n=t.x,i=t.y,o=a/3*2;r.moveTo(n,i),r.lineTo(n+o,i+e),r.lineTo(n,i+e/4*3),r.lineTo(n-o,i+e),r.lineTo(n,i),r.closePath()}}),kS={line:Tr,rect:se,roundRect:se,square:se,circle:ro,diamond:LS,pin:IS,arrow:PS,triangle:AS},RS={line:function(r,t,e,a,n){n.x1=r,n.y1=t+a/2,n.x2=r+e,n.y2=t+a/2},rect:function(r,t,e,a,n){n.x=r,n.y=t,n.width=e,n.height=a},roundRect:function(r,t,e,a,n){n.x=r,n.y=t,n.width=e,n.height=a,n.r=Math.min(e,a)/4},square:function(r,t,e,a,n){var i=Math.min(e,a);n.x=r,n.y=t,n.width=i,n.height=i},circle:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.r=Math.min(e,a)/2},diamond:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.width=e,n.height=a},pin:function(r,t,e,a,n){n.x=r+e/2,n.y=t+a/2,n.width=e,n.height=a},arrow:function(r,t,e,a,n){n.x=r+e/2,n.y=t+a/2,n.width=e,n.height=a},triangle:function(r,t,e,a,n){n.cx=r+e/2,n.cy=t+a/2,n.width=e,n.height=a}},Ni={};w(kS,function(r,t){Ni[t]=new r});var ES=We.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(r,t,e){var a=ws(r,t,e),n=this.shape;return n&&n.symbolType==="pin"&&t.position==="inside"&&(a.y=e.y+e.height*.4),a},buildPath:function(r,t,e){var a=t.symbolType;if(a!=="none"){var n=Ni[a];n||(a="rect",n=Ni[a]),RS[a](t.x,t.y,t.width,t.height,n.shape),n.buildPath(r,n.shape,e)}}});function OS(r,t){if(this.type!=="image"){var e=this.style;this.__isEmptyBrush?(e.stroke=r,e.fill=t||O.color.neutral00,e.lineWidth=2):this.shape.symbolType==="line"?e.stroke=r:e.fill=r,this.markRedraw()}}function at(r,t,e,a,n,i,o){var s=r.indexOf("empty")===0;s&&(r=r.substr(5,1).toLowerCase()+r.substr(6));var l;return r.indexOf("image://")===0?l=Nh(r.slice(8),new Ve(t,e,a,n),o?"center":"cover"):r.indexOf("path://")===0?l=fn(r.slice(7),{},new Ve(t,e,a,n),o?"center":"cover"):l=new ES({shape:{symbolType:r,x:t,y:e,width:a,height:n}}),l.__isEmptyBrush=s,l.setColor=OS,i&&l.setColor(i),l}function Xd(r){return z(r)||(r=[+r,+r]),[r[0]||0,r[1]||0]}function $d(r,t){if(r!=null)return z(r)||(r=[r,r]),[ne(r[0],t[0])||0,ne(J(r[1],r[0]),t[1])||0]}var Bo=new xy,Yf=new by(100),Zf=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Vi(r,t){if(r==="none")return null;var e=t.getDevicePixelRatio(),a=t.getZr(),n=a.painter.type==="svg";r.dirty&&Bo.delete(r);var i=Bo.get(r);if(i)return i;var o=ae(r,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=n?1:1/e,Bo.set(r,s),r.dirty=!1,s;function l(u){for(var f=[e],c=!0,h=0;h<Zf.length;++h){var v=o[Zf[h]];if(v!=null&&!z(v)&&!$(v)&&!ve(v)&&typeof v!="boolean"){c=!1;break}f.push(v)}var d;if(c){d=f.join(",")+(n?"-svg":"");var p=Yf.get(d);p&&(n?u.svgElement=p:u.image=p)}var y=qd(o.dashArrayX),g=BS(o.dashArrayY),m=Kd(o.symbol),_=NS(y),S=jd(g),b=!n&&Si.createCanvas(),x=n&&{tag:"g",attrs:{},key:"dcl",children:[]},C=D(),T;b&&(b.width=C.width*e,b.height=C.height*e,T=b.getContext("2d")),A(),c&&Yf.put(d,b||x),u.image=b,u.svgElement=x,u.svgWidth=C.width,u.svgHeight=C.height;function D(){for(var M=1,P=0,L=_.length;P<L;++P)M=Fu(M,_[P]);for(var E=1,P=0,L=m.length;P<L;++P)E=Fu(E,m[P].length);M*=E;var I=S*_.length*m.length;return{width:Math.max(1,Math.min(M,o.maxTileWidth)),height:Math.max(1,Math.min(I,o.maxTileHeight))}}function A(){T&&(T.clearRect(0,0,b.width,b.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,b.width,b.height)));for(var M=0,P=0;P<g.length;++P)M+=g[P];if(M<=0)return;for(var L=-S,E=0,I=0,k=0;L<C.height;){if(E%2===0){for(var N=I/2%m.length,R=0,B=0,V=0;R<C.width*2;){for(var G=0,P=0;P<y[k].length;++P)G+=y[k][P];if(G<=0)break;if(B%2===0){var Y=(1-o.symbolSize)*.5,Q=R+y[k][B]*Y,ge=L+g[E]*Y,we=y[k][B]*o.symbolSize,Nt=g[E]*o.symbolSize,Vr=V/2%m[N].length;Vt(Q,ge,we,Nt,m[N][Vr])}R+=y[k][B],++V,++B,B===y[k].length&&(B=0)}++k,k===y.length&&(k=0)}L+=g[E],++I,++E,E===g.length&&(E=0)}function Vt(ma,_a,kn,Rn,En){var lr=n?1:e,zt=at(En,ma*lr,_a*lr,kn*lr,Rn*lr,o.color,o.symbolKeepAspect);if(n){var bt=a.painter.renderOneToVNode(zt);bt&&x.children.push(bt)}else wy(T,zt)}}}}function Kd(r){if(!r||r.length===0)return[["rect"]];if($(r))return[[r]];for(var t=!0,e=0;e<r.length;++e)if(!$(r[e])){t=!1;break}if(t)return Kd([r]);for(var a=[],e=0;e<r.length;++e)$(r[e])?a.push([r[e]]):a.push(r[e]);return a}function qd(r){if(!r||r.length===0)return[[0,0]];if(ve(r)){var t=Math.ceil(r);return[[t,t]]}for(var e=!0,a=0;a<r.length;++a)if(!ve(r[a])){e=!1;break}if(e)return qd([r]);for(var n=[],a=0;a<r.length;++a)if(ve(r[a])){var t=Math.ceil(r[a]);n.push([t,t])}else{var t=X(r[a],function(s){return Math.ceil(s)});t.length%2===1?n.push(t.concat(t)):n.push(t)}return n}function BS(r){if(!r||typeof r=="object"&&r.length===0)return[0,0];if(ve(r)){var t=Math.ceil(r);return[t,t]}var e=X(r,function(a){return Math.ceil(a)});return r.length%2?e.concat(e):e}function NS(r){return X(r,function(t){return jd(t)})}function jd(r){for(var t=0,e=0;e<r.length;++e)t+=r[e];return r.length%2===1?t*2:t}function VS(r,t){r.eachRawSeries(function(e){if(!r.isSeriesFiltered(e)){var a=e.getData();a.hasItemVisual()&&a.each(function(o){var s=a.getItemVisual(o,"decal");if(s){var l=a.ensureUniqueItemVisual(o,"style");l.decal=Vi(s,t)}});var n=a.getVisual("decal");if(n){var i=a.getVisual("style");i.decal=Vi(n,t)}}})}var ot=new Dn,Qd={};function zS(r,t){Qd[r]=t}function FS(r){return Qd[r]}var Jd={};function GS(r,t){Jd[r]=t}function HS(r){return Jd[r]}var WS=1,US=800,YS=900,ZS=1e3,XS=2e3,$S=5e3,ep=1e3,KS=1100,iu=2e3,tp=3e3,qS=4e3,yo=4500,jS=4600,QS=5e3,JS=6e3,rp=7e3,ex={PROCESSOR:{FILTER:ZS,SERIES_FILTER:US,STATISTIC:$S},VISUAL:{LAYOUT:ep,PROGRESSIVE_LAYOUT:KS,GLOBAL:iu,CHART:tp,POST_CHART_LAYOUT:jS,COMPONENT:qS,BRUSH:QS,CHART_ITEM:yo,ARIA:JS,DECAL:rp}},Ce="__flagInMainProcess",Hn="__mainProcessVersion",Le="__pendingUpdate",No="__needsUpdateStatus",Xf=/^[a-zA-Z0-9_]+$/,Vo="__connectUpdateStatus",$f=0,tx=1,rx=2;function ap(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.isDisposed()){this.id;return}return ip(this,r,t)}}function np(r){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ip(this,r,t)}}function ip(r,t,e){return e[0]=e[0]&&e[0].toLowerCase(),Dn.prototype[t].apply(r,e)}var op=(function(r){W(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(Dn),sp=op.prototype;sp.on=np("on");sp.off=np("off");var pr,zo,Wn,Ct,Un,Fo,Go,Yr,Zr,Kf,qf,Ho,jf,Yn,Qf,lp,je,Jf,Xr,up=(function(r){W(t,r);function t(e,a,n){var i=r.call(this,new bS)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],n=n||{},i._dom=e;var o="canvas",s="auto",l=!1;i[Hn]=1,n.ssr;var u=i._zr=Pu(e,{renderer:n.renderer||o,devicePixelRatio:n.devicePixelRatio,width:n.width,height:n.height,ssr:n.ssr,useDirtyRect:J(n.useDirtyRect,l),useCoarsePointer:J(n.useCoarsePointer,s),pointerSize:n.pointerSize});i._ssr=n.ssr,i._throttledZrFlush=nu(Z(u.flush,u),17),i._updateTheme(a),i._locale=d0(n.locale||Kh),i._coordSysMgr=new vo;var f=i._api=Qf(i);function c(h,v){return h.__prio-v.__prio}return xo(Fi,c),xo($s,c),i._scheduler=new Fd(i,f,$s,Fi),i._messageCenter=new op,i._initEvents(),i.resize=Z(i.resize,i),u.animation.on("frame",i._onframe,i),Kf(u,i),qf(u,i),_i(i),i}return t.prototype._onframe=function(){if(!this._disposed){Jf(this);var e=this._scheduler;if(this[Le]){var a=this[Le].silent;this[Ce]=!0,Xr(this);try{pr(this),Ct.update.call(this,null,this[Le].updateParams)}catch(l){throw this[Ce]=!1,this[Le]=null,l}this._zr.flush(),this[Ce]=!1,this[Le]=null,Yr.call(this,a),Zr.call(this,a)}else if(e.unfinished){var n=WS,i=this._model,o=this._api;e.unfinished=!1;do{var s=+new Date;e.performSeriesTasks(i),e.performDataProcessorTasks(i),Fo(this,i),e.performVisualTasks(i),Yn(this,this._model,o,"remain",{}),n-=+new Date-s}while(n>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,a,n){if(!this[Ce]){if(this._disposed){this.id;return}var i,o,s;if(K(a)&&(n=a.lazyUpdate,i=a.silent,o=a.replaceMerge,s=a.transition,a=a.notMerge),this[Ce]=!0,Xr(this),!this._model||a){var l=new n_(this._api),u=this._theme,f=this._model=new Jl;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,u,this._locale,l)}this._model.setOption(e,{replaceMerge:o},Ks);var c={seriesTransition:s,optionChanged:!0};if(n)this[Le]={silent:i,updateParams:c},this[Ce]=!1,this.getZr().wakeUp();else{try{pr(this),Ct.update.call(this,null,c)}catch(h){throw this[Le]=null,this[Ce]=!1,h}this._ssr||this._zr.flush(),this[Le]=null,this[Ce]=!1,Yr.call(this,i),Zr.call(this,i)}}},t.prototype.setTheme=function(e,a){if(!this[Ce]){if(this._disposed){this.id;return}var n=this._model;if(n){var i=a&&a.silent,o=null;this[Le]&&(i==null&&(i=this[Le].silent),o=this[Le].updateParams,this[Le]=null),this[Ce]=!0,Xr(this);try{this._updateTheme(e),n.setTheme(this._theme),pr(this),Ct.update.call(this,{type:"setTheme"},o)}catch(s){throw this[Ce]=!1,s}this[Ce]=!1,Yr.call(this,i),Zr.call(this,i)}}},t.prototype._updateTheme=function(e){$(e)&&(e=fp[e]),e&&(e=ee(e),e&&md(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||be.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){e=e||{};var a=this._zr.painter;return a.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){e=e||{};var a=this._zr.painter;return a.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr,a=e.storage.getDisplayList();return w(a,function(n){n.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(this._disposed){this.id;return}e=e||{};var a=e.excludeComponents,n=this._model,i=[],o=this;w(a,function(l){n.eachComponent({mainType:l},function(u){var f=o._componentsMap[u.__viewId];f.group.ignore||(i.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return w(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(e){if(this._disposed){this.id;return}var a=e.type==="svg",n=this.group,i=Math.min,o=Math.max,s=1/0;if(ec[n]){var l=s,u=s,f=-s,c=-s,h=[],v=e&&e.pixelRatio||this.getDevicePixelRatio();w(Ja,function(_,S){if(_.group===n){var b=a?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ee(e)),x=_.getDom().getBoundingClientRect();l=i(x.left,l),u=i(x.top,u),f=o(x.right,f),c=o(x.bottom,c),h.push({dom:b,left:x.left,top:x.top})}}),l*=v,u*=v,f*=v,c*=v;var d=f-l,p=c-u,y=Si.createCanvas(),g=Pu(y,{renderer:a?"svg":"canvas"});if(g.resize({width:d,height:p}),a){var m="";return w(h,function(_){var S=_.left-l,b=_.top-u;m+='<g transform="translate('+S+","+b+')">'+_.dom+"</g>"}),g.painter.getSvgRoot().innerHTML=m,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}else return e.connectedBackgroundColor&&g.add(new se({shape:{x:0,y:0,width:d,height:p},style:{fill:e.connectedBackgroundColor}})),w(h,function(_){var S=new Et({style:{x:_.left*v-l,y:_.top*v-u,image:_.dom}});g.add(S)}),g.refreshImmediately(),y.toDataURL("image/"+(e&&e.type||"png"))}else return this.getDataURL(e)},t.prototype.convertToPixel=function(e,a,n){return Un(this,"convertToPixel",e,a,n)},t.prototype.convertToLayout=function(e,a,n){return Un(this,"convertToLayout",e,a,n)},t.prototype.convertFromPixel=function(e,a,n){return Un(this,"convertFromPixel",e,a,n)},t.prototype.containPixel=function(e,a){if(this._disposed){this.id;return}var n=this._model,i,o=Co(n,e);return w(o,function(s,l){l.indexOf("Models")>=0&&w(s,function(u){var f=u.coordinateSystem;if(f&&f.containPoint)i=i||!!f.containPoint(a);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint&&(i=i||c.containPoint(a,u))}},this)},this),!!i},t.prototype.getVisual=function(e,a){var n=this._model,i=Co(n,e,{defaultMainType:"series"}),o=i.seriesModel,s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?Yd(s,l,a):Zd(s,a)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;w(ax,function(n){var i=function(o){var s=e.getModel(),l=o.target,u,f=n==="globalout";if(f?u={}:l&&ea(l,function(p){var y=te(p);if(y&&y.dataIndex!=null){var g=y.dataModel||s.getSeriesByIndex(y.seriesIndex);return u=g&&g.getDataParams(y.dataIndex,y.dataType,l)||{},!0}else if(y.eventData)return u=U({},y.eventData),!0},!0),u){var c=u.componentType,h=u.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",h=u.seriesIndex);var v=c&&h!=null&&s.getComponent(c,h),d=v&&e[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];u.event=o,u.type=n,e._$eventProcessor.eventInfo={targetEl:l,packedEvent:u,model:v,view:d},e.trigger(n,u)}};i.zrEventfulCallAtLast=!0,e._zr.on(n,i,e)});var a=this._messageCenter;w(Xs,function(n,i){a.on(i,function(o){e.trigger(i,o)})}),DS(a,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var e=this.getDom();e&&wh(this.getDom(),su,"");var a=this,n=a._api,i=a._model;w(a._componentsViews,function(o){o.dispose(i,n)}),w(a._chartsViews,function(o){o.dispose(i,n)}),a._zr.dispose(),a._dom=a._model=a._chartsMap=a._componentsMap=a._chartsViews=a._componentsViews=a._scheduler=a._api=a._zr=a._throttledZrFlush=a._theme=a._coordSysMgr=a._messageCenter=null,delete Ja[a.id]},t.prototype.resize=function(e){if(!this[Ce]){if(this._disposed){this.id;return}this._zr.resize(e);var a=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!a){var n=a.resetOption("media"),i=e&&e.silent;this[Le]&&(i==null&&(i=this[Le].silent),n=!0,this[Le]=null),this[Ce]=!0,Xr(this);try{n&&pr(this),Ct.update.call(this,{type:"resize",animation:U({duration:0},e&&e.animation)})}catch(o){throw this[Ce]=!1,o}this[Ce]=!1,Yr.call(this,i),Zr.call(this,i)}}},t.prototype.showLoading=function(e,a){if(this._disposed){this.id;return}if(K(e)&&(a=e,e=""),e=e||"default",this.hideLoading(),!!qs[e]){var n=qs[e](this._api,a),i=this._zr;this._loadingFX=n,i.add(n)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(e){var a=U({},e);return a.type=Zs[e.type],a},t.prototype.dispatchAction=function(e,a){if(this._disposed){this.id;return}if(K(a)||(a={silent:!!a}),!!zi[e.type]&&this._model){if(this[Ce]){this._pendingActions.push(e);return}var n=a.silent;Go.call(this,e,n);var i=a.flush;i?this._zr.flush():i!==!1&&be.browser.weChat&&this._throttledZrFlush(),Yr.call(this,n),Zr.call(this,n)}},t.prototype.updateLabelLayout=function(){ot.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed){this.id;return}var a=e.seriesIndex,n=this.getModel(),i=n.getSeriesByIndex(a);i.appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){pr=function(c){var h=c._scheduler;h.restorePipelines(c._model),h.prepareStageTasks(),zo(c,!0),zo(c,!1),h.plan()},zo=function(c,h){for(var v=c._model,d=c._scheduler,p=h?c._componentsViews:c._chartsViews,y=h?c._componentsMap:c._chartsMap,g=c._zr,m=c._api,_=0;_<p.length;_++)p[_].__alive=!1;h?v.eachComponent(function(x,C){x!=="series"&&S(C)}):v.eachSeries(S);function S(x){var C=x.__requireNewView;x.__requireNewView=!1;var T="_ec_"+x.id+"_"+x.type,D=!C&&y[T];if(!D){var A=mt(x.type),M=h?He.getClass(A.main,A.sub):Oe.getClass(A.sub);D=new M,D.init(v,m),y[T]=D,p.push(D),g.add(D.group)}x.__viewId=D.__id=T,D.__alive=!0,D.__model=x,D.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!h&&d.prepareView(D,x,v,m)}for(var _=0;_<p.length;){var b=p[_];b.__alive?_++:(!h&&b.renderTask.dispose(),g.remove(b.group),b.dispose(v,m),p.splice(_,1),y[b.__id]===b&&delete y[b.__id],b.__id=b.group.__ecComponentInfo=null)}},Wn=function(c,h,v,d,p){var y=c._model;if(y.setUpdatePayload(v),!d){w([].concat(c._componentsViews).concat(c._chartsViews),b);return}var g={};g[d+"Id"]=v[d+"Id"],g[d+"Index"]=v[d+"Index"],g[d+"Name"]=v[d+"Name"];var m={mainType:d,query:g};p&&(m.subType=p);var _=v.excludeSeriesId,S;_!=null&&(S=q(),w(Ae(_),function(x){var C=ut(x,null);C!=null&&S.set(C,!0)})),y&&y.eachComponent(m,function(x){var C=S&&S.get(x.id)!=null;if(!C)if(ju(v))if(x instanceof Ge)v.type===br&&!v.notBlur&&!x.get(["emphasis","disabled"])&&Pm(x,v,c._api);else{var T=kl(x.mainType,x.componentIndex,v.name,c._api),D=T.focusSelf,A=T.dispatchers;v.type===br&&D&&!v.notBlur&&As(x.mainType,x.componentIndex,c._api),A&&w(A,function(M){v.type===br?Ti(M):Di(M)})}else Is(v)&&x instanceof Ge&&(Em(x,v,c._api),Ku(x),je(c))},c),y&&y.eachComponent(m,function(x){var C=S&&S.get(x.id)!=null;C||b(c[d==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},c);function b(x){x&&x.__alive&&x[h]&&x[h](x.__model,y,c._api,v)}},Ct={prepareAndUpdate:function(c){pr(this),Ct.update.call(this,c,c&&{optionChanged:c.newOption!=null})},update:function(c,h){var v=this._model,d=this._api,p=this._zr,y=this._coordSysMgr,g=this._scheduler;if(v){v.setUpdatePayload(c),g.restoreData(v,c),g.performSeriesTasks(v),y.create(v,d),g.performDataProcessorTasks(v,c),Fo(this,v),y.update(v,d),a(v),g.performVisualTasks(v,c);var m=v.get("backgroundColor")||"transparent";p.setBackgroundColor(m);var _=v.get("darkMode");_!=null&&_!=="auto"&&p.setDarkMode(_),Ho(this,v,d,c,h),ot.trigger("afterupdate",v,d)}},updateTransform:function(c){var h=this,v=this._model,d=this._api;if(v){v.setUpdatePayload(c);var p=[];v.eachComponent(function(g,m){if(g!=="series"){var _=h.getViewOfComponentModel(m);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(m,v,d,c);S&&S.update&&p.push(_)}else p.push(_)}});var y=q();v.eachSeries(function(g){var m=h._chartsMap[g.__viewId];if(m.updateTransform){var _=m.updateTransform(g,v,d,c);_&&_.update&&y.set(g.uid,1)}else y.set(g.uid,1)}),a(v),this._scheduler.performVisualTasks(v,c,{setDirty:!0,dirtyMap:y}),Yn(this,v,d,c,{},y),ot.trigger("afterupdate",v,d)}},updateView:function(c){var h=this._model;h&&(h.setUpdatePayload(c),Oe.markUpdateMethod(c,"updateView"),a(h),this._scheduler.performVisualTasks(h,c,{setDirty:!0}),Ho(this,h,this._api,c,{}),ot.trigger("afterupdate",h,this._api))},updateVisual:function(c){var h=this,v=this._model;v&&(v.setUpdatePayload(c),v.eachSeries(function(d){d.getData().clearAllVisual()}),Oe.markUpdateMethod(c,"updateVisual"),a(v),this._scheduler.performVisualTasks(v,c,{visualType:"visual",setDirty:!0}),v.eachComponent(function(d,p){if(d!=="series"){var y=h.getViewOfComponentModel(p);y&&y.__alive&&y.updateVisual(p,v,h._api,c)}}),v.eachSeries(function(d){var p=h._chartsMap[d.__viewId];p.updateVisual(d,v,h._api,c)}),ot.trigger("afterupdate",v,this._api))},updateLayout:function(c){Ct.update.call(this,c)}};function e(c,h,v,d,p){if(c._disposed){c.id;return}for(var y=c._model,g=c._coordSysMgr.getCoordinateSystems(),m,_=Co(y,v),S=0;S<g.length;S++){var b=g[S];if(b[h]&&(m=b[h](y,_,d,p))!=null)return m}}Un=e,Fo=function(c,h){var v=c._chartsMap,d=c._scheduler;h.eachSeries(function(p){d.updateStreamModes(p,v[p.__viewId])})},Go=function(c,h){var v=this,d=this.getModel(),p=c.type,y=c.escapeConnect,g=zi[p],m=(g.update||"update").split(":"),_=m.pop(),S=m[0]!=null&&mt(m[0]);this[Ce]=!0,Xr(this);var b=[c],x=!1;c.batch&&(x=!0,b=X(c.batch,function(k){return k=ae(U({},k),c),k.batch=null,k}));var C=[],T,D=[],A=g.nonRefinedEventType,M=Is(c),P=ju(c);if(P&&Bh(this._api),w(b,function(k){var N=g.action(k,d,v._api);if(g.refineEvent?D.push(N):T=N,T=T||U({},k),T.type=A,C.push(T),P){var R=Tl(c),B=R.queryOptionMap,V=R.mainTypeSpecified,G=V?B.keys()[0]:"series";Wn(v,_,k,G),je(v)}else M?(Wn(v,_,k,"series"),je(v)):S&&Wn(v,_,k,S.main,S.sub)}),_!=="none"&&!P&&!M&&!S)try{this[Le]?(pr(this),Ct.update.call(this,c),this[Le]=null):Ct[_].call(this,c)}catch(k){throw this[Ce]=!1,k}if(x?T={type:A,escapeConnect:y,batch:C}:T=C[0],this[Ce]=!1,!h){var L=void 0;if(g.refineEvent){var E=g.refineEvent(D,c,d,this._api).eventContent;St(K(E)),L=ae({type:g.refinedEventType},E),L.fromAction=c.type,L.fromActionPayload=c,L.escapeConnect=!0}var I=this._messageCenter;I.trigger(T.type,T),L&&I.trigger(L.type,L)}},Yr=function(c){for(var h=this._pendingActions;h.length;){var v=h.shift();Go.call(this,v,c)}},Zr=function(c){!c&&this.trigger("updated")},Kf=function(c,h){c.on("rendered",function(v){h.trigger("rendered",v),c.animation.isFinished()&&!h[Le]&&!h._scheduler.unfinished&&!h._pendingActions.length&&h.trigger("finished")})},qf=function(c,h){c.on("mouseover",function(v){var d=v.target,p=ea(d,Ls);p&&(km(p,v,h._api),je(h))}).on("mouseout",function(v){var d=v.target,p=ea(d,Ls);p&&(Rm(p,v,h._api),je(h))}).on("click",function(v){var d=v.target,p=ea(d,function(m){return te(m).dataIndex!=null},!0);if(p){var y=p.selected?"unselect":"select",g=te(p);h._api.dispatchAction({type:y,dataType:g.dataType,dataIndexInside:g.dataIndex,seriesIndex:g.seriesIndex,isFromClick:!0})}})};function a(c){c.clearColorPalette(),c.eachSeries(function(h){h.clearColorPalette()})}function n(c){var h=[],v=[],d=!1;if(c.eachComponent(function(m,_){var S=_.get("zlevel")||0,b=_.get("z")||0,x=_.getZLevelKey();d=d||!!x,(m==="series"?v:h).push({zlevel:S,z:b,idx:_.componentIndex,type:m,key:x})}),d){var p=h.concat(v),y,g;xo(p,function(m,_){return m.zlevel===_.zlevel?m.z-_.z:m.zlevel-_.zlevel}),w(p,function(m){var _=c.getComponent(m.type,m.idx),S=m.zlevel,b=m.key;y!=null&&(S=Math.max(y,S)),b?(S===y&&b!==g&&S++,g=b):g&&(S===y&&S++,g=""),y=S,_.setZLevel(S)})}}Ho=function(c,h,v,d,p){n(h),jf(c,h,v,d,p),w(c._chartsViews,function(y){y.__alive=!1}),Yn(c,h,v,d,p),w(c._chartsViews,function(y){y.__alive||y.remove(h,v)})},jf=function(c,h,v,d,p,y){w(y||c._componentsViews,function(g){var m=g.__model;u(m,g),g.render(m,h,v,d),l(m,g),f(m,g)})},Yn=function(c,h,v,d,p,y){var g=c._scheduler;p=U(p||{},{updatedSeries:h.getSeries()}),ot.trigger("series:beforeupdate",h,v,p);var m=!1;h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];S.__alive=!0;var b=S.renderTask;g.updatePayload(b,d),u(_,S),y&&y.get(_.uid)&&b.dirty(),b.perform(g.getPerformArgs(b))&&(m=!0),S.group.silent=!!_.get("silent"),s(_,S),Ku(_)}),g.unfinished=m||g.unfinished,ot.trigger("series:layoutlabels",h,v,p),ot.trigger("series:transition",h,v,p),h.eachSeries(function(_){var S=c._chartsMap[_.__viewId];l(_,S),f(_,S)}),o(c,h),ot.trigger("series:afterupdate",h,v,p)},je=function(c){c[No]=!0,c.getZr().wakeUp()},Xr=function(c){c[Hn]=(c[Hn]+1)%1e3},Jf=function(c){c[No]&&(c.getZr().storage.traverse(function(h){ra(h)||i(h)}),c[No]=!1)};function i(c){for(var h=[],v=c.currentStates,d=0;d<v.length;d++){var p=v[d];p==="emphasis"||p==="blur"||p==="select"||h.push(p)}c.selected&&c.states.select&&h.push("select"),c.hoverState===oo&&c.states.emphasis?h.push("emphasis"):c.hoverState===io&&c.states.blur&&h.push("blur"),c.useStates(h)}function o(c,h){var v=c._zr,d=v.storage,p=0;d.traverse(function(y){y.isGroup||p++}),p>h.get("hoverLayerThreshold")&&!be.node&&!be.worker&&h.eachSeries(function(y){if(!y.preventUsingHoverLayer){var g=c._chartsMap[y.__viewId];g.__alive&&g.eachRendered(function(m){m.states.emphasis&&(m.states.emphasis.hoverLayer=!0)})}})}function s(c,h){var v=c.get("blendMode")||null;h.eachRendered(function(d){d.isGroup||(d.style.blend=v)})}function l(c,h){if(!c.preventAutoZ){var v=dn(c);h.eachRendered(function(d){return Hh(d,v.z,v.zlevel),!0})}}function u(c,h){h.eachRendered(function(v){if(!ra(v)){var d=v.getTextContent(),p=v.getTextGuideLine();v.stateTransition&&(v.stateTransition=null),d&&d.stateTransition&&(d.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),v.hasState()?(v.prevStates=v.currentStates,v.clearStates()):v.prevStates&&(v.prevStates=null)}})}function f(c,h){var v=c.getModel("stateAnimation"),d=c.isAnimationEnabled(),p=v.get("duration"),y=p>0?{duration:p,delay:v.get("delay"),easing:v.get("easing")}:null;h.eachRendered(function(g){if(g.states&&g.states.emphasis){if(ra(g))return;if(g instanceof We&&Fm(g),g.__dirty){var m=g.prevStates;m&&g.useStates(m)}if(d){g.stateTransition=y;var _=g.getTextContent(),S=g.getTextGuideLine();_&&(_.stateTransition=y),S&&(S.stateTransition=y)}g.__dirty&&i(g)}})}Qf=function(c){return new((function(h){W(v,h);function v(){return h!==null&&h.apply(this,arguments)||this}return v.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},v.prototype.getComponentByElement=function(d){for(;d;){var p=d.__ecComponentInfo;if(p!=null)return c._model.getComponent(p.mainType,p.index);d=d.parent}},v.prototype.enterEmphasis=function(d,p){Ti(d,p),je(c)},v.prototype.leaveEmphasis=function(d,p){Di(d,p),je(c)},v.prototype.enterBlur=function(d){Im(d),je(c)},v.prototype.leaveBlur=function(d){kh(d),je(c)},v.prototype.enterSelect=function(d){Rh(d),je(c)},v.prototype.leaveSelect=function(d){Eh(d),je(c)},v.prototype.getModel=function(){return c.getModel()},v.prototype.getViewOfComponentModel=function(d){return c.getViewOfComponentModel(d)},v.prototype.getViewOfSeriesModel=function(d){return c.getViewOfSeriesModel(d)},v.prototype.getMainProcessVersion=function(){return c[Hn]},v})(gd))(c)},lp=function(c){function h(v,d){for(var p=0;p<v.length;p++){var y=v[p];y[Vo]=d}}w(Zs,function(v,d){c._messageCenter.on(d,function(p){if(ec[c.group]&&c[Vo]!==$f){if(p&&p.escapeConnect)return;var y=c.makeActionFromEvent(p),g=[];w(Ja,function(m){m!==c&&m.group===c.group&&g.push(m)}),h(g,$f),w(g,function(m){m[Vo]!==tx&&m.dispatchAction(y)}),h(g,rx)}})})}})(),t})(Dn),ou=up.prototype;ou.on=ap("on");ou.off=ap("off");ou.one=function(r,t,e){var a=this;function n(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),a.off(r,n)}this.on.call(this,r,n,e)};var ax=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var zi={},Zs={},Xs={},$s=[],Ks=[],Fi=[],fp={},qs={},Ja={},ec={},nx=+new Date-0,su="_echarts_instance_";function UT(r,t,e){var a=!(e&&e.ssr);if(a){var n=ix(r);if(n)return n}var i=new up(r,t,e);return i.id="ec_"+nx++,Ja[i.id]=i,a&&wh(r,su,i.id),lp(i),ot.trigger("afterinit",i),i}function ix(r){return Ja[lm(r,su)]}function cp(r,t){fp[r]=t}function vp(r){ue(Ks,r)<0&&Ks.push(r)}function hp(r,t){uu($s,r,t,XS)}function ox(r){lu("afterinit",r)}function sx(r){lu("afterupdate",r)}function lu(r,t){ot.on(r,t)}function Br(r,t,e){var a,n,i,o,s;j(t)&&(e=t,t=""),K(r)?(a=r.type,n=r.event,o=r.update,s=r.publishNonRefinedEvent,e||(e=r.action),i=r.refineEvent):(a=r,n=t);function l(f){return f.toLowerCase()}n=l(n||a);var u=i?l(a):n;zi[a]||(St(Xf.test(a)&&Xf.test(n)),i&&St(n!==a),zi[a]={actionType:a,refinedEventType:n,nonRefinedEventType:u,update:o,action:e,refineEvent:i},Xs[n]=1,i&&s&&(Xs[u]=1),Zs[u]=a)}function lx(r,t){vo.register(r,t)}function ux(r,t){uu(Fi,r,t,ep,"layout")}function Nr(r,t){uu(Fi,r,t,tp,"visual")}var tc=[];function uu(r,t,e,a,n){if((j(t)||K(t))&&(e=t,t=a),!(ue(tc,e)>=0)){tc.push(e);var i=Fd.wrapStageHandler(e,n);i.__prio=t,i.__raw=e,r.push(i)}}function dp(r,t){qs[r]=t}function fx(r,t,e){var a=FS("registerMap");a&&a(r,t,e)}var cx=E_;Nr(iu,lS);Nr(yo,uS);Nr(yo,fS);Nr(iu,wS);Nr(yo,CS);Nr(rp,VS);vp(md);hp(YS,g_);dp("default",cS);Br({type:br,event:br,update:br},xt);Br({type:ui,event:ui,update:ui},xt);Br({type:Ci,event:Il,update:Ci,action:xt,refineEvent:fu,publishNonRefinedEvent:!0});Br({type:Ts,event:Il,update:Ts,action:xt,refineEvent:fu,publishNonRefinedEvent:!0});Br({type:Mi,event:Il,update:Mi,action:xt,refineEvent:fu,publishNonRefinedEvent:!0});function fu(r,t,e,a){return{eventContent:{selected:Om(e),isFromClick:t.isFromClick||!1}}}cp("default",{});cp("dark",Ud);function Ma(r){return r==null?0:r.length||1}function rc(r){return r}var pp=(function(){function r(t,e,a,n,i,o){this._old=t,this._new=e,this._oldKeyGetter=a||rc,this._newKeyGetter=n||rc,this.context=i,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,a={},n=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,a,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=n[o],l=a[s],u=Ma(l);if(u>1){var f=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(f,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,a)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,a={},n={},i=[],o=[];this._initIndexMap(t,a,i,"_oldKeyGetter"),this._initIndexMap(e,n,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=a[l],f=n[l],c=Ma(u),h=Ma(f);if(c>1&&h===1)this._updateManyToOne&&this._updateManyToOne(f,u),n[l]=null;else if(c===1&&h>1)this._updateOneToMany&&this._updateOneToMany(f,u),n[l]=null;else if(c===1&&h===1)this._update&&this._update(f,u),n[l]=null;else if(c>1&&h>1)this._updateManyToMany&&this._updateManyToMany(f,u),n[l]=null;else if(c>1)for(var v=0;v<c;v++)this._remove&&this._remove(u[v]);else this._remove&&this._remove(u)}this._performRestAdd(o,n)},r.prototype._performRestAdd=function(t,e){for(var a=0;a<t.length;a++){var n=t[a],i=e[n],o=Ma(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);e[n]=null}},r.prototype._initIndexMap=function(t,e,a,n){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[n](t[o],o);if(i||(a[o]=s),!!e){var l=e[s],u=Ma(l);u===0?(e[s]=o,i&&a.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r})(),vx=(function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function hx(r,t){var e={},a=e.encode={},n=q(),i=[],o=[],s={};w(r.dimensions,function(h){var v=r.getDimensionInfo(h),d=v.coordDim;if(d){var p=v.coordDimIndex;Wo(a,d)[p]=h,v.isExtraCoord||(n.set(d,1),px(v.type)&&(i[0]=h),Wo(s,d)[p]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(h)}cd.each(function(y,g){var m=Wo(a,g),_=v.otherDims[g];_!=null&&_!==!1&&(m[_]=v.name)})});var l=[],u={};n.each(function(h,v){var d=a[v];u[v]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=X(l,function(h){return r.getDimensionInfo(h).storeDimIndex}),e.encodeFirstDimNotExtra=u;var f=a.label;f&&f.length&&(i=f.slice());var c=a.tooltip;return c&&c.length?o=c.slice():o.length||(o=i.slice()),a.defaultedLabel=i,a.defaultedTooltip=o,e.userOutput=new vx(s,t),e}function Wo(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function dx(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function px(r){return!(r==="ordinal"||r==="time")}var pi=(function(){function r(t){this.otherDims={},t!=null&&U(this,t)}return r})(),gx=ie(),yx={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},gp=(function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=_p(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return J(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=xd(this.source),a=!Sp(t),n="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,f=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===o)l=e?c.name:null,u=c.type,f=c.ordinalMeta,s++;else{var h=this.getSourceDimension(o);h&&(l=e?h.name:null,u=h.type)}i.push({property:l,type:u,ordinalMeta:f}),e&&l!=null&&(!c||!c.isCalculationCoord)&&(n+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),n+="$",n+=yx[u]||"f",f&&(n+=f.uid),n+="$"}var v=this.source,d=[v.seriesLayoutBy,v.startIndex,n].join("$$");return{dimensions:i,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,a=0;e<this._fullDimCount;e++){var n=void 0,i=this.dimensions[a];if(i&&i.storeDimIndex===e)i.isCalculationCoord||(n=i.name),a++;else{var o=this.getSourceDimension(e);o&&(n=o.name)}t.push(n)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function yp(r){return r instanceof gp}function mp(r){for(var t=q(),e=0;e<(r||[]).length;e++){var a=r[e],n=K(a)?a.name:a;n!=null&&t.get(n)==null&&t.set(n,e)}return t}function _p(r){var t=gx(r);return t.dimNameMap||(t.dimNameMap=mp(r.dimensionsDefine))}function Sp(r){return r>30}var Ta=K,Ht=X,mx=typeof Int32Array>"u"?Array:Int32Array,_x="e\0\0",ac=-1,Sx=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],xx=["_approximateExtent"],nc,Zn,Da,Aa,Uo,La,Yo,xp=(function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var a,n=!1;yp(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,a=t),a=a||["x","y"];for(var i={},o=[],s={},l=!1,u={},f=0;f<a.length;f++){var c=a[f],h=$(c)?new pi({name:c}):c instanceof pi?c:new pi(c),v=h.name;h.type=h.type||"float",h.coordDim||(h.coordDim=v,h.coordDimIndex=0);var d=h.otherDims=h.otherDims||{};o.push(v),i[v]=h,u[v]!=null&&(l=!0),h.createInvertedIndices&&(s[v]=[]);var p=f;ve(h.storeDimIndex)&&(p=h.storeDimIndex),d.itemName===0&&(this._nameDimIdx=p),d.itemId===0&&(this._idDimIdx=p),n&&(h.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var y=this._dimIdxToName=q();w(o,function(g){y.set(i[g].storeDimIndex,g)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var a=this._dimIdxToName.get(e);if(a!=null)return a;var n=this._schema.getSourceDimension(e);if(n)return n.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var a=this._getDimInfo(t);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(ve(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(a){return e.hasOwnProperty(a)?e[a]:void 0}:function(a){return e[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var a=this._dimSummary;if(e==null)return a.encodeFirstDimNotExtra[t];var n=a.encode[t];return n?n[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,a=e.encode[t];return(a||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,a){var n=this,i;if(t instanceof Gs&&(i=t),!i){var o=this.dimensions,s=eu(t)||Mn(t)?new bd(t,o.length):t;i=new Gs;var l=Ht(o,function(u){return{type:n._dimInfos[u].type,property:u}});i.initData(s,l,a)}this._store=i,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=hx(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var a=this._store.appendValues(t,e&&e.length),n=a.start,i=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=n;s<i;s++){var l=s-n;this._nameList[s]=e[l],o&&Yo(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,a=0;a<e.length;a++){var n=this._dimInfos[e[a]];n.ordinalMeta&&t.collectOrdinalMeta(n.storeDimIndex,n.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==Jt&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var a=this._store,n=a.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=n.getSource().sourceFormat,l=s===qe;if(l&&!n.pure)for(var u=[],f=t;f<e;f++){var c=n.getItem(f,u);if(!this.hasItemOption&&Ky(c)&&(this.hasItemOption=!0),c){var h=c.name;i[f]==null&&h!=null&&(i[f]=ut(h,null));var v=c.id;o[f]==null&&v!=null&&(o[f]=ut(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)Yo(this,f);nc(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){Ta(t)?U(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),a=this._nameList[e];return a==null&&this._nameDimIdx!=null&&(a=Da(this,this._nameDimIdx,e)),a==null&&(a=""),a},r.prototype._getCategory=function(t,e){var a=this._store.get(t,e),n=this._store.getOrdinalMeta(t);return n?n.categories[a]:a},r.prototype.getId=function(t){return Zn(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var a=this._store,n=this._dimInfos[t];if(n)return a.get(n.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var a=this._store,n=this._dimInfos[t];if(n)return a.getByRawIndex(n.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var a=this,n=this._store;return z(t)?n.getValues(Ht(t,function(i){return a._getStoreDimIndex(i)}),e):n.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,a=0,n=e.length;a<n;a++)if(isNaN(this._store.get(e[a],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,a=this._store.count();e<a;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var a=t&&this._invertedIndicesMap[t],n=a&&a[e];return n==null||isNaN(n)?ac:n},r.prototype.each=function(t,e,a){j(t)&&(a=e,e=t,t=[]);var n=a||this,i=Ht(Aa(t),this._getStoreDimIndex,this);this._store.each(i,n?Z(e,n):e)},r.prototype.filterSelf=function(t,e,a){j(t)&&(a=e,e=t,t=[]);var n=a||this,i=Ht(Aa(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,n?Z(e,n):e),this},r.prototype.selectRange=function(t){var e=this,a={},n=Ie(t);return w(n,function(i){var o=e._getStoreDimIndex(i);a[o]=t[i]}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(t,e,a){j(t)&&(a=e,e=t,t=[]),a=a||this;var n=[];return this.each(t,function(){n.push(e&&e.apply(this,arguments))},a),n},r.prototype.map=function(t,e,a,n){var i=a||n||this,o=Ht(Aa(t),this._getStoreDimIndex,this),s=La(this);return s._store=this._store.map(o,i?Z(e,i):e),s},r.prototype.modify=function(t,e,a,n){var i=a||n||this,o=Ht(Aa(t),this._getStoreDimIndex,this);this._store.modify(o,i?Z(e,i):e)},r.prototype.downSample=function(t,e,a,n){var i=La(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),e,a,n),i},r.prototype.minmaxDownSample=function(t,e){var a=La(this);return a._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),a},r.prototype.lttbDownSample=function(t,e){var a=La(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),a},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,a=this.getRawDataItem(t);return new ye(a,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new pp(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(a){return Zn(t,a)},function(a){return Zn(e,a)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},Ta(t)?U(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var a=this._itemVisuals[t],n=a&&a[e];return n??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var a=this._itemVisuals,n=a[t];n||(n=a[t]={});var i=n[e];return i==null&&(i=this.getVisual(e),z(i)?i=i.slice():Ta(i)&&(i=U({},i)),n[e]=i),i},r.prototype.setItemVisual=function(t,e,a){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,Ta(e)?U(n,e):n[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){Ta(t)?U(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,a){this._itemLayouts[t]=a?U(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var a=this.hostModel&&this.hostModel.seriesIndex;xm(a,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){w(this._graphicEls,function(a,n){a&&t&&t.call(e,a,n)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:Ht(this.dimensions,this._getDimInfo,this),this.hostModel)),Uo(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];j(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var n=a.apply(this,arguments);return e.apply(this,[n].concat(Cy(arguments)))})},r.internalField=(function(){nc=function(t){var e=t._invertedIndicesMap;w(e,function(a,n){var i=t._dimInfos[n],o=i.ordinalMeta,s=t._store;if(o){a=e[n]=new mx(o.categories.length);for(var l=0;l<a.length;l++)a[l]=ac;for(var l=0;l<s.count();l++)a[s.get(i.storeDimIndex,l)]=l}})},Da=function(t,e,a){return ut(t._getCategory(e,a),null)},Zn=function(t,e){var a=t._idList[e];return a==null&&t._idDimIdx!=null&&(a=Da(t,t._idDimIdx,e)),a==null&&(a=_x+e),a},Aa=function(t){return z(t)||(t=t!=null?[t]:[]),t},La=function(t){var e=new r(t._schema?t._schema:Ht(t.dimensions,t._getDimInfo,t),t.hostModel);return Uo(e,t),e},Uo=function(t,e){w(Sx.concat(e.__wrappedMethods||[]),function(a){e.hasOwnProperty(a)&&(t[a]=e[a])}),t.__wrappedMethods=e.__wrappedMethods,w(xx,function(a){t[a]=ee(e[a])}),t._calculationInfo=U({},e._calculationInfo)},Yo=function(t,e){var a=t._nameList,n=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=a[e],l=n[e];if(s==null&&i!=null&&(a[e]=s=Da(t,i,e)),l==null&&o!=null&&(n[e]=l=Da(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,f=u[s]=(u[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),n[e]=l}}})(),r})();function YT(r,t){return cu(r,t).dimensions}function cu(r,t){eu(r)||(r=_d(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],n=q(),i=[],o=wx(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Sp(o),l=a===r.dimensionsDefine,u=l?_p(r):mp(a),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var c=q(f),h=new Dd(o),v=0;v<h.length;v++)h[v]=-1;function d(D){var A=h[D];if(A<0){var M=a[D],P=K(M)?M:{name:M},L=new pi,E=P.name;E!=null&&u.get(E)!=null&&(L.name=L.displayName=E),P.type!=null&&(L.type=P.type),P.displayName!=null&&(L.displayName=P.displayName);var I=i.length;return h[D]=I,L.storeDimIndex=D,i.push(L),L}return i[A]}if(!s)for(var v=0;v<o;v++)d(v);c.each(function(D,A){var M=Ae(D).slice();if(M.length===1&&!$(M[0])&&M[0]<0){c.set(A,!1);return}var P=c.set(A,[]);w(M,function(L,E){var I=$(L)?u.get(L):L;I!=null&&I<o&&(P[E]=I,y(d(I),A,E))})});var p=0;w(e,function(D){var A,M,P,L;if($(D))A=D,L={};else{L=D,A=L.name;var E=L.ordinalMeta;L.ordinalMeta=null,L=U({},L),L.ordinalMeta=E,M=L.dimsDef,P=L.otherDims,L.name=L.coordDim=L.coordDimIndex=L.dimsDef=L.otherDims=null}var I=c.get(A);if(I!==!1){if(I=Ae(I),!I.length)for(var k=0;k<(M&&M.length||1);k++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&I.push(p++)}w(I,function(N,R){var B=d(N);if(l&&L.type!=null&&(B.type=L.type),y(ae(B,L),A,R),B.name==null&&M){var V=M[R];!K(V)&&(V={name:V}),B.name=B.displayName=V.name,B.defaultTooltip=V.defaultTooltip}P&&ae(B.otherDims,P)})}});function y(D,A,M){cd.get(A)!=null?D.otherDims[A]=M:(D.coordDim=A,D.coordDimIndex=M,n.set(A,!0))}var g=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=g?m||1:0;var S=g||"value";function b(D){D.name==null&&(D.name=D.coordDim)}if(s)w(i,function(D){b(D)}),i.sort(function(D,A){return D.storeDimIndex-A.storeDimIndex});else for(var x=0;x<o;x++){var C=d(x),T=C.coordDim;T==null&&(C.coordDim=Cx(S,n,_),C.coordDimIndex=0,(!g||m<=0)&&(C.isExtraCoord=!0),m--),b(C),C.type==null&&(dd(r,x)===Pe.Must||C.isExtraCoord&&(C.otherDims.itemName!=null||C.otherDims.seriesName!=null))&&(C.type="ordinal")}return bx(i),new gp({source:r,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function bx(r){for(var t=q(),e=0;e<r.length;e++){var a=r[e],n=a.name,i=t.get(n)||0;i>0&&(a.name=n+(i-1)),i++,t.set(n,i)}}function wx(r,t,e,a){var n=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return w(t,function(i){var o;K(i)&&(o=i.dimsDef)&&(n=Math.max(n,o.length))}),n}function Cx(r,t,e){if(e||t.hasKey(r)){for(var a=0;t.hasKey(r+a);)a++;r+=a}return t.set(r,!0),r}var Mx=(function(){function r(t){this.coordSysDims=[],this.axisMap=q(),this.categoryAxisMap=q(),this.coordSysName=t}return r})();function Tx(r){var t=r.get("coordinateSystem"),e=new Mx(t),a=Dx[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var Dx={cartesian2d:function(r,t,e,a){var n=r.getReferringComponents("xAxis",Ne).models[0],i=r.getReferringComponents("yAxis",Ne).models[0];t.coordSysDims=["x","y"],e.set("x",n),e.set("y",i),$r(n)&&(a.set("x",n),t.firstCategoryDimIndex=0),$r(i)&&(a.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var n=r.getReferringComponents("singleAxis",Ne).models[0];t.coordSysDims=["single"],e.set("single",n),$r(n)&&(a.set("single",n),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var n=r.getReferringComponents("polar",Ne).models[0],i=n.findAxisModel("radiusAxis"),o=n.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",i),e.set("angle",o),$r(i)&&(a.set("radius",i),t.firstCategoryDimIndex=0),$r(o)&&(a.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,a){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,a){var n=r.ecModel,i=n.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();w(i.parallelAxisIndex,function(s,l){var u=n.getComponent("parallelAxis",s),f=o[l];e.set(f,u),$r(u)&&(a.set(f,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(r,t,e,a){var n=r.getReferringComponents("matrix",Ne).models[0];t.coordSysDims=["x","y"];var i=n.getDimensionModel("x"),o=n.getDimensionModel("y");e.set("x",i),e.set("y",o),a.set("x",i),a.set("y",o)}};function $r(r){return r.get("type")==="category"}function Ax(r,t,e){e=e||{};var a=e.byIndex,n=e.stackedCoordDimension,i,o,s;Lx(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,f,c,h;if(w(i,function(m,_){$(m)&&(i[_]=m={name:m}),l&&!m.isExtraCoord&&(!a&&!u&&m.ordinalMeta&&(u=m),!f&&m.type!=="ordinal"&&m.type!=="time"&&(!n||n===m.coordDim)&&(f=m))}),f&&!a&&!u&&(a=!0),f){c="__\0ecstackresult_"+r.id,h="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var v=f.coordDim,d=f.type,p=0;w(i,function(m){m.coordDim===v&&p++});var y={name:c,coordDim:v,coordDimIndex:p,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},g={name:h,coordDim:h,coordDimIndex:p+1,type:d,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(h,d),g.storeDimIndex=s.ensureCalculationDimension(c,d)),o.appendCalculationDimension(y),o.appendCalculationDimension(g)):(i.push(y),i.push(g))}return{stackedDimension:f&&f.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:h,stackResultDimension:c}}function Lx(r){return!yp(r.schema)}function ua(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function Ix(r,t){return ua(r,t)?r.getCalculationInfo("stackResultDimension"):t}function Px(r,t){var e=r.get("coordinateSystem"),a=vo.get(e),n;return t&&t.coordSysDims&&(n=X(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=dx(l)}return o})),n||(n=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),n}function kx(r,t,e){var a,n;return e&&w(r,function(i,o){var s=i.coordDim,l=e.categoryAxisMap.get(s);l&&(a==null&&(a=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(n=!0)}),!n&&a!=null&&(r[a].otherDims.itemName=0),a}function In(r,t,e){e=e||{};var a=t.getSourceManager(),n,i=!1;n=a.getSource(),i=n.sourceFormat===qe;var o=Tx(t),s=Px(t,o),l=e.useEncodeDefaulter,u=j(l)?l:l?me(Y0,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},c=cu(n,f),h=kx(c.dimensions,e.createInvertedIndices,o),v=i?null:a.getSharedDataStore(c),d=Ax(t,{schema:c,store:v}),p=new xp(c,t);p.setCalculationInfo(d);var y=h!=null&&Rx(n)?function(g,m,_,S){return S===h?_:this.defaultDimValueGetter(g,m,_,S)}:null;return p.hasItemOption=!1,p.initData(i?n:v,null,y),p}function Rx(r){if(r.sourceFormat===qe){var t=Ex(r.data||[]);return!z(An(t))}}function Ex(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}function js(r){return r.type==="interval"||r.type==="log"}function Ox(r,t,e,a,n){var i={},o=i.interval=yh(t/e);a!=null&&o<a&&(o=i.interval=a),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=mn(o),l=i.niceTickExtent=[Re(Math.ceil(r[0]/o)*o,s),Re(Math.floor(r[1]/o)*o,s)];return Bx(l,r),i}function Zo(r){var t=Math.pow(10,Cl(r)),e=r/t;return e?e===2?e=3:e===3?e=5:e*=2:e=1,Re(e*t)}function mn(r){return Dt(r)+2}function ic(r,t,e){r[t]=Math.max(Math.min(r[t],e[1]),e[0])}function Bx(r,t){!isFinite(r[0])&&(r[0]=t[0]),!isFinite(r[1])&&(r[1]=t[1]),ic(r,0,t),ic(r,1,t),r[0]>r[1]&&(r[0]=r[1])}function vu(r,t){return r>=t[0]&&r<=t[1]}var Nx=(function(){function r(){this.normalize=oc,this.scale=sc}return r.prototype.updateMethods=function(t){t.hasBreaks()?(this.normalize=Z(t.normalize,t),this.scale=Z(t.scale,t)):(this.normalize=oc,this.scale=sc)},r})();function oc(r,t){return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])}function sc(r,t){return r*(t[1]-t[0])+t[0]}function Qs(r,t,e){var a=Math.log(r);return[Math.log(e?t[0]:Math.max(0,t[0]))/a,Math.log(e?t[1]:Math.max(0,t[1]))/a]}var sr=(function(){function r(t){this._calculator=new Nx,this._setting=t||{},this._extent=[1/0,-1/0]}return r.prototype.getSetting=function(t){return this._setting[t]},r.prototype._innerUnionExtent=function(t){var e=this._extent;this._innerSetExtent(t[0]<e[0]?t[0]:e[0],t[1]>e[1]?t[1]:e[1])},r.prototype.unionExtentFromData=function(t,e){this._innerUnionExtent(t.getApproximateExtent(e))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){this._innerSetExtent(t,e)},r.prototype._innerSetExtent=function(t,e){var a=this._extent;isNaN(t)||(a[0]=t),isNaN(e)||(a[1]=e),this._brkCtx&&this._brkCtx.update(a)},r.prototype.setBreaksFromOption=function(t){},r.prototype._innerSetBreak=function(t){this._brkCtx&&(this._brkCtx.setBreaks(t),this._calculator.updateMethods(this._brkCtx),this._brkCtx.update(this._extent))},r.prototype._innerGetBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},r.prototype.hasBreaks=function(){return this._brkCtx?this._brkCtx.hasBreaks():!1},r.prototype._getExtentSpanWithBreaks=function(){return this._brkCtx&&this._brkCtx.hasBreaks()?this._brkCtx.getExtentSpan():this._extent[1]-this._extent[0]},r.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r})();no(sr);var Vx=0,Js=(function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Vx,this._onCollect=t.onCollect}return r.createByAxisModel=function(t){var e=t.option,a=e.data,n=a&&X(a,zx);return new r({categories:n,needCollect:!n,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,a=this._needCollect;if(!$(t)&&!a)return t;if(a&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var n=this._getOrCreateMap();return e=n.get(t),e==null&&(a?(e=this.categories.length,this.categories[e]=t,n.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=q(this.categories))},r})();function zx(r){return K(r)&&r.value!=null?r.value:r+""}var bp=(function(r){W(t,r);function t(e){var a=r.call(this,e)||this;a.type="ordinal";var n=a.getSetting("ordinalMeta");return n||(n=new Js({})),z(n)&&(n=new Js({categories:X(n,function(i){return K(i)?i.value:i})})),a._ordinalMeta=n,a._extent=a.getSetting("extent")||[0,n.categories.length-1],a}return t.prototype.parse=function(e){return e==null?NaN:$(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return vu(e,this._extent)&&e>=0&&e<this._ordinalMeta.categories.length},t.prototype.normalize=function(e){return e=this._getTickNumber(e),this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return e=Math.round(this._calculator.scale(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],a=this._extent,n=a[0];n<=a[1];)e.push({value:n}),n++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,a.length);o<l;++o){var u=a[o];n[o]=u,i[u]=o}for(var f=0;o<s;++o){for(;i[f]!=null;)f++;n.push(f),i[f]=o}},t.prototype._getTickNumber=function(e){var a=this._ticksByOrdinalNumber;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getRawOrdinalNumber=function(e){var a=this._ordinalNumbersByTick;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var a=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[a];return n==null?"":n+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.isInExtentRange=function(e){return e=this._getTickNumber(e),this._extent[0]<=e&&this._extent[1]>=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(sr);sr.registerClass(bp);var Wt=Re,ar=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return t.prototype.parse=function(e){return e==null||e===""?NaN:Number(e)},t.prototype.contain=function(e){return vu(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=mn(e)},t.prototype.getTicks=function(e){e=e||{};var a=this._interval,n=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=ki(),l=[];if(!a)return l;e.breakTicks;var u=1e4;n[0]<i[0]&&(e.expandToNicedExtent?l.push({value:Wt(i[0]-a,o)}):l.push({value:n[0]}));for(var f=function(d,p){return Math.round((p-d)/a)},c=i[0];c<=i[1];){if(l.push({value:c}),c=Wt(c+a,o),this._brkCtx){var h=this._brkCtx.calcNiceTickMultiple(c,f);h>=0&&(c=Wt(c+h*a,o))}if(l.length>0&&c===l[l.length-1].value)break;if(l.length>u)return[]}var v=l.length?l[l.length-1].value:i[1];return n[1]>v&&(e.expandToNicedExtent?l.push({value:Wt(v+a,o)}):l.push({value:n[1]})),e.breakTicks,l},t.prototype.getMinorTicks=function(e){for(var a=this.getTicks({expandToNicedExtent:!0}),n=[],i=this.getExtent(),o=1;o<a.length;o++){var s=a[o],l=a[o-1];if(!(l.break||s.break)){for(var u=0,f=[],c=s.value-l.value,h=c/e,v=mn(h);u<e-1;){var d=Wt(l.value+(u+1)*h,v);d>i[0]&&d<i[1]&&f.push(d),u++}var p=ki();p&&p.pruneTicksByBreak("auto",f,this._getNonTransBreaks(),function(y){return y},this._interval,i),n.push(f)}}return n},t.prototype._getNonTransBreaks=function(){return this._brkCtx?this._brkCtx.breaks:[]},t.prototype.getLabel=function(e,a){if(e==null)return"";var n=a&&a.precision;n==null?n=Dt(e.value)||0:n==="auto"&&(n=this._intervalPrecision);var i=Wt(e.value,n,!0);return nd(i)},t.prototype.calcNiceTicks=function(e,a,n){e=e||5;var i=this._extent.slice(),o=this._getExtentSpanWithBreaks();if(isFinite(o)){o<0&&(o=-o,i.reverse(),this._innerSetExtent(i[0],i[1]),i=this._extent.slice());var s=Ox(i,o,e,a,n);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var a=this._extent.slice();if(a[0]===a[1])if(a[0]!==0){var n=Math.abs(a[0]);e.fixMax||(a[1]+=n/2),a[0]-=n/2}else a[1]=1;var i=a[1]-a[0];isFinite(i)||(a[0]=0,a[1]=1),this._innerSetExtent(a[0],a[1]),a=this._extent.slice(),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var o=this._interval,s=this._intervalPrecision;e.fixMin||(a[0]=Wt(Math.floor(a[0]/o)*o,s)),e.fixMax||(a[1]=Wt(Math.ceil(a[1]/o)*o,s)),this._innerSetExtent(a[0],a[1])},t.prototype.setNiceExtent=function(e,a){this._niceExtent=[e,a]},t.type="interval",t})(sr);sr.registerClass(ar);var wp=typeof Float32Array<"u",Fx=wp?Float32Array:Array;function At(r){return z(r)?wp?new Float32Array(r):r:new Fx(r)}var el="__ec_stack_";function Cp(r){return r.get("stack")||el+r.seriesIndex}function hu(r){return r.dim+r.index}function Gx(r){var t=[],e=r.axis,a="axis0";if(e.type==="category"){for(var n=e.getBandWidth(),i=0;i<r.count;i++)t.push(ae({bandWidth:n,axisKey:a,stackId:el+i},r));for(var o=Dp(t),s=[],i=0;i<r.count;i++){var l=o[a][el+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function Mp(r,t){var e=[];return t.eachSeriesByType(r,function(a){Ap(a)&&e.push(a)}),e}function Hx(r){var t={};w(r,function(l){var u=l.coordinateSystem,f=u.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var c=l.getData(),h=f.dim+"_"+f.index,v=c.getDimensionIndex(c.mapDimension(f.dim)),d=c.getStore(),p=0,y=d.count();p<y;++p){var g=d.get(v,p);t[h]?t[h].push(g):t[h]=[g]}});var e={};for(var a in t)if(t.hasOwnProperty(a)){var n=t[a];if(n){n.sort(function(l,u){return l-u});for(var i=null,o=1;o<n.length;++o){var s=n[o]-n[o-1];s>0&&(i=i===null?s:Math.min(i,s))}e[a]=i}}return e}function Tp(r){var t=Hx(r),e=[];return w(r,function(a){var n=a.coordinateSystem,i=n.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],f=Math.abs(o[1]-o[0]),c=i.scale.getExtent(),h=Math.abs(c[1]-c[0]);s=u?f/h*u:f}else{var v=a.getData();s=Math.abs(o[1]-o[0])/v.count()}var d=ne(a.get("barWidth"),s),p=ne(a.get("barMaxWidth"),s),y=ne(a.get("barMinWidth")||(Lp(a)?.5:1),s),g=a.get("barGap"),m=a.get("barCategoryGap"),_=a.get("defaultBarGap");e.push({bandWidth:s,barWidth:d,barMaxWidth:p,barMinWidth:y,barGap:g,barCategoryGap:m,defaultBarGap:_,axisKey:hu(i),stackId:Cp(a)})}),Dp(e)}function Dp(r){var t={};w(r,function(a,n){var i=a.axisKey,o=a.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:a.defaultBarGap||0,stacks:{}},l=s.stacks;t[i]=s;var u=a.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var f=a.barWidth;f&&!l[u].width&&(l[u].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var c=a.barMaxWidth;c&&(l[u].maxWidth=c);var h=a.barMinWidth;h&&(l[u].minWidth=h);var v=a.barGap;v!=null&&(s.gap=v);var d=a.barCategoryGap;d!=null&&(s.categoryGap=d)});var e={};return w(t,function(a,n){e[n]={};var i=a.stacks,o=a.bandWidth,s=a.categoryGap;if(s==null){var l=Ie(i).length;s=Math.max(35-l*4,15)+"%"}var u=ne(s,o),f=ne(a.gap,1),c=a.remainedWidth,h=a.autoWidthCount,v=(c-u)/(h+(h-1)*f);v=Math.max(v,0),w(i,function(g){var m=g.maxWidth,_=g.minWidth;if(g.width){var S=g.width;m&&(S=Math.min(S,m)),_&&(S=Math.max(S,_)),g.width=S,c-=S+f*S,h--}else{var S=v;m&&m<S&&(S=Math.min(m,c)),_&&_>S&&(S=_),S!==v&&(g.width=S,c-=S+f*S,h--)}}),v=(c-u)/(h+(h-1)*f),v=Math.max(v,0);var d=0,p;w(i,function(g,m){g.width||(g.width=v),p=g,d+=g.width*(1+f)}),p&&(d-=p.width*f);var y=-d/2;w(i,function(g,m){e[n][m]=e[n][m]||{bandWidth:o,offset:y,width:g.width},y+=g.width*(1+f)})}),e}function Wx(r,t,e){if(r&&t){var a=r[hu(t)];return a}}function Ux(r,t){var e=Mp(r,t),a=Tp(e);w(e,function(n){var i=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=Cp(n),u=a[hu(s)][l],f=u.offset,c=u.width;i.setLayout({bandWidth:u.bandWidth,offset:f,size:c})})}function Yx(r){return{seriesType:r,plan:au(),reset:function(t){if(Ap(t)){var e=t.getData(),a=t.coordinateSystem,n=a.getBaseAxis(),i=a.getOtherAxis(n),o=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),l=t.get("showBackground",!0),u=e.mapDimension(i.dim),f=e.getCalculationInfo("stackResultDimension"),c=ua(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),h=i.isHorizontal(),v=Zx(n,i),d=Lp(t),p=t.get("barMinHeight")||0,y=f&&e.getDimensionIndex(f),g=e.getLayout("size"),m=e.getLayout("offset");return{progress:function(_,S){for(var b=_.count,x=d&&At(b*3),C=d&&l&&At(b*3),T=d&&At(b),D=a.master.getRect(),A=h?D.width:D.height,M,P=S.getStore(),L=0;(M=_.next())!=null;){var E=P.get(c?y:o,M),I=P.get(s,M),k=v,N=void 0;c&&(N=+E-P.get(o,M));var R=void 0,B=void 0,V=void 0,G=void 0;if(h){var Y=a.dataToPoint([E,I]);if(c){var Q=a.dataToPoint([N,I]);k=Q[0]}R=k,B=Y[1]+m,V=Y[0]-k,G=g,Math.abs(V)<p&&(V=(V<0?-1:1)*p)}else{var Y=a.dataToPoint([I,E]);if(c){var Q=a.dataToPoint([I,N]);k=Q[1]}R=Y[0]+m,B=k,V=g,G=Y[1]-k,Math.abs(G)<p&&(G=(G<=0?-1:1)*p)}d?(x[L]=R,x[L+1]=B,x[L+2]=h?V:G,C&&(C[L]=h?D.x:R,C[L+1]=h?B:D.y,C[L+2]=A),T[M]=M):S.setItemLayout(M,{x:R,y:B,width:V,height:G}),L+=3}d&&S.setLayout({largePoints:x,largeDataIndices:T,largeBackgroundPoints:C,valueAxisHorizontal:h})}}}}}}function Ap(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function Lp(r){return r.pipelineContext&&r.pipelineContext.large}function Zx(r,t){var e=t.model.get("startValue");return e||(e=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?e>0?e:1:e))}var Xx=function(r,t,e,a){for(;e<a;){var n=e+a>>>1;r[n][1]<t?e=n+1:a=n}return e},Ip=(function(r){W(t,r);function t(e){var a=r.call(this,e)||this;return a.type="time",a}return t.prototype.getLabel=function(e){var a=this.getSetting("useUTC");return co(e.value,sf[w0(ja(this._minLevelUnit))]||sf.second,a,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(e,a,n){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return C0(e,a,n,o,i)},t.prototype.getTicks=function(e){var a=this._interval,n=this._extent,i=[];if(!a)return i;var o=this.getSetting("useUTC"),s=Ri(n[1],o);i.push({value:n[0],time:{level:0,upperTimeUnit:s,lowerTimeUnit:s}});var l=tb(this._minLevelUnit,this._approxInterval,o,n,this._getExtentSpanWithBreaks(),this._brkCtx);i=i.concat(l);var u=Ri(n[1],o);i.push({value:n[1],time:{level:0,upperTimeUnit:u,lowerTimeUnit:u}}),this.getSetting("useUTC");var f=wr.length-1,c=0;return w(i,function(h){f=Math.min(f,ue(wr,h.time.upperTimeUnit)),c=Math.max(c,h.time.level)}),i},t.prototype.calcNiceExtent=function(e){var a=this.getExtent();if(a[0]===a[1]&&(a[0]-=et,a[1]+=et),a[1]===-1/0&&a[0]===1/0){var n=new Date;a[1]=+new Date(n.getFullYear(),n.getMonth(),n.getDate()),a[0]=a[1]-et}this._innerSetExtent(a[0],a[1]),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval)},t.prototype.calcNiceTicks=function(e,a,n){e=e||10;var i=this._getExtentSpanWithBreaks();this._approxInterval=i/e,a!=null&&this._approxInterval<a&&(this._approxInterval=a),n!=null&&this._approxInterval>n&&(this._approxInterval=n);var o=Xn.length,s=Math.min(Xx(Xn,this._approxInterval,0,o),o-1);this._interval=Xn[s][1],this._intervalPrecision=mn(this._interval),this._minLevelUnit=Xn[Math.max(s-1,0)][0]},t.prototype.parse=function(e){return ve(e)?e:+Pr(e)},t.prototype.contain=function(e){return vu(e,this._extent)},t.prototype.normalize=function(e){return this._calculator.normalize(e,this._extent)},t.prototype.scale=function(e){return this._calculator.scale(e,this._extent)},t.type="time",t})(ar),Xn=[["second",Hl],["minute",Wl],["hour",qa],["quarter-day",qa*6],["half-day",qa*12],["day",et*1.2],["half-week",et*3.5],["week",et*7],["month",et*31],["quarter",et*95],["half-year",of/2],["year",of]];function $x(r,t,e,a){return Ns(new Date(t),r,a).getTime()===Ns(new Date(e),r,a).getTime()}function Kx(r,t){return r/=et,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function qx(r){var t=30*et;return r/=t,r>6?6:r>3?3:r>2?2:1}function jx(r){return r/=qa,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function lc(r,t){return r/=t?Wl:Hl,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function Qx(r){return yh(r)}function Jx(r,t,e){var a=Math.max(0,ue(wr,t)-1);return Ns(new Date(r),wr[a],e).getTime()}function eb(r,t){var e=new Date(0);e[r](1);var a=e.getTime();e[r](1+t);var n=e.getTime()-a;return function(i,o){return Math.max(0,Math.round((o-i)/n))}}function tb(r,t,e,a,n,i){var o=1e4,s=_0,l=0;function u(L,E,I,k,N,R,B){for(var V=eb(N,L),G=E,Y=new Date(G);G<I&&G<=a[1]&&(B.push({value:G}),!(l++>o));)if(Y[N](Y[k]()+L),G=Y.getTime(),i){var Q=i.calcNiceTickMultiple(G,V);Q>0&&(Y[N](Y[k]()+Q*L),G=Y.getTime())}B.push({value:G,notAdd:!0})}function f(L,E,I){var k=[],N=!E.length;if(!$x(ja(L),a[0],a[1],e)){N&&(E=[{value:Jx(a[0],L,e)},{value:a[1]}]);for(var R=0;R<E.length-1;R++){var B=E[R].value,V=E[R+1].value;if(B!==V){var G=void 0,Y=void 0,Q=void 0,ge=!1;switch(L){case"year":G=Math.max(1,Math.round(t/et/365)),Y=jh(e),Q=M0(e);break;case"half-year":case"quarter":case"month":G=qx(t),Y=Ul(e),Q=Qh(e);break;case"week":case"half-week":case"day":G=Kx(t),Y=Yl(e),Q=Jh(e),ge=!0;break;case"half-day":case"quarter-day":case"hour":G=jx(t),Y=Zl(e),Q=ed(e);break;case"minute":G=lc(t,!0),Y=Xl(e),Q=td(e);break;case"second":G=lc(t,!1),Y=$l(e),Q=rd(e);break;case"millisecond":G=Qx(t),Y=Kl(e),Q=ad(e);break}V>=a[0]&&B<=a[1]&&u(G,B,V,Y,Q,ge,k),L==="year"&&I.length>1&&R===0&&I.unshift({value:I[0].value-G})}}for(var R=0;R<k.length;R++)I.push(k[R])}}for(var c=[],h=[],v=0,d=0,p=0;p<s.length;++p){var y=ja(s[p]);if(b0(s[p])){f(s[p],c[c.length-1]||[],h);var g=s[p+1]?ja(s[p+1]):null;if(y!==g){if(h.length){d=v,h.sort(function(L,E){return L.value-E.value});for(var m=[],_=0;_<h.length;++_){var S=h[_].value;(_===0||h[_-1].value!==S)&&(m.push(h[_]),S>=a[0]&&S<=a[1]&&v++)}var b=n/t;if(v>b*1.5&&d>b/1.5||(c.push(m),v>b||r===s[p]))break}h=[]}}}for(var x=Me(X(c,function(L){return Me(L,function(E){return E.value>=a[0]&&E.value<=a[1]&&!E.notAdd})}),function(L){return L.length>0}),C=[],T=x.length-1,p=0;p<x.length;++p)for(var D=x[p],A=0;A<D.length;++A){var M=Ri(D[A].value,e);C.push({value:D[A].value,time:{level:T-p,upperTimeUnit:M,lowerTimeUnit:M}})}C.sort(function(L,E){return L.value-E.value});for(var P=[],p=0;p<C.length;++p)(p===0||C[p].value!==C[p-1].value)&&P.push(C[p]);return P}sr.registerClass(Ip);var tl=Re,rb=Math.floor,ab=Math.ceil,$n=Math.pow,Kn=Math.log,Pp=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new ar,e}return t.prototype.getTicks=function(e){e=e||{};var a=this._extent.slice(),n=this._originalScale.getExtent(),i=r.prototype.getTicks.call(this,e),o=this.base;return this._originalScale._innerGetBreaks(),X(i,function(s){var l=s.value,u=null,f=$n(o,l);l===a[0]&&this._fixMin?u=n[0]:l===a[1]&&this._fixMax&&(u=n[1]);var c;return u!=null&&(f=Xo(f,u)),{value:f,break:c}},this)},t.prototype._getNonTransBreaks=function(){return this._originalScale._innerGetBreaks()},t.prototype.setExtent=function(e,a){this._originalScale.setExtent(e,a);var n=Qs(this.base,[e,a]);r.prototype.setExtent.call(this,n[0],n[1])},t.prototype.getExtent=function(){var e=this.base,a=r.prototype.getExtent.call(this);a[0]=$n(e,a[0]),a[1]=$n(e,a[1]);var n=this._originalScale.getExtent();return this._fixMin&&(a[0]=Xo(a[0],n[0])),this._fixMax&&(a[1]=Xo(a[1],n[1])),a},t.prototype.unionExtentFromData=function(e,a){this._originalScale.unionExtentFromData(e,a);var n=Qs(this.base,e.getApproximateExtent(a),!0);this._innerUnionExtent(n)},t.prototype.calcNiceTicks=function(e){e=e||10;var a=this._extent.slice(),n=this._getExtentSpanWithBreaks();if(!(!isFinite(n)||n<=0)){var i=Wy(n),o=e/n*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[tl(ab(a[0]/i)*i),tl(rb(a[1]/i)*i)];this._interval=i,this._intervalPrecision=mn(i),this._niceExtent=s}},t.prototype.calcNiceExtent=function(e){r.prototype.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.contain=function(e){return e=Kn(e)/Kn(this.base),r.prototype.contain.call(this,e)},t.prototype.normalize=function(e){return e=Kn(e)/Kn(this.base),r.prototype.normalize.call(this,e)},t.prototype.scale=function(e){return e=r.prototype.scale.call(this,e),$n(this.base,e)},t.prototype.setBreaksFromOption=function(e){},t.type="log",t})(ar);function Xo(r,t){return tl(r,Dt(t))}sr.registerClass(Pp);var nb=(function(){function r(t,e,a){this._prepareParams(t,e,a)}return r.prototype._prepareParams=function(t,e,a){a[1]<a[0]&&(a=[NaN,NaN]),this._dataMin=a[0],this._dataMax=a[1];var n=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&e.getNeedCrossZero&&e.getNeedCrossZero();var i=e.get("min",!0);i==null&&(i=e.get("startValue",!0));var o=this._modelMinRaw=i;j(o)?this._modelMinNum=qn(t,o({min:a[0],max:a[1]})):o!=="dataMin"&&(this._modelMinNum=qn(t,o));var s=this._modelMaxRaw=e.get("max",!0);if(j(s)?this._modelMaxNum=qn(t,s({min:a[0],max:a[1]})):s!=="dataMax"&&(this._modelMaxNum=qn(t,s)),n)this._axisDataLen=e.getCategories().length;else{var l=e.get("boundaryGap"),u=z(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[rn(u[0],1),rn(u[1],1)]}},r.prototype.calculate=function(){var t=this._isOrdinal,e=this._dataMin,a=this._dataMax,n=this._axisDataLen,i=this._boundaryGapInner,o=t?null:a-e||Math.abs(e),s=this._modelMinRaw==="dataMin"?e:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?a:this._modelMaxNum,u=s!=null,f=l!=null;s==null&&(s=t?n?0:NaN:e-i[0]*o),l==null&&(l=t?n?n-1:NaN:a+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=xr(s)||xr(l)||t&&!n;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!f&&(l=0));var h=this._determinedMin,v=this._determinedMax;return h!=null&&(s=h,u=!0),v!=null&&(l=v,f=!0),{min:s,max:l,minFixed:u,maxFixed:f,isBlank:c}},r.prototype.modifyDataMinMax=function(t,e){this[ob[t]]=e},r.prototype.setDeterminedMinMax=function(t,e){var a=ib[t];this[a]=e},r.prototype.freeze=function(){this.frozen=!0},r})(),ib={min:"_determinedMin",max:"_determinedMax"},ob={min:"_dataMin",max:"_dataMax"};function kp(r,t,e){var a=r.rawExtentInfo;return a||(a=new nb(r,t,e),r.rawExtentInfo=a,a)}function qn(r,t){return t==null?null:xr(t)?NaN:r.parse(t)}function Rp(r,t){var e=r.type,a=kp(r,t,r.getExtent()).calculate();r.setBlank(a.isBlank);var n=a.min,i=a.max,o=t.ecModel;if(o&&e==="time"){var s=Mp("bar",o),l=!1;if(w(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=Tp(s),f=sb(n,i,t,u);n=f.min,i=f.max}}return{extent:[n,i],fixMin:a.minFixed,fixMax:a.maxFixed}}function sb(r,t,e,a){var n=e.axis.getExtent(),i=Math.abs(n[1]-n[0]),o=Wx(a,e.axis);if(o===void 0)return{min:r,max:t};var s=1/0;w(o,function(v){s=Math.min(v.offset,s)});var l=-1/0;w(o,function(v){l=Math.max(v.offset+v.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,f=t-r,c=1-(s+l)/i,h=f/c-f;return t+=h*(l/u),r-=h*(s/u),{min:r,max:t}}function uc(r,t){var e=t,a=Rp(r,e),n=a.extent,i=e.get("splitNumber");r instanceof Pp&&(r.base=e.get("logBase"));var o=r.type,s=e.get("interval"),l=o==="interval"||o==="time";r.setBreaksFromOption(Bp(e)),r.setExtent(n[0],n[1]),r.calcNiceExtent({splitNumber:i,fixMin:a.fixMin,fixMax:a.fixMax,minInterval:l?e.get("minInterval"):null,maxInterval:l?e.get("maxInterval"):null}),s!=null&&r.setInterval&&r.setInterval(s)}function lb(r,t){if(t=t||r.get("type"),t)switch(t){case"category":return new bp({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:[1/0,-1/0]});case"time":return new Ip({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC")});default:return new(sr.getClass(t)||ar)}}function ub(r){var t=r.scale.getExtent(),e=t[0],a=t[1];return!(e>0&&a>0||e<0&&a<0)}function Pn(r){var t=r.getLabelModel().get("formatter");if(r.type==="time"){var e=S0(t);return function(n,i){return r.scale.getFormattedLabel(n,i,e)}}else{if($(t))return function(n){var i=r.scale.getLabel(n),o=t.replace("{value}",i??"");return o};if(j(t)){if(r.type==="category")return function(n,i){return t(Gi(r,n),n.value-r.scale.getExtent()[0],null)};var a=ki();return function(n,i){var o=null;return a&&(o=a.makeAxisLabelFormatterParamBreak(o,n.break)),t(Gi(r,n),i,o)}}else return function(n){return r.scale.getLabel(n)}}}function Gi(r,t){return r.type==="category"?r.scale.getLabel(t):t.value}function du(r){var t=r.get("interval");return t??"auto"}function Ep(r){return r.type==="category"&&du(r.getLabelModel())===0}function Op(r,t){var e={};return w(r.mapDimensionsAll(t),function(a){e[Ix(r,a)]=!0}),Ie(e)}function fb(r,t,e){t&&w(Op(t,e),function(a){var n=t.getApproximateExtent(a);n[0]<r[0]&&(r[0]=n[0]),n[1]>r[1]&&(r[1]=n[1])})}function fa(r){return r==="middle"||r==="center"}function _n(r){return r.getShallow("show")}function Bp(r){var t=r.get("breaks",!0);t==null}var Np=(function(){function r(){}return r.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},r.prototype.getCoordSysModel=function(){},r})();function ZT(r,t){return t=t||{},Te(r,null,null,t.state!=="normal")}var fc=[],cb={registerPreprocessor:vp,registerProcessor:hp,registerPostInit:ox,registerPostUpdate:sx,registerUpdateLifecycle:lu,registerAction:Br,registerCoordinateSystem:lx,registerLayout:ux,registerVisual:Nr,registerTransform:cx,registerLoading:dp,registerMap:fx,registerImpl:zS,PRIORITY:ex,ComponentModel:re,ComponentView:He,SeriesModel:Ge,ChartView:Oe,registerComponentModel:function(r){re.registerClass(r)},registerComponentView:function(r){He.registerClass(r)},registerSeriesModel:function(r){Ge.registerClass(r)},registerChartView:function(r){Oe.registerClass(r)},registerCustomSeries:function(r,t){GS(r,t)},registerSubTypeDefaulter:function(r,t){re.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){My(r,t)}};function Xe(r){if(z(r)){w(r,function(t){Xe(t)});return}ue(fc,r)>=0||(fc.push(r),j(r)&&(r={install:r}),r.install(cb))}var vb=ie(),en=ie(),ct={estimate:1,determine:2};function Hi(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function Vp(r,t){var e=X(t,function(a){return r.scale.parse(a)});return r.type==="time"&&e.length>0&&(e.sort(),e.unshift(e[0]),e.push(e[e.length-1])),e}function hb(r,t){var e=r.getLabelModel().get("customValues");if(e){var a=Pn(r),n=r.scale.getExtent(),i=Vp(r,e),o=Me(i,function(s){return s>=n[0]&&s<=n[1]});return{labels:X(o,function(s){var l={value:s};return{formattedLabel:a(l),rawLabel:r.scale.getLabel(l),tickValue:s,time:void 0,break:void 0}})}}return r.type==="category"?pb(r,t):yb(r)}function db(r,t,e){var a=r.getTickModel().get("customValues");if(a){var n=r.scale.getExtent(),i=Vp(r,a);return{ticks:Me(i,function(o){return o>=n[0]&&o<=n[1]})}}return r.type==="category"?gb(r,t):{ticks:X(r.scale.getTicks(e),function(o){return o.value})}}function pb(r,t){var e=r.getLabelModel(),a=zp(r,e,t);return!e.get("show")||r.scale.isBlank()?{labels:[]}:a}function zp(r,t,e){var a=_b(r),n=du(t),i=e.kind===ct.estimate;if(!i){var o=Gp(a,n);if(o)return o}var s,l;j(n)?s=Up(r,n):(l=n==="auto"?Sb(r,e):n,s=Wp(r,l));var u={labels:s,labelCategoryInterval:l};return i?e.out.noPxChangeTryDetermine.push(function(){return rl(a,n,u),!0}):rl(a,n,u),u}function gb(r,t){var e=mb(r),a=du(t),n=Gp(e,a);if(n)return n;var i,o;if((!t.get("show")||r.scale.isBlank())&&(i=[]),j(a))i=Up(r,a,!0);else if(a==="auto"){var s=zp(r,r.getLabelModel(),Hi(ct.determine));o=s.labelCategoryInterval,i=X(s.labels,function(l){return l.tickValue})}else o=a,i=Wp(r,o,!0);return rl(e,a,{ticks:i,tickCategoryInterval:o})}function yb(r){var t=r.scale.getTicks(),e=Pn(r);return{labels:X(t,function(a,n){return{formattedLabel:e(a,n),rawLabel:r.scale.getLabel(a),tickValue:a.value,time:a.time,break:a.break}})}}var mb=Fp("axisTick"),_b=Fp("axisLabel");function Fp(r){return function(e){return en(e)[r]||(en(e)[r]={list:[]})}}function Gp(r,t){for(var e=0;e<r.list.length;e++)if(r.list[e].key===t)return r.list[e].value}function rl(r,t,e){return r.list.push({key:t,value:e}),e}function Sb(r,t){if(t.kind===ct.estimate){var e=r.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return en(r).autoInterval=e,!0}),e}var a=en(r).autoInterval;return a??(en(r).autoInterval=r.calculateCategoryInterval(t))}function xb(r,t){var e=t.kind,a=wb(r),n=Pn(r),i=(a.axisRotate-a.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,f=40;l>f&&(u=Math.max(1,Math.floor(l/f)));for(var c=s[0],h=r.dataToCoord(c+1)-r.dataToCoord(c),v=Math.abs(h*Math.cos(i)),d=Math.abs(h*Math.sin(i)),p=0,y=0;c<=s[1];c+=u){var g=0,m=0,_=lh(n({value:c}),a.font,"center","top");g=_.width*1.3,m=_.height*1.3,p=Math.max(p,g,7),y=Math.max(y,m,7)}var S=p/v,b=y/d;isNaN(S)&&(S=1/0),isNaN(b)&&(b=1/0);var x=Math.max(0,Math.floor(Math.min(S,b)));if(e===ct.estimate)return t.out.noPxChangeTryDetermine.push(Z(bb,null,r,x,l)),x;var C=Hp(r,x,l);return C??x}function bb(r,t,e){return Hp(r,t,e)==null}function Hp(r,t,e){var a=vb(r.model),n=r.getExtent(),i=a.lastAutoInterval,o=a.lastTickCount;if(i!=null&&o!=null&&Math.abs(i-t)<=1&&Math.abs(o-e)<=1&&i>t&&a.axisExtent0===n[0]&&a.axisExtent1===n[1])return i;a.lastTickCount=e,a.lastAutoInterval=t,a.axisExtent0=n[0],a.axisExtent1=n[1]}function wb(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Wp(r,t,e){var a=Pn(r),n=r.scale,i=n.getExtent(),o=r.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],f=n.count();u!==0&&l>1&&f/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=Ep(r),h=o.get("showMinLabel")||c,v=o.get("showMaxLabel")||c;h&&u!==i[0]&&p(i[0]);for(var d=u;d<=i[1];d+=l)p(d);v&&d-l!==i[1]&&p(i[1]);function p(y){var g={value:y};s.push(e?y:{formattedLabel:a(g),rawLabel:n.getLabel(g),tickValue:y,time:void 0,break:void 0})}return s}function Up(r,t,e){var a=r.scale,n=Pn(r),i=[];return w(a.getTicks(),function(o){var s=a.getLabel(o),l=o.value;t(o.value,s)&&i.push(e?l:{formattedLabel:n(o),rawLabel:s,tickValue:l,time:void 0,break:void 0})}),i}var cc=[0,1],Yp=(function(){function r(t,e,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=a||[0,0]}return r.prototype.contain=function(t){var e=this._extent,a=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=a&&t<=n},r.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.getPixelPrecision=function(t){return ph(t||this.scale.getExtent(),this._extent)},r.prototype.setExtent=function(t,e){var a=this._extent;a[0]=t,a[1]=e},r.prototype.dataToCoord=function(t,e){var a=this._extent,n=this.scale;return t=n.normalize(n.parse(t)),this.onBand&&n.type==="ordinal"&&(a=a.slice(),vc(a,n.count())),ce(t,cc,a,e)},r.prototype.coordToData=function(t,e){var a=this._extent,n=this.scale;this.onBand&&n.type==="ordinal"&&(a=a.slice(),vc(a,n.count()));var i=ce(t,a,cc,e);return this.scale.scale(i)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),a=db(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),n=a.ticks,i=X(n,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=e.get("alignWithLabel");return Cb(this,i,o,t.clamp),i},r.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var a=this.scale.getMinorTicks(e),n=X(a,function(i){return X(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return n},r.prototype.getViewLabels=function(t){return t=t||Hi(ct.determine),hb(this,t).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),a=e[1]-e[0]+(this.onBand?1:0);a===0&&(a=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/a},r.prototype.calculateCategoryInterval=function(t){return t=t||Hi(ct.determine),xb(this,t)},r})();function vc(r,t){var e=r[1]-r[0],a=t,n=e/a/2;r[0]+=n,r[1]-=n}function Cb(r,t,e,a){var n=t.length;if(!r.onBand||e||!n)return;var i=r.getExtent(),o,s;if(n===1)t[0].coord=i[0],t[0].onBand=!0,o=t[1]={coord:i[1],tickValue:t[0].tickValue,onBand:!0};else{var l=t[n-1].tickValue-t[0].tickValue,u=(t[n-1].coord-t[0].coord)/l;w(t,function(v){v.coord-=u/2,v.onBand=!0});var f=r.scale.getExtent();s=1+f[1]-t[n-1].tickValue,o={coord:t[n-1].coord+u*s,tickValue:f[1]+1,onBand:!0},t.push(o)}var c=i[0]>i[1];h(t[0].coord,i[0])&&(a?t[0].coord=i[0]:t.shift()),a&&h(i[0],t[0].coord)&&t.unshift({coord:i[0],onBand:!0}),h(i[1],o.coord)&&(a?o.coord=i[1]:t.pop()),a&&h(o.coord,i[1])&&t.push({coord:i[1],onBand:!0});function h(v,d){return v=Re(v),d=Re(d),c?v>d:v<d}}function XT(r){var t=Ge.extend(r);return Ge.registerClass(t),t}function $T(r){var t=Oe.extend(r);return Oe.registerClass(t),t}var Ia=Math.PI*2,gr=uh.CMD,Mb=["top","right","bottom","left"];function Tb(r,t,e,a,n){var i=e.width,o=e.height;switch(r){case"top":a.set(e.x+i/2,e.y-t),n.set(0,-1);break;case"bottom":a.set(e.x+i/2,e.y+o+t),n.set(0,1);break;case"left":a.set(e.x-t,e.y+o/2),n.set(-1,0);break;case"right":a.set(e.x+i+t,e.y+o/2),n.set(1,0);break}}function Db(r,t,e,a,n,i,o,s,l){o-=r,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var f=o*e+r,c=s*e+t;if(Math.abs(a-n)%Ia<1e-4)return l[0]=f,l[1]=c,u-e;if(i){var h=a;a=Ga(n),n=Ga(h)}else a=Ga(a),n=Ga(n);a>n&&(n+=Ia);var v=Math.atan2(s,o);if(v<0&&(v+=Ia),v>=a&&v<=n||v+Ia>=a&&v+Ia<=n)return l[0]=f,l[1]=c,u-e;var d=e*Math.cos(a)+r,p=e*Math.sin(a)+t,y=e*Math.cos(n)+r,g=e*Math.sin(n)+t,m=(d-o)*(d-o)+(p-s)*(p-s),_=(y-o)*(y-o)+(g-s)*(g-s);return m<_?(l[0]=d,l[1]=p,Math.sqrt(m)):(l[0]=y,l[1]=g,Math.sqrt(_))}function Wi(r,t,e,a,n,i,o,s){var l=n-r,u=i-t,f=e-r,c=a-t,h=Math.sqrt(f*f+c*c);f/=h,c/=h;var v=l*f+u*c,d=v/h;s&&(d=Math.min(Math.max(d,0),1)),d*=h;var p=o[0]=r+d*f,y=o[1]=t+d*c;return Math.sqrt((p-n)*(p-n)+(y-i)*(y-i))}function Zp(r,t,e,a,n,i,o){e<0&&(r=r+e,e=-e),a<0&&(t=t+a,a=-a);var s=r+e,l=t+a,u=o[0]=Math.min(Math.max(n,r),s),f=o[1]=Math.min(Math.max(i,t),l);return Math.sqrt((u-n)*(u-n)+(f-i)*(f-i))}var st=[];function Ab(r,t,e){var a=Zp(t.x,t.y,t.width,t.height,r.x,r.y,st);return e.set(st[0],st[1]),a}function Lb(r,t,e){for(var a=0,n=0,i=0,o=0,s,l,u=1/0,f=t.data,c=r.x,h=r.y,v=0;v<f.length;){var d=f[v++];v===1&&(a=f[v],n=f[v+1],i=a,o=n);var p=u;switch(d){case gr.M:i=f[v++],o=f[v++],a=i,n=o;break;case gr.L:p=Wi(a,n,f[v],f[v+1],c,h,st,!0),a=f[v++],n=f[v++];break;case gr.C:p=Dy(a,n,f[v++],f[v++],f[v++],f[v++],f[v],f[v+1],c,h,st),a=f[v++],n=f[v++];break;case gr.Q:p=Ty(a,n,f[v++],f[v++],f[v],f[v+1],c,h,st),a=f[v++],n=f[v++];break;case gr.A:var y=f[v++],g=f[v++],m=f[v++],_=f[v++],S=f[v++],b=f[v++];v+=1;var x=!!(1-f[v++]);s=Math.cos(S)*m+y,l=Math.sin(S)*_+g,v<=1&&(i=s,o=l);var C=(c-y)*_/m+y;p=Db(y,g,_,S,S+b,x,C,h,st),a=Math.cos(S+b)*m+y,n=Math.sin(S+b)*_+g;break;case gr.R:i=a=f[v++],o=n=f[v++];var T=f[v++],D=f[v++];p=Zp(i,o,T,D,c,h,st);break;case gr.Z:p=Wi(a,n,i,o,c,h,st,!0),a=i,n=o;break}p<u&&(u=p,e.set(st[0],st[1]))}return u}var lt=new de,le=new de,Se=new de,_t=new de,gt=new de;function hc(r,t){if(r){var e=r.getTextGuideLine(),a=r.getTextContent();if(a&&e){var n=r.textGuideLineConfig||{},i=[[0,0],[0,0],[0,0]],o=n.candidates||Mb,s=a.getBoundingRect().clone();s.applyTransform(a.getComputedTransform());var l=1/0,u=n.anchor,f=r.getComputedTransform(),c=f&&eo([],f),h=t.get("length2")||0;u&&Se.copy(u);for(var v=0;v<o.length;v++){var d=o[v];Tb(d,0,s,lt,_t),de.scaleAndAdd(le,lt,_t,h),le.transform(c);var p=r.getBoundingRect(),y=u?u.distance(le):r instanceof We?Lb(le,r.path,Se):Ab(le,p,Se);y<l&&(l=y,le.transform(f),Se.transform(f),Se.toArray(i[0]),le.toArray(i[1]),lt.toArray(i[2]))}Xp(i,t.get("minTurnAngle")),e.setShape({points:i})}}}var Ui=[],Ye=new de;function Xp(r,t){if(t<=180&&t>0){t=t/180*Math.PI,lt.fromArray(r[0]),le.fromArray(r[1]),Se.fromArray(r[2]),de.sub(_t,lt,le),de.sub(gt,Se,le);var e=_t.len(),a=gt.len();if(!(e<.001||a<.001)){_t.scale(1/e),gt.scale(1/a);var n=_t.dot(gt),i=Math.cos(t);if(i<n){var o=Wi(le.x,le.y,Se.x,Se.y,lt.x,lt.y,Ui,!1);Ye.fromArray(Ui),Ye.scaleAndAdd(gt,o/Math.tan(Math.PI-t));var s=Se.x!==le.x?(Ye.x-le.x)/(Se.x-le.x):(Ye.y-le.y)/(Se.y-le.y);if(isNaN(s))return;s<0?de.copy(Ye,le):s>1&&de.copy(Ye,Se),Ye.toArray(r[1])}}}}function Ib(r,t,e){if(e<=180&&e>0){e=e/180*Math.PI,lt.fromArray(r[0]),le.fromArray(r[1]),Se.fromArray(r[2]),de.sub(_t,le,lt),de.sub(gt,Se,le);var a=_t.len(),n=gt.len();if(!(a<.001||n<.001)){_t.scale(1/a),gt.scale(1/n);var i=_t.dot(t),o=Math.cos(e);if(i<o){var s=Wi(le.x,le.y,Se.x,Se.y,lt.x,lt.y,Ui,!1);Ye.fromArray(Ui);var l=Math.PI/2,u=Math.acos(gt.dot(t)),f=l+u-e;if(f>=l)de.copy(Ye,Se);else{Ye.scaleAndAdd(gt,s/Math.tan(Math.PI/2-f));var c=Se.x!==le.x?(Ye.x-le.x)/(Se.x-le.x):(Ye.y-le.y)/(Se.y-le.y);if(isNaN(c))return;c<0?de.copy(Ye,le):c>1&&de.copy(Ye,Se)}Ye.toArray(r[1])}}}}function $o(r,t,e,a){var n=e==="normal",i=n?r:r.ensureState(e);i.ignore=t;var o=a.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=a.getModel("lineStyle").getLineStyle();n?r.useStyle(s):i.style=s}function Pb(r,t){var e=t.smooth,a=t.points;if(a)if(r.moveTo(a[0][0],a[0][1]),e>0&&a.length>=3){var n=ku(a[0],a[1]),i=ku(a[1],a[2]);if(!n||!i){r.lineTo(a[1][0],a[1][1]),r.lineTo(a[2][0],a[2][1]);return}var o=Math.min(n,i)*e,s=bo([],a[1],a[0],o/n),l=bo([],a[1],a[2],o/i),u=bo([],s,l,.5);r.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),r.bezierCurveTo(l[0],l[1],l[0],l[1],a[2][0],a[2][1])}else for(var f=1;f<a.length;f++)r.lineTo(a[f][0],a[f][1])}function $p(r,t,e){var a=r.getTextGuideLine(),n=r.getTextContent();if(!n){a&&r.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=n.ignore,l=0;l<wi.length;l++){var u=wi[l],f=t[u],c=u==="normal";if(f){var h=f.get("show"),v=c?s:J(n.states[u]&&n.states[u].ignore,s);if(v||!J(h,o)){var d=c?a:a&&a.states[u];d&&(d.ignore=!0),a&&$o(a,!0,u,f);continue}a||(a=new or,r.setTextGuideLine(a),!c&&(s||!o)&&$o(a,!0,"normal",t.normal),r.stateProxy&&(a.stateProxy=r.stateProxy)),$o(a,!1,u,f)}}if(a){ae(a.style,e),a.style.fill=null;var p=i.get("showAbove"),y=r.textGuideLineConfig=r.textGuideLineConfig||{};y.showAbove=p||!1,a.buildPath=Pb}}function Kp(r,t){t=t||"labelLine";for(var e={normal:r.getModel(t)},a=0;a<tt.length;a++){var n=tt[a];e[n]=r.getModel([n,t])}return e}var dc=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],kb=1,Yi=2,qp=kb|Yi;function Zi(r,t,e){e=e||qp,t?r.dirty|=e:r.dirty&=~e}function jp(r,t){return t=t||qp,r.dirty==null||!!(r.dirty&t)}function nr(r){if(r)return jp(r)&&Qp(r,r.label,r),r}function Qp(r,t,e){var a=t.getComputedTransform();r.transform=zl(r.transform,a);var n=r.localRect=hn(r.localRect,t.getBoundingRect()),i=t.style,o=i.margin,s=e&&e.marginForce,l=e&&e.minMarginForce,u=e&&e.marginDefault,f=i.__marginType;f==null&&u&&(o=u,f=Jr.textMargin);for(var c=0;c<4;c++)Ko[c]=f===Jr.minMargin&&l&&l[c]!=null?l[c]:s&&s[c]!=null?s[c]:o?o[c]:0;f===Jr.textMargin&&vn(n,Ko,!1,!1);var h=r.rect=hn(r.rect,n);return a&&h.applyTransform(a),f===Jr.minMargin&&vn(h,Ko,!1,!1),r.axisAligned=Vl(a),(r.label=r.label||{}).ignore=t.ignore,Zi(r,!1),Zi(r,!0,Yi),r}var Ko=[0,0,0,0];function Rb(r,t,e){return r.transform=zl(r.transform,e),r.localRect=hn(r.localRect,t),r.rect=hn(r.rect,t),e&&r.rect.applyTransform(e),r.axisAligned=Vl(e),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function Eb(r,t){if(r){r.label.x+=t.x,r.label.y+=t.y,r.label.markRedraw();var e=r.transform;e&&(e[4]+=t.x,e[5]+=t.y);var a=r.rect;a&&(a.x+=t.x,a.y+=t.y);var n=r.obb;n&&n.fromBoundingRect(r.localRect,e)}}function al(r,t){for(var e=0;e<dc.length;e++){var a=dc[e];r[a]==null&&(r[a]=t[a])}return nr(r)}function pc(r){var t=r.obb;return(!t||jp(r,Yi))&&(r.obb=t=t||new oh,t.fromBoundingRect(r.localRect,r.transform),Zi(r,!1,Yi)),t}function nl(r,t,e,a,n){var i=r.length,o=$t[t],s=sa[t];if(i<2)return!1;r.sort(function(C,T){return C.rect[o]-T.rect[o]});for(var l=0,u,f=!1,c=0;c<i;c++){var h=r[c],v=h.rect;u=v[o]-l,u<0&&(v[o]-=u,h.label[o]-=u,f=!0),l=v[o]+v[s]}var d=r[0],p=r[i-1],y,g;m(),y<0&&b(-y,.8),g<0&&b(g,.8),m(),_(y,g,1),_(g,y,-1),m(),y<0&&x(-y),g<0&&x(g);function m(){y=d.rect[o]-e,g=a-p.rect[o]-p.rect[s]}function _(C,T,D){if(C<0){var A=Math.min(T,-C);if(A>0){S(A*D,0,i);var M=A+C;M<0&&b(-M*D,1)}else b(-C*D,1)}}function S(C,T,D){C!==0&&(f=!0);for(var A=T;A<D;A++){var M=r[A],P=M.rect;P[o]+=C,M.label[o]+=C}}function b(C,T){for(var D=[],A=0,M=1;M<i;M++){var P=r[M-1].rect,L=Math.max(r[M].rect[o]-P[o]-P[s],0);D.push(L),A+=L}if(A){var E=Math.min(Math.abs(C)/A,T);if(C>0)for(var M=0;M<i-1;M++){var I=D[M]*E;S(I,0,M+1)}else for(var M=i-1;M>0;M--){var I=D[M-1]*E;S(-I,M,i)}}}function x(C){var T=C<0?-1:1;C=Math.abs(C);for(var D=Math.ceil(C/(i-1)),A=0;A<i-1;A++)if(T>0?S(D,0,A+1):S(-D,i-A-1,i),C-=D,C<=0)return}return f}function Ob(r){for(var t=0;t<r.length;t++){var e=r[t],a=e.defaultAttr,n=e.labelLine;e.label.attr("ignore",a.ignore),n&&n.attr("ignore",a.labelGuideIgnore)}}function Jp(r){var t=[];r.sort(function(u,f){return(f.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||f.priority-u.priority});function e(u){if(!u.ignore){var f=u.ensureState("emphasis");f.ignore==null&&(f.ignore=!1)}u.ignore=!0}for(var a=0;a<r.length;a++){var n=nr(r[a]);if(!n.label.ignore){for(var i=n.label,o=n.labelLine,s=!1,l=0;l<t.length;l++)if(pu(n,t[l],null,{touchThreshold:.05})){s=!0;break}s?(e(i),o&&e(o)):t.push(n)}}}function pu(r,t,e,a){return!r||!t||r.label&&r.label.ignore||t.label&&t.label.ignore||!r.rect.intersect(t.rect,e,a)?!1:r.axisAligned&&t.axisAligned?!0:pc(r).intersect(pc(t),e,a)}function Bb(r){if(r){for(var t=[],e=0;e<r.length;e++)t.push(r[e].slice());return t}}function Nb(r,t){var e=r.label,a=t&&t.getTextGuideLine();return{dataIndex:r.dataIndex,dataType:r.dataType,seriesIndex:r.seriesModel.seriesIndex,text:r.label.style.text,rect:r.hostRect,labelRect:r.rect,align:e.style.align,verticalAlign:e.style.verticalAlign,labelLinePoints:Bb(a&&a.shape.points)}}var gc=["align","verticalAlign","width","height","fontSize"],Ue=new eh,qo=ie(),Vb=ie();function jn(r,t,e){for(var a=0;a<e.length;a++){var n=e[a];t[n]!=null&&(r[n]=t[n])}}var Qn=["x","y","rotation"],zb=(function(){function r(){this._labelList=[],this._chartViewList=[]}return r.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},r.prototype._addLabel=function(t,e,a,n,i){var o=n.style,s=n.__hostTarget,l=s.textConfig||{},u=n.getComputedTransform(),f=n.getBoundingRect().plain();Ve.applyTransform(f,f,u),u?Ue.setLocalTransform(u):(Ue.x=Ue.y=Ue.rotation=Ue.originX=Ue.originY=0,Ue.scaleX=Ue.scaleY=1),Ue.rotation=Ga(Ue.rotation);var c=n.__hostTarget,h;if(c){h=c.getBoundingRect().plain();var v=c.getComputedTransform();Ve.applyTransform(h,h,v)}var d=h&&c.getTextGuideLine();this._labelList.push({label:n,labelLine:d,seriesModel:a,dataIndex:t,dataType:e,layoutOptionOrCb:i,layoutOption:null,rect:f,hostRect:h,priority:h?h.width*h.height:0,defaultAttr:{ignore:n.ignore,labelGuideIgnore:d&&d.ignore,x:Ue.x,y:Ue.y,scaleX:Ue.scaleX,scaleY:Ue.scaleY,rotation:Ue.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:n.cursor,attachedPos:l.position,attachedRot:l.rotation}})},r.prototype.addLabelsOfSeries=function(t){var e=this;this._chartViewList.push(t);var a=t.__model,n=a.get("labelLayout");(j(n)||Ie(n).length)&&t.group.traverse(function(i){if(i.ignore)return!0;var o=i.getTextContent(),s=te(i);o&&!o.disableLabelLayout&&e._addLabel(s.dataIndex,s.dataType,a,o,n)})},r.prototype.updateLayoutConfig=function(t){var e=t.getWidth(),a=t.getHeight();function n(_,S){return function(){hc(_,S)}}for(var i=0;i<this._labelList.length;i++){var o=this._labelList[i],s=o.label,l=s.__hostTarget,u=o.defaultAttr,f=void 0;j(o.layoutOptionOrCb)?f=o.layoutOptionOrCb(Nb(o,l)):f=o.layoutOptionOrCb,f=f||{},o.layoutOption=f;var c=Math.PI/180;l&&l.setTextConfig({local:!1,position:f.x!=null||f.y!=null?null:u.attachedPos,rotation:f.rotate!=null?f.rotate*c:u.attachedRot,offset:[f.dx||0,f.dy||0]});var h=!1;if(f.x!=null?(s.x=ne(f.x,e),s.setStyle("x",0),h=!0):(s.x=u.x,s.setStyle("x",u.style.x)),f.y!=null?(s.y=ne(f.y,a),s.setStyle("y",0),h=!0):(s.y=u.y,s.setStyle("y",u.style.y)),f.labelLinePoints){var v=l.getTextGuideLine();v&&(v.setShape({points:f.labelLinePoints}),h=!1)}var d=qo(s);d.needsUpdateLabelLine=h,s.rotation=f.rotate!=null?f.rotate*c:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var p=0;p<gc.length;p++){var y=gc[p];s.setStyle(y,f[y]!=null?f[y]:u.style[y])}if(f.draggable){if(s.draggable=!0,s.cursor="move",l){var g=o.seriesModel;if(o.dataIndex!=null){var m=o.seriesModel.getData(o.dataType);g=m.getItemModel(o.dataIndex)}s.on("drag",n(l,g.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},r.prototype.layout=function(t){var e=t.getWidth(),a=t.getHeight(),n=[];w(this._labelList,function(l){l.defaultAttr.ignore||n.push(al({},l))});var i=Me(n,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=Me(n,function(l){return l.layoutOption.moveOverlap==="shiftY"});nl(i,0,0,e),nl(o,1,0,a);var s=Me(n,function(l){return l.layoutOption.hideOverlap});Ob(s),Jp(s)},r.prototype.processLabelsOverall=function(){var t=this;w(this._chartViewList,function(e){var a=e.__model,n=e.ignoreLabelLineUpdate,i=a.isAnimationEnabled();e.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!n,l=o.getTextContent();!s&&l&&(s=qo(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,a),i&&t._animateLabels(o,a)})})},r.prototype._updateLabelLine=function(t,e){var a=t.getTextContent(),n=te(t),i=n.dataIndex;if(a&&i!=null){var o=e.getData(n.dataType),s=o.getItemModel(i),l={},u=o.getItemVisual(i,"style");if(u){var f=o.getVisual("drawType");l.stroke=u[f]}var c=s.getModel("labelLine");$p(t,Kp(s),l),hc(t,c)}},r.prototype._animateLabels=function(t,e){var a=t.getTextContent(),n=t.getTextGuideLine();if(a&&(t.forceLabelAnimation||!a.ignore&&!a.invisible&&!t.disableLabelAnimation&&!ra(t))){var i=qo(a),o=i.oldLayout,s=te(t),l=s.dataIndex,u={x:a.x,y:a.y,rotation:a.rotation},f=e.getData(s.dataType);if(o){a.attr(o);var h=t.prevStates;h&&(ue(h,"select")>=0&&a.attr(i.oldLayoutSelect),ue(h,"emphasis")>=0&&a.attr(i.oldLayoutEmphasis)),De(a,u,e,l)}else if(a.attr(u),!ga(a).valueAnimation){var c=J(a.style.opacity,1);a.style.opacity=0,Ee(a,{style:{opacity:c}},e,l)}if(i.oldLayout=u,a.states.select){var v=i.oldLayoutSelect={};jn(v,u,Qn),jn(v,a.states.select,Qn)}if(a.states.emphasis){var d=i.oldLayoutEmphasis={};jn(d,u,Qn),jn(d,a.states.emphasis,Qn)}r0(a,l,f,e,e)}if(n&&!n.ignore&&!n.invisible){var i=Vb(n),o=i.oldLayout,p={points:n.shape.points};o?(n.attr({shape:o}),De(n,{shape:p},e)):(n.setShape(p),n.style.strokePercent=0,Ee(n,{style:{strokePercent:1}},e)),i.oldLayout=p}},r})(),jo=ie();function Fb(r){r.registerUpdateLifecycle("series:beforeupdate",function(t,e,a){var n=jo(e).labelManager;n||(n=jo(e).labelManager=new zb),n.clearLabels()}),r.registerUpdateLifecycle("series:layoutlabels",function(t,e,a){var n=jo(e).labelManager;a.updatedSeries.forEach(function(i){n.addLabelsOfSeries(e.getViewOfSeriesModel(i))}),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()})}function Gb(r){r.registerPainter("canvas",Ay)}var Hb=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return In(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var a=new pe,n=at("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);a.add(n),n.setStyle(e.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=e.itemHeight*.8,u=at(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);a.add(u),u.setStyle(e.itemStyle);var f=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=f*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=O.color.neutral00,u.style.lineWidth=2),a},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(Ge);function Sn(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var n=la(r,t,e[0]);return n!=null?n+"":null}else if(a){for(var i=[],o=0;o<e.length;o++)i.push(la(r,t,e[o]));return i.join(" ")}}function eg(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!z(t))return t+"";for(var a=[],n=0;n<e.length;n++){var i=r.getDimensionIndex(e[n]);i>=0&&a.push(t[i])}return a.join(" ")}var gu=(function(r){W(t,r);function t(e,a,n,i){var o=r.call(this)||this;return o.updateData(e,a,n,i),o}return t.prototype._createSymbol=function(e,a,n,i,o,s){this.removeAll();var l=at(e,-1,-1,2,2,null,s);l.attr({z2:J(o,100),culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),l.drift=Wb,this._symbolType=e,this.add(l)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ti(this.childAt(0))},t.prototype.downplay=function(){Di(this.childAt(0))},t.prototype.setZ=function(e,a){var n=this.childAt(0);n.zlevel=e,n.z=a},t.prototype.setDraggable=function(e,a){var n=this.childAt(0);n.draggable=e,n.cursor=!a&&e?"move":n.cursor},t.prototype.updateData=function(e,a,n,i){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,a),u=t.getSymbolZ2(e,a),f=o!==this._symbolType,c=i&&i.disableAnimation;if(f){var h=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,l,u,h)}else{var v=this.childAt(0);v.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};c?v.attr(d):De(v,d,s,a),un(v)}if(this._updateCommon(e,a,l,n,i),f){var v=this.childAt(0);if(!c){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Ee(v,d,s,a)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,a,n,i,o){var s=this.childAt(0),l=e.hostModel,u,f,c,h,v,d,p,y,g;if(i&&(u=i.emphasisItemStyle,f=i.blurItemStyle,c=i.selectItemStyle,h=i.focus,v=i.blurScope,p=i.labelStatesModels,y=i.hoverScale,g=i.cursorStyle,d=i.emphasisDisabled),!i||e.hasItemOption){var m=i&&i.itemModel?i.itemModel:e.getItemModel(a),_=m.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),c=m.getModel(["select","itemStyle"]).getItemStyle(),f=m.getModel(["blur","itemStyle"]).getItemStyle(),h=_.get("focus"),v=_.get("blurScope"),d=_.get("disabled"),p=rr(m),y=_.getShallow("scale"),g=m.getShallow("cursor")}var S=e.getItemVisual(a,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var b=$d(e.getItemVisual(a,"symbolOffset"),n);b&&(s.x=b[0],s.y=b[1]),g&&s.attr("cursor",g);var x=e.getItemVisual(a,"style"),C=x.fill;if(s instanceof Et){var T=s.style;s.useStyle(U({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(U({},x)):s.useStyle(x),s.style.decal=null,s.setColor(C,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=e.getItemVisual(a,"liftZ"),A=this._z2;D!=null?A==null&&(this._z2=s.z2,s.z2+=D):A!=null&&(s.z2=A,this._z2=null);var M=o&&o.useNameLabel;kr(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:P,inheritColor:C,defaultOpacity:x.opacity});function P(I){return M?e.getName(I):Sn(e,I)}this._sizeX=n[0]/2,this._sizeY=n[1]/2;var L=s.ensureState("emphasis");L.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=f;var E=y==null||y===!0?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;L.scaleX=this._sizeX*E,L.scaleY=this._sizeY*E,this.setSymbolScale(1),tr(this,h,v,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,n){var i=this.childAt(0),o=te(this).dataIndex,s=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var l=i.getTextContent();l&&Li(l,{style:{opacity:0}},a,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Li(i,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return Xd(e.getItemVisual(a,"symbolSize"))},t.getSymbolZ2=function(e,a){return e.getItemVisual(a,"z2")},t})(pe);function Wb(r,t){this.parent.drift(r,t)}function Qo(r,t,e,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a.isIgnore&&a.isIgnore(e))&&!(a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function yc(r){return r!=null&&!K(r)&&(r={isIgnore:r}),r||{}}function mc(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:rr(t),cursorStyle:t.get("cursor")}}var Ub=(function(){function r(t){this.group=new pe,this._SymbolCtor=t||gu}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=yc(e);var a=this.group,n=t.hostModel,i=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=mc(t),u={disableAnimation:s},f=e.getSymbolPoint||function(c){return t.getItemLayout(c)};i||a.removeAll(),t.diff(i).add(function(c){var h=f(c);if(Qo(t,h,c,e)){var v=new o(t,c,l,u);v.setPosition(h),t.setItemGraphicEl(c,v),a.add(v)}}).update(function(c,h){var v=i.getItemGraphicEl(h),d=f(c);if(!Qo(t,d,c,e)){a.remove(v);return}var p=t.getItemVisual(c,"symbol")||"circle",y=v&&v.getSymbolType&&v.getSymbolType();if(!v||y&&y!==p)a.remove(v),v=new o(t,c,l,u),v.setPosition(d);else{v.updateData(t,c,l,u);var g={x:d[0],y:d[1]};s?v.attr(g):De(v,g,n)}a.add(v),t.setItemGraphicEl(c,v)}).remove(function(c){var h=i.getItemGraphicEl(c);h&&h.fadeOut(function(){a.remove(h)},n)}).execute(),this._getSymbolPoint=f,this._data=t},r.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(a,n){var i=t._getSymbolPoint(n);a.setPosition(i),a.markRedraw()})},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=mc(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[],a=yc(a);function n(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=e.getItemLayout(i);if(Qo(e,o,i,a)){var s=new this._SymbolCtor(e,i,this._seriesScope);s.traverse(n),s.setPosition(o),this.group.add(s),e.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},r.prototype.eachRendered=function(t){pa(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,a=this._data;a&&t?a.eachItemGraphicEl(function(n){n.fadeOut(function(){e.remove(n)},a.hostModel)}):e.removeAll()},r})();function tg(r,t,e){var a=r.getBaseAxis(),n=r.getOtherAxis(a),i=Yb(n,e),o=a.dim,s=n.dim,l=t.mapDimension(s),u=t.mapDimension(o),f=s==="x"||s==="radius"?1:0,c=X(r.dimensions,function(d){return t.mapDimension(d)}),h=!1,v=t.getCalculationInfo("stackResultDimension");return ua(t,c[0])&&(h=!0,c[0]=v),ua(t,c[1])&&(h=!0,c[1]=v),{dataDimsForPoint:c,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!h,valueDim:l,baseDim:u,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Yb(r,t){var e=0,a=r.scale.getExtent();return t==="start"?e=a[0]:t==="end"?e=a[1]:ve(t)&&!isNaN(t)?e=t:a[0]>0?e=a[0]:a[1]<0&&(e=a[1]),e}function rg(r,t,e,a){var n=NaN;r.stacked&&(n=e.get(e.getCalculationInfo("stackedOverDimension"),a)),isNaN(n)&&(n=r.valueStart);var i=r.baseDataOffset,o=[];return o[i]=e.get(r.baseDim,a),o[1-i]=n,t.dataToPoint(o)}function Zb(r,t){var e=[];return t.diff(r).add(function(a){e.push({cmd:"+",idx:a})}).update(function(a,n){e.push({cmd:"=",idx:n,idx1:a})}).remove(function(a){e.push({cmd:"-",idx:a})}).execute(),e}function Xb(r,t,e,a,n,i,o,s){for(var l=Zb(r,t),u=[],f=[],c=[],h=[],v=[],d=[],p=[],y=tg(n,t,o),g=r.getLayout("points")||[],m=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],b=!0,x=void 0,C=void 0;switch(S.cmd){case"=":x=S.idx*2,C=S.idx1*2;var T=g[x],D=g[x+1],A=m[C],M=m[C+1];(isNaN(T)||isNaN(D))&&(T=A,D=M),u.push(T,D),f.push(A,M),c.push(e[x],e[x+1]),h.push(a[C],a[C+1]),p.push(t.getRawIndex(S.idx1));break;case"+":var P=S.idx,L=y.dataDimsForPoint,E=n.dataToPoint([t.get(L[0],P),t.get(L[1],P)]);C=P*2,u.push(E[0],E[1]),f.push(m[C],m[C+1]);var I=rg(y,n,t,P);c.push(I[0],I[1]),h.push(a[C],a[C+1]),p.push(t.getRawIndex(P));break;case"-":b=!1}b&&(v.push(S),d.push(d.length))}d.sort(function(we,Nt){return p[we]-p[Nt]});for(var k=u.length,N=At(k),R=At(k),B=At(k),V=At(k),G=[],_=0;_<d.length;_++){var Y=d[_],Q=_*2,ge=Y*2;N[Q]=u[ge],N[Q+1]=u[ge+1],R[Q]=f[ge],R[Q+1]=f[ge+1],B[Q]=c[ge],B[Q+1]=c[ge+1],V[Q]=h[ge],V[Q+1]=h[ge+1],G[_]=v[Y]}return{current:N,next:R,stackedOnCurrent:B,stackedOnNext:V,status:G}}var Ut=Math.min,Yt=Math.max;function Cr(r,t){return isNaN(r)||isNaN(t)}function il(r,t,e,a,n,i,o,s,l){for(var u,f,c,h,v,d,p=e,y=0;y<a;y++){var g=t[p*2],m=t[p*2+1];if(p>=n||p<0)break;if(Cr(g,m)){if(l){p+=i;continue}break}if(p===e)r[i>0?"moveTo":"lineTo"](g,m),c=g,h=m;else{var _=g-u,S=m-f;if(_*_+S*S<.5){p+=i;continue}if(o>0){for(var b=p+i,x=t[b*2],C=t[b*2+1];x===g&&C===m&&y<a;)y++,b+=i,p+=i,x=t[b*2],C=t[b*2+1],g=t[p*2],m=t[p*2+1],_=g-u,S=m-f;var T=y+1;if(l)for(;Cr(x,C)&&T<a;)T++,b+=i,x=t[b*2],C=t[b*2+1];var D=.5,A=0,M=0,P=void 0,L=void 0;if(T>=a||Cr(x,C))v=g,d=m;else{A=x-u,M=C-f;var E=g-u,I=x-g,k=m-f,N=C-m,R=void 0,B=void 0;if(s==="x"){R=Math.abs(E),B=Math.abs(I);var V=A>0?1:-1;v=g-V*R*o,d=m,P=g+V*B*o,L=m}else if(s==="y"){R=Math.abs(k),B=Math.abs(N);var G=M>0?1:-1;v=g,d=m-G*R*o,P=g,L=m+G*B*o}else R=Math.sqrt(E*E+k*k),B=Math.sqrt(I*I+N*N),D=B/(B+R),v=g-A*o*(1-D),d=m-M*o*(1-D),P=g+A*o*D,L=m+M*o*D,P=Ut(P,Yt(x,g)),L=Ut(L,Yt(C,m)),P=Yt(P,Ut(x,g)),L=Yt(L,Ut(C,m)),A=P-g,M=L-m,v=g-A*R/B,d=m-M*R/B,v=Ut(v,Yt(u,g)),d=Ut(d,Yt(f,m)),v=Yt(v,Ut(u,g)),d=Yt(d,Ut(f,m)),A=g-v,M=m-d,P=g+A*B/R,L=m+M*B/R}r.bezierCurveTo(c,h,v,d,g,m),c=P,h=L}else r.lineTo(g,m)}u=g,f=m,p+=i}return y}var ag=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),$b=(function(r){W(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polyline",a}return t.prototype.getDefaultStyle=function(){return{stroke:O.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new ag},t.prototype.buildPath=function(e,a){var n=a.points,i=0,o=n.length/2;if(a.connectNulls){for(;o>0&&Cr(n[o*2-2],n[o*2-1]);o--);for(;i<o&&Cr(n[i*2],n[i*2+1]);i++);}for(;i<o;)i+=il(e,n,i,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},t.prototype.getPointOn=function(e,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n=this.path,i=n.data,o=uh.CMD,s,l,u=a==="x",f=[],c=0;c<i.length;){var h=i[c++],v=void 0,d=void 0,p=void 0,y=void 0,g=void 0,m=void 0,_=void 0;switch(h){case o.M:s=i[c++],l=i[c++];break;case o.L:if(v=i[c++],d=i[c++],_=u?(e-s)/(v-s):(e-l)/(d-l),_<=1&&_>=0){var S=u?(d-l)*_+l:(v-s)*_+s;return u?[e,S]:[S,e]}s=v,l=d;break;case o.C:v=i[c++],d=i[c++],p=i[c++],y=i[c++],g=i[c++],m=i[c++];var b=u?Ru(s,v,p,g,e,f):Ru(l,d,y,m,e,f);if(b>0)for(var x=0;x<b;x++){var C=f[x];if(C<=1&&C>=0){var S=u?Eu(l,d,y,m,C):Eu(s,v,p,g,C);return u?[e,S]:[S,e]}}s=g,l=m;break}}},t})(We),Kb=(function(r){W(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(ag),qb=(function(r){W(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polygon",a}return t.prototype.getDefaultShape=function(){return new Kb},t.prototype.buildPath=function(e,a){var n=a.points,i=a.stackedOnPoints,o=0,s=n.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&Cr(n[s*2-2],n[s*2-1]);s--);for(;o<s&&Cr(n[o*2],n[o*2+1]);o++);}for(;o<s;){var u=il(e,n,o,s,s,1,a.smooth,l,a.connectNulls);il(e,i,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,e.closePath()}},t})(We);function ng(r,t,e,a,n){var i=r.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,f=e.get(["lineStyle","width"])||0;o-=f/2,s-=f/2,l+=f,u+=f,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var c=new se({shape:{x:o,y:s,width:l,height:u}});if(t){var h=r.getBaseAxis(),v=h.isHorizontal(),d=h.inverse;v?(d&&(c.shape.x+=l),c.shape.width=0):(d||(c.shape.y+=u),c.shape.height=0);var p=j(n)?function(y){n(y,c)}:null;Ee(c,{shape:{width:l,height:u,x:o,y:s}},e,null,a,p)}return c}function ig(r,t,e){var a=r.getArea(),n=Re(a.r0,1),i=Re(a.r,1),o=new Ir({shape:{cx:Re(r.cx,1),cy:Re(r.cy,1),r0:n,r:i,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=n,Ee(o,{shape:{endAngle:a.endAngle,r:i}},e)}return o}function og(r,t,e,a,n){if(r){if(r.type==="polar")return ig(r,t,e);if(r.type==="cartesian2d")return ng(r,t,e,a,n)}else return null;return null}function xn(r,t){return r.type===t}function _c(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function Sc(r){for(var t=1/0,e=1/0,a=-1/0,n=-1/0,i=0;i<r.length;){var o=r[i++],s=r[i++];isNaN(o)||(t=Math.min(o,t),a=Math.max(o,a)),isNaN(s)||(e=Math.min(s,e),n=Math.max(s,n))}return[[t,e],[a,n]]}function xc(r,t){var e=Sc(r),a=e[0],n=e[1],i=Sc(t),o=i[0],s=i[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(a[1]-o[1]),Math.abs(n[0]-s[0]),Math.abs(n[1]-s[1]))}function bc(r){return ve(r)?r:r?.5:0}function jb(r,t,e){if(!e.valueDim)return[];for(var a=t.count(),n=At(a*2),i=0;i<a;i++){var o=rg(e,r,t,i);n[i*2]=o[0],n[i*2+1]=o[1]}return n}function Zt(r,t,e,a,n){var i=e.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,s=[],l=0,u=[],f=[],c=[],h=[];if(n){for(l=0;l<r.length;l+=2){var v=t||r;!isNaN(v[l])&&!isNaN(v[l+1])&&h.push(r[l],r[l+1])}r=h}for(l=0;l<r.length-2;l+=2)switch(c[0]=r[l+2],c[1]=r[l+3],f[0]=r[l],f[1]=r[l+1],s.push(f[0],f[1]),a){case"end":u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1]);break;case"middle":var d=(f[o]+c[o])/2,p=[];u[o]=p[o]=d,u[1-o]=f[1-o],p[1-o]=c[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function Qb(r,t){var e=[],a=r.length,n,i;function o(f,c,h){var v=f.coord,d=(h-v)/(c.coord-v),p=Ly(d,[f.color,c.color]);return{coord:h,color:p}}for(var s=0;s<a;s++){var l=r[s],u=l.coord;if(u<0)n=l;else if(u>t){i?e.push(o(i,l,t)):n&&e.push(o(n,l,0),o(n,l,t));break}else n&&(e.push(o(n,l,0)),n=null),e.push(l),i=l}return e}function Jb(r,t,e){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&t.type==="cartesian2d"){for(var n,i,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(n=s&&s.coordDim,n==="x"||n==="y"){i=a[o];break}}if(i){var l=t.getAxis(n),u=X(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=u.length,c=i.outerColors.slice();f&&u[0].coord>u[f-1].coord&&(u.reverse(),c.reverse());var h=Qb(u,n==="x"?e.getWidth():e.getHeight()),v=h.length;if(!v&&f)return u[0].coord<0?c[1]?c[1]:u[f-1].color:c[0]?c[0]:u[0].color;var d=10,p=h[0].coord-d,y=h[v-1].coord+d,g=y-p;if(g<.001)return"transparent";w(h,function(_){_.offset=(_.coord-p)/g}),h.push({offset:v?h[v-1].offset:.5,color:c[1]||"transparent"}),h.unshift({offset:v?h[0].offset:.5,color:c[0]||"transparent"});var m=new wl(0,0,0,0,h,!0);return m[n]=p,m[n+"2"]=y,m}}}function ew(r,t,e){var a=r.get("showAllSymbol"),n=a==="auto";if(!(a&&!n)){var i=e.getAxesByScale("ordinal")[0];if(i&&!(n&&tw(i,t))){var o=t.mapDimension(i.dim),s={};return w(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function tw(r,t){var e=r.getExtent(),a=Math.abs(e[1]-e[0])/r.scale.count();isNaN(a)&&(a=0);for(var n=t.count(),i=Math.max(1,Math.round(n/5)),o=0;o<n;o+=i)if(gu.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function rw(r,t){return isNaN(r)||isNaN(t)}function aw(r){for(var t=r.length/2;t>0&&rw(r[t*2-2],r[t*2-1]);t--);return t-1}function wc(r,t){return[r[t*2],r[t*2+1]]}function nw(r,t,e){for(var a=r.length/2,n=e==="x"?0:1,i,o,s=0,l=-1,u=0;u<a;u++)if(o=r[u*2+n],!(isNaN(o)||isNaN(r[u*2+1-n]))){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function sg(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<tt.length;t++)if(r.get([tt[t],"endLabel","show"]))return!0;return!1}function Jo(r,t,e,a){if(xn(t,"cartesian2d")){var n=a.getModel("endLabel"),i=n.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=sg(a)?function(v,d){r._endLabelOnDuring(v,d,o,s,i,n,t)}:null,u=t.getBaseAxis().isHorizontal(),f=ng(t,e,a,function(){var v=r._endLabel;v&&e&&s.originalX!=null&&v.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var c=f.shape,h=Math.max(c.width,c.height);u?(c.y-=h,c.height+=h*2):(c.x-=h,c.width+=h*2)}return l&&l(1,f),f}else return ig(t,e,a)}function iw(r,t){var e=t.getBaseAxis(),a=e.isHorizontal(),n=e.inverse,i=a?n?"right":"left":"center",o=a?"middle":n?"top":"bottom";return{normal:{align:r.get("align")||i,verticalAlign:r.get("verticalAlign")||o}}}var ow=(function(r){W(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new pe,a=new Ub;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=e,this._changePolyState=Z(this._changePolyState,this)},t.prototype.render=function(e,a,n){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),f=s.getLayout("points")||[],c=i.type==="polar",h=this._coordSys,v=this._symbolDraw,d=this._polyline,p=this._polygon,y=this._lineGroup,g=!a.ssr&&e.get("animation"),m=!u.isEmpty(),_=u.get("origin"),S=tg(i,s,_),b=m&&jb(i,s,S),x=e.get("showSymbol"),C=e.get("connectNulls"),T=x&&!c&&ew(e,s,i),D=this._data;D&&D.eachItemGraphicEl(function(we,Nt){we.__temp&&(o.remove(we),D.setItemGraphicEl(Nt,null))}),x||v.remove(),o.add(y);var A=c?!1:e.get("step"),M;i&&i.getArea&&e.get("clip",!0)&&(M=i.getArea(),M.width!=null?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var P=Jb(s,i,n)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&h.type===i.type&&A===this._step))x&&v.updateData(s,{isIgnore:T,clipShape:M,disableAnimation:!0,getSymbolPoint:function(we){return[f[we*2],f[we*2+1]]}}),g&&this._initSymbolLabelAnimation(s,i,M),A&&(b&&(b=Zt(b,f,i,A,C)),f=Zt(f,null,i,A,C)),d=this._newPolyline(f),m?p=this._newPolygon(f,b):p&&(y.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,i,Ar(P)),y.setClipPath(Jo(this,i,!0,e));else{m&&!p?p=this._newPolygon(f,b):p&&!m&&(y.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(e,i,Ar(P));var L=y.getClipPath();if(L){var E=Jo(this,i,!1,e);Ee(L,{shape:E.shape},e)}else y.setClipPath(Jo(this,i,!0,e));x&&v.updateData(s,{isIgnore:T,clipShape:M,disableAnimation:!0,getSymbolPoint:function(we){return[f[we*2],f[we*2+1]]}}),(!_c(this._stackedOnPoints,b)||!_c(this._points,f))&&(g?this._doUpdateAnimation(s,b,i,n,A,_,C):(A&&(b&&(b=Zt(b,f,i,A,C)),f=Zt(f,null,i,A,C)),d.setShape({points:f}),p&&p.setShape({points:f,stackedOnPoints:b})))}var I=e.getModel("emphasis"),k=I.get("focus"),N=I.get("blurScope"),R=I.get("disabled");if(d.useStyle(ae(l.getLineStyle(),{fill:"none",stroke:P,lineJoin:"bevel"})),oa(d,e,"lineStyle"),d.style.lineWidth>0&&e.get(["emphasis","lineStyle","width"])==="bolder"){var B=d.getState("emphasis").style;B.lineWidth=+d.style.lineWidth+1}te(d).seriesIndex=e.seriesIndex,tr(d,k,N,R);var V=bc(e.get("smooth")),G=e.get("smoothMonotone");if(d.setShape({smooth:V,smoothMonotone:G,connectNulls:C}),p){var Y=s.getCalculationInfo("stackedOnSeries"),Q=0;p.useStyle(ae(u.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),Y&&(Q=bc(Y.get("smooth"))),p.setShape({smooth:V,stackedOnSmooth:Q,smoothMonotone:G,connectNulls:C}),oa(p,e,"areaStyle"),te(p).seriesIndex=e.seriesIndex,tr(p,k,N,R)}var ge=this._changePolyState;s.eachItemGraphicEl(function(we){we&&(we.onHoverStateChange=ge)}),this._polyline.onHoverStateChange=ge,this._data=s,this._coordSys=i,this._stackedOnPoints=b,this._points=f,this._step=A,this._valueOrigin=_,e.get("triggerLineEvent")&&(this.packEventData(e,d),p&&this.packEventData(e,p))},t.prototype.packEventData=function(e,a){te(a).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,a,n,i){var o=e.getData(),s=Dr(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var f=l[s*2],c=l[s*2+1];if(isNaN(f)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,c))return;var h=e.get("zlevel")||0,v=e.get("z")||0;u=new gu(o,s),u.x=f,u.y=c,u.setZ(h,v);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=v,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Oe.prototype.highlight.call(this,e,a,n,i)},t.prototype.downplay=function(e,a,n,i){var o=e.getData(),s=Dr(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Oe.prototype.downplay.call(this,e,a,n,i)},t.prototype._changePolyState=function(e){var a=this._polygon;Zu(this._polyline,e),a&&Zu(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new $b({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},t.prototype._newPolygon=function(e,a){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new qb({shape:{points:e,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,a,n){var i,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):a.type==="polar"&&(i=s.dim==="angle",o=!0);var u=e.hostModel,f=u.get("animationDuration");j(f)&&(f=f(null));var c=u.get("animationDelay")||0,h=j(c)?c(null):c;e.eachItemGraphicEl(function(v,d){var p=v;if(p){var y=[v.x,v.y],g=void 0,m=void 0,_=void 0;if(n)if(o){var S=n,b=a.pointToCoord(y);i?(g=S.startAngle,m=S.endAngle,_=-b[1]/180*Math.PI):(g=S.r0,m=S.r,_=b[0])}else{var x=n;i?(g=x.x,m=x.x+x.width,_=v.x):(g=x.y+x.height,m=x.y,_=v.y)}var C=m===g?0:(_-g)/(m-g);l&&(C=1-C);var T=j(c)?c(d):f*C+h,D=p.getSymbolPath(),A=D.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:T}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,n){var i=e.getModel("endLabel");if(sg(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new he({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=aw(l);f>=0&&(kr(s,rr(e,"endLabel"),{inheritColor:n,labelFetcher:e,labelDataIndex:f,defaultText:function(c,h,v){return v!=null?eg(o,v):Sn(o,c)},enableTextSetter:!0},iw(i,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,a,n,i,o,s,l){var u=this._endLabel,f=this._polyline;if(u){e<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var c=n.getLayout("points"),h=n.hostModel,v=h.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,y=l.getBaseAxis(),g=y.isHorizontal(),m=y.inverse,_=a.shape,S=m?g?_.x:_.y+_.height:g?_.x+_.width:_.y,b=(g?p:0)*(m?-1:1),x=(g?0:-p)*(m?-1:1),C=g?"x":"y",T=nw(c,S,C),D=T.range,A=D[1]-D[0],M=void 0;if(A>=1){if(A>1&&!v){var P=wc(c,D[0]);u.attr({x:P[0]+b,y:P[1]+x}),o&&(M=h.getRawValue(D[0]))}else{var P=f.getPointOn(S,C);P&&u.attr({x:P[0]+b,y:P[1]+x});var L=h.getRawValue(D[0]),E=h.getRawValue(D[1]);o&&(M=Ch(n,d,L,E,T.t))}i.lastFrameIndex=D[0]}else{var I=e===1||i.lastFrameIndex>0?D[0]:0,P=wc(c,I);o&&(M=h.getRawValue(I)),u.attr({x:P[0]+b,y:P[1]+x})}if(o){var k=ga(u);typeof k.setLabelText=="function"&&k.setLabelText(M)}}},t.prototype._doUpdateAnimation=function(e,a,n,i,o,s,l){var u=this._polyline,f=this._polygon,c=e.hostModel,h=Xb(this._data,e,this._stackedOnPoints,a,this._coordSys,n,this._valueOrigin),v=h.current,d=h.stackedOnCurrent,p=h.next,y=h.stackedOnNext;if(o&&(d=Zt(h.stackedOnCurrent,h.current,n,o,l),v=Zt(h.current,null,n,o,l),y=Zt(h.stackedOnNext,h.next,n,o,l),p=Zt(h.next,null,n,o,l)),xc(v,p)>3e3||f&&xc(d,y)>3e3){u.stopAnimation(),u.setShape({points:p}),f&&(f.stopAnimation(),f.setShape({points:p,stackedOnPoints:y}));return}u.shape.__points=h.current,u.shape.points=v;var g={shape:{points:p}};h.current!==v&&(g.shape.__points=h.next),u.stopAnimation(),De(u,g,c),f&&(f.setShape({points:v,stackedOnPoints:d}),f.stopAnimation(),De(f,{shape:{stackedOnPoints:y}},c),u.shape.points!==f.shape.points&&(f.shape.points=u.shape.points));for(var m=[],_=h.status,S=0;S<_.length;S++){var b=_[S].cmd;if(b==="="){var x=e.getItemGraphicEl(_[S].idx1);x&&m.push({el:x,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){f&&f.dirtyShape();for(var C=u.shape.__points,T=0;T<m.length;T++){var D=m[T].el,A=m[T].ptIdx*2;D.x=C[A],D.y=C[A+1],D.markRedraw()}})},t.prototype.remove=function(e){var a=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(i,o){i.__temp&&(a.remove(i),n.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(Oe);function sw(r,t){return{seriesType:r,plan:au(),reset:function(e){var a=e.getData(),n=e.coordinateSystem;if(e.pipelineContext,!!n){var i=X(n.dimensions,function(c){return a.mapDimension(c)}).slice(0,2),o=i.length,s=a.getCalculationInfo("stackResultDimension");ua(a,i[0])&&(i[0]=s),ua(a,i[1])&&(i[1]=s);var l=a.getStore(),u=a.getDimensionIndex(i[0]),f=a.getDimensionIndex(i[1]);return o&&{progress:function(c,h){for(var v=c.end-c.start,d=At(v*o),p=[],y=[],g=c.start,m=0;g<c.end;g++){var _=void 0;if(o===1){var S=l.get(u,g);_=n.dataToPoint(S,null,y)}else p[0]=l.get(u,g),p[1]=l.get(f,g),_=n.dataToPoint(p,null,y);d[m++]=_[0],d[m++]=_[1]}h.setLayout("points",d)}}}}}}var lw={average:function(r){for(var t=0,e=0,a=0;a<r.length;a++)isNaN(r[a])||(t+=r[a],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},uw=function(r){return Math.round(r.length/2)};function lg(r){return{seriesType:r,reset:function(t,e,a){var n=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=n.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),f=l.getExtent(),c=a.getDevicePixelRatio(),h=Math.abs(f[1]-f[0])*(c||1),v=Math.round(s/h);if(isFinite(v)&&v>1){i==="lttb"?t.setData(n.lttbDownSample(n.mapDimension(u.dim),1/v)):i==="minmax"&&t.setData(n.minmaxDownSample(n.mapDimension(u.dim),1/v));var d=void 0;$(i)?d=lw[i]:j(i)&&(d=i),d&&t.setData(n.downSample(n.mapDimension(u.dim),1/v,d,uw))}}}}}function KT(r){r.registerChartView(ow),r.registerSeriesModel(Hb),r.registerLayout(sw("line")),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),a=t.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,lg("line"))}var ol=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return In(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,a,n){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(e),s=i.dataToPoint(o);if(n)w(i.getAxes(),function(h,v){if(h.type==="category"&&a!=null){var d=h.getTicksCoords(),p=h.getTickModel().get("alignWithLabel"),y=o[v],g=a[v]==="x1"||a[v]==="y1";if(g&&!p&&(y+=1),d.length<2)return;if(d.length===2){s[v]=h.toGlobalCoord(h.getExtent()[g?1:0]);return}for(var m=void 0,_=void 0,S=1,b=0;b<d.length;b++){var x=d[b].coord,C=b===d.length-1?d[b-1].tickValue+S:d[b].tickValue;if(C===y){_=x;break}else if(C<y)m=x;else if(m!=null&&C>y){_=(x+m)/2;break}b===1&&(S=C-d[0].tickValue)}_==null&&(m?m&&(_=d[d.length-1].coord):_=d[0].coord),s[v]=h.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),f=l.getLayout("size"),c=i.getBaseAxis().isHorizontal()?0:1;s[c]+=u+f/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},t})(Ge);Ge.registerClass(ol);var fw=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return In(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),a=this.get("largeThreshold");return a>e&&(e=a),e},t.prototype.brushSelector=function(e,a,n){return n.rect(a.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=ya(ol.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:O.color.primary,borderWidth:2}},realtimeSort:!1}),t})(ol),cw=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),Cc=(function(r){W(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new cw},t.prototype.buildPath=function(e,a){var n=a.cx,i=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,f=a.startAngle,c=a.endAngle,h=a.clockwise,v=Math.PI*2,d=h?c-f<v:f-c<v;d||(f=c-(h?v:-v));var p=Math.cos(f),y=Math.sin(f),g=Math.cos(c),m=Math.sin(c);d?(e.moveTo(p*o+n,y*o+i),e.arc(p*u+n,y*u+i,l,-Math.PI+f,f,!h)):e.moveTo(p*s+n,y*s+i),e.arc(n,i,s,f,c,!h),e.arc(g*u+n,m*u+i,l,c-Math.PI*2,c-Math.PI,!h),o!==0&&e.arc(n,i,o,c,f,h)},t})(We);function vw(r,t){t=t||{};var e=t.isRoundCap;return function(a,n,i){var o=n.position;if(!o||o instanceof Array)return ws(a,n,i);var s=r(o),l=n.distance!=null?n.distance:5,u=this.shape,f=u.cx,c=u.cy,h=u.r,v=u.r0,d=(h+v)/2,p=u.startAngle,y=u.endAngle,g=(p+y)/2,m=e?Math.abs(h-v)/2:0,_=Math.cos,S=Math.sin,b=f+h*_(p),x=c+h*S(p),C="left",T="top";switch(s){case"startArc":b=f+(v-l)*_(g),x=c+(v-l)*S(g),C="center",T="top";break;case"insideStartArc":b=f+(v+l)*_(g),x=c+(v+l)*S(g),C="center",T="bottom";break;case"startAngle":b=f+d*_(p)+Jn(p,l+m,!1),x=c+d*S(p)+ei(p,l+m,!1),C="right",T="middle";break;case"insideStartAngle":b=f+d*_(p)+Jn(p,-l+m,!1),x=c+d*S(p)+ei(p,-l+m,!1),C="left",T="middle";break;case"middle":b=f+d*_(g),x=c+d*S(g),C="center",T="middle";break;case"endArc":b=f+(h+l)*_(g),x=c+(h+l)*S(g),C="center",T="bottom";break;case"insideEndArc":b=f+(h-l)*_(g),x=c+(h-l)*S(g),C="center",T="top";break;case"endAngle":b=f+d*_(y)+Jn(y,l+m,!0),x=c+d*S(y)+ei(y,l+m,!0),C="left",T="middle";break;case"insideEndAngle":b=f+d*_(y)+Jn(y,-l+m,!0),x=c+d*S(y)+ei(y,-l+m,!0),C="right",T="middle";break;default:return ws(a,n,i)}return a=a||{},a.x=b,a.y=x,a.align=C,a.verticalAlign=T,a}}function hw(r,t,e,a){if(ve(a)){r.setTextConfig({rotation:a});return}else if(z(t)){r.setTextConfig({rotation:0});return}var n=r.shape,i=n.clockwise?n.startAngle:n.endAngle,o=n.clockwise?n.endAngle:n.startAngle,s=(i+o)/2,l,u=e(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var f=Math.PI*1.5-l;u==="middle"&&f>Math.PI/2&&f<Math.PI*1.5&&(f-=Math.PI),r.setTextConfig({rotation:f})}function Jn(r,t,e){return t*Math.sin(r)*(e?-1:1)}function ei(r,t,e){return t*Math.cos(r)*(e?1:-1)}function Ua(r,t,e){var a=r.get("borderRadius");if(a==null)return e?{cornerRadius:0}:null;z(a)||(a=[a,a,a,a]);var n=Math.abs(t.r||0-t.r0||0);return{cornerRadius:X(a,function(i){return rn(i,n)})}}var es=Math.max,ts=Math.min;function dw(r,t){var e=r.getArea&&r.getArea();if(xn(r,"cartesian2d")){var a=r.getBaseAxis();if(a.type!=="category"||!a.onBand){var n=t.getLayout("bandWidth");a.isHorizontal()?(e.x-=n,e.width+=n*2):(e.y-=n,e.height+=n*2)}}return e}var pw=(function(r){W(t,r);function t(){var e=r.call(this)||this;return e.type=t.type,e._isFirstFrame=!0,e}return t.prototype.render=function(e,a,n,i){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,a,n):this._renderNormal(e,a,n,i))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,a){this._progressiveEls=[],this._incrementalRenderLarge(e,a)},t.prototype.eachRendered=function(e){pa(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e,a,n,i){var o=this.group,s=e.getData(),l=this._data,u=e.coordinateSystem,f=u.getBaseAxis(),c;u.type==="cartesian2d"?c=f.isHorizontal():u.type==="polar"&&(c=f.dim==="angle");var h=e.isAnimationEnabled()?e:null,v=gw(e,u);v&&this._enableRealtimeSort(v,s,n);var d=e.get("clip",!0)||v,p=dw(u,s);o.removeClipPath();var y=e.get("roundCap",!0),g=e.get("showBackground",!0),m=e.getModel("backgroundStyle"),_=m.get("borderRadius")||0,S=[],b=this._backgroundEls,x=i&&i.isInitSort,C=i&&i.type==="changeAxisOrder";function T(M){var P=ti[u.type](s,M);if(!P)return null;var L=ww(u,c,P);return L.useStyle(m.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[M]=L,L}s.diff(l).add(function(M){var P=s.getItemModel(M),L=ti[u.type](s,M,P);if(L&&(g&&T(M),!(!s.hasValue(M)||!Lc[u.type](L)))){var E=!1;d&&(E=Mc[u.type](p,L));var I=Tc[u.type](e,s,M,L,c,h,f.model,!1,y);v&&(I.forceLabelAnimation=!0),Ic(I,s,M,P,L,e,c,u.type==="polar"),x?I.attr({shape:L}):v?Dc(v,h,I,L,M,c,!1,!1):Ee(I,{shape:L},e,M),s.setItemGraphicEl(M,I),o.add(I),I.ignore=E}}).update(function(M,P){var L=s.getItemModel(M),E=ti[u.type](s,M,L);if(E){if(g){var I=void 0;b.length===0?I=T(P):(I=b[P],I.useStyle(m.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),S[M]=I);var k=ti[u.type](s,M),N=fg(c,k,u);De(I,{shape:N},h,M)}var R=l.getItemGraphicEl(P);if(!s.hasValue(M)||!Lc[u.type](E)){o.remove(R);return}var B=!1;d&&(B=Mc[u.type](p,E),B&&o.remove(R));var V=R&&(R.type==="sector"&&y||R.type==="sausage"&&!y);if(V&&(R&&$a(R,e,P),R=null),R?un(R):R=Tc[u.type](e,s,M,E,c,h,f.model,!0,y),v&&(R.forceLabelAnimation=!0),C){var G=R.getTextContent();if(G){var Y=ga(G);Y.prevValue!=null&&(Y.prevValue=Y.value)}}else Ic(R,s,M,L,E,e,c,u.type==="polar");x?R.attr({shape:E}):v?Dc(v,h,R,E,M,c,!0,C):De(R,{shape:E},e,M,null),s.setItemGraphicEl(M,R),R.ignore=B,o.add(R)}}).remove(function(M){var P=l.getItemGraphicEl(M);P&&$a(P,e,M)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new pe);D.removeAll();for(var A=0;A<S.length;++A)D.add(S[A]);o.add(D),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(e,a,n){this._clear(),kc(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,a){this._removeBackground(),kc(a,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var a=e.get("clip",!0)&&og(e.coordinateSystem,!1,e),n=this.group;a?n.setClipPath(a):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,a,n){var i=this;if(a.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,e,n),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),f=u&&u.shape;return f&&Math.abs(o.isHorizontal()?f.height:f.width)||0};this._onRendered=function(){i._updateSortWithinSameData(a,s,o,n)},n.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,a,n){var i=[];return e.each(e.mapDimension(a.dim),function(o,s){var l=n(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:X(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,a,n){for(var i=n.scale,o=e.mapDimension(n.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var f=e.rawIndexOf(o,i.getRawOrdinalNumber(l)),c=f<0?Number.MIN_VALUE:a(e.indexOfRawIndex(f));if(c>s)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(e,a){for(var n=a.scale,i=n.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],n.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==n.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,a,n,i){if(this._isOrderChangedWithinSameData(e,a,n)){var o=this._dataSort(e,n,a);this._isOrderDifferentInView(o,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,a,n){var i=a.baseAxis,o=this._dataSort(e,i,function(s){return e.get(e.mapDimension(a.otherAxis.dim),s)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(e,a){this._clear(this._model),this._removeOnRenderedListener(a)},t.prototype.dispose=function(e,a){this._removeOnRenderedListener(a)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var a=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(i){$a(i,e,te(i).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(Oe),Mc={cartesian2d:function(r,t){var e=t.width<0?-1:1,a=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var n=r.x+r.width,i=r.y+r.height,o=es(t.x,r.x),s=ts(t.x+t.width,n),l=es(t.y,r.y),u=ts(t.y+t.height,i),f=s<o,c=u<l;return t.x=f&&o>n?s:o,t.y=c&&l>i?u:l,t.width=f?0:s-o,t.height=c?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),f||c},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}var n=ts(t.r,r.r),i=es(t.r0,r.r0);t.r=n,t.r0=i;var o=n-i<0;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}return o}},Tc={cartesian2d:function(r,t,e,a,n,i,o,s,l){var u=new se({shape:U({},a),z2:1});if(u.__dataIndex=e,u.name="item",i){var f=u.shape,c=n?"height":"width";f[c]=0}return u},polar:function(r,t,e,a,n,i,o,s,l){var u=!n&&l?Cc:Ir,f=new u({shape:a,z2:1});f.name="item";var c=ug(n);if(f.calculateTextPosition=vw(c,{isRoundCap:u===Cc}),i){var h=f.shape,v=n?"r":"endAngle",d={};h[v]=n?a.r0:a.startAngle,d[v]=a[v],(s?De:Ee)(f,{shape:d},i)}return f}};function gw(r,t){var e=r.get("realtimeSort",!0),a=t.getBaseAxis();if(e&&a.type==="category"&&t.type==="cartesian2d")return{baseAxis:a,otherAxis:t.getOtherAxis(a)}}function Dc(r,t,e,a,n,i,o,s){var l,u;i?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?De:Ee)(e,{shape:l},t,n,null);var f=t?r.baseAxis.model:null;(o?De:Ee)(e,{shape:u},f,n)}function Ac(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var yw=["x","y","width","height"],mw=["cx","cy","r","startAngle","endAngle"],Lc={cartesian2d:function(r){return!Ac(r,yw)},polar:function(r){return!Ac(r,mw)}},ti={cartesian2d:function(r,t,e){var a=r.getItemLayout(t);if(!a)return null;var n=e?Sw(e,a):0,i=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+i*n/2,y:a.y+o*n/2,width:a.width-i*n,height:a.height-o*n}},polar:function(r,t,e){var a=r.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function _w(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function ug(r){return(function(t){var e=t?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+e;default:return a}}})(r)}function Ic(r,t,e,a,n,i,o,s){var l=t.getItemVisual(e,"style");if(s){if(!i.get("roundCap")){var f=r.shape,c=Ua(a.getModel("itemStyle"),f,!0);U(f,c),r.setShape(f)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var h=a.getShallow("cursor");h&&r.attr("cursor",h);var v=s?o?n.r>=n.r0?"endArc":"startArc":n.endAngle>=n.startAngle?"endAngle":"startAngle":o?n.height>=0?"bottom":"top":n.width>=0?"right":"left",d=rr(a);kr(r,d,{labelFetcher:i,labelDataIndex:e,defaultText:Sn(i.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:v});var p=r.getTextContent();if(s&&p){var y=a.get(["label","position"]);r.textConfig.inside=y==="middle"?!0:null,hw(r,y==="outside"?v:y,ug(o),a.get(["label","rotate"]))}t0(p,d,i.getRawValue(e),function(m){return eg(t,m)});var g=a.getModel(["emphasis"]);tr(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),oa(r,a),_w(n)&&(r.style.fill="none",r.style.stroke="none",w(r.states,function(m){m.style&&(m.style.fill=m.style.stroke="none")}))}function Sw(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,n=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(a,n,i)}var xw=(function(){function r(){}return r})(),Pc=(function(r){W(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new xw},t.prototype.buildPath=function(e,a){for(var n=a.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,f=0;f<n.length;f+=3)l[i]=u,l[o]=n[f+2],s[i]=n[f+i],s[o]=n[f+o],e.rect(s[0],s[1],l[0],l[1])},t})(We);function kc(r,t,e,a){var n=r.getData(),i=n.getLayout("valueAxisHorizontal")?1:0,o=n.getLayout("largeDataIndices"),s=n.getLayout("size"),l=r.getModel("backgroundStyle"),u=n.getLayout("largeBackgroundPoints");if(u){var f=new Pc({shape:{points:u},incremental:!!a,silent:!0,z2:0});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),e&&e.push(f)}var c=new Pc({shape:{points:n.getLayout("largePoints")},incremental:!!a,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,t.add(c),c.useStyle(n.getVisual("style")),c.style.stroke=null,te(c).seriesIndex=r.seriesIndex,r.get("silent")||(c.on("mousedown",Rc),c.on("mousemove",Rc)),e&&e.push(c)}var Rc=nu(function(r){var t=this,e=bw(t,r.offsetX,r.offsetY);te(t).dataIndex=e>=0?e:null},30,!1);function bw(r,t,e){for(var a=r.baseDimIdx,n=1-a,i=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,f=0,c=i.length/3;f<c;f++){var h=f*3;if(l[a]=u,l[n]=i[h+2],s[a]=i[h+a],s[n]=i[h+n],l[n]<0&&(s[n]+=l[n],l[n]=-l[n]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[f]}return-1}function fg(r,t,e){if(xn(e,"cartesian2d")){var a=t,n=e.getArea();return{x:r?a.x:n.x,y:r?n.y:a.y,width:r?a.width:n.width,height:r?n.height:a.height}}else{var n=e.getArea(),i=t;return{cx:n.cx,cy:n.cy,r0:r?n.r0:i.r0,r:r?n.r:i.r,startAngle:r?i.startAngle:0,endAngle:r?i.endAngle:Math.PI*2}}}function ww(r,t,e){var a=r.type==="polar"?Ir:se;return new a({shape:fg(t,e,r),silent:!0,z2:0})}function qT(r){r.registerChartView(pw),r.registerSeriesModel(fw),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,me(Ux,"bar")),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Yx("bar")),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,lg("bar")),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var a=t.componentType||"series";e.eachComponent({mainType:a,query:t},function(n){t.sortInfo&&n.axis.setCategorySortInfo(t.sortInfo)})})}var Ec=Math.PI*2,ri=Math.PI/180;function Cw(r,t,e){t.eachSeriesByType(r,function(a){var n=a.getData(),i=n.mapDimension("value"),o=B0(a,e),s=o.cx,l=o.cy,u=o.r,f=o.r0,c=o.viewRect,h=-a.get("startAngle")*ri,v=a.get("endAngle"),d=a.get("padAngle")*ri;v=v==="auto"?h-Ec:-v*ri;var p=a.get("minAngle")*ri,y=p+d,g=0;n.each(i,function(N){!isNaN(N)&&g++});var m=n.getSum(i),_=Math.PI/(m||g)*2,S=a.get("clockwise"),b=a.get("roseType"),x=a.get("stillShowZeroSum"),C=n.getDataExtent(i);C[0]=0;var T=S?1:-1,D=[h,v],A=T*d/2;Iy(D,!S),h=D[0],v=D[1];var M=cg(a);M.startAngle=h,M.endAngle=v,M.clockwise=S,M.cx=s,M.cy=l,M.r=u,M.r0=f;var P=Math.abs(v-h),L=P,E=0,I=h;if(n.setLayout({viewRect:c,r:u}),n.each(i,function(N,R){var B;if(isNaN(N)){n.setItemLayout(R,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:s,cy:l,r0:f,r:b?NaN:u});return}b!=="area"?B=m===0&&x?_:N*_:B=P/g,B<y?(B=y,L-=y):E+=N;var V=I+T*B,G=0,Y=0;d>B?(G=I+T*B/2,Y=G):(G=I+A,Y=V-A),n.setItemLayout(R,{angle:B,startAngle:G,endAngle:Y,clockwise:S,cx:s,cy:l,r0:f,r:b?ce(N,C,[f,u]):u}),I=V}),L<Ec&&g)if(L<=.001){var k=P/g;n.each(i,function(N,R){if(!isNaN(N)){var B=n.getItemLayout(R);B.angle=k;var V=0,G=0;k<d?(V=h+T*(R+1/2)*k,G=V):(V=h+T*R*k+A,G=h+T*(R+1)*k-A),B.startAngle=V,B.endAngle=G}})}else _=L/E,I=h,n.each(i,function(N,R){if(!isNaN(N)){var B=n.getItemLayout(R),V=B.angle===y?y:N*_,G=0,Y=0;V<d?(G=I+T*V/2,Y=G):(G=I+A,Y=I+T*V-A),B.startAngle=G,B.endAngle=Y,I+=T*V}})})}var cg=ie();function vg(r){return{seriesType:r,reset:function(t,e){var a=e.findComponents({mainType:"legend"});if(!(!a||!a.length)){var n=t.getData();n.filterSelf(function(i){for(var o=n.getName(i),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}var Mw=Math.PI/180;function Oc(r,t,e,a,n,i,o,s,l,u){if(r.length<2)return;function f(p){for(var y=p.rB,g=y*y,m=0;m<p.list.length;m++){var _=p.list[m],S=Math.abs(_.label.y-e),b=a+_.len,x=b*b,C=Math.sqrt(Math.abs((1-S*S/g)*x)),T=t+(C+_.len2)*n,D=T-_.label.x,A=_.targetTextWidth-D*n;hg(_,A,!0),_.label.x=T}}function c(p){for(var y={list:[],maxY:0},g={list:[],maxY:0},m=0;m<p.length;m++)if(p[m].labelAlignTo==="none"){var _=p[m],S=_.label.y>e?g:y,b=Math.abs(_.label.y-e);if(b>=S.maxY){var x=_.label.x-t-_.len2*n,C=a+_.len,T=Math.abs(x)<C?Math.sqrt(b*b/(1-x*x/C/C)):C;S.rB=T,S.maxY=b}S.list.push(_)}f(y),f(g)}for(var h=r.length,v=0;v<h;v++)if(r[v].position==="outer"&&r[v].labelAlignTo==="labelLine"){var d=r[v].label.x-u;r[v].linePoints[1][0]+=d,r[v].label.x=u}nl(r,1,l,l+o)&&c(r)}function Tw(r,t,e,a,n,i,o,s){for(var l=[],u=[],f=Number.MAX_VALUE,c=-Number.MAX_VALUE,h=0;h<r.length;h++){var v=r[h].label;rs(r[h])||(v.x<t?(f=Math.min(f,v.x),l.push(r[h])):(c=Math.max(c,v.x),u.push(r[h])))}for(var h=0;h<r.length;h++){var d=r[h];if(!rs(d)&&d.linePoints){if(d.labelStyleWidth!=null)continue;var v=d.label,p=d.linePoints,y=void 0;d.labelAlignTo==="edge"?v.x<t?y=p[2][0]-d.labelDistance-o-d.edgeDistance:y=o+n-d.edgeDistance-p[2][0]-d.labelDistance:d.labelAlignTo==="labelLine"?v.x<t?y=f-o-d.bleedMargin:y=o+n-c-d.bleedMargin:v.x<t?y=v.x-o-d.bleedMargin:y=o+n-v.x-d.bleedMargin,d.targetTextWidth=y,hg(d,y,!1)}}Oc(u,t,e,a,1,n,i,o,s,c),Oc(l,t,e,a,-1,n,i,o,s,f);for(var h=0;h<r.length;h++){var d=r[h];if(!rs(d)&&d.linePoints){var v=d.label,p=d.linePoints,g=d.labelAlignTo==="edge",m=v.style.padding,_=m?m[1]+m[3]:0,S=v.style.backgroundColor?0:_,b=d.rect.width+S,x=p[1][0]-p[2][0];g?v.x<t?p[2][0]=o+d.edgeDistance+b+d.labelDistance:p[2][0]=o+n-d.edgeDistance-b-d.labelDistance:(v.x<t?p[2][0]=v.x+d.labelDistance:p[2][0]=v.x-d.labelDistance,p[1][0]=p[2][0]+x),p[1][1]=p[2][1]=v.y}}}function hg(r,t,e){if(r.labelStyleWidth==null){var a=r.label,n=a.style,i=r.rect,o=n.backgroundColor,s=n.padding,l=s?s[1]+s[3]:0,u=n.overflow,f=i.width+(o?0:l);if(t<f||e){if(u&&u.match("break")){a.setStyle("backgroundColor",null),a.setStyle("width",t-l);var c=a.getBoundingRect();a.setStyle("width",Math.ceil(c.width)),a.setStyle("backgroundColor",o)}else{var h=t-l,v=t<f?h:e?h>r.unconstrainedWidth?null:h:null;a.setStyle("width",v)}dg(i,a)}}}function dg(r,t){Bc.rect=r,Qp(Bc,t,Dw)}var Dw={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},Bc={};function rs(r){return r.position==="center"}function Aw(r){var t=r.getData(),e=[],a,n,i=!1,o=(r.get("minShowLabelAngle")||0)*Mw,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,f=s.x,c=s.y,h=s.height;function v(x){x.ignore=!0}function d(x){if(!x.ignore)return!0;for(var C in x.states)if(x.states[C].ignore===!1)return!0;return!1}t.each(function(x){var C=t.getItemGraphicEl(x),T=C.shape,D=C.getTextContent(),A=C.getTextGuideLine(),M=t.getItemModel(x),P=M.getModel("label"),L=P.get("position")||M.get(["emphasis","label","position"]),E=P.get("distanceToLabelLine"),I=P.get("alignTo"),k=ne(P.get("edgeDistance"),u),N=P.get("bleedMargin");N==null&&(N=Math.min(u,h)>200?10:2);var R=M.getModel("labelLine"),B=R.get("length");B=ne(B,u);var V=R.get("length2");if(V=ne(V,u),Math.abs(T.endAngle-T.startAngle)<o){w(D.states,v),D.ignore=!0,A&&(w(A.states,v),A.ignore=!0);return}if(d(D)){var G=(T.startAngle+T.endAngle)/2,Y=Math.cos(G),Q=Math.sin(G),ge,we,Nt,Vr;a=T.cx,n=T.cy;var Vt=L==="inside"||L==="inner";if(L==="center")ge=T.cx,we=T.cy,Vr="center";else{var ma=(Vt?(T.r+T.r0)/2*Y:T.r*Y)+a,_a=(Vt?(T.r+T.r0)/2*Q:T.r*Q)+n;if(ge=ma+Y*3,we=_a+Q*3,!Vt){var kn=ma+Y*(B+l-T.r),Rn=_a+Q*(B+l-T.r),En=kn+(Y<0?-1:1)*V,lr=Rn;I==="edge"?ge=Y<0?f+k:f+u-k:ge=En+(Y<0?-E:E),we=lr,Nt=[[ma,_a],[kn,Rn],[En,lr]]}Vr=Vt?"center":I==="edge"?Y>0?"right":"left":Y>0?"left":"right"}var zt=Math.PI,bt=0,Sa=P.get("rotate");if(ve(Sa))bt=Sa*(zt/180);else if(L==="center")bt=0;else if(Sa==="radial"||Sa===!0){var ly=Y<0?-G+zt:-G;bt=ly}else if(Sa==="tangential"&&L!=="outside"&&L!=="outer"){var zr=Math.atan2(Y,Q);zr<0&&(zr=zt*2+zr);var uy=Q>0;uy&&(zr=zt+zr),bt=zr-zt}if(i=!!bt,D.x=ge,D.y=we,D.rotation=bt,D.setStyle({verticalAlign:"middle"}),Vt){D.setStyle({align:Vr});var So=D.states.select;So&&(So.x+=D.x,So.y+=D.y)}else{var _o=new Ve(0,0,0,0);dg(_o,D),e.push({label:D,labelLine:A,position:L,len:B,len2:V,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new de(Y,Q),linePoints:Nt,textAlign:Vr,labelDistance:E,labelAlignTo:I,edgeDistance:k,bleedMargin:N,rect:_o,unconstrainedWidth:_o.width,labelStyleWidth:D.style.width})}C.setTextConfig({inside:Vt})}}),!i&&r.get("avoidLabelOverlap")&&Tw(e,a,n,l,u,h,f,c);for(var p=0;p<e.length;p++){var y=e[p],g=y.label,m=y.labelLine,_=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:y.textAlign}),_&&(w(g.states,v),g.ignore=!0);var S=g.states.select;S&&(S.x+=g.x,S.y+=g.y)}if(m){var b=y.linePoints;_||!b?(w(m.states,v),m.ignore=!0):(Xp(b,y.minTurnAngle),Ib(b,y.surfaceNormal,y.maxSurfaceAngle),m.setShape({points:b}),g.__hostTarget.textGuideLineConfig={anchor:new de(b[0][0],b[0][1])})}}}var Lw=(function(r){W(t,r);function t(e,a,n){var i=r.call(this)||this;i.z2=2;var o=new he;return i.setTextContent(o),i.updateData(e,a,n,!0),i}return t.prototype.updateData=function(e,a,n,i){var o=this,s=e.hostModel,l=e.getItemModel(a),u=l.getModel("emphasis"),f=e.getItemLayout(a),c=U(Ua(l.getModel("itemStyle"),f,!0),f);if(isNaN(c.startAngle)){o.setShape(c);return}if(i){o.setShape(c);var h=s.getShallow("animationType");s.ecModel.ssr?(Ee(o,{scaleX:0,scaleY:0},s,{dataIndex:a,isFrom:!0}),o.originX=c.cx,o.originY=c.cy):h==="scale"?(o.shape.r=f.r0,Ee(o,{shape:{r:f.r}},s,a)):n!=null?(o.setShape({startAngle:n,endAngle:n}),Ee(o,{shape:{startAngle:f.startAngle,endAngle:f.endAngle}},s,a)):(o.shape.endAngle=f.startAngle,De(o,{shape:{endAngle:f.endAngle}},s,a))}else un(o),De(o,{shape:c},s,a);o.useStyle(e.getItemVisual(a,"style")),oa(o,l);var v=(f.startAngle+f.endAngle)/2,d=s.get("selectedOffset"),p=Math.cos(v)*d,y=Math.sin(v)*d,g=l.getShallow("cursor");g&&o.attr("cursor",g),this._updateLabel(s,e,a),o.ensureState("emphasis").shape=U({r:f.r+(u.get("scale")&&u.get("scaleSize")||0)},Ua(u.getModel("itemStyle"),f)),U(o.ensureState("select"),{x:p,y,shape:Ua(l.getModel(["select","itemStyle"]),f)}),U(o.ensureState("blur"),{shape:Ua(l.getModel(["blur","itemStyle"]),f)});var m=o.getTextGuideLine(),_=o.getTextContent();m&&U(m.ensureState("select"),{x:p,y}),U(_.ensureState("select"),{x:p,y}),tr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(e,a,n){var i=this,o=a.getItemModel(n),s=o.getModel("labelLine"),l=a.getItemVisual(n,"style"),u=l&&l.fill,f=l&&l.opacity;kr(i,rr(o),{labelFetcher:a.hostModel,labelDataIndex:n,inheritColor:u,defaultOpacity:f,defaultText:e.getFormattedLabel(n,"normal")||a.getName(n)});var c=i.getTextContent();i.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var h=o.get(["label","position"]);if(h!=="outside"&&h!=="outer")i.removeTextGuideLine();else{var v=this.getTextGuideLine();v||(v=new or,this.setTextGuideLine(v)),$p(this,Kp(o),{stroke:u,opacity:ao(s.get(["lineStyle","opacity"]),f,1)})}},t})(Ir),Iw=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return t.prototype.render=function(e,a,n,i){var o=e.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var f=o.getItemLayout(0),c=1;isNaN(f&&f.startAngle)&&c<o.count();++c)f=o.getItemLayout(c);f&&(u=f.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&e.get("showEmptyCircle")){var h=cg(e),v=new Ir({shape:ee(h)});v.useStyle(e.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=v,l.add(v)}o.diff(s).add(function(d){var p=new Lw(o,d,u);o.setItemGraphicEl(d,p),l.add(p)}).update(function(d,p){var y=s.getItemGraphicEl(p);y.updateData(o,d,u),y.off("click"),l.add(y),o.setItemGraphicEl(d,y)}).remove(function(d){var p=s.getItemGraphicEl(d);$a(p,e,d)}).execute(),Aw(e),e.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,a){var n=a.getData(),i=n.getItemLayout(0);if(i){var o=e[0]-i.cx,s=e[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t})(Oe);function pg(r,t,e){t=z(t)&&{coordDimensions:t}||U({encodeDefine:r.getEncode()},t);var a=r.getSource(),n=cu(a,t).dimensions,i=new xp(n,r);return i.initData(a,e),i}var gg=(function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var a=this._getDataWithEncodedVisual();return a.getItemVisual(t,e)},r})(),Pw=ie(),yg=(function(r){W(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new gg(Z(this.getData,this),Z(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){r.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return pg(this,{coordDimensions:["value"],encodeDefaulter:me(Z0,this)})},t.prototype.getDataParams=function(e){var a=this.getData(),n=Pw(a),i=n.seats;if(!i){var o=[];a.each(a.mapDimension("value"),function(l){o.push(l)}),i=n.seats=Fy(o,a.hostModel.get("percentPrecision"))}var s=r.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(e){Ms(e,"labelLine",["show"]);var a=e.labelLine,n=e.emphasis.labelLine;a.show=a.show&&e.label.show,n.show=n.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"50%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,coordinateSystemUsage:"box",left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:30,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t})(Ge);L0({fullType:yg.type,getCoord2:function(r){return r.getShallow("center")}});function kw(r){return{seriesType:r,reset:function(t,e){var a=t.getData();a.filterSelf(function(n){var i=a.mapDimension("value"),o=a.get(i,n);return!(ve(o)&&!isNaN(o)&&o<0)})}}}function jT(r){r.registerChartView(Iw),r.registerSeriesModel(yg),TS("pie",r.registerAction),r.registerLayout(me(Cw,"pie")),r.registerProcessor(vg("pie")),r.registerProcessor(kw("pie"))}var mg={left:0,right:0,top:0,bottom:0},Xi=["25%","25%"],Rw=(function(r){W(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(e,a){var n=Er(e.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),n&&e.outerBounds&&Rt(e.outerBounds,n)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&Rt(this.option.outerBounds,e.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:mg,outerBoundsContain:"all",outerBoundsClampWidth:Xi[0],outerBoundsClampHeight:Xi[1],backgroundColor:O.color.transparent,borderWidth:1,borderColor:O.color.neutral30},t})(re),sl=(function(r){W(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Ne).models[0]},t.type="cartesian2dAxis",t})(re);Ot(sl,Np);var _g={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:O.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:O.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:O.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[O.color.backgroundTint,O.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:O.color.neutral00,borderColor:O.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}},Ew=oe({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},_g),yu=oe({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:O.color.axisMinorSplitLine,width:1}}},_g),Ow=oe({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},yu),Bw=ae({logBase:10},yu);const Sg={category:Ew,value:yu,time:Ow,log:Bw};var Nw={value:1,category:1,time:1,log:1},Vw=null;function zw(){return Vw}function Nc(r,t,e,a){w(Nw,function(n,i){var o=oe(oe({},Sg[i],!0),a,!0),s=(function(l){W(u,l);function u(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+i,f}return u.prototype.mergeDefaultAndTheme=function(f,c){var h=pn(this),v=h?Er(f):{},d=c.getTheme();oe(f,d.get(i+"Axis")),oe(f,this.getDefaultOption()),f.type=Vc(f),h&&Rt(f,v,h)},u.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=Js.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){return{breaks:[]}},u.type=t+"Axis."+i,u.defaultOption=o,u})(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",Vc)}function Vc(r){return r.type||(r.data?"category":"value")}var Fw=(function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return X(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Me(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r})(),ll=["x","y"];function zc(r){return(r.type==="interval"||r.type==="time")&&!r.hasBreaks()}var Gw=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=ll,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!zc(e)||!zc(a))){var n=e.getExtent(),i=a.getExtent(),o=this.dataToPoint([n[0],i[0]]),s=this.dataToPoint([n[1],i[1]]),l=n[1]-n[0],u=i[1]-i[0];if(!(!l||!u)){var f=(s[0]-o[0])/l,c=(s[1]-o[1])/u,h=o[0]-n[0]*f,v=o[1]-i[0]*c,d=this._transform=[f,0,0,c,h,v];this._invTransform=eo([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var a=this.getAxis("x"),n=this.getAxis("y");return a.contain(a.toLocalCoord(e[0]))&&n.contain(n.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,a){var n=this.dataToPoint(e),i=this.dataToPoint(a),o=this.getArea(),s=new Ve(n[0],n[1],i[0]-n[0],i[1]-n[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,a,n){n=n||[];var i=e[0],o=e[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Mr(n,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return n[0]=s.toGlobalCoord(s.dataToCoord(i,a)),n[1]=l.toGlobalCoord(l.dataToCoord(o,a)),n},t.prototype.clampData=function(e,a){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,o=n.getExtent(),s=i.getExtent(),l=n.parse(e[0]),u=i.parse(e[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},t.prototype.pointToData=function(e,a,n){if(n=n||[],this._invTransform)return Mr(n,e,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(e[0]),a),n[1]=o.coordToData(o.toLocalCoord(e[1]),a),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var a=this.getAxis("x").getGlobalExtent(),n=this.getAxis("y").getGlobalExtent(),i=Math.min(a[0],a[1])-e,o=Math.min(n[0],n[1])-e,s=Math.max(a[0],a[1])-i+e,l=Math.max(n[0],n[1])-o+e;return new Ve(i,o,s,l)},t})(Fw),Hw=(function(r){W(t,r);function t(e,a,n,i,o){var s=r.call(this,e,a,n)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),e&&a[0]>a[1]&&a.reverse(),a},t.prototype.pointToData=function(e,a){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),a)},t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t})(Yp),Ww="expandAxisBreak",Kt=Math.PI,Uw=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],Yw=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],bn=ie(),xg=ie(),bg=(function(){function r(t){this.recordMap={},this.resolveAxisNameOverlap=t}return r.prototype.ensureRecord=function(t){var e=t.axis.dim,a=t.componentIndex,n=this.recordMap,i=n[e]||(n[e]=[]);return i[a]||(i[a]={ready:{}})},r})();function Zw(r,t,e,a){var n=e.axis,i=t.ensureRecord(e),o=[],s,l=mu(r.axisName)&&fa(r.nameLocation);w(a,function(d){var p=nr(d);if(!(!p||p.label.ignore)){o.push(p);var y=i.transGroup;l&&(y.transform?eo(Pa,y.transform):th(Pa),p.transform&&rh(Pa,Pa,p.transform),Ve.copy(ai,p.localRect),ai.applyTransform(Pa),s?s.union(ai):Ve.copy(s=new Ve(0,0,0,0),ai))}});var u=Math.abs(i.dirVec.x)>.1?"x":"y",f=i.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-f)-Math.abs(p.label[u]-f)}),l&&s){var c=n.getExtent(),h=Math.min(c[0],c[1]),v=Math.max(c[0],c[1])-h;s.union(new Ve(h,0,v,1))}i.stOccupiedRect=s,i.labelInfoList=o}var Pa=to(),ai=new Ve(0,0,0,0),wg=function(r,t,e,a,n,i){if(fa(r.nameLocation)){var o=i.stOccupiedRect;o&&Cg(Rb({},o,i.transGroup.transform),a,n)}else Mg(i.labelInfoList,i.dirVec,a,n)};function Cg(r,t,e){var a=new de;pu(r,t,a,{direction:Math.atan2(e.y,e.x),bidirectional:!1,touchThreshold:.05})&&Eb(t,a)}function Mg(r,t,e,a){for(var n=de.dot(a,t)>=0,i=0,o=r.length;i<o;i++){var s=r[n?i:o-1-i];s.label.ignore||Cg(s,e,a)}}var It=(function(){function r(t,e,a,n){this.group=new pe,this._axisModel=t,this._api=e,this._local={},this._shared=n||new bg(wg),this._resetCfgDetermined(a)}return r.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(t){var e=this._axisModel,a=e.getDefaultOption?e.getDefaultOption():{},n=J(t.axisName,e.get("name")),i=e.get("nameMoveOverlap");(i==null||i==="auto")&&(i=J(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:J(t.nameDirection,1),tickDirection:J(t.tickDirection,1),labelDirection:J(t.labelDirection,1),labelOffset:J(t.labelOffset,0),silent:J(t.silent,!0),axisName:n,nameLocation:ao(e.get("nameLocation"),a.nameLocation,"end"),shouldNameMoveOverlap:mu(n)&&i,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=o;var s=new pe({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(e);l.transGroup=this._transformGroup,l.dirVec=new de(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(t,e){var a=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),w(Xw,function(n){t[n]&&$w[n](a._cfg,a._local,a._shared,a._axisModel,a.group,a._transformGroup,a._api,e||{})}),this},r.innerTextLayout=function(t,e,a){var n=gh(e-t),i,o;return xi(n)?(o=a>0?"top":"bottom",i="center"):xi(n-Kt)?(o=a>0?"bottom":"top",i="center"):(o="middle",n>0&&n<Kt?i=a>0?"right":"left":i=a>0?"left":"right"),{rotation:n,textAlign:i,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r})(),Xw=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],$w={axisLine:function(r,t,e,a,n,i,o){var s=a.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=a.axis.getExtent(),u=i.transform,f=[l[0],0],c=[l[1],0],h=f[0]>c[0];u&&(Mr(f,f,u),Mr(c,c,u));var v=U({lineCap:"round"},a.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:v};if(a.get(["axisLine","breakLine"])&&a.axis.scale.hasBreaks())zw().buildAxisBreakLine(a,n,i,d);else{var p=new Tr(U({shape:{x1:f[0],y1:f[1],x2:c[0],y2:c[1]}},d));cn(p.shape,p.style.lineWidth),p.anid="line",n.add(p)}var y=a.get(["axisLine","symbol"]);if(y!=null){var g=a.get(["axisLine","symbolSize"]);$(y)&&(y=[y,y]),($(g)||ve(g))&&(g=[g,g]);var m=$d(a.get(["axisLine","symbolOffset"])||0,g),_=g[0],S=g[1];w([{rotate:r.rotation+Math.PI/2,offset:m[0],r:0},{rotate:r.rotation-Math.PI/2,offset:m[1],r:Math.sqrt((f[0]-c[0])*(f[0]-c[0])+(f[1]-c[1])*(f[1]-c[1]))}],function(b,x){if(y[x]!=="none"&&y[x]!=null){var C=at(y[x],-_/2,-S/2,_,S,v.stroke,!0),T=b.r+b.offset,D=h?c:f;C.attr({rotation:b.rotate,x:D[0]+T*Math.cos(r.rotation),y:D[1]-T*Math.sin(r.rotation),silent:!0,z2:11}),n.add(C)}})}}},axisTickLabelEstimate:function(r,t,e,a,n,i,o,s){var l=Gc(t,n,s);l&&Fc(r,t,e,a,n,i,o,ct.estimate)},axisTickLabelDetermine:function(r,t,e,a,n,i,o,s){var l=Gc(t,n,s);l&&Fc(r,t,e,a,n,i,o,ct.determine);var u=Qw(r,n,i,a);jw(r,t.labelLayoutList,u),Jw(r,n,i,a,r.tickDirection)},axisName:function(r,t,e,a,n,i,o,s){var l=e.ensureRecord(a);t.nameEl&&(n.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(mu(u)){var f=r.nameLocation,c=r.nameDirection,h=a.getModel("nameTextStyle"),v=a.get("nameGap")||0,d=a.axis.getExtent(),p=a.axis.inverse?-1:1,y=new de(0,0),g=new de(0,0);f==="start"?(y.x=d[0]-p*v,g.x=-p):f==="end"?(y.x=d[1]+p*v,g.x=p):(y.x=(d[0]+d[1])/2,y.y=r.labelOffset+c*v,g.y=c);var m=to();g.transform(fh(m,m,r.rotation));var _=a.get("nameRotate");_!=null&&(_=_*Kt/180);var S,b;fa(f)?S=It.innerTextLayout(r.rotation,_??r.rotation,c):(S=Kw(r.rotation,f,_||0,d),b=r.raw.axisNameAvailableWidth,b!=null&&(b=Math.abs(b/Math.sin(S.rotation)),!isFinite(b)&&(b=null)));var x=h.getFont(),C=a.get("nameTruncate",!0)||{},T=C.ellipsis,D=an(r.raw.nameTruncateMaxWidth,C.maxWidth,b),A=s.nameMarginLevel||0,M=new he({x:y.x,y:y.y,rotation:S.rotation,silent:It.isLabelSilent(a),style:Te(h,{text:u,font:x,overflow:"truncate",width:D,ellipsis:T,fill:h.getTextColor()||a.get(["axisLine","lineStyle","color"]),align:h.get("align")||S.textAlign,verticalAlign:h.get("verticalAlign")||S.textVerticalAlign}),z2:1});if(lo({el:M,componentModel:a,itemName:u}),M.__fullText=u,M.anid="name",a.get("triggerEvent")){var P=It.makeAxisEventDataBase(a);P.targetType="axisName",P.name=u,te(M).eventData=P}i.add(M),M.updateTransform(),t.nameEl=M;var L=l.nameLayout=nr({label:M,priority:M.z2,defaultAttr:{ignore:M.ignore},marginDefault:fa(f)?Uw[A]:Yw[A]});if(l.nameLocation=f,n.add(M),M.decomposeTransform(),r.shouldNameMoveOverlap&&L){var E=e.ensureRecord(a);e.resolveAxisNameOverlap(r,e,a,L,g,E)}}}};function Fc(r,t,e,a,n,i,o,s){Dg(t)||e1(r,t,n,s,a,o);var l=t.labelLayoutList;t1(r,a,l,i),r.rotation;var u=r.optionHideOverlap;qw(a,l,u),u&&Jp(Me(l,function(f){return f&&!f.label.ignore})),Zw(r,e,a,l)}function Kw(r,t,e,a){var n=gh(e-r),i,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return xi(n-Kt/2)?(o=l?"bottom":"top",i="center"):xi(n-Kt*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",n<Kt*1.5&&n>Kt/2?i=l?"left":"right":i=l?"right":"left"),{rotation:n,textAlign:i,textVerticalAlign:o}}function qw(r,t,e){if(Ep(r.axis))return;function a(s,l,u){var f=nr(t[l]),c=nr(t[u]);if(!(!f||!c)){if(s===!1||f.suggestIgnore){Ya(f.label);return}if(c.suggestIgnore){Ya(c.label);return}var h=.1;if(!e){var v=[0,0,0,0];f=al({marginForce:v},f),c=al({marginForce:v},c)}pu(f,c,null,{touchThreshold:h})&&Ya(s?c.label:f.label)}}var n=r.get(["axisLabel","showMinLabel"]),i=r.get(["axisLabel","showMaxLabel"]),o=t.length;a(n,0,1),a(i,o-1,o-2)}function jw(r,t,e){r.showMinorTicks||w(t,function(a){if(a&&a.label.ignore)for(var n=0;n<e.length;n++){var i=e[n],o=xg(i),s=bn(a.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.tickValue){Ya(i);return}}})}function Ya(r){r&&(r.ignore=!0)}function Tg(r,t,e,a,n){for(var i=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(Mr(o,o,t),Mr(s,s,t));var f=new Tr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});cn(f.shape,f.style.lineWidth),f.anid=n+"_"+r[l].tickValue,i.push(f);var c=xg(f);c.onBand=!!r[l].onBand,c.tickValue=r[l].tickValue}return i}function Qw(r,t,e,a){var n=a.axis,i=a.getModel("axisTick"),o=i.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||n.scale.isBlank())return[];for(var s=i.getModel("lineStyle"),l=r.tickDirection*i.get("length"),u=n.getTicksCoords(),f=Tg(u,e.transform,l,ae(s.getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<f.length;c++)t.add(f[c]);return f}function Jw(r,t,e,a,n){var i=a.axis,o=a.getModel("minorTick");if(!(!r.showMinorTicks||i.scale.isBlank())){var s=i.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=n*o.get("length"),f=ae(l.getLineStyle(),ae(a.getModel("axisTick").getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])})),c=0;c<s.length;c++)for(var h=Tg(s[c],e.transform,u,f,"minorticks_"+c),v=0;v<h.length;v++)t.add(h[v])}}function Gc(r,t,e){if(Dg(r)){var a=r.axisLabelsCreationContext,n=a.out.noPxChangeTryDetermine;if(e.noPxChange){for(var i=!0,o=0;o<n.length;o++)i=i&&n[o]();if(i)return!1}n.length&&(t.remove(r.labelGroup),ul(r,null,null,null))}return!0}function e1(r,t,e,a,n,i){var o=n.axis,s=an(r.raw.axisLabelShow,n.get(["axisLabel","show"])),l=new pe;e.add(l);var u=Hi(a);if(!s||o.scale.isBlank()){ul(t,[],l,u);return}var f=n.getModel("axisLabel"),c=o.getViewLabels(u),h=(an(r.raw.labelRotate,f.get("rotate"))||0)*Kt/180,v=It.innerTextLayout(r.rotation,h,r.labelDirection),d=n.getCategories&&n.getCategories(!0),p=[],y=n.get("triggerEvent"),g=1/0,m=-1/0;w(c,function(S,b){var x,C=o.scale.type==="ordinal"?o.scale.getRawOrdinalNumber(S.tickValue):S.tickValue,T=S.formattedLabel,D=S.rawLabel,A=f;if(d&&d[C]){var M=d[C];K(M)&&M.textStyle&&(A=new ye(M.textStyle,f,n.ecModel))}var P=A.getTextColor()||n.get(["axisLine","lineStyle","color"]),L=A.getShallow("align",!0)||v.textAlign,E=J(A.getShallow("alignMinLabel",!0),L),I=J(A.getShallow("alignMaxLabel",!0),L),k=A.getShallow("verticalAlign",!0)||A.getShallow("baseline",!0)||v.textVerticalAlign,N=J(A.getShallow("verticalAlignMinLabel",!0),k),R=J(A.getShallow("verticalAlignMaxLabel",!0),k),B=10+(((x=S.time)===null||x===void 0?void 0:x.level)||0);g=Math.min(g,B),m=Math.max(m,B);var V=new he({x:0,y:0,rotation:0,silent:It.isLabelSilent(n),z2:B,style:Te(A,{text:T,align:b===0?E:b===c.length-1?I:L,verticalAlign:b===0?N:b===c.length-1?R:k,fill:j(P)?P(o.type==="category"?D:o.type==="value"?C+"":C,b):P})});V.anid="label_"+C;var G=bn(V);if(G.break=S.break,G.tickValue=C,G.layoutRotation=v.rotation,lo({el:V,componentModel:n,itemName:T,formatterParamsExtra:{isTruncated:function(){return V.isTruncated},value:D,tickIndex:b}}),y){var Y=It.makeAxisEventDataBase(n);Y.targetType="axisLabel",Y.value=D,Y.tickIndex=b,S.break&&(Y.break={start:S.break.parsedBreak.vmin,end:S.break.parsedBreak.vmax}),o.type==="category"&&(Y.dataIndex=C),te(V).eventData=Y,S.break&&a1(n,i,V,S.break)}p.push(V),l.add(V)});var _=X(p,function(S){return{label:S,priority:bn(S).break?S.z2+(m-g+1):S.z2,defaultAttr:{ignore:S.ignore}}});ul(t,_,l,u)}function Dg(r){return!!r.labelLayoutList}function ul(r,t,e,a){r.labelLayoutList=t,r.labelGroup=e,r.axisLabelsCreationContext=a}function t1(r,t,e,a){var n=t.get(["axisLabel","margin"]);w(e,function(i,o){var s=nr(i);if(s){var l=s.label,u=bn(l);s.suggestIgnore=l.ignore,l.ignore=!1,Ou(Mt,r1),Mt.x=t.axis.dataToCoord(u.tickValue),Mt.y=r.labelOffset+r.labelDirection*n,Mt.rotation=u.layoutRotation,a.add(Mt),Mt.updateTransform(),a.remove(Mt),Mt.decomposeTransform(),Ou(l,Mt),l.markRedraw(),Zi(s,!0),nr(s)}})}var Mt=new se,r1=new se;function mu(r){return!!r}function a1(r,t,e,a){e.on("click",function(n){var i={type:Ww,breaks:[{start:a.parsedBreak.breakOption.start,end:a.parsedBreak.breakOption.end}]};i[r.axis.dim+"AxisIndex"]=r.componentIndex,t.dispatchAction(i)})}function $i(r,t,e){e=e||{};var a=t.axis,n={},i=a.getAxesOnZeroOf()[0],o=a.position,s=i?"onZero":o,l=a.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],f={left:0,right:1,top:0,bottom:1,onZero:2},c=t.get("offset")||0,h=l==="x"?[u[2]-c,u[3]+c]:[u[0]-c,u[1]+c];if(i){var v=i.toGlobalCoord(i.dataToCoord(0));h[f.onZero]=Math.max(Math.min(v,h[1]),h[0])}n.position=[l==="y"?h[f[s]]:u[0],l==="x"?h[f[s]]:u[3]],n.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};n.labelDirection=n.tickDirection=n.nameDirection=d[o],n.labelOffset=i?h[f[o]]-h[f.onZero]:0,t.get(["axisTick","inside"])&&(n.tickDirection=-n.tickDirection),an(e.labelInside,t.get(["axisLabel","inside"]))&&(n.labelDirection=-n.labelDirection);var p=t.get(["axisLabel","rotate"]);return n.labelRotate=s==="top"?-p:p,n.z2=1,n}function n1(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function Hc(r){var t={xAxisModel:null,yAxisModel:null};return w(t,function(e,a){var n=a.replace(/Model$/,""),i=r.getReferringComponents(n,Ne).models[0];t[a]=i}),t}function i1(r,t,e,a,n,i){for(var o=$i(r,e),s=!1,l=!1,u=0;u<t.length;u++)js(t[u].getOtherAxis(e.axis).scale)&&(s=l=!0,e.axis.type==="category"&&e.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=i,new It(e,a,o,n)}function o1(r,t,e){var a=$i(t,e);r.updateCfg(a)}function Ag(r,t,e){var a=ar.prototype,n=a.getTicks.call(e),i=a.getTicks.call(e,{expandToNicedExtent:!0}),o=n.length-1,s=a.getInterval.call(e),l=Rp(r,t),u=l.extent,f=l.fixMin,c=l.fixMax;r.type==="log"&&(u=Qs(r.base,u,!0)),r.setBreaksFromOption(Bp(t)),r.setExtent(u[0],u[1]),r.calcNiceExtent({splitNumber:o,fixMin:f,fixMax:c});var h=a.getExtent.call(r);f&&(u[0]=h[0]),c&&(u[1]=h[1]);var v=a.getInterval.call(r),d=u[0],p=u[1];if(f&&c)v=(p-d)/o;else if(f)for(p=u[0]+v*o;p<u[1]&&isFinite(p)&&isFinite(u[1]);)v=Zo(v),p=u[0]+v*o;else if(c)for(d=u[1]-v*o;d>u[0]&&isFinite(d)&&isFinite(u[0]);)v=Zo(v),d=u[1]-v*o;else{var y=r.getTicks().length-1;y>o&&(v=Zo(v));var g=v*o;p=Math.ceil(u[1]/v)*v,d=Re(p-g),d<0&&u[0]>=0?(d=0,p=Re(g)):p>0&&u[1]<=0&&(p=0,d=-Re(g))}var m=(n[0].value-i[0].value)/s,_=(n[o].value-i[o].value)/s;a.setExtent.call(r,d+v*m,p+v*_),a.setInterval.call(r,v),(m||_)&&a.setNiceExtent.call(r,d+v,p-v)}var Wc=[[3,1],[0,2]],s1=(function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=ll,this._initCartesian(t,e,a),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var a=this._axesMap;this._updateScale(t,this.model);function n(o){var s,l=Ie(o),u=l.length;if(u){for(var f=[],c=u-1;c>=0;c--){var h=+l[c],v=o[h],d=v.model,p=v.scale;js(p)&&d.get("alignTicks")&&d.get("interval")==null?f.push(v):(uc(p,d),js(p)&&(s=v))}f.length&&(s||(s=f.pop(),uc(s.scale,s.model)),w(f,function(y){Ag(y.scale,y.model,s.scale)}))}}n(a.x),n(a.y);var i={};w(a.x,function(o){Uc(a,"y",o,i)}),w(a.y,function(o){Uc(a,"x",o,i)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,a){var n=Rr(t,e),i=this._rect=rt(t.getBoxLayoutParams(),n.refContainer),o=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(Lg(o,i),!a){var u=u1(i,s,o,l,e),f=void 0;if(l)f=Xc(i.clone(),"axisLabel",null,i,o,u,n);else{var c=f1(t,i,n),h=c.outerBoundsRect,v=c.parsedOuterBoundsContain,d=c.outerBoundsClamp;h&&(f=Xc(h,v,d,i,o,u,n))}Ig(i,o,ct.determine,null,f,n)}w(this._coordsList,function(p){p.calcAffineTransform()})},r.prototype.getAxis=function(t,e){var a=this._axesMap[t];if(a!=null)return a[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var a="x"+t+"y"+e;return this._coordsMap[a]}K(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var n=0,i=this._coordsList;n<i.length;n++)if(i[n].getAxis("x").index===t||i[n].getAxis("y").index===e)return i[n]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,a){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.dataToPoint(a):n.axis?n.axis.toGlobalCoord(n.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(t,e,a){var n=this._findConvertTarget(e);return n.cartesian?n.cartesian.pointToData(a):n.axis?n.axis.coordToData(n.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,a=t.xAxisModel||e&&e.getReferringComponents("xAxis",Ne).models[0],n=t.yAxisModel||e&&e.getReferringComponents("yAxis",Ne).models[0],i=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,ue(o,s)<0&&(s=null);else if(a&&n)s=this.getCartesian(a.componentIndex,n.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(n)l=this.getAxis("y",n.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,a){var n=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,w(s.x,function(f,c){w(s.y,function(h,v){var d="x"+c+"y"+v,p=new Gw(d);p.master=n,p.model=t,n._coordsMap[d]=p,n._coordsList.push(p),p.addAxis(f),p.addAxis(h)})});function u(f){return function(c,h){if(as(c,t)){var v=c.get("position");f==="x"?v!=="top"&&v!=="bottom"&&(v=o.bottom?"top":"bottom"):v!=="left"&&v!=="right"&&(v=o.left?"right":"left"),o[v]=!0;var d=new Hw(f,lb(c),[0,0],c.get("type"),v),p=d.type==="category";d.onBand=p&&c.get("boundaryGap"),d.inverse=c.get("inverse"),c.axis=d,d.model=c,d.grid=i,d.index=h,i._axesList.push(d),s[f][h]=d,l[f]++}}}},r.prototype._updateScale=function(t,e){w(this._axesList,function(n){if(n.scale.setExtent(1/0,-1/0),n.type==="category"){var i=n.model.get("categorySortInfo");n.scale.setSortInfo(i)}}),t.eachSeries(function(n){if(n1(n)){var i=Hc(n),o=i.xAxisModel,s=i.yAxisModel;if(!as(o,e)||!as(s,e))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=n.getData(),f=l.getAxis("x"),c=l.getAxis("y");a(u,f),a(u,c)}},this);function a(n,i){w(Op(n,i.dim),function(o){i.scale.unionExtentFromData(n,o)})}},r.prototype.getTooltipAxes=function(t){var e=[],a=[];return w(this.getCartesians(),function(n){var i=t!=null&&t!=="auto"?n.getAxis(t):n.getBaseAxis(),o=n.getOtherAxis(i);ue(e,i)<0&&e.push(i),ue(a,o)<0&&a.push(o)}),{baseAxes:e,otherAxes:a}},r.create=function(t,e){var a=[];return t.eachComponent("grid",function(n,i){var o=new r(n,t,e);o.name="grid_"+i,o.resize(n,e,!0),n.coordinateSystem=o,a.push(o)}),t.eachSeries(function(n){ld({targetModel:n,coordSysType:"cartesian2d",coordSysProvider:i});function i(){var o=Hc(n),s=o.xAxisModel,l=o.yAxisModel,u=s.getCoordSysModel(),f=u.coordinateSystem;return f.getCartesian(s.componentIndex,l.componentIndex)}}),a},r.dimensions=ll,r})();function as(r,t){return r.getCoordSysModel()===t}function Uc(r,t,e,a){e.getAxesOnZeroOf=function(){return i?[i]:[]};var n=r[t],i,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Yc(n[l])&&(i=n[l]);else for(var u in n)if(n.hasOwnProperty(u)&&Yc(n[u])&&!a[f(n[u])]){i=n[u];break}i&&(a[f(i)]=!0);function f(c){return c.dim+"_"+c.index}}function Yc(r){return r&&r.type!=="category"&&r.type!=="time"&&ub(r)}function l1(r,t){var e=r.getExtent(),a=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(n){return n+t}:function(n){return a-n+t},r.toLocalCoord=r.dim==="x"?function(n){return n-t}:function(n){return a-n+t}}function Lg(r,t){w(r.x,function(e){return Zc(e,t.x,t.width)}),w(r.y,function(e){return Zc(e,t.y,t.height)})}function Zc(r,t,e){var a=[0,e],n=r.inverse?1:0;r.setExtent(a[n],a[1-n]),l1(r,t)}function Xc(r,t,e,a,n,i,o){Ig(a,n,ct.estimate,t,!1,o);var s=[0,0,0,0];u(0),u(1),f(a,0,NaN),f(a,1,NaN);var l=ch(s,function(h){return h>0})==null;return vn(a,s,!0,!0,e),Lg(n,a),l;function u(h){w(n[$t[h]],function(v){if(_n(v.model)){var d=i.ensureRecord(v.model),p=d.labelInfoList;if(p)for(var y=0;y<p.length;y++){var g=p[y],m=v.scale.normalize(bn(g.label).tickValue);m=h===1?1-m:m,f(g.rect,h,m),f(g.rect,1-h,NaN)}var _=d.nameLayout;if(_){var m=fa(d.nameLocation)?.5:NaN;f(_.rect,h,m),f(_.rect,1-h,NaN)}}})}function f(h,v,d){var p=r[$t[v]]-h[$t[v]],y=h[sa[v]]+h[$t[v]]-(r[sa[v]]+r[$t[v]]);p=c(p,1-d),y=c(y,d);var g=Wc[v][0],m=Wc[v][1];s[g]=$e(s[g],p),s[m]=$e(s[m],y)}function c(h,v){return h>0&&!xr(v)&&v>1e-4&&(h/=v),h}}function u1(r,t,e,a,n){var i=new bg(c1);return w(e,function(o){return w(o,function(s){if(_n(s.model)){var l=!a;s.axisBuilder=i1(r,t,s.model,n,i,l)}})}),i}function Ig(r,t,e,a,n,i){var o=e===ct.determine;w(t,function(u){return w(u,function(f){_n(f.model)&&(o1(f.axisBuilder,r,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[$t[1-u]]=r[sa[u]]<=i.refContainer[sa[u]]*.5?0:1-u===1?2:1}w(t,function(u,f){return w(u,function(c){_n(c.model)&&((a==="all"||o)&&c.axisBuilder.build({axisName:!0},{nameMarginLevel:s[f]}),o&&c.axisBuilder.build({axisLine:!0}))})})}function f1(r,t,e){var a,n=r.get("outerBoundsMode",!0);n==="same"?a=t.clone():(n==null||n==="auto")&&(a=rt(r.get("outerBounds",!0)||mg,e.refContainer));var i=r.get("outerBoundsContain",!0),o;i==null||i==="auto"||ue(["all","axisLabel"],i)<0?o="all":o=i;var s=[Cs(J(r.get("outerBoundsClampWidth",!0),Xi[0]),t.width),Cs(J(r.get("outerBoundsClampHeight",!0),Xi[1]),t.height)];return{outerBoundsRect:a,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var c1=function(r,t,e,a,n,i){var o=e.axis.dim==="x"?"y":"x";wg(r,t,e,a,n,i),fa(r.nameLocation)||w(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&Mg(s.labelInfoList,s.dirVec,a,n)})};function v1(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return h1(e,r,t),e.seriesInvolved&&p1(e,r),e}function h1(r,t,e){var a=t.getComponent("tooltip"),n=t.getComponent("axisPointer"),i=n.get("link",!0)||[],o=[];w(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=wn(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var f=s.model,c=f.getModel("tooltip",a);if(w(s.getAxes(),me(p,!1,null)),s.getTooltipAxes&&a&&c.get("show")){var h=c.get("trigger")==="axis",v=c.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(c.get(["axisPointer","axis"]));(h||v)&&w(d.baseAxes,me(p,v?"cross":!0,h)),v&&w(d.otherAxes,me(p,"cross",!1))}function p(y,g,m){var _=m.model.getModel("axisPointer",n),S=_.get("show");if(!(!S||S==="auto"&&!y&&!fl(_))){g==null&&(g=_.get("triggerTooltip")),_=y?d1(m,c,n,t,y,g):_;var b=_.get("snap"),x=_.get("triggerEmphasis"),C=wn(m.model),T=g||b||m.type==="category",D=r.axesInfo[C]={key:C,axis:m,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:x,involveSeries:T,snap:b,useHandle:fl(_),seriesModels:[],linkGroup:null};u[C]=D,r.seriesInvolved=r.seriesInvolved||T;var A=g1(i,m);if(A!=null){var M=o[A]||(o[A]={axesInfo:{}});M.axesInfo[C]=D,M.mapper=i[A].mapper,D.linkGroup=M}}}})}function d1(r,t,e,a,n,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};w(s,function(h){l[h]=ee(o.get(h))}),l.snap=r.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),n==="cross"){var f=o.get(["label","show"]);if(u.show=f??!0,!i){var c=l.lineStyle=o.get("crossStyle");c&&ae(u,c.textStyle)}}return r.model.getModel("axisPointer",new ye(l,e,a))}function p1(r,t){t.eachSeries(function(e){var a=e.coordinateSystem,n=e.get(["tooltip","trigger"],!0),i=e.get(["tooltip","show"],!0);!a||!a.model||n==="none"||n===!1||n==="item"||i===!1||e.get(["axisPointer","show"],!0)===!1||w(r.coordSysAxesInfo[wn(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function g1(r,t){for(var e=t.model,a=t.dim,n=0;n<r.length;n++){var i=r[n]||{};if(ns(i[a+"AxisId"],e.id)||ns(i[a+"AxisIndex"],e.componentIndex)||ns(i[a+"AxisName"],e.name))return n}}function ns(r,t){return r==="all"||z(r)&&ue(r,t)>=0||r===t}function y1(r){var t=_u(r);if(t){var e=t.axisPointerModel,a=t.axis.scale,n=e.option,i=e.get("status"),o=e.get("value");o!=null&&(o=a.parse(o));var s=fl(e);i==null&&(n.status=s?"show":"hide");var l=a.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),n.value=o,s&&(n.status=t.axis.scale.isBlank()?"hide":"show")}}function _u(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[wn(r)]}function m1(r){var t=_u(r);return t&&t.axisPointerModel}function fl(r){return!!r.get(["handle","show"])}function wn(r){return r.type+"||"+r.id}var $c={},Pg=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){this.axisPointerClass&&y1(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,n,!0)},t.prototype.updateAxisPointer=function(e,a,n,i){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,a){var n=this._axisPointer;n&&n.remove(a)},t.prototype.dispose=function(e,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,a,n){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=m1(e);o?(this._axisPointer||(this._axisPointer=new i)).render(e,o,a,n):this._disposeAxisPointer(a)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,a){$c[e]=a},t.getAxisPointerClass=function(e){return e&&$c[e]},t.type="axis",t})(He),cl=ie();function _1(r,t,e,a){var n=e.axis;if(!n.scale.isBlank()){var i=e.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=n.getTicksCoords({tickModel:i,clamp:!0,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var f=s.length,c=cl(r).splitAreaColors,h=q(),v=0;if(c)for(var d=0;d<u.length;d++){var p=c.get(u[d].tickValue);if(p!=null){v=(p+(f-1)*d)%f;break}}var y=n.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=z(s)?s:[s];for(var d=1;d<u.length;d++){var m=n.toGlobalCoord(u[d].coord),_=void 0,S=void 0,b=void 0,x=void 0;n.isHorizontal()?(_=y,S=l.y,b=m-_,x=l.height,y=_+b):(_=l.x,S=y,b=l.width,x=m-S,y=S+x);var C=u[d-1].tickValue;C!=null&&h.set(C,v),t.add(new se({anid:C!=null?"area_"+C:null,shape:{x:_,y:S,width:b,height:x},style:ae({fill:s[v]},g),autoBatch:!0,silent:!0})),v=(v+1)%f}cl(r).splitAreaColors=h}}}function S1(r){cl(r).splitAreaColors=null}var x1=["splitArea","splitLine","minorSplitLine","breakArea"],kg=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,a,n,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new pe,this.group.add(this._axisGroup),!!_n(e)){this._axisGroup.add(e.axis.axisBuilder.group),w(x1,function(l){e.get([l,"show"])&&b1[l](this,this._axisGroup,e,e.getCoordSysModel(),n)},this);var s=i&&i.type==="changeAxisOrder"&&i.isInitSort;s||Fh(o,this._axisGroup,e),r.prototype.render.call(this,e,a,n,i)}},t.prototype.remove=function(){S1(this)},t.type="cartesianAxis",t})(Pg),b1={splitLine:function(r,t,e,a,n){var i=e.axis;if(!i.scale.isBlank()){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,f=o.get("showMaxLine")!==!1;l=z(l)?l:[l];for(var c=a.coordinateSystem.getRect(),h=i.isHorizontal(),v=0,d=i.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],y=[],g=s.getLineStyle(),m=0;m<d.length;m++){var _=i.toGlobalCoord(d[m].coord);if(!(m===0&&!u||m===d.length-1&&!f)){var S=d[m].tickValue;h?(p[0]=_,p[1]=c.y,y[0]=_,y[1]=c.y+c.height):(p[0]=c.x,p[1]=_,y[0]=c.x+c.width,y[1]=_);var b=v++%l.length,x=new Tr({anid:S!=null?"line_"+S:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:y[0],y2:y[1]},style:ae({stroke:l[b]},g),silent:!0});cn(x.shape,g.lineWidth),t.add(x)}}}},minorSplitLine:function(r,t,e,a,n){var i=e.axis,o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=a.coordinateSystem.getRect(),u=i.isHorizontal(),f=i.getMinorTicksCoords();if(f.length)for(var c=[],h=[],v=s.getLineStyle(),d=0;d<f.length;d++)for(var p=0;p<f[d].length;p++){var y=i.toGlobalCoord(f[d][p].coord);u?(c[0]=y,c[1]=l.y,h[0]=y,h[1]=l.y+l.height):(c[0]=l.x,c[1]=y,h[0]=l.x+l.width,h[1]=y);var g=new Tr({anid:"minor_line_"+f[d][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:h[0],y2:h[1]},style:v,silent:!0});cn(g.shape,v.lineWidth),t.add(g)}},splitArea:function(r,t,e,a,n){_1(r,t,e,a)},breakArea:function(r,t,e,a,n){e.axis.scale}},Rg=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t})(kg),w1=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Rg.type,e}return t.type="yAxis",t})(kg),C1=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,a){this.group.removeAll(),e.get("show")&&this.group.add(new se({shape:e.coordinateSystem.getRect(),style:ae({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t})(He),Kc={offset:0};function M1(r){r.registerComponentView(C1),r.registerComponentModel(Rw),r.registerCoordinateSystem("cartesian2d",s1),Nc(r,"x",sl,Kc),Nc(r,"y",sl,Kc),r.registerComponentView(Rg),r.registerComponentView(w1),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function T1(r){r.eachSeriesByType("radar",function(t){var e=t.getData(),a=[],n=t.coordinateSystem;if(n){var i=n.getIndicatorAxes();w(i,function(o,s){e.each(e.mapDimension(i[s].dim),function(l,u){a[u]=a[u]||[];var f=n.dataToPoint(l,s);a[u][s]=qc(f)?f:jc(n)})}),e.each(function(o){var s=ch(a[o],function(l){return qc(l)})||jc(n);a[o].push(s.slice()),e.setItemLayout(o,a[o])})}})}function qc(r){return!isNaN(r[0])&&!isNaN(r[1])}function jc(r){return[r.cx,r.cy]}function D1(r){var t=r.polar;if(t){z(t)||(t=[t]);var e=[];w(t,function(a,n){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],z(r.radar)||(r.radar=[r.radar]),r.radar.push(a)):e.push(a)}),r.polar=e}w(r.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var A1=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(h,v){var d=h.getItemVisual(v,"symbol")||"circle";if(d!=="none"){var p=Xd(h.getItemVisual(v,"symbolSize")),y=at(d,-1,-1,2,2),g=h.getItemVisual(v,"symbolRotate")||0;return y.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:g*Math.PI/180||0}),y}}function f(h,v,d,p,y,g){d.removeAll();for(var m=0;m<v.length-1;m++){var _=u(p,y);_&&(_.__dimIdx=m,h[m]?(_.setPosition(h[m]),Uh[g?"initProps":"updateProps"](_,{x:v[m][0],y:v[m][1]},e,y)):_.setPosition(v[m]),d.add(_))}}function c(h){return X(h,function(v){return[i.cx,i.cy]})}s.diff(l).add(function(h){var v=s.getItemLayout(h);if(v){var d=new ha,p=new or,y={shape:{points:v}};d.shape.points=c(v),p.shape.points=c(v),Ee(d,y,e,h),Ee(p,y,e,h);var g=new pe,m=new pe;g.add(p),g.add(d),g.add(m),f(p.shape.points,v,m,s,h,!0),s.setItemGraphicEl(h,g)}}).update(function(h,v){var d=l.getItemGraphicEl(v),p=d.childAt(0),y=d.childAt(1),g=d.childAt(2),m={shape:{points:s.getItemLayout(h)}};m.shape.points&&(f(p.shape.points,m.shape.points,g,s,h,!1),un(y),un(p),De(p,m,e),De(y,m,e),s.setItemGraphicEl(h,d))}).remove(function(h){o.remove(l.getItemGraphicEl(h))}).execute(),s.eachItemGraphicEl(function(h,v){var d=s.getItemModel(v),p=h.childAt(0),y=h.childAt(1),g=h.childAt(2),m=s.getItemVisual(v,"style"),_=m.fill;o.add(h),p.useStyle(ae(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),oa(p,d,"lineStyle"),oa(y,d,"areaStyle");var S=d.getModel("areaStyle"),b=S.isEmpty()&&S.parentModel.isEmpty();y.ignore=b,w(["emphasis","select","blur"],function(C){var T=d.getModel([C,"areaStyle"]),D=T.isEmpty()&&T.parentModel.isEmpty();y.ensureState(C).ignore=D&&b;var A=d.getModel([C,"lineStyle"]).getLineStyle();p.ensureState(C).style=A;var M=T.getAreaStyle();y.ensureState(C).style=M;var P=d.getModel([C,"itemStyle"]).getItemStyle();g.eachChild(function(L){L.ensureState(C).style=ee(P)})}),y.useStyle(ae(d.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:m.decal}));var x=d.getModel("emphasis");g.eachChild(function(C){if(C instanceof Et){var T=C.style;C.useStyle(U({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},m))}else C.useStyle(m),C.setColor(_),C.style.strokeNoScale=!0;var D=s.getStore().get(s.getDimensionIndex(C.__dimIdx),v);(D==null||isNaN(D))&&(D=""),kr(C,rr(d),{labelFetcher:s.hostModel,labelDataIndex:v,labelDimIndex:C.__dimIdx,defaultText:D,inheritColor:_,defaultOpacity:m.opacity})}),tr(h,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t})(Oe),L1=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new gg(Z(this.getData,this),Z(this.getRawData,this))},t.prototype.getInitialData=function(e,a){return pg(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,a,n){var i=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,f=Od(this,e);return Lr("section",{header:u,sortBlocks:!0,blocks:X(s,function(c){var h=i.get(i.mapDimension(c.dim),e);return Lr("nameValue",{markerType:"subItem",markerColor:f,name:c.name,value:h,sortParam:h})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var a=this.getData(),n=this.coordinateSystem,i=a.getValues(X(n.dimensions,function(u){return a.mapDimension(u)}),e),o=0,s=i.length;o<s;o++)if(!isNaN(i[o])){var l=n.getIndicatorAxes();return n.coordToPoint(l[o].dataToCoord(i[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t})(Ge),ka=Sg.value;function ni(r,t){return ae({show:t},r)}var I1=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),a=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),c=this.get("axisNameGap"),h=this.get("triggerEvent"),v=X(this.get("indicator")||[],function(d){d.max!=null&&d.max>0&&!d.min?d.min=0:d.min!=null&&d.min<0&&!d.max&&(d.max=0);var p=l;d.color!=null&&(p=ae({color:d.color},l));var y=oe(ee(d),{boundaryGap:e,splitNumber:a,scale:n,axisLine:i,axisTick:o,axisLabel:s,name:d.text,showName:u,nameLocation:"end",nameGap:c,nameTextStyle:p,triggerEvent:h},!1);if($(f)){var g=y.name;y.name=f.replace("{value}",g??"")}else j(f)&&(y.name=f(y.name,y));var m=new ye(y,null,this.ecModel);return Ot(m,Np.prototype),m.mainType="radar",m.componentIndex=this.componentIndex,m},this);this._indicatorModels=v},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,axisName:{show:!0,color:O.color.axisLabel},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:oe({lineStyle:{color:O.color.neutral20}},ka.axisLine),axisLabel:ni(ka.axisLabel,!1),axisTick:ni(ka.axisTick,!1),splitLine:ni(ka.splitLine,!0),splitArea:ni(ka.splitArea,!0),indicator:[]},t})(re),P1=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group;i.removeAll(),this._buildAxes(e,n),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,a){var n=e.coordinateSystem,i=n.getIndicatorAxes(),o=X(i,function(s){var l=s.model.get("showName")?s.name:"",u=new It(s.model,a,{axisName:l,position:[n.cx,n.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});w(o,function(s){s.build(),this.group.add(s.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var a=e.coordinateSystem,n=a.getIndicatorAxes();if(!n.length)return;var i=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),f=o.get("show"),c=s.get("show"),h=l.get("color"),v=u.get("color"),d=z(h)?h:[h],p=z(v)?v:[v],y=[],g=[];function m(I,k,N){var R=N%k.length;return I[R]=I[R]||[],R}if(i==="circle")for(var _=n[0].getTicksCoords(),S=a.cx,b=a.cy,x=0;x<_.length;x++){if(f){var C=m(y,d,x);y[C].push(new ro({shape:{cx:S,cy:b,r:_[x].coord}}))}if(c&&x<_.length-1){var C=m(g,p,x);g[C].push(new xl({shape:{cx:S,cy:b,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,D=X(n,function(I,k){var N=I.getTicksCoords();return T=T==null?N.length-1:Math.min(N.length-1,T),X(N,function(R){return a.coordToPoint(R.coord,k)})}),A=[],x=0;x<=T;x++){for(var M=[],P=0;P<n.length;P++)M.push(D[P][x]);if(M[0]&&M.push(M[0].slice()),f){var C=m(y,d,x);y[C].push(new or({shape:{points:M}}))}if(c&&A){var C=m(g,p,x-1);g[C].push(new ha({shape:{points:M.concat(A)}}))}A=M.slice().reverse()}var L=l.getLineStyle(),E=u.getAreaStyle();w(g,function(I,k){this.group.add(Rs(I,{style:ae({stroke:"none",fill:p[k%p.length]},E),silent:!0}))},this),w(y,function(I,k){this.group.add(Rs(I,{style:ae({fill:"none",stroke:d[k%d.length]},L),silent:!0}))},this)},t.type="radar",t})(He),k1=(function(r){W(t,r);function t(e,a,n){var i=r.call(this,e,a,n)||this;return i.type="value",i.angle=0,i.name="",i}return t})(Yp),R1=(function(){function r(t,e,a){this.dimensions=[],this._model=t,this._indicatorAxes=X(t.getIndicatorModels(),function(n,i){var o="indicator_"+i,s=new k1(o,new ar);return s.name=n.get("name"),s.model=n,n.axis=s,this.dimensions.push(o),s},this),this.resize(t,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var a=this._indicatorAxes[e];return this.coordToPoint(a.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var a=this._indicatorAxes[e],n=a.angle,i=this.cx+t*Math.cos(n),o=this.cy-t*Math.sin(n);return[i,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,n=Math.sqrt(e*e+a*a);e/=n,a/=n;for(var i=Math.atan2(-a,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var f=this._indicatorAxes[u],c=Math.abs(i-f.angle);c<o&&(s=f,l=u,o=c)}return[l,+(s&&s.coordToData(n))]},r.prototype.resize=function(t,e){var a=Rr(t,e).refContainer,n=t.get("center"),i=Math.min(a.width,a.height)/2;this.cx=ne(n[0],a.width)+a.x,this.cy=ne(n[1],a.height)+a.y,this.startAngle=t.get("startAngle")*Math.PI/180;var o=t.get("radius");($(o)||ve(o))&&(o=[0,o]),this.r0=ne(o[0],i),this.r=ne(o[1],i),w(this._indicatorAxes,function(s,l){s.setExtent(this.r0,this.r);var u=this.startAngle+l*Math.PI*2/this._indicatorAxes.length;u=Math.atan2(Math.sin(u),Math.cos(u)),s.angle=u},this)},r.prototype.update=function(t,e){var a=this._indicatorAxes,n=this._model;w(a,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==n)){var u=s.getData();w(a,function(f){f.scale.unionExtentFromData(u,u.mapDimension(f.dim))})}},this);var i=n.get("splitNumber"),o=new ar;o.setExtent(0,i),o.setInterval(1),w(a,function(s,l){Ag(s.scale,s.model,o)})},r.prototype.convertToPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.create=function(t,e){var a=[];return t.eachComponent("radar",function(n){var i=new r(n,t,e);a.push(i),n.coordinateSystem=i}),t.eachSeriesByType("radar",function(n){n.get("coordinateSystem")==="radar"&&(n.coordinateSystem=a[n.get("radarIndex")||0])}),a},r.dimensions=[],r})();function E1(r){r.registerCoordinateSystem("radar",R1),r.registerComponentModel(I1),r.registerComponentView(P1),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(a){e.setItemVisual(a,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}function QT(r){Xe(E1),r.registerChartView(A1),r.registerSeriesModel(L1),r.registerLayout(T1),r.registerProcessor(vg("radar")),r.registerPreprocessor(D1)}var O1=ie();function Qc(r,t){return!!O1(r)[t]}Br({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},xt);var B1={axisPointer:1,tooltip:1,brush:1};function N1(r,t,e){var a=t.getComponentByElement(r.topTarget);if(!a||a===e||B1.hasOwnProperty(a.mainType))return!1;var n=a.coordinateSystem;if(!n||n.model===e)return!1;var i=dn(a),o=dn(e);return!((i.zlevel-o.zlevel||i.z-o.z)<=0)}var V1=(function(r){W(t,r);function t(e){var a=r.call(this)||this;a._zr=e;var n=Z(a._mousedownHandler,a),i=Z(a._mousemoveHandler,a),o=Z(a._mouseupHandler,a),s=Z(a._mousewheelHandler,a),l=Z(a._pinchHandler,a);return a.enable=function(u,f){var c=f.zInfo,h=dn(c.component),v=h.z,d=h.zlevel,p={component:c.component,z:v,zlevel:d,z2:J(c.z2,-1/0)},y=U({},f.triggerInfo);this._opt=ae(U({},f),{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0,zInfoParsed:p,triggerInfo:y}),u==null&&(u=!0),(!this._enabled||this._controlType!==u)&&(this._enabled=!0,this.disable(),(u===!0||u==="move"||u==="pan")&&(Ea(e,"mousedown",n,p),Ea(e,"mousemove",i,p),Ea(e,"mouseup",o,p)),(u===!0||u==="scale"||u==="zoom")&&(Ea(e,"mousewheel",s,p),Ea(e,"pinch",l,p)))},a.disable=function(){this._enabled=!1,Oa(e,"mousedown",n),Oa(e,"mousemove",i),Oa(e,"mouseup",o),Oa(e,"mousewheel",s),Oa(e,"pinch",l)},a}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype._checkPointer=function(e,a,n){var i=this._opt,o=i.zInfoParsed;if(N1(e,i.api,o.component))return!1;var s=i.triggerInfo,l=s.roamTrigger,u=!1;return l==="global"&&(u=!0),u||(u=s.isInSelf(e,a,n)),u&&s.isInClip&&!s.isInClip(e,a,n)&&(u=!1),u},t.prototype._decideCursorStyle=function(e,a,n,i){var o=e.target;if(!o&&this._checkPointer(e,a,n))return"grab";if(i)return o&&o.cursor||"default"},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(e){if(!(Bu(e)||Ra(e))){for(var a=e.target;a;){if(a.draggable)return;a=a.__hostTarget||a.parent}var n=e.offsetX,i=e.offsetY;this._checkPointer(e,n,i)&&(this._x=n,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(e){var a=this._zr;if(!(e.gestureEvent==="pinch"||Qc(a,"globalPan")||Ra(e))){var n=e.offsetX,i=e.offsetY;if(!this._dragging||!gi("moveOnMouseMove",e,this._opt)){var o=this._decideCursorStyle(e,n,i,!1);o&&a.setCursorStyle(o);return}a.setCursorStyle("grabbing");var s=this._x,l=this._y,u=n-s,f=i-l;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&er(e.event),e.__ecRoamConsumed=!0,Jc(this,"pan","moveOnMouseMove",e,{dx:u,dy:f,oldX:s,oldY:l,newX:n,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(e){if(!Ra(e)){var a=this._zr;if(!Bu(e)){this._dragging=!1;var n=this._decideCursorStyle(e,e.offsetX,e.offsetY,!0);n&&a.setCursorStyle(n)}}},t.prototype._mousewheelHandler=function(e){if(!Ra(e)){var a=gi("zoomOnMouseWheel",e,this._opt),n=gi("moveOnMouseWheel",e,this._opt),i=e.wheelDelta,o=Math.abs(i),s=e.offsetX,l=e.offsetY;if(!(i===0||!a&&!n)){if(a){var u=o>3?1.4:o>1?1.2:1.1,f=i>0?u:1/u;this._checkTriggerMoveZoom(this,"zoom","zoomOnMouseWheel",e,{scale:f,originX:s,originY:l,isAvailableBehavior:null})}if(n){var c=Math.abs(i),h=(i>0?1:-1)*(c>3?.4:c>1?.15:.05);this._checkTriggerMoveZoom(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:h,originX:s,originY:l,isAvailableBehavior:null})}}}},t.prototype._pinchHandler=function(e){if(!(Qc(this._zr,"globalPan")||Ra(e))){var a=e.pinchScale>1?1.1:1/1.1;this._checkTriggerMoveZoom(this,"zoom",null,e,{scale:a,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})}},t.prototype._checkTriggerMoveZoom=function(e,a,n,i,o){e._checkPointer(i,o.originX,o.originY)&&(er(i.event),i.__ecRoamConsumed=!0,Jc(e,a,n,i,o))},t})(Dn);function Ra(r){return r.__ecRoamConsumed}var z1=ie();function mo(r){var t=z1(r);return t.roam=t.roam||{},t.uniform=t.uniform||{},t}function Ea(r,t,e,a){for(var n=mo(r),i=n.roam,o=i[t]=i[t]||[],s=0;s<o.length;s++){var l=o[s].zInfoParsed;if((l.zlevel-a.zlevel||l.z-a.z||l.z2-a.z2)<=0)break}o.splice(s,0,{listener:e,zInfoParsed:a}),F1(r,t)}function Oa(r,t,e){for(var a=mo(r),n=a.roam[t]||[],i=0;i<n.length;i++)if(n[i].listener===e){n.splice(i,1),n.length||G1(r,t);return}}function F1(r,t){var e=mo(r);e.uniform[t]||r.on(t,e.uniform[t]=function(a){var n=e.roam[t];if(n)for(var i=0;i<n.length;i++)n[i].listener(a)})}function G1(r,t){var e=mo(r),a=e.uniform;a[t]&&(r.off(t,a[t]),a[t]=null)}function Jc(r,t,e,a,n){n.isAvailableBehavior=Z(gi,null,e,a),r.trigger(t,n)}function gi(r,t,e){var a=e[r];return!r||a&&(!$(a)||t.event[a+"Key"])}var Cn=w,H1=K,Ki=-1,ze=(function(){function r(t){var e=t.mappingMethod,a=t.type,n=this.option=ee(t);this.type=a,this.mappingMethod=e,this._normalizeData=Y1[e];var i=r.visualHandlers[a];this.applyVisual=i.applyVisual,this.getColorMapper=i.getColorMapper,this._normalizedToVisual=i._normalizedToVisual[e],e==="piecewise"?(is(n),W1(n)):e==="category"?n.categories?U1(n):is(n,!0):(St(e!=="linear"||n.dataExtent),is(n))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return Z(this._normalizeData,this)},r.listVisualTypes=function(){return Ie(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,a){K(t)?w(t,e,a):e.call(a,t)},r.mapVisual=function(t,e,a){var n,i=z(t)?[]:K(t)?{}:(n=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(a,o,s);n?i=l:i[s]=l}),i},r.retrieveVisuals=function(t){var e={},a;return t&&Cn(r.visualHandlers,function(n,i){t.hasOwnProperty(i)&&(e[i]=t[i],a=!0)}),a?e:null},r.prepareVisualTypes=function(t){if(z(t))t=t.slice();else if(H1(t)){var e=[];Cn(t,function(a,n){e.push(n)}),t=e}else return[];return t.sort(function(a,n){return n==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,a){for(var n,i=1/0,o=0,s=e.length;o<s;o++){var l=e[o].value;if(l!=null){if(l===t||$(l)&&l===t+"")return o;a&&h(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],f=u.interval,c=u.close;if(f){if(f[0]===-1/0){if(oi(c[1],t,f[1]))return o}else if(f[1]===1/0){if(oi(c[0],f[0],t))return o}else if(oi(c[0],f[0],t)&&oi(c[1],t,f[1]))return o;a&&h(f[0],o),a&&h(f[1],o)}}if(a)return t===1/0?e.length-1:t===-1/0?0:n;function h(v,d){var p=Math.abs(v-t);p<i&&(i=p,n=d)}},r.visualHandlers={color:{applyVisual:Ba("color"),getColorMapper:function(){var t=this.option;return Z(t.mappingMethod==="category"?function(e,a){return!a&&(e=this._normalizeData(e)),Za.call(this,e)}:function(e,a,n){var i=!!n;return!a&&(e=this._normalizeData(e)),n=wo(e,t.parsedVisual,n),i?n:li(n,"rgba")},this)},_normalizedToVisual:{linear:function(t){return li(wo(t,this.option.parsedVisual),"rgba")},category:Za,piecewise:function(t,e){var a=hl.call(this,e);return a==null&&(a=li(wo(t,this.option.parsedVisual),"rgba")),a},fixed:yr}},colorHue:ii(function(t,e){return ta(t,e)}),colorSaturation:ii(function(t,e){return ta(t,null,e)}),colorLightness:ii(function(t,e){return ta(t,null,null,e)}),colorAlpha:ii(function(t,e){return Py(t,e)}),decal:{applyVisual:Ba("decal"),_normalizedToVisual:{linear:null,category:Za,piecewise:null,fixed:null}},opacity:{applyVisual:Ba("opacity"),_normalizedToVisual:vl([0,1])},liftZ:{applyVisual:Ba("liftZ"),_normalizedToVisual:{linear:yr,category:yr,piecewise:yr,fixed:yr}},symbol:{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("symbol",n)},_normalizedToVisual:{linear:ev,category:Za,piecewise:function(t,e){var a=hl.call(this,e);return a==null&&(a=ev.call(this,t)),a},fixed:yr}},symbolSize:{applyVisual:Ba("symbolSize"),_normalizedToVisual:vl([0,1])}},r})();function W1(r){var t=r.pieceList;r.hasSpecialVisual=!1,w(t,function(e,a){e.originIndex=a,e.visual!=null&&(r.hasSpecialVisual=!0)})}function U1(r){var t=r.categories,e=r.categoryMap={},a=r.visual;if(Cn(t,function(o,s){e[o]=s}),!z(a)){var n=[];K(a)?Cn(a,function(o,s){var l=e[s];n[l??Ki]=o}):n[Ki]=a,a=Eg(r,n)}for(var i=t.length-1;i>=0;i--)a[i]==null&&(delete e[t[i]],t.pop())}function is(r,t){var e=r.visual,a=[];K(e)?Cn(e,function(i){a.push(i)}):e!=null&&a.push(e);var n={color:1,symbol:1};!t&&a.length===1&&!n.hasOwnProperty(r.type)&&(a[1]=a[0]),Eg(r,a)}function ii(r){return{applyVisual:function(t,e,a){var n=this.mapValueToVisual(t);a("color",r(e("color"),n))},_normalizedToVisual:vl([0,1])}}function ev(r){var t=this.option.visual;return t[Math.round(ce(r,[0,1],[0,t.length-1],!0))]||{}}function Ba(r){return function(t,e,a){a(r,this.mapValueToVisual(t))}}function Za(r){var t=this.option.visual;return t[this.option.loop&&r!==Ki?r%t.length:r]}function yr(){return this.option.visual[0]}function vl(r){return{linear:function(t){return ce(t,r,this.option.visual,!0)},category:Za,piecewise:function(t,e){var a=hl.call(this,e);return a==null&&(a=ce(t,r,this.option.visual,!0)),a},fixed:yr}}function hl(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var a=ze.findPieceIndex(r,e),n=e[a];if(n&&n.visual)return n.visual[this.type]}}function Eg(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=X(t,function(e){var a=vh(e);return a||[0,0,0,1]})),t}var Y1={linear:function(r){return ce(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=ze.findPieceIndex(r,t,!0);if(e!=null)return ce(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??Ki},fixed:xt};function oi(r,t,e){return r?t<=e:t<e}function ca(r,t,e,a,n,i){r=r||0;var o=e[1]-e[0];if(n!=null&&(n=Kr(n,[0,o])),i!=null&&(i=Math.max(i,n??0)),a==="all"){var s=Math.abs(t[1]-t[0]);s=Kr(s,[0,o]),n=i=Kr(s,[n,i]),a=0}t[0]=Kr(t[0],e),t[1]=Kr(t[1],e);var l=os(t,a);t[a]+=r;var u=n||0,f=e.slice();l.sign<0?f[0]+=u:f[1]-=u,t[a]=Kr(t[a],f);var c;return c=os(t,a),n!=null&&(c.sign!==l.sign||c.span<n)&&(t[1-a]=t[a]+l.sign*n),c=os(t,a),i!=null&&c.span>i&&(t[1-a]=t[a]+c.sign*i),t}function os(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Kr(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var Z1=256,X1=(function(){function r(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Si.createCanvas();this.canvas=t}return r.prototype.update=function(t,e,a,n,i,o){var s=this._getBrush(),l=this._getGradient(i,"inRange"),u=this._getGradient(i,"outOfRange"),f=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),v=t.length;c.width=e,c.height=a;for(var d=0;d<v;++d){var p=t[d],y=p[0],g=p[1],m=p[2],_=n(m);h.globalAlpha=_,h.drawImage(s,y-f,g-f)}if(!c.width||!c.height)return c;for(var S=h.getImageData(0,0,c.width,c.height),b=S.data,x=0,C=b.length,T=this.minOpacity,D=this.maxOpacity,A=D-T;x<C;){var _=b[x+3]/256,M=Math.floor(_*(Z1-1))*4;if(_>0){var P=o(_)?l:u;_>0&&(_=_*A+T),b[x++]=P[M],b[x++]=P[M+1],b[x++]=P[M+2],b[x++]=P[M+3]*_*256}else x+=4}return h.putImageData(S,0,0),c},r.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Si.createCanvas()),e=this.pointSize+this.blurSize,a=e*2;t.width=a,t.height=a;var n=t.getContext("2d");return n.clearRect(0,0,a,a),n.shadowOffsetX=a,n.shadowBlur=this.blurSize,n.shadowColor=O.color.neutral99,n.beginPath(),n.arc(-e,e,this.pointSize,0,Math.PI*2,!0),n.closePath(),n.fill(),t},r.prototype._getGradient=function(t,e){for(var a=this._gradientPixels,n=a[e]||(a[e]=new Uint8ClampedArray(256*4)),i=[0,0,0,0],o=0,s=0;s<256;s++)t[e](s/255,!0,i),n[o++]=i[0],n[o++]=i[1],n[o++]=i[2],n[o++]=i[3];return n},r})();function $1(r,t,e){var a=r[1]-r[0];t=X(t,function(o){return{interval:[(o.interval[0]-r[0])/a,(o.interval[1]-r[0])/a]}});var n=t.length,i=0;return function(o){var s;for(s=i;s<n;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}if(s===n)for(s=i-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){i=s;break}}return s>=0&&s<n&&e[s]}}function K1(r,t){var e=r[1]-r[0];return t=[(t[0]-r[0])/e,(t[1]-r[0])/e],function(a){return a>=t[0]&&a<=t[1]}}function tv(r){var t=r.dimensions;return t[0]==="lng"&&t[1]==="lat"}var q1=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i;a.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===e&&(i=s)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"||o.type==="matrix"?this._renderOnGridLike(e,n,0,e.getData().count()):tv(o)&&this._renderOnGeo(o,e,i,n)},t.prototype.incrementalPrepareRender=function(e,a,n){this.group.removeAll()},t.prototype.incrementalRender=function(e,a,n,i){var o=a.coordinateSystem;o&&(tv(o)?this.render(a,n,i):(this._progressiveEls=[],this._renderOnGridLike(a,i,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){pa(this._progressiveEls||this.group,e)},t.prototype._renderOnGridLike=function(e,a,n,i,o){var s=e.coordinateSystem,l=xn(s,"cartesian2d"),u=xn(s,"matrix"),f,c,h,v;if(l){var d=s.getAxis("x"),p=s.getAxis("y");f=d.getBandWidth()+.5,c=p.getBandWidth()+.5,h=d.scale.getExtent(),v=p.scale.getExtent()}for(var y=this.group,g=e.getData(),m=e.getModel(["emphasis","itemStyle"]).getItemStyle(),_=e.getModel(["blur","itemStyle"]).getItemStyle(),S=e.getModel(["select","itemStyle"]).getItemStyle(),b=e.get(["itemStyle","borderRadius"]),x=rr(e),C=e.getModel("emphasis"),T=C.get("focus"),D=C.get("blurScope"),A=C.get("disabled"),M=l||u?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],P=n;P<i;P++){var L=void 0,E=g.getItemVisual(P,"style");if(l){var I=g.get(M[0],P),k=g.get(M[1],P);if(isNaN(g.get(M[2],P))||isNaN(I)||isNaN(k)||I<h[0]||I>h[1]||k<v[0]||k>v[1])continue;var N=s.dataToPoint([I,k]);L=new se({shape:{x:N[0]-f/2,y:N[1]-c/2,width:f,height:c},style:E})}else if(u){var R=s.dataToLayout([g.get(M[0],P),g.get(M[1],P)]).rect;if(xr(R.x))continue;L=new se({z2:1,shape:R,style:E})}else{if(isNaN(g.get(M[1],P)))continue;var B=s.dataToLayout([g.get(M[0],P)]),R=B.contentRect||B.rect;if(xr(R.x)||xr(R.y))continue;L=new se({z2:1,shape:R,style:E})}if(g.hasItemOption){var V=g.getItemModel(P),G=V.getModel("emphasis");m=G.getModel("itemStyle").getItemStyle(),_=V.getModel(["blur","itemStyle"]).getItemStyle(),S=V.getModel(["select","itemStyle"]).getItemStyle(),b=V.get(["itemStyle","borderRadius"]),T=G.get("focus"),D=G.get("blurScope"),A=G.get("disabled"),x=rr(V)}L.shape.r=b;var Y=e.getRawValue(P),Q="-";Y&&Y[2]!=null&&(Q=Y[2]+""),kr(L,x,{labelFetcher:e,labelDataIndex:P,defaultOpacity:E.opacity,defaultText:Q}),L.ensureState("emphasis").style=m,L.ensureState("blur").style=_,L.ensureState("select").style=S,tr(L,T,D,A),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),y.add(L),g.setItemGraphicEl(P,L),this._progressiveEls&&this._progressiveEls.push(L)}},t.prototype._renderOnGeo=function(e,a,n,i){var o=n.targetVisuals.inRange,s=n.targetVisuals.outOfRange,l=a.getData(),u=this._hmLayer||this._hmLayer||new X1;u.blurSize=a.get("blurSize"),u.pointSize=a.get("pointSize"),u.minOpacity=a.get("minOpacity"),u.maxOpacity=a.get("maxOpacity");var f=e.getViewRect().clone(),c=e.getRoamTransform();f.applyTransform(c);var h=Math.max(f.x,0),v=Math.max(f.y,0),d=Math.min(f.width+f.x,i.getWidth()),p=Math.min(f.height+f.y,i.getHeight()),y=d-h,g=p-v,m=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(m,function(C,T,D){var A=e.dataToPoint([C,T]);return A[0]-=h,A[1]-=v,A.push(D),A}),S=n.getExtent(),b=n.type==="visualMap.continuous"?K1(S,n.option.range):$1(S,n.getPieceList(),n.option.selected);u.update(_,y,g,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},b);var x=new Et({style:{width:y,height:g,x:h,y:v,image:u.canvas},silent:!0});this.group.add(x)},t.type="heatmap",t})(Oe),j1=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return In(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=vo.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:O.color.primary}}},t})(Ge);function JT(r){r.registerChartView(q1),r.registerSeriesModel(j1)}var rv={color:"fill",borderColor:"stroke"},Q1={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Pt=ie(),J1=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,a){return In(null,this)},t.prototype.getDataParams=function(e,a,n){var i=r.prototype.getDataParams.call(this,e,a);return n&&(i.info=Pt(n).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar","matrix"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t})(Ge);function eC(r,t){return t=t||[0,0],X(["x","y"],function(e,a){var n=this.getAxis(e),i=t[a],o=r[a]/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(i-o)-n.dataToCoord(i+o))},this)}function tC(r){var t=r.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:Z(eC,r)}}}function rC(r,t){return t=t||[0,0],X([0,1],function(e){var a=t[e],n=r[e]/2,i=[],o=[];return i[e]=a-n,o[e]=a+n,i[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(i)[e]-this.dataToPoint(o)[e])},this)}function aC(r){var t=r.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:r.getZoom()},api:{coord:function(e){return r.dataToPoint(e)},size:Z(rC,r)}}}function nC(r,t){var e=this.getAxis(),a=t instanceof Array?t[0]:t,n=(r instanceof Array?r[0]:r)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(a-n)-e.dataToCoord(a+n))}function iC(r){var t=r.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return r.dataToPoint(e)},size:Z(nC,r)}}}function oC(r,t){return t=t||[0,0],X(["Radius","Angle"],function(e,a){var n="get"+e+"Axis",i=this[n](),o=t[a],s=r[a]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return e==="Angle"&&(l=l*Math.PI/180),l},this)}function sC(r){var t=r.getRadiusAxis(),e=r.getAngleAxis(),a=t.getExtent();return a[0]>a[1]&&a.reverse(),{coordSys:{type:"polar",cx:r.cx,cy:r.cy,r:a[1],r0:a[0]},api:{coord:function(n){var i=t.dataToRadius(n[0]),o=e.dataToAngle(n[1]),s=r.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:Z(oC,r)}}}function lC(r){var t=r.getRect(),e=r.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:r.getCellWidth(),cellHeight:r.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(a,n){return r.dataToPoint(a,n)},layout:function(a,n){return r.dataToLayout(a,n)}}}}function uC(r){var t=r.getRect();return{coordSys:{type:"matrix",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e,a){return r.dataToPoint(e,a)},layout:function(e,a){return r.dataToLayout(e,a)}}}}function fC(r,t,e,a){return r&&(r.legacy||r.legacy!==!1&&!e&&!a&&t!=="tspan"&&(t==="text"||F(r,"text")))}function cC(r,t,e){var a=r,n,i,o;if(t==="text")o=a;else{o={},F(a,"text")&&(o.text=a.text),F(a,"rich")&&(o.rich=a.rich),F(a,"textFill")&&(o.fill=a.textFill),F(a,"textStroke")&&(o.stroke=a.textStroke),F(a,"fontFamily")&&(o.fontFamily=a.fontFamily),F(a,"fontSize")&&(o.fontSize=a.fontSize),F(a,"fontStyle")&&(o.fontStyle=a.fontStyle),F(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=F(a,"textPosition");e?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),F(a,"textPosition")&&(n.position=a.textPosition),F(a,"textOffset")&&(n.offset=a.textOffset),F(a,"textRotation")&&(n.rotation=a.textRotation),F(a,"textDistance")&&(n.distance=a.textDistance)}return av(o,r),w(o.rich,function(l){av(l,l)}),{textConfig:n,textContent:i}}function av(r,t){t&&(t.font=t.textFont||t.font,F(t,"textStrokeWidth")&&(r.lineWidth=t.textStrokeWidth),F(t,"textAlign")&&(r.align=t.textAlign),F(t,"textVerticalAlign")&&(r.verticalAlign=t.textVerticalAlign),F(t,"textLineHeight")&&(r.lineHeight=t.textLineHeight),F(t,"textWidth")&&(r.width=t.textWidth),F(t,"textHeight")&&(r.height=t.textHeight),F(t,"textBackgroundColor")&&(r.backgroundColor=t.textBackgroundColor),F(t,"textPadding")&&(r.padding=t.textPadding),F(t,"textBorderColor")&&(r.borderColor=t.textBorderColor),F(t,"textBorderWidth")&&(r.borderWidth=t.textBorderWidth),F(t,"textBorderRadius")&&(r.borderRadius=t.textBorderRadius),F(t,"textBoxShadowColor")&&(r.shadowColor=t.textBoxShadowColor),F(t,"textBoxShadowBlur")&&(r.shadowBlur=t.textBoxShadowBlur),F(t,"textBoxShadowOffsetX")&&(r.shadowOffsetX=t.textBoxShadowOffsetX),F(t,"textBoxShadowOffsetY")&&(r.shadowOffsetY=t.textBoxShadowOffsetY))}function nv(r,t,e){var a=r;a.textPosition=a.textPosition||e.position||"inside",e.offset!=null&&(a.textOffset=e.offset),e.rotation!=null&&(a.textRotation=e.rotation),e.distance!=null&&(a.textDistance=e.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||O.color.neutral99;iv(a,t);var o=a.textFill==null;return n?o&&(a.textFill=e.insideFill||O.color.neutral00,!a.textStroke&&e.insideStroke&&(a.textStroke=e.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||e.outsideFill||O.color.neutral00),!a.textStroke&&e.outsideStroke&&(a.textStroke=e.outsideStroke)),a.text=t.text,a.rich=t.rich,w(t.rich,function(s){iv(s,s)}),a}function iv(r,t){t&&(F(t,"fill")&&(r.textFill=t.fill),F(t,"stroke")&&(r.textStroke=t.fill),F(t,"lineWidth")&&(r.textStrokeWidth=t.lineWidth),F(t,"font")&&(r.font=t.font),F(t,"fontStyle")&&(r.fontStyle=t.fontStyle),F(t,"fontWeight")&&(r.fontWeight=t.fontWeight),F(t,"fontSize")&&(r.fontSize=t.fontSize),F(t,"fontFamily")&&(r.fontFamily=t.fontFamily),F(t,"align")&&(r.textAlign=t.align),F(t,"verticalAlign")&&(r.textVerticalAlign=t.verticalAlign),F(t,"lineHeight")&&(r.textLineHeight=t.lineHeight),F(t,"width")&&(r.textWidth=t.width),F(t,"height")&&(r.textHeight=t.height),F(t,"backgroundColor")&&(r.textBackgroundColor=t.backgroundColor),F(t,"padding")&&(r.textPadding=t.padding),F(t,"borderColor")&&(r.textBorderColor=t.borderColor),F(t,"borderWidth")&&(r.textBorderWidth=t.borderWidth),F(t,"borderRadius")&&(r.textBorderRadius=t.borderRadius),F(t,"shadowColor")&&(r.textBoxShadowColor=t.shadowColor),F(t,"shadowBlur")&&(r.textBoxShadowBlur=t.shadowBlur),F(t,"shadowOffsetX")&&(r.textBoxShadowOffsetX=t.shadowOffsetX),F(t,"shadowOffsetY")&&(r.textBoxShadowOffsetY=t.shadowOffsetY),F(t,"textShadowColor")&&(r.textShadowColor=t.textShadowColor),F(t,"textShadowBlur")&&(r.textShadowBlur=t.textShadowBlur),F(t,"textShadowOffsetX")&&(r.textShadowOffsetX=t.textShadowOffsetX),F(t,"textShadowOffsetY")&&(r.textShadowOffsetY=t.textShadowOffsetY))}var Og={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},ov=Ie(Og);tn(nn,function(r,t){return r[t]=1,r},{});nn.join(", ");var qi=["","style","shape","extra"],va=ie();function Su(r,t,e,a,n){var i=r+"Animation",o=El(r,a,n)||{},s=va(t).userDuring;return o.duration>0&&(o.during=s?Z(mC,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=r),U(o,e[i]),o}function vC(r,t,e,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=e.isAnimationEnabled(),l=va(r),u=t.style;l.userDuring=t.during;var f={},c={};if(SC(r,t,c),r.type==="compound")for(var h=r.shape.paths,v=t.shape.paths,d=0;d<v.length;d++){var p=v[d];ss("shape",p,h[d])}else ss("shape",t,c),ss("extra",t,c);if(!i&&s&&(_C(r,t,f),sv("shape",r,t,f),sv("extra",r,t,f),xC(r,t,u,f)),c.style=u,dC(r,c,o),gC(r,t),s)if(i){var y={};w(qi,function(m){var _=m?t[m]:t;_&&_.enterFrom&&(m&&(y[m]=y[m]||{}),U(m?y[m]:y,_.enterFrom))});var g=Su("enter",r,t,e,n);g.duration>0&&r.animateFrom(y,g)}else pC(r,t,n||0,e,f);hC(r,t),u?r.dirty():r.markRedraw()}function hC(r,t){for(var e=va(r).leaveToProps,a=0;a<qi.length;a++){var n=qi[a],i=n?t[n]:t;i&&i.leaveTo&&(e||(e=va(r).leaveToProps={}),n&&(e[n]=e[n]||{}),U(n?e[n]:e,i.leaveTo))}}function xu(r,t,e,a){if(r){var n=r.parent,i=va(r).leaveToProps;if(i){var o=Su("update",r,t,e,0);o.done=function(){n&&n.remove(r)},r.animateTo(i,o)}else n&&n.remove(r)}}function ia(r){return r==="all"}function dC(r,t,e){var a=t.style;if(!r.isGroup&&a){if(e){r.useStyle({});for(var n=r.animators,i=0;i<n.length;i++){var o=n[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(a)}t&&(t.style=null,t&&r.attr(t),t.style=a)}function pC(r,t,e,a,n){if(n){var i=Su("update",r,t,a,e);i.duration>0&&r.animateFrom(n,i)}}function gC(r,t){F(t,"silent")&&(r.silent=t.silent),F(t,"ignore")&&(r.ignore=t.ignore),r instanceof hh&&F(t,"invisible")&&(r.invisible=t.invisible),r instanceof We&&F(t,"autoBatch")&&(r.autoBatch=t.autoBatch)}var dt={},yC={setTransform:function(r,t){return dt.el[r]=t,this},getTransform:function(r){return dt.el[r]},setShape:function(r,t){var e=dt.el,a=e.shape||(e.shape={});return a[r]=t,e.dirtyShape&&e.dirtyShape(),this},getShape:function(r){var t=dt.el.shape;if(t)return t[r]},setStyle:function(r,t){var e=dt.el,a=e.style;return a&&(a[r]=t,e.dirtyStyle&&e.dirtyStyle()),this},getStyle:function(r){var t=dt.el.style;if(t)return t[r]},setExtra:function(r,t){var e=dt.el.extra||(dt.el.extra={});return e[r]=t,this},getExtra:function(r){var t=dt.el.extra;if(t)return t[r]}};function mC(){var r=this,t=r.el;if(t){var e=va(t).userDuring,a=r.userDuring;if(e!==a){r.el=r.userDuring=null;return}dt.el=t,a(yC)}}function sv(r,t,e,a){var n=e[r];if(n){var i=t[r],o;if(i){var s=e.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),ia(l))U(o,i);else for(var u=Ae(l),f=0;f<u.length;f++){var c=u[f],h=i[c];o[c]=h}else if(ia(s)||ue(s,r)>=0){!o&&(o=a[r]={});for(var v=Ie(i),f=0;f<v.length;f++){var c=v[f],h=i[c];bC(n[c],h)&&(o[c]=h)}}}}}function ss(r,t,e){var a=t[r];if(a)for(var n=e[r]={},i=Ie(a),o=0;o<i.length;o++){var s=i[o];n[s]=ky(a[s])}}function _C(r,t,e){for(var a=t.transition,n=ia(a)?nn:Ae(a||[]),i=0;i<n.length;i++){var o=n[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];e[o]=s}}}function SC(r,t,e){for(var a=0;a<ov.length;a++){var n=ov[a],i=Og[n],o=t[n];o&&(e[i[0]]=o[0],e[i[1]]=o[1])}for(var a=0;a<nn.length;a++){var s=nn[a];t[s]!=null&&(e[s]=t[s])}}function xC(r,t,e,a){if(e){var n=r.style,i;if(n){var o=e.transition,s=t.transition;if(o&&!ia(o)){var l=Ae(o);!i&&(i=a.style={});for(var u=0;u<l.length;u++){var f=l[u],c=n[f];i[f]=c}}else if(r.getAnimationStyleProps&&(ia(s)||ia(o)||ue(s,"style")>=0)){var h=r.getAnimationStyleProps(),v=h?h.style:null;if(v){!i&&(i=a.style={});for(var d=Ie(e),u=0;u<d.length;u++){var f=d[u];if(v[f]){var c=n[f];i[f]=c}}}}}}}function bC(r,t){return Mn(r)?r!==t:r!=null&&isFinite(r)}var Bg=ie(),wC=["percent","easing","shape","style","extra"];function CC(r){r.stopAnimation("keyframe"),r.attr(Bg(r))}function Ng(r,t,e){if(!(!e.isAnimationEnabled()||!t)){if(z(t)){w(t,function(s){Ng(r,s,e)});return}var a=t.keyframes,n=t.duration;if(e&&n==null){var i=El("enter",e,0);n=i&&i.duration}if(!(!a||!n)){var o=Bg(r);w(qi,function(s){if(!(s&&!r[s])){var l;a.sort(function(u,f){return u.percent-f.percent}),w(a,function(u){var f=r.animators,c=s?u[s]:u;if(c){var h=Ie(c);if(s||(h=Me(h,function(p){return ue(wC,p)<0})),!!h.length){l||(l=r.animate(s,t.loop,!0),l.scope="keyframe");for(var v=0;v<f.length;v++)f[v]!==l&&f[v].targetName===l.targetName&&f[v].stopTracks(h);s&&(o[s]=o[s]||{});var d=s?o[s]:o;w(h,function(p){d[p]=((s?r[s]:r)||{})[p]}),l.whenWithKeys(n*u.percent,c,h,u.easing)}}}),l&&l.delay(t.delay||0).duration(n).start(t.easing)}})}}}var kt="emphasis",qt="normal",bu="blur",wu="select",ir=[qt,kt,bu,wu],ls={normal:["itemStyle"],emphasis:[kt,"itemStyle"],blur:[bu,"itemStyle"],select:[wu,"itemStyle"]},us={normal:["label"],emphasis:[kt,"label"],blur:[bu,"label"],select:[wu,"label"]},MC=["x","y"],TC="e\0\0",Qe={normal:{},emphasis:{},blur:{},select:{}},DC={cartesian2d:tC,geo:aC,single:iC,polar:sC,calendar:lC,matrix:uC};function dl(r){return r instanceof We}function pl(r){return r instanceof hh}function AC(r,t){t.copyTransform(r),pl(t)&&pl(r)&&(t.setStyle(r.style),t.z=r.z,t.z2=r.z2,t.zlevel=r.zlevel,t.invisible=r.invisible,t.ignore=r.ignore,dl(t)&&dl(r)&&t.setShape(r.shape))}var LC=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){this._progressiveEls=null;var o=this._data,s=e.getData(),l=this.group,u=lv(e,s,a,n);o||l.removeAll(),s.diff(o).add(function(c){fs(n,null,c,u(c,i),e,l,s)}).remove(function(c){var h=o.getItemGraphicEl(c);h&&xu(h,Pt(h).option,e)}).update(function(c,h){var v=o.getItemGraphicEl(h);fs(n,v,c,u(c,i),e,l,s)}).execute();var f=e.get("clip",!0)?og(e.coordinateSystem,!1,e):null;f?l.setClipPath(f):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(e,a,n){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,a,n,i,o){var s=a.getData(),l=lv(a,s,n,i),u=this._progressiveEls=[];function f(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}for(var c=e.start;c<e.end;c++){var h=fs(null,null,c,l(c,o),a,this.group,s);h&&(h.traverse(f),u.push(h))}},t.prototype.eachRendered=function(e){pa(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,a,n,i){var o=a.element;if(o==null||n.name===o)return!0;for(;(n=n.__hostTarget||n.parent)&&n!==this.group;)if(n.name===o)return!0;return!1},t.type="custom",t})(Oe);function Cu(r){var t=r.type,e;if(t==="path"){var a=r.shape,n=a.width!=null&&a.height!=null?{x:a.x||0,y:a.y||0,width:a.width,height:a.height}:null,i=Fg(a);e=fn(i,null,n,a.layout||"center"),Pt(e).customPathData=i}else if(t==="image")e=new Et({}),Pt(e).customImagePath=r.style.image;else if(t==="text")e=new he({});else if(t==="group")e=new pe;else if(t==="compoundPath"){var a=r.shape;if(!a||!a.paths){var o="";ke(o)}var s=X(a.paths,function(f){if(f.type==="path")return fn(f.shape.pathData,f,null);var c=ks(f.type);if(!c){var h="";ke(h)}return new c});e=new ih({shape:{paths:s}})}else{var l=ks(t);if(!l){var o="";ke(o)}e=new l}return Pt(e).customGraphicType=t,e.name=r.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function Mu(r,t,e,a,n,i,o){CC(t);var s=n&&n.normal.cfg;s&&t.setTextConfig(s),a&&a.transition==null&&(a.transition=MC);var l=a&&a.style;if(l){if(t.type==="text"){var u=l;F(u,"textFill")&&(u.fill=u.textFill),F(u,"textStroke")&&(u.stroke=u.textStroke)}var f=void 0,c=dl(t)?l.decal:null;r&&c&&(c.dirty=!0,f=Vi(c,r)),l.__decalPattern=f}if(pl(t)&&l){var f=l.__decalPattern;f&&(l.decal=f)}vC(t,a,i,{dataIndex:e,isInit:o,clearStyle:!0}),Ng(t,a.keyframeAnimation,i)}function Vg(r,t,e,a,n){var i=t.isGroup?null:t,o=n&&n[r].cfg;if(i){var s=i.ensureState(r);if(a===!1){var l=i.getState(r);l&&(l.style=null)}else s.style=a||null;o&&(s.textConfig=o),Ph(i)}}function IC(r,t,e){if(!r.isGroup){var a=r,n=e.currentZ,i=e.currentZLevel;a.z=n,a.zlevel=i;var o=t.z2;o!=null&&(a.z2=o||0);for(var s=0;s<ir.length;s++)PC(a,t,ir[s])}}function PC(r,t,e){var a=e===qt,n=a?t:ji(t,e),i=n?n.z2:null,o;i!=null&&(o=a?r:r.ensureState(e),o.z2=i||0)}function lv(r,t,e,a){var n=r.get("renderItem");if(typeof n=="string"){var i=HS(n);i&&(n=i)}var o=r.coordinateSystem,s={};o&&(s=o.prepareCustoms?o.prepareCustoms(o):DC[o.type](o));for(var l=ae({getWidth:a.getWidth,getHeight:a.getHeight,getZr:a.getZr,getDevicePixelRatio:a.getDevicePixelRatio,value:b,style:C,ordinalRawValue:x,styleEmphasis:T,visual:M,barLayout:P,currentSeriesIndices:L,font:E},s.api||{}),u={context:{},seriesId:r.id,seriesName:r.name,seriesIndex:r.seriesIndex,coordSys:s.coordSys,dataInsideLength:t.count(),encode:kC(r.getData()),itemPayload:r.get("itemPayload")||{}},f,c,h={},v={},d={},p={},y=0;y<ir.length;y++){var g=ir[y];d[g]=r.getModel(ls[g]),p[g]=r.getModel(us[g])}function m(I){return I===f?c||(c=t.getItemModel(I)):t.getItemModel(I)}function _(I,k){return t.hasItemOption?I===f?h[k]||(h[k]=m(I).getModel(ls[k])):m(I).getModel(ls[k]):d[k]}function S(I,k){return t.hasItemOption?I===f?v[k]||(v[k]=m(I).getModel(us[k])):m(I).getModel(us[k]):p[k]}return function(I,k){return f=I,c=null,h={},v={},n&&n(ae({dataIndexInside:I,dataIndex:t.getRawIndex(I),actionType:k?k.type:null},u),l)};function b(I,k){return k==null&&(k=f),t.getStore().get(t.getDimensionIndex(I||0),k)}function x(I,k){k==null&&(k=f),I=I||0;var N=t.getDimensionInfo(I);if(!N){var R=t.getDimensionIndex(I);return R>=0?t.getStore().get(R,k):void 0}var B=t.get(N.name,k),V=N&&N.ordinalMeta;return V?V.categories[B]:B}function C(I,k){k==null&&(k=f);var N=t.getItemVisual(k,"style"),R=N&&N.fill,B=N&&N.opacity,V=_(k,qt).getItemStyle();R!=null&&(V.fill=R),B!=null&&(V.opacity=B);var G={inheritColor:$(R)?R:O.color.neutral99},Y=S(k,qt),Q=Te(Y,null,G,!1,!0);Q.text=Y.getShallow("show")?J(r.getFormattedLabel(k,qt),Sn(t,k)):null;var ge=Ii(Y,G,!1);return A(I,V),V=nv(V,Q,ge),I&&D(V,I),V.legacy=!0,V}function T(I,k){k==null&&(k=f);var N=_(k,kt).getItemStyle(),R=S(k,kt),B=Te(R,null,null,!0,!0);B.text=R.getShallow("show")?ao(r.getFormattedLabel(k,kt),r.getFormattedLabel(k,qt),Sn(t,k)):null;var V=Ii(R,null,!0);return A(I,N),N=nv(N,B,V),I&&D(N,I),N.legacy=!0,N}function D(I,k){for(var N in k)F(k,N)&&(I[N]=k[N])}function A(I,k){I&&(I.textFill&&(k.textFill=I.textFill),I.textPosition&&(k.textPosition=I.textPosition))}function M(I,k){if(k==null&&(k=f),F(rv,I)){var N=t.getItemVisual(k,"style");return N?N[rv[I]]:null}if(F(Q1,I))return t.getItemVisual(k,I)}function P(I){if(o.type==="cartesian2d"){var k=o.getBaseAxis();return Gx(ae({axis:k},I))}}function L(){return e.getCurrentSeriesIndices()}function E(I){return Zh(I,e)}}function kC(r){var t={};return w(r.dimensions,function(e){var a=r.getDimensionInfo(e);if(!a.isExtraCoord){var n=a.coordDim,i=t[n]=t[n]||[];i[a.coordDimIndex]=r.getDimensionIndex(e)}}),t}function fs(r,t,e,a,n,i,o){if(!a){i.remove(t);return}var s=Tu(r,t,e,a,n,i);return s&&o.setItemGraphicEl(e,s),s&&tr(s,a.focus,a.blurScope,a.emphasisDisabled),s}function Tu(r,t,e,a,n,i){var o=-1,s=t;t&&zg(t,a,n)&&(o=ue(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=Cu(a),s&&AC(s,u)),a.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),a.tooltipDisabled&&(u.tooltipDisabled=!0),Qe.normal.cfg=Qe.normal.conOpt=Qe.emphasis.cfg=Qe.emphasis.conOpt=Qe.blur.cfg=Qe.blur.conOpt=Qe.select.cfg=Qe.select.conOpt=null,Qe.isLegacy=!1,EC(u,e,a,n,l,Qe),RC(u,e,a,n,l),Mu(r,u,e,a,Qe,n,l),F(a,"info")&&(Pt(u).info=a.info);for(var f=0;f<ir.length;f++){var c=ir[f];if(c!==qt){var h=ji(a,c),v=Du(a,h,c);Vg(c,u,h,v,Qe)}}return IC(u,a,n),a.type==="group"&&OC(r,u,e,a,n),o>=0?i.replaceAt(u,o):i.add(u),u}function zg(r,t,e){var a=Pt(r),n=t.type,i=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||n!=null&&n!==a.customGraphicType||n==="path"&&zC(i)&&Fg(i)!==a.customPathData||n==="image"&&F(o,"image")&&o.image!==a.customImagePath}function RC(r,t,e,a,n){var i=e.clipPath;if(i===!1)r&&r.getClipPath()&&r.removeClipPath();else if(i){var o=r.getClipPath();o&&zg(o,i,a)&&(o=null),o||(o=Cu(i),r.setClipPath(o)),Mu(null,o,t,i,null,a,n)}}function EC(r,t,e,a,n,i){if(!(r.isGroup||r.type==="compoundPath")){uv(e,null,i),uv(e,kt,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var f=r.getTextContent();if(o===!1)f&&r.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},f?f.clearStates():(f=Cu(o),r.setTextContent(f)),Mu(null,f,t,o,null,a,n);for(var c=o&&o.style,h=0;h<ir.length;h++){var v=ir[h];if(v!==qt){var d=i[v].conOpt;Vg(v,f,d,Du(o,d,v),null)}}c?f.dirty():f.markRedraw()}}}}function uv(r,t,e){var a=t?ji(r,t):r,n=t?Du(r,a,kt):r.style,i=r.type,o=a?a.textConfig:null,s=r.textContent,l=s?t?ji(s,t):s:null;if(n&&(e.isLegacy||fC(n,i,!!o,!!l))){e.isLegacy=!0;var u=cC(n,i,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var f=l;!f.type&&(f.type="text")}var c=t?e[t]:e.normal;c.cfg=o,c.conOpt=l}function ji(r,t){return t?r?r[t]:null:r}function Du(r,t,e){var a=t&&t.style;return a==null&&e===kt&&r&&(a=r.styleEmphasis),a}function OC(r,t,e,a,n){var i=a.children,o=i?i.length:0,s=a.$mergeChildren,l=s==="byName"||a.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){NC({api:r,oldChildren:t.children()||[],newChildren:i||[],dataIndex:e,seriesModel:n,group:t});return}u&&t.removeAll();for(var f=0;f<o;f++){var c=i[f],h=t.childAt(f);c?(c.ignore==null&&(c.ignore=!1),Tu(r,h,e,c,n,t)):h.ignore=!0}for(var v=t.childCount()-1;v>=f;v--){var d=t.childAt(v);BC(t,d,n)}}}function BC(r,t,e){t&&xu(t,Pt(r).option,e)}function NC(r){new pp(r.oldChildren,r.newChildren,fv,fv,r).add(cv).update(cv).remove(VC).execute()}function fv(r,t){var e=r&&r.name;return e??TC+t}function cv(r,t){var e=this.context,a=r!=null?e.newChildren[r]:null,n=t!=null?e.oldChildren[t]:null;Tu(e.api,n,e.dataIndex,a,e.seriesModel,e.group)}function VC(r){var t=this.context,e=t.oldChildren[r];e&&xu(e,Pt(e).option,t.seriesModel)}function Fg(r){return r&&(r.pathData||r.d)}function zC(r){return r&&(F(r,"pathData")||F(r,"d"))}function eD(r){r.registerChartView(LC),r.registerSeriesModel(J1)}var mr=ie(),vv=ee,cs=Z,FC=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,a,n){var i=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=a,!(!n&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,e,a);var f=u.graphicKey;f!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=f;var c=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new pe,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),a.getZr().add(s);else{var h=me(hv,e,c);this.updatePointerEl(s,u,h),this.updateLabelEl(s,u,h,e)}pv(s,e,!0),this._renderHandle(i)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var a=e.get("animation"),n=t.axis,i=n.type==="category",o=e.get("snap");if(!o&&!i)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(o){var l=_u(t).seriesDataCount,u=n.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(t,e,a,n,i){},r.prototype.createPointerEl=function(t,e,a,n){var i=e.pointer;if(i){var o=mr(t).pointerEl=new Uh[i.type](vv(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,n){if(e.label){var i=mr(t).labelEl=new he(vv(e.label));t.add(i),dv(i,n)}},r.prototype.updatePointerEl=function(t,e,a){var n=mr(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),a(n,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,a,n){var i=mr(t).labelEl;i&&(i.setStyle(e.label.style),a(i,{x:e.label.x,y:e.label.y}),dv(i,n))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,a=this._api.getZr(),n=this._handle,i=e.getModel("handle"),o=e.get("status");if(!i.get("show")||!o||o==="hide"){n&&a.remove(n),this._handle=null;return}var s;this._handle||(s=!0,n=this._handle=Nl(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){er(u.event)},onmousedown:cs(this._onHandleDragMove,this,0,0),drift:cs(this._onHandleDragMove,this),ondragend:cs(this._onHandleDragEnd,this)}),a.add(n)),pv(n,e,!1),n.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");z(l)||(l=[l,l]),n.scaleX=l[0]/2,n.scaleY=l[1]/2,go(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){hv(this._axisPointerModel,!e&&this._moveAnimation,this._handle,vs(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var a=this._handle;if(a){this._dragging=!0;var n=this.updateHandleTransform(vs(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,a.stopAnimation(),a.attr(vs(n)),mr(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),a=this._group,n=this._handle;e&&a&&(this._lastGraphicKey=null,a&&e.remove(a),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),Oi(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,a){return a=a||0,{x:t[a],y:t[1-a],width:e[a],height:e[1-a]}},r})();function hv(r,t,e,a){Gg(mr(e).lastProp,a)||(mr(e).lastProp=a,t?De(e,a,r):(e.stopAnimation(),e.attr(a)))}function Gg(r,t){if(K(r)&&K(t)){var e=!0;return w(t,function(a,n){e=e&&Gg(r[n],a)}),!!e}else return r===t}function dv(r,t){r[t.get(["label","show"])?"show":"hide"]()}function vs(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function pv(r,t,e){var a=t.get("z"),n=t.get("zlevel");r&&r.traverse(function(i){i.type!=="group"&&(a!=null&&(i.z=a),n!=null&&(i.zlevel=n),i.silent=e)})}function GC(r){var t=r.get("type"),e=r.getModel(t+"Style"),a;return t==="line"?(a=e.getLineStyle(),a.fill=null):t==="shadow"&&(a=e.getAreaStyle(),a.stroke=null),a}function HC(r,t,e,a,n){var i=e.get("value"),o=Hg(i,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=Ln(s.get("padding")||0),u=s.getFont(),f=lh(o,u),c=n.position,h=f.width+l[1]+l[3],v=f.height+l[0]+l[2],d=n.align;d==="right"&&(c[0]-=h),d==="center"&&(c[0]-=h/2);var p=n.verticalAlign;p==="bottom"&&(c[1]-=v),p==="middle"&&(c[1]-=v/2),WC(c,h,v,a);var y=s.get("backgroundColor");(!y||y==="auto")&&(y=t.get(["axisLine","lineStyle","color"])),r.label={x:c[0],y:c[1],style:Te(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function WC(r,t,e,a){var n=a.getWidth(),i=a.getHeight();r[0]=Math.min(r[0]+t,n)-t,r[1]=Math.min(r[1]+e,i)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Hg(r,t,e,a,n){r=t.scale.parse(r);var i=t.scale.getLabel({value:r},{precision:n.precision}),o=n.formatter;if(o){var s={value:Gi(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};w(a,function(l){var u=e.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,c=u&&u.getDataParams(f);c&&s.seriesData.push(c)}),$(o)?i=o.replace("{value}",i):j(o)&&(i=o(s))}return i}function Wg(r,t,e){var a=to();return fh(a,a,e.rotation),Ry(a,a,e.position),Qt([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function UC(r,t,e,a,n,i){var o=It.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=n.get(["label","margin"]),HC(t,a,n,i,{position:Wg(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function YC(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function ZC(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}var XC=(function(r){W(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,n,i,o){var s=n.axis,l=s.grid,u=i.get("type"),f=gv(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var h=GC(i),v=$C[u](s,c,f);v.style=h,e.graphicKey=v.type,e.pointer=v}var d=$i(l.getRect(),n);UC(a,e,d,n,i,o)},t.prototype.getHandleTransform=function(e,a,n){var i=$i(a.axis.grid.getRect(),a,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var o=Wg(a.axis,e,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,n,i){var o=n.axis,s=o.grid,l=o.getGlobalExtent(!0),u=gv(s,o).getOtherAxis(o).getGlobalExtent(),f=o.dim==="x"?0:1,c=[e.x,e.y];c[f]+=a[f],c[f]=Math.min(l[1],c[f]),c[f]=Math.max(l[0],c[f]);var h=(u[1]+u[0])/2,v=[h,h];v[f]=c[f];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:e.rotation,cursorPoint:v,tooltipOption:d[f]}},t})(FC);function gv(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var $C={line:function(r,t,e){var a=YC([t,e[0]],[t,e[1]],yv(r));return{type:"Line",subPixelOptimize:!0,shape:a}},shadow:function(r,t,e){var a=Math.max(1,r.getBandWidth()),n=e[1]-e[0];return{type:"Rect",shape:ZC([t-a/2,e[0]],[a,n],yv(r))}}};function yv(r){return r.dim==="x"?0:1}var KC=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:O.color.border,width:1,type:"dashed"},shadowStyle:{color:O.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:O.color.neutral00,padding:[5,7,5,7],backgroundColor:O.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:O.color.accent40,throttle:40}},t})(re),Lt=ie(),qC=w;function Ug(r,t,e){if(!be.node){var a=t.getZr();Lt(a).records||(Lt(a).records={}),jC(a,t);var n=Lt(a).records[r]||(Lt(a).records[r]={});n.handler=e}}function jC(r,t){if(Lt(r).initialized)return;Lt(r).initialized=!0,e("click",me(mv,"click")),e("mousemove",me(mv,"mousemove")),e("globalout",JC);function e(a,n){r.on(a,function(i){var o=eM(t);qC(Lt(r).records,function(s){s&&n(s,i,o.dispatchAction)}),QC(o.pendings,t)})}}function QC(r,t){var e=r.showTip.length,a=r.hideTip.length,n;e?n=r.showTip[e-1]:a&&(n=r.hideTip[a-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}function JC(r,t,e){r.handler("leave",null,e)}function mv(r,t,e,a){t.handler(r,e,a)}function eM(r){var t={showTip:[],hideTip:[]},e=function(a){var n=t[a.type];n?n.push(a):(a.dispatchAction=e,r.dispatchAction(a))};return{dispatchAction:e,pendings:t}}function gl(r,t){if(!be.node){var e=t.getZr(),a=(Lt(e).records||{})[r];a&&(Lt(e).records[r]=null)}}var tM=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=a.getComponent("tooltip"),o=e.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";Ug("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})})},t.prototype.remove=function(e,a){gl("axisPointer",a)},t.prototype.dispose=function(e,a){gl("axisPointer",a)},t.type="axisPointer",t})(He);function Yg(r,t){var e=[],a=r.seriesIndex,n;if(a==null||!(n=t.getSeriesByIndex(a)))return{point:[]};var i=n.getData(),o=Dr(i,r);if(o==null||o<0||z(o))return{point:[]};var s=i.getItemGraphicEl(o),l=n.coordinateSystem;if(n.getTooltipPosition)e=n.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),f=l.getOtherAxis(u),c=f.dim,h=u.dim,v=c==="x"||c==="radius"?1:0,d=i.mapDimension(h),p=[];p[v]=i.get(d,o),p[1-v]=i.get(i.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(i.getValues(X(l.dimensions,function(g){return i.mapDimension(g)}),o))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),e=[y.x+y.width/2,y.y+y.height/2]}return{point:e,el:s}}var _v=ie();function rM(r,t,e){var a=r.currTrigger,n=[r.x,r.y],i=r,o=r.dispatchAction||Z(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){yi(n)&&(n=Yg({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=yi(n),u=i.axesInfo,f=s.axesInfo,c=a==="leave"||yi(n),h={},v={},d={list:[],map:{}},p={showPointer:me(nM,v),showTooltip:me(iM,d)};w(s.coordSysMap,function(g,m){var _=l||g.containPoint(n);w(s.coordSysAxesInfo[m],function(S,b){var x=S.axis,C=uM(u,S);if(!c&&_&&(!u||C)){var T=C&&C.value;T==null&&!l&&(T=x.pointToData(n)),T!=null&&Sv(S,T,p,!1,h)}})});var y={};return w(f,function(g,m){var _=g.linkGroup;_&&!v[m]&&w(_.axesInfo,function(S,b){var x=v[b];if(S!==g&&x){var C=x.value;_.mapper&&(C=g.axis.scale.parse(_.mapper(C,xv(S),xv(g)))),y[g.key]=C}})}),w(y,function(g,m){Sv(f[m],g,p,!0,h)}),oM(v,f,h),sM(d,n,r,o),lM(f,o,e),h}}function Sv(r,t,e,a,n){var i=r.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=aM(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&n.seriesIndex==null&&U(n,s[0]),!a&&r.snap&&i.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function aM(r,t){var e=t.axis,a=e.dim,n=r,i=[],o=Number.MAX_VALUE,s=-1;return w(t.seriesModels,function(l,u){var f=l.getData().mapDimensionsAll(a),c,h;if(l.getAxisTooltipData){var v=l.getAxisTooltipData(f,r,e);h=v.dataIndices,c=v.nestestValue}else{if(h=l.indicesOfNearest(a,f[0],r,e.type==="category"?.5:null),!h.length)return;c=l.getData().get(f[0],h[0])}if(!(c==null||!isFinite(c))){var d=r-c,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,n=c,i.length=0),w(h,function(y){i.push({seriesIndex:l.seriesIndex,dataIndexInside:y,dataIndex:l.getData().getRawIndex(y)})}))}}),{payloadBatch:i,snapToValue:n}}function nM(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function iM(r,t,e,a){var n=e.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!n.length)){var l=t.coordSys.model,u=wn(l),f=r.map[u];f||(f=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(f)),f.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:n.slice()})}}function oM(r,t,e){var a=e.axesInfo=[];w(t,function(n,i){var o=n.axisPointerModel.option,s=r[i];s?(!n.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!n.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:n.axis.dim,axisIndex:n.axis.model.componentIndex,value:o.value})})}function sM(r,t,e,a){if(yi(t)||!r.list.length){a({type:"hideTip"});return}var n=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:n.dataIndexInside,dataIndex:n.dataIndex,seriesIndex:n.seriesIndex,dataByCoordSys:r.list})}function lM(r,t,e){var a=e.getZr(),n="axisPointerLastHighlights",i=_v(a)[n]||{},o=_v(a)[n]={};w(r,function(u,f){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&w(c.seriesDataIndices,function(h){var v=h.seriesIndex+" | "+h.dataIndex;o[v]=h})});var s=[],l=[];w(i,function(u,f){!o[f]&&l.push(u)}),w(o,function(u,f){!i[f]&&s.push(u)}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function uM(r,t){for(var e=0;e<(r||[]).length;e++){var a=r[e];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function xv(r){var t=r.axis.model,e={},a=e.axisDim=r.axis.dim;return e.axisIndex=e[a+"AxisIndex"]=t.componentIndex,e.axisName=e[a+"AxisName"]=t.name,e.axisId=e[a+"AxisId"]=t.id,e}function yi(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Zg(r){Pg.registerAxisPointerClass("CartesianAxisPointer",XC),r.registerComponentModel(KC),r.registerComponentView(tM),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!z(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=v1(t,e)}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},rM)}function tD(r){Xe(M1),Xe(Zg)}var fM=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a,n){var i=Er(e);r.prototype.init.apply(this,arguments),bv(e,i)},t.prototype.mergeOption=function(e){r.prototype.mergeOption.apply(this,arguments),bv(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.layoutMode="box",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:O.color.axisLine,width:1,type:"solid"}},itemStyle:{color:O.color.neutral00,borderWidth:1,borderColor:O.color.neutral10},dayLabel:{show:!0,firstDay:0,position:"start",margin:O.size.s,color:O.color.secondary},monthLabel:{show:!0,position:"start",margin:O.size.s,align:"center",formatter:null,color:O.color.secondary},yearLabel:{show:!0,position:null,margin:O.size.xl,formatter:null,color:O.color.quaternary,fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t})(re);function bv(r,t){var e=r.cellSize,a;z(e)?a=e:a=r.cellSize=[e,e],a.length===1&&(a[1]=a[0]);var n=X([0,1],function(i){return V0(t,i)&&(a[i]="auto"),a[i]!=null&&a[i]!=="auto"});Rt(r,t,{type:"box",ignoreSize:n})}var cM=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){var i=this.group;i.removeAll();var o=e.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=a.getLocaleModel();this._renderDayRect(e,s,i),this._renderLines(e,s,l,i),this._renderYearText(e,s,l,i),this._renderMonthText(e,u,l,i),this._renderWeekText(e,u,s,l,i)},t.prototype._renderDayRect=function(e,a,n){for(var i=e.coordinateSystem,o=e.getModel("itemStyle").getItemStyle(),s=i.getCellWidth(),l=i.getCellHeight(),u=a.start.time;u<=a.end.time;u=i.getNextNDay(u,1).time){var f=i.dataToCalendarLayout([u],!1).tl,c=new se({shape:{x:f[0],y:f[1],width:s,height:l},cursor:"default",style:o});n.add(c)}},t.prototype._renderLines=function(e,a,n,i){var o=this,s=e.coordinateSystem,l=e.getModel(["splitLine","lineStyle"]).getLineStyle(),u=e.get(["splitLine","show"]),f=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var c=a.start,h=0;c.time<=a.end.time;h++){d(c.formatedDate),h===0&&(c=s.getDateInfo(a.start.y+"-"+a.start.m));var v=c.date;v.setMonth(v.getMonth()+1),c=s.getDateInfo(v)}d(s.getNextNDay(a.end.time,1).formatedDate);function d(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToCalendarLayout([p],!1).tl);var y=o._getLinePointsOfOneWeek(e,p,n);o._tlpoints.push(y[0]),o._blpoints.push(y[y.length-1]),u&&o._drawSplitline(y,l,i)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,f,n),l,i),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,f,n),l,i)},t.prototype._getEdgesPoints=function(e,a,n){var i=[e[0].slice(),e[e.length-1].slice()],o=n==="horizontal"?0:1;return i[0][o]=i[0][o]-a/2,i[1][o]=i[1][o]+a/2,i},t.prototype._drawSplitline=function(e,a,n){var i=new or({z2:20,shape:{points:e},style:a});n.add(i)},t.prototype._getLinePointsOfOneWeek=function(e,a,n){for(var i=e.coordinateSystem,o=i.getDateInfo(a),s=[],l=0;l<7;l++){var u=i.getNextNDay(o.time,l),f=i.dataToCalendarLayout([u.time],!1);s[2*u.day]=f.tl,s[2*u.day+1]=f[n==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(e,a){return $(e)&&e?T0(e,a):j(e)?e(a):a.nameMap},t.prototype._yearTextPositionControl=function(e,a,n,i,o){var s=a[0],l=a[1],u=["center","bottom"];i==="bottom"?(l+=o,u=["center","top"]):i==="left"?s-=o:i==="right"?(s+=o,u=["center","top"]):l-=o;var f=0;return(i==="left"||i==="right")&&(f=Math.PI/2),{rotation:f,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(e,a,n,i){var o=e.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=n!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],f=(u[0][0]+u[1][0])/2,c=(u[0][1]+u[1][1])/2,h=n==="horizontal"?0:1,v={top:[f,u[h][1]],bottom:[f,u[1-h][1]],left:[u[1-h][0],c],right:[u[h][0],c]},d=a.start.y;+a.end.y>+a.start.y&&(d=d+"-"+a.end.y);var p=o.get("formatter"),y={start:a.start.y,end:a.end.y,nameMap:d},g=this._formatterLabel(p,y),m=new he({z2:30,style:Te(o,{text:g}),silent:o.get("silent")});m.attr(this._yearTextPositionControl(m,v[l],n,l,s)),i.add(m)}},t.prototype._monthTextPositionControl=function(e,a,n,i,o){var s="left",l="top",u=e[0],f=e[1];return n==="horizontal"?(f=f+o,a&&(s="center"),i==="start"&&(l="bottom")):(u=u+o,a&&(l="middle"),i==="start"&&(s="right")),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(e,a,n,i){var o=e.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),f=o.get("align"),c=[this._tlpoints,this._blpoints];(!s||$(s))&&(s&&(a=Bs(s)||a),s=a.get(["time","monthAbbr"])||[]);var h=u==="start"?0:1,v=n==="horizontal"?0:1;l=u==="start"?-l:l;for(var d=f==="center",p=o.get("silent"),y=0;y<c[h].length-1;y++){var g=c[h][y].slice(),m=this._firstDayOfMonth[y];if(d){var _=this._firstDayPoints[y];g[v]=(_[v]+c[0][y+1][v])/2}var S=o.get("formatter"),b=s[+m.m-1],x={yyyy:m.y,yy:(m.y+"").slice(2),MM:m.m,M:+m.m,nameMap:b},C=this._formatterLabel(S,x),T=new he({z2:30,style:U(Te(o,{text:C}),this._monthTextPositionControl(g,d,n,u,l)),silent:p});i.add(T)}}},t.prototype._weekTextPositionControl=function(e,a,n,i,o){var s="center",l="middle",u=e[0],f=e[1],c=n==="start";return a==="horizontal"?(u=u+i+(c?1:-1)*o[0]/2,s=c?"right":"left"):(f=f+i+(c?1:-1)*o[1]/2,l=c?"bottom":"top"),{x:u,y:f,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(e,a,n,i,o){var s=e.getModel("dayLabel");if(s.get("show")){var l=e.coordinateSystem,u=s.get("position"),f=s.get("nameMap"),c=s.get("margin"),h=l.getFirstDayOfWeek();if(!f||$(f)){f&&(a=Bs(f)||a);var v=a.get(["time","dayOfWeekShort"]);f=v||X(a.get(["time","dayOfWeekAbbr"]),function(x){return x[0]})}var d=l.getNextNDay(n.end.time,7-n.lweek).time,p=[l.getCellWidth(),l.getCellHeight()];c=ne(c,Math.min(p[1],p[0])),u==="start"&&(d=l.getNextNDay(n.start.time,-(7+n.fweek)).time,c=-c);for(var y=s.get("silent"),g=0;g<7;g++){var m=l.getNextNDay(d,g),_=l.dataToCalendarLayout([m.time],!1).center,S=g;S=Math.abs((g+h)%7);var b=new he({z2:30,style:U(Te(s,{text:f[S]}),this._weekTextPositionControl(_,i,u,c,p)),silent:y});o.add(b)}}},t.type="calendar",t})(He),hs=864e5,vM=(function(){function r(t,e,a){this.type="calendar",this.dimensions=r.dimensions,this.getDimensionsInfo=r.getDimensionsInfo,this._model=t,this._update(e,a)}return r.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},r.prototype.getRangeInfo=function(){return this._rangeInfo},r.prototype.getModel=function(){return this._model},r.prototype.getRect=function(){return this._rect},r.prototype.getCellWidth=function(){return this._sw},r.prototype.getCellHeight=function(){return this._sh},r.prototype.getOrient=function(){return this._orient},r.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},r.prototype.getDateInfo=function(t){t=Pr(t);var e=t.getFullYear(),a=t.getMonth()+1,n=a<10?"0"+a:""+a,i=t.getDate(),o=i<10?"0"+i:""+i,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:e+"",m:n,d:o,day:s,time:t.getTime(),formatedDate:e+"-"+n+"-"+o,date:t}},r.prototype.getNextNDay=function(t,e){return e=e||0,e===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+e),this.getDateInfo(t))},r.prototype._update=function(t,e){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var a=this._rangeInfo.weeks||1,n=["width","height"],i=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[a,7]:[7,a];w([0,1],function(c){f(i,c)&&(o[n[c]]=i[c]*s[c])});var l={width:e.getWidth(),height:e.getHeight()},u=this._rect=rt(o,l);w([0,1],function(c){f(i,c)||(i[c]=u[n[c]]/s[c])});function f(c,h){return c[h]!=null&&c[h]!=="auto"}this._sw=i[0],this._sh=i[1]},r.prototype.dataToPoint=function(t,e,a){a=a||[],z(t)&&(t=t[0]),e==null&&(e=!0);var n=this.getDateInfo(t),i=this._rangeInfo,o=n.formatedDate;if(e&&!(n.time>=i.start.time&&n.time<i.end.time+hs))return a[0]=a[1]=NaN,a;var s=n.day,l=this._getRangeInfo([i.start.time,o]).nthWeek;return this._orient==="vertical"?(a[0]=this._rect.x+s*this._sw+this._sw/2,a[1]=this._rect.y+l*this._sh+this._sh/2):(a[0]=this._rect.x+l*this._sw+this._sw/2,a[1]=this._rect.y+s*this._sh+this._sh/2),a},r.prototype.pointToData=function(t){var e=this.pointToDate(t);return e&&e.time},r.prototype.dataToLayout=function(t,e,a){a=a||{};var n=a.rect=a.rect||{},i=a.contentRect=a.contentRect||{},o=this.dataToPoint(t,e);return n.x=o[0]-this._sw/2,n.y=o[1]-this._sh/2,n.width=this._sw,n.height=this._sh,Ve.copy(i,n),vn(i,this._lineWidth/2,!0,!0),a},r.prototype.dataToCalendarLayout=function(t,e){var a=this.dataToPoint(t,e);return{center:a,tl:[a[0]-this._sw/2,a[1]-this._sh/2],tr:[a[0]+this._sw/2,a[1]-this._sh/2],br:[a[0]+this._sw/2,a[1]+this._sh/2],bl:[a[0]-this._sw/2,a[1]+this._sh/2]}},r.prototype.pointToDate=function(t){var e=Math.floor((t[0]-this._rect.x)/this._sw)+1,a=Math.floor((t[1]-this._rect.y)/this._sh)+1,n=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(a,e-1,n):this._getDateByWeeksAndDay(e,a-1,n)},r.prototype.convertToPixel=function(t,e,a){var n=ds(e);return n===this?n.dataToPoint(a):null},r.prototype.convertToLayout=function(t,e,a){var n=ds(e);return n===this?n.dataToLayout(a):null},r.prototype.convertFromPixel=function(t,e,a){var n=ds(e);return n===this?n.pointToData(a):null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.prototype._initRangeOption=function(){var t=this._model.get("range"),e;if(z(t)&&t.length===1&&(t=t[0]),z(t))e=t;else{var a=t.toString();if(/^\d{4}$/.test(a)&&(e=[a+"-01-01",a+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(a)){var n=this.getDateInfo(a),i=n.date;i.setMonth(i.getMonth()+1);var o=this.getNextNDay(i,-1);e=[n.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(a)&&(e=[a,a])}if(!e)return t;var s=this._getRangeInfo(e);return s.start.time>s.end.time&&e.reverse(),e},r.prototype._getRangeInfo=function(t){var e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],a;e[0].time>e[1].time&&(a=!0,e.reverse());var n=Math.floor(e[1].time/hs)-Math.floor(e[0].time/hs)+1,i=new Date(e[0].time),o=i.getDate(),s=e[1].date.getDate();i.setDate(o+n-1);var l=i.getDate();if(l!==s)for(var u=i.getTime()-e[1].time>0?1:-1;(l=i.getDate())!==s&&(i.getTime()-e[1].time)*u>0;)n-=u,i.setDate(l-u);var f=Math.floor((n+e[0].day+6)/7),c=a?-f+1:f-1;return a&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:n,weeks:f,nthWeek:c,fweek:e[0].day,lweek:e[1].day}},r.prototype._getDateByWeeksAndDay=function(t,e,a){var n=this._getRangeInfo(a);if(t>n.weeks||t===0&&e<n.fweek||t===n.weeks&&e>n.lweek)return null;var i=(t-1)*7-n.fweek+e,o=new Date(n.start.time);return o.setDate(+n.start.d+i),this.getDateInfo(o)},r.create=function(t,e){var a=[];return t.eachComponent("calendar",function(n){var i=new r(n,t,e);a.push(i),n.coordinateSystem=i}),t.eachComponent(function(n,i){ld({targetModel:i,coordSysType:"calendar",coordSysProvider:k0})}),a},r.dimensions=["time","value"],r})();function ds(r){var t=r.calendarModel,e=r.seriesModel,a=t?t.coordinateSystem:e?e.coordinateSystem:null;return a}function rD(r){r.registerComponentModel(fM),r.registerComponentView(cM),r.registerCoordinateSystem("calendar",vM)}var wv=["x","y","radius","angle","single"],hM=["cartesian2d","polar","singleAxis"];function dM(r){var t=r.get("coordinateSystem");return ue(hM,t)>=0}function jt(r){return r+"Axis"}function pM(r,t){var e=q(),a=[],n=q();r.eachComponent({mainType:"dataZoom",query:t},function(f){n.get(f.uid)||s(f)});var i;do i=!1,r.eachComponent("dataZoom",o);while(i);function o(f){!n.get(f.uid)&&l(f)&&(s(f),i=!0)}function s(f){n.set(f.uid,!0),a.push(f),u(f)}function l(f){var c=!1;return f.eachTargetAxis(function(h,v){var d=e.get(h);d&&d[v]&&(c=!0)}),c}function u(f){f.eachTargetAxis(function(c,h){(e.get(c)||e.set(c,[]))[h]=!0})}return a}function Xg(r){var t=r.ecModel,e={infoList:[],infoMap:q()};return r.eachTargetAxis(function(a,n){var i=t.getComponent(jt(a),n);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=e.infoMap.get(s);l||(l={model:o,axisModels:[]},e.infoList.push(l),e.infoMap.set(s,l)),l.axisModels.push(i)}}}),e}var ps=(function(){function r(){this.indexList=[],this.indexMap=[]}return r.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},r})(),Qi=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return t.prototype.init=function(e,a,n){var i=Cv(e);this.settledOption=i,this.mergeDefaultAndTheme(e,n),this._doInit(i)},t.prototype.mergeOption=function(e){var a=Cv(e);oe(this.option,e,!0),oe(this.settledOption,a,!0),this._doInit(a)},t.prototype._doInit=function(e){var a=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var n=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(a[i[0]]=n[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),a=this._targetAxisInfoMap=q(),n=this._fillSpecifiedTargetAxis(a);n?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(a,this._orient)),this._noTarget=!0,a.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var a=!1;return w(wv,function(n){var i=this.getReferringComponents(jt(n),sm);if(i.specified){a=!0;var o=new ps;w(i.models,function(s){o.add(s.componentIndex)}),e.set(n,o)}},this),a},t.prototype._fillAutoTargetAxisByOrient=function(e,a){var n=this.ecModel,i=!0;if(i){var o=a==="vertical"?"y":"x",s=n.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=n.findComponents({mainType:"singleAxis",filter:function(f){return f.get("orient",!0)===a}});l(s,"single")}function l(u,f){var c=u[0];if(c){var h=new ps;if(h.add(c.componentIndex),e.set(f,h),i=!1,f==="x"||f==="y"){var v=c.getReferringComponents("grid",Ne).models[0];v&&w(u,function(d){c.componentIndex!==d.componentIndex&&v===d.getReferringComponents("grid",Ne).models[0]&&h.add(d.componentIndex)})}}}i&&w(wv,function(u){if(i){var f=n.findComponents({mainType:jt(u),filter:function(h){return h.get("type",!0)==="category"}});if(f[0]){var c=new ps;c.add(f[0].componentIndex),e.set(u,c),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(a){!e&&(e=a)},this),e==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var a=this.ecModel.option;this.option.throttle=a.animation&&a.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var a=this._rangePropMode,n=this.get("rangeMode");w([["start","startValue"],["end","endValue"]],function(i,o){var s=e[i[0]]!=null,l=e[i[1]]!=null;s&&!l?a[o]="percent":!s&&l?a[o]="value":n?a[o]=n[o]:s&&(a[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(a,n){e==null&&(e=this.ecModel.getComponent(jt(a),n))},this),e},t.prototype.eachTargetAxis=function(e,a){this._targetAxisInfoMap.each(function(n,i){w(n.indexList,function(o){e.call(a,i,o)})})},t.prototype.getAxisProxy=function(e,a){var n=this.getAxisModel(e,a);if(n)return n.__dzAxisProxy},t.prototype.getAxisModel=function(e,a){var n=this._targetAxisInfoMap.get(e);if(n&&n.indexMap[a])return this.ecModel.getComponent(jt(e),a)},t.prototype.setRawRange=function(e){var a=this.option,n=this.settledOption;w([["start","startValue"],["end","endValue"]],function(i){(e[i[0]]!=null||e[i[1]]!=null)&&(a[i[0]]=n[i[0]]=e[i[0]],a[i[1]]=n[i[1]]=e[i[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var a=this.option;w(["start","startValue","end","endValue"],function(n){a[n]=e[n]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,a){if(e==null&&a==null){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataValueWindow()}else return this.getAxisProxy(e,a).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var a,n=this._targetAxisInfoMap.keys(),i=0;i<n.length;i++)for(var o=n[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;a||(a=u)}return a},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t})(re);function Cv(r){var t={};return w(["start","end","startValue","endValue","throttle"],function(e){r.hasOwnProperty(e)&&(t[e]=r[e])}),t}var $g=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n,i){this.dataZoomModel=e,this.ecModel=a,this.api=n},t.type="dataZoom",t})(He),Qr=w,Mv=_r,gM=(function(){function r(t,e,a,n){this._dimName=t,this._axisIndex=e,this.ecModel=n,this._dataZoomModel=a}return r.prototype.hostedBy=function(t){return this._dataZoomModel===t},r.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},r.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},r.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(e){if(dM(e)){var a=jt(this._dimName),n=e.getReferringComponents(a,Ne).models[0];n&&this._axisIndex===n.componentIndex&&t.push(e)}},this),t},r.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},r.prototype.getMinMaxSpan=function(){return ee(this._minMaxSpan)},r.prototype.calculateDataWindow=function(t){var e=this._dataExtent,a=this.getAxisModel(),n=a.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;Qr(["start","end"],function(h,v){var d=t[h],p=t[h+"Value"];i[v]==="percent"?(d==null&&(d=o[v]),p=n.parse(ce(d,o,e))):(u=!0,p=p==null?e[v]:n.parse(p),d=ce(p,e,o)),l[v]=p==null||isNaN(p)?e[v]:p,s[v]=d==null||isNaN(d)?o[v]:d}),Mv(l),Mv(s);var f=this._minMaxSpan;u?c(l,s,e,o,!1):c(s,l,o,e,!0);function c(h,v,d,p,y){var g=y?"Span":"ValueSpan";ca(0,h,d,"all",f["min"+g],f["max"+g]);for(var m=0;m<2;m++)v[m]=ce(h[m],d,p,!0),y&&(v[m]=n.parse(v[m]))}return{valueWindow:l,percentWindow:s}},r.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=yM(this,this._dimName,e),this._updateMinMaxSpan();var a=this.calculateDataWindow(t.settledOption);this._valueWindow=a.valueWindow,this._percentWindow=a.percentWindow,this._setAxisModel()}},r.prototype.filterData=function(t,e){if(t!==this._dataZoomModel)return;var a=this._dimName,n=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;Qr(n,function(l){var u=l.getData(),f=u.mapDimensionsAll(a);if(f.length){if(i==="weakFilter"){var c=u.getStore(),h=X(f,function(v){return u.getDimensionIndex(v)},u);u.filterSelf(function(v){for(var d,p,y,g=0;g<f.length;g++){var m=c.get(h[g],v),_=!isNaN(m),S=m<o[0],b=m>o[1];if(_&&!S&&!b)return!0;_&&(y=!0),S&&(d=!0),b&&(p=!0)}return y&&d&&p})}else Qr(f,function(v){if(i==="empty")l.setData(u=u.map(v,function(p){return s(p)?p:NaN}));else{var d={};d[v]=o,u.selectRange(d)}});Qr(f,function(v){u.setApproximateExtent(o,v)})}});function s(l){return l>=o[0]&&l<=o[1]}},r.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,a=this._dataExtent;Qr(["min","max"],function(n){var i=e.get(n+"Span"),o=e.get(n+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=ce(a[0]+o,a,[0,100],!0):i!=null&&(o=ce(i,[0,100],a,!0)-a[0]),t[n+"Span"]=i,t[n+"ValueSpan"]=o},this)},r.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,a=this._valueWindow;if(e){var n=ph(a,[0,500]);n=Math.min(n,20);var i=t.axis.scale.rawExtentInfo;e[0]!==0&&i.setDeterminedMinMax("min",+a[0].toFixed(n)),e[1]!==100&&i.setDeterminedMinMax("max",+a[1].toFixed(n)),i.freeze()}},r})();function yM(r,t,e){var a=[1/0,-1/0];Qr(e,function(o){fb(a,o.getData(),t)});var n=r.getAxisModel(),i=kp(n.axis.scale,n,a).calculate();return[i.min,i.max]}var mM={getTargetSeries:function(r){function t(n){r.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=r.getComponent(jt(o),s);n(o,s,l,i)})})}t(function(n,i,o,s){o.__dzAxisProxy=null});var e=[];t(function(n,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new gM(n,i,s,r),e.push(o.__dzAxisProxy))});var a=q();return w(e,function(n){w(n.getTargetSeriesModels(),function(i){a.set(i.uid,i)})}),a},overallReset:function(r,t){r.eachComponent("dataZoom",function(e){e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).reset(e)}),e.eachTargetAxis(function(a,n){e.getAxisProxy(a,n).filterData(e,t)})}),r.eachComponent("dataZoom",function(e){var a=e.findRepresentativeAxisProxy();if(a){var n=a.getDataPercentWindow(),i=a.getDataValueWindow();e.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}};function _M(r){r.registerAction("dataZoom",function(t,e){var a=pM(e,t);w(a,function(n){n.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Tv=!1;function Kg(r){Tv||(Tv=!0,r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,mM),_M(r),r.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function SM(r,t){var e=Ln(t.get("padding")),a=t.getItemStyle(["color","opacity"]);a.fill=t.get("backgroundColor");var n=new se({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:a,silent:!0,z2:-1});return n}var xM=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:O.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:O.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:O.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:O.color.tertiary,fontSize:14}},t})(re);function qg(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function jg(r){if(be.domSupported){for(var t=document.documentElement.style,e=0,a=r.length;e<a;e++)if(r[e]in t)return r[e]}}var Qg=jg(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),bM=jg(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Jg(r,t){if(!r)return t;t=id(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function wM(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var CM=Jg(bM,"transition"),Au=Jg(Qg,"transform"),MM="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(be.transform3dSupported?"will-change:transform;":"");function TM(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function DM(r,t,e){if(!$(e)||e==="inside")return"";var a=r.get("backgroundColor"),n=r.get("borderWidth");t=Ar(t);var i=TM(e),o=Math.max(Math.round(n)*1.5,6),s="",l=Au+":",u;ue(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var f=u*Math.PI/180,c=o+n,h=c*Math.abs(Math.cos(f))+c*Math.abs(Math.sin(f)),v=Math.round(((h-Math.SQRT2*n)/2+Math.SQRT2*n-(h-c)/2)*100)/100;s+=";"+i+":-"+v+"px";var d=t+" solid "+n+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'<div style="'+p.join("")+'"></div>'}function AM(r,t,e){var a="cubic-bezier(0.23,1,0.32,1)",n="",i="";return e&&(n=" "+r/2+"s "+a,i="opacity"+n+",visibility"+n),t||(n=" "+r+"s "+a,i+=(i.length?",":"")+(be.transformSupported?""+Au+n:",left"+n+",top"+n)),CM+":"+i}function Dv(r,t,e){var a=r.toFixed(0)+"px",n=t.toFixed(0)+"px";if(!be.transformSupported)return e?"top:"+n+";left:"+a+";":[["top",n],["left",a]];var i=be.transform3dSupported,o="translate"+(i?"3d":"")+"("+a+","+n+(i?",0":"")+")";return e?"top:0;left:0;"+Au+":"+o+";":[["top",0],["left",0],[Qg,o]]}function LM(r){var t=[],e=r.get("fontSize"),a=r.getTextColor();a&&t.push("color:"+a),t.push("font:"+r.getFont());var n=J(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+n+"px");var i=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+i),w(["decoration","align"],function(u){var f=r.get(u);f&&t.push("text-"+u+":"+f)}),t.join(";")}function IM(r,t,e,a){var n=[],i=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),f=r.get("shadowOffsetY"),c=r.getModel("textStyle"),h=Bd(r,"html"),v=u+"px "+f+"px "+s+"px "+l;return n.push("box-shadow:"+v),t&&i>0&&n.push(AM(i,e,a)),o&&n.push("background-color:"+o),w(["width","color","radius"],function(d){var p="border-"+d,y=id(p),g=r.get(y);g!=null&&n.push(p+":"+g+(d==="color"?"":"px"))}),n.push(LM(c)),h!=null&&n.push("padding:"+Ln(h).join("px ")+"px"),n.join(";")+";"}function Av(r,t,e,a,n){var i=t&&t.painter;if(e){var o=i&&i.getViewportRoot();o&&Oy(r,o,e,a,n)}else{r[0]=a,r[1]=n;var s=i&&i.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var PM=(function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,be.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var n=this._zr=t.getZr(),i=e.appendTo,o=i&&($(i)?document.querySelector(i):Nu(i)?i:j(i)&&i(t.getDom()));Av(this._styleCoord,n,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(a),this._api=t,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=n.handler,f=n.painter.getViewportRoot();Ey(f,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),a=wM(e,"position"),n=e.style;n.position!=="absolute"&&a!=="absolute"&&(n.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,n=a.style,i=this._styleCoord;a.innerHTML?n.cssText=MM+IM(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+Dv(i[0],i[1],!0)+("border-color:"+Ar(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):n.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,a,n,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if($(i)&&a.get("trigger")==="item"&&!qg(a)&&(s=DM(a,n,i)),$(t))o.innerHTML=t+s;else if(t){o.innerHTML="",z(t)||(t=[t]);for(var l=0;l<t.length;l++)Nu(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(this.el){var a=this._styleCoord;if(Av(a,this._zr,this._container,t,e),a[0]!=null&&a[1]!=null){var n=this.el.style,i=Dv(a[0],a[1]);w(i,function(o){n[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",be.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Z(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;By(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var a=e.parentNode;a&&a.removeChild(e)}this.el=this._container=null},r})(),kM=(function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Iv(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,a,n,i){var o=this;K(t)&&ke(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new he({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:n,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:Bd(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),w(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),w(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect(),a=Lv(t.style);return[e.width+a.left+a.right,e.height+a.top+a.bottom]},r.prototype.moveTo=function(t,e){var a=this.el;if(a){var n=this._styleCoord;Iv(n,this._zr,t,e),t=n[0],e=n[1];var i=a.style,o=Xt(i.borderWidth||0),s=Lv(i);a.x=t+o+s.left,a.y=e+o+s.top,a.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Z(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function Xt(r){return Math.max(0,r)}function Lv(r){var t=Xt(r.shadowBlur||0),e=Xt(r.shadowOffsetX||0),a=Xt(r.shadowOffsetY||0);return{left:Xt(t-e),right:Xt(t+e),top:Xt(t-a),bottom:Xt(t+a)}}function Iv(r,t,e,a){r[0]=e,r[1]=a,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var RM=new se({shape:{x:-1,y:-1,width:2,height:2}}),EM=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){if(!(be.node||!a.getDom())){var n=e.getComponent("tooltip"),i=this._renderMode=um(n.get("renderMode"));this._tooltipContent=i==="richText"?new kM(a):new PM(a,{appendTo:n.get("appendToBody",!0)?"body":n.get("appendTo",!0)})}},t.prototype.render=function(e,a,n){if(!(be.node||!n.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=a,this._api=n;var i=this._tooltipContent;i.update(e),i.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?go(this,"_updatePosition",50,"fixRate"):Oi(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,a=e.get("triggerOn");Ug("itemTooltip",this._api,Z(function(n,i,o){a!=="none"&&(a.indexOf(n)>=0?this._tryShow(i,o):n==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,a=this._ecModel,n=this._api,i=e.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&o.manuallyShowTip(e,a,n,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,a,n,i){if(!(i.from===this.uid||be.node||!n.getDom())){var o=Pv(i,n);this._ticket="";var s=i.dataByCoordSys,l=VM(i,a,n);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var f=RM;f.x=i.x,f.y=i.y,f.update(),te(f).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:f},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(e,a,n,i))return;var c=Yg(i,a),h=c.point[0],v=c.point[1];h!=null&&v!=null&&this._tryShow({offsetX:h,offsetY:v,target:c.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(e,a,n,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(Pv(i,n))},t.prototype._manuallyAxisShowTip=function(e,a,n,i){var o=i.seriesIndex,s=i.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var f=u.getData(),c=Na([f.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return n.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(e,a){var n=e.target,i=this._tooltipModel;if(i){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(n){var s=te(n);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;ea(n,function(f){if(f.tooltipDisabled)return l=u=null,!0;l||u||(te(f).dataIndex!=null?l=f:te(f).tooltipConfig!=null&&(u=f))},!0),l?this._showSeriesItemTooltip(e,l,a):u?this._showComponentItemTooltip(e,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._hide(a)}},t.prototype._showOrMove=function(e,a){var n=e.get("showDelay");a=Z(a,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(a,n):a()},t.prototype._showAxisTooltip=function(e,a){var n=this._ecModel,i=this._tooltipModel,o=[a.offsetX,a.offsetY],s=Na([a.tooltipOption],i),l=this._renderMode,u=[],f=Lr("section",{blocks:[],noHeader:!0}),c=[],h=new Oo;w(e,function(m){w(m.dataByAxis,function(_){var S=n.getComponent(_.axisDim+"Axis",_.axisIndex),b=_.value;if(!(!S||b==null)){var x=Hg(b,S.axis,n,_.seriesDataIndices,_.valueLabelOpt),C=Lr("section",{header:x,noHeader:!Tn(x),sortBlocks:!0,blocks:[]});f.blocks.push(C),w(_.seriesDataIndices,function(T){var D=n.getSeriesByIndex(T.seriesIndex),A=T.dataIndexInside,M=D.getDataParams(A);if(!(M.dataIndex<0)){M.axisDim=_.axisDim,M.axisIndex=_.axisIndex,M.axisType=_.axisType,M.axisId=_.axisId,M.axisValue=Gi(S.axis,{value:b}),M.axisValueLabel=x,M.marker=h.makeTooltipMarker("item",Ar(M.color),l);var P=Af(D.formatTooltip(A,!0,null)),L=P.frag;if(L){var E=Na([D],i).get("valueFormatter");C.blocks.push(E?U({valueFormatter:E},L):L)}P.text&&c.push(P.text),u.push(M)}})}})}),f.blocks.reverse(),c.reverse();var v=a.position,d=s.get("order"),p=Ef(f,h,l,d,n.get("useUTC"),s.get("textStyle"));p&&c.unshift(p);var y=l==="richText"?`
8
8
 
9
- `:"<br/>",g=c.join(y);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(e,a,n){var i=this._ecModel,o=te(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,d=e.positionDefault,p=Na([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),y=p.get("trigger");if(!(y!=null&&y!=="item")){var g=u.getDataParams(f,c),m=new Oo;g.marker=m.makeTooltipMarker("item",Ar(g.color),v);var _=Lf(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,C=x?Of(b?U({valueFormatter:b},x):x,m,v,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,C,g,T,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,n){var i=this._renderMode==="html",o=te(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if($(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=ee(l),l.content=Ze(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var v=e.positionDefault,d=Na(c,this._tooltipModel,v?{position:v}:null),p=d.get("content"),y=Math.random()+"",g=new Oo;this._showOrMove(d,function(){var m=ee(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,y,e.offsetX,e.offsetY,e.position,a,g)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,n,i,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var v=a,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor"),e.get("defaultBorderColor",!0)),p=d.color;if(h)if($(h)){var y=e.ecModel.get("useUTC"),g=z(n)?n[0]:n,m=g&&g.axisType&&g.axisType.indexOf("time")>=0;v=h,m&&(v=co(g.axisValue,v,y)),v=sd(v,n,!0)}else if(j(h)){var _=Z(function(S,b){S===this._ticket&&(c.setContent(b,f,e,p,l),this._updatePosition(e,l,o,s,c,n,u))},this);this._ticket=i,v=h(n,i,_)}else v=h;c.setContent(v,f,e,p,l),c.show(e,p),this._updatePosition(e,l,o,s,c,n,u)}},t.prototype._getNearestPoint=function(e,a,n,i,o){if(n==="axis"||z(a))return{color:i||o};if(!z(a))return{color:i||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||e.get("position");var c=o.getSize(),h=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),j(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),z(a))n=ne(a[0],u),i=ne(a[1],f);else if(K(a)){var p=a;p.width=c[0],p.height=c[1];var y=rt(p,{width:u,height:f});n=y.x,i=y.y,h=null,v=null}else if($(a)&&l){var g=VM(a,d,c,e.get("borderWidth"));n=g[0],i=g[1]}else{var g=BM(n,i,o,u,f,h?null:20,v?null:20);n=g[0],i=g[1]}if(h&&(n-=Rv(h)?c[0]/2:h==="right"?c[0]:0),v&&(i-=Rv(v)?c[1]/2:v==="bottom"?c[1]:0),jg(e)){var g=NM(n,i,o,u,f);n=g[0],i=g[1]}o.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===e.length;return o&&w(n,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&w(u,function(h,v){var d=c[v]||{},p=h.seriesDataIndices||[],y=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===y.length,o&&w(p,function(g,m){var _=y[m];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),i&&w(h.seriesDataIndices,function(g){var m=g.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,a){be.node||!a.getDom()||(Oi(this,"_updatePosition"),this._tooltipContent.dispose(),yl("itemTooltip",a))},t.type="tooltip",t})(He);function Na(r,t,e){var a=t.ecModel,n;e?(n=new ye(e,a,a),n=new ye(t.option,n,a)):n=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof ye&&(o=o.get("tooltip",!0)),$(o)&&(o={formatter:o}),o&&(n=new ye(o,n,a)))}return n}function kv(r,t){return r.dispatchAction||Z(t.dispatchAction,t)}function BM(r,t,e,a,n,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function NM(r,t,e,a,n){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function VM(r,t,e,a){var n=e[0],i=e[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-n/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+f+o;break;case"left":s=t.x-n-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function Rv(r){return r==="center"||r==="middle"}function zM(r,t,e){var a=Dl(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=da(t,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=te(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function nD(r){Xe(Xg),r.registerComponentModel(bM),r.registerComponentView(OM),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},xt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},xt)}var Ev=w;function Ov(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function Bv(r,t,e){var a={};return Ev(t,function(i){var o=a[i]=n();Ev(r[i],function(s,l){if(ze.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new ze(u),l==="opacity"&&(u=ee(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new ze(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function FM(r,t,e){var a;w(e,function(n){t.hasOwnProperty(n)&&Ov(t[n])&&(a=!0)}),a&&w(e,function(n){t.hasOwnProperty(n)&&Ov(t[n])?r[n]=ee(t[n]):delete r[n]})}function GM(r,t,e,a){var n={};return w(r,function(i){var o=ze.prepareVisualTypes(t[i]);n[i]=o}),{progress:function(o,s){var l;a!=null&&(l=s.getDimensionIndex(a));function u(b){return Zd(s,c,b)}function f(b,x){TS(s,c,b,x)}for(var c,h=s.getStore();(c=o.next())!=null;){var v=s.getRawDataItem(c);if(!(v&&v.visualMap===!1))for(var d=a!=null?h.get(l,c):c,p=e(d),y=t[p],g=n[p],m=0,_=g.length;m<_;m++){var S=g[m];y[S]&&y[S].applyVisual(d,u,f)}}}}}var HM=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:O.size.m,backgroundColor:O.color.transparent,borderColor:O.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:O.color.primary},subtextStyle:{fontSize:12,color:O.color.quaternary}},t})(re),WM=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=J(e.get("textBaseline"),e.get("textVerticalAlign")),f=new he({style:Te(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=e.get("subtext"),v=new he({style:Te(s,{text:h,fill:s.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),y=e.get("triggerEvent",!0);f.silent=!d&&!y,v.silent=!p&&!y,d&&f.on("click",function(){ff(d,"_"+e.get("target"))}),p&&v.on("click",function(){ff(p,"_"+e.get("subtarget"))}),te(f).eventData=te(v).eventData=y?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(f),h&&i.add(v);var g=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=g.width,m.height=g.height;var _=Rr(e,n),S=rt(m,_.refContainer,e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),v.setStyle(b),g=i.getBoundingRect();var x=S.margin,C=e.getItemStyle(["color","opacity"]);C.fill=e.get("backgroundColor");var T=new se({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:e.get("borderRadius")},style:C,subPixelOptimize:!0,silent:!0});i.add(T)}},t.type="title",t})(He);function iD(r){r.registerComponentModel(HM),r.registerComponentView(WM)}var UM=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},ml=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),this._updateSelector(e)},t.prototype._updateSelector=function(e){var a=e.selector,n=this.ecModel;a===!0&&(a=e.selector=["all","inverse"]),z(a)&&w(a,function(i,o){$(i)&&(i={type:i}),a[o]=oe(i,UM(n,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var a=[],n=[];e.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,h=c.getAllNames();e.isSeriesFiltered(l)||(n=n.concat(h)),h.length?a=a.concat(h):f=!0}else f=!0;f&&Tl(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=q(),s=X(i,function(l){return($(l)||ve(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new ye(l,this,this.ecModel))},this);this._data=Me(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var a=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;w(i,function(o){a[o.get("name")]=!1})}a[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var a=this.option.selected;a.hasOwnProperty(e)||(a[e]=!0),this[a[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,a=this.option.selected;w(e,function(n){a[n.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,a=this.option.selected;w(e,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},t.prototype.isSelected=function(e){var a=this.option.selected;return!(a.hasOwnProperty(e)&&!a[e])&&ue(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:O.size.m,align:"auto",backgroundColor:O.color.transparent,borderColor:O.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:O.color.disabled,inactiveBorderColor:O.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:O.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:O.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:O.color.tertiary,borderWidth:1,borderColor:O.color.border},emphasis:{selectorLabel:{show:!0,color:O.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(re),qr=me,_l=w,si=pe,ty=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new si),this.group.add(this._selectorGroup=new si),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,a,n,l,s,u);var f=Rr(e,n).refContainer,c=e.getBoxLayoutParams(),h=e.get("padding"),v=rt(c,f,h),d=this.layoutInner(e,o,v,i,l,u),p=rt(ae({width:d.width,height:d.height},c),f,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=xM(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this.getContentGroup(),f=q(),c=a.get("selectedMode"),h=a.get("triggerEvent"),v=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),_l(a.getData(),function(d,p){var y=this,g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
10
- `)){var m=new si;m.newline=!0,u.add(m);return}var _=n.getSeriesByName(g)[0];if(!f.get(g))if(_){var S=_.getData(),b=S.getVisual("legendLineStyle")||{},x=S.getVisual("legendIcon"),C=S.getVisual("style"),T=this._createItem(_,g,p,d,a,e,b,C,x,c,i);T.on("click",qr(Nv,g,null,i,v)).on("mouseover",qr(Sl,_.name,null,i,v)).on("mouseout",qr(xl,_.name,null,i,v)),n.ssr&&T.eachChild(function(D){var A=te(D);A.seriesIndex=_.seriesIndex,A.dataIndex=p,A.ssrType="legend"}),h&&T.eachChild(function(D){y.packEventData(D,a,_,p,g)}),f.set(g,!0)}else n.eachRawSeries(function(D){var A=this;if(!f.get(g)&&D.legendVisualProvider){var M=D.legendVisualProvider;if(!M.containName(g))return;var P=M.indexOfName(g),L=M.getItemVisual(P,"style"),E=M.getItemVisual(P,"legendIcon"),I=hh(L.fill);I&&I[3]===0&&(I[3]=.2,L=U(U({},L),{fill:li(I,"rgba")}));var k=this._createItem(D,g,p,d,a,e,{},L,E,c,i);k.on("click",qr(Nv,null,g,i,v)).on("mouseover",qr(Sl,null,g,i,v)).on("mouseout",qr(xl,null,g,i,v)),n.ssr&&k.eachChild(function(N){var R=te(N);R.seriesIndex=D.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),h&&k.eachChild(function(N){A.packEventData(N,a,D,p,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},t.prototype.packEventData=function(e,a,n,i,o){var s={componentType:"legend",componentIndex:a.componentIndex,dataIndex:i,value:o,seriesIndex:n.seriesIndex};te(e).eventData=s},t.prototype._createSelector=function(e,a,n,i,o){var s=this.getSelectorGroup();_l(e,function(u){var f=u.type,c=new he({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(c);var h=a.getModel("selectorLabel"),v=a.getModel(["emphasis","selectorLabel"]);kr(c,{normal:h,emphasis:v},{defaultText:u.title}),Ai(c)})},t.prototype._createItem=function(e,a,n,i,o,s,l,u,f,c,h){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),y=o.isSelected(a),g=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=YM(f,i,l,u,v,y,h),b=new si,x=i.getModel("textStyle");if(j(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:g,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var C=_==="inherit"&&e.getData().getVisual("symbol")?g==="inherit"?e.getData().getVisual("symbolRotate"):g:0;b.add(ZM({itemWidth:d,itemHeight:p,icon:f,iconRotate:C,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,D=s,A=o.get("formatter"),M=a;$(A)&&A?M=A.replace("{name}",a??""):j(A)&&(M=A(a));var P=y?x.getTextColor():i.get("inactiveColor");b.add(new he({style:Te(x,{text:M,x:T,y:p/2,fill:P,align:D,verticalAlign:"middle"},{inheritColor:P})}));var L=new se({shape:b.getBoundingRect(),style:{fill:"transparent"}}),E=i.getModel("tooltip");return E.get("show")&&lo({el:L,componentModel:o,itemName:a,itemTooltipOption:E.option}),b.add(L),b.eachChild(function(I){I.silent=!0}),L.silent=!c,this.getContentGroup().add(b),Ai(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();na(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){na("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,y=p===0?"width":"height",g=p===0?"height":"width",m=p===0?"y":"x";s==="end"?v[p]+=f[y]+d:c[p]+=h[y]+d,v[1-p]+=f[g]/2-h[g]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[y]=f[y]+d+h[y],_[g]=Math.max(f[g],h[g]),_[m]=Math.min(0,h[m]+v[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(He);function YM(r,t,e,a,n,i,o){function s(y,g){y.lineWidth==="auto"&&(y.lineWidth=g.lineWidth>0?2:0),_l(y,function(m,_){y[_]==="inherit"&&(y[_]=g[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?a.decal:Vi(c,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:e).opacity),s(u,a);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),v.stroke==="auto"&&(v.stroke=a.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function ZM(r){var t=r.icon||"roundRect",e=at(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill=O.color.neutral00,e.style.lineWidth=2),e}function Nv(r,t,e,a){xl(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Sl(r,t,e,a)}function ry(r){for(var t=r.getZr().storage.getDisplayList(),e,a=0,n=t.length;a<n&&!(e=t[a].states.emphasis);)a++;return e&&e.hoverLayer}function Sl(r,t,e,a){ry(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:a})}function xl(r,t,e,a){ry(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:a})}function XM(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var a=0;a<t.length;a++)if(!t[a].isSelected(e.name))return!1;return!0})}function Va(r,t,e){var a=r==="allSelect"||r==="inverseSelect",n={},i=[];e.eachComponent({mainType:"legend",query:t},function(s){a?s[r]():s[r](t.name),Vv(s,n),i.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){w(n,function(l,u){s[l?"select":"unSelect"](u)}),Vv(s,o)}),a?{selected:o,legendIndex:i}:{name:t.name,selected:o}}function Vv(r,t){var e=t||{};return w(r.getData(),function(a){var n=a.get("name");if(!(n===`
11
- `||n==="")){var i=r.isSelected(n);F(e,n)?e[n]=e[n]&&i:e[n]=i}}),e}function $M(r){r.registerAction("legendToggleSelect","legendselectchanged",me(Va,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",me(Va,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",me(Va,"inverseSelect")),r.registerAction("legendSelect","legendselected",me(Va,"select")),r.registerAction("legendUnSelect","legendunselected",me(Va,"unSelect"))}function ay(r){r.registerComponentModel(ml),r.registerComponentView(ty),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,XM),r.registerSubTypeDefaulter("legend",function(){return"plain"}),$M(r)}var KM=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,a,n){var i=Er(e);r.prototype.init.call(this,e,a,n),zv(this,e,i)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),zv(this,this.option,e)},t.type="legend.scroll",t.defaultOption=ya(ml.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:O.color.accent50,pageIconInactiveColor:O.color.accent10,pageIconSize:15,pageTextStyle:{color:O.color.tertiary},animationDurationUpdate:800}),t})(ml);function zv(r,t,e){var a=r.getOrient(),n=[1,1];n[a.index]=0,Rt(t,e,{type:"box",ignoreSize:!!n})}var Fv=pe,gs=["width","height"],ys=["x","y"],qM=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new Fv),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Fv)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,e,a,n,i,o,s,l);var f=this._controllerGroup,c=a.get("pageIconSize",!0),h=z(c)?c:[c,c];d("pagePrev",0);var v=a.getModel("pageTextStyle");f.add(new he({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,y){var g=p+"DataIndex",m=Vl(a.get("pageIcons",!0)[a.getOrient().name][y],{onclick:Z(u._pageGo,u,g,a,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});m.name=p,f.add(m)}},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=gs[u],c=ys[u],h=gs[1-u],v=ys[1-u];o&&na("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),y=[-p.x,-p.y],g=ee(n);o&&(g[f]=n[f]-p[f]-d);var m=this._layoutContentAndController(e,i,g,u,f,h,v,c);if(o){if(s==="end")y[u]+=m[f]+d;else{var _=p[f]+d;y[u]-=_,m[c]-=_}m[f]+=p[f]+d,y[1-u]+=m[v]+m[h]/2-p[h]/2,m[h]=Math.max(m[h],p[h]),m[v]=Math.min(m[v],p[v]+y[1-u]),l.x=y[0],l.y=y[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,a,n,i,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;na(e.get("orient"),f,e.get("itemGap"),i?n.width:null,i?null:n.height),na("horizontal",h,e.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=h.getBoundingRect(),p=this._showController=v[o]>n[o],y=[-v.x,-v.y];a||(y[i]=f[u]);var g=[0,0],m=[-d.x,-d.y],_=J(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-d[o]:g[i]+=d[o]+_}m[1-i]+=v[s]/2-d[s]/2,f.setPosition(y),c.setPosition(g),h.setPosition(m);var b={x:0,y:0};if(b[o]=p?n[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+m[1-i]),c.__rectSize=n[o],p){var x={x:0,y:0};x[o]=Math.max(n[o]-d[o]-_,0),x[s]=b[s],c.setClipPath(new se({shape:x})),c.__rectSize=x[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(e);return C.pageIndex!=null&&De(f,{x:C.contentPosition[0],y:C.contentPosition[1]},p?e:null),this._updatePageInfoView(e,C),b},t.prototype._pageGo=function(e,a,n){var i=this._getPageInfo(a)[e];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},t.prototype._updatePageInfoView=function(e,a){var n=this._controllerGroup;w(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=a[c]!=null,v=n.childOfName(f);v&&(v.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=n.childOfName("pageText"),o=e.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",$(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var a=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=gs[o],l=ys[o],u=this._findTargetItemIndex(a),f=n.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[n.x,n.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var y=u+1,g=p,m=p,_=null;y<=h;++y)_=S(f[y]),(!_&&m.e>g.s+i||_&&!b(_,g.s))&&(m.i>g.i?g=m:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),m=_;for(var y=u-1,g=p,m=p,_=null;y>=-1;--y)_=S(f[y]),(!_||!b(m,_.s))&&g.i<m.i&&(m=g,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=_;return d;function S(x){if(x){var C=x.getBoundingRect(),T=C[l]+x[l];return{s:T,e:T+C[s],i:x.__legendDataIndex}}}function b(x,C){return x.e>=C&&x.s<=C+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(a=s)}),a??i},t.type="legend.scroll",t})(ty);function jM(r){r.registerAction("legendScroll","legendscroll",function(t,e){var a=t.scrollDataIndex;a!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(a)})})}function QM(r){Xe(ay),r.registerComponentModel(KM),r.registerComponentView(qM),jM(r)}function oD(r){Xe(ay),Xe(QM)}var JM=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=ya(Qi.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t})(Qi),Iu=ie();function eT(r,t,e){Iu(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function tT(r,t){for(var e=Iu(r).coordSysRecordMap,a=e.keys(),n=0;n<a.length;n++){var i=a[n],o=e.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||ny(e,o))}}}function ny(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function rT(r,t){var e={model:t,containsPoint:me(nT,t),dispatchAction:me(aT,r),dataZoomInfoMap:null,controller:null},a=e.controller=new z1(r.getZr());return w(["pan","zoom","scrollMove"],function(n){a.on(n,function(i){var o=[];e.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&e.dispatchAction(o)})}),e}function aT(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function nT(r,t,e,a){return r.coordinateSystem.containPoint([e,a])}function iT(r,t,e){var a,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return r.each(function(s){var l=s.model,u=l.get("disabled",!0)?!1:l.get("zoomLock",!0)?"move":!0;i[n+u]>i[n+a]&&(a=u),o=o&&l.get("preventDefaultMouseMove",!0)}),{controlType:a,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:e,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint}}}}function oT(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var a=Iu(e),n=a.coordSysRecordMap||(a.coordSysRecordMap=q());n.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=$g(i);w(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,rT(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=q());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){ny(n,i);return}var f=iT(l,i,e);o.enable(f.controlType,f.opt),go(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var sT=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,a,n){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),eT(n,e,{pan:Z(ms.pan,this),zoom:Z(ms.zoom,this),scrollMove:Z(ms.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){tT(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t})(Kg),ms={zoom:function(r,t,e,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=_s[t](null,[a.originX,a.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(ca(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:Gv(function(r,t,e,a,n,i){var o=_s[a]([i.oldX,i.oldY],[i.newX,i.newY],t,n,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:Gv(function(r,t,e,a,n,i){var o=_s[a]([0,0],[i.scrollDelta,i.scrollDelta],t,n,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function Gv(r){return function(t,e,a,n){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,a,n);if(ca(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var _s={grid:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,t,e,a,n){var i=e.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function lT(r){qg(r),r.registerComponentModel(JM),r.registerComponentView(sT),oT(r)}var uT=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=ya(Qi.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:O.color.accent10,borderRadius:0,backgroundColor:O.color.transparent,dataBackground:{lineStyle:{color:O.color.accent30,width:.5},areaStyle:{color:O.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:O.color.accent40,width:.5},areaStyle:{color:O.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:O.color.neutral00,borderColor:O.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:O.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:O.color.tertiary},brushSelect:!0,brushStyle:{color:O.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:O.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t})(Qi),za=se,fT=1,Ss=30,cT=7,Fa="horizontal",Hv="vertical",vT=5,hT=["line","bar","candlestick","scatter"],dT={easing:"cubicOut",duration:100,delay:0},pT=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,a){this.api=a,this._onBrush=Z(this._onBrush,this),this._onBrushEnd=Z(this._onBrushEnd,this)},t.prototype.render=function(e,a,n,i){if(r.prototype.render.apply(this,arguments),go(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Oi(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new pe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(a),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,a=this.api,n=e.get("brushSelect"),i=n?cT:0,o=Rr(e,a).refContainer,s=this._findCoordRect(),l=e.get("defaultLocationEdgeGap",!0)||0,u=this._orient===Fa?{right:o.width-s.x-s.width,top:o.height-Ss-l-i,width:s.width,height:Ss}:{right:l,top:s.y,width:Ss,height:s.height},f=Er(e.option);w(["right","top","width","height"],function(h){f[h]==="ph"&&(f[h]=u[h])});var c=rt(f,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===Hv&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===Fa&&!o?{scaleY:l?1:-1,scaleX:1}:n===Fa&&o?{scaleY:l?1:-1,scaleX:-1}:n===Hv&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=a.x-u.x,e.y=a.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new za({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new za({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:Z(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var a=this._size,n=this._shadowSize||[],i=e.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var c=o.getDataExtent(e.thisDim),h=o.getDataExtent(l),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var d=[0,a[1]],p=[0,a[0]],y=[[a[0],0],[0,0]],g=[],m=p[1]/Math.max(1,o.count()-1),_=a[0]/(c[1]-c[0]),S=e.thisAxis.type==="time",b=-m,x=Math.round(o.count()/a[0]),C;o.each([e.thisDim,l],function(P,L,E){if(x>0&&E%x){S||(b+=m);return}b=S?(+P-c[0])*_:b+m;var I=L==null||isNaN(L)||L==="",k=I?0:ce(L,h,d,!0);I&&!C&&E?(y.push([y[y.length-1][0],0]),g.push([g[g.length-1][0],0])):!I&&C&&(y.push([b,0]),g.push([b,0])),I||(y.push([b,k]),g.push([b,k])),C=I}),u=this._shadowPolygonPts=y,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var T=this.dataZoomModel;function D(P){var L=T.getModel(P?"selectedDataBackground":"dataBackground"),E=new pe,I=new ha({shape:{points:u},segmentIgnoreThreshold:1,style:L.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),k=new or({shape:{points:f},segmentIgnoreThreshold:1,style:L.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return E.add(I),E.add(k),E}for(var A=0;A<3;A++){var M=D(A===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,a=e.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();w(l,function(u){if(!n&&!(a!==!0&&ue(hT,u.get("type"))<0)){var f=i.getComponent(jt(o),s).axis,c=gT(o),h,v=u.coordinateSystem;c!=null&&v.getOtherAxis&&(h=v.getOtherAxis(f).inverse),c=u.getData().mapDimension(c);var d=u.getData().mapDimension(o);n={thisAxis:f,series:u,thisDim:d,otherDim:c,otherAxisInverse:h}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,c=l.get("brushSelect"),h=a.filler=new za({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new za({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:fT,fill:O.color.transparent}})),w([0,1],function(_){var S=l.get("handleIcon");!Ni[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=at(S,-1,0,2,2,null,!0);b.attr({cursor:yT(this._orient),draggable:!0,drift:Z(this._onDragMove,this,_),ondragend:Z(this._onDragEnd,this),onmouseover:Z(this._showDataInfo,this,!0),onmouseout:Z(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),C=l.get("handleSize");this._handleHeight=ne(C,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Ai(b);var T=l.get("handleColor");T!=null&&(b.style.fill=T),o.add(n[_]=b);var D=l.getModel("textStyle"),A=l.get("handleLabel")||{},M=A.show||!1;e.add(i[_]=new he({silent:!0,invisible:!M,style:Te(D,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:D.getTextColor(),font:D.getFont()}),z2:10}))},this);var v=h;if(c){var d=ne(l.get("moveHandleSize"),s[1]),p=a.moveHandle=new se({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),y=d*.8,g=a.moveHandleIcon=at(l.get("moveHandleIcon"),-y/2,-y/2,y,y,O.color.neutral00,!0);g.silent=!0,g.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));v=a.moveZone=new se({invisible:!0,shape:{y:s[1]-m,height:d+m}}),v.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(g),o.add(v)}v.attr({draggable:!0,cursor:"default",drift:Z(this._onDragMove,this,"all"),ondragstart:Z(this._showDataInfo,this,!0),ondragend:Z(this._onDragEnd,this),onmouseover:Z(this._showDataInfo,this,!0),onmouseout:Z(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[ce(e[0],[0,100],a,!0),ce(e[1],[0,100],a,!0)]},t.prototype._updateInterval=function(e,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];ca(a,i,o,n.get("zoomLock")?"all":e,s.minSpan!=null?ce(s.minSpan,l,o,!0):null,s.maxSpan!=null?ce(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=_r([ce(i[0],o,l,!0),ce(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var a=this._displayables,n=this._handleEnds,i=_r(n.slice()),o=this._size;w([0,1],function(v){var d=a.handles[v],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:n[v]+(v?-1:1),y:o[1]/2-p/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;f<l.length;f++){var c=l[f],h=c.getClipPath();h||(h=new se,c.setClipPath(h)),h.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var a=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,s=["",""];if(a.get("showDetail")){var l=a.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,c=e?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(c[0],u),this._formatLabel(c[1],u)]}}var h=_r(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(d){var p=Ka(n.handles[d].parent,this.group),y=Nl(d===0?"right":"left",p),g=this._handleWidth/2+vT,m=Qt([h[d]+(d===0?-g:g),this._size[1]/2],p);i[d].setStyle({x:m[0],y:m[1],verticalAlign:o===Fa?"middle":y,align:o===Fa?y:"center",text:s[d]})}},t.prototype._formatLabel=function(e,a){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");(o==null||o==="auto")&&(o=a.getPixelPrecision());var s=e==null||isNaN(e)?"":a.type==="category"||a.type==="time"?a.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return j(i)?i(e,s):$(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(e){var a=this.dataZoomModel.get("handleLabel")||{},n=a.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=e||this._dragging?o:n,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},t.prototype._onDragMove=function(e,a,n,i){this._dragging=!0,er(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Qt([a,n],o,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var a=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>a[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var a=e.offsetX,n=e.offsetY;this._brushStart=new de(a,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[n.x,n.x+n.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();ca(0,l,o,0,u.minSpan!=null?ce(u.minSpan,s,o,!0):null,u.maxSpan!=null?ce(u.maxSpan,s,o,!0):null),this._range=_r([ce(l[0],o,s,!0),ce(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(er(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new za({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,a),f=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?dT:null,start:a[0],end:a[1]})},t.prototype._findCoordRect=function(){var e,a=$g(this.dataZoomModel).infoList;if(!e&&a.length){var n=a[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return e},t.type="dataZoom.slider",t})(Kg);function gT(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function yT(r){return r==="vertical"?"ns-resize":"ew-resize"}function mT(r){r.registerComponentModel(uT),r.registerComponentView(pT),qg(r)}function sD(r){Xe(lT),Xe(mT)}var iy={get:function(r,t,e){var a=ee((_T[r]||{})[t]);return e&&z(a)?a[a.length-1]:a}},_T={color:{active:["#006edd","#e0ffff"],inactive:[O.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},Wv=ze.mapVisual,ST=ze.eachVisual,xT=z,Uv=w,bT=_r,wT=ce,Ji=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&FM(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var a=this.stateList;e=Z(e,this),this.controllerVisuals=Bv(this.option.controller,a,e),this.targetVisuals=Bv(this.option.target,a,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesId,a=this.option.seriesIndex;a==null&&e==null&&(a="all");var n=da(this.ecModel,"series",{index:a,id:e},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return X(n,function(i){return i.componentIndex})},t.prototype.eachTargetSeries=function(e,a){w(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(a,i)},this)},t.prototype.isTargetSeries=function(e){var a=!1;return this.eachTargetSeries(function(n){n===e&&(a=!0)}),a},t.prototype.formatValueText=function(e,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],z(e)&&(e=e.slice(),u=!0);var f=a?e:u?[c(e[0]),c(e[1])]:c(e);if($(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(j(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?n[0]+" "+f[1]:e[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function c(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,a=bT([e.min,e.max]);this._dataExtent=a},t.prototype.getDataDimensionIndex=function(e){var a=this.option.dimension;if(a!=null)return e.getDimensionIndex(a);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});oe(i,n),oe(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(c){xT(a.color)&&!c.inRange&&(c.inRange={color:a.color.slice().reverse()}),c.inRange=c.inRange||{color:e.get("gradientColor")}}function u(c,h,v){var d=c[h],p=c[v];d&&!p&&(p=c[v]={},Uv(d,function(y,g){if(ze.isValidType(g)){var m=iy.get(g,"inactive",s);m!=null&&(p[g]=m,g==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(c){var h=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,v=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),y=p||"roundRect";Uv(this.stateList,function(g){var m=this.itemSize,_=c[g];_||(_=c[g]={color:s?d:[d]}),_.symbol==null&&(_.symbol=h&&ee(h)||(s?y:[y])),_.symbolSize==null&&(_.symbolSize=v&&ee(v)||(s?m[0]:[m[0],m[0]])),_.symbol=Wv(_.symbol,function(x){return x==="none"?y:x});var S=_.symbolSize;if(S!=null){var b=-1/0;ST(S,function(x){x>b&&(b=x)}),_.symbolSize=Wv(S,function(x){return wT(x,[0,b],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:O.color.transparent,borderColor:O.color.borderTint,contentColor:O.color.theme[0],inactiveColor:O.color.disabled,borderWidth:0,padding:O.size.m,textGap:10,precision:0,textStyle:{color:O.color.secondary}},t})(re),Yv=[20,140],CT=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=Yv[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=Yv[1])},t.prototype._resetRange=function(){var e=this.getExtent(),a=this.option.range;!a||a.auto?(e.auto=1,this.option.range=e):z(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],e[0]),a[1]=Math.min(a[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),w(this.stateList,function(e){var a=this.option.controller[e].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),a=_r((this.get("range")||[]).slice());return a[0]>e[1]&&(a[0]=e[1]),a[1]>e[1]&&(a[1]=e[1]),a[0]<e[0]&&(a[0]=e[0]),a[1]<e[0]&&(a[1]=e[0]),a},t.prototype.getValueState=function(e){var a=this.option.range,n=this.getExtent(),i=J(this.option.unboundedRange,!0);return(i&&a[0]<=n[0]||a[0]<=e)&&(i&&a[1]>=n[1]||e<=a[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},t.prototype.getVisualMeta=function(e){var a=Zv(this,"outOfRange",this.getExtent()),n=Zv(this,"inRange",this.option.range.slice()),i=[];function o(v,d){i.push({value:v,color:e(v,d)})}for(var s=0,l=0,u=n.length,f=a.length;l<f&&(!n.length||a[l]<=n[0]);l++)a[l]<n[s]&&o(a[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&i.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var c=1;l<f;l++)(!n.length||n[n.length-1]<a[l])&&(c&&(i.length&&o(i[i.length-1].value,"outOfRange"),c=0),o(a[l],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=ya(Ji.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:O.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:O.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:O.color.shadow}}),t})(Ji);function Zv(r,t,e){if(e[0]===e[1])return e.slice();for(var a=200,n=(e[1]-e[0])/a,i=e[0],o=[],s=0;s<=a&&i<e[1];s++)o.push(i),i+=n;return o.push(e[1]),o}var oy=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return t.prototype.init=function(e,a){this.ecModel=e,this.api=a},t.prototype.render=function(e,a,n,i){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,a,n,i)},t.prototype.renderBackground=function(e){var a=this.visualMapModel,n=Ln(a.get("padding")||0),i=e.getBoundingRect();e.add(new se({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,a,n){n=n||{};var i=n.forceState,o=this.visualMapModel,s={};if(a==="color"){var l=o.get("contentColor");s.color=l}function u(v){return s[v]}function f(v,d){s[v]=d}var c=o.controllerVisuals[i||o.getValueState(e)],h=ze.prepareVisualTypes(c);return w(h,function(v){var d=c[v];n.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",d=c.__alphaForOpacity),ze.dependsOn(v,a)&&d&&d.applyVisual(e,u,f)}),s[a]},t.prototype.positionGroup=function(e){var a=this.visualMapModel,n=this.api,i=Rr(a,n).refContainer;V0(e,a.getBoxLayoutParams(),i)},t.prototype.doRender=function(e,a,n,i){},t.type="visualMap",t})(He),Xv=[["left","right","width"],["top","bottom","height"]];function sy(r,t,e){var a=r.option,n=a.align;if(n!=null&&n!=="auto")return n;for(var i={width:t.getWidth(),height:t.getHeight()},o=a.orient==="horizontal"?1:0,s=Xv[o],l=[0,null,10],u={},f=0;f<3;f++)u[Xv[1-o][f]]=l[f],u[s[f]]=f===2?e[0]:a[s[f]];var c=[["x","width",3],["y","height",0]][o],h=rt(u,i,a.padding);return s[(h.margin[c[2]]||0)+h[c[0]]+h[c[1]]*.5<i[c[1]]*.5?0:1]}function mi(r,t){return w(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var pt=ce,MT=w,$v=Math.min,xs=Math.max,TT=12,DT=6,AT=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return t.prototype.init=function(e,a){r.prototype.init.call(this,e,a),this._hoverLinkFromSeriesMouseOver=Z(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Z(this._hideIndicator,this)},t.prototype.doRender=function(e,a,n,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,a=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(a);var n=e.get("text");this._renderEndsText(a,n,0),this._renderEndsText(a,n,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},t.prototype._renderEndsText=function(e,a,n){if(a){var i=a[1-n];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),c=this._applyTransform(n===0?"bottom":"top",u),h=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new he({style:Te(v,{x:f[0],y:f[1],verticalAlign:v.get("verticalAlign")||(h==="horizontal"?"middle":c),align:v.get("align")||(h==="horizontal"?c:"center"),text:i})}))}},t.prototype._renderBar=function(e){var a=this.visualMapModel,n=this._shapes,i=a.itemSize,o=this._orient,s=this._useHandle,l=sy(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),f=new pe;u.add(f),f.add(n.outOfRange=Kv()),f.add(n.inRange=Kv(null,s?jv(this._orient):null,Z(this._dragHandle,this,"all",!1),Z(this._dragHandle,this,"all",!0))),f.setClipPath(new se({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=a.textStyleModel.getTextRect("国"),h=xs(c.width,c.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(a,u,0,i,h,o),this._createHandle(a,u,1,i,h,o)),this._createIndicator(a,u,i,h,o),e.add(u)},t.prototype._createHandle=function(e,a,n,i,o,s){var l=Z(this._dragHandle,this,n,!1),u=Z(this._dragHandle,this,n,!0),f=rn(e.get("handleSize"),i[0]),c=at(e.get("handleIcon"),-f/2,-f/2,f,f,null,!0),h=jv(this._orient);c.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(g){er(g.event)}}),c.x=i[0]/2,c.useStyle(e.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),El(c,!0),a.add(c);var v=this.visualMapModel.textStyleModel,d=new he({cursor:h,draggable:!0,drift:l,onmousemove:function(g){er(g.event)},ondragend:u,style:Te(v,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[f,0],y=this._shapes;y.handleThumbs[n]=c,y.handleLabelPoints[n]=p,y.handleLabels[n]=d},t.prototype._createIndicator=function(e,a,n,i,o){var s=rn(e.get("indicatorSize"),n[0]),l=at(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof Et){var f=l.style;l.useStyle(U({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);a.add(l);var c=this.visualMapModel.textStyleModel,h=new he({silent:!0,invisible:!0,style:Te(c,{x:0,y:0,text:""})});this.group.add(h);var v=[(o==="horizontal"?i/2:DT)+n[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=h,d.indicatorLabelPoint=v,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,a,n,i){if(this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():qv(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,a=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[pt(a[0],n,i,!0),pt(a[1],n,i,!0)]},t.prototype._updateInterval=function(e,a){a=a||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];ca(a,i,o,e,0);var s=n.getExtent();this._dataInterval=[pt(i[0],o,s,!0),pt(i[1],o,s,!0)]},t.prototype._updateView=function(e){var a=this.visualMapModel,n=a.getExtent(),i=this._shapes,o=[0,a.itemSize[1]],s=e?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(e,a,n,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,o),l=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new Cl(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,a){var n=100,i=[],o=(e[1]-e[0])/n;i.push({color:this.getControllerVisual(e[0],"color",a),offset:0});for(var s=1;s<n;s++){var l=e[0]+o*s;if(l>e[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(e[1],"color",a),offset:1}),i},t.prototype._createBarPoints=function(e,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-a[1],e[1]]]},t.prototype._createBarGroup=function(e){var a=this._orient,n=this.visualMapModel.get("inverse");return new pe(a==="horizontal"&&!n?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),f=this._applyTransform("left",n.mainGroup);MT([0,1],function(c){var h=o[c];h.setStyle("fill",a.handlesColor[c]),h.y=e[c];var v=pt(e[c],[0,l[1]],u,!0),d=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=d/l[0],h.x=l[0]-d/2;var p=Qt(n.handleLabelPoints[c],Ka(h,this.group));if(this._orient==="horizontal"){var y=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=y}s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,c=f.indicator;if(c){c.attr("invisible",!1);var h={convertOpacityToAlpha:!0},v=this.getControllerVisual(e,"color",h),d=this.getControllerVisual(e,"symbolSize"),p=pt(e,s,u,!0),y=l[0]-d/2,g={x:c.x,y:c.y};c.y=p,c.x=y;var m=Qt(f.indicatorLabelPoint,Ka(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:x?S:"middle",align:x?"center":S});var C={x:y,y:p,style:{fill:v}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var D={duration:100,easing:"cubicInOut",additive:!0};c.x=g.x,c.y=g.y,c.animateTo(C,D),_.animateTo(T,D)}else c.attr(C),_.attr(T);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var M=0;M<A.length;M++)this.api.enterBlur(A[M])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(a){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,i=e._applyTransform([a.offsetX,a.offsetY],e._shapes.mainGroup,!0,!0);i[1]=$v(xs(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,a){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],s=n.getExtent();e=$v(xs(o[0],e),o[1]);var l=LT(n,s,o),u=[e-l,e+l],f=pt(e,o,s,!0),c=[pt(u[0],o,s,!0),pt(u[1],o,s,!0)];u[0]<o[0]&&(c[0]=-1/0),u[1]>o[1]&&(c[1]=1/0),a&&(c[0]===-1/0?this._showIndicator(f,c[1],"< ",l):c[1]===1/0?this._showIndicator(f,c[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var h=this._hoverLinkDataIndices,v=[];(a||qv(n))&&(v=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var d=om(h,v);this._dispatchHighDown("downplay",mi(d[0],n)),this._dispatchHighDown("highlight",mi(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var a;if(ea(e.target,function(l){var u=te(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n<a.length;n++)this.api.leaveBlur(a[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",mi(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,a,n,i){var o=Ka(a,i?null:this.group);return z(e)?Qt(e,o,n):Nl(e,o,n)},t.prototype._dispatchHighDown=function(e,a){a&&a.length&&this.api.dispatchAction({type:e,batch:a})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t})(oy);function Kv(r,t,e,a){return new ha({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(n){er(n.event)},ondragend:a})}function LT(r,t,e){var a=TT/2,n=r.get("hoverLinkDataSize");return n&&(a=pt(n,t,e,!0)/2),a}function qv(r){var t=r.get("hoverLinkOnHandle");return!!(t??r.get("realtime"))}function jv(r){return r==="vertical"?"ns-resize":"ew-resize"}var IT={type:"selectDataRange",event:"dataRangeSelected",update:"update"},PT=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},kT=[{createOnAllSeries:!0,reset:function(r,t){var e=[];return t.eachComponent("visualMap",function(a){var n=r.pipelineContext;!a.isTargetSeries(r)||n&&n.large||e.push(GM(a.stateList,a.targetVisuals,Z(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),e}},{createOnAllSeries:!0,reset:function(r,t){var e=r.getData(),a=[];t.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var i=n.getVisualMeta(Z(RT,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(e);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function RT(r,t,e,a){for(var n=t.targetVisuals[a],i=ze.prepareVisualTypes(n),o={color:Xd(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=n[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(e,c,h)}return o.color;function c(v){return o[v]}function h(v,d){o[v]=d}}var Qv=w;function ET(r){var t=r&&r.visualMap;z(t)||(t=t?[t]:[]),Qv(t,function(e){if(e){jr(e,"splitList")&&!jr(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var a=e.pieces;a&&z(a)&&Qv(a,function(n){K(n)&&(jr(n,"start")&&!jr(n,"min")&&(n.min=n.start),jr(n,"end")&&!jr(n,"max")&&(n.max=n.end))})}})}function jr(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var Jv=!1;function ly(r){Jv||(Jv=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(IT,PT),w(kT,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(ET))}function OT(r){r.registerComponentModel(CT),r.registerComponentView(AT),ly(r)}var BT=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],NT[this._mode].call(this,this._pieceList),this._resetSelected(e,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=ee(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=X(this._pieceList,function(l){return l=ee(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,a={},n=ze.listVisualTypes(),i=this.isCategory();w(e.pieces,function(s){w(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),w(a,function(s,l){var u=!1;w(this.stateList,function(f){u=u||o(e,f,l)||o(e.target,f,l)},this),!u&&w(this.stateList,function(f){(e[f]||(e[f]={}))[l]=iy.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,a){var n=this.option,i=this._pieceList,o=(a?n:e).selected||{};if(n.selected=o,w(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;w(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=ee(e)},t.prototype.getValueState=function(e){var a=ze.findPieceIndex(e,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=ze.findPieceIndex(l,n);f===e&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},t.prototype.getRepresentValue=function(e){var a;if(this.isCategory())a=e.value;else if(e.value!=null)a=e.value;else{var n=e.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(f,c){var h=i.getRepresentValue({interval:f});c||(c=i.getValueState(h));var v=e(h,c);f[0]===-1/0?n[0]=v:f[1]===1/0?n[1]=v:a.push({value:f[0],color:v},{value:f[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return w(s,function(f){var c=f.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:a,outerColors:n}},t.type="visualMap.piecewise",t.defaultOption=ya(Ji.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t})(Ji),NT={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),a=this.getExtent(),n=t.splitNumber;n=Math.max(parseInt(n,10),1),t.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<n;s+=i,o++){var l=o===n-1?a[1]:s+i;r.push({interval:[s,l],close:[1,1]})}t.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),Fu(r),w(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var t=this.option;w(t.categories,function(e){r.push({text:this.formatValueText(e,!0),value:e})},this),eh(t,r)},pieces:function(r){var t=this.option;w(t.pieces,function(e,a){K(e)||(e={value:e});var n={text:"",index:a};if(e.label!=null&&(n.text=e.label),e.hasOwnProperty("value")){var i=n.value=e.value;n.interval=[i,i],n.close=[1,1]}else{for(var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],v=0;v<3&&o[c]==null;v++)o[c]=e[h[v]],s[c]=l[v],f[c]=v===2;o[c]==null&&(o[c]=u[c])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=ze.retrieveVisuals(e),r.push(n)},this),eh(t,r),Fu(r),w(r,function(e){var a=e.close,n=[["<","≤"][a[1]],[">","≥"][a[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,n)},this)}};function eh(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var VT=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=this._getItemAlign(),s=a.itemSize,l=this._getViewData(),u=l.endsText,f=an(a.get("showLabel",!0),!u),c=!a.get("selectedMode");u&&this._renderEndsText(e,u[0],s,f,o),w(l.viewPieceList,function(h){var v=h.piece,d=new pe;d.onclick=Z(this._onItemClick,this,v),this._enableHoverLink(d,h.indexInModelPieceList);var p=a.getRepresentValue(v);if(this._createItemSymbol(d,p,[0,0,s[0],s[1]],c),f){var y=this.visualMapModel.getValueState(p),g=i.get("align")||o;d.add(new he({style:Te(i,{x:g==="right"?-n:s[0]+n,y:s[1]/2,text:v.text,verticalAlign:i.get("verticalAlign")||"middle",align:g,opacity:J(i.get("opacity"),y==="outOfRange"?.5:1)}),silent:c}))}e.add(d)},this),u&&this._renderEndsText(e,u[1],s,f,o),na(a.get("orient"),e,a.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,a){var n=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:mi(s.findTargetDataIndices(a),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,a=e.option;if(a.orient==="vertical")return sy(e,this.api,e.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},t.prototype._renderEndsText=function(e,a,n,i,o){if(a){var s=new pe,l=this.visualMapModel.textStyleModel;s.add(new he({style:Te(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,a=X(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=e.get("text"),i=e.get("orient"),o=e.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},t.prototype._createItemSymbol=function(e,a,n,i){var o=at(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,e.add(o)},t.prototype._onItemClick=function(e){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=ee(n.selected),s=a.getSelectedMapKey(e);i==="single"||i===!0?(o[s]=!0,w(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t})(oy);function zT(r){r.registerComponentModel(BT),r.registerComponentView(VT),ly(r)}function lD(r){Xe(OT),Xe(zT)}var FT=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,a,n){r.prototype.init.call(this,e,a,n),this._sourceManager=new Id(this),Rf(this)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),Rf(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:ft},t})(re),GT=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t})(He);function HT(r){r.registerComponentModel(FT),r.registerComponentView(GT)}Xe([Hb,HT]);Xe(Gb);export{bp as S,KT as a,XT as b,ZT as c,Ai as d,$T as e,hp as f,rt as g,UT as h,Hb as i,nD as j,YT as k,ce as l,QT as m,jT as n,qT as o,eD as p,iD as q,fx as r,oD as s,rD as t,Xe as u,lD as v,sD as w,JT as x,aD as y,tD as z};
9
+ `:"<br/>",g=c.join(y);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,g,u,Math.random()+"",o[0],o[1],v,null,h)})},t.prototype._showSeriesItemTooltip=function(e,a,n){var i=this._ecModel,o=te(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,h=u.getData(c),v=this._renderMode,d=e.positionDefault,p=Na([h.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),y=p.get("trigger");if(!(y!=null&&y!=="item")){var g=u.getDataParams(f,c),m=new Oo;g.marker=m.makeTooltipMarker("item",Ar(g.color),v);var _=Af(u.formatTooltip(f,!1,c)),S=p.get("order"),b=p.get("valueFormatter"),x=_.frag,C=x?Ef(b?U({valueFormatter:b},x):x,m,v,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,C,g,T,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:h.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,n){var i=this._renderMode==="html",o=te(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if($(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=ee(l),l.content=Ze(l.content));var c=[l],h=this._ecModel.getComponent(o.componentMainType,o.componentIndex);h&&c.push(h),c.push({formatter:l.content});var v=e.positionDefault,d=Na(c,this._tooltipModel,v?{position:v}:null),p=d.get("content"),y=Math.random()+"",g=new Oo;this._showOrMove(d,function(){var m=ee(d.get("formatterParams")||{});this._showTooltipContent(d,p,m,y,e.offsetX,e.offsetY,e.position,a,g)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,n,i,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var c=this._tooltipContent;c.setEnterable(e.get("enterable"));var h=e.get("formatter");l=l||e.get("position");var v=a,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor"),e.get("defaultBorderColor",!0)),p=d.color;if(h)if($(h)){var y=e.ecModel.get("useUTC"),g=z(n)?n[0]:n,m=g&&g.axisType&&g.axisType.indexOf("time")>=0;v=h,m&&(v=co(g.axisValue,v,y)),v=od(v,n,!0)}else if(j(h)){var _=Z(function(S,b){S===this._ticket&&(c.setContent(b,f,e,p,l),this._updatePosition(e,l,o,s,c,n,u))},this);this._ticket=i,v=h(n,i,_)}else v=h;c.setContent(v,f,e,p,l),c.show(e,p),this._updatePosition(e,l,o,s,c,n,u)}},t.prototype._getNearestPoint=function(e,a,n,i,o){if(n==="axis"||z(a))return{color:i||o};if(!z(a))return{color:i||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||e.get("position");var c=o.getSize(),h=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),j(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),z(a))n=ne(a[0],u),i=ne(a[1],f);else if(K(a)){var p=a;p.width=c[0],p.height=c[1];var y=rt(p,{width:u,height:f});n=y.x,i=y.y,h=null,v=null}else if($(a)&&l){var g=NM(a,d,c,e.get("borderWidth"));n=g[0],i=g[1]}else{var g=OM(n,i,o,u,f,h?null:20,v?null:20);n=g[0],i=g[1]}if(h&&(n-=kv(h)?c[0]/2:h==="right"?c[0]:0),v&&(i-=kv(v)?c[1]/2:v==="bottom"?c[1]:0),qg(e)){var g=BM(n,i,o,u,f);n=g[0],i=g[1]}o.moveTo(n,i)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===e.length;return o&&w(n,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&w(u,function(h,v){var d=c[v]||{},p=h.seriesDataIndices||[],y=d.seriesDataIndices||[];o=o&&h.value===d.value&&h.axisType===d.axisType&&h.axisId===d.axisId&&p.length===y.length,o&&w(p,function(g,m){var _=y[m];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),i&&w(h.seriesDataIndices,function(g){var m=g.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,a){be.node||!a.getDom()||(Oi(this,"_updatePosition"),this._tooltipContent.dispose(),gl("itemTooltip",a))},t.type="tooltip",t})(He);function Na(r,t,e){var a=t.ecModel,n;e?(n=new ye(e,a,a),n=new ye(t.option,n,a)):n=t;for(var i=r.length-1;i>=0;i--){var o=r[i];o&&(o instanceof ye&&(o=o.get("tooltip",!0)),$(o)&&(o={formatter:o}),o&&(n=new ye(o,n,a)))}return n}function Pv(r,t){return r.dispatchAction||Z(t.dispatchAction,t)}function OM(r,t,e,a,n,i,o){var s=e.getSize(),l=s[0],u=s[1];return i!=null&&(r+l+i+2>a?r-=l+i:r+=i),o!=null&&(t+u+o>n?t-=u+o:t+=o),[r,t]}function BM(r,t,e,a,n){var i=e.getSize(),o=i[0],s=i[1];return r=Math.min(r+o,a)-o,t=Math.min(t+s,n)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function NM(r,t,e,a){var n=e[0],i=e[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=t.width,f=t.height;switch(r){case"inside":s=t.x+u/2-n/2,l=t.y+f/2-i/2;break;case"top":s=t.x+u/2-n/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-n/2,l=t.y+f+o;break;case"left":s=t.x-n-o,l=t.y+f/2-i/2;break;case"right":s=t.x+u+o,l=t.y+f/2-i/2}return[s,l]}function kv(r){return r==="center"||r==="middle"}function VM(r,t,e){var a=Tl(r).queryOptionMap,n=a.keys()[0];if(!(!n||n==="series")){var i=da(t,n,a.get(n),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var f=te(u).tooltipConfig;if(f&&f.name===r.name)return l=u,!0}),l)return{componentMainType:n,componentIndex:o.componentIndex,el:l}}}}function aD(r){Xe(Zg),r.registerComponentModel(xM),r.registerComponentView(EM),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},xt),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},xt)}var Rv=w;function Ev(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function Ov(r,t,e){var a={};return Rv(t,function(i){var o=a[i]=n();Rv(r[i],function(s,l){if(ze.isValidType(l)){var u={type:l,visual:s};e&&e(u,i),o[l]=new ze(u),l==="opacity"&&(u=ee(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new ze(u))}})}),a;function n(){var i=function(){};i.prototype.__hidden=i.prototype;var o=new i;return o}}function zM(r,t,e){var a;w(e,function(n){t.hasOwnProperty(n)&&Ev(t[n])&&(a=!0)}),a&&w(e,function(n){t.hasOwnProperty(n)&&Ev(t[n])?r[n]=ee(t[n]):delete r[n]})}function FM(r,t,e,a){var n={};return w(r,function(i){var o=ze.prepareVisualTypes(t[i]);n[i]=o}),{progress:function(o,s){var l;a!=null&&(l=s.getDimensionIndex(a));function u(b){return Yd(s,c,b)}function f(b,x){MS(s,c,b,x)}for(var c,h=s.getStore();(c=o.next())!=null;){var v=s.getRawDataItem(c);if(!(v&&v.visualMap===!1))for(var d=a!=null?h.get(l,c):c,p=e(d),y=t[p],g=n[p],m=0,_=g.length;m<_;m++){var S=g[m];y[S]&&y[S].applyVisual(d,u,f)}}}}}var GM=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:"center",top:O.size.m,backgroundColor:O.color.transparent,borderColor:O.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:O.color.primary},subtextStyle:{fontSize:12,color:O.color.quaternary}},t})(re),HM=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,n){if(this.group.removeAll(),!!e.get("show")){var i=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),u=J(e.get("textBaseline"),e.get("textVerticalAlign")),f=new he({style:Te(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),c=f.getBoundingRect(),h=e.get("subtext"),v=new he({style:Te(s,{text:h,fill:s.getTextColor(),y:c.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),p=e.get("sublink"),y=e.get("triggerEvent",!0);f.silent=!d&&!y,v.silent=!p&&!y,d&&f.on("click",function(){uf(d,"_"+e.get("target"))}),p&&v.on("click",function(){uf(p,"_"+e.get("subtarget"))}),te(f).eventData=te(v).eventData=y?{componentType:"title",componentIndex:e.componentIndex}:null,i.add(f),h&&i.add(v);var g=i.getBoundingRect(),m=e.getBoxLayoutParams();m.width=g.width,m.height=g.height;var _=Rr(e,n),S=rt(m,_.refContainer,e.get("padding"));l||(l=e.get("left")||e.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=e.get("top")||e.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),i.x=S.x,i.y=S.y,i.markRedraw();var b={align:l,verticalAlign:u};f.setStyle(b),v.setStyle(b),g=i.getBoundingRect();var x=S.margin,C=e.getItemStyle(["color","opacity"]);C.fill=e.get("backgroundColor");var T=new se({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:e.get("borderRadius")},style:C,subPixelOptimize:!0,silent:!0});i.add(T)}},t.type="title",t})(He);function nD(r){r.registerComponentModel(GM),r.registerComponentView(HM)}var WM=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},yl=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),this._updateSelector(e)},t.prototype._updateSelector=function(e){var a=e.selector,n=this.ecModel;a===!0&&(a=e.selector=["all","inverse"]),z(a)&&w(a,function(i,o){$(i)&&(i={type:i}),a[o]=oe(i,WM(n,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var a=!1,n=0;n<e.length;n++){var i=e[n].get("name");if(this.isSelected(i)){this.select(i),a=!0;break}}!a&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var a=[],n=[];e.eachRawSeries(function(l){var u=l.name;n.push(u);var f;if(l.legendVisualProvider){var c=l.legendVisualProvider,h=c.getAllNames();e.isSeriesFiltered(l)||(n=n.concat(h)),h.length?a=a.concat(h):f=!0}else f=!0;f&&Ml(l)&&a.push(l.name)}),this._availableNames=n;var i=this.get("data")||a,o=q(),s=X(i,function(l){return($(l)||ve(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new ye(l,this,this.ecModel))},this);this._data=Me(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var a=this.option.selected,n=this.get("selectedMode");if(n==="single"){var i=this._data;w(i,function(o){a[o.get("name")]=!1})}a[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var a=this.option.selected;a.hasOwnProperty(e)||(a[e]=!0),this[a[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,a=this.option.selected;w(e,function(n){a[n.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,a=this.option.selected;w(e,function(n){var i=n.get("name",!0);a.hasOwnProperty(i)||(a[i]=!0),a[i]=!a[i]})},t.prototype.isSelected=function(e){var a=this.option.selected;return!(a.hasOwnProperty(e)&&!a[e])&&ue(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:O.size.m,align:"auto",backgroundColor:O.color.transparent,borderColor:O.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:O.color.disabled,inactiveBorderColor:O.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:O.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:O.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:O.color.tertiary,borderWidth:1,borderColor:O.color.border},emphasis:{selectorLabel:{show:!0,color:O.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(re),qr=me,ml=w,si=pe,ey=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new si),this.group.add(this._selectorGroup=new si),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,a,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,a,n,l,s,u);var f=Rr(e,n).refContainer,c=e.getBoxLayoutParams(),h=e.get("padding"),v=rt(c,f,h),d=this.layoutInner(e,o,v,i,l,u),p=rt(ae({width:d.width,height:d.height},c),f,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=SM(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this.getContentGroup(),f=q(),c=a.get("selectedMode"),h=a.get("triggerEvent"),v=[];n.eachRawSeries(function(d){!d.get("legendHoverLink")&&v.push(d.id)}),ml(a.getData(),function(d,p){var y=this,g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
10
+ `)){var m=new si;m.newline=!0,u.add(m);return}var _=n.getSeriesByName(g)[0];if(!f.get(g))if(_){var S=_.getData(),b=S.getVisual("legendLineStyle")||{},x=S.getVisual("legendIcon"),C=S.getVisual("style"),T=this._createItem(_,g,p,d,a,e,b,C,x,c,i);T.on("click",qr(Bv,g,null,i,v)).on("mouseover",qr(_l,_.name,null,i,v)).on("mouseout",qr(Sl,_.name,null,i,v)),n.ssr&&T.eachChild(function(D){var A=te(D);A.seriesIndex=_.seriesIndex,A.dataIndex=p,A.ssrType="legend"}),h&&T.eachChild(function(D){y.packEventData(D,a,_,p,g)}),f.set(g,!0)}else n.eachRawSeries(function(D){var A=this;if(!f.get(g)&&D.legendVisualProvider){var M=D.legendVisualProvider;if(!M.containName(g))return;var P=M.indexOfName(g),L=M.getItemVisual(P,"style"),E=M.getItemVisual(P,"legendIcon"),I=vh(L.fill);I&&I[3]===0&&(I[3]=.2,L=U(U({},L),{fill:li(I,"rgba")}));var k=this._createItem(D,g,p,d,a,e,{},L,E,c,i);k.on("click",qr(Bv,null,g,i,v)).on("mouseover",qr(_l,null,g,i,v)).on("mouseout",qr(Sl,null,g,i,v)),n.ssr&&k.eachChild(function(N){var R=te(N);R.seriesIndex=D.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),h&&k.eachChild(function(N){A.packEventData(N,a,D,p,g)}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},t.prototype.packEventData=function(e,a,n,i,o){var s={componentType:"legend",componentIndex:a.componentIndex,dataIndex:i,value:o,seriesIndex:n.seriesIndex};te(e).eventData=s},t.prototype._createSelector=function(e,a,n,i,o){var s=this.getSelectorGroup();ml(e,function(u){var f=u.type,c=new he({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(c);var h=a.getModel("selectorLabel"),v=a.getModel(["emphasis","selectorLabel"]);kr(c,{normal:h,emphasis:v},{defaultText:u.title}),Ai(c)})},t.prototype._createItem=function(e,a,n,i,o,s,l,u,f,c,h){var v=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),y=o.isSelected(a),g=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=UM(f,i,l,u,v,y,h),b=new si,x=i.getModel("textStyle");if(j(e.getLegendIcon)&&(!_||_==="inherit"))b.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:g,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var C=_==="inherit"&&e.getData().getVisual("symbol")?g==="inherit"?e.getData().getVisual("symbolRotate"):g:0;b.add(YM({itemWidth:d,itemHeight:p,icon:f,iconRotate:C,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,D=s,A=o.get("formatter"),M=a;$(A)&&A?M=A.replace("{name}",a??""):j(A)&&(M=A(a));var P=y?x.getTextColor():i.get("inactiveColor");b.add(new he({style:Te(x,{text:M,x:T,y:p/2,fill:P,align:D,verticalAlign:"middle"},{inheritColor:P})}));var L=new se({shape:b.getBoundingRect(),style:{fill:"transparent"}}),E=i.getModel("tooltip");return E.get("show")&&lo({el:L,componentModel:o,itemName:a,itemTooltipOption:E.option}),b.add(L),b.eachChild(function(I){I.silent=!0}),L.silent=!c,this.getContentGroup().add(b),Ai(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();na(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){na("horizontal",u,e.get("selectorItemGap",!0));var h=u.getBoundingRect(),v=[-h.x,-h.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,y=p===0?"width":"height",g=p===0?"height":"width",m=p===0?"y":"x";s==="end"?v[p]+=f[y]+d:c[p]+=h[y]+d,v[1-p]+=f[g]/2-h[g]/2,u.x=v[0],u.y=v[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[y]=f[y]+d+h[y],_[g]=Math.max(f[g],h[g]),_[m]=Math.min(0,h[m]+v[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(He);function UM(r,t,e,a,n,i,o){function s(y,g){y.lineWidth==="auto"&&(y.lineWidth=g.lineWidth>0?2:0),ml(y,function(m,_){y[_]==="inherit"&&(y[_]=g[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?a.decal:Vi(c,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:e).opacity),s(u,a);var h=t.getModel("lineStyle"),v=h.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),v.stroke==="auto"&&(v.stroke=a.fill),!i){var d=t.get("inactiveBorderWidth"),p=u[f];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),v.stroke=h.get("inactiveColor"),v.lineWidth=h.get("inactiveWidth")}return{itemStyle:u,lineStyle:v}}function YM(r){var t=r.icon||"roundRect",e=at(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill=O.color.neutral00,e.style.lineWidth=2),e}function Bv(r,t,e,a){Sl(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r??t}),_l(r,t,e,a)}function ty(r){for(var t=r.getZr().storage.getDisplayList(),e,a=0,n=t.length;a<n&&!(e=t[a].states.emphasis);)a++;return e&&e.hoverLayer}function _l(r,t,e,a){ty(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:a})}function Sl(r,t,e,a){ty(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:a})}function ZM(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var a=0;a<t.length;a++)if(!t[a].isSelected(e.name))return!1;return!0})}function Va(r,t,e){var a=r==="allSelect"||r==="inverseSelect",n={},i=[];e.eachComponent({mainType:"legend",query:t},function(s){a?s[r]():s[r](t.name),Nv(s,n),i.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){w(n,function(l,u){s[l?"select":"unSelect"](u)}),Nv(s,o)}),a?{selected:o,legendIndex:i}:{name:t.name,selected:o}}function Nv(r,t){var e=t||{};return w(r.getData(),function(a){var n=a.get("name");if(!(n===`
11
+ `||n==="")){var i=r.isSelected(n);F(e,n)?e[n]=e[n]&&i:e[n]=i}}),e}function XM(r){r.registerAction("legendToggleSelect","legendselectchanged",me(Va,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",me(Va,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",me(Va,"inverseSelect")),r.registerAction("legendSelect","legendselected",me(Va,"select")),r.registerAction("legendUnSelect","legendunselected",me(Va,"unSelect"))}function ry(r){r.registerComponentModel(yl),r.registerComponentView(ey),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,ZM),r.registerSubTypeDefaulter("legend",function(){return"plain"}),XM(r)}var $M=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,a,n){var i=Er(e);r.prototype.init.call(this,e,a,n),Vv(this,e,i)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),Vv(this,this.option,e)},t.type="legend.scroll",t.defaultOption=ya(yl.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:O.color.accent50,pageIconInactiveColor:O.color.accent10,pageIconSize:15,pageTextStyle:{color:O.color.tertiary},animationDurationUpdate:800}),t})(yl);function Vv(r,t,e){var a=r.getOrient(),n=[1,1];n[a.index]=0,Rt(t,e,{type:"box",ignoreSize:!!n})}var zv=pe,gs=["width","height"],ys=["x","y"],KM=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new zv),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new zv)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,e,a,n,i,o,s,l);var f=this._controllerGroup,c=a.get("pageIconSize",!0),h=z(c)?c:[c,c];d("pagePrev",0);var v=a.getModel("pageTextStyle");f.add(new he({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,y){var g=p+"DataIndex",m=Nl(a.get("pageIcons",!0)[a.getOrient().name][y],{onclick:Z(u._pageGo,u,g,a,i)},{x:-h[0]/2,y:-h[1]/2,width:h[0],height:h[1]});m.name=p,f.add(m)}},t.prototype.layoutInner=function(e,a,n,i,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=gs[u],c=ys[u],h=gs[1-u],v=ys[1-u];o&&na("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),y=[-p.x,-p.y],g=ee(n);o&&(g[f]=n[f]-p[f]-d);var m=this._layoutContentAndController(e,i,g,u,f,h,v,c);if(o){if(s==="end")y[u]+=m[f]+d;else{var _=p[f]+d;y[u]-=_,m[c]-=_}m[f]+=p[f]+d,y[1-u]+=m[v]+m[h]/2-p[h]/2,m[h]=Math.max(m[h],p[h]),m[v]=Math.min(m[v],p[v]+y[1-u]),l.x=y[0],l.y=y[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,a,n,i,o,s,l,u){var f=this.getContentGroup(),c=this._containerGroup,h=this._controllerGroup;na(e.get("orient"),f,e.get("itemGap"),i?n.width:null,i?null:n.height),na("horizontal",h,e.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=h.getBoundingRect(),p=this._showController=v[o]>n[o],y=[-v.x,-v.y];a||(y[i]=f[u]);var g=[0,0],m=[-d.x,-d.y],_=J(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var S=e.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-d[o]:g[i]+=d[o]+_}m[1-i]+=v[s]/2-d[s]/2,f.setPosition(y),c.setPosition(g),h.setPosition(m);var b={x:0,y:0};if(b[o]=p?n[o]:v[o],b[s]=Math.max(v[s],d[s]),b[l]=Math.min(0,d[l]+m[1-i]),c.__rectSize=n[o],p){var x={x:0,y:0};x[o]=Math.max(n[o]-d[o]-_,0),x[s]=b[s],c.setClipPath(new se({shape:x})),c.__rectSize=x[o]}else h.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var C=this._getPageInfo(e);return C.pageIndex!=null&&De(f,{x:C.contentPosition[0],y:C.contentPosition[1]},p?e:null),this._updatePageInfoView(e,C),b},t.prototype._pageGo=function(e,a,n){var i=this._getPageInfo(a)[e];i!=null&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:a.id})},t.prototype._updatePageInfoView=function(e,a){var n=this._controllerGroup;w(["pagePrev","pageNext"],function(f){var c=f+"DataIndex",h=a[c]!=null,v=n.childOfName(f);v&&(v.setStyle("fill",h?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=h?"pointer":"default")});var i=n.childOfName("pageText"),o=e.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;i&&o&&i.setStyle("text",$(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var a=e.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,o=e.getOrient().index,s=gs[o],l=ys[o],u=this._findTargetItemIndex(a),f=n.children(),c=f[u],h=f.length,v=h?1:0,d={contentPosition:[n.x,n.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return d;var p=S(c);d.contentPosition[o]=-p.s;for(var y=u+1,g=p,m=p,_=null;y<=h;++y)_=S(f[y]),(!_&&m.e>g.s+i||_&&!b(_,g.s))&&(m.i>g.i?g=m:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),m=_;for(var y=u-1,g=p,m=p,_=null;y>=-1;--y)_=S(f[y]),(!_||!b(m,_.s))&&g.i<m.i&&(m=g,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=_;return d;function S(x){if(x){var C=x.getBoundingRect(),T=C[l]+x[l];return{s:T,e:T+C[s],i:x.__legendDataIndex}}}function b(x,C){return x.e>=C&&x.s<=C+i}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var a,n=this.getContentGroup(),i;return n.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===e&&(a=s)}),a??i},t.type="legend.scroll",t})(ey);function qM(r){r.registerAction("legendScroll","legendscroll",function(t,e){var a=t.scrollDataIndex;a!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(n){n.setScrollDataIndex(a)})})}function jM(r){Xe(ry),r.registerComponentModel($M),r.registerComponentView(KM),qM(r)}function iD(r){Xe(ry),Xe(jM)}var QM=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.inside",t.defaultOption=ya(Qi.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t})(Qi),Lu=ie();function JM(r,t,e){Lu(r).coordSysRecordMap.each(function(a){var n=a.dataZoomInfoMap.get(t.uid);n&&(n.getRange=e)})}function eT(r,t){for(var e=Lu(r).coordSysRecordMap,a=e.keys(),n=0;n<a.length;n++){var i=a[n],o=e.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||ay(e,o))}}}function ay(r,t){if(t){r.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function tT(r,t){var e={model:t,containsPoint:me(aT,t),dispatchAction:me(rT,r),dataZoomInfoMap:null,controller:null},a=e.controller=new V1(r.getZr());return w(["pan","zoom","scrollMove"],function(n){a.on(n,function(i){var o=[];e.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[n],u=l&&l(s.dzReferCoordSysInfo,e.model.mainType,e.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&e.dispatchAction(o)})}),e}function rT(r,t){r.isDisposed()||r.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function aT(r,t,e,a){return r.coordinateSystem.containPoint([e,a])}function nT(r,t,e){var a,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},o=!0;return r.each(function(s){var l=s.model,u=l.get("disabled",!0)?!1:l.get("zoomLock",!0)?"move":!0;i[n+u]>i[n+a]&&(a=u),o=o&&l.get("preventDefaultMouseMove",!0)}),{controlType:a,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!o,api:e,zInfo:{component:t.model},triggerInfo:{roamTrigger:null,isInSelf:t.containsPoint}}}}function iT(r){r.registerProcessor(r.PRIORITY.PROCESSOR.FILTER,function(t,e){var a=Lu(e),n=a.coordSysRecordMap||(a.coordSysRecordMap=q());n.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=Xg(i);w(o.infoList,function(s){var l=s.model.uid,u=n.get(l)||n.set(l,tT(e,s.model)),f=u.dataZoomInfoMap||(u.dataZoomInfoMap=q());f.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),n.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){ay(n,i);return}var f=nT(l,i,e);o.enable(f.controlType,f.opt),go(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var oT=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return t.prototype.render=function(e,a,n){if(r.prototype.render.apply(this,arguments),e.noTarget()){this._clear();return}this.range=e.getPercentRange(),JM(n,e,{pan:Z(ms.pan,this),zoom:Z(ms.zoom,this),scrollMove:Z(ms.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){eT(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t})($g),ms={zoom:function(r,t,e,a){var n=this.range,i=n.slice(),o=r.axisModels[0];if(o){var s=_s[t](null,[a.originX,a.originY],o,e,r),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/a.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var f=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(ca(0,i,[0,100],0,f.minSpan,f.maxSpan),this.range=i,n[0]!==i[0]||n[1]!==i[1])return i}},pan:Fv(function(r,t,e,a,n,i){var o=_s[a]([i.oldX,i.oldY],[i.newX,i.newY],t,n,e);return o.signal*(r[1]-r[0])*o.pixel/o.pixelLength}),scrollMove:Fv(function(r,t,e,a,n,i){var o=_s[a]([0,0],[i.scrollDelta,i.scrollDelta],t,n,e);return o.signal*(r[1]-r[0])*i.scrollDelta})};function Fv(r){return function(t,e,a,n){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=r(o,s,t,e,a,n);if(ca(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var _s={grid:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem.getRect();return r=r||[0,0],i.dim==="x"?(o.pixel=t[0]-r[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(r,t,e,a,n){var i=e.axis,o={},s=n.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return r=r?s.pointToCoord(r):[0,0],t=s.pointToCoord(t),e.mainType==="radiusAxis"?(o.pixel=t[0]-r[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-r[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(r,t,e,a,n){var i=e.axis,o=n.model.coordinateSystem.getRect(),s={};return r=r||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-r[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-r[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};function sT(r){Kg(r),r.registerComponentModel(QM),r.registerComponentView(oT),iT(r)}var lT=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=ya(Qi.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:O.color.accent10,borderRadius:0,backgroundColor:O.color.transparent,dataBackground:{lineStyle:{color:O.color.accent30,width:.5},areaStyle:{color:O.color.accent20,opacity:.2}},selectedDataBackground:{lineStyle:{color:O.color.accent40,width:.5},areaStyle:{color:O.color.accent20,opacity:.3}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:O.color.neutral00,borderColor:O.color.accent20},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:O.color.accent40,opacity:.5},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:O.color.tertiary},brushSelect:!0,brushStyle:{color:O.color.accent30,opacity:.3},emphasis:{handleLabel:{show:!0},handleStyle:{borderColor:O.color.accent40},moveHandleStyle:{opacity:.8}},defaultLocationEdgeGap:15}),t})(Qi),za=se,uT=1,Ss=30,fT=7,Fa="horizontal",Gv="vertical",cT=5,vT=["line","bar","candlestick","scatter"],hT={easing:"cubicOut",duration:100,delay:0},dT=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return t.prototype.init=function(e,a){this.api=a,this._onBrush=Z(this._onBrush,this),this._onBrushEnd=Z(this._onBrushEnd,this)},t.prototype.render=function(e,a,n,i){if(r.prototype.render.apply(this,arguments),go(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),e.get("show")===!1){this.group.removeAll();return}if(e.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),r.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Oi(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var a=this._displayables.sliderGroup=new pe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(a),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,a=this.api,n=e.get("brushSelect"),i=n?fT:0,o=Rr(e,a).refContainer,s=this._findCoordRect(),l=e.get("defaultLocationEdgeGap",!0)||0,u=this._orient===Fa?{right:o.width-s.x-s.width,top:o.height-Ss-l-i,width:s.width,height:Ss}:{right:l,top:s.y,width:Ss,height:s.height},f=Er(e.option);w(["right","top","width","height"],function(h){f[h]==="ph"&&(f[h]=u[h])});var c=rt(f,o);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===Gv&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,a=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(n===Fa&&!o?{scaleY:l?1:-1,scaleX:1}:n===Fa&&o?{scaleY:l?1:-1,scaleX:-1}:n===Gv&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=e.getBoundingRect([s]);e.x=a.x-u.x,e.y=a.y-u.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,a=this._size,n=this._displayables.sliderGroup,i=e.get("brushSelect");n.add(new za({silent:!0,shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var o=new za({shape:{x:0,y:0,width:a[0],height:a[1]},style:{fill:"transparent"},z2:0,onclick:Z(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),n.add(o)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!e)return;var a=this._size,n=this._shadowSize||[],i=e.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():e.otherDim;if(l==null)return;var u=this._shadowPolygonPts,f=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||a[0]!==n[0]||a[1]!==n[1]){var c=o.getDataExtent(e.thisDim),h=o.getDataExtent(l),v=(h[1]-h[0])*.3;h=[h[0]-v,h[1]+v];var d=[0,a[1]],p=[0,a[0]],y=[[a[0],0],[0,0]],g=[],m=p[1]/Math.max(1,o.count()-1),_=a[0]/(c[1]-c[0]),S=e.thisAxis.type==="time",b=-m,x=Math.round(o.count()/a[0]),C;o.each([e.thisDim,l],function(P,L,E){if(x>0&&E%x){S||(b+=m);return}b=S?(+P-c[0])*_:b+m;var I=L==null||isNaN(L)||L==="",k=I?0:ce(L,h,d,!0);I&&!C&&E?(y.push([y[y.length-1][0],0]),g.push([g[g.length-1][0],0])):!I&&C&&(y.push([b,0]),g.push([b,0])),I||(y.push([b,k]),g.push([b,k])),C=I}),u=this._shadowPolygonPts=y,f=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[a[0],a[1]];var T=this.dataZoomModel;function D(P){var L=T.getModel(P?"selectedDataBackground":"dataBackground"),E=new pe,I=new ha({shape:{points:u},segmentIgnoreThreshold:1,style:L.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),k=new or({shape:{points:f},segmentIgnoreThreshold:1,style:L.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return E.add(I),E.add(k),E}for(var A=0;A<3;A++){var M=D(A===1);this._displayables.sliderGroup.add(M),this._displayables.dataShadowSegs.push(M)}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,a=e.get("showDataShadow");if(a!==!1){var n,i=this.ecModel;return e.eachTargetAxis(function(o,s){var l=e.getAxisProxy(o,s).getTargetSeriesModels();w(l,function(u){if(!n&&!(a!==!0&&ue(vT,u.get("type"))<0)){var f=i.getComponent(jt(o),s).axis,c=pT(o),h,v=u.coordinateSystem;c!=null&&v.getOtherAxis&&(h=v.getOtherAxis(f).inverse),c=u.getData().mapDimension(c);var d=u.getData().mapDimension(o);n={thisAxis:f,series:u,thisDim:d,otherDim:c,otherAxisInverse:h}}},this)},this),n}},t.prototype._renderHandle=function(){var e=this.group,a=this._displayables,n=a.handles=[null,null],i=a.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,f=l.get("borderRadius")||0,c=l.get("brushSelect"),h=a.filler=new za({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(h),o.add(new za({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:f},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:uT,fill:O.color.transparent}})),w([0,1],function(_){var S=l.get("handleIcon");!Ni[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S);var b=at(S,-1,0,2,2,null,!0);b.attr({cursor:gT(this._orient),draggable:!0,drift:Z(this._onDragMove,this,_),ondragend:Z(this._onDragEnd,this),onmouseover:Z(this._showDataInfo,this,!0),onmouseout:Z(this._showDataInfo,this,!1),z2:5});var x=b.getBoundingRect(),C=l.get("handleSize");this._handleHeight=ne(C,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,b.setStyle(l.getModel("handleStyle").getItemStyle()),b.style.strokeNoScale=!0,b.rectHover=!0,b.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Ai(b);var T=l.get("handleColor");T!=null&&(b.style.fill=T),o.add(n[_]=b);var D=l.getModel("textStyle"),A=l.get("handleLabel")||{},M=A.show||!1;e.add(i[_]=new he({silent:!0,invisible:!M,style:Te(D,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:D.getTextColor(),font:D.getFont()}),z2:10}))},this);var v=h;if(c){var d=ne(l.get("moveHandleSize"),s[1]),p=a.moveHandle=new se({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:d}}),y=d*.8,g=a.moveHandleIcon=at(l.get("moveHandleIcon"),-y/2,-y/2,y,y,O.color.neutral00,!0);g.silent=!0,g.y=s[1]+d/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(s[1]/2,Math.max(d,10));v=a.moveZone=new se({invisible:!0,shape:{y:s[1]-m,height:d+m}}),v.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(g),o.add(v)}v.attr({draggable:!0,cursor:"default",drift:Z(this._onDragMove,this,"all"),ondragstart:Z(this._showDataInfo,this,!0),ondragend:Z(this._onDragEnd,this),onmouseover:Z(this._showDataInfo,this,!0),onmouseout:Z(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),a=this._getViewExtent();this._handleEnds=[ce(e[0],[0,100],a,!0),ce(e[1],[0,100],a,!0)]},t.prototype._updateInterval=function(e,a){var n=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=n.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];ca(a,i,o,n.get("zoomLock")?"all":e,s.minSpan!=null?ce(s.minSpan,l,o,!0):null,s.maxSpan!=null?ce(s.maxSpan,l,o,!0):null);var u=this._range,f=this._range=_r([ce(i[0],o,l,!0),ce(i[1],o,l,!0)]);return!u||u[0]!==f[0]||u[1]!==f[1]},t.prototype._updateView=function(e){var a=this._displayables,n=this._handleEnds,i=_r(n.slice()),o=this._size;w([0,1],function(v){var d=a.handles[v],p=this._handleHeight;d.attr({scaleX:p/2,scaleY:p/2,x:n[v]+(v?-1:1),y:o[1]/2-p/2})},this),a.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};a.moveHandle&&(a.moveHandle.setShape(s),a.moveZone.setShape(s),a.moveZone.getBoundingRect(),a.moveHandleIcon&&a.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=a.dataShadowSegs,u=[0,i[0],i[1],o[0]],f=0;f<l.length;f++){var c=l[f],h=c.getClipPath();h||(h=new se,c.setClipPath(h)),h.setShape({x:u[f],y:0,width:u[f+1]-u[f],height:o[1]})}this._updateDataInfo(e)},t.prototype._updateDataInfo=function(e){var a=this.dataZoomModel,n=this._displayables,i=n.handleLabels,o=this._orient,s=["",""];if(a.get("showDetail")){var l=a.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,f=this._range,c=e?l.calculateDataWindow({start:f[0],end:f[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(c[0],u),this._formatLabel(c[1],u)]}}var h=_r(this._handleEnds.slice());v.call(this,0),v.call(this,1);function v(d){var p=Ka(n.handles[d].parent,this.group),y=Bl(d===0?"right":"left",p),g=this._handleWidth/2+cT,m=Qt([h[d]+(d===0?-g:g),this._size[1]/2],p);i[d].setStyle({x:m[0],y:m[1],verticalAlign:o===Fa?"middle":y,align:o===Fa?y:"center",text:s[d]})}},t.prototype._formatLabel=function(e,a){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");(o==null||o==="auto")&&(o=a.getPixelPrecision());var s=e==null||isNaN(e)?"":a.type==="category"||a.type==="time"?a.scale.getLabel({value:Math.round(e)}):e.toFixed(Math.min(o,20));return j(i)?i(e,s):$(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(e){var a=this.dataZoomModel.get("handleLabel")||{},n=a.show||!1,i=this.dataZoomModel.getModel(["emphasis","handleLabel"]),o=i.get("show")||!1,s=e||this._dragging?o:n,l=this._displayables,u=l.handleLabels;u[0].attr("invisible",!s),u[1].attr("invisible",!s),l.moveHandle&&this.api[s?"enterEmphasis":"leaveEmphasis"](l.moveHandle,1)},t.prototype._onDragMove=function(e,a,n,i){this._dragging=!0,er(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Qt([a,n],o,!0),l=this._updateInterval(e,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var e=this.dataZoomModel.get("realtime");!e&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(e){var a=this._size,n=this._displayables.sliderGroup.transformCoordToLocal(e.offsetX,e.offsetY);if(!(n[0]<0||n[0]>a[0]||n[1]<0||n[1]>a[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",n[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){var a=e.offsetX,n=e.offsetY;this._brushStart=new de(a,n),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var a=this._displayables.brushRect;if(this._brushing=!1,!!a){a.attr("ignore",!0);var n=a.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(n.width)<5)){var o=this._getViewExtent(),s=[0,100],l=this._handleEnds=[n.x,n.x+n.width],u=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();ca(0,l,o,0,u.minSpan!=null?ce(u.minSpan,s,o,!0):null,u.maxSpan!=null?ce(u.maxSpan,s,o,!0):null),this._range=_r([ce(l[0],o,s,!0),ce(l[1],o,s,!0)]),this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(er(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,a){var n=this._displayables,i=this.dataZoomModel,o=n.brushRect;o||(o=n.brushRect=new za({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(e,a),f=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),o.setShape({x:f[0],y:0,width:u[0]-f[0],height:c[1]})},t.prototype._dispatchZoomAction=function(e){var a=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?hT:null,start:a[0],end:a[1]})},t.prototype._findCoordRect=function(){var e,a=Xg(this.dataZoomModel).infoList;if(!e&&a.length){var n=a[0].model.coordinateSystem;e=n.getRect&&n.getRect()}if(!e){var i=this.api.getWidth(),o=this.api.getHeight();e={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return e},t.type="dataZoom.slider",t})($g);function pT(r){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[r]}function gT(r){return r==="vertical"?"ns-resize":"ew-resize"}function yT(r){r.registerComponentModel(lT),r.registerComponentView(dT),Kg(r)}function oD(r){Xe(sT),Xe(yT)}var ny={get:function(r,t,e){var a=ee((mT[r]||{})[t]);return e&&z(a)?a[a.length-1]:a}},mT={color:{active:["#006edd","#e0ffff"],inactive:[O.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},Hv=ze.mapVisual,_T=ze.eachVisual,ST=z,Wv=w,xT=_r,bT=ce,Ji=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,a,n){this.mergeDefaultAndTheme(e,n)},t.prototype.optionUpdated=function(e,a){var n=this.option;!a&&zM(n,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var a=this.stateList;e=Z(e,this),this.controllerVisuals=Ov(this.option.controller,a,e),this.targetVisuals=Ov(this.option.target,a,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesId,a=this.option.seriesIndex;a==null&&e==null&&(a="all");var n=da(this.ecModel,"series",{index:a,id:e},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return X(n,function(i){return i.componentIndex})},t.prototype.eachTargetSeries=function(e,a){w(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&e.call(a,i)},this)},t.prototype.isTargetSeries=function(e){var a=!1;return this.eachTargetSeries(function(n){n===e&&(a=!0)}),a},t.prototype.formatValueText=function(e,a,n){var i=this.option,o=i.precision,s=this.dataBound,l=i.formatter,u;n=n||["<",">"],z(e)&&(e=e.slice(),u=!0);var f=a?e:u?[c(e[0]),c(e[1])]:c(e);if($(l))return l.replace("{value}",u?f[0]:f).replace("{value2}",u?f[1]:f);if(j(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?n[0]+" "+f[1]:e[1]===s[1]?n[1]+" "+f[0]:f[0]+" - "+f[1];return f;function c(h){return h===s[0]?"min":h===s[1]?"max":(+h).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,a=xT([e.min,e.max]);this._dataExtent=a},t.prototype.getDataDimensionIndex=function(e){var a=this.option.dimension;if(a!=null)return e.getDimensionIndex(a);for(var n=e.dimensions,i=n.length-1;i>=0;i--){var o=n[i],s=e.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,a=this.option,n={inRange:a.inRange,outOfRange:a.outOfRange},i=a.target||(a.target={}),o=a.controller||(a.controller={});oe(i,n),oe(o,n);var s=this.isCategory();l.call(this,i),l.call(this,o),u.call(this,i,"inRange","outOfRange"),f.call(this,o);function l(c){ST(a.color)&&!c.inRange&&(c.inRange={color:a.color.slice().reverse()}),c.inRange=c.inRange||{color:e.get("gradientColor")}}function u(c,h,v){var d=c[h],p=c[v];d&&!p&&(p=c[v]={},Wv(d,function(y,g){if(ze.isValidType(g)){var m=ny.get(g,"inactive",s);m!=null&&(p[g]=m,g==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function f(c){var h=(c.inRange||{}).symbol||(c.outOfRange||{}).symbol,v=(c.inRange||{}).symbolSize||(c.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),y=p||"roundRect";Wv(this.stateList,function(g){var m=this.itemSize,_=c[g];_||(_=c[g]={color:s?d:[d]}),_.symbol==null&&(_.symbol=h&&ee(h)||(s?y:[y])),_.symbolSize==null&&(_.symbolSize=v&&ee(v)||(s?m[0]:[m[0],m[0]])),_.symbol=Hv(_.symbol,function(x){return x==="none"?y:x});var S=_.symbolSize;if(S!=null){var b=-1/0;_T(S,function(x){x>b&&(b=x)}),_.symbolSize=Hv(S,function(x){return bT(x,[0,b],[0,m[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:O.color.transparent,borderColor:O.color.borderTint,contentColor:O.color.theme[0],inactiveColor:O.color.disabled,borderWidth:0,padding:O.size.m,textGap:10,precision:0,textStyle:{color:O.color.secondary}},t})(re),Uv=[20,140],wT=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=Uv[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=Uv[1])},t.prototype._resetRange=function(){var e=this.getExtent(),a=this.option.range;!a||a.auto?(e.auto=1,this.option.range=e):z(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],e[0]),a[1]=Math.min(a[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),w(this.stateList,function(e){var a=this.option.controller[e].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),a=_r((this.get("range")||[]).slice());return a[0]>e[1]&&(a[0]=e[1]),a[1]>e[1]&&(a[1]=e[1]),a[0]<e[0]&&(a[0]=e[0]),a[1]<e[0]&&(a[1]=e[0]),a},t.prototype.getValueState=function(e){var a=this.option.range,n=this.getExtent(),i=J(this.option.unboundedRange,!0);return(i&&a[0]<=n[0]||a[0]<=e)&&(i&&a[1]>=n[1]||e<=a[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[];return this.eachTargetSeries(function(n){var i=[],o=n.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&i.push(l)},this),a.push({seriesId:n.id,dataIndex:i})},this),a},t.prototype.getVisualMeta=function(e){var a=Yv(this,"outOfRange",this.getExtent()),n=Yv(this,"inRange",this.option.range.slice()),i=[];function o(v,d){i.push({value:v,color:e(v,d)})}for(var s=0,l=0,u=n.length,f=a.length;l<f&&(!n.length||a[l]<=n[0]);l++)a[l]<n[s]&&o(a[l],"outOfRange");for(var c=1;s<u;s++,c=0)c&&i.length&&o(n[s],"outOfRange"),o(n[s],"inRange");for(var c=1;l<f;l++)(!n.length||n[n.length-1]<a[l])&&(c&&(i.length&&o(i[i.length-1].value,"outOfRange"),c=0),o(a[l],"outOfRange"));var h=i.length;return{stops:i,outerColors:[h?i[0].color:"transparent",h?i[h-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=ya(Ji.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:O.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:O.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:O.color.shadow}}),t})(Ji);function Yv(r,t,e){if(e[0]===e[1])return e.slice();for(var a=200,n=(e[1]-e[0])/a,i=e[0],o=[],s=0;s<=a&&i<e[1];s++)o.push(i),i+=n;return o.push(e[1]),o}var iy=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return t.prototype.init=function(e,a){this.ecModel=e,this.api=a},t.prototype.render=function(e,a,n,i){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,a,n,i)},t.prototype.renderBackground=function(e){var a=this.visualMapModel,n=Ln(a.get("padding")||0),i=e.getBoundingRect();e.add(new se({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,a,n){n=n||{};var i=n.forceState,o=this.visualMapModel,s={};if(a==="color"){var l=o.get("contentColor");s.color=l}function u(v){return s[v]}function f(v,d){s[v]=d}var c=o.controllerVisuals[i||o.getValueState(e)],h=ze.prepareVisualTypes(c);return w(h,function(v){var d=c[v];n.convertOpacityToAlpha&&v==="opacity"&&(v="colorAlpha",d=c.__alphaForOpacity),ze.dependsOn(v,a)&&d&&d.applyVisual(e,u,f)}),s[a]},t.prototype.positionGroup=function(e){var a=this.visualMapModel,n=this.api,i=Rr(a,n).refContainer;N0(e,a.getBoxLayoutParams(),i)},t.prototype.doRender=function(e,a,n,i){},t.type="visualMap",t})(He),Zv=[["left","right","width"],["top","bottom","height"]];function oy(r,t,e){var a=r.option,n=a.align;if(n!=null&&n!=="auto")return n;for(var i={width:t.getWidth(),height:t.getHeight()},o=a.orient==="horizontal"?1:0,s=Zv[o],l=[0,null,10],u={},f=0;f<3;f++)u[Zv[1-o][f]]=l[f],u[s[f]]=f===2?e[0]:a[s[f]];var c=[["x","width",3],["y","height",0]][o],h=rt(u,i,a.padding);return s[(h.margin[c[2]]||0)+h[c[0]]+h[c[1]]*.5<i[c[1]]*.5?0:1]}function mi(r,t){return w(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var pt=ce,CT=w,Xv=Math.min,xs=Math.max,MT=12,TT=6,DT=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return t.prototype.init=function(e,a){r.prototype.init.call(this,e,a),this._hoverLinkFromSeriesMouseOver=Z(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Z(this._hideIndicator,this)},t.prototype.doRender=function(e,a,n,i){(!i||i.type!=="selectDataRange"||i.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,a=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(a);var n=e.get("text");this._renderEndsText(a,n,0),this._renderEndsText(a,n,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},t.prototype._renderEndsText=function(e,a,n){if(a){var i=a[1-n];i=i!=null?i+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,f=this._applyTransform([l[0]/2,n===0?-s:l[1]+s],u),c=this._applyTransform(n===0?"bottom":"top",u),h=this._orient,v=this.visualMapModel.textStyleModel;this.group.add(new he({style:Te(v,{x:f[0],y:f[1],verticalAlign:v.get("verticalAlign")||(h==="horizontal"?"middle":c),align:v.get("align")||(h==="horizontal"?c:"center"),text:i})}))}},t.prototype._renderBar=function(e){var a=this.visualMapModel,n=this._shapes,i=a.itemSize,o=this._orient,s=this._useHandle,l=oy(a,this.api,i),u=n.mainGroup=this._createBarGroup(l),f=new pe;u.add(f),f.add(n.outOfRange=$v()),f.add(n.inRange=$v(null,s?qv(this._orient):null,Z(this._dragHandle,this,"all",!1),Z(this._dragHandle,this,"all",!0))),f.setClipPath(new se({shape:{x:0,y:0,width:i[0],height:i[1],r:3}}));var c=a.textStyleModel.getTextRect("国"),h=xs(c.width,c.height);s&&(n.handleThumbs=[],n.handleLabels=[],n.handleLabelPoints=[],this._createHandle(a,u,0,i,h,o),this._createHandle(a,u,1,i,h,o)),this._createIndicator(a,u,i,h,o),e.add(u)},t.prototype._createHandle=function(e,a,n,i,o,s){var l=Z(this._dragHandle,this,n,!1),u=Z(this._dragHandle,this,n,!0),f=rn(e.get("handleSize"),i[0]),c=at(e.get("handleIcon"),-f/2,-f/2,f,f,null,!0),h=qv(this._orient);c.attr({cursor:h,draggable:!0,drift:l,ondragend:u,onmousemove:function(g){er(g.event)}}),c.x=i[0]/2,c.useStyle(e.getModel("handleStyle").getItemStyle()),c.setStyle({strokeNoScale:!0,strokeFirst:!0}),c.style.lineWidth*=2,c.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),Rl(c,!0),a.add(c);var v=this.visualMapModel.textStyleModel,d=new he({cursor:h,draggable:!0,drift:l,onmousemove:function(g){er(g.event)},ondragend:u,style:Te(v,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[f,0],y=this._shapes;y.handleThumbs[n]=c,y.handleLabelPoints[n]=p,y.handleLabels[n]=d},t.prototype._createIndicator=function(e,a,n,i,o){var s=rn(e.get("indicatorSize"),n[0]),l=at(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:n[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof Et){var f=l.style;l.useStyle(U({image:f.image,x:f.x,y:f.y,width:f.width,height:f.height},u))}else l.useStyle(u);a.add(l);var c=this.visualMapModel.textStyleModel,h=new he({silent:!0,invisible:!0,style:Te(c,{x:0,y:0,text:""})});this.group.add(h);var v=[(o==="horizontal"?i/2:TT)+n[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=h,d.indicatorLabelPoint=v,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,a,n,i){if(this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([n,i],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():Kv(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,a=this._dataInterval=e.getSelected(),n=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[pt(a[0],n,i,!0),pt(a[1],n,i,!0)]},t.prototype._updateInterval=function(e,a){a=a||0;var n=this.visualMapModel,i=this._handleEnds,o=[0,n.itemSize[1]];ca(a,i,o,e,0);var s=n.getExtent();this._dataInterval=[pt(i[0],o,s,!0),pt(i[1],o,s,!0)]},t.prototype._updateView=function(e){var a=this.visualMapModel,n=a.getExtent(),i=this._shapes,o=[0,a.itemSize[1]],s=e?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,n,s,"inRange"),u=this._createBarVisual(n,n,o,"outOfRange");i.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),i.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(e,a,n,i){var o={forceState:i,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,o),l=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],u=this._createBarPoints(n,l);return{barColor:new wl(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,a){var n=100,i=[],o=(e[1]-e[0])/n;i.push({color:this.getControllerVisual(e[0],"color",a),offset:0});for(var s=1;s<n;s++){var l=e[0]+o*s;if(l>e[1])break;i.push({color:this.getControllerVisual(l,"color",a),offset:s/n})}return i.push({color:this.getControllerVisual(e[1],"color",a),offset:1}),i},t.prototype._createBarPoints=function(e,a){var n=this.visualMapModel.itemSize;return[[n[0]-a[0],e[0]],[n[0],e[0]],[n[0],e[1]],[n[0]-a[1],e[1]]]},t.prototype._createBarGroup=function(e){var a=this._orient,n=this.visualMapModel.get("inverse");return new pe(a==="horizontal"&&!n?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&n?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!n?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,a){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,o=n.handleThumbs,s=n.handleLabels,l=i.itemSize,u=i.getExtent(),f=this._applyTransform("left",n.mainGroup);CT([0,1],function(c){var h=o[c];h.setStyle("fill",a.handlesColor[c]),h.y=e[c];var v=pt(e[c],[0,l[1]],u,!0),d=this.getControllerVisual(v,"symbolSize");h.scaleX=h.scaleY=d/l[0],h.x=l[0]-d/2;var p=Qt(n.handleLabelPoints[c],Ka(h,this.group));if(this._orient==="horizontal"){var y=f==="left"||f==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=y}s[c].setStyle({x:p[0],y:p[1],text:i.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",n.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,a,n,i){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],f=this._shapes,c=f.indicator;if(c){c.attr("invisible",!1);var h={convertOpacityToAlpha:!0},v=this.getControllerVisual(e,"color",h),d=this.getControllerVisual(e,"symbolSize"),p=pt(e,s,u,!0),y=l[0]-d/2,g={x:c.x,y:c.y};c.y=p,c.x=y;var m=Qt(f.indicatorLabelPoint,Ka(c,this.group)),_=f.indicatorLabel;_.attr("invisible",!1);var S=this._applyTransform("left",f.mainGroup),b=this._orient,x=b==="horizontal";_.setStyle({text:(n||"")+o.formatValueText(a),verticalAlign:x?S:"middle",align:x?"center":S});var C={x:y,y:p,style:{fill:v}},T={style:{x:m[0],y:m[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var D={duration:100,easing:"cubicInOut",additive:!0};c.x=g.x,c.y=g.y,c.animateTo(C,D),_.animateTo(T,D)}else c.attr(C),_.attr(T);this._firstShowIndicator=!1;var A=this._shapes.handleLabels;if(A)for(var M=0;M<A.length;M++)this.api.enterBlur(A[M])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;this._shapes.mainGroup.on("mousemove",function(a){if(e._hovering=!0,!e._dragging){var n=e.visualMapModel.itemSize,i=e._applyTransform([a.offsetX,a.offsetY],e._shapes.mainGroup,!0,!0);i[1]=Xv(xs(0,i[1]),n[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,a){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var o=[0,i[1]],s=n.getExtent();e=Xv(xs(o[0],e),o[1]);var l=AT(n,s,o),u=[e-l,e+l],f=pt(e,o,s,!0),c=[pt(u[0],o,s,!0),pt(u[1],o,s,!0)];u[0]<o[0]&&(c[0]=-1/0),u[1]>o[1]&&(c[1]=1/0),a&&(c[0]===-1/0?this._showIndicator(f,c[1],"< ",l):c[1]===1/0?this._showIndicator(f,c[0],"> ",l):this._showIndicator(f,f,"≈ ",l));var h=this._hoverLinkDataIndices,v=[];(a||Kv(n))&&(v=this._hoverLinkDataIndices=n.findTargetDataIndices(c));var d=im(h,v);this._dispatchHighDown("downplay",mi(d[0],n)),this._dispatchHighDown("highlight",mi(d[1],n))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var a;if(ea(e.target,function(l){var u=te(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var n=this.ecModel.getSeriesByIndex(a.seriesIndex),i=this.visualMapModel;if(i.isTargetSeries(n)){var o=n.getData(a.dataType),s=o.getStore().get(i.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var n=0;n<a.length;n++)this.api.leaveBlur(a[n])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",mi(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,a,n,i){var o=Ka(a,i?null:this.group);return z(e)?Qt(e,o,n):Bl(e,o,n)},t.prototype._dispatchHighDown=function(e,a){a&&a.length&&this.api.dispatchAction({type:e,batch:a})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t})(iy);function $v(r,t,e,a){return new ha({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(n){er(n.event)},ondragend:a})}function AT(r,t,e){var a=MT/2,n=r.get("hoverLinkDataSize");return n&&(a=pt(n,t,e,!0)/2),a}function Kv(r){var t=r.get("hoverLinkOnHandle");return!!(t??r.get("realtime"))}function qv(r){return r==="vertical"?"ns-resize":"ew-resize"}var LT={type:"selectDataRange",event:"dataRangeSelected",update:"update"},IT=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},PT=[{createOnAllSeries:!0,reset:function(r,t){var e=[];return t.eachComponent("visualMap",function(a){var n=r.pipelineContext;!a.isTargetSeries(r)||n&&n.large||e.push(FM(a.stateList,a.targetVisuals,Z(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),e}},{createOnAllSeries:!0,reset:function(r,t){var e=r.getData(),a=[];t.eachComponent("visualMap",function(n){if(n.isTargetSeries(r)){var i=n.getVisualMeta(Z(kT,null,r,n))||{stops:[],outerColors:[]},o=n.getDataDimensionIndex(e);o>=0&&(i.dimension=o,a.push(i))}}),r.getData().setVisual("visualMeta",a)}}];function kT(r,t,e,a){for(var n=t.targetVisuals[a],i=ze.prepareVisualTypes(n),o={color:Zd(r.getData(),"color")},s=0,l=i.length;s<l;s++){var u=i[s],f=n[u==="opacity"?"__alphaForOpacity":u];f&&f.applyVisual(e,c,h)}return o.color;function c(v){return o[v]}function h(v,d){o[v]=d}}var jv=w;function RT(r){var t=r&&r.visualMap;z(t)||(t=t?[t]:[]),jv(t,function(e){if(e){jr(e,"splitList")&&!jr(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var a=e.pieces;a&&z(a)&&jv(a,function(n){K(n)&&(jr(n,"start")&&!jr(n,"min")&&(n.min=n.start),jr(n,"end")&&!jr(n,"max")&&(n.max=n.end))})}})}function jr(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var Qv=!1;function sy(r){Qv||(Qv=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(LT,IT),w(PT,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor(RT))}function ET(r){r.registerComponentModel(wT),r.registerComponentView(DT),sy(r)}var OT=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],BT[this._mode].call(this,this._pieceList),this._resetSelected(e,a);var i=this.option.categories;this.resetVisual(function(o,s){n==="categories"?(o.mappingMethod="category",o.categories=ee(i)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=X(this._pieceList,function(l){return l=ee(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,a={},n=ze.listVisualTypes(),i=this.isCategory();w(e.pieces,function(s){w(n,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),w(a,function(s,l){var u=!1;w(this.stateList,function(f){u=u||o(e,f,l)||o(e.target,f,l)},this),!u&&w(this.stateList,function(f){(e[f]||(e[f]={}))[l]=ny.get(l,f==="inRange"?"active":"inactive",i)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,a){var n=this.option,i=this._pieceList,o=(a?n:e).selected||{};if(n.selected=o,w(i,function(l,u){var f=this.getSelectedMapKey(l);o.hasOwnProperty(f)||(o[f]=!0)},this),n.selectedMode==="single"){var s=!1;w(i,function(l,u){var f=this.getSelectedMapKey(l);o[f]&&(s?o[f]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=ee(e)},t.prototype.getValueState=function(e){var a=ze.findPieceIndex(e,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[],n=this._pieceList;return this.eachTargetSeries(function(i){var o=[],s=i.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var f=ze.findPieceIndex(l,n);f===e&&o.push(u)},this),a.push({seriesId:i.id,dataIndex:o})},this),a},t.prototype.getRepresentValue=function(e){var a;if(this.isCategory())a=e.value;else if(e.value!=null)a=e.value;else{var n=e.interval||[];a=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return a},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var a=[],n=["",""],i=this;function o(f,c){var h=i.getRepresentValue({interval:f});c||(c=i.getValueState(h));var v=e(h,c);f[0]===-1/0?n[0]=v:f[1]===1/0?n[1]=v:a.push({value:f[0],color:v},{value:f[1],color:v})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return w(s,function(f){var c=f.interval;c&&(c[0]>u&&o([u,c[0]],"outOfRange"),o(c.slice()),u=c[1])},this),{stops:a,outerColors:n}},t.type="visualMap.piecewise",t.defaultOption=ya(Ji.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t})(Ji),BT={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),a=this.getExtent(),n=t.splitNumber;n=Math.max(parseInt(n,10),1),t.splitNumber=n;for(var i=(a[1]-a[0])/n;+i.toFixed(e)!==i&&e<5;)e++;t.precision=e,i=+i.toFixed(e),t.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<n;s+=i,o++){var l=o===n-1?a[1]:s+i;r.push({interval:[s,l],close:[1,1]})}t.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),zu(r),w(r,function(u,f){u.index=f,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var t=this.option;w(t.categories,function(e){r.push({text:this.formatValueText(e,!0),value:e})},this),Jv(t,r)},pieces:function(r){var t=this.option;w(t.pieces,function(e,a){K(e)||(e={value:e});var n={text:"",index:a};if(e.label!=null&&(n.text=e.label),e.hasOwnProperty("value")){var i=n.value=e.value;n.interval=[i,i],n.close=[1,1]}else{for(var o=n.interval=[],s=n.close=[0,0],l=[1,0,1],u=[-1/0,1/0],f=[],c=0;c<2;c++){for(var h=[["gte","gt","min"],["lte","lt","max"]][c],v=0;v<3&&o[c]==null;v++)o[c]=e[h[v]],s[c]=l[v],f[c]=v===2;o[c]==null&&(o[c]=u[c])}f[0]&&o[1]===1/0&&(s[0]=0),f[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(n.value=o[0])}n.visual=ze.retrieveVisuals(e),r.push(n)},this),Jv(t,r),zu(r),w(r,function(e){var a=e.close,n=[["<","≤"][a[1]],[">","≥"][a[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,n)},this)}};function Jv(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var NT=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var a=this.visualMapModel,n=a.get("textGap"),i=a.textStyleModel,o=this._getItemAlign(),s=a.itemSize,l=this._getViewData(),u=l.endsText,f=an(a.get("showLabel",!0),!u),c=!a.get("selectedMode");u&&this._renderEndsText(e,u[0],s,f,o),w(l.viewPieceList,function(h){var v=h.piece,d=new pe;d.onclick=Z(this._onItemClick,this,v),this._enableHoverLink(d,h.indexInModelPieceList);var p=a.getRepresentValue(v);if(this._createItemSymbol(d,p,[0,0,s[0],s[1]],c),f){var y=this.visualMapModel.getValueState(p),g=i.get("align")||o;d.add(new he({style:Te(i,{x:g==="right"?-n:s[0]+n,y:s[1]/2,text:v.text,verticalAlign:i.get("verticalAlign")||"middle",align:g,opacity:J(i.get("opacity"),y==="outOfRange"?.5:1)}),silent:c}))}e.add(d)},this),u&&this._renderEndsText(e,u[1],s,f,o),na(a.get("orient"),e,a.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,a){var n=this;e.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(o){var s=n.visualMapModel;s.option.hoverLink&&n.api.dispatchAction({type:o,batch:mi(s.findTargetDataIndices(a),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,a=e.option;if(a.orient==="vertical")return oy(e,this.api,e.itemSize);var n=a.align;return(!n||n==="auto")&&(n="left"),n},t.prototype._renderEndsText=function(e,a,n,i,o){if(a){var s=new pe,l=this.visualMapModel.textStyleModel;s.add(new he({style:Te(l,{x:i?o==="right"?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?o:"center",text:a})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,a=X(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),n=e.get("text"),i=e.get("orient"),o=e.get("inverse");return(i==="horizontal"?o:!o)?a.reverse():n&&(n=n.slice().reverse()),{viewPieceList:a,endsText:n}},t.prototype._createItemSymbol=function(e,a,n,i){var o=at(this.getControllerVisual(a,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(a,"color"));o.silent=i,e.add(o)},t.prototype._onItemClick=function(e){var a=this.visualMapModel,n=a.option,i=n.selectedMode;if(i){var o=ee(n.selected),s=a.getSelectedMapKey(e);i==="single"||i===!0?(o[s]=!0,w(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t})(iy);function VT(r){r.registerComponentModel(OT),r.registerComponentView(NT),sy(r)}function sD(r){Xe(ET),Xe(VT)}var zT=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,a,n){r.prototype.init.call(this,e,a,n),this._sourceManager=new Ld(this),kf(this)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),kf(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:ft},t})(re),FT=(function(r){W(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t})(He);function GT(r){r.registerComponentModel(zT),r.registerComponentView(FT)}Xe([Gb,GT]);Xe(Fb);export{xp as S,$T as a,ZT as b,YT as c,Ai as d,XT as e,vp as f,rt as g,WT as h,Gb as i,aD as j,UT as k,ce as l,jT as m,qT as n,KT as o,JT as p,nD as q,ux as r,iD as s,tD as t,Xe as u,sD as v,oD as w,QT as x,rD as y,eD as z};