@sheetxl/mcp 0.8.0-beta.24 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/assets/{Cf0zmfQYfJ7zM0Ya.js → 0WuReGsjIpidu0Cr.js} +1 -1
  2. package/assets/{B6caaQsfOpFEgYQ4.js → 13QanvzRbNib7VHR.js} +1 -1
  3. package/assets/{DGI_8HyNF0eAv0P5.js → 2c1OYsVAy_w-ex-F.js} +1 -1
  4. package/assets/{B-t1q2NS61c2B8E4.js → 8114GVvAL1oaiJLV.js} +1 -1
  5. package/assets/{B16G2473LTkZP6Mq.js → 8hLtXHueDl7B_SEn.js} +1417 -1356
  6. package/assets/{DRzZ4bEyLRGVOLzV.js → 8mWHFnE0j-CaNsxr.js} +1 -1
  7. package/assets/{DaF9L7No8h8a-cqb.js → B-b7HyruDF2gdj3R.js} +2 -2
  8. package/assets/{CmkgQ5-IG0BSCM3R.js → B3J6davzttys1e7l.js} +3 -3
  9. package/assets/{doqBmhonQlHp-1Ud.js → B3lrS_GHkG6Mw5pN.js} +1 -1
  10. package/assets/{CnI4Nli8vtWdFKvf.js → B5rrqMYFybo3oW9k.js} +21 -21
  11. package/assets/{D6d1DKL15m52ZCuC.js → BB39UJoWw8tjThqY.js} +1 -1
  12. package/assets/{DtVSjxL6N_7WyM8Z.js → BBF_CDIKB2NIXiHg.js} +1 -1
  13. package/assets/{DE7G34oYbvrfXbJ7.js → BBLuTiY3V4MpFphK.js} +294 -294
  14. package/assets/{DM-yGHahbfA_uarn.js → BBZUslaSLC0vlZEb.js} +1 -1
  15. package/assets/{sJVPCrgeh0U6LbAK.js → BCdXK-2-AE6FAdRs.js} +1 -1
  16. package/assets/{CUYQlZz5zWsUdmRy.js → BF0C-5gSMHWBXI_k.js} +1 -1
  17. package/assets/{Xccc6oxtlSvJUDsC.js → BKGTzaNNBlRh7ua3.js} +1 -1
  18. package/assets/BOa1dD_9H3g65WbP.js +14 -0
  19. package/assets/{C-nA4SXN5hWHaxV6.js → BPlrBhzIqyWK19E2.js} +526 -526
  20. package/assets/{xD41vsQY6h60lCqz.js → BR4Wpxs0eSlaoLOl.js} +8 -8
  21. package/assets/{CSXmTA6w6Pnbtqvb.js → BTB4fa2DU21pP7At.js} +1 -1
  22. package/assets/{bv3fZLUPzd14I58C.js → BTamKr78GfsihW1a.js} +485 -485
  23. package/assets/{BPNLZ07Bu_B8Yhf1.js → BVfjBXAMgo4u8Y72.js} +1 -1
  24. package/assets/{TZnuVwhVjkOBax9F.js → BaZAIwIrqn1x69WH.js} +2 -2
  25. package/assets/{b8yACuWy67eIj_j2.js → Ban4yk1SYcz9Cs7n.js} +1 -1
  26. package/assets/{Ds4TB1hn56-RK6_f.js → BfB7Vq09p5uO-L88.js} +1 -1
  27. package/assets/{DOSWSyKkK4eSi4PD.js → BfEmSaLbKgcjIIpn.js} +2 -2
  28. package/assets/{DkQ4kxEKhKYQgfjK.js → Bfpf9b1s1bWyBXIw.js} +1 -1
  29. package/assets/{BrYc6PLonux_gI6b.js → BgHOi7rAHLhztiz-.js} +215 -215
  30. package/assets/{3VycPrqi6qgLOgGY.js → BgN67gyTyx_xz2Ny.js} +6 -6
  31. package/assets/{yz2PTfYm_8EGJPM5.js → BhxIJ8xdUxyMPJ_m.js} +1 -1
  32. package/assets/{Jy-_0a72nn5Iv1NK.js → BlMUrEA8V2S2KH0D.js} +1 -1
  33. package/assets/{CM-q_J5aF6YXmjeu.js → BloJ-e8xad1b_H7X.js} +3 -3
  34. package/assets/{C6PNMev7cs5JLgwy.js → Bm-wDNSoT-3JD2bJ.js} +1 -1
  35. package/assets/{BaYk1vO2hP2S3_1w.js → BoE9cj92LVH2LLy0.js} +2 -2
  36. package/assets/{g2Nu44uuSJFMzxEV.js → BqH4txhrgR2S-2ji.js} +2 -2
  37. package/assets/{DPYFRLJbHGlrcrJq.js → BrHXHm2FNXsL53bo.js} +2 -2
  38. package/assets/{CnKX5SPVE2iuSK42.js → BuFb0lPxYlHccrD9.js} +1 -1
  39. package/assets/{BkekCZ17YTtd07_C.js → ByGn4tk2SE1MH_sZ.js} +2 -2
  40. package/assets/{Cxzowsi6ASdZtzeI.js → C1IE0F-y65XqEYRl.js} +1 -1
  41. package/assets/{7vPlH3_rhJxmmBvG.js → C1JeIUEWW-RL1Rnu.js} +1 -1
  42. package/assets/{a2e_g9YI3J-lUD7-.js → C2sDVxKGBNlTFg6y.js} +1 -1
  43. package/assets/{D_tdoUtUe7cApQJn.js → C30apcFVvDHn2M4R.js} +4 -4
  44. package/assets/{TdDTOcC1TYhk6UuR.js → C3c2PUtIo-aWbjw4.js} +1 -1
  45. package/assets/{suLYEZBtGUhSYeB7.js → C4C3Ot0xeo1O0wm5.js} +1 -1
  46. package/assets/{By1QPrSxtnRiJu0R.js → C8zzCf71C976X7SG.js} +2 -2
  47. package/assets/{BxwB3iTNSE1TgHkb.js → CCS6r_ru_-bq12nu.js} +1 -1
  48. package/assets/{DNSWaXblwhTtI3w7.js → CDDtXZTG6nNFBQZP.js} +1 -1
  49. package/assets/{DL8pez0eKo8arYPj.js → CEa6wNiDRZrans9S.js} +3 -3
  50. package/assets/{Daaro0HbHkKXkBP-.js → CF1fqmS030ry2XQ0.js} +2 -2
  51. package/assets/{P6V3JAiRpC3BWceC.js → CFqF3aUKvOGFOK9O.js} +1 -1
  52. package/assets/{BH7ctzMzOYVTGxzA.js → CI8Pu3ko8VzQYdRD.js} +1 -1
  53. package/assets/{9GnbVPKozgrJpeLW.js → CICMJpasl9o4FaZi.js} +1 -1
  54. package/assets/{CIw6ZC3K9x-ccacl.js → CJcyMzG19TOjqNHS.js} +1 -1
  55. package/assets/{2YT_wstXIH6UIigi.js → CJoREr6-3iOl7iU_.js} +1 -1
  56. package/assets/{B4uS01J0mrSJSftQ.js → CMd7aLIwOA7bxcZm.js} +88 -88
  57. package/assets/{CpvJUGg9ckuCIpIS.js → CNikOloX_losH8Nz.js} +1 -1
  58. package/assets/{C0uu0vLKQh0S508B.js → CRZMD-wS-944FnD_.js} +40 -40
  59. package/assets/{CJ2hV-9ipqOEkLSG.js → CRlLpD9cfhJ9Ov9L.js} +1 -1
  60. package/assets/{DwNcvKM47ZHfvQM6.js → CS07BBUu6ZtXk4TZ.js} +1 -1
  61. package/assets/{DyiH3LlinD-38bG7.js → CX-LNahzNZRc78er.js} +1 -1
  62. package/assets/{DuEtCJEnG_GnJzTX.js → CY3Lmr-fgs6NqXRp.js} +1 -1
  63. package/assets/{KMzONx2Ps841nJHj.js → CbkCnjWs7Fpj5iQY.js} +8 -8
  64. package/assets/{Dlqk7XqKnAZ8Pcj3.js → CdbucPAmUkkc5pcM.js} +155 -156
  65. package/assets/{DRq6lQLndj73WT35.js → CfBJzpZuy1o216iZ.js} +1 -1
  66. package/assets/{Dk9zYXO3VoBhTdex.js → CoSNTR-pg7BZAU7o.js} +1 -1
  67. package/assets/{CFWwwr74qRKOBrg9.js → CpoqmW4E7rFdkRpf.js} +1 -1
  68. package/assets/{BAVltO4Xf7lC0Xr6.js → Cs1df4D35bBjqyvX.js} +1 -1
  69. package/assets/{DIgPlkEabQdKNUQn.js → CsPyLus3kh4QnahD.js} +1 -1
  70. package/assets/{DXCTHw-ZutNIuo_2.js → Cwe_kiigxAfceEK9.js} +1 -1
  71. package/assets/{CzRvg04_TIbwBH5C.js → CwzSgovxnBMrgLmJ.js} +3 -3
  72. package/assets/{BnNB_ejvNaLu6B3o.js → D31pY9r4JAFWw3E4.js} +1 -1
  73. package/assets/DCWHNfq5qCxvALwe.js +199 -0
  74. package/assets/{DGOgx3-IyO8bjF_t.js → DF9WfdyjHuCpsEXh.js} +63 -63
  75. package/assets/{LM2rVDHdB0jVUFcT.js → DOIpXsEXCaI-8VwJ.js} +1 -1
  76. package/assets/{76dPHG5RYA7MUV_g.js → DOXj80NXiglJXsMZ.js} +3 -3
  77. package/assets/{CR1aLf7CWEfPTO9a.js → DQ2vEDfVfsIGSmId.js} +1 -1
  78. package/assets/{Dhy6iU_09lrQnOAV.js → DQtnL5nOzSzVJhit.js} +61 -61
  79. package/assets/{CCF6CwJ6cbeLRl23.js → DRcmbp80jMRjxelW.js} +1 -1
  80. package/assets/{CFNtPYPfDPH-3BXK.js → DRy0AcTiSKQY3bih.js} +1 -1
  81. package/assets/{tWO-mE87mAuj1qih.js → DWr6GqsnMpLwSUno.js} +2 -2
  82. package/assets/{ByYJTTTUuu67hDF-.js → DXrX5tIZ1J5BhpFk.js} +4 -4
  83. package/assets/{CmwNIrRssYuLN2fn.js → DZxHk5oKIVvu3iJR.js} +458 -458
  84. package/assets/{CbJWbjmv4bz4ppIZ.js → Da0CtWhc7saaOdER.js} +318 -318
  85. package/assets/{mZt9BTEejCJZ4YK4.js → Dbi1_JHT_4u0nhwc.js} +1 -1
  86. package/assets/{C9iFJ52KwQTePQ81.js → Dcw7GSCgw_dgsum7.js} +11490 -11497
  87. package/assets/{fEfisM0E2fUYKIyU.js → DfuY8GdoSk8LxDFW.js} +5 -5
  88. package/assets/{CT4czEKWIj1GeQN8.js → DlARYdaCOVKiQzMH.js} +1 -1
  89. package/assets/{BJwiwzwx4Bl5L4Vq.js → DngX5ZuqqFGTp44B.js} +1 -1
  90. package/assets/{DFVQIZ2zZyAphhCF.js → DpwdC4SN_VYB9_ho.js} +1 -1
  91. package/assets/{CIY_RiLu1_FmRLAA.js → Dst0tyK__q2Q_AKk.js} +1 -1
  92. package/assets/{BrJd9jVVv9SQzZol.js → DvHZEP1wpb6549uf.js} +423 -423
  93. package/assets/{DMDTS0LH9Ke9t-3z.js → DzYvbv5u7E2H7IoB.js} +12 -7
  94. package/assets/{BjyXkr-CzV8mVx0t.js → G489eYf-lt3D1riX.js} +1 -1
  95. package/assets/{CKD460cQOgwF6uSV.js → L42Y17f0HUEpfS6U.js} +1 -1
  96. package/assets/{flby0g5gyZ9P2Wu2.js → O3m_QwxIRXMPFTB8.js} +1 -1
  97. package/assets/{7IzItpr7MkdnaAwh.js → P3Or6rEY-fHmQZbH.js} +69 -69
  98. package/assets/{DaHD9SY75O8wDy3p.js → PAzPVx_0jajb_7cO.js} +2 -2
  99. package/assets/{DJfpKncnYnrr28G0.js → PvRzzufo1V8BuC-I.js} +1 -1
  100. package/assets/{CFT_tDogP98gTbh7.js → Sm1ouHLiXlCuQVKV.js} +79 -79
  101. package/assets/{D-vo2bQyAmStQmD9.js → WC-THJfezYSFdiMF.js} +1 -1
  102. package/assets/{DczQhB3mRSUw6GCf.js → YK80feN98r6GVZv5.js} +1 -1
  103. package/assets/{DPLTGglaPovTg9e5.js → cl0C9YlF3Ds-lHps.js} +1 -1
  104. package/assets/{BXWGS09xFG81nnIT.js → eExV3IoVMxYkv5GO.js} +1 -1
  105. package/assets/{qc7rA-Z3a4rkVQPx.js → g3TrQtFS0qJZeshT.js} +215 -215
  106. package/assets/{B8bEJ65vQRqsfBlS.js → gf6l-4XXMXtq8hpJ.js} +5 -5
  107. package/assets/{CEk658HeLJk2cAjM.js → hiKRbrdbpmJglbWC.js} +3 -3
  108. package/assets/{D8k9de_hen-KqBWe.js → j4zqu8S2Be_yum7W.js} +1 -1
  109. package/assets/{Ch9w7xFxVMrvGuC_.js → jNZ7exipVCGRPbzr.js} +1 -1
  110. package/assets/{MosMza0-rXD8uHX_.js → kThU6e6dkzEoaK6n.js} +2 -2
  111. package/assets/{DJGYlGr2Zj7SkYqc.js → knMcDWv3xN7yJBTT.js} +1 -1
  112. package/assets/{BJqo8c5bFKjnq69G.js → ov7L79VlksT4fw7T.js} +11 -11
  113. package/assets/{BifwlrCmEVtjh_1U.js → pLM8Pxl1CscUdvMh.js} +1 -1
  114. package/assets/{NAWWzA_hk4wYtsPP.js → pfa2CH5NQuzku6FP.js} +2 -2
  115. package/assets/{B-5mBXpY9i6-eCrZ.js → q6advQx4x6PXvl0i.js} +35 -35
  116. package/assets/{BWLavTnANLUerdS0.js → qVBjd-c5B8neljc0.js} +2 -2
  117. package/assets/{DqSBb1HmgeU7eg_i.js → rlgXnCh6A88ozBRz.js} +110 -110
  118. package/assets/{DUbIxDAzW1dzrtdI.js → rzi2XAwlfy8BsGEa.js} +1 -1
  119. package/assets/{B7lATTNffVTrDsKE.js → xGASRbzSVVKfEAh-.js} +2 -2
  120. package/assets/{BkHeIMSE7-LehRCs.js → ybnQoU8_KttlHjiy.js} +1 -1
  121. package/index.js +145 -145
  122. package/lib.js +1 -1
  123. package/licenses/dependencies.txt +45 -45
  124. package/package.json +2 -2
  125. package/screenshot-page/assets/-HdF7KAN8PKqrASL.js +1 -0
  126. package/screenshot-page/assets/{C_YKEkTsGB_5gFNg.js → 0P0DnZolMnjPhiea.js} +2 -2
  127. package/screenshot-page/assets/{FcTM4SB17cEX1M3X.js → 5Y11BWntgqmzo9dz.js} +1 -1
  128. package/screenshot-page/assets/{Cx9eq2x1gIXGki3Q.js → B-E9Dzx1wh9RA2yC.js} +1 -1
  129. package/screenshot-page/assets/{CXwbGzavyvYgDbWU.js → B0CDAMDdxSN4en9k.js} +1 -1
  130. package/screenshot-page/assets/B39YZkEvc1U8ZQ8H.js +2 -0
  131. package/screenshot-page/assets/B8Dy_WA9RlWuvMqF.js +4 -0
  132. package/screenshot-page/assets/BAzHRU12l2vyyXq-.js +39 -0
  133. package/screenshot-page/assets/{DR-og7vslxlOZd8j.js → BGIujWi3UayyIWlg.js} +1 -1
  134. package/screenshot-page/assets/BNjmzbnQlBmX-HPQ.js +1 -0
  135. package/screenshot-page/assets/{B-0-chiwq4MIUQy9.js → BOF6KOmT8mH_NQnA.js} +1 -1
  136. package/screenshot-page/assets/{DcrVJCyDwGKeil2U.js → BQTLEc84Eql61S2m.js} +1 -1
  137. package/screenshot-page/assets/{clrFU8i-0wNkmbs7.js → BfkbiKKbYlPpRZqZ.js} +1 -1
  138. package/screenshot-page/assets/{DGkaCFHx4PsOJkFu.js → BhHceo22V3IBfap0.js} +1 -1
  139. package/screenshot-page/assets/{Cx1kZ2u_8JFV2Q8D.js → BiRVjUOUI8Qv0CE1.js} +1 -1
  140. package/screenshot-page/assets/{D6EXAYU-ZH8hjx_7.js → Bne-AygyF1USkPAy.js} +2 -2
  141. package/screenshot-page/assets/{Dkf51CnZh2zPEGMd.js → BpJaTpbR_CQzXj9M.js} +1 -1
  142. package/screenshot-page/assets/{B7pXfEVkcbaMBMhc.js → BrEXXxB9tAI5mmZP.js} +1 -1
  143. package/screenshot-page/assets/{CwCu_r0BW41uLt3P.js → Bt7fKk5ZupUuo_xD.js} +2 -2
  144. package/screenshot-page/assets/BwYQTcPRDDYIeAA5.js +586 -0
  145. package/screenshot-page/assets/ByyC3p23DsLAbUpr.js +1 -0
  146. package/screenshot-page/assets/{D7Yt7xmUlA6-Lq0Q.js → BzI5CCx73aXausKb.js} +9 -9
  147. package/screenshot-page/assets/{DM6hr-bvWV50-Oex.js → C-2hBFk27roWkIrQ.js} +2 -2
  148. package/screenshot-page/assets/{BTJ1NNUzHotNDiDe.js → CAKBmg6tXRtjEWgb.js} +2 -2
  149. package/screenshot-page/assets/CALWodHqzUTIv9le.js +5 -0
  150. package/screenshot-page/assets/{BcZPWw18bdj_ZvA9.js → CGNsyKbDXXz9qMa2.js} +1 -1
  151. package/screenshot-page/assets/CGZYePkVGI5DPBBY.js +1 -0
  152. package/screenshot-page/assets/{Bfq6-treWd_rRiWl.js → CJAgr6wyQGYAd3ZV.js} +1 -1
  153. package/screenshot-page/assets/{BKwDvElKinpn1IK0.js → CL_hAngRQwm_KGdR.js} +1 -1
  154. package/screenshot-page/assets/COL9dj40ytErlGak.js +2 -0
  155. package/screenshot-page/assets/CWA4xGjOeBuxJOzW.js +3 -0
  156. package/screenshot-page/assets/{r2HZG9_SMzF3__ID.js → CX-ITg5RXdV2cefd.js} +6 -6
  157. package/screenshot-page/assets/{C7mXat-6esc1AmRD.js → CXeDqC02BZcixiHS.js} +2 -2
  158. package/screenshot-page/assets/{Pt9ne0xkE2icD3Ih.js → CZaKvnrRdlLj1_X8.js} +1 -1
  159. package/screenshot-page/assets/{a3fvt1Klg1uGE7p6.js → Cg9eIWL8fPmeZFHG.js} +7 -7
  160. package/screenshot-page/assets/{DyxJBLjUkeDuu96F.js → CltB1nb5HHSmYrNG.js} +1 -1
  161. package/screenshot-page/assets/{FqdZRM336KMEcsbU.js → Cq1EzIAt4dHBkzfP.js} +1 -1
  162. package/screenshot-page/assets/{D6Yv5cc1JE7DGd6j.js → CqBSIwwGzWl8mrBe.js} +1 -1
  163. package/screenshot-page/assets/D2TibFqUBAPLcu_2.js +1 -0
  164. package/screenshot-page/assets/{ChSvXfVMLxZsP9zG.js → D4RZZdlItfrgQHcE.js} +1 -1
  165. package/screenshot-page/assets/{J73KTOmdZGNmnq-z.js → D72Rp__0TEqJ972a.js} +1 -1
  166. package/screenshot-page/assets/D8EmNst-H2v0eWcf.js +1 -0
  167. package/screenshot-page/assets/{Tj3B5At0OAN3tDza.js → DACqwpSwlZka3b7s.js} +1 -1
  168. package/screenshot-page/assets/DEy3e1rY-XMdI309.js +1 -0
  169. package/screenshot-page/assets/{CI3Z1f4amZ9G2rPD.js → DJebrQ5mu8uxpX3b.js} +1 -1
  170. package/screenshot-page/assets/{DynKB5GH-vfFMJEy.js → DOsZiE9rOdS_Mm2Q.js} +1 -1
  171. package/screenshot-page/assets/{CSFFMEKyxEFaykqL.js → DTAKTGn53yF_B621.js} +1 -1
  172. package/screenshot-page/assets/{D6Ciix7JAZtdKqmj.js → DYYzsN95gWMsxOaj.js} +1 -1
  173. package/screenshot-page/assets/{DOVt9zHz7FQ2KUQM.js → Da_VIghRFdNrmfZT.js} +1 -1
  174. package/screenshot-page/assets/DaqAdr-mtpVZMOS8.js +2 -0
  175. package/screenshot-page/assets/{0UZBKpOOsp7P-DkP.js → DdmX3djBOA6UCZtf.js} +2 -2
  176. package/screenshot-page/assets/{DEpn6VGd30cHEJOS.js → DfQS5zAy3pN31xNb.js} +1 -1
  177. package/screenshot-page/assets/DhnaoxNYwMobAVP6.js +1 -0
  178. package/screenshot-page/assets/{B-8IMo2f1yGNXOyz.js → GxbRmvyoKhHl0ZYY.js} +13 -8
  179. package/screenshot-page/assets/{zvxBjll3jnL0-vNn.js → Np3jWxG724t5hLHZ.js} +2 -2
  180. package/screenshot-page/assets/{Bg9UyX4yrB2mSdJt.js → QVGvXAvlw1c8vZjy.js} +12 -12
  181. package/screenshot-page/assets/{BbT5KRhoeAKLzy54.js → d8BvDCByceUNvHp7.js} +2 -2
  182. package/screenshot-page/assets/eR9_DaySoB72PvMo.js +1 -0
  183. package/screenshot-page/assets/{CtiTwHzd_ZSzd3W2.js → hB5riGkPy0wXVIig.js} +1 -1
  184. package/screenshot-page/assets/hHvAGynpTvAb97GX.js +1 -0
  185. package/screenshot-page/assets/jFfcyGJ9xruiOUyS.js +1 -0
  186. package/screenshot-page/assets/{DmDFKv_3APEWI-IY.js → jKvAZg0Tp701aw1o.js} +2 -2
  187. package/screenshot-page/assets/{DACSL7FA_J91Z_H7.js → jteb4n23QwBT9m_4.js} +1 -1
  188. package/screenshot-page/assets/mzrDp0emvkWnkXBt.js +1 -0
  189. package/screenshot-page/index.html +15 -15
  190. package/types/scripting-api.json +1 -1
  191. package/types/scripting.d.ts +2 -2
  192. package/assets/6CBUVbF01Bedq0e2.js +0 -199
  193. package/assets/Dfv_T_PQVL0O3lu5.js +0 -14
  194. package/screenshot-page/assets/BDRMUi2BsnBqytIq.js +0 -2
  195. package/screenshot-page/assets/BEjJHVSbtlsNtoq7.js +0 -3
  196. package/screenshot-page/assets/BIuMiduMHSsTGacU.js +0 -2
  197. package/screenshot-page/assets/BPMQ22uISGOm3ymr.js +0 -1
  198. package/screenshot-page/assets/Bxq4FCQhyPbVhhaR.js +0 -2
  199. package/screenshot-page/assets/CNB6WmYfGVZjlCKV.js +0 -5
  200. package/screenshot-page/assets/CXeJV1BW2CVemhPE.js +0 -1
  201. package/screenshot-page/assets/CkxmJxdtjBIxYoMq.js +0 -1
  202. package/screenshot-page/assets/D43IayseD2Cy8OZo.js +0 -4
  203. package/screenshot-page/assets/D8KyhLvfyjLZW92H.js +0 -39
  204. package/screenshot-page/assets/DBxAatsD6aWk7Zb6.js +0 -586
  205. package/screenshot-page/assets/DMhOGCTy8V0N14gY.js +0 -1
  206. package/screenshot-page/assets/DSTlKGmqncM7XHeW.js +0 -1
  207. package/screenshot-page/assets/Dh14XQinAphjZOKC.js +0 -1
  208. package/screenshot-page/assets/Dt8JxbBBr2TeDflQ.js +0 -1
  209. package/screenshot-page/assets/Dxi-bXNjS-CpC5Qr.js +0 -1
  210. package/screenshot-page/assets/Oay0yGsGYgJDzy8r.js +0 -1
  211. package/screenshot-page/assets/QZg76Jflu3Q808W3.js +0 -1
  212. package/screenshot-page/assets/WTrYzPnMQhYDILMR.js +0 -1
  213. package/screenshot-page/assets/qFyplGXRu7IepHio.js +0 -1
@@ -0,0 +1,5 @@
1
+ import{t as e}from"./DKVB6ddRfDJatYid.js";import{Q as t,bt as n,rt as r}from"./COL9dj40ytErlGak.js";import{r as i}from"./DYYzsN95gWMsxOaj.js";import{$ as a,$n as o,$r as s,$t as c,A as l,Ai as u,An as d,Ar as f,At as p,B as m,Bn as h,Br as g,Bt as _,C as v,Ci as y,Cn as b,Cr as x,Ct as S,D as C,Di as w,Dn as T,Dr as E,Dt as D,E as O,Ei as k,En as A,Er as j,Et as M,F as N,Fi as P,Fn as F,Fr as ee,Ft as I,G as te,Gn as L,Gr as ne,Gt as re,H as ie,Hn as ae,Hr as oe,Ht as se,I as ce,Ii as le,In as ue,Ir as de,It as fe,J as pe,Jn as me,Jr as he,Jt as ge,K as _e,Kn as ve,Kr as ye,Kt as be,L as xe,Ln as Se,Lr as Ce,Lt as we,M as R,Mi as Te,Mn as Ee,Mr as De,Mt as Oe,N as ke,Ni as Ae,Nn as je,Nr as Me,Nt as Ne,O as Pe,Oi as Fe,On as Ie,Or as Le,Ot as Re,P as ze,Pi as Be,Pn as Ve,Pr as He,Pt as Ue,Q as We,Qn as Ge,Qr as Ke,Qt as qe,R as Je,Rn as Ye,Rr as z,Rt as Xe,S as B,Si as Ze,Sn as Qe,Sr as V,St as $e,T as et,Ti as tt,Tn as nt,Tr as rt,Tt as it,U as at,Un as ot,Ur as st,Ut as ct,V as lt,Vn as ut,Vr as dt,Vt as ft,W as pt,Wn as mt,Wr as ht,Wt as gt,X as _t,Xn as vt,Xr as yt,Xt as bt,Y as xt,Yn as H,Yr as St,Yt as Ct,Z as wt,Zn as Tt,Zr as Et,Zt as Dt,_ as Ot,_i as kt,_n as At,_r as jt,_t as Mt,a as Nt,ai as Pt,an as Ft,ar as It,at as Lt,b as Rt,bi as zt,bn as Bt,br as Vt,bt as Ht,c as Ut,ci as Wt,cn as Gt,cr as Kt,ct as qt,d as Jt,di as Yt,dn as Xt,dr as Zt,dt as Qt,ei as $t,en,er as tn,et as nn,f as rn,fi as an,fn as on,fr as sn,ft as cn,g as ln,gi as un,gn as dn,gr as U,gt as fn,h as pn,hi as mn,hn,hr as gn,ht as _n,i as vn,ii as yn,in as bn,ir as xn,it as Sn,j as Cn,ji as W,jn as wn,jr as Tn,jt as En,k as Dn,ki as On,kn,kr as An,kt as jn,l as Mn,li as Nn,ln as Pn,lr as Fn,lt as G,m as In,mi as Ln,mn as Rn,mr as zn,mt as Bn,n as Vn,ni as Hn,nn as K,nr as Un,nt as Wn,o as Gn,oi as Kn,on as qn,or as Jn,ot as Yn,p as Xn,pi as Zn,pn as Qn,pr as $n,pt as er,q as tr,qn as nr,qr as rr,qt as ir,r as ar,ri as or,rn as sr,rr as cr,rt as q,s as lr,si as ur,sn as dr,sr as fr,st as J,t as pr,ti as Y,tn as mr,tr as hr,tt as gr,u as _r,ui as vr,un as yr,ur as br,ut as xr,v as Sr,vi as Cr,vn as wr,vr as X,vt as Tr,w as Er,wi as Dr,wn as Or,wr as kr,wt as Ar,x as jr,xi as Mr,xn as Nr,xr as Pr,xt as Fr,y as Ir,yi as Lr,yn as Rr,yr as zr,yt as Br,z as Vr,zn as Hr,zr as Ur,zt as Wr}from"./zEVoxCTt-ZW8Aowg.js";var Gr={pct5:`0040000000040000`,pct10:`0004004000040040`,pct20:`0044001100440011`,pct25:`1144114411441144`,pct30:`8855225588552255`,pct40:`8A55AA55A855AA55`,pct50:`AA55AA55AA55AA55`,pct60:`AA77AADDAA77AADD`,pct70:`EEBBEEBBEEBBEEBB`,pct75:`FFBBFFEEFFBBFFEE`,pct80:`FF7FFFF7FF7FFFF7`,pct90:`BFFFFFFFFBFFFFFF`,dkHorz:`00FFFF0000FFFF00`,dkVert:`6666666666666666`,dkDnDiag:`CC663399CC663399`,dkUpDiag:`CC993366CC993366`,smCheck:`CCCC3333CCCC3333`,trellis:`CCFF33FFCCFF33FF`,ltHorz:`00FF000000FF0000`,ltVert:`4444444444444444`,ltDnDiag:`8844221188442211`,ltUpDiag:`4488112244881122`,smGrid:`44FF444444FF4444`,dotDmnd:`0040001100040011`,wdDnDiag:`C1E070381C0E0783`,wdUpDiag:`E0C183070E1C3870`,dashUpDiag:`1122440000000088`,dashDnDiag:`2211880000000044`,narVert:`AAAAAAAAAAAAAAAA`,narHorz:`00FF00FF00FF00FF`,dashVert:`0440404040040404`,dashHorz:`0078000000870000`,lgConfetti:`D8C606606C8D8118`,lgGrid:`0404040404FF0404`,horzBrick:`04FF404040FF0404`,lgCheck:`8778787878878787`,smConfetti:`1080080120044002`,zigZag:`C00C1221C00C1221`,solidDmnd:`F7E3C1800080C1E3`,diagBrick:`40C021120C081020`,openDmnd:`8041221408142241`,plaid:`AA8787878755AA55`,sphere:`7CBBC4C7C7BB4C7C`,weave:`2A44A0118A44A211`,dotGrid:`0004000400550004`,divot:`8000040804008040`,shingle:`8160100808182442`,wave:`0600C0290600C029`},Kr=e=>{let t=e?Gr[e]:void 0;if(!t)return null;let n=[];for(let e=0;e<8;e++){let r=parseInt(t.slice(2*e,2*e+2),16);n.push(Array.from({length:8},(e,t)=>!!(r&128>>t)))}return n},qr=(e,t,n)=>{let r=``;return e.forEach((e,t)=>e.forEach((e,n)=>{e&&(r+=`M${n} ${t}h1v1h-1z`)})),`data:image/svg+xml;charset=utf-8,${encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" shape-rendering="crispEdges"><rect width="8" height="8" fill="${n}"/><path d="${r}" fill="${t}"/></svg>`)}`},Jr=e=>Math.max(0,Math.min(1,e??0)),Yr=e=>{let n=(e=>{let t=e.stops??[],n=Math.max(1,t.length-1);return t.map((e,t)=>({offset:Jr(typeof e==`object`&&typeof e.offset==`number`?e.offset:t/n),color:typeof e==`string`?e:String(e.color)})).sort((e,t)=>e.offset-t.offset)})(e);if((e.gradientType??t.GradientType.Linear)===t.GradientType.Linear){let t=((e.angle??90)-90)%360*Math.PI/180,r=Math.cos(t),i=Math.sin(t),a=(Math.abs(r)+Math.abs(i))/2,o=e=>Math.round(1e9*e)/1e9;return{type:`linear`,x:o(.5-r*a),y:o(.5-i*a),x2:o(.5+r*a),y2:o(.5+i*a),colorStops:n,global:!1}}let r=e.focus,i=(Jr(r?.left)+Jr(r?.right??r?.left))/2,a=(Jr(r?.top)+Jr(r?.bottom??r?.top))/2;return{type:`radial`,x:i,y:a,r:Math.hypot(Math.max(i,1-i),Math.max(a,1-a)),colorStops:n,global:!1}},Z=(e,n=`transparent`)=>{if(!e)return n;switch(e.type){case t.Type.Solid:return e.color??n;case t.Type.Gradient:return(e.stops?.length??0)>0?Yr(e):n;case t.Type.Pattern:{let t=String(e.foreground??`#000000`),n=String(e.background??`#FFFFFF`);return{image:qr(Kr(e.patternType)??Kr(`pct50`),t,n),repeat:`repeat`,imageWidth:8,imageHeight:8}}default:return n}},Xr=e=>e?.width??0,Zr=e=>r.toDashLengths(e.dash)?.map(t=>t*Xr(e)),Qr=e=>e.font?.family??`Calibri`,$r=e=>(e.weight??400)>=600,ei=e=>e.style===`italic`,ti=e=>e.size??0,ni=e=>typeof e.color==`string`?e.color:Z(e.color,`#000000`),ri=e=>({fontFamily:Qr(e),fontSize:ti(e),color:ni(e),fontWeight:$r(e)?`bold`:`normal`,fontStyle:ei(e)?`italic`:`normal`}),ii=(e,t=ti(e))=>{return`${ei(e)?`italic `:``}${$r(e)?`bold `:``}${t}px ${n=Qr(e),n.includes(` `)?`'${n}'`:n}`;var n},ai=e=>e?{stroke:Z(e.fill,`none`),lineWidth:Xr(e),lineCap:e.lineCap??`butt`,lineDash:Zr(e)}:{stroke:`none`,lineWidth:0},oi=e=>e?{color:Z(e.fill),width:Xr(e),cap:e.lineCap??`butt`,join:`round`,type:Zr(e)??`solid`}:{width:0},si={x:[[0,0,1,1],[1,0,0,1]],star:[[0,0,1,1],[1,0,0,1],[.5,0,.5,1]],plus:[[.5,0,.5,1],[0,.5,1,.5]]},ci=e=>{let t=e.size,n=Xr(e.stroke),r=si[e.symbol];if(r)return{symbol:`path://`+r.map(([e,t,n,r])=>`M${e} ${t}L${n} ${r}`).join(``),symbolSize:t};switch(e.symbol){case`circle`:return{symbol:`circle`,symbolSize:t-n};case`square`:return{symbol:`rect`,symbolSize:t-n};case`dash`:return{symbol:`rect`,symbolSize:[t-n,t/5-n]};case`dot`:return{symbol:`rect`,symbolSize:[t/2,t/5-n],symbolOffset:[t/4,0]};case`triangle`:return{symbol:`triangle`,symbolSize:t};default:return{symbol:`diamond`,symbolSize:t}}},li=e=>e&&si[e.symbol]&&e.fill?e.fill:null,ui=(e,t,n,r)=>{let i=e.size,a=i/2,o={fill:Z(e.fill),...ai(e.stroke)},s=si[e.symbol];if(s){let o=li(e);return[...o?[{type:`rect`,silent:!0,z:r,shape:{x:t-a,y:n-a,width:i,height:i},style:{fill:Z(o)}}]:[],...s.map(([o,s,c,l])=>({type:`line`,silent:!0,z:r,shape:{x1:t-a+o*i,y1:n-a+s*i,x2:t-a+c*i,y2:n-a+l*i},style:ai(e.stroke)}))]}let c=Xr(e.stroke),l=i-c,u=i/5-c;switch(e.symbol){case`circle`:return[{type:`circle`,silent:!0,z:r,shape:{cx:t,cy:n,r:l/2},style:o}];case`square`:return[{type:`rect`,silent:!0,z:r,shape:{x:t-l/2,y:n-l/2,width:l,height:l},style:o}];case`dash`:return[{type:`rect`,silent:!0,z:r,shape:{x:t-l/2,y:n-u/2,width:l,height:u},style:o}];case`dot`:return[{type:`rect`,silent:!0,z:r,shape:{x:t,y:n-u/2,width:a,height:u},style:o}];case`triangle`:return[{type:`polygon`,silent:!0,z:r,shape:{points:[[t,n-a],[t+a,n+a],[t-a,n+a]]},style:o}];default:return[{type:`polygon`,silent:!0,z:r,shape:{points:[[t,n-a],[t+a,n],[t,n+a],[t-a,n]]},style:o}]}},di=(e,t,n,r)=>{let{rect:i,font:a}=e,o=[];return(t||n)&&o.push({type:`rect`,silent:!0,z:59,shape:{x:i.x,y:i.y,width:i.width,height:i.height},style:{fill:Z(t),...ai(n)}}),o.push({type:`text`,silent:!0,z:60,x:i.x+i.width/2,y:i.y+i.height/2,rotation:(e.rotation??0)*Math.PI/180,style:{x:0,y:0,text:e.text,fill:ni(a),font:ii(a),align:`center`,verticalAlign:`middle`,...r?{lineHeight:r}:{}}}),o},fi=e=>(e?.segments??[]).map(t=>({type:`line`,silent:!0,z:3,shape:{x1:t.from.x,y1:t.from.y,x2:t.to.x,y2:t.to.y},style:{fill:`none`,...ai(e.stroke)}})),pi=e=>(e?.bars??[]).map(t=>{let n=t.up?e.up:e.down;return{type:`rect`,silent:!0,z:3,shape:{x:t.rect.x,y:t.rect.y,width:t.rect.width,height:t.rect.height},style:{fill:Z(n.fill,`none`),...ai(n.stroke)}}}),mi={types:[`bar`],horizontal:e=>e.type===`bar`&&e.barDir===`bar`,series:(e,t)=>e.type===`bar`?((e,t)=>{let n=t.cartesian(e),r=e.grouping===`clustered`?void 0:`bar:${e.axisIds.join(`:`)}`,i=e.series.map((i,a)=>({...n.base(i),type:`bar`,data:n.placed(i,i.plotted.map((e,t)=>e===i.values[t]?e:{value:e,source:i.values[t]})),...r?{stack:r,stackStrategy:`samesign`}:{},clip:!0,barWidth:e.barWidth,barMinWidth:1e-6,barGap:-e.overlap+`%`,z:2+a/e.series.length,itemStyle:{color:t.paint(i.fill),borderColor:t.paint(i.stroke?.fill),borderWidth:t.width(i.stroke)}}));return e.barDir===`bar`==!!t.axisOf(e.axisIds[0])?.reversed||r?i:i.reverse()})(e,t):[],graphic:(e,t)=>e.type===`bar`?t.lines(e.seriesLines):[]},hi={types:[`waterfall`],graphic:(e,t)=>e.type===`waterfall`?((e,t)=>{let n=[];for(let r of e.series)for(let e of r.bars??[])e&&n.push({type:`rect`,silent:!0,z:2,shape:{x:e.rect.x,y:e.rect.y,width:e.rect.width,height:e.rect.height},style:{fill:t.paint(e.fill,`none`),...t.stroke(e.stroke)}});return n.push(...t.lines(e.connectorLines)),n})(e,t):[]},gi={types:[`sunburst`],grid:!1,graphic:(e,t)=>e.type===`sunburst`?((e,t)=>{let n=[],r=[],{x:i,y:a}=e.center;for(let o of e.series)for(let e of o.segments??[])e.endAngle>e.startAngle&&(n.push({type:`sector`,silent:!0,z:2,shape:{cx:i,cy:a,r0:e.innerRadius,r:e.outerRadius,startAngle:(e.startAngle-90)*Math.PI/180,endAngle:(e.endAngle-90)*Math.PI/180,clockwise:!0},style:{fill:t.paint(e.fill,`none`),...t.stroke(e.stroke)}}),e.label&&r.push(...t.text(e.label,null,null)));return[...n,...r]})(e,t):[]},_i={types:[`histogram`],graphic:(e,t)=>e.type===`histogram`?((e,t)=>{let n=[];for(let r of e.series){for(let e of r.bars)e&&n.push({type:`rect`,silent:!0,z:2,shape:{x:e.x,y:e.y,width:e.width,height:e.height},style:{fill:t.paint(r.fill,`none`),...t.stroke(r.stroke)}});if(r.line){let e=r.line.points.filter(e=>!!e);e.length>1&&n.push({type:`polyline`,silent:!0,z:3,shape:{points:e.map(e=>[e.x,e.y])},style:{fill:`none`,...t.stroke(r.stroke)}})}}return n})(e,t):[]},vi={types:[`boxWhisker`],graphic:(e,t)=>e.type===`boxWhisker`?((e,t)=>{let n=[],r=(e,n,r)=>({type:`line`,silent:!0,z:r,shape:{x1:e.from.x,y1:e.from.y,x2:e.to.x,y2:e.to.y},style:{fill:`none`,...t.stroke(n)}});for(let i of e.series){for(let e of i.boxes){if(!e)continue;let i=t.stroke(e.stroke);n.push({type:`rect`,silent:!0,z:2,shape:{x:e.rect.x,y:e.rect.y,width:e.rect.width,height:e.rect.height},style:{fill:t.paint(e.fill,`none`),...i}}),n.push(r(e.median,e.stroke,3));for(let t of[e.whiskerHigh,e.whiskerLow])t&&n.push(r(t.line,e.stroke,3),r(t.cap,e.stroke,3));if(e.mean){let{center:t,size:i}=e.mean,a=i/2;n.push(r({from:{x:t.x-a,y:t.y-a},to:{x:t.x+a,y:t.y+a}},e.stroke,4),r({from:{x:t.x-a,y:t.y+a},to:{x:t.x+a,y:t.y-a}},e.stroke,4))}for(let r of e.outliers)n.push({type:`circle`,silent:!0,z:4,shape:{cx:r.center.x,cy:r.center.y,r:r.size/2},style:{fill:t.paint(e.fill,`none`),...i}});for(let r of e.innerPoints)n.push({type:`circle`,silent:!0,z:4,shape:{cx:r.center.x,cy:r.center.y,r:r.size/2},style:{fill:t.color(`#FFFFFF`),...i}})}n.push(...t.lines(i.meanLine))}return n})(e,t):[]},yi={types:[`treemap`],grid:!1,graphic:(e,t)=>e.type===`treemap`?((e,t)=>{let n=[],r=[];for(let i of e.series){for(let e of i.tiles)e.rect.width>0&&e.rect.height>0&&(n.push({type:`rect`,silent:!0,z:2,shape:{x:e.rect.x,y:e.rect.y,width:e.rect.width,height:e.rect.height},style:{fill:t.paint(e.fill,`none`),...t.stroke(e.stroke)}}),e.label&&r.push(...t.text(e.label,null,null)));for(let e of i.parents){if(e.banner){let{rect:r}=e.banner;n.push({type:`rect`,silent:!0,z:3,shape:{x:r.x,y:r.y,width:r.width,height:r.height},style:{fill:t.paint(e.banner.fill,`none`),...t.stroke(e.banner.stroke)}})}r.push(...t.text(e.label,null,null))}}return[...n,...r]})(e,t):[]},bi={types:[`funnel`],grid:!1,graphic:(e,t)=>e.type===`funnel`?((e,t)=>{let n=[];e.axisLine&&n.push({type:`line`,silent:!0,z:1,shape:{x1:e.axisLine.from.x,y1:e.axisLine.from.y,x2:e.axisLine.to.x,y2:e.axisLine.to.y},style:{fill:`none`,...t.stroke(e.axisStroke)}});for(let r of e.categoryLabels)r&&n.push(...t.text(r,null,null));for(let r of e.series)for(let e of r.bars)e&&n.push({type:`rect`,silent:!0,z:2,shape:{x:e.x,y:e.y,width:e.width,height:e.height},style:{fill:t.paint(r.fill,`none`),...t.stroke(r.stroke)}});return n})(e,t):[]},xi=(e,t,n)=>{let r=t.x+t.width/2,i=t.y+t.height/2,a=[];return e.stroke&&a.push({type:`line`,silent:!0,z:50,shape:{x1:t.x,y1:i,x2:t.x+t.width,y2:i},style:n.stroke(e.stroke)}),e.marker&&a.push(...n.marker.graphic(e.marker,r,i,51)),a},Si={types:[`line`],series:(e,t)=>e.type===`line`?((e,t)=>{let n=t.cartesian(e),r=e.grouping===`standard`?void 0:`line:${e.axisIds.join(`:`)}`;return e.series.flatMap(i=>t.withMarkerFills(i,{...n.base(i),...t.lineSeries(i,!1,e.spanBlanks),...r?{data:n.placed(i,i.plotted.map((e,t)=>e===i.values[t]?e:{value:e,source:i.values[t]})),stack:r}:{}}))})(e,t):[],graphic:(e,t)=>e.type===`line`?[...t.upDownBars(e.upDownBars),...t.lines(e.hiLowLines),...t.lines(e.dropLines)]:[],legendKey:(e,t,n,r,i)=>xi(t,r,i)},Ci={types:[`area`],series:(e,t)=>e.type===`area`?((e,t)=>{let n=t.cartesian(e),r=e.grouping===`standard`?void 0:`area:${e.axisIds.join(`:`)}`;return e.series.map(i=>({...n.base(i),...t.lineSeries(i,!1),data:n.placed(i,i.plotted.map((e,t)=>e===i.values[t]?e:{value:e,source:i.values[t]})),...r?{stack:r}:{},areaStyle:{color:t.paint(i.fill),opacity:1,origin:e.baseValue},z:1}))})(e,t):[],graphic:(e,t)=>e.type===`area`?t.lines(e.dropLines):[]},wi={types:[`scatter`],series:(e,t)=>e.type===`scatter`?((e,t)=>{let n=t.cartesian(e);return e.series.flatMap(r=>t.withMarkerFills(r,{...n.base(r),...t.lineSeries(r,r.smooth,e.spanBlanks),data:r.values.map((e,t)=>[r.xValues[t],e])}))})(e,t):[],legendKey:(e,t,n,r,i)=>xi(t,r,i)},Ti={types:[`bubble`],series:(e,t)=>e.type===`bubble`?((e,t)=>{let n=t.cartesian(e);return e.series.map(r=>({...n.base(r),type:`line`,showSymbol:!0,symbol:`circle`,lineStyle:{width:0,opacity:0},data:r.values.flatMap((n,i)=>{if(r.radii[i]===null)return[];let a=r.negative[i]?e.negative:{fill:r.fill,stroke:r.stroke};return[{value:[r.xValues[i],n],symbolSize:2*r.radii[i]-t.width(a.stroke),...r.negative[i]?{itemStyle:{color:t.paint(a.fill),borderColor:t.paint(a.stroke?.fill),borderWidth:t.width(a.stroke)}}:{}}]}),itemStyle:{color:t.paint(r.fill),borderColor:t.paint(r.stroke?.fill),borderWidth:t.width(r.stroke)},z:2}))})(e,t):[]},Ei=(e,t,n,r,i,a,o)=>{if(a.length===0)return[];let s=e=>e.center.x!==n.x||e.center.y!==n.y,c=(e,n,s)=>({type:`pie`,id:e,name:t,center:[n.x,n.y],radius:[r,i],startAngle:90-a[0].slice.startAngle,clockwise:!0,minAngle:0,stillShowZeroSum:!0,avoidLabelOverlap:!1,selectedMode:!1,label:{show:!1},labelLine:{show:!1},emphasis:{disabled:!0},animation:!1,data:a.map(e=>(({slice:e,name:t},n)=>({name:t,value:e.endAngle-e.startAngle,itemStyle:n?{color:o.paint(e.fill),borderColor:o.paint(e.stroke?.fill),borderWidth:o.width(e.stroke)}:{color:`transparent`,borderWidth:0},...n?{}:{tooltip:{show:!1}}}))(e,s(e.slice)))}),l=[c(e,n,e=>!s(e))];return a.forEach(({slice:t},n)=>{s(t)&&l.push(c(`${e}:${n}`,t.center,e=>e===t))}),l},Di=(e,t,n,r)=>[{type:`rect`,silent:!0,z:50,shape:{x:n.x,y:n.y,width:n.width,height:n.height},style:{fill:r.paint(e),...r.stroke(t??null)}}],Oi={types:[`pie`],series:(e,t)=>e.type===`pie`?((e,t)=>e.series.flatMap(n=>{let r=n.slices.flatMap((e,t)=>e?[{slice:e,name:String(t+1)}]:[]);return Ei(n.id,n.name,e.center,n.innerRadius,n.outerRadius,r,t)}))(e,t):[],legendKey:(e,t,n,r,i)=>{let a=e.pointIndex===void 0?void 0:t.slices[e.pointIndex];return a?Di(a.fill,a.stroke,r,i):void 0}},ki=(e,t)=>e.series.flatMap(e=>(e.bars??[]).flatMap(e=>e?[{type:`rect`,silent:!0,z:2,shape:{x:e.rect.x,y:e.rect.y,width:e.rect.width,height:e.rect.height},style:{fill:t.paint(e.fill,`none`),...t.stroke(e.stroke)}}]:[])),Ai={types:[`ofPie`],series:(e,t)=>e.type===`ofPie`?((e,t)=>e.series.flatMap(n=>{let r=n.slices.flatMap((e,t)=>e?[{slice:e,name:String(t+1),k:t}]:[]),i=r.filter(({k:e})=>!n.second[e]);n.other&&i.unshift({slice:n.other,name:`Other`,k:-1});let a=Ei(n.id,n.name,e.center,0,e.radius,i,t);return e.second&&a.push(...Ei(`${n.id}:second`,n.name,e.second.center,0,e.second.radius,r.filter(({k:e})=>n.second[e]),t)),a}))(e,t):[],graphic:(e,t)=>e.type===`ofPie`?[...ki(e,t),...t.lines(e.seriesLines)]:[],legendKey:(e,t,n,r,i)=>{if(n.type!==`ofPie`||e.pointIndex===void 0)return;let a=n.series[0],o=a?.slices[e.pointIndex]??a?.bars?.[e.pointIndex];return o?Di(o.fill,o.stroke,r,i):void 0}},ji={types:[`radar`],grid:!1,graphic:(e,t)=>e.type===`radar`?((e,t)=>{let n=[];for(let r of e.rings)n.push({type:`polygon`,silent:!0,z:1,shape:{points:r.map(e=>[e.x,e.y])},style:{fill:`none`,...t.stroke(e.ringStroke)}});for(let r of e.spokes)n.push({type:`line`,silent:!0,z:1,shape:{x1:r.from.x,y1:r.from.y,x2:r.to.x,y2:r.to.y},style:t.stroke(e.spokeStroke)});e.series.forEach((r,i)=>{let a=2+i/Math.max(1,e.series.length),o=[[]];r.points.forEach(e=>{e?o[o.length-1].push(e):o.push([])}),e.filled?n.push({type:`polygon`,silent:!0,z:a,shape:{points:r.points.filter(e=>!!e).map(e=>[e.x,e.y])},style:{fill:t.paint(r.fill,`none`),...t.stroke(r.stroke)}}):r.stroke&&(r.points.length>1&&r.points.every(e=>!!e)?n.push({type:`polygon`,silent:!0,z:a,shape:{points:r.points.map(e=>[e.x,e.y])},style:{fill:`none`,...t.stroke(r.stroke),lineJoin:`round`}}):o.filter(e=>e.length>1).forEach(e=>n.push({type:`polyline`,silent:!0,z:a,shape:{points:e.map(e=>[e.x,e.y])},style:{fill:`none`,...t.stroke(r.stroke),lineJoin:`round`}}))),r.marker&&r.points.forEach(e=>{e&&n.push(...t.marker.graphic(r.marker,e.x,e.y,a+.5))})});for(let r of e.categoryLabels)r&&n.push(...t.text(r,null,null));for(let r of e.valueLabels)n.push(...t.text(r,null,null));return n})(e,t):[],legendKey:(e,t,n,r,i)=>n.type!==`radar`||n.filled?void 0:xi(t,r,i)},Mi={types:[`surface`],grid:!1,graphic:(e,t)=>e.type===`surface`?((e,t)=>{let n=[];e.bands.forEach(r=>{for(let i of r.polygons)n.push({type:`polygon`,silent:!0,z:2,shape:{points:i.map(e=>[e.x,e.y])},style:e.wireframe?{fill:`none`,...t.stroke(r.stroke)}:{fill:t.paint(r.fill,`none`),stroke:t.paint(r.fill,`none`),lineWidth:.5}})});for(let r of[...e.categoryLabels,...e.seriesLabels])n.push(...t.text(r,null,null));return n})(e,t):[],legendKey:(e,t,n,r,i)=>{let a=n.type===`surface`&&e.bandIndex!==void 0?n.bands[e.bandIndex]:void 0;return a?Di(a.fill,a.stroke,r,i):void 0}},Ni={types:[`regionMap`],grid:!1,graphic:e=>`label`in e&&e.label?di(e.label,null,null):[]};function Pi(e){for(let t of[mi,hi,gi,_i,vi,yi,bi,Si,Ci,wi,Ti,Oi,Ai,ji,Mi,Ni])e(t)}var Fi=new Map,Ii=e=>{let t=Fi.get(e);if(t===void 0){try{t=i.toConcreteCSS(new n(e),!0)}catch{t=e}Fi.set(e,t)}return t},Li=new Set([`color`,`foreground`,`background`]),Ri=(e,t)=>{if(t===`data`)return e;if(typeof e==`string`)return t&&Li.has(t)?Ii(e):e;if(Array.isArray(e))return e.map(e=>t===`stops`&&typeof e==`string`?Ii(e):Ri(e));if(e&&typeof e==`object`){let t={};for(let[n,r]of Object.entries(e))t[n]=Ri(r,n);return t}return e};function zi(t,n){e.registerBuiltIns(Pi);let r=n?.darkMode??!1,i=n?.background??`#FFFFFF`;t=((e,t)=>t?Ri(e):e)(t,r);let a=n?.interactive??!0,o=n?.legend??`graphic`,s=t=>e.of(t),c=t.axes.filter(e=>e.position===`bottom`||e.position===`top`),l=t.axes.filter(e=>e.position===`left`||e.position===`right`),u=Hi(t.groups,s),d=Ui(t,e=>{let t=c.findIndex(t=>t.id===e);if(t>=0)return{dim:`x`,index:t};let n=l.findIndex(t=>t.id===e);if(n>=0)return{dim:`y`,index:n};throw Error(`chart layout names axis ${e}, which it does not have`)},r),f=[],p=t.chartArea.cornerRadius,m=t.chartArea.fill,h=m===void 0?i===`transparent`?null:{type:`solid`,color:r?Ii(i):i}:m,g=!!h&&(p>0||h.type!==`solid`);if(g&&f.push({type:`rect`,silent:!0,z:-100,shape:{x:0,y:0,width:t.width,height:t.height,r:p},style:{fill:Z(h,`none`)}}),t.chartArea.border){let e=Xr(t.chartArea.border);f.push({type:`rect`,silent:!0,z:100,shape:{x:e/2,y:e/2,width:t.width-e,height:t.height-e,r:Math.max(0,p-e/2)},style:{fill:`none`,...ai(t.chartArea.border)}})}t.legend&&o===`graphic`&&f.push(...function(t,n,r){let i=e=>{for(let t of n){let n=t.series.find(t=>t.id===e);if(n)return{series:n,group:t}}},a=[];for(let n of t.entries){let o=i(n.seriesId),s=n.keyRect,c=n.trendlineIndex===void 0?void 0:o?.series.trendlines?.[n.trendlineIndex];if(c){let e=s.y+s.height/2;a.push({type:`line`,silent:!0,z:50,shape:{x1:s.x,y1:e,x2:s.x+s.width,y2:e},style:ai(c.stroke)})}else{let t=o&&!n.swatch?e.of(o.group)?.legendKey?.(n,o.series,o.group,s,r):void 0;if(t)a.push(...t);else{let e=n.swatch??{fill:o?.series.fill??null,stroke:o?.series.stroke??null};a.push({type:`rect`,silent:!0,z:50,shape:{x:s.x,y:s.y,width:s.width,height:s.height},style:{fill:Z(e.fill),...ai(e.stroke)}})}}let l=s.x+s.width+(s.x-n.rect.x);a.push({type:`text`,silent:!0,z:50,style:{x:l,y:n.rect.y+n.rect.height/2,text:n.text,fill:ni(t.font),font:ii(t.font),verticalAlign:`middle`,align:`left`}})}return a}(t.legend,t.groups,d));for(let e of t.axes)f.push(...Zi(e)),f.push(...Xi(e,t.plotArea.inner)),e.title&&!e.deleted&&f.push(...di(e.title,null,null)),e.unitLabel&&!e.deleted&&f.push(...di(e.unitLabel,null,null)),e.kind!==`category`||e.deleted||f.push(...qi(e)),e.labelVertical&&f.push(...Yi(e,t.plotArea.inner));for(let e of t.groups){f.push(...s(e)?.graphic?.(e,d)??[]);for(let t of e.series){for(let e of t.labels??[])e&&f.push(...di(e,e.fill,e.border));for(let e of t.trendlines??[])f.push(...$i(e));for(let e of t.errorBars??[])f.push(...Qi(e))}}return{animation:!1,backgroundColor:g?`transparent`:Z(h),textStyle:{fontFamily:Qr(t.axes.find(e=>e.labelFont)?.labelFont??{})},title:t.title?{show:!0,text:t.title.text,left:t.title.rect.x,top:t.title.rect.y,padding:[t.title.insets.top,t.title.insets.right,t.title.insets.bottom,t.title.insets.left],triggerEvent:!0,textStyle:{...ri(t.title.font),lineHeight:t.title.rect.height-t.title.insets.top-t.title.insets.bottom}}:{show:!1},grid:[{id:`plot`,left:t.plotArea.inner.x,top:t.plotArea.inner.y,width:t.plotArea.inner.width,height:t.plotArea.inner.height,containLabel:!1,outerBoundsMode:`none`,show:!(!t.plotArea.fill&&!t.plotArea.border),backgroundColor:Z(t.plotArea.fill),borderColor:Z(t.plotArea.border?.fill),borderWidth:Xr(t.plotArea.border)},...t.axes.some(e=>u(e.id)===1)?[{id:`plot:vertical`,left:t.plotArea.inner.x,top:t.plotArea.inner.y,width:t.plotArea.inner.width,height:t.plotArea.inner.height,containLabel:!1,outerBoundsMode:`none`,show:!1}]:[]],xAxis:c.map(e=>Wi(e,t.plotArea.inner,u(e.id))),yAxis:l.map(e=>Wi(e,t.plotArea.inner,u(e.id))),series:t.groups.flatMap(e=>s(e)?.series?.(e,d)??[]),legend:t.legend&&o===`native`?Ki(t.legend):{show:!1},graphic:f,tooltip:a?{show:!0,trigger:`item`,formatter:e=>{let t=e.data?.source,n=t===void 0?Array.isArray(e.value)?e.value[1]:e.value:t;return`Series "${e.seriesName}" Point "${e.name}" Value: ${n}`}}:{show:!1}}}var Bi=e=>t=>{let n=e.ticks.find(n=>Math.abs(n.value-t)<=(t=>e.logBase?1e-9*Math.abs(t):1e-6*e.majorUnit)(n.value));return n?n.label:``},Vi=(e,t)=>{let n=e.labelsAt??e.lineAt,r;switch(e.position){case`bottom`:r=n-(t.y+t.height);break;case`top`:r=t.y-n;break;case`left`:r=t.x-n;break;default:r=n-(t.x+t.width)}return Math.abs(r)<1e-6?0:r},Hi=(e,t)=>{let n=e=>t(e)?.horizontal?.(e)??!1,r=e.filter(e=>t(e)?.grid??(`axisIds`in e&&e.axisIds.length===2)),i=r.some(n)&&r.some(e=>!n(e)),a=new Set(i?r.filter(e=>!n(e)).flatMap(e=>e.axisIds):[]);return e=>+!!a.has(e)},Ui=(e,t,n)=>{let r=t=>e.axes.find(e=>e.id===t);return{layout:e,darkMode:n,color:e=>n?Ii(e):e,axisOf:r,cartesian:e=>{let n=t(e.axisIds[0]),i=t(e.axisIds[1]),a=n.dim===`x`?n.index:i.index,o=n.dim===`y`?n.index:i.index,s=r(e.axisIds[1]),c=s?.kind===`value`&&!!s.logBase,l=(e,t)=>{c&&(t=t.map(e=>{let t=typeof e==`object`&&e?e.value:e;return typeof t!=`number`||t>0?e:null}));let r=e.slots;if(!r)return t;let i=(e,t)=>n.dim===`x`?[e,t]:[t,e];return t.map((e,t)=>{let n=r[t];return n==null?null:typeof e==`object`&&e?{...e,value:i(n,e.value)}:i(n,e)}).filter(e=>e!==null)};return{xAxisIndex:a,yAxisIndex:o,isLog:c,placed:l,base:e=>({id:e.id,name:e.name,xAxisIndex:a,yAxisIndex:o,data:l(e,e.values),emphasis:{disabled:!0},label:{show:!1},animation:!1})}},paint:Z,stroke:ai,line:oi,width:Xr,lineSeries:(e,t,n=!1)=>({type:`line`,smooth:t,connectNulls:n,showSymbol:!!e.marker,...e.marker?ci(e.marker):{symbol:`none`,symbolSize:0},lineStyle:oi(e.stroke),itemStyle:{color:e.marker&&!si[e.marker.symbol]?Z(e.marker.fill):e.marker?`transparent`:Z(e.stroke?.fill),borderColor:Z(e.marker?.stroke?.fill),borderWidth:Xr(e.marker?.stroke)}}),withMarkerFills:(e,t)=>{let n=li(e.marker);return n?[{...t,id:`${e.id}:fill`,name:`${e.name}:fill`,silent:!0,tooltip:{show:!1},symbol:`rect`,symbolSize:e.marker.size,lineStyle:{width:0,opacity:0},itemStyle:{color:Z(n),borderWidth:0},z:(t.z??2)-.5},t]:[t]},marker:{symbol:ci,fill:li,graphic:ui},text:di,lines:fi,upDownBars:pi}};function Wi(e,t,n){let r={id:String(e.id),gridIndex:n,position:e.position,offset:Vi(e,t),show:!e.deleted,inverse:e.reversed,axisLine:{show:!!e.line&&e.labelsAt===void 0,onZero:!1,lineStyle:oi(e.line)},axisTick:{show:e.tickMark!==`none`&&!!e.line,inside:e.tickMark===`in`,length:e.tickLength,lineStyle:oi(e.line)},splitLine:{show:!1},z:3,axisLabel:{show:!!e.labelFont&&!e.labelVertical,margin:e.labelMargin,...e.labelFont?ri(e.labelFont):{},interval:0,hideOverlap:!1,showMinLabel:!0,showMaxLabel:!0},triggerEvent:!0};return e.kind===`category`?{...r,type:`category`,data:e.categories,boundaryGap:e.crossBetween===`between`,axisTick:{...r.axisTick,...e.dividers?{show:!1}:{},alignWithLabel:e.crossBetween===`midCat`},axisLabel:{...r.axisLabel,...Gi(e),formatter:(t,n)=>e.labels[n]??``,lineHeight:e.labelLineHeight,overflow:`none`}}:e.logBase?{...r,type:`log`,logBase:e.logBase,min:e.min,max:e.max,interval:Math.round(Math.log(e.majorUnit)/Math.log(e.logBase)),axisLabel:{...r.axisLabel,formatter:Bi(e)}}:{...r,type:`value`,min:e.min,max:e.max,interval:e.majorUnit,alignTicks:!1,axisLabel:{...r.axisLabel,formatter:Bi(e)}}}function Gi(e){let t=e.labelRotation;if(e.position===`left`||e.position===`right`)return{rotate:t,align:e.position===`left`?`right`:`left`,verticalAlign:`middle`};let n=e.position===`bottom`;return t===0?{rotate:t,align:`center`,verticalAlign:n?`top`:`bottom`}:{rotate:t,align:t>0===n?`right`:`left`,verticalAlign:n?`top`:`bottom`}}function Ki(e){let t=e.entries[0],n=e.entries.length>1?e.entries[1].rect.x-(t.rect.x+t.rect.width):0;return{show:!0,left:e.rect.x,top:e.rect.y,width:e.rect.width,height:e.rect.height,orient:e.orient,padding:0,itemGap:Math.max(0,n),itemWidth:t?.keyRect.width??10,itemHeight:t?.keyRect.height??10,align:`left`,selectedMode:!1,textStyle:ri(e.font),data:e.entries.map(e=>({name:e.text}))}}function qi(e){let t=[];for(let n of e.levels??[])for(let e of n.labels)t.push(...di(e,null,null,e.lineHeight));if(e.line)for(let{from:n,to:r}of e.dividers??[])t.push({type:`line`,silent:!0,z:50,shape:{x1:n.x,y1:n.y,x2:r.x,y2:r.y},style:ai(e.line)});return t}var Ji=.95;function Yi(e,t){let n=e.labelFont;if(!n||e.deleted)return[];let r=e.position===`bottom`||e.position===`top`,i=e.labelsAt??e.lineAt,a=e.labelLineHeight??ti(n),o=r?t.x:t.y+t.height,s=r?t.width:t.height,c=e=>r?o+e*s:o-e*s,l=[];if(e.kind===`category`){let t=e.categories.length;e.labels.forEach((n,r)=>{if(n===null)return;let i=e.reversed?t-1-r:r,a=e.crossBetween===`between`?(i+.5)/t:t===1?.5:i/(t-1);l.push([n,c(a)])})}else{let[t,n]=e.logBase?[Math.log(e.min),Math.log(e.max)]:[e.min,e.max];for(let r of e.ticks){if(!r.label)continue;let i=e.logBase?Math.log(r.value):r.value,a=n===t?.5:(i-t)/(n-t);l.push([r.label,c(e.reversed?1-a:a)])}}let u={fill:ni(n),font:ii(n),lineHeight:a},d=[];for(let[t,a]of l){if(!r){d.push({type:`text`,silent:!0,z:3,x:e.position===`left`?i-e.labelMargin:i+e.labelMargin,y:a,style:{...u,text:t,align:e.position===`left`?`right`:`left`,verticalAlign:`middle`}});continue}let o=t.split(` `),s=Ji*ti(n);o.forEach((t,n)=>d.push({type:`text`,silent:!0,z:3,x:a+(n-(o.length-1)/2)*s,y:e.position===`bottom`?i+e.labelMargin:i-e.labelMargin,style:{...u,text:t,align:`center`,verticalAlign:e.position===`bottom`?`top`:`bottom`}}))}return d}function Xi(e,t){return e.labelsAt===void 0||!e.line||e.deleted?[]:[{type:`line`,silent:!0,z:3,shape:e.position===`bottom`||e.position===`top`?{x1:t.x,y1:e.lineAt,x2:t.x+t.width,y2:e.lineAt}:{x1:e.lineAt,y1:t.y,x2:e.lineAt,y2:t.y+t.height},style:ai(e.line)}]}function Zi(e){return e.gridlines&&e.majorGridlines?e.gridlines.map(t=>({type:`line`,silent:!0,z:0,shape:{x1:t.from.x,y1:t.from.y,x2:t.to.x,y2:t.to.y},style:{fill:`none`,...ai(e.majorGridlines)}})):[]}function Qi(e){return e.paths.map(t=>({type:`polyline`,silent:!0,z:29,shape:{points:t.map(e=>[e.x,e.y])},style:{fill:`none`,...ai(e.stroke)}}))}function $i(e){let t=e.paths.map(t=>({type:`polyline`,silent:!0,z:30,shape:{points:t.map(e=>[e.x,e.y])},style:{fill:`none`,...ai(e.stroke),lineJoin:`round`}})),n=e.label;if(!n)return t;let{rect:r,font:i}=n;(n.fill||n.border)&&t.push({type:`rect`,silent:!0,z:59,shape:{x:r.x,y:r.y,width:r.width,height:r.height},style:{fill:Z(n.fill),...ai(n.border)}});let a=e=>ii(i,e);return n.lines.forEach((e,o)=>{t.push({type:`text`,silent:!0,z:60,x:r.x+r.width/2,y:r.y+n.insets.top+(o+.5)*n.lineHeight,style:{x:0,y:0,text:e.map(e=>`{${e.superscript?`raised`:`plain`}|${e.text}}`).join(``),rich:{plain:{font:a(ti(i)),fill:ni(i),lineHeight:n.lineHeight},raised:{font:a(n.superscriptSize),fill:ni(i),lineHeight:n.lineHeight,verticalAlign:`top`}},align:`center`,verticalAlign:`middle`}})}),t}function ea(e){return e==null?0:e.length||1}function ta(e){return e}var na=function(){function e(e,t,n,r,i,a){this._old=e,this._new=t,this._oldKeyGetter=n||ta,this._newKeyGetter=r||ta,this.context=i,this._diffModeMultiple=a===`multiple`}return e.prototype.add=function(e){return this._add=e,this},e.prototype.update=function(e){return this._update=e,this},e.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},e.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},e.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},e.prototype.remove=function(e){return this._remove=e,this},e.prototype.execute=function(){this[this._diffModeMultiple?`_executeMultiple`:`_executeOneToOne`]()},e.prototype._executeOneToOne=function(){var e=this._old,t=this._new,n={},r=Array(e.length),i=Array(t.length);this._initIndexMap(e,null,r,`_oldKeyGetter`),this._initIndexMap(t,n,i,`_newKeyGetter`);for(var a=0;a<e.length;a++){var o=r[a],s=n[o],c=ea(s);if(c>1){var l=s.shift();s.length===1&&(n[o]=s[0]),this._update&&this._update(l,a)}else c===1?(n[o]=null,this._update&&this._update(s,a)):this._remove&&this._remove(a)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var e=this._old,t=this._new,n={},r={},i=[],a=[];this._initIndexMap(e,n,i,`_oldKeyGetter`),this._initIndexMap(t,r,a,`_newKeyGetter`);for(var o=0;o<i.length;o++){var s=i[o],c=n[s],l=r[s],u=ea(c),d=ea(l);if(u>1&&d===1)this._updateManyToOne&&this._updateManyToOne(l,c),r[s]=null;else if(u===1&&d>1)this._updateOneToMany&&this._updateOneToMany(l,c),r[s]=null;else if(u===1&&d===1)this._update&&this._update(l,c),r[s]=null;else if(u>1&&d>1)this._updateManyToMany&&this._updateManyToMany(l,c),r[s]=null;else if(u>1)for(var f=0;f<u;f++)this._remove&&this._remove(c[f]);else this._remove&&this._remove(c)}this._performRestAdd(a,r)},e.prototype._performRestAdd=function(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=t[r],a=ea(i);if(a>1)for(var o=0;o<a;o++)this._add&&this._add(i[o]);else a===1&&this._add&&this._add(i);t[r]=null}},e.prototype._initIndexMap=function(e,t,n,r){for(var i=this._diffModeMultiple,a=0;a<e.length;a++){var o=`_ec_`+this[r](e[a],a);if(i||(n[a]=o),t){var s=t[o],c=ea(s);c===0?(t[o]=a,i&&n.push(o)):c===1?t[o]=[s,a]:s.push(a)}}},e}(),ra=function(){function e(e,t){this._encode=e,this._schema=t}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||=this._schema?this._schema.makeOutputDimensionNames():[],this._cachedDimNames},e}();function ia(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}var aa=function(e){this.otherDims={},e!=null&&B(this,e)},oa=I(),sa={float:`f`,int:`i`,ordinal:`o`,number:`n`,time:`t`},ca=function(){function e(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||=da(this.source))},e.prototype.getSourceDimensionIndex=function(e){return R(this._dimNameMap.get(e),-1)},e.prototype.getSourceDimension=function(e){var t=this.source.dimensionsDefine;if(t)return t[e]},e.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,t=yt(this.source),n=!fa(e),r=``,i=[],a=0,o=0;a<e;a++){var s=void 0,c=void 0,l=void 0,u=this.dimensions[o];if(u&&u.storeDimIndex===a)s=t?u.name:null,c=u.type,l=u.ordinalMeta,o++;else{var d=this.getSourceDimension(a);d&&(s=t?d.name:null,c=d.type)}i.push({property:s,type:c,ordinalMeta:l}),!t||s==null||u&&u.isCalculationCoord||(r+=n?s.replace(/\`/g,"`1").replace(/\$/g,"`2"):s),r+=`$`,r+=sa[c]||`f`,l&&(r+=l.uid),r+=`$`}var f=this.source;return{dimensions:i,hash:[f.seriesLayoutBy,f.startIndex,r].join(`$$`)}},e.prototype.makeOutputDimensionNames=function(){for(var e=[],t=0,n=0;t<this._fullDimCount;t++){var r=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===t)i.isCalculationCoord||(r=i.name),n++;else{var a=this.getSourceDimension(t);a&&(r=a.name)}e.push(r)}return e},e.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function la(e){return e instanceof ca}function ua(e){for(var t=a(),n=0;n<(e||[]).length;n++){var r=e[n],i=_(r)?r.name:r;i!=null&&t.get(i)==null&&t.set(i,n)}return t}function da(e){var t=oa(e);return t.dimNameMap||=ua(e.dimensionsDefine)}function fa(e){return e>30}var pa,ma,ha,ga,_a,va,ya,ba=_,xa=J,Sa=typeof Int32Array>`u`?Array:Int32Array,Ca=[`hasItemOption`,`_nameList`,`_idList`,`_invertedIndicesMap`,`_dimSummary`,`userOutput`,`_rawData`,`_dimValueGetter`,`_nameDimIdx`,`_idDimIdx`,`_nameRepeatCount`],wa=[`_approximateExtent`],Ta=function(){function e(e,t){var n;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 r=!1;la(e)?(n=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(r=!0,n=e),n||=[`x`,`y`];for(var i={},o=[],s={},c=!1,l={},u=0;u<n.length;u++){var d=n[u],f=W(d)?new aa({name:d}):d instanceof aa?d:new aa(d),p=f.name;f.type=f.type||`float`,f.coordDim||(f.coordDim=p,f.coordDimIndex=0);var m=f.otherDims=f.otherDims||{};o.push(p),i[p]=f,l[p]!=null&&(c=!0),f.createInvertedIndices&&(s[p]=[]),r&&(f.storeDimIndex=u),m.itemName===0&&(this._nameDimIdx=f.storeDimIndex),m.itemId===0&&(this._idDimIdx=f.storeDimIndex)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(c),this.hostModel=t,this._invertedIndicesMap=s,this._dimOmitted){var h=this._dimIdxToName=a();H(o,function(e){h.set(i[e].storeDimIndex,e)})}}return e.prototype.getDimension=function(e){var t=this._recognizeDimIndex(e);if(t==null)return e;if(t=e,!this._dimOmitted)return this.dimensions[t];var n=this._dimIdxToName.get(t);if(n!=null)return n;var r=this._schema.getSourceDimension(t);return r?r.name:void 0},e.prototype.getDimensionIndex=function(e){var t=this._recognizeDimIndex(e);if(t!=null)return t;if(e==null)return-1;var n=this._getDimInfo(e);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},e.prototype._recognizeDimIndex=function(e){if(_r(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},e.prototype._getStoreDimIndex=function(e){return this.getDimensionIndex(e)},e.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},e.prototype._initGetDimensionInfo=function(e){var t=this._dimInfos;this._getDimInfo=e?function(e){return t.hasOwnProperty(e)?t[e]:void 0}:function(e){return t[e]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(e,t){var n=this._dimSummary;if(t==null)return n.encodeFirstDimNotExtra[e];var r=n.encode[e];return r?r[t]:null},e.prototype.mapDimensionsAll=function(e){return(this._dimSummary.encode[e]||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(e,t,n){var r,i=this;if(e instanceof qe&&(r=e),!r){var o=this.dimensions,s=or(e)||vn(e)?new dn(e,o.length):e;r=new qe;var c=xa(o,function(e){return{type:i._dimInfos[e].type,property:e}});r.initData(s,c,n)}this._store=r,this._nameList=(t||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,r.count()),this._dimSummary=function(e,t){var n={},r=n.encode={},i=a(),o=[],s=[],c={};H(e.dimensions,function(t){var n,a=e.getDimensionInfo(t),l=a.coordDim;if(l){var u=a.coordDimIndex;ia(r,l)[u]=t,a.isExtraCoord||(i.set(l,1),(n=a.type)!==`ordinal`&&n!==`time`&&(o[0]=t),ia(c,l)[u]=e.getDimensionIndex(a.name)),a.defaultTooltip&&s.push(t)}Pe.each(function(e,t){var n=ia(r,t),i=a.otherDims[t];i!=null&&!1!==i&&(n[i]=a.name)})});var l=[],u={};i.each(function(e,t){var n=r[t];u[t]=n[0],l=l.concat(n)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=J(l,function(t){return e.getDimensionInfo(t).storeDimIndex}),n.encodeFirstDimNotExtra=u;var d=r.label;d&&d.length&&(o=d.slice());var f=r.tooltip;return f&&f.length?s=f.slice():s.length||(s=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=s,n.userOutput=new ra(c,t),n}(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(e){var t=this._store.appendData(e);this._doInit(t[0],t[1])},e.prototype.appendValues=function(e,t){var n=this._store.appendValues(e,t&&t.length),r=n.start,i=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),t)for(var o=r;o<i;o++){var s=o-r;this._nameList[o]=t[s],a&&ya(this,o)}},e.prototype._updateOrdinalMeta=function(){for(var e=this._store,t=this.dimensions,n=0;n<t.length;n++){var r=this._dimInfos[t[n]];r.ordinalMeta&&e.collectOrdinalMeta(r.storeDimIndex,r.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==`typedArray`&&!e.fillStorage},e.prototype._doInit=function(e,t){if(!(e>=t)){var n=this._store.getProvider();this._updateOrdinalMeta();var r=this._nameList,i=this._idList;if(n.getSource().sourceFormat===`original`&&!n.pure)for(var a=[],o=e;o<t;o++){var s=n.getItem(o,a);if(!this.hasItemOption&&C(s)&&(this.hasItemOption=!0),s){var c=s.name;r[o]==null&&c!=null&&(r[o]=Te(c,null));var l=s.id;i[o]==null&&l!=null&&(i[o]=Te(l,null))}}if(this._shouldMakeIdFromName())for(o=e;o<t;o++)ya(this,o);pa(this)}},e.prototype.getApproximateExtent=function(e,t){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e),t)},e.prototype.setApproximateExtent=function(e,t){t=this.getDimension(t),this._approximateExtent[t]=e.slice()},e.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},e.prototype.setCalculationInfo=function(e,t){ba(e)?B(this._calculationInfo,e):this._calculationInfo[e]=t},e.prototype.getName=function(e){var t=this.getRawIndex(e),n=this._nameList[t];return n==null&&this._nameDimIdx!=null&&(n=ha(this,this._nameDimIdx,t)),n??=``,n},e.prototype._getCategory=function(e,t){var n=this._store.get(e,t),r=this._store.getOrdinalMeta(e);return r?r.categories[n]:n},e.prototype.getId=function(e){return ma(this,this.getRawIndex(e))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.get(r.storeDimIndex,t)},e.prototype.getByRawIndex=function(e,t){var n=this._store,r=this._dimInfos[e];if(r)return n.getByRawIndex(r.storeDimIndex,t)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e),null)},e.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},e.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},e.prototype.getValues=function(e,t){var n=this,r=this._store;return q(e)?r.getValues(xa(e,function(e){return n._getStoreDimIndex(e)}),t):r.getValues(e)},e.prototype.hasValue=function(e){for(var t=this._dimSummary.dataDimIndicesOnCoord,n=0,r=t.length;n<r;n++)if(isNaN(this._store.get(t[n],e)))return!1;return!0},e.prototype.indexOfName=function(e){for(var t=0,n=this._store.count();t<n;t++)if(this.getName(t)===e)return t;return-1},e.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},e.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},e.prototype.rawIndexOf=function(e,t){var n=e&&this._invertedIndicesMap[e],r=n&&n[t];return r==null||isNaN(r)?-1:r},e.prototype.each=function(e,t,n){S(e)&&(n=t,t=e,e=[]);var r=n||this,i=xa(ga(e),this._getStoreDimIndex,this);this._store.each(i,r?m(t,r):t)},e.prototype.filterSelf=function(e,t,n){S(e)&&(n=t,t=e,e=[]);var r=n||this,i=xa(ga(e),this._getStoreDimIndex,this);return this._store=this._store.filter(i,r?m(t,r):t),this},e.prototype.selectRange=function(e){var t=this,n={},r=O(e),i=[];return H(r,function(r){var a=t._getStoreDimIndex(r);n[a]=e[r],i.push(a)}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(e,t,n){S(e)&&(n=t,t=e,e=[]),n||=this;var r=[];return this.each(e,function(){r.push(t&&t.apply(this,arguments))},n),r},e.prototype.map=function(e,t,n,r){var i=n||r||this,a=xa(ga(e),this._getStoreDimIndex,this),o=va(this);return o._store=this._store.map(a,i?m(t,i):t),o},e.prototype.modify=function(e,t,n,r){var i=n||r||this,a=xa(ga(e),this._getStoreDimIndex,this);this._store.modify(a,i?m(t,i):t)},e.prototype.downSample=function(e,t,n,r){var i=va(this);return i._store=this._store.downSample(this._getStoreDimIndex(e),t,n,r),i},e.prototype.minmaxDownSample=function(e,t){var n=va(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(e),t),n},e.prototype.lttbDownSample=function(e,t){var n=va(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(e),t),n},e.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},e.prototype.getItemModel=function(e){var t=this.hostModel,n=this.getRawDataItem(e);return new Ze(n,t,t&&t.ecModel)},e.prototype.diff=function(e){var t=this;return new na(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(t){return ma(e,t)},function(e){return ma(t,e)})},e.prototype.getVisual=function(e){var t=this._visual;return t&&t[e]},e.prototype.setVisual=function(e,t){this._visual=this._visual||{},ba(e)?B(this._visual,e):this._visual[e]=t},e.prototype.getItemVisual=function(e,t){var n=this._itemVisuals[e];return(n&&n[t])??this.getVisual(t)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(e,t){var n=this._itemVisuals,r=n[e];r||=n[e]={};var i=r[t];return i??(i=this.getVisual(t),q(i)?i=i.slice():ba(i)&&(i=B({},i)),r[t]=i),i},e.prototype.setItemVisual=function(e,t,n){var r=this._itemVisuals[e]||{};this._itemVisuals[e]=r,ba(t)?B(r,t):r[t]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(e,t){ba(e)?B(this._layout,e):this._layout[e]=t},e.prototype.getLayout=function(e){return this._layout[e]},e.prototype.getItemLayout=function(e){return this._itemLayouts[e]},e.prototype.setItemLayout=function(e,t,n){this._itemLayouts[e]=n?B(this._itemLayouts[e]||{},t):t},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(e,t){var n=this.hostModel&&this.hostModel.seriesIndex;xr(n,this.dataType,e,t),this._graphicEls[e]=t},e.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},e.prototype.eachItemGraphicEl=function(e,t){H(this._graphicEls,function(n,r){n&&e&&e.call(t,n,r)})},e.prototype.cloneShallow=function(t){return t||=new e(this._schema?this._schema:xa(this.dimensions,this._getDimInfo,this),this.hostModel),_a(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(e,t){var n=this[e];S(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=n.apply(this,arguments);return t.apply(this,[e].concat(St(arguments)))})},e.internalField=(pa=function(e){var t=e._invertedIndicesMap;H(t,function(n,r){var i=e._dimInfos[r],a=i.ordinalMeta,o=e._store;if(a){n=t[r]=new Sa(a.categories.length);for(var s=0;s<n.length;s++)n[s]=-1;for(s=0;s<o.count();s++)n[o.get(i.storeDimIndex,s)]=s}})},ha=function(e,t,n){return Te(e._getCategory(t,n),null)},ma=function(e,t){var n=e._idList[t];return n==null&&e._idDimIdx!=null&&(n=ha(e,e._idDimIdx,t)),n??=`e\0\0`+t,n},ga=function(e){return q(e)||(e=e==null?[]:[e]),e},va=function(t){var n=new e(t._schema?t._schema:xa(t.dimensions,t._getDimInfo,t),t.hostModel);return _a(n,t),n},_a=function(e,t){H(Ca.concat(t.__wrappedMethods||[]),function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e.__wrappedMethods=t.__wrappedMethods,H(wa,function(n){e[n]=Lr(t[n])}),e._calculationInfo=B({},t._calculationInfo)},void(ya=function(e,t){var n=e._nameList,r=e._idList,i=e._nameDimIdx,a=e._idDimIdx,o=n[t],s=r[t];if(o==null&&i!=null&&(n[t]=o=ha(e,i,t)),s==null&&a!=null&&(r[t]=s=ha(e,a,t)),s==null&&o!=null){var c=e._nameRepeatCount,l=c[o]=(c[o]||0)+1;s=o,l>1&&(s+=`__ec__`+l),r[t]=s}})),e}();function Ea(e,t){or(e)||(e=st(e));var n=(t||={}).coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],i=a(),o=[],s=function(e,t,n,r){var i=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return H(t,function(e){var t;_(e)&&(t=e.dimsDef)&&(i=Math.max(i,t.length))}),i}(e,n,r,t.dimensionsCount),c=t.canOmitUnusedDimensions&&fa(s),l=r===e.dimensionsDefine,u=l?da(e):ua(r),d=t.encodeDefine;!d&&t.encodeDefaulter&&(d=t.encodeDefaulter(e,s));for(var f=a(d),p=new Wr(s),m=0;m<p.length;m++)p[m]=-1;function h(e){var t=p[e];if(t<0){var n=r[e],i=_(n)?n:{name:n},a=new aa,s=i.name;return s!=null&&u.get(s)!=null&&(a.name=a.displayName=s),i.type!=null&&(a.type=i.type),i.displayName!=null&&(a.displayName=i.displayName),p[e]=o.length,a.storeDimIndex=e,o.push(a),a}return o[t]}if(!c)for(m=0;m<s;m++)h(m);f.each(function(e,t){var n=vt(e).slice();if(n.length===1&&!W(n[0])&&n[0]<0)f.set(t,!1);else{var r=f.set(t,[]);H(n,function(e,n){var i=W(e)?u.get(e):e;i!=null&&i<s&&(r[n]=i,v(h(i),t,n))})}});var g=0;function v(e,t,n){Pe.get(t)==null?(e.coordDim=t,e.coordDimIndex=n,i.set(t,!0)):e.otherDims[t]=n}H(n,function(e){var t,n,r,i;if(W(e))t=e,i={};else{t=(i=e).name;var a=i.ordinalMeta;i.ordinalMeta=null,(i=B({},i)).ordinalMeta=a,n=i.dimsDef,r=i.otherDims,i.name=i.coordDim=i.coordDimIndex=i.dimsDef=i.otherDims=null}var o=f.get(t);if(!1!==o){if(!(o=vt(o)).length)for(var c=0;c<(n&&n.length||1);c++){for(;g<s&&h(g).coordDim!=null;)g++;g<s&&o.push(g++)}H(o,function(e,a){var o=h(e);if(l&&i.type!=null&&(o.type=i.type),v(Sr(o,i),t,a),o.name==null&&n){var s=n[a];!_(s)&&(s={name:s}),o.name=o.displayName=s.name,o.defaultTooltip=s.defaultTooltip}r&&Sr(o.otherDims,r)})}});var y=t.generateCoord,b=t.generateCoordCount,x=b!=null;b=y?b||1:0;var S=y||`value`;function C(e){e.name??=e.coordDim}if(c)H(o,function(e){C(e)}),o.sort(function(e,t){return e.storeDimIndex-t.storeDimIndex});else for(var w=0;w<s;w++){var T=h(w);T.coordDim??(T.coordDim=Da(S,i,x),T.coordDimIndex=0,(!y||b<=0)&&(T.isExtraCoord=!0),b--),C(T),T.type!=null||Bt(e,w)!==rt.Must&&(!T.isExtraCoord||T.otherDims.itemName==null&&T.otherDims.seriesName==null)||(T.type=`ordinal`)}return Zt(o,function(e){return e.name},function(e,t){t>0&&(e.name+=t-1)}),new ca({source:e,dimensions:o,fullDimensionCount:s,dimensionOmitted:c})}function Da(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var Oa=function(e){this.coordSysDims=[],this.axisMap=a(),this.categoryAxisMap=a(),this.coordSysName=e},ka={cartesian2d:function(e,t,n,r){var i=e.getReferringComponents(`xAxis`,de).models[0],a=e.getReferringComponents(`yAxis`,de).models[0];t.coordSysDims=[`x`,`y`],n.set(`x`,i),n.set(`y`,a),Aa(i)&&(r.set(`x`,i),t.firstCategoryDimIndex=0),Aa(a)&&(r.set(`y`,a),t.firstCategoryDimIndex??=1)},singleAxis:function(e,t,n,r){var i=e.getReferringComponents(`singleAxis`,de).models[0];t.coordSysDims=[`single`],n.set(`single`,i),Aa(i)&&(r.set(`single`,i),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var i=e.getReferringComponents(`polar`,de).models[0],a=i.findAxisModel(`radiusAxis`),o=i.findAxisModel(`angleAxis`);t.coordSysDims=[`radius`,`angle`],n.set(`radius`,a),n.set(`angle`,o),Aa(a)&&(r.set(`radius`,a),t.firstCategoryDimIndex=0),Aa(o)&&(r.set(`angle`,o),t.firstCategoryDimIndex??=1)},geo:function(e,t,n,r){t.coordSysDims=[`lng`,`lat`]},parallel:function(e,t,n,r){var i=e.ecModel,a=i.getComponent(`parallel`,e.get(`parallelIndex`)),o=t.coordSysDims=a.dimensions.slice();H(a.parallelAxisIndex,function(e,a){var s=i.getComponent(`parallelAxis`,e),c=o[a];n.set(c,s),Aa(s)&&(r.set(c,s),t.firstCategoryDimIndex??=a)})},matrix:function(e,t,n,r){var i=e.getReferringComponents(`matrix`,de).models[0];t.coordSysDims=[`x`,`y`];var a=i.getDimensionModel(`x`),o=i.getDimensionModel(`y`);n.set(`x`,a),n.set(`y`,o),r.set(`x`,a),r.set(`y`,o)}};function Aa(e){return e.get(`type`)===`category`}function ja(e,t,n){var r,i,a,o=(n||={}).byIndex,s=n.stackedCoordDimension;(function(e){return!la(e.schema)})(t)?r=t:(i=t.schema,r=i.dimensions,a=t.store);var c,l,u,d,f=!(!e||!e.get(`stack`)),p=!0;function m(e){return e.type!==`ordinal`&&e.type!==`time`}if(H(r,function(e,t){W(e)&&(r[t]=e={name:e}),m(e)||(p=!1)}),H(r,function(e,t){f&&!e.isExtraCoord&&(o||c||!e.ordinalMeta||(c=e),l||!m(e)||p&&(e.coordDim===`x`||e.coordDim===`angle`)||s&&s!==e.coordDim||(l=e))}),!l||o||c||(o=!0),l){u=`__\0ecstackresult_`+e.id,d=`__\0ecstackedover_`+e.id,c&&(c.createInvertedIndices=!0);var h=l.coordDim,g=l.type,_=0;H(r,function(e){e.coordDim===h&&_++});var v={name:u,coordDim:h,coordDimIndex:_,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length},y={name:d,coordDim:d,coordDimIndex:_+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:r.length+1};i?(a&&(v.storeDimIndex=a.ensureCalculationDimension(d,g),y.storeDimIndex=a.ensureCalculationDimension(u,g)),i.appendCalculationDimension(v),i.appendCalculationDimension(y)):(r.push(v),r.push(y))}return{stackedDimension:l&&l.name,stackedByDimension:c&&c.name,isStackedByIndex:o,stackedOverDimension:d,stackResultDimension:u}}function Ma(e,t){return!!t&&t===e.getCalculationInfo(`stackedDimension`)}function Na(e,t,n){n||={};var r,i=t.getSourceManager(),a=!1;e?(a=!0,r=st(e)):a=(r=i.getSource()).sourceFormat===lt;var o=function(e){var t=e.get(`coordinateSystem`),n=new Oa(t),r=ka[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}(t),s=function(e,t){var n,r=e.get(`coordinateSystem`),i=Mn.get(r);return t&&t.coordSysDims&&(n=J(t.coordSysDims,function(e){var n={name:e},r=t.axisMap.get(e);return r&&(n.type=function(e){return e===`category`?`ordinal`:e===`time`?`time`:`float`}(r.get(`type`))),n})),n||=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||[`x`,`y`],n}(t,o),c=n.useEncodeDefaulter,l=S(c)?c:c?Y(At,s,t):null,u=Ea(r,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a}),d=function(e,t,n){var r,i;return n&&H(e,function(e,a){var o=e.coordDim,s=n.categoryAxisMap.get(o);s&&(r??=a,e.ordinalMeta=s.getOrdinalMeta(),t&&(e.createInvertedIndices=!0)),e.otherDims.itemName!=null&&(i=!0)}),i||r==null||(e[r].otherDims.itemName=0),r}(u.dimensions,n.createInvertedIndices,o),f=a?null:i.getSharedDataStore(u),p=ja(t,{schema:u,store:f}),m=new Ta(u,t);m.setCalculationInfo(p);var h=d!=null&&function(e){if(e.sourceFormat===`original`){var t=function(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}(e.data||[]);return!q(Tr(t))}}(r)?function(e,t,n,r){return r===d?n:this.defaultDimValueGetter(e,t,n,r)}:null;return m.hasItemOption=!1,m.initData(a?r:f,null,h),m}var Pa=function(){function e(){}return e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(e){this._isBlank=e},e}();En(Pa);var Fa=0,Ia=function(){function e(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++Fa,this._onCollect=e.onCollect}return e.createByAxisModel=function(t){var n=t.option,r=n.data,i=r&&J(r,La);return new e({categories:i,needCollect:!i,deduplication:!1!==n.dedplication})},e.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},e.prototype.parseAndCollect=function(e){var t,n=this._needCollect;if(!W(e)&&!n)return e;if(n&&!this._deduplication)return t=this.categories.length,this.categories[t]=e,this._onCollect&&this._onCollect(e,t),t;var r=this._getOrCreateMap();return(t=r.get(e))??(n?(t=this.categories.length,this.categories[t]=e,r.set(e,t),this._onCollect&&this._onCollect(e,t)):t=NaN),t},e.prototype._getOrCreateMap=function(){return this._map||=a(this.categories)},e}();function La(e){return _(e)&&e.value!=null?e.value:e+``}var Ra=O({needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1});function za(e,t,n){var r;e||={};var i=l();if(i){var a=i.createBreakScaleMapper(t,n);a.hasBreaks()&&(H(Ra,function(t){a[t]&&(e[t]=m(a[t],a))}),r=a)}return r??function(e,t){var n=e||{},r=[];n._extents=r,r[0]=t?t.slice():Ht(),B(n,Ga)}(e,n),{brk:r,mapper:e}}function Ba(e,t){H(Ra,function(n){e[n]=t[n]})}function Va(e,t){e.freeze=mn}function Ha(e){return e.getExtentUnsafe(0,2)}function Ua(e,t){return e.getExtentUnsafe(1,t)||e.getExtentUnsafe(0,t)}function Wa(e){var t=e.getExtentUnsafe(0,3);return t[1]-t[0]}var Ga={needTransform:function(){return!1},normalize:function(e){var t=this._extents[1]||this._extents[0];return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},scale:function(e){var t=this._extents[1]||this._extents[0];return e*(t[1]-t[0])+t[0]},transformIn:function(e){return e},transformOut:function(e){return e},contain:function(e){var t=Ua(this,null);return e>=t[0]&&e<=t[1]},getExtent:function(){return this._extents[0].slice()},getExtentUnsafe:function(e){return this._extents[e]},setExtent:function(e,t){Ka(this._extents,0,e,t)},setExtent2:function(e,t,n){var r=this._extents;r[e]||(r[e]=r[0].slice()),Ka(r,e,t,n)},freeze:function(){}};function Ka(e,t,n,r){nr(n,r)&&(e[t][0]=n,e[t][1]=r)}function qa(e){return Ja(e)||Xa(e)}function Ja(e){return e.type===`interval`}function Ya(e){return e.type===`time`}function Xa(e){return e.type===`log`}function Za(e){return e.type===`ordinal`}function Qa(e){var t=Ln(e),n=$e(10,t),r=c(e/n);return r?r===2?r=3:r===3?r=5:r*=2:r=1,V(r*n,-t)}function $a(e){return Rn(e)+2}function eo(e,t){return ar(e)/ar(t)}function to(e,t,n){var r=n&&n.lookup;if(r){for(var i=0;i<r.from.length;i++)if(e===r.from[i])return r.to[i]}return $e(t,e)}function no(e,t,n){var r=e.slice();if(r[0]===r[1]){var i=n&&n.ctnShp;if(r[0]!==0){var a=xt(r[0]);t[1]||(r[1]+=a/2),r[0]-=a/2}else i&&(r[0]=-1),r[1]=1}return ht(r[0])&&ht(r[1])||(r[0]=0,r[1]=1),r[1]<r[0]&&r.reverse(),r}function ro(e,t){return c(z(e||=t,1))}function io(e,t,n){var r=Ha(e),i=r[0],a=e.count(),o=Math.max((t||0)+1,1);i!==0&&o>1&&a/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==r[0]&&c(r[0],!0,!0);for(var s=i;s<=r[1];s+=o)c(s,!1,s===r[0]||s===r[1]);function c(e,t,r){n({value:e,offInterval:t},r)}s-o!==r[1]&&c(r[1],!0,!0)}var ao=function(e){function t(n){var r=e.call(this)||this;r.type=`ordinal`,r.parse=t.parse,Ba(r,t.decoratedMethods);var i=n.ordinalMeta;i||=new Ia({}),q(i)&&(i=new Ia({categories:J(i,function(e){return _(e)?e.value:e})})),r._ordinalMeta=i;var a=za(null,null,n.extent||[0,i.categories.length-1]);return r._mapper=a.mapper,Va(r,a.mapper),r}return X(t,e),t.parse=function(e){return e==null?e=NaN:W(e)?(e=this._ordinalMeta.getOrdinal(e))??(e=NaN):e=c(e),e},t.prototype.getTicks=function(){var e=[];return io(this,0,function(t){e.push(t)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e!=null){for(var t=e.ordinalNumbers,n=this._ordinalNumbersByTick=[],r=this._ticksByOrdinalNumber=[],i=0,a=this._ordinalMeta.categories.length,o=gr(a,t.length);i<o;++i)r[n[i]=t[i]]=i;for(var s=0;i<a;++i){for(;r[s]!=null;)s++;n[i]=s,r[s]=i}}else this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null},t.prototype._getTickNumber=function(e){var t=this._ticksByOrdinalNumber;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getRawOrdinalNumber=function(e){var t=this._ordinalNumbersByTick;return t&&e>=0&&e<t.length?t[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var t=this.getRawOrdinalNumber(e.value),n=this._ordinalMeta.categories[t];return n==null?``:n+``}},t.prototype.count=function(){var e=Ha(this._mapper);return e[1]-e[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type=`ordinal`,t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(e){return this._mapper.contain(this._getTickNumber(e))&&e>=0&&e<this._ordinalMeta.categories.length},normalize:function(e){return this._mapper.normalize(this._getTickNumber(e))},scale:function(e){return this.getRawOrdinalNumber(c(this._mapper.scale(e)))},transformIn:function(e,t){return this._mapper.transformIn(this._getTickNumber(e),t)},transformOut:function(e,t){return this.getRawOrdinalNumber(this._mapper.transformOut(e,t))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(e,t){return this._mapper.getExtentUnsafe(e,t)},setExtent:function(e,t){return this._mapper.setExtent(e,t)},setExtent2:function(e,t,n){return this._mapper.setExtent2(e,t,n)}},t}(Pa);function oo(e,t,n,r){for(var i=e.getTicks({expandToNicedExtent:!0}),a=[],o=e.getExtent(),s=1;s<i.length;s++){var c=i[s],u=i[s-1];if(!u.break&&!c.break){for(var d=0,f=[],p=(c.value-u.value)/t,m=$a(p);d<t-1;){var h=V(u.value+(d+1)*p,m);h>o[0]&&h<o[1]&&f.push(h),d++}var g=l();g&&g.pruneTicksByBreak(`auto`,f,n,function(e){return e},r,o),a.push(f)}}return a}Pa.registerClass(ao);var so=function(e){function t(n){var r=e.call(this)||this;return r.type=`interval`,r.parse=t.parse,r.brk=za(r,ie(r,n||={}),null).brk,r._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},r}return X(t,e),t.parse=function(e){return e==null||e===``?NaN:Number(e)},t.prototype.getConfig=function(){return Lr(this._cfg)},t.prototype.setConfig=function(e){var t=Ha(this);this._cfg=e=Lr(e),e.niceExtent??(e.niceExtent=t.slice()),e.intervalPrecision??(e.intervalPrecision=$a(e.interval))},t.prototype.getTicks=function(e){e||={};var t=this._cfg,n=t.interval,r=Ha(this),i=t.niceExtent,a=t.intervalPrecision,o=l(),s=this.brk,u=o&&s,d=[];if(!n)return d;if(e.breakTicks===`only_break`&&u)return o.addBreaksToTicks(d,s.breaks,r),d;r[0]<i[0]&&d.push({value:e.expandToNicedExtent?V(i[0]-n,a):r[0]});for(var f=function(e,t){return c((t-e)/n)},p=t.intervalCount,m=i[0],h=0;;h++){if(p==null){if(m>i[1]||!isFinite(m)||!isFinite(i[1]))break}else{if(h>p)break;m=gr(m,i[1]),h===p&&(m=i[1])}if(d.push({value:m}),m=V(m+n,a),s){var g=s.calcNiceTickMultiple(m,f);g>=0&&(m=V(m+g*n,a))}if(d.length>0&&m===d[d.length-1].value)break;if(d.length>3e3)return[]}var _=d.length?d[d.length-1].value:i[1];return r[1]>_&&d.push({value:e.expandToNicedExtent?V(_+n,a):r[1]}),u&&o.pruneTicksByBreak(e.pruneByBreak,d,s.breaks,function(e){return e.value},t.interval,r),u&&e.breakTicks!==`none`&&o.addBreaksToTicks(d,s.breaks,r),d},t.prototype.getMinorTicks=function(e){return oo(this,e,Lt(this),this._cfg.interval)},t.prototype.getLabel=function(e,t){if(e==null)return``;var n=t&&t.precision;n==null?n=Rn(e.value)||0:n===`auto`&&(n=this._cfg.intervalPrecision);var r=V(e.value,n,!0);return On(r)},t.type=`interval`,t}(Pa);Pa.registerClass(so);var co=function(e){function t(n){var r=e.call(this)||this;return r.type=`time`,r.parse=t.parse,r._locale=n.locale,r._useUTC=n.useUTC,r._interval=0,r.brk=za(r,ie(r,n),null).brk,r}return X(t,e),t.prototype.getLabel=function(e){return Pt(e.value,Ce[T(Fr(this._minLevelUnit))]||Ce.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,t,n){return Pr(e,t,n,this._locale,this._useUTC)},t.prototype.getTicks=function(e){e||={};var t=this._interval,n=Ha(this),r=l(),i=this.brk,a=r&&i,o=[];if(!t)return o;var s=this._useUTC;if(a&&e.breakTicks===`only_break`)return l().addBreaksToTicks(o,i.breaks,n),o;o=function(e,t,n,r,i,a){var o=Dt,s=0;function c(e,t,n,i,o,c,l){for(var u=function(e,t){var n=new Date(0);n[e](1);var r=n.getTime();n[e](1+t);var i=n.getTime()-r;return function(e,t){return Math.max(0,Math.round((t-e)/i))}}(o,e),d=t,f=new Date(d);d<n&&d<=r[1]&&(l.push({value:d}),!(s++>3e3));)if(f[o](f[i]()+e),d=f.getTime(),a){var p=a.calcNiceTickMultiple(d,u);p>0&&(f[o](f[i]()+p*e),d=f.getTime())}l.push({value:d,notAdd:d>r[1]})}function l(e,i,a){var o=[],s=!i.length;if(!uo(Fr(e),r[0],r[1],n)){s&&(i=[{value:_o(r[0],e,n)},{value:r[1]}]);for(var l=0;l<i.length-1;l++){var u=i[l].value,d=i[l+1].value;if(u!==d){var f=void 0,p=void 0,m=void 0,h=!1;switch(e){case`year`:f=Math.max(1,Math.round(t/Je/365)),p=Xt(n),m=je(n);break;case`half-year`:case`quarter`:case`month`:f=po(t),p=E(n),m=De(n);break;case`week`:case`half-week`:case`day`:f=fo(t,31),p=Ke(n),m=gn(n),h=!0;break;case`half-day`:case`quarter-day`:case`hour`:f=mo(t),p=wr(n),m=ae(n);break;case`minute`:f=ho(t,!0),p=sn(n),m=Ye(n);break;case`second`:f=ho(t,!1),p=an(n),m=qn(n);break;case`millisecond`:f=go(t),p=Nr(n),m=Cr(n)}d>=r[0]&&u<=r[1]&&c(f,u,d,p,m,h,o),e===`year`&&a.length>1&&l===0&&a.unshift({value:a[0].value-f})}}for(l=0;l<o.length;l++)a.push(o[l])}}for(var u=[],d=[],f=0,p=0,m=0;m<o.length;++m){var h=Fr(o[m]);if(Vn(o[m])&&(l(o[m],u[u.length-1]||[],d),h!==(o[m+1]?Fr(o[m+1]):null))){if(d.length){p=f,d.sort(function(e,t){return e.value-t.value});for(var g=[],_=0;_<d.length;++_){var v=d[_].value;_!==0&&d[_-1].value===v||(g.push(d[_]),v>=r[0]&&v<=r[1]&&f++)}var y=i/t;if(f>1.5*y&&p>y/1.5||(u.push(g),f>y||e===o[m]))break}d=[]}}var b=Mt(J(u,function(e){return Mt(e,function(e){return e.value>=r[0]&&e.value<=r[1]&&!e.notAdd})}),function(e){return e.length>0}),x=b.length-1,S=[];for(m=0;m<b.length;++m)for(var C=b[m],w=0;w<C.length;++w){var T=ne(C[w].value,n);S.push({value:C[w].value,time:{level:x-m,upperTimeUnit:T,lowerTimeUnit:T}})}Zt(S,Yt,null),S.sort(function(e,t){return e.value-t.value});var D=S[0],O=S[S.length-1],k=ne(r[0],n),A=ne(r[1],n);return(!D||D.value>r[0])&&S.unshift({value:r[0],time:{level:0,upperTimeUnit:k,lowerTimeUnit:k},notNice:!0}),(!O||O.value<r[1])&&S.push({value:r[1],time:{level:0,upperTimeUnit:A,lowerTimeUnit:A},notNice:!0}),S}(this._minLevelUnit,this._approxInterval,s,n,Wa(this),i);var c=pe.length-1,u=0;return H(o,function(e){e.time&&(c=Math.min(c,er(pe,e.time.upperTimeUnit)),u=Math.max(u,e.time.level))}),a&&l().pruneTicksByBreak(e.pruneByBreak,o,i.breaks,function(e){return e.value},this._approxInterval,n),a&&e.breakTicks!==`none`&&l().addBreaksToTicks(o,i.breaks,n,function(e){for(var t=Math.max(er(pe,ne(e.vmin,s)),er(pe,ne(e.vmax,s))),n=0,r=0;r<pe.length;r++)if(!uo(pe[r],e.vmin,e.vmax,s)){n=r;break}var i=Math.min(n,c);return{level:u,lowerTimeUnit:pe[Math.max(i,t)],upperTimeUnit:pe[i]}}),o},t.prototype.getMinorTicks=function(e){return oo(this,e,Lt(this),this._interval)},t.prototype.setTimeInterval=function(e){this._interval=e.interval,this._approxInterval=e.approxInterval,this._minLevelUnit=e.minLevelUnit},t.parse=function(e){return _r(e)?Math.round(e):+F(e)},t.type=`time`,t}(Pa),lo=[[`second`,Be],[`minute`,Xn],[`hour`,ft],[`quarter-day`,6*ft],[`half-day`,12*ft],[`day`,1.2*Je],[`half-week`,3.5*Je],[`week`,7*Je],[`month`,31*Je],[`quarter`,95*Je],[`half-year`,Xe/2],[`year`,Xe]];function uo(e,t,n,r){return me(new Date(t),e,r).getTime()===me(new Date(n),e,r).getTime()}function fo(e,t){return(e/=864e5)>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function po(e){return(e/=2592e6)>6?6:e>3?3:e>2?2:1}function mo(e){return(e/=36e5)>12?12:e>6?6:e>3.5?4:e>2?2:1}function ho(e,t){return(e/=t?6e4:1e3)>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function go(e){return z(k(e,!0),1)}function _o(e,t,n){var r=Math.max(0,er(pe,t)-1);return me(new Date(e),pe[r],n).getTime()}Pa.registerClass(co);var vo=function(e){function t(n){var r=e.call(this)||this;r.type=`log`,r.parse=so.parse,r.base=n.logBase||10;var i=[],a=[],o=r._lookup={from:i,to:a};i[0]=i[1]=a[0]=a[1]=NaN,Ba(r,t.mapperMethods);var s=l(),c=n.breakOption,u={lookup:o};return s&&s.parseAxisBreakOptionInwardTransform(c,r,{noNegative:!0},2,u),r.powStub=new so({breakParsed:u.original}),r.intervalStub=new so({breakParsed:u.transformed}),Va(r,r.intervalStub),r}return X(t,e),t.prototype.getTicks=function(e){var t=this.base,n=this.powStub,r=l(),i=this.intervalStub,a={lookup:{from:i.getExtent(),to:n.getExtent()}};return J(i.getTicks(e||{}),function(e){var i,o=to(e.value,t,a);if(r){var s=r.getTicksBreakOutwardTransform(this,e,Lt(n),this._lookup);s&&(i=s.vBreak,o=s.tickVal)}return{value:o,break:i}},this)},t.prototype.getMinorTicks=function(e){return oo(this,e,Lt(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,t){return this.intervalStub.getLabel(e,t)},t.type=`log`,t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(eo(e,this.base))},scale:function(e){return to(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,t){return e=eo(e,this.base),t&&t.depth===2?e:this.intervalStub.transformIn(e,t)},transformOut:function(e,t){var n=t?t.depth:null;return yo.depth=n,bo.lookup=this._lookup,to(n===2?e:this.intervalStub.transformOut(e,yo),this.base,bo)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,t){this.setExtent2(0,e,t)},setExtent2:function(e,t,n){if(!(!nr(t,n)||t<=0||n<=0)){var r=xo,i=xo;if(e===0){var a=this._lookup;r=a.to,i=a.from}this.powStub.setExtent2(e,r[0]=t,r[1]=n);var o=this.base;this.intervalStub.setExtent2(e,i[0]=eo(t,o),i[1]=eo(n,o))}},getFilter:function(){return{g:0}},sanitize:function(e,t){return nr(t[0],t[1])&&Mr(e)&&e<=0&&(e=t[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,t){return t===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,t)}},t}(Pa);Pa.registerClass(vo);var yo={},bo={},xo=[],So={value:1,category:1,time:1,log:1},Co=I();function wo(e){var t=e.getLabelModel().get(`formatter`);if(e.type===`time`){var n=ir(t);return function(t,r){return e.scale.getFormattedLabel(t,r,n)}}if(W(t))return function(n){var r=e.scale.getLabel(n);return t.replace(`{value}`,r??``)};if(S(t)){if(e.type===`category`)return function(n,r){return t(To(e,n),n.value-e.scale.getExtent()[0],null)};var r=l();return function(n,i){var a=null;return r&&(a=r.makeAxisLabelFormatterParamBreak(a,n.break)),t(To(e,n),i,a)}}return function(t){return e.scale.getLabel(t)}}function To(e,t){var n=e.scale;return Za(n)?n.getLabel(t):t.value}function Eo(e){return e.get(`interval`)??`auto`}function Do(e,t){var n={};return H(e.mapDimensionsAll(t),function(t){n[function(e,t){return Ma(e,t)?e.getCalculationInfo(`stackResultDimension`):t}(e,t)]=!0}),O(n)}function Oo(e){return e===`middle`||e===`center`}function ko(e){return e.getShallow(`show`)}function Ao(e,t,n){var r=e.get(`breaks`,!0);if(r!=null)return!l()||!n||!function(e){return e!==`category`}(t)?void 0:r}function jo(e,t,n,r,i,a){var o,s,c=Xa(e),l=c?e.intervalStub:e;if(l.setExtent(r[0],r[1]),c){var u=e.powStub,d={depth:2},f=e.transformOut(r[0],d),p=e.transformOut(r[1],d),m=(s=r,[(o=n)[0]!==s[0],o[1]!==s[1]]);t[0]&&!m[0]&&(f=i[0]),t[1]&&!m[1]&&(p=i[1]),u.setExtent(f,p)}l.setConfig(a)}function Mo(e,t){return Za(e)?e.getRawOrdinalNumber(t.value):t.value}function No(e,t){return Za(e)&&!!t.get(`boundaryGap`)}var Po=function(){function e(){}return e.prototype.needIncludeZero=function(){return!this.option.scale},e.prototype.getCoordSysModel=function(){},e}(),Fo=Et(),Io=I(),Lo=I();function Ro(e,t){var n=e.model,r=Io(Nt(n.ecModel)).keyed,i=r&&r.get(t);return i&&i.get(n.uid)}function zo(e,t){return Vo(Ro(e,t))}function Bo(e,t){var n=Io(Nt(e)).keyed;n&&n.each(function(e,n){e.each(function(e,r){t(e,n,r)})})}function Vo(e){return{liPosMinGap:e?e.liPosMinGap:void 0}}function Ho(e,t,n){var r=Ro(e,t);r&&Uo(e.model.ecModel,r.sers,n)}function Uo(e,t,n){if(t)for(var r=0;r<t.length;r++){var i=t[r];e.isSeriesFiltered(i)||n(i)}}function Wo(e,t){var n=e.model,r=Io(Nt(n.ecModel)).keys;r&&H(r.get(n.uid),function(e){t(e)})}function Go(e){var t=Lo(Un(e)),n=t.keyed||=a();Bo(e,function(t,r,i){var o=n.get(r)||n.set(r,a()),s=o.get(i)||o.set(i,{});t.metrics.liPosMinGap&&Ko.liPosMinGap(e,t,s)})}var Ko={};function qo(e,t,n){if(e){var r=t.ecModel,i=Io(Nt(r)),o=e.model.uid,s=i.axSer||=a();(s.get(o)||s.set(o,[])).push(t);var c=t.subType,l=t.getBaseAxis()===e,u=Yo.get(Jo(c,l,n))||Yo.get(Jo(c,l,null));if(u){var d=i.keyed||=a(),f=i.keys||=a(),p=u.key,m=d.get(p)||d.set(p,a()),h=m.get(o);h||((h=m.set(o,{axis:e,sers:[],serByIdx:[]})).metrics=u.getMetrics(e),(f.get(o)||f.set(o,[])).push(p)),h.sers.push(t),h.serByIdx[t.seriesIndex]=t}}}function Jo(e,t,n){return e+`|&`+R(t,!0)+`|&`+(n||``)}var Yo=a(),Xo=I(),Zo=function(){function e(e,t,n,r,i){var a,o=Za(e),s=o?t.getCategories().length:null;if(o){var c=t.getCategories(!0);a=c&&!c.length}var l=n.slice();(Ja(e)||Xa(e)||Ya(e))&&(A(l,$o(e,t.get(`dataMin`,!0))),yn(l,$o(e,t.get(`dataMax`,!0)))),yr(l)||(l[0]=l[1]=NaN);var u=[],d=[!1,!1],f=t.get(`min`,!0);f===`dataMin`?(u[0]=l[0],d[0]=!0):(u[0]=$o(e,S(f)?f({min:l[0],max:l[1]}):f),d[0]=u[0]!=null);var p=t.get(`max`,!0);p===`dataMax`?(u[1]=l[1],d[1]=!0):(u[1]=$o(e,S(p)?p({min:l[0],max:l[1]}):p),d[1]=u[1]!=null);var m=function(e,t){var n;if(Za(e))n=[0,0];else{var r=t.get(`boundaryGap`);typeof r==`boolean`&&(r=null),n=q(r)?r:[r,r]}return[es(n[0]),es(n[1])]}(e,t),h=o?null:l[1]-l[0]||Math.abs(l[0]);u[0]??=o?a?l[0]:s?0:NaN:l[0]-m[0]*h,u[1]??=o?a?l[1]:s?s-1:NaN:l[1]+m[1]*h,!ht(u[0])&&(u[0]=NaN),!ht(u[1])&&(u[1]=NaN);var g=a||ve(u[0])||ve(u[1])||o&&!s,_=Ja(e),v=_&&t.needIncludeZero&&t.needIncludeZero();v&&(u[0]>0&&u[1]>0&&!d[0]&&(u[0]=0),u[0]<0&&u[1]<0&&!d[1]&&(u[1]=0));var y=!1;u[0]>u[1]&&(u.reverse(),y=!0);var b=$o(e,t.get(`startValue`,!0)),x=b!=null;!Mr(b)&&r&&(b=e.getDefaultStartValue?e.getDefaultStartValue():0),Mr(b)&&(x||!_||v)&&(b<u[0]&&!d[0]?(u[0]=b,d[0]=!0):b>u[1]&&!d[1]&&(u[1]=b,d[1]=!0)),Qo(this._i={scale:e,dataMM:l,noZoomEffMM:u,zoomMM:[],fixMM:d,zoomFixMM:[!1,!1],startValue:b,isBlank:g,incl0:v,tggAxInv:y,ctnShp:i},u)}return e.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},e.prototype.makeFinal=function(){var e=this._i,t=e.zoomMM,n=e.noZoomEffMM,r=e.zoomFixMM,i=e.fixMM,a={fixMM:i,zoomFixMM:r,isBlank:e.isBlank,incl0:e.incl0,tggAxInv:e.tggAxInv,ctnShp:e.ctnShp,effMM:n.slice()},o=a.effMM;return t[0]!=null&&(o[0]=t[0],i[0]=r[0]=!0),t[1]!=null&&(o[1]=t[1],i[1]=r[1]=!0),Qo(e,o),a},e.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},e.prototype.setZoomMM=function(e,t){this._i.zoomMM[e]=t},e}();function Qo(e,t){var n=e.scale,r=e.dataMM;n.sanitize&&(t[0]=n.sanitize(t[0],r),t[1]=n.sanitize(t[1],r),j(t))}function $o(e,t){return t==null?null:ve(t)?NaN:e.parse(t)}function es(e){return Ot(typeof e==`boolean`?0:e,1)||0}function ts(e){var t=Xo(e.scale);return t.extent||=Ht(),t}function ns(e,t){var n=e.scale,r=e.model,i=e.dim;n.rawExtentInfo||function(e,t,n,r,i){var a=ts(t),o=a.extent,s=!1;(function(e,t){var n=e.model.ecModel,r=Io(Nt(n)).axSer;r&&Uo(n,r.get(e.model.uid),t)})(t,function(r){if(r.boxCoordinateSystem){var i=cn(r).coord,c=a.dimIdxInCoord;if(c>=0&&q(i)){var l=i[c];l==null||q(l)||pr(o,e.parse(l))}}else if(r.coordinateSystem){var u=r.getData();if(u){var d=e.getFilter?e.getFilter():null;H(Do(u,n),function(e){Vt(o,u.getApproximateExtent(e,d))})}r.__requireStartValue&&r.__requireStartValue(t)&&(s=!0)}});var c=function(e,t,n){var r=No(e,n),i=n.get(`containShape`,!0);if(i!=null||r||(i=!0),!i)return!1;var a=!1;return Wo(t,function(e){a=!!is.get(e)||a}),a}(e,t,r);rs(e,new Zo(e,r,o,s,c),i),a.extent=null}(n,e,i,r,t)}function rs(e,t,n){e.rawExtentInfo=t,t.from=n}var is=a();function as(e,t,n,r,i){e.rawExtentInfo||function(e,t){var n=e.scale;rs(n,new Zo(n,e.model,t,!1,!1),3)}({scale:e,model:t},i||Ht());var a=e.rawExtentInfo.makeFinal(),o=a.effMM;return e.setExtent(o[0],o[1]),e.setBlank(a.isBlank),r&&a.tggAxInv&&n&&!n.get(`legacyMinMaxDontInverseAxis`)&&(r.inverse=!r.inverse),a}function os(e,t,n,r){var i;if(n.ctnShp&&(Wo(e,function(t){var n=is.get(t);if(n){var a=n(e,r);a&&(A(i||=[0,0],a[0]),yn(i,a[1]),function(e){Co(e).noOnMyZero=!0}(e))}}),i)){var a=t.getExtent();if(Za(t))e.onBand||t.setExtent2(1,gr(a[0],a[0]+i[0]),z(a[1],a[1]+i[1]));else{var o=a.slice();n.zoomFixMM[0]||(o[0]=gr(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),n.zoomFixMM[1]||(o[1]=z(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]<a[0]||o[1]>a[1])&&t.setExtent2(1,o[0],o[1])}}}function ss(e,t){var n=Xa(e),r=n?e.intervalStub:e,i=t.fixMinMax||[],a=n?e.getExtent():null,o=r.getExtent(),s=no(o,i,t.rawExtentResult);r.setExtent(s[0],s[1]),s=r.getExtent();var c=n?function(e,t){var n=ro(t.splitNumber,10),r=e.getExtent(),i=Wa(e),a=z(sr(i),1);n/i*a<=.5&&(a*=10);var o=$a(a),s=[V(mr(r[0]/a)*a,o),V(ge(r[1]/a)*a,o)];return{intervalPrecision:o,interval:a,niceExtent:s}}(r,t):function(e,t){var n=ro(t.splitNumber,5),r=Wa(e),i=t.minInterval,a=t.maxInterval,o=k(r/n,!0);i!=null&&o<i&&(o=i),a!=null&&o>a&&(o=a);var s=$a(o),c=e.getExtent(),l=[V(mr(c[0]/o)*o,s),V(ge(c[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:l}}(r,t),l=c.intervalPrecision,u=c.interval,d=t.userInterval;d!=null&&(c.interval=d,c.intervalPrecision=$a(d)),i[0]||(s[0]=V(ge(s[0]/u)*u,l)),i[1]||(s[1]=V(mr(s[1]/u)*u,l)),d!=null&&(c.niceExtent=s.slice()),jo(e,i,o,s,a,c)}function cs(e){var t=e.scale,n=e.model;(function(e,t,n,r,i){var a=as(e,t,r,n,i),o=Ja(e)||Ya(e);(function(e,t){ls[e.type](e,t)})(e,{splitNumber:t.get(`splitNumber`),fixMinMax:a.fixMM,userInterval:t.get(`interval`),minInterval:o?t.get(`minInterval`):null,maxInterval:o?t.get(`maxInterval`):null,rawExtentResult:a}),n&&r&&os(n,e,a,r)})(t,n,n.axis,n.ecModel,null)}var ls={interval:ss,log:ss,time:function(e,t){var n=e.getExtent();if(n[0]===n[1]&&(n[0]-=864e5,n[1]+=864e5),n[1]===-1/0&&n[0]===1/0){var r=new Date;n[1]=+new Date(r.getFullYear(),r.getMonth(),r.getDate()),n[0]=n[1]-Je}e.setExtent(n[0],n[1]);var i=ro(t.splitNumber,10),a=Wa(e)/i,o=t.minInterval,s=t.maxInterval;o!=null&&a<o&&(a=o),s!=null&&a>s&&(a=s);var c=lo.length,l=Math.min(function(e,t,n,r){for(;n<r;){var i=n+r>>>1;e[i][1]<t?n=i+1:r=i}return n}(lo,a,0,c),c-1),u=lo[l][1],d=lo[Math.max(l-1,0)][0];e.setTimeInterval({approxInterval:a,interval:u,minLevelUnit:d})},ordinal:mn},us=I(),ds=I(),fs=1,ps=2;function ms(e){return{out:{noPxChangeTryDetermine:[]},kind:e}}function hs(e,t){var n=e.getLabelModel().get(`customValues`);if(n){var r=e.scale;return{labels:J(_s(n,r),function(t,n){return{formattedLabel:wo(e)(t,n),rawLabel:r.getLabel(t),tick:t}})}}return e.type===`category`?function(e,t){var n=e.getLabelModel(),r=vs(e,n,t);return!n.get(`show`)||e.scale.isBlank()?{labels:[]}:r}(e,t):function(e){var t=e.scale.getTicks(),n=wo(e);return{labels:J(t,function(t,r){return{formattedLabel:n(t,r),rawLabel:e.scale.getLabel(t),tick:t}})}}(e)}function gs(e,t,n){var r=e.scale,i=e.getTickModel().get(`customValues`);return i?{ticks:_s(i,r)}:e.type===`category`?function(e,t){var n,r,i=ys(e),a=Eo(t),o=Ss(i,a);if(o)return o;if(t.get(`show`)&&!e.scale.isBlank()||(n=[]),S(a))n=Es(e,a,!0);else if(a===`auto`){var s=vs(e,e.getLabelModel(),ms(ps));r=s.labelCategoryInterval,n=J(s.labels,function(e){return e.tick})}else n=Es(e,r=a,!0);return Cs(i,a,{ticks:n,tickCategoryInterval:r})}(e,t):{ticks:r.getTicks(n)}}function _s(e,t){var n=t.getExtent(),r=[];return H(e,function(e){(e=t.parse(e))>=n[0]&&e<=n[1]&&r.push(e)}),Zt(r,Ee,null),rr(r),J(r,function(e){return{value:e}})}function vs(e,t,n){var r,i,a=bs(e),o=Eo(t),s=n.kind===fs;if(!s){var c=Ss(a,o);if(c)return c}S(o)?r=Es(e,o,!1):(i=o===`auto`?function(e,t){if(t.kind===fs){var n=e.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return ds(e).autoInterval=n,!0}),n}return ds(e).autoInterval??(ds(e).autoInterval=e.calculateCategoryInterval(t))}(e,n):o,r=Es(e,i,!1));var l={labels:r,labelCategoryInterval:i};return s?n.out.noPxChangeTryDetermine.push(function(){return Cs(a,o,l),!0}):Cs(a,o,l),l}var ys=xs(`axisTick`),bs=xs(`axisLabel`);function xs(e){return function(t){return ds(t)[e]||(ds(t)[e]={list:[]})}}function Ss(e,t){for(var n=0;n<e.list.length;n++)if(e.list[n].key===t)return e.list[n].value}function Cs(e,t,n){return e.list.push({key:t,value:n}),n}function ws(e,t,n){return Ts(e,t,n)==null}function Ts(e,t,n){var r=us(e.model),i=e.getExtent(),a=r.lastAutoInterval,o=r.lastTickCount;if(a!=null&&o!=null&&Math.abs(a-t)<=1&&Math.abs(o-n)<=1&&a>t&&r.axisExtent0===i[0]&&r.axisExtent1===i[1])return a;r.lastTickCount=n,r.lastAutoInterval=t,r.axisExtent0=i[0],r.axisExtent1=i[1]}function Es(e,t,n){var r=wo(e),i=e.scale,a=[],o=S(t);return io(i,o?0:t,function(e,s){var c=i.getLabel(e);if(o){var l=!!t(e.value,c);if(e.offInterval=!l,!l&&!s)return}a.push(n?e:{formattedLabel:r(e),rawLabel:c,tick:e})}),a}function Ds(e,t){t||={};var n,r={w:NaN,w2:NaN},i=e.scale,a=t.fromStat,o=t.min,s=(n=Ua(i,3))[1]-n[0];Mr(s)||(s=NaN);var c=e.getExtent(),l=xt(c[1]-c[0]);return Za(i)?function(e,t,n,r){var i=t.onBand,a=n+ +!!i;a===0&&(a=1),e.w=r/a,!i&&n&&r&&(e.w2=e.w*n/r)}(r,e,s,l):a&&function(e,t,n,r,i){var a=!1,o=-1/0;H(i.key?[zo(t,i.key)]:function(e,t){var n=[];return Bo(e.model.ecModel,function(e){for(var r=0;r<t.length;r++)t[r]&&e.serByIdx[t[r].seriesIndex]&&n.push(Vo(e))}),n}(t,i.sers||[]),function(e){var t=e.liPosMinGap;t!=null&&(t>0?(t>o&&(o=t),a=!1):t===-2&&(a=!0))}),Mr(n)&&n>0&&Mr(o)?(e.w=r/n*o,e.w2=o):a&&(e.w=.8*r,e.w2=e.w*n/r)}(r,e,s,l,a),o!=null&&(r.w=Mr(r.w)?z(o,r.w):o),r}var Os=[0,1],ks=function(){function e(e,t,n){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=t,this._extent=n||[0,0]}return e.prototype.contain=function(e){var t=this._extent,n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]);return e>=n&&e<=r},e.prototype.containData=function(e){return this.scale.contain(this.scale.parse(e))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(e,t){var n=this._extent;n[0]=e,n[1]=t},e.prototype.dataToCoord=function(e,t){var n=this.scale;return e=n.normalize(n.parse(e)),g(e,Os,As(this),t)},e.prototype.coordToData=function(e,t){var n=g(e,As(this),Os,t);return this.scale.scale(n)},e.prototype.pointToData=function(e,t){},e.prototype.getTicksCoords=function(e){var t=(e||={}).tickModel||this.getTickModel(),n=gs(this,t,{breakTicks:e.breakTicks,pruneByBreak:e.pruneByBreak}),r=J(n.ticks,function(e){return{coord:this.dataToCoord(Mo(this.scale,e)),tick:e}},this),i=function(e,t,n){var r=t.length;if(!e.onBand||n||!r)return!1;var i=Ds(e).w;if(!i)return!1;H(t,function(e){e.coord-=i/2});var a=e.scale.getExtent(),o=t[r-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:a[1]+1}}),!0}(this,r,t.get(`alignWithLabel`));return J(r,function(e){return{coord:e.coord,tickValue:e.tick.value,onBand:i}})},e.prototype.getMinorTicksCoords=function(){if(Za(this.scale))return[];var e=this.model.getModel(`minorTick`).get(`splitNumber`);e>0&&e<100||(e=5);var t=this.scale.getMinorTicks(e);return J(t,function(e){return J(e,function(e){return{coord:this.dataToCoord(e),tickValue:e}},this)},this)},e.prototype.getViewLabels=function(e){return hs(this,e||=ms(ps)).labels},e.prototype.getLabelModel=function(){return this.model.getModel(`axisLabel`)},e.prototype.getTickModel=function(){return this.model.getModel(`axisTick`)},e.prototype.getBandWidth=function(){return Ds(this,{min:1}).w},e.prototype.calculateCategoryInterval=function(e){return function(e,t){var n=t.kind,r=function(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get(`rotate`)||0,font:t.getFont()}}(e),i=wo(e),a=(r.axisRotate-r.labelRotate)/180*Math.PI,o=e.scale,s=o.getExtent(),c=o.count();if(s[1]-s[0]<1)return 0;var l=1;c>40&&(l=Math.max(1,Math.floor(c/40)));for(var u=s[0],d=e.dataToCoord(u+1)-e.dataToCoord(u),f=Math.abs(d*Math.cos(a)),p=Math.abs(d*Math.sin(a)),h=0,g=0;u<=s[1];u+=l){var _,v,y=Fe(i({value:u}),r.font,`center`,`top`);_=1.3*y.width,v=1.3*y.height,h=Math.max(h,_,7),g=Math.max(g,v,7)}var b=h/f,x=g/p;isNaN(b)&&(b=1/0),isNaN(x)&&(x=1/0);var S=Math.max(0,Math.floor(Math.min(b,x)));return n===fs?(t.out.noPxChangeTryDetermine.push(m(ws,null,e,S,c)),S):Ts(e,S,c)??S}(this,e||=ms(ps))},e}();function As(e){var t=e.getExtent();if(e.onBand){var n=(t[1]-t[0])/e.scale.count()/2;t[0]+=n,t[1]-=n}return t}Yn.CMD;function js(e,t,n,r,i,a,o,s){var c=i-e,l=a-t,u=n-e,d=r-t,f=Math.sqrt(u*u+d*d),p=(c*(u/=f)+l*(d/=f))/f;s&&(p=Math.min(Math.max(p,0),1)),p*=f;var m=o[0]=e+p*u,h=o[1]=t+p*d;return Math.sqrt((m-i)*(m-i)+(h-a)*(h-a))}var Ms=new U,Q=new U,$=new U,Ns=new U,Ps=new U,Fs=[],Is=new U;function Ls(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ms.fromArray(e[0]),Q.fromArray(e[1]),$.fromArray(e[2]),U.sub(Ns,Ms,Q),U.sub(Ps,$,Q);var n=Ns.len(),r=Ps.len();if(!(n<.001||r<.001)){Ns.scale(1/n),Ps.scale(1/r);var i=Ns.dot(Ps);if(Math.cos(t)<i){var a=js(Q.x,Q.y,$.x,$.y,Ms.x,Ms.y,Fs,!1);Is.fromArray(Fs),Is.scaleAndAdd(Ps,a/Math.tan(Math.PI-t));var o=$.x===Q.x?(Is.y-Q.y)/($.y-Q.y):(Is.x-Q.x)/($.x-Q.x);if(isNaN(o))return;o<0?U.copy(Is,Q):o>1&&U.copy(Is,$),Is.toArray(e[1])}}}}function Rs(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,Ms.fromArray(e[0]),Q.fromArray(e[1]),$.fromArray(e[2]),U.sub(Ns,Q,Ms),U.sub(Ps,$,Q);var r=Ns.len(),i=Ps.len();if(!(r<.001||i<.001)&&(Ns.scale(1/r),Ps.scale(1/i),Ns.dot(t)<Math.cos(n))){var a=js(Q.x,Q.y,$.x,$.y,Ms.x,Ms.y,Fs,!1);Is.fromArray(Fs);var o=Math.PI/2,s=o+Math.acos(Ps.dot(t))-n;if(s>=o)U.copy(Is,$);else{Is.scaleAndAdd(Ps,a/Math.tan(Math.PI/2-s));var c=$.x===Q.x?(Is.y-Q.y)/($.y-Q.y):(Is.x-Q.x)/($.x-Q.x);if(isNaN(c))return;c<0?U.copy(Is,Q):c>1&&U.copy(Is,$)}Is.toArray(e[1])}}}function zs(e,t,n,r){var i=n===`normal`,a=i?e:e.ensureState(n);a.ignore=t;var o=r.get(`smooth`);o=!0===o?.3:Math.max(+o,0)||0,a.shape=a.shape||{},a.shape.smooth=o;var s=r.getModel(`lineStyle`).getLineStyle();i?e.useStyle(s):a.style=s}function Bs(e,t){var n=t.smooth,r=t.points;if(r){if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=fn(r[0],r[1]),a=fn(r[1],r[2]);if(!i||!a)return e.lineTo(r[1][0],r[1][1]),void e.lineTo(r[2][0],r[2][1]);var o=Math.min(i,a)*n,s=Gn([],r[1],r[0],o/i),c=Gn([],r[1],r[2],o/a),l=Gn([],s,c,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],l[0],l[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var u=1;u<r.length;u++)e.lineTo(r[u][0],r[u][1])}}var Vs=[`label`,`labelLine`,`layoutOption`,`priority`,`defaultAttr`,`marginForce`,`minMarginForce`,`marginDefault`,`suggestIgnore`];function Hs(e,t,n){n||=3,t?e.dirty|=n:e.dirty&=~n}function Us(e,t){return t||=3,e.dirty==null||!!(e.dirty&t)}function Ws(e){if(e)return Us(e)&&Gs(e,e.label,e),e}function Gs(e,t,n){var r=t.getComputedTransform();e.transform=fe(e.transform,r);var i=e.localRect=ce(e.localRect,t.getBoundingRect()),a=t.style,o=a.margin,s=n&&n.marginForce,c=n&&n.minMarginForce,l=n&&n.marginDefault,u=a.__marginType;u==null&&l&&(o=l,u=An.textMargin);for(var d=0;d<4;d++)Ks[d]=u===An.minMargin&&c&&c[d]!=null?c[d]:s&&s[d]!=null?s[d]:o?o[d]:0;u===An.textMargin&&Dn(i,Ks,!1,!1);var f=e.rect=ce(e.rect,i);return r&&f.applyTransform(r),u===An.minMargin&&Dn(f,Ks,!1,!1),e.axisAligned=rn(r),(e.label=e.label||{}).ignore=t.ignore,Hs(e,!1),Hs(e,!0,2),e}var Ks=[0,0,0,0];function qs(e,t){for(var n=0;n<Vs.length;n++){var r=Vs[n];e[r]??(e[r]=t[r])}return Ws(e)}function Js(e){var t=e.obb;return t&&!Us(e,2)||(e.obb=t||=new We,t.fromBoundingRect(e.localRect,e.transform),Hs(e,!1,2)),t}function Ys(e,t,n,r){return!(!e||!t)&&!(e.label&&e.label.ignore||t.label&&t.label.ignore)&&!!e.rect.intersect(t.rect,n,r)&&(!(!e.axisAligned||!t.axisAligned)||Js(e).intersect(Js(t),n,r))}var Xs=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.hasSymbolVisual=!0,n}return X(t,e),t.prototype.getInitialData=function(e){return Na(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var t=new le,n=ze(`line`,0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);t.add(n),n.setStyle(e.lineStyle);var r=this.getData().getVisual(`symbol`),i=this.getData().getVisual(`symbolRotate`),a=r===`none`?`circle`:r,o=.8*e.itemHeight,s=ze(a,(e.itemWidth-o)/2,(e.itemHeight-o)/2,o,o,e.itemStyle.fill);return t.add(s),s.setStyle(e.itemStyle),s.rotation=(e.iconRotate===`inherit`?i:e.iconRotate||0)*Math.PI/180,s.setOrigin([e.itemWidth/2,e.itemHeight/2]),a.indexOf(`empty`)>-1&&(s.style.stroke=s.style.fill,s.style.fill=K.color.neutral00,s.style.lineWidth=2),t},t.type=`series.line`,t.dependencies=[`grid`,`polar`],t.defaultOption={z:3,coordinateSystem:`cartesian2d`,legendHoverLink:!0,clip:!0,label:{position:`top`},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:`solid`},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:`emptyCircle`,symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:`auto`,connectNulls:!1,sampling:`none`,animationEasing:`linear`,progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:`clone`},triggerLineEvent:!1,triggerEvent:!1},t}(bn);function Zs(e,t){var n=e.mapDimensionsAll(`defaultedLabel`),r=n.length;if(r===1){var i=on(e,t,n[0]);return i==null?null:i+``}if(r){for(var a=[],o=0;o<n.length;o++)a.push(on(e,t,n[o]));return a.join(` `)}}function Qs(e,t){var n=e.mapDimensionsAll(`defaultedLabel`);if(!q(t))return t+``;for(var r=[],i=0;i<n.length;i++){var a=e.getDimensionIndex(n[i]);a>=0&&r.push(t[a])}return r.join(` `)}var $s=function(e){function t(t,n,r,i){var a=e.call(this)||this;return a.updateData(t,n,r,i),a}return X(t,e),t.prototype._createSymbol=function(e,t,n,r,i,a){this.removeAll();var o=ze(e,-1,-1,2,2,null,a);o.attr({z2:R(i,100),culling:!0,scaleX:r[0]/2,scaleY:r[1]/2}),o.drift=ec,this._symbolType=e,this.add(o)},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(){Ft(this.childAt(0))},t.prototype.downplay=function(){un(this.childAt(0))},t.prototype.setZ=function(e,t){var n=this.childAt(0);n.zlevel=e,n.z=t},t.prototype.setDraggable=function(e,t){var n=this.childAt(0);n.draggable=e,n.cursor=!t&&e?`move`:n.cursor},t.prototype.updateData=function(e,n,r,i){this.silent=!1;var a=e.getItemVisual(n,`symbol`)||`circle`,o=e.hostModel,s=t.getSymbolSize(e,n),c=t.getSymbolZ2(e,n),l=a!==this._symbolType,u=i&&i.disableAnimation;if(l){var d=e.getItemVisual(n,`symbolKeepAspect`);this._createSymbol(a,e,n,s,c,d)}else{(p=this.childAt(0)).silent=!1;var f={scaleX:s[0]/2,scaleY:s[1]/2};u?p.attr(f):b(p,f,o,n),x(p)}if(this._updateCommon(e,n,s,r,i),l){var p=this.childAt(0);u||(f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:p.style.opacity}},p.scaleX=p.scaleY=0,p.style.opacity=0,$t(p,f,o,n))}u&&this.childAt(0).stopAnimation(`leave`)},t.prototype._updateCommon=function(e,t,n,r,i){var a,o,s,c,l,u,d,f,p,m=this.childAt(0),h=e.hostModel;if(r&&(a=r.emphasisItemStyle,o=r.blurItemStyle,s=r.selectItemStyle,c=r.focus,l=r.blurScope,d=r.labelStatesModels,f=r.hoverScale,p=r.cursorStyle,u=r.emphasisDisabled),!r||e.hasItemOption){var g=r&&r.itemModel?r.itemModel:e.getItemModel(t),_=g.getModel(`emphasis`);a=_.getModel(`itemStyle`).getItemStyle(),s=g.getModel([`select`,`itemStyle`]).getItemStyle(),o=g.getModel([`blur`,`itemStyle`]).getItemStyle(),c=_.get(`focus`),l=_.get(`blurScope`),u=_.get(`disabled`),d=Hn(g),f=_.getShallow(`scale`),p=g.getShallow(`cursor`)}var v=e.getItemVisual(t,`symbolRotate`);m.attr(`rotation`,(v||0)*Math.PI/180||0);var y=ct(e.getItemVisual(t,`symbolOffset`),n);y&&(m.x=y[0],m.y=y[1]),p&&m.attr(`cursor`,p);var b=e.getItemVisual(t,`style`),x=b.fill;if(m instanceof hn){var S=m.style;m.useStyle(B({image:S.image,x:S.x,y:S.y,width:S.width,height:S.height},b))}else m.__isEmptyBrush?m.useStyle(B({},b)):m.useStyle(b),m.style.decal=null,m.setColor(x,i&&i.symbolInnerColor),m.style.strokeNoScale=!0;var C=e.getItemVisual(t,`liftZ`),w=this._z2;C==null?w!=null&&(m.z2=w,this._z2=null):w??(this._z2=m.z2,m.z2+=C);var T=i&&i.useNameLabel;nt(m,d,{labelFetcher:h,labelDataIndex:t,defaultText:function(t){return T?e.getName(t):Zs(e,t)},inheritColor:x,defaultOpacity:b.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var E=m.ensureState(`emphasis`);E.style=a,m.ensureState(`select`).style=s,m.ensureState(`blur`).style=o;var D=f==null||!0===f?Math.max(1.1,3/this._sizeY):isFinite(f)&&f>0?+f:1;E.scaleX=this._sizeX*D,E.scaleY=this._sizeY*D,this.setSymbolScale(1),Ut(this,c,l,u)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,t,n){var r=this.childAt(0),i=G(this).dataIndex,a=n&&n.animation;if(this.silent=r.silent=!0,n&&n.fadeLabel){var o=r.getTextContent();o&&dt(o,{style:{opacity:0}},t,{dataIndex:i,removeOpt:a,cb:function(){r.removeTextContent()}})}else r.removeTextContent();dt(r,{style:{opacity:0},scaleX:0,scaleY:0},t,{dataIndex:i,cb:e,removeOpt:a})},t.getSymbolSize=function(e,t){return Ue(e.getItemVisual(t,`symbolSize`))},t.getSymbolZ2=function(e,t){return e.getItemVisual(t,`z2`)},t}(le);function ec(e,t){this.parent.drift(e,t)}function tc(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r&&r.isIgnore&&r.isIgnore(n))&&!(r&&r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,`symbol`)!==`none`}function nc(e){return e==null||_(e)||(e={isIgnore:e}),e||{}}function rc(e){var t=e.hostModel,n=t.getModel(`emphasis`);return{emphasisItemStyle:n.getModel(`itemStyle`).getItemStyle(),blurItemStyle:t.getModel([`blur`,`itemStyle`]).getItemStyle(),selectItemStyle:t.getModel([`select`,`itemStyle`]).getItemStyle(),focus:n.get(`focus`),blurScope:n.get(`blurScope`),emphasisDisabled:n.get(`disabled`),hoverScale:n.get(`scale`),labelStatesModels:Hn(t),cursorStyle:t.get(`cursor`)}}function ic(e,t,n,r,i,a,o){var s=new e(t,n,r,i);return s.setPosition(a),t.setItemGraphicEl(n,s),o.add(s),s}var ac=function(){function e(e){this.group=new le,this._SymbolCtor=e||$s}return e.prototype.updateData=function(e,t){this._progressiveEls=null,t=nc(t);var n=this.group,r=e.hostModel,i=this._data,a=this._SymbolCtor,o=t.disableAnimation,s=this._seriesScope=rc(e),c={disableAnimation:o},l=t.getSymbolPoint||function(t){return e.getItemLayout(t)};i||n.removeAll(),e.diff(i).add(function(r){var i=l(r);tc(e,i,r,t)&&ic(a,e,r,s,c,i,n)}).update(function(u,d){var f=i.getItemGraphicEl(d),p=l(u);if(tc(e,p,u,t)){var m=e.getItemVisual(u,`symbol`)||`circle`,h=f&&f.getSymbolType&&f.getSymbolType();if(!f||h&&h!==m)n.remove(f),(f=new a(e,u,s,c)).setPosition(p);else{f.updateData(e,u,s,c);var g={x:p[0],y:p[1]};o?f.attr(g):b(f,g,r)}n.add(f),e.setItemGraphicEl(u,f)}else n.remove(f)}).remove(function(e){var t=i.getItemGraphicEl(e);t&&t.fadeOut(function(){n.remove(t)},r)}).execute(),this._getSymbolPoint=l,this._data=e},e.prototype.updateLayout=function(e){var t=this._data;if(t)for(var n=this,r=0,i=t.getStore().count();r<i;r++){var a=t.getItemGraphicEl(r),o=n._getSymbolPoint(r);tc(t,o,r,e)?((a||=ic(n._SymbolCtor,t,r,n._seriesScope,{disableAnimation:!0},o,n.group)).stopAnimation(),a.setPosition(o),a.markRedraw()):a&&(n.group.remove(a),t.setItemGraphicEl(r,null))}},e.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=rc(e),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(e,t,n,r){function i(e){e.isGroup||(e.incremental=n,e.ensureState(`emphasis`).hoverLayer=2)}this._progressiveEls=[],r=nc(r);for(var a=e.start;a<e.end;a++){var o=t.getItemLayout(a);if(tc(t,o,a,r)){var s=new this._SymbolCtor(t,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),t.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(e){Ae(this._progressiveEls||this.group,e)},e.prototype.remove=function(e){var t=this.group,n=this._data;n&&e?n.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)},n.hostModel)}):t.removeAll()},e}();function oc(e,t,n){var r=e.getBaseAxis(),i=e.getOtherAxis(r),a=function(e,t){var n=0,r=e.scale.getExtent();return t===`start`?n=r[0]:t===`end`?n=r[1]:_r(t)&&!isNaN(t)?n=t:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}(i,n),o=r.dim,s=i.dim,c=t.mapDimension(s),l=t.mapDimension(o),u=+(s===`x`||s===`radius`),d=J(e.dimensions,function(e){return t.mapDimension(e)}),f=!1,p=t.getCalculationInfo(`stackResultDimension`);return Ma(t,d[0])&&(f=!0,d[0]=p),Ma(t,d[1])&&(f=!0,d[1]=p),{dataDimsForPoint:d,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!f,valueDim:c,baseDim:l,baseDataOffset:u,stackedOverDimension:t.getCalculationInfo(`stackedOverDimension`)}}function sc(e,t,n,r){var i=NaN;e.stacked&&(i=n.get(n.getCalculationInfo(`stackedOverDimension`),r)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=n.get(e.baseDim,r),o[1-a]=i,t.dataToPoint(o)}function cc(e,t){return!isFinite(e)||!isFinite(t)}var lc=typeof Float32Array<`u`?Float32Array:void 0,uc=typeof Float64Array<`u`?Float64Array:void 0;function dc(e){return fc({ctor:lc},e).arr}function fc(e,t){var n=e.arr,r=e.ctor;if(t>Ie&&(t=Ie),!n||e.typed&&n.length<t){var i=void 0;if(r)try{i=new r(t),e.typed=!0,n&&i.set(n)}catch{}if(!i&&(i=[],e.typed=!1,n))for(var a=0,o=n.length;a<o;a++)i[a]=n[a];e.arr=i}return e}var pc=Math.min,mc=Math.max;function hc(e,t,n,r,i,a,o,s,c){for(var l,u,d,f,p,m,h=n,g=0;g<r;g++){var _=t[2*h],v=t[2*h+1];if(h>=i||h<0)break;if(cc(_,v)){if(c){h+=a;continue}break}if(h===n)e[a>0?`moveTo`:`lineTo`](_,v),d=_,f=v;else{var y=_-l,b=v-u;if(y*y+b*b<.5){h+=a;continue}if(o>0){for(var x=h+a,S=t[2*x],C=t[2*x+1];S===_&&C===v&&g<r;)g++,h+=a,S=t[2*(x+=a)],C=t[2*x+1],y=(_=t[2*h])-l,b=(v=t[2*h+1])-u;var w=g+1;if(c)for(;cc(S,C)&&w<r;)w++,S=t[2*(x+=a)],C=t[2*x+1];var T=.5,E=0,D=0,O=void 0,k=void 0;if(w>=r||cc(S,C))p=_,m=v;else{E=S-l,D=C-u;var A=_-l,j=S-_,M=v-u,N=C-v,P=void 0,F=void 0;if(s===`x`){var ee=E>0?1:-1;p=_-ee*(P=Math.abs(A))*o,m=v,O=_+ee*(F=Math.abs(j))*o,k=v}else if(s===`y`){var I=D>0?1:-1;p=_,m=v-I*(P=Math.abs(M))*o,O=_,k=v+I*(F=Math.abs(N))*o}else P=Math.sqrt(A*A+M*M),p=_-E*o*(1-(T=(F=Math.sqrt(j*j+N*N))/(F+P))),m=v-D*o*(1-T),k=v+D*o*T,O=pc(O=_+E*o*T,mc(S,_)),k=pc(k,mc(C,v)),O=mc(O,pc(S,_)),m=v-(D=(k=mc(k,pc(C,v)))-v)*P/F,p=pc(p=_-(E=O-_)*P/F,mc(l,_)),m=pc(m,mc(u,v)),O=_+(E=_-(p=mc(p,pc(l,_))))*F/P,k=v+(D=v-(m=mc(m,pc(u,v))))*F/P}e.bezierCurveTo(d,f,p,m,_,v),d=O,f=k}else e.lineTo(_,v)}l=_,u=v,h+=a}return g}var gc=function(){this.smooth=0,this.smoothConstraint=!0},_c=function(e){function t(t){var n=e.call(this,t)||this;return n.type=`ec-polyline`,n}return X(t,e),t.prototype.getDefaultStyle=function(){return{stroke:K.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new gc},t.prototype.buildPath=function(e,t){var n=t.points,r=0,i=n.length/2;if(t.connectNulls){for(;i>0&&cc(n[2*i-2],n[2*i-1]);i--);for(;r<i&&cc(n[2*r],n[2*r+1]);r++);}for(;r<i;)r+=hc(e,n,r,i,i,1,t.smooth,t.smoothMonotone,t.connectNulls)+1},t.prototype.getPointOn=function(e,t){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var n,r,i=this.path.data,a=Yn.CMD,o=t===`x`,s=[],c=0;c<i.length;){var l=void 0,u=void 0,d=void 0,f=void 0,p=void 0,m=void 0,h=void 0;switch(i[c++]){case a.M:n=i[c++],r=i[c++];break;case a.L:if(l=i[c++],u=i[c++],(h=o?(e-n)/(l-n):(e-r)/(u-r))<=1&&h>=0){var g=o?(u-r)*h+r:(l-n)*h+n;return o?[e,g]:[g,e]}n=l,r=u;break;case a.C:l=i[c++],u=i[c++],d=i[c++],f=i[c++],p=i[c++],m=i[c++];var _=o?kt(n,l,d,p,e,s):kt(r,u,f,m,e,s);if(_>0)for(var v=0;v<_;v++){var y=s[v];if(y<=1&&y>=0)return g=o?ue(r,u,f,m,y):ue(n,l,d,p,y),o?[e,g]:[g,e]}n=p,r=m}}},t}(re),vc=function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return X(t,e),t}(gc),yc=function(e){function t(t){var n=e.call(this,t)||this;return n.type=`ec-polygon`,n}return X(t,e),t.prototype.getDefaultShape=function(){return new vc},t.prototype.buildPath=function(e,t){var n=t.points,r=t.stackedOnPoints,i=0,a=n.length/2,o=t.smoothMonotone;if(t.connectNulls){for(;a>0&&cc(n[2*a-2],n[2*a-1]);a--);for(;i<a&&cc(n[2*i],n[2*i+1]);i++);}for(;i<a;){var s=hc(e,n,i,a,a,1,t.smooth,o,t.connectNulls);hc(e,r,i+s-1,s,a,-1,t.stackedOnSmooth,o,t.connectNulls),i+=s+1,e.closePath()}},t}(re);function bc(e,t,n,r,i){var a=e.getArea(),o=a.x,s=a.y,c=a.width,l=a.height,u=n.get([`lineStyle`,`width`])||0;o-=u/2,s-=u/2,c+=u,l+=u,c=Math.ceil(c),o!==Math.floor(o)&&(o=Math.floor(o),c++);var d=new h({shape:{x:o,y:s,width:c,height:l}});if(t){var f=e.getBaseAxis(),p=f.isHorizontal(),m=f.inverse;p?(m&&(d.shape.x+=c),d.shape.width=0):(m||(d.shape.y+=l),d.shape.height=0);var g=S(i)?function(e){i(e,d)}:null;$t(d,{shape:{width:c,height:l,x:o,y:s}},n,null,r,g)}return d}function xc(e,t,n){var r=e.getArea(),i=V(r.r0,1),a=V(r.r,1),o=new u({shape:{cx:V(e.cx,1),cy:V(e.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});return t&&(e.getBaseAxis().dim===`angle`?o.shape.endAngle=r.startAngle:o.shape.r=i,$t(o,{shape:{endAngle:r.endAngle,r:a}},n)),o}function Sc(e,t){return e.type===t}function Cc(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return;return!0}}function wc(e){for(var t=Ht(),n=Ht(),r=0;r<e.length;){var i=e[r++],a=e[r++];cc(i,a)||(pr(t,i),pr(n,a))}return[t,n]}function Tc(e,t){var n=wc(e),r=n[0],i=n[1],a=wc(t),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(r[1]-o[1]),Math.abs(i[1]-s[1]))}function Ec(e){return _r(e)?e:e?.5:0}function Dc(e,t,n,r,i){var a=n.getBaseAxis(),o=a.dim===`x`||a.dim===`radius`?0:1,s=[],c=0,l=[],u=[],d=[],f=[];if(i){for(c=0;c<e.length;c+=2){var p=t||e;cc(p[c],p[c+1])||f.push(e[c],e[c+1])}e=f}for(c=0;c<e.length-2;c+=2)switch(d[0]=e[c+2],d[1]=e[c+3],u[0]=e[c],u[1]=e[c+1],s.push(u[0],u[1]),r){case`end`:l[o]=d[o],l[1-o]=u[1-o],s.push(l[0],l[1]);break;case`middle`:var m=(u[o]+d[o])/2,h=[];l[o]=h[o]=m,l[1-o]=u[1-o],h[1-o]=d[1-o],s.push(l[0],l[1]),s.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=d[1-o],s.push(l[0],l[1])}return s.push(e[c++],e[c++]),s}function Oc(e,t,n){var r=e.getVisual(`visualMeta`);if(r&&r.length&&e.count()&&t.type===`cartesian2d`){for(var i,a,o=r.length-1;o>=0;o--){var s=e.getDimensionInfo(r[o].dimension);if((i=s&&s.coordDim)===`x`||i===`y`){a=r[o];break}}if(a){var c=t.getAxis(i),l=J(a.stops,function(e){return{coord:c.toGlobalCoord(c.dataToCoord(e.value)),color:e.color}}),u=l.length,d=a.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),d.reverse());var f=function(e,t){var n,r,i=[],a=e.length;function o(e,t,n){var r=e.coord,i=(n-r)/(t.coord-r);return{coord:n,color:_t(i,[e.color,t.color])}}for(var s=0;s<a;s++){var c=e[s],l=c.coord;if(l<0)n=c;else{if(l>t){r?i.push(o(r,c,t)):n&&i.push(o(n,c,0),o(n,c,t));break}n&&=(i.push(o(n,c,0)),null),i.push(c),r=c}}return i}(l,i===`x`?n.getWidth():n.getHeight()),p=f.length;if(!p&&u)return l[0].coord<0?d[1]?d[1]:l[u-1].color:d[0]?d[0]:l[0].color;var m=f[0].coord-10,h=f[p-1].coord+10,g=h-m;if(g<.001)return`transparent`;H(f,function(e){e.offset=(e.coord-m)/g}),f.push({offset:p?f[p-1].offset:.5,color:d[1]||`transparent`}),f.unshift({offset:p?f[0].offset:.5,color:d[0]||`transparent`});var _=new M(0,0,0,0,f,!0);return _[i]=m,_[i+`2`]=h,_}}}function kc(e,t,n){var r=e.get(`showAllSymbol`),i=r===`auto`;if(!r||i){var a=n.getAxesByScale(`ordinal`)[0];if(a&&(!i||!function(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(1.5*$s.getSymbolSize(t,o)[+!!e.isHorizontal()]>r)return!1;return!0}(a,t))){var o=t.mapDimension(a.dim),s={};return H(a.getViewLabels(),function(e){e.tick.offInterval||(s[Mo(a.scale,e.tick)]=1)}),function(e){return!s.hasOwnProperty(t.get(o,e))}}}}function Ac(e,t){return[e[2*t],e[2*t+1]]}function jc(e){if(e.get([`endLabel`,`show`]))return!0;for(var t=0;t<_e.length;t++)if(e.get([_e[t],`endLabel`,`show`]))return!0;return!1}function Mc(e,t,n,r){if(Sc(t,`cartesian2d`)){var i=r.getModel(`endLabel`),a=i.get(`valueAnimation`),o=r.getData(),s={lastFrameIndex:0},c=jc(r)?function(n,r){e._endLabelOnDuring(n,r,o,s,a,i,t)}:null,l=t.getBaseAxis().isHorizontal(),u=bc(t,n,r,function(){var t=e._endLabel;t&&n&&s.originalX!=null&&t.attr({x:s.originalX,y:s.originalY})},c);if(!r.get(`clip`,!0)){var d=u.shape,f=Math.max(d.width,d.height);l?(d.y-=f,d.height+=2*f):(d.x-=f,d.width+=2*f)}return c&&c(1,u),u}return xc(t,n,r)}var Nc=function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return X(t,e),t.prototype.init=function(){var e=new le,t=new ac;this.group.add(t.group),this._symbolDraw=t,this._lineGroup=e,this._changePolyState=m(this._changePolyState,this)},t.prototype.render=function(e,t,n){var r=e.coordinateSystem,i=this.group,a=e.getData(),o=e.getModel(`lineStyle`),s=e.getModel(`areaStyle`),c=a.getLayout(`points`)||[],l=r.type===`polar`,u=this._coordSys,d=this._symbolDraw,f=this._polyline,p=this._polygon,m=this._lineGroup,h=!t.ssr&&e.get(`animation`),g=!s.isEmpty(),_=s.get(`origin`),v=oc(r,a,_),y=g&&function(e,t,n){if(n.valueDim==null)return[];for(var r=t.count(),i=dc(2*r),a=0;a<r;a++){var o=sc(n,e,t,a);i[2*a]=o[0],i[2*a+1]=o[1]}return i}(r,a,v),b=e.get(`showSymbol`),x=e.get(`connectNulls`),S=b&&!l&&kc(e,a,r),C=this._data;C&&C.eachItemGraphicEl(function(e,t){e.__temp&&(i.remove(e),C.setItemGraphicEl(t,null))}),b||d.remove(),i.add(m);var w,T=!l&&e.get(`step`);r&&r.getArea&&e.get(`clip`,!0)&&((w=r.getArea()).width==null?w.r0&&(w.r0-=.5,w.r+=.5):(w.x-=.1,w.y-=.1,w.width+=.2,w.height+=.2)),this._clipShapeForSymbol=w;var E=Oc(a,r,n)||a.getVisual(`style`)[a.getVisual(`drawType`)];if(f&&u.type===r.type&&T===this._step){g&&!p?p=this._newPolygon(c,y):p&&!g&&(m.remove(p),p=this._polygon=null),l||this._initOrUpdateEndLabel(e,r,Er(E));var D=m.getClipPath();if(D){var O=Mc(this,r,!1,e);$t(D,{shape:O.shape},e)}else m.setClipPath(Mc(this,r,!0,e));b&&d.updateData(a,{isIgnore:S,clipShape:w,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),Cc(this._stackedOnPoints,y)&&Cc(this._points,c)||(h?this._doUpdateAnimation(a,y,r,n,T,_,x):(T&&(y&&=Dc(y,c,r,T,x),c=Dc(c,null,r,T,x)),f.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:y})))}else b&&d.updateData(a,{isIgnore:S,clipShape:w,disableAnimation:!0,getSymbolPoint:function(e){return[c[2*e],c[2*e+1]]}}),h&&this._initSymbolLabelAnimation(a,r,w),T&&(y&&=Dc(y,c,r,T,x),c=Dc(c,null,r,T,x)),f=this._newPolyline(c),g?p=this._newPolygon(c,y):p&&=(m.remove(p),this._polygon=null),l||this._initOrUpdateEndLabel(e,r,Er(E)),m.setClipPath(Mc(this,r,!0,e));var k=e.getModel(`emphasis`),A=k.get(`focus`),j=k.get(`blurScope`),M=k.get(`disabled`);f.useStyle(Sr(o.getLineStyle(),{fill:`none`,stroke:E,lineJoin:`bevel`})),Qt(f,e,`lineStyle`),f.style.lineWidth>0&&e.get([`emphasis`,`lineStyle`,`width`])===`bolder`&&(f.getState(`emphasis`).style.lineWidth=+f.style.lineWidth+1),G(f).seriesIndex=e.seriesIndex,Ut(f,A,j,M);var N=Ec(e.get(`smooth`)),P=e.get(`smoothMonotone`);if(f.setShape({smooth:N,smoothMonotone:P,connectNulls:x}),p){var F=a.getCalculationInfo(`stackedOnSeries`),ee=0;p.useStyle(Sr(s.getAreaStyle(),{fill:E,opacity:.7,lineJoin:`bevel`,decal:a.getVisual(`style`).decal})),F&&(ee=Ec(F.get(`smooth`))),p.setShape({smooth:N,stackedOnSmooth:ee,smoothMonotone:P,connectNulls:x}),Qt(p,e,`areaStyle`),G(p).seriesIndex=e.seriesIndex,Ut(p,A,j,M)}var I=this._changePolyState;a.eachItemGraphicEl(function(e){e&&(e.onHoverStateChange=I)}),this._polyline.onHoverStateChange=I,this._data=a,this._coordSys=r,this._stackedOnPoints=y,this._points=c,this._step=T,this._valueOrigin=_;var te=e.get(`triggerEvent`),L=e.get(`triggerLineEvent`),ne=!0===L||!0===te||te===`line`,re=!0===L||!0===te||te===`area`;this.packEventData(e,f,ne),p&&this.packEventData(e,p,re)},t.prototype.packEventData=function(e,t,n){G(t).eventData=n?{componentType:`series`,componentSubType:`line`,componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:`line`,selfType:t===this._polygon?`area`:`line`}:null},t.prototype.highlight=function(e,t,n,r){var i=e.getData(),a=N(i,r);if(this._changePolyState(`emphasis`),!(a instanceof Array)&&a!=null&&a>=0){var o=i.getLayout(`points`),s=i.getItemGraphicEl(a);if(!s){var c=o[2*a],l=o[2*a+1];if(cc(c,l)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,l))return;var u=e.get(`zlevel`)||0,d=e.get(`z`)||0;(s=new $s(i,a)).x=c,s.y=l,s.setZ(u,d);var f=s.getSymbolPath().getTextContent();f&&(f.zlevel=u,f.z=d,f.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(a,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else cr.prototype.highlight.call(this,e,t,n,r)},t.prototype.downplay=function(e,t,n,r){var i=e.getData(),a=N(i,r);if(this._changePolyState(`normal`),a!=null&&a>=0){var o=i.getItemGraphicEl(a);o&&(o.__temp?(i.setItemGraphicEl(a,null),this.group.remove(o)):o.downplay())}else cr.prototype.downplay.call(this,e,t,n,r)},t.prototype._changePolyState=function(e){var t=this._polygon;wn(this._polyline,e),t&&wn(t,e)},t.prototype._newPolyline=function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new _c({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(t),this._polyline=t,t},t.prototype._newPolygon=function(e,t){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new yc({shape:{points:e,stackedOnPoints:t},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},t.prototype._initSymbolLabelAnimation=function(e,t,n){var r,i,a=t.getBaseAxis(),o=a.inverse;t.type===`cartesian2d`?(r=a.isHorizontal(),i=!1):t.type===`polar`&&(r=a.dim===`angle`,i=!0);var s=e.hostModel,c=s.get(`animationDuration`);S(c)&&(c=c(null));var l=s.get(`animationDelay`)||0,u=S(l)?l(null):l;e.eachItemGraphicEl(function(e,a){var s=e;if(s){var d=[e.x,e.y],f=void 0,p=void 0,m=void 0;if(n){if(i){var h=n,g=t.pointToCoord(d);r?(f=h.startAngle,p=h.endAngle,m=-g[1]/180*Math.PI):(f=h.r0,p=h.r,m=g[0])}else{var _=n;r?(f=_.x,p=_.x+_.width,m=e.x):(f=_.y+_.height,p=_.y,m=e.y)}}var v=p===f?0:(m-f)/(p-f);o&&(v=1-v);var y=S(l)?l(a):c*v+u,b=s.getSymbolPath(),x=b.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:y}),x&&x.animateFrom({style:{opacity:0}},{duration:300,delay:y}),b.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,t,n){var r=e.getModel(`endLabel`);if(jc(e)){var i=e.getData(),a=this._polyline,o=i.getLayout(`points`);if(!o)return a.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new w({z2:200})).ignoreClip=!0,a.setTextContent(this._endLabel),a.disableLabelAnimation=!0);var c=function(e){for(var t=e.length/2;t>0&&cc(e[2*t-2],e[2*t-1]);t--);return t-1}(o);c>=0&&(nt(a,Hn(e,`endLabel`),{inheritColor:n,labelFetcher:e,labelDataIndex:c,defaultText:function(e,t,n){return n==null?Zs(i,e):Qs(i,n)},enableTextSetter:!0},function(e,t){var n=t.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?`right`:`left`:`center`,o=r?`middle`:i?`top`:`bottom`;return{normal:{align:e.get(`align`)||a,verticalAlign:e.get(`verticalAlign`)||o}}}(r,t)),a.textConfig.position=null)}else this._endLabel&&=(this._polyline.removeTextContent(),null)},t.prototype._endLabelOnDuring=function(e,t,n,r,i,a,o){var s=this._endLabel,c=this._polyline;if(s){e<1&&r.originalX==null&&(r.originalX=s.x,r.originalY=s.y);var l=n.getLayout(`points`),u=n.hostModel,d=u.get(`connectNulls`),f=a.get(`precision`),p=a.get(`distance`)||0,m=o.getBaseAxis(),h=m.isHorizontal(),g=m.inverse,_=t.shape,v=g?h?_.x:_.y+_.height:h?_.x+_.width:_.y,y=(h?p:0)*(g?-1:1),b=(h?0:-p)*(g?-1:1),x=h?`x`:`y`,S=function(e,t,n){for(var r,i,a=e.length/2,o=n===`x`?0:1,s=0,c=-1,l=0;l<a;l++)if(!cc(i=e[2*l+o],e[2*l+1-o])){if(l!==0){if(r<=t&&i>=t||r>=t&&i<=t){c=l;break}s=l,r=i}else r=i}return{range:[s,c],t:(t-r)/(i-r)}}(l,v,x),C=S.range,w=C[1]-C[0],T=void 0;if(w>=1){if(w>1&&!d){var E=Ac(l,C[0]);s.attr({x:E[0]+y,y:E[1]+b}),i&&(T=u.getRawValue(C[0]))}else{(E=c.getPointOn(v,x))&&s.attr({x:E[0]+y,y:E[1]+b});var D=u.getRawValue(C[0]),O=u.getRawValue(C[1]);i&&(T=en(n,f,D,O,S.t))}r.lastFrameIndex=C[0]}else{var k=e===1||r.lastFrameIndex>0?C[0]:0;E=Ac(l,k),i&&(T=u.getRawValue(k)),s.attr({x:E[0]+y,y:E[1]+b})}if(i){var A=Kt(s);typeof A.setLabelText==`function`&&A.setLabelText(T)}}},t.prototype._doUpdateAnimation=function(e,t,n,r,i,a,o){var s=this._polyline,c=this._polygon,l=e.hostModel,u=function(e,t,n,r,i,a,o){for(var s=function(e,t){var n=[];return t.diff(e).add(function(e){n.push({cmd:`+`,idx:e})}).update(function(e,t){n.push({cmd:`=`,idx:t,idx1:e})}).remove(function(e){n.push({cmd:`-`,idx:e})}).execute(),n}(e,t),c=[],l=[],u=[],d=[],f=[],p=[],m=[],h=oc(i,t,o),g=e.getLayout(`points`)||[],_=t.getLayout(`points`)||[],v=0;v<s.length;v++){var y=s[v],b=!0,x=void 0,S=void 0;switch(y.cmd){case`=`:x=2*y.idx,S=2*y.idx1;var C=g[x],w=g[x+1],T=_[S],E=_[S+1];(isNaN(C)||isNaN(w))&&(C=T,w=E),c.push(C,w),l.push(T,E),u.push(n[x],n[x+1]),d.push(r[S],r[S+1]),m.push(t.getRawIndex(y.idx1));break;case`+`:var D=y.idx,O=h.dataDimsForPoint,k=i.dataToPoint([t.get(O[0],D),t.get(O[1],D)]);S=2*D,c.push(k[0],k[1]),l.push(_[S],_[S+1]);var A=sc(h,i,t,D);u.push(A[0],A[1]),d.push(r[S],r[S+1]),m.push(t.getRawIndex(D));break;case`-`:b=!1}b&&(f.push(y),p.push(p.length))}p.sort(function(e,t){return m[e]-m[t]});var j=c.length,M=dc(j),N=dc(j),P=dc(j),F=dc(j),ee=[];for(v=0;v<p.length;v++){var I=p[v],te=2*v,L=2*I;M[te]=c[L],M[te+1]=c[L+1],N[te]=l[L],N[te+1]=l[L+1],P[te]=u[L],P[te+1]=u[L+1],F[te]=d[L],F[te+1]=d[L+1],ee[v]=f[I]}return{current:M,next:N,stackedOnCurrent:P,stackedOnNext:F,status:ee}}(this._data,e,this._stackedOnPoints,t,this._coordSys,0,this._valueOrigin),d=u.current,f=u.stackedOnCurrent,p=u.next,m=u.stackedOnNext;if(i&&(f=Dc(u.stackedOnCurrent,u.current,n,i,o),d=Dc(u.current,null,n,i,o),m=Dc(u.stackedOnNext,u.next,n,i,o),p=Dc(u.next,null,n,i,o)),Tc(d,p)>3e3||c&&Tc(f,m)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m})));s.shape.__points=u.current,s.shape.points=d;var h={shape:{points:p}};u.current!==d&&(h.shape.__points=u.next),s.stopAnimation(),b(s,h,l),c&&(c.setShape({points:d,stackedOnPoints:f}),c.stopAnimation(),b(c,{shape:{stackedOnPoints:m}},l),s.shape.points!==c.shape.points&&(c.shape.points=s.shape.points));for(var g=[],_=u.status,v=0;v<_.length;v++)if(_[v].cmd===`=`){var y=e.getItemGraphicEl(_[v].idx1);y&&g.push({el:y,ptIdx:v})}s.animators&&s.animators.length&&s.animators[0].during(function(){c&&c.dirtyShape();for(var e=s.shape.__points,t=0;t<g.length;t++){var n=g[t].el,r=2*g[t].ptIdx;n.x=e[r],n.y=e[r+1],n.markRedraw()}})},t.prototype.remove=function(e){var t=this.group,n=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),n&&n.eachItemGraphicEl(function(e,r){e.__temp&&(t.remove(e),n.setItemGraphicEl(r,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type=`line`,t}(cr),Pc={average:function(e){for(var t=0,n=0,r=0;r<e.length;r++)isNaN(e[r])||(t+=e[r],n++);return n===0?NaN:t/n},sum:function(e){for(var t=0,n=0;n<e.length;n++)t+=e[n]||0;return t},max:function(e){for(var t=-1/0,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n<e.length;n++)e[n]<t&&(t=e[n]);return isFinite(t)?t:NaN},nearest:function(e){return e[0]}},Fc=function(e){return Math.round(e.length/2)};function Ic(e){return{seriesType:e,reset:function(e,t,n){var r=e.getData(),i=e.get(`sampling`),a=e.coordinateSystem,o=r.count();if(o>10&&a.type===`cartesian2d`&&i){var s=a.getBaseAxis(),c=a.getOtherAxis(s),l=s.getExtent(),u=n.getDevicePixelRatio(),d=Math.abs(l[1]-l[0])*(u||1),f=Math.round(o/d);if(isFinite(f)&&f>1){i===`lttb`?e.setData(r.lttbDownSample(r.mapDimension(c.dim),1/f)):i===`minmax`&&e.setData(r.minmaxDownSample(r.mapDimension(c.dim),1/f));var p=void 0;W(i)?p=Pc[i]:S(i)&&(p=i),p&&e.setData(r.downSample(r.mapDimension(c.dim),1/f,p,Fc))}}}}}function Lc(e){var t;e.registerChartView(Nc),e.registerSeriesModel(Xs),e.registerLayout((t=!0,{seriesType:`line`,plan:v(),reset:function(e){var n=e.getData(),r=e.coordinateSystem,i=e.pipelineContext,a=t||i.large;if(r){var o=J(r.dimensions,function(e){return n.mapDimension(e)}).slice(0,2),s=o.length,c=n.getCalculationInfo(`stackResultDimension`);Ma(n,o[0])&&(o[0]=c),Ma(n,o[1])&&(o[1]=c);var l=n.getStore(),u=n.getDimensionIndex(o[0]),d=n.getDimensionIndex(o[1]);return s&&{progress:function(e,t){for(var n=e.end-e.start,i=a&&dc(n*s),o=[],c=[],f=e.start,p=0;f<e.end;f++){var m=void 0;if(s===1){var h=l.get(u,f);m=r.dataToPoint(h,null,c)}else o[0]=l.get(u,f),o[1]=l.get(d,f),m=r.dataToPoint(o,null,c);a?(i[p++]=m[0],i[p++]=m[1]):t.setItemLayout(f,m.slice())}a&&(t.setLayout(`points`,i),t.setLayout(`pointsRange`,{start:e.start,end:e.end}))}}}}})),e.registerVisual({seriesType:`line`,reset:function(e){var t=e.getData(),n=e.getModel(`lineStyle`).getLineStyle();n&&!n.stroke&&(n.stroke=t.getVisual(`style`).fill),t.setVisual(`legendLineStyle`,n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Ic(`line`))}var Rc=function(e){function t(t,n,r,i,a){var o=e.call(this,t,n,r)||this;return o.index=0,o.type=i||`value`,o.position=a||`bottom`,o}return X(t,e),t.prototype.isHorizontal=function(){var e=this.position;return e===`top`||e===`bottom`},t.prototype.getGlobalExtent=function(e){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),e&&t[0]>t[1]&&t.reverse(),t},t.prototype.pointToData=function(e,t){return this.coordToData(this.toLocalCoord(e[this.dim===`x`?0:1]),t)},t.prototype.setCategorySortInfo=function(e){if(this.type!==`category`)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(ks),zc=`expandAxisBreak`,Bc=Math.PI,Vc=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],Hc=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],Uc=I(),Wc=I(),Gc=function(){function e(e){this.recordMap={},this.resolveAxisNameOverlap=e}return e.prototype.ensureRecord=function(e){var t=e.axis.dim,n=e.componentIndex,r=this.recordMap,i=r[t]||(r[t]=[]);return i[n]||(i[n]={ready:{}})},e}(),Kc=s(),qc=new pt(0,0,0,0),Jc=function(e,t,n,r,i,a){if(Oo(e.nameLocation)){var o=a.stOccupiedRect;o&&Yc((s={},c=o,l=a.transGroup.transform,s.transform=fe(s.transform,l),s.localRect=ce(s.localRect,c),s.rect=ce(s.rect,c),l&&s.rect.applyTransform(l),s.axisAligned=rn(l),s.obb=void 0,(s.label=s.label||{}).ignore=!1,s),r,i)}else Xc(a.labelInfoList,a.dirVec,r,i);var s,c,l};function Yc(e,t,n){var r=new U;Ys(e,t,r,{direction:Math.atan2(n.y,n.x),bidirectional:!1,touchThreshold:.05})&&function(e,t){if(e){e.label.x+=t.x,e.label.y+=t.y,e.label.markRedraw();var n=e.transform;n&&(n[4]+=t.x,n[5]+=t.y);var r=e.rect;r&&(r.x+=t.x,r.y+=t.y);var i=e.obb;i&&i.fromBoundingRect(e.localRect,n)}}(t,r)}function Xc(e,t,n,r){for(var i=U.dot(r,t)>=0,a=0,o=e.length;a<o;a++){var s=e[i?a:o-1-a];s.label.ignore||Yc(s,n,r)}}var Zc=function(){function e(e,t,n,r){this.group=new le,this._axisModel=e,this._api=t,this._local={},this._shared=r||new Gc(Jc),this._resetCfgDetermined(n)}return e.prototype.updateCfg=function(e){var t=this._cfg.raw;t.position=e.position,t.labelOffset=e.labelOffset,this._resetCfgDetermined(t)},e.prototype.__getRawCfg=function(){return this._cfg.raw},e.prototype._resetCfgDetermined=function(e){var t=this._axisModel,n=t.getDefaultOption?t.getDefaultOption():{},r=R(e.axisName,t.get(`name`)),i=t.get(`nameMoveOverlap`);i!=null&&i!==`auto`||(i=R(e.defaultNameMoveOverlap,!0));var a={raw:e,position:e.position,rotation:e.rotation,nameDirection:R(e.nameDirection,1),tickDirection:R(e.tickDirection,1),labelDirection:R(e.labelDirection,1),labelOffset:R(e.labelOffset,0),silent:R(e.silent,!0),axisName:r,nameLocation:kr(t.get(`nameLocation`),n.nameLocation,`end`),shouldNameMoveOverlap:cl(r)&&i,optionHideOverlap:t.get([`axisLabel`,`hideOverlap`]),showMinorTicks:t.get([`minorTick`,`show`])};this._cfg=a;var o=new le({x:a.position[0],y:a.position[1],rotation:a.rotation});o.updateTransform(),this._transformGroup=o;var s=this._shared.ensureRecord(t);s.transGroup=this._transformGroup,s.dirVec=new U(Math.cos(-a.rotation),Math.sin(-a.rotation))},e.prototype.build=function(e,t){var n=this;return e||={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0},H(Qc,function(r){e[r]&&$c[r](n._cfg,n._local,n._shared,n._axisModel,n.group,n._transformGroup,n._api,t||{})}),this},e.innerTextLayout=function(e,t,n){var r,i,a=Le(t-e);return $n(a)?(i=n>0?`top`:`bottom`,r=`center`):$n(a-Bc)?(i=n>0?`bottom`:`top`,r=`center`):(i=`middle`,r=a>0&&a<Bc?n>0?`right`:`left`:n>0?`left`:`right`),{rotation:a,textAlign:r,textVerticalAlign:i}},e.makeAxisEventDataBase=function(e){var t={componentType:e.mainType,componentIndex:e.componentIndex};return t[e.mainType+`Index`]=e.componentIndex,t},e.isLabelSilent=function(e){var t=e.get(`tooltip`);return e.get(`silent`)||!(e.get(`triggerEvent`)||t&&t.show)},e}(),Qc=[`axisLine`,`axisTickLabelEstimate`,`axisTickLabelDetermine`,`axisName`],$c={axisLine:function(e,t,n,r,i,a,o){var s=r.get([`axisLine`,`show`]);if(s===`auto`&&(s=!0,e.raw.axisLineAutoShow!=null&&(s=!!e.raw.axisLineAutoShow)),s){var c=r.axis.getExtent(),l=a.transform,u=[c[0],0],d=[c[1],0],f=u[0]>d[0];l&&(Ge(u,u,l),Ge(d,d,l));var p=B({lineCap:`round`},r.getModel([`axisLine`,`lineStyle`]).getLineStyle()),m={strokeContainThreshold:e.raw.strokeContainThreshold||5,silent:!0,z2:1,style:p};if(r.get([`axisLine`,`breakLine`])&&Ar(r.axis.scale))null.buildAxisBreakLine(r,i,a,m);else{var h=new It(B({shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]}},m));Dr(h.shape,h.style.lineWidth),h.anid=`line`,i.add(h)}var g=r.get([`axisLine`,`symbol`]);if(g!=null){var _=r.get([`axisLine`,`symbolSize`]);W(g)&&(g=[g,g]),(W(_)||_r(_))&&(_=[_,_]);var v=ct(r.get([`axisLine`,`symbolOffset`])||0,_),y=_[0],b=_[1];H([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((u[0]-d[0])*(u[0]-d[0])+(u[1]-d[1])*(u[1]-d[1]))}],function(t,n){if(g[n]!==`none`&&g[n]!=null){var r=ze(g[n],-y/2,-b/2,y,b,p.stroke,!0),a=t.r+t.offset,o=f?d:u;r.attr({rotation:t.rotate,x:o[0]+a*Math.cos(e.rotation),y:o[1]-a*Math.sin(e.rotation),silent:!0,z2:11}),i.add(r)}})}}},axisTickLabelEstimate:function(e,t,n,r,i,a,o,s){rl(t,i,s)&&el(e,t,n,r,i,a,o,fs)},axisTickLabelDetermine:function(e,t,n,r,i,a,o,s){rl(t,i,s)&&el(e,t,n,r,i,a,o,ps);var c=function(e,t,n,r){var i=r.axis,a=r.getModel(`axisTick`),o=a.get(`show`);if(o===`auto`&&(o=!0,e.raw.axisTickAutoShow!=null&&(o=!!e.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=a.getModel(`lineStyle`),c=e.tickDirection*a.get(`length`),l=nl(i.getTicksCoords(),n.transform,c,Sr(s.getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])}),`ticks`),u=0;u<l.length;u++)t.add(l[u]);return l}(e,i,a,r);(function(e,t,n){e.showMinorTicks||H(t,function(e){if(e&&e.label.ignore)for(var t=0;t<n.length;t++){var r=n[t],i=Wc(r),a=Uc(e.label);if(i.tickValue!=null&&!i.onBand&&i.tickValue===a.labelInfo.tick.value)return void tl(r)}})})(e,t.labelLayoutList,c),function(e,t,n,r,i){var a=r.axis,o=r.getModel(`minorTick`);if(e.showMinorTicks&&!a.scale.isBlank()){var s=a.getMinorTicksCoords();if(s.length)for(var c=o.getModel(`lineStyle`),l=i*o.get(`length`),u=Sr(c.getLineStyle(),Sr(r.getModel(`axisTick`).getLineStyle(),{stroke:r.get([`axisLine`,`lineStyle`,`color`])})),d=0;d<s.length;d++)for(var f=nl(s[d],n.transform,l,u,`minorticks_`+d),p=0;p<f.length;p++)t.add(f[p])}}(e,i,a,r,e.tickDirection)},axisName:function(e,t,n,r,i,a,o,c){var l=n.ensureRecord(r);t.nameEl&&=(i.remove(t.nameEl),l.nameLayout=l.nameLocation=null);var u=e.axisName;if(cl(u)){var d=e.nameLocation,f=e.nameDirection,p=r.getModel(`nameTextStyle`),m=r.get(`nameGap`)||0,h=r.axis.getExtent(),g=r.axis.inverse?-1:1,_=new U(0,0),v=new U(0,0);d===`start`?(_.x=h[0]-g*m,v.x=-g):d===`end`?(_.x=h[1]+g*m,v.x=g):(_.x=(h[0]+h[1])/2,_.y=e.labelOffset+f*m,v.y=f);var y=s();v.transform(Ve(y,y,e.rotation));var b,x,S=r.get(`nameRotate`);S!=null&&(S=S*Bc/180),Oo(d)?b=Zc.innerTextLayout(e.rotation,S??e.rotation,f):(b=function(e,t,n,r){var i,a,o=Le(n-e),s=r[0]>r[1],c=t===`start`&&!s||t!==`start`&&s;return $n(o-Bc/2)?(a=c?`bottom`:`top`,i=`center`):$n(o-1.5*Bc)?(a=c?`top`:`bottom`,i=`center`):(a=`middle`,i=o<1.5*Bc&&o>Bc/2?c?`left`:`right`:c?`right`:`left`),{rotation:o,textAlign:i,textVerticalAlign:a}}(e.rotation,d,S||0,h),(x=e.raw.axisNameAvailableWidth)!=null&&(x=Math.abs(x/Math.sin(b.rotation)),!isFinite(x)&&(x=null)));var C=p.getFont(),T=r.get(`nameTruncate`,!0)||{},E=T.ellipsis,D=Pn(e.raw.nameTruncateMaxWidth,T.maxWidth,x),O=c.nameMarginLevel||0,k=new w({x:_.x,y:_.y,rotation:b.rotation,silent:Zc.isLabelSilent(r),style:zr(p,{text:u,font:C,overflow:`truncate`,width:D,ellipsis:E,fill:p.getTextColor()||r.get([`axisLine`,`lineStyle`,`color`]),align:p.get(`align`)||b.textAlign,verticalAlign:p.get(`verticalAlign`)||b.textVerticalAlign}),z2:1});if(Sn({el:k,componentModel:r,itemName:u}),k.__fullText=u,k.anid=`name`,r.get(`triggerEvent`)){var A=Zc.makeAxisEventDataBase(r);A.targetType=`axisName`,A.name=u,G(k).eventData=A}a.add(k),k.updateTransform(),t.nameEl=k;var j=l.nameLayout=Ws({label:k,priority:k.z2,defaultAttr:{ignore:k.ignore},marginDefault:Oo(d)?Vc[O]:Hc[O]});if(l.nameLocation=d,i.add(k),k.decomposeTransform(),e.shouldNameMoveOverlap&&j){var M=n.ensureRecord(r);n.resolveAxisNameOverlap(e,n,r,j,v,M)}}}};function el(e,t,n,r,i,a,o,s){il(t)||function(e,t,n,r,i,a){var o=i.axis,s=Pn(e.raw.axisLabelShow,i.get([`axisLabel`,`show`])),c=new le;n.add(c);var l=ms(r);if(!s||o.scale.isBlank())return void al(t,[],c,l);var u=i.getModel(`axisLabel`),d=o.getViewLabels(l),f=(Pn(e.raw.labelRotate,u.get(`rotate`))||0)*Bc/180,p=Zc.innerTextLayout(e.rotation,f,e.labelDirection),m=i.getCategories&&i.getCategories(!0),h=[],g=i.get(`triggerEvent`),v=1/0,y=-1/0;H(d,function(e,t){var n=e.tick,r=e.formattedLabel,s=e.rawLabel,l=u,f=Mo(o.scale,n);if(m&&m[f]){var b=m[f];_(b)&&b.textStyle&&(l=new Ze(b.textStyle,u,i.ecModel))}var x=l.getTextColor()||i.get([`axisLine`,`lineStyle`,`color`]),C=l.getShallow(`align`,!0)||p.textAlign,T=R(l.getShallow(`alignMinLabel`,!0),C),E=R(l.getShallow(`alignMaxLabel`,!0),C),D=l.getShallow(`verticalAlign`,!0)||l.getShallow(`baseline`,!0)||p.textVerticalAlign,O=R(l.getShallow(`verticalAlignMinLabel`,!0),D),k=R(l.getShallow(`verticalAlignMaxLabel`,!0),D),A=10+(n.time?.level||0);v=Math.min(v,A),y=Math.max(y,A);var j=new w({x:0,y:0,rotation:0,silent:Zc.isLabelSilent(i),z2:A,style:zr(l,{text:r,align:t===0?T:t===d.length-1?E:C,verticalAlign:t===0?O:t===d.length-1?k:D,fill:S(x)?x(o.type===`category`?s:o.type===`value`?f+``:f,t):x})});j.anid=`label_`+f;var M=Uc(j);if(M.labelInfo=e,M.layoutRotation=p.rotation,Sn({el:j,componentModel:i,itemName:r,formatterParamsExtra:{isTruncated:function(){return j.isTruncated},value:s,tickIndex:t}}),g){var N=Zc.makeAxisEventDataBase(i);N.targetType=`axisLabel`,N.value=s,N.tickIndex=t;var P=e.tick.break;if(P){var F=P.parsedBreak;N.break={start:F.vmin,end:F.vmax}}o.type===`category`&&(N.dataIndex=f),G(j).eventData=N,P&&function(e,t,n,r){n.on(`click`,function(n){var i={type:zc,breaks:[{start:r.parsedBreak.breakOption.start,end:r.parsedBreak.breakOption.end}]};i[e.axis.dim+`AxisIndex`]=e.componentIndex,t.dispatchAction(i)})}(i,a,j,P)}h.push(j),c.add(j)}),al(t,J(h,function(e){return{label:e,priority:Uc(e).labelInfo.tick.break?e.z2+(y-v+1):e.z2,defaultAttr:{ignore:e.ignore}}}),c,l)}(e,t,i,s,r,o);var c=t.labelLayoutList;(function(e,t,n,r){var i=t.get([`axisLabel`,`margin`]);H(n,function(n,a){var o=Ws(n);if(o){var s=o.label,c=Uc(s);o.suggestIgnore=s.ignore,s.ignore=!1,d(ol,sl);var l=t.axis;ol.x=l.dataToCoord(Mo(l.scale,c.labelInfo.tick)),ol.y=e.labelOffset+e.labelDirection*i,ol.rotation=c.layoutRotation,r.add(ol),ol.updateTransform(),r.remove(ol),ol.decomposeTransform(),d(s,ol),s.markRedraw(),Hs(o,!0),Ws(o)}})})(e,r,c,a),function(e,t,n){var r=l();if(r){var i=r.retrieveAxisBreakPairs(n,function(e){return e&&Uc(e.label).labelInfo.tick.break},!0),a=e.get([`breakLabelLayout`,`moveOverlap`],!0);!0!==a&&a!==`auto`||H(i,function(r){null.adjustBreakLabelPair(e.axis.inverse,t,[Ws(n[r[0]]),Ws(n[r[1]])])})}}(r,e.rotation,c);var u=e.optionHideOverlap;(function(e,t,n){var r=e.axis,i=e.get([`axisLabel`,`customValues`]);if(function(e){return e.type===`category`&&Eo(e.getLabelModel())===0}(r))return;function a(e,a,o){var s=Ws(t[a]),c=Ws(t[o]),l=r.scale;if(s&&c){if(e==null){if(!n&&i)return;var u=Uc(s.label).labelInfo.tick;if(Ya(l)&&u.notNice||Za(l)&&u.offInterval)return void tl(s.label)}if(!1===e||s.suggestIgnore)tl(s.label);else if(c.suggestIgnore)tl(c.label);else{var d=.1;if(!n){var f=[0,0,0,0];s=qs({marginForce:f},s),c=qs({marginForce:f},c)}Ys(s,c,null,{touchThreshold:d})&&tl(e?c.label:s.label)}}}var o=e.get([`axisLabel`,`showMinLabel`]),s=e.get([`axisLabel`,`showMaxLabel`]),c=t.length;a(o,0,1),a(s,c-1,c-2)})(r,c,u),u&&function(e){var t=[];function n(e){if(!e.ignore){var t=e.ensureState(`emphasis`);t.ignore??=!1}e.ignore=!0}e.sort(function(e,t){return+!!t.suggestIgnore-!!e.suggestIgnore||t.priority-e.priority});for(var r=0;r<e.length;r++){var i=Ws(e[r]);if(!i.label.ignore){for(var a=i.label,o=i.labelLine,s=!1,c=0;c<t.length;c++)if(Ys(i,t[c],null,{touchThreshold:.05})){s=!0;break}s?(n(a),o&&n(o)):t.push(i)}}}(Mt(c,function(e){return e&&!e.label.ignore})),function(e,t,n,r){var i,a=n.axis,o=t.ensureRecord(n),s=[],c=cl(e.axisName)&&Oo(e.nameLocation);H(r,function(e){var t=Ws(e);if(t&&!t.label.ignore){s.push(t);var n=o.transGroup;c&&(n.transform?Me(Kc,n.transform):Rr(Kc),t.transform&&Zn(Kc,Kc,t.transform),pt.copy(qc,t.localRect),qc.applyTransform(Kc),i?i.union(qc):pt.copy(i=new pt(0,0,0,0),qc))}});var l=Math.abs(o.dirVec.x)>.1?`x`:`y`,u=o.transGroup[l];if(s.sort(function(e,t){return Math.abs(e.label[l]-u)-Math.abs(t.label[l]-u)}),c&&i){var d=a.getExtent(),f=Math.min(d[0],d[1]),p=Math.max(d[0],d[1])-f;i.union(new pt(f,0,p,1))}o.stOccupiedRect=i,o.labelInfoList=s}(e,n,r,c)}function tl(e){e&&(e.ignore=!0)}function nl(e,t,n,r,i){for(var a=[],o=[],s=[],c=0;c<e.length;c++){var l=e[c].coord;o[0]=l,o[1]=0,s[0]=l,s[1]=n,t&&(Ge(o,o,t),Ge(s,s,t));var u=new It({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Dr(u.shape,u.style.lineWidth),u.anid=i+`_`+e[c].tickValue,a.push(u);var d=Wc(u);d.onBand=!!e[c].onBand,d.tickValue=e[c].tickValue}return a}function rl(e,t,n){if(il(e)){var r=e.axisLabelsCreationContext.out.noPxChangeTryDetermine;if(n.noPxChange){for(var i=!0,a=0;a<r.length;a++)i&&=r[a]();if(i)return!1}r.length&&(t.remove(e.labelGroup),al(e,null,null,null))}return!0}function il(e){return!!e.labelLayoutList}function al(e,t,n,r){e.labelLayoutList=t,e.labelGroup=n,e.axisLabelsCreationContext=r}var ol=new h,sl=new h;function cl(e){return!!e}function ll(e,t,n){n||={};var r=t.axis,i={},a=r.getAxesOnZeroOf()[0],o=r.position,s=a?`onZero`:o,c=r.dim,l=[e.x,e.x+e.width,e.y,e.y+e.height],u={left:0,right:1,top:0,bottom:1,onZero:2},d=t.get(`offset`)||0,f=c===`x`?[l[2]-d,l[3]+d]:[l[0]-d,l[1]+d];if(a){var p=a.toGlobalCoord(a.dataToCoord(0));f[u.onZero]=Math.max(Math.min(p,f[1]),f[0])}i.position=[c===`y`?f[u[s]]:l[0],c===`x`?f[u[s]]:l[3]],i.rotation=Math.PI/2*(c===`x`?0:1),i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,left:-1,right:1}[o],i.labelOffset=a?f[u[o]]-f[u.onZero]:0,t.get([`axisTick`,`inside`])&&(i.tickDirection=-i.tickDirection),Pn(n.labelInside,t.get([`axisLabel`,`inside`]))&&(i.labelDirection=-i.labelDirection);var m=t.get([`axisLabel`,`rotate`]);return i.labelRotate=s===`top`?-m:m,i.z2=1,i}function ul(){Ko.liPosMinGap=dl}function dl(e,t,n){var r,i=a(),s=n.serUids,c=n.liPosMinGap,l=t.axis,u=l.scale,d=u.needTransform(),f=u.getFilter?u.getFilter():null,p=lr(f);function m(n){Uo(e,t.sers,function(e){var t=e.getRawData(),r=t.getDimensionIndex(t.mapDimension(l.dim));r>=0&&n(r,e,t.getStore())})}var h=0;if(m(function(e,t,n){i.set(t.uid,1),s&&s.hasKey(t.uid)||(r=!0),h+=n.count()}),s&&s.keys().length===i.keys().length||(r=!0),r||c==null){fc(fl,h);var g=0;m(function(e,t,n){for(var r=0,i=n.count();r<i;++r){var a=n.get(e,r);!isFinite(a)||f&&!o(p,a)||(d&&(a=u.transformIn(a,null)),fl.arr[g++]=a)}});var _=fl.typed?fl.arr.subarray(0,g):(fl.arr.length=g,fl.arr);fl.typed?_.sort():rr(_);for(var v=1/0,y=1;y<g;++y){var b=_[y]-_[y-1];b>0&&b<v&&(v=b)}n.liPosMinGap=t.liPosMinGap=Mr(v)?v:g>0?-2:-1,n.serUids=i}else t.liPosMinGap=c}var fl=fc({ctor:uc},50);function pl(e,t){return e+`|&`+t}function ml(e){return ul(),{liPosMinGap:!Za(e.scale)}}function hl(e,t,n,r){(function(e,t){var n=Jo(t.seriesType,t.baseAxis,t.coordSysType);Yo.set(n,t),Fo(e,function(){e.registerProcessor(e.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:Go})})})(e,{key:t,seriesType:n,coordSysType:r,getMetrics:ml})}var gl={left:0,right:0,top:0,bottom:0},_l=[`25%`,`25%`],vl=`cartesian2d`,yl=function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return X(t,e),t.prototype.mergeDefaultAndTheme=function(t,n){var r=wt(t.outerBounds);e.prototype.mergeDefaultAndTheme.apply(this,arguments),r&&t.outerBounds&&Ur(t.outerBounds,r)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&t.outerBounds&&Ur(this.option.outerBounds,t.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:gl,outerBoundsContain:`all`,outerBoundsClampWidth:_l[0],outerBoundsClampHeight:_l[1],backgroundColor:K.color.transparent,borderWidth:1,borderColor:K.color.neutral30},t}(Br),bl=Et();function xl(e){return e.get(`stack`)||`__ec_stack_`+e.seriesIndex}function Sl(e,t){var n=function(e,t){var n=pl(t,vl),r=[],i=Ds(e,{fromStat:{key:n},min:1});return Ho(e,n,function(e){r.push({barWidth:mt(e.get(`barWidth`),i.w),barMaxWidth:mt(e.get(`barMaxWidth`),i.w),barMinWidth:mt(e.get(`barMinWidth`)||(wl(e)?.5:1),i.w),barGap:e.get(`barGap`),barCategoryGap:e.get(`barCategoryGap`),defaultBarGap:e.get(`defaultBarGap`),stackId:xl(e)})}),{bandWidthResult:i,seriesInfo:r}}(e,t);return n.columnMap=function(e){var t,n,r=e.bandWidthResult.w,i=r,a=0,o=[],s={};H(e.seriesInfo,function(e,r){r||(n=e.defaultBarGap||0);var c=e.stackId;ee(s,c)||a++;var l=s[c];l||(l=s[c]={width:0,maxWidth:0},o.push(c));var u=e.barWidth;u&&!l.width&&(l.width=u,u=gr(i,u),i-=u);var d=e.barMaxWidth;d&&(l.maxWidth=d);var f=e.barMinWidth;f&&(l.minWidth=f);var p=e.barGap;p!=null&&(n=p);var m=e.barCategoryGap;m!=null&&(t=m)}),t??=z(35-4*o.length,15)+`%`;var c=mt(t,r),l=mt(n,1),u=(i-c)/(a+(a-1)*l);u=z(u,0),H(o,function(e){var t=s[e],n=t.maxWidth,r=t.minWidth;if(t.width)o=t.width,n&&(o=gr(o,n)),r&&(o=z(o,r)),t.width=o,i-=o+l*o,a--;else{var o=u;n&&n<o&&(o=gr(n,i)),r&&r>o&&(o=r),o!==u&&(t.width=o,i-=o+l*o,a--)}}),u=z(u=(i-c)/(a+(a-1)*l),0);var d,f=0;H(o,function(e){var t=s[e];t.width||=u,d=t,f+=t.width*(1+l)}),d&&(f-=d.width*l);var p={},m=-f/2;return H(o,function(e){var t=s[e];p[e]=p[e]||{bandWidth:r,offset:m,width:t.width},m+=t.width*(1+l)}),p}(n),n}function Cl(e){return{seriesType:e,overallReset:function(t){var n=pl(e,vl);(function(e,t,n){var r=Io(Nt(e)).keyed,i=r&&r.get(t);i&&i.each(function(e){n(e.axis)})})(t,n,function(t){var r=Sl(t,e);Ho(t,n,function(e){var t=r.columnMap[xl(e)];e.getData().setLayout({bandWidth:t.bandWidth,offset:t.offset,size:t.width})})})}}}function wl(e){return e.pipelineContext&&e.pipelineContext.large}function Tl(e){return t=pl(e,vl),function(e,n){var r=Ds(e,{fromStat:{key:t}});if(Mr(r.w2))return[-r.w2/2,r.w2/2]};var t}function El(e){bl(e,function(){function t(t){var n=pl(t,vl);hl(e,n,t,vl),function(e,t){is.set(e,t)}(n,Tl(t))}t(`bar`),t(`pictorialBar`)})}var Dl=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return X(t,e),t.prototype.getInitialData=function(e,t){return Na(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,t,n){var r=this.coordinateSystem;if(r&&r.clampData){var i=r.clampData(e),a=r.dataToPoint(i);if(n)H(r.getAxes(),function(e,n){if(e.type===`category`&&t!=null){var r=e.getTicksCoords(),o=e.getTickModel().get(`alignWithLabel`),s=i[n],c=t[n]===`x1`||t[n]===`y1`;if(c&&!o&&(s+=1),r.length<2)return;if(r.length===2)return void(a[n]=e.toGlobalCoord(e.getExtent()[+!!c]));for(var l=void 0,u=void 0,d=1,f=0;f<r.length;f++){var p=r[f].coord,m=f===r.length-1?r[f-1].tickValue+d:r[f].tickValue;if(m===s){u=p;break}if(m<s)l=p;else if(l!=null&&m>s){u=(p+l)/2;break}f===1&&(d=m-r[0].tickValue)}u??(l?l&&(u=r[r.length-1].coord):u=r[0].coord),a[n]=e.toGlobalCoord(u)}});else{var o=this.getData(),s=o.getLayout(`offset`),c=o.getLayout(`size`),l=+!r.getBaseAxis().isHorizontal();a[l]+=s+c/2}return a}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},t.type=`series.__base_bar__`,t.defaultOption={z:2,coordinateSystem:`cartesian2d`,legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:`mod`,defaultBarGap:`10%`},t}(bn);bn.registerClass(Dl);var Ol=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return X(t,e),t.prototype.getInitialData=function(){return Na(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get(`realtimeSort`,!0)||null})},t.prototype.getProgressive=function(){return!!this.get(`large`)&&this.get(`progressive`)},t.prototype.__preparePipelineContext=function(e,t){var n=zn(this,e,t);return n.progressiveRender&&(n.large=!0),n},t.prototype.brushSelector=function(e,t,n){return n.rect(t.getItemLayout(e))},t.type=`series.bar`,t.dependencies=[`grid`,`polar`],t.defaultOption=Ir(Dl.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:K.color.primary,borderWidth:2}},realtimeSort:!1}),t}(Dl),kl=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Al=function(e){function t(t){var n=e.call(this,t)||this;return n.type=`sausage`,n}return X(t,e),t.prototype.getDefaultShape=function(){return new kl},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r0||0,0),a=Math.max(t.r,0),o=.5*(a-i),s=i+o,c=t.startAngle,l=t.endAngle,u=t.clockwise,d=2*Math.PI,f=u?l-c<d:c-l<d;f||(c=l-(u?d:-d));var p=Math.cos(c),m=Math.sin(c),h=Math.cos(l),g=Math.sin(l);f?(e.moveTo(p*i+n,m*i+r),e.arc(p*s+n,m*s+r,o,-Math.PI+c,c,!u)):e.moveTo(p*a+n,m*a+r),e.arc(n,r,a,c,l,!u),e.arc(h*s+n,g*s+r,o,l-2*Math.PI,l-Math.PI,!u),i!==0&&e.arc(n,r,i,l,c,u)},t}(re);function jl(e,t,n){return t*Math.sin(e)*(n?-1:1)}function Ml(e,t,n){return t*Math.cos(e)*(n?1:-1)}function Nl(e,t,n){var r=e.get(`borderRadius`);if(r==null)return n?{cornerRadius:0}:null;q(r)||(r=[r,r,r,r]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:J(r,function(e){return Ot(e,i)})}}var Pl=Math.max,Fl=Math.min,Il=function(e){function t(){var t=e.call(this)||this;return t.type=`bar`,t._isFirstFrame=!0,t}return X(t,e),t.prototype.render=function(e,t,n,r){this._model=e,this._removeOnRenderedListener(n),this._updateDrawMode(e);var i=e.get(`coordinateSystem`);i!==`cartesian2d`&&i!==`polar`||(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,t,n):this._renderNormal(e,t,n,r))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,t){this._progressiveEls=[],this._incrementalRenderLarge(e,t)},t.prototype.eachRendered=function(e){Ae(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var t=e.pipelineContext.large;this._isLargeDraw!=null&&t===this._isLargeDraw||(this._isLargeDraw=t,this._clear())},t.prototype._renderNormal=function(e,t,n,r){var i,a=this.group,o=e.getData(),s=this._data,c=e.coordinateSystem,l=c.getBaseAxis();c.type===`cartesian2d`?i=l.isHorizontal():c.type===`polar`&&(i=l.dim===`angle`);var d=e.isAnimationEnabled()?e:null,f=function(e,t){var n=e.get(`realtimeSort`,!0),r=t.getBaseAxis();if(n&&r.type===`category`&&t.type===`cartesian2d`)return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}(e,c);f&&this._enableRealtimeSort(f,o,n);var p=e.get(`clip`,!0)||f,m=c.getArea();a.removeClipPath();var g=e.get(`roundCap`,!0),_=e.get(`showBackground`,!0),v=e.getModel(`backgroundStyle`),y=v.get(`borderRadius`)||0,S=[],C=this._backgroundEls,w=r&&r.isInitSort,T=r&&r.type===`changeAxisOrder`;function E(e){var t=Wl[c.type](o,e);if(!t)return null;var n=function(e,t,n){return new(e.type===`polar`?u:h)({shape:Zl(t,n,e),silent:!0,z2:0})}(c,i,t);return n.useStyle(v.getItemStyle()),c.type===`cartesian2d`?n.setShape(`r`,y):n.setShape(`cornerRadius`,y),S[e]=n,n}o.diff(s).add(function(t){var n=o.getItemModel(t),r=Wl[c.type](o,t,n);if(r&&(_&&E(t),o.hasValue(t)&&Ul[c.type](r))){var s=!1;p&&(s=Ll[c.type](m,r));var u=Rl[c.type](e,o,t,r,i,d,l.model,!1,g);f&&(u.forceLabelAnimation=!0),Kl(u,o,t,n,r,e,i,c.type===`polar`),w?u.attr({shape:r}):f?zl(f,d,u,r,t,i,!1,!1):$t(u,{shape:r},e,t),o.setItemGraphicEl(t,u),a.add(u),u.ignore=s}}).update(function(t,n){var r=o.getItemModel(t),u=Wl[c.type](o,t,r);if(u){if(_){var h=void 0;C.length===0?h=E(n):((h=C[n]).useStyle(v.getItemStyle()),c.type===`cartesian2d`?h.setShape(`r`,y):h.setShape(`cornerRadius`,y),S[t]=h);var D=Wl[c.type](o,t),O=Zl(i,D,c);b(h,{shape:O},d,t)}var k=s.getItemGraphicEl(n);if(o.hasValue(t)&&Ul[c.type](u)){var A=!1;if(p&&(A=Ll[c.type](m,u))&&a.remove(k),k&&(k.type===`sector`&&g||k.type===`sausage`&&!g)&&(k&&Gt(k,e,n),k=null),k?x(k):k=Rl[c.type](e,o,t,u,i,d,l.model,!0,g),f&&(k.forceLabelAnimation=!0),T){var j=k.getTextContent();if(j){var M=Kt(j);M.prevValue!=null&&(M.prevValue=M.value)}}else Kl(k,o,t,r,u,e,i,c.type===`polar`);w?k.attr({shape:u}):f?zl(f,d,k,u,t,i,!0,T):b(k,{shape:u},e,t,null),o.setItemGraphicEl(t,k),k.ignore=A,a.add(k)}else a.remove(k)}}).remove(function(t){var n=s.getItemGraphicEl(t);n&&Gt(n,e,t)}).execute();var D=this._backgroundGroup||=new le;D.removeAll();for(var O=0;O<S.length;++O)D.add(S[O]);a.add(D),this._backgroundEls=S,this._data=o},t.prototype._renderLarge=function(e,t,n){this._clear(),Yl(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,t){this._removeBackground(),Yl(t,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var t=e.get(`clip`,!0)&&function(e,t,n,r,i){return e?e.type===`polar`?xc(e,t,n):e.type===`cartesian2d`?bc(e,t,n,r,i):null:null}(e.coordinateSystem,!1,e),n=this.group;t?n.setClipPath(t):n.removeClipPath()},t.prototype._enableRealtimeSort=function(e,t,n){var r=this;if(t.count()){var i=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(t,e,n),this._isFirstFrame=!1;else{var a=function(e){var n=t.getItemGraphicEl(e),r=n&&n.shape;return r&&Math.abs(i.isHorizontal()?r.height:r.width)||0};this._onRendered=function(){r._updateSortWithinSameData(t,a,i,n)},n.getZr().on(`rendered`,this._onRendered)}}},t.prototype._dataSort=function(e,t,n){var r=[];return e.each(e.mapDimension(t.dim),function(e,t){var i=n(t);i??=NaN,r.push({dataIndex:t,mappedValue:i,ordinalNumber:e})}),r.sort(function(e,t){return t.mappedValue-e.mappedValue}),{ordinalNumbers:J(r,function(e){return e.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,t,n){for(var r=n.scale,i=e.mapDimension(n.dim),a=Number.MAX_VALUE,o=0,s=r.getOrdinalMeta().categories.length;o<s;++o){var c=e.rawIndexOf(i,r.getRawOrdinalNumber(o)),l=c<0?Number.MIN_VALUE:t(e.indexOfRawIndex(c));if(l>a)return!0;a=l}return!1},t.prototype._isOrderDifferentInView=function(e,t){for(var n=t.scale,r=n.getExtent(),i=Math.max(0,r[0]),a=Math.min(r[1],n.getOrdinalMeta().categories.length-1);i<=a;++i)if(e.ordinalNumbers[i]!==n.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(e,t,n,r){if(this._isOrderChangedWithinSameData(e,t,n)){var i=this._dataSort(e,n,t);this._isOrderDifferentInView(i,n)&&(this._removeOnRenderedListener(r),r.dispatchAction({type:`changeAxisOrder`,componentType:n.dim+`Axis`,axisId:n.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(e,t,n){var r=t.baseAxis,i=this._dataSort(e,r,function(n){return e.get(e.mapDimension(t.otherAxis.dim),n)});n.dispatchAction({type:`changeAxisOrder`,componentType:r.dim+`Axis`,isInitSort:!0,axisId:r.index,sortInfo:i})},t.prototype.remove=function(e,t){this._clear(this._model),this._removeOnRenderedListener(t)},t.prototype.dispose=function(e,t){this._removeOnRenderedListener(t)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&=(e.getZr().off(`rendered`,this._onRendered),null)},t.prototype._clear=function(e){var t=this.group,n=this._data;e&&e.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(t){Gt(t,e,G(t).dataIndex)})):t.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=`bar`,t}(cr),Ll={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=Pl(t.x,e.x),s=Fl(t.x+t.width,i),c=Pl(t.y,e.y),l=Fl(t.y+t.height,a),u=s<o,d=l<c;return t.x=u&&o>i?s:o,t.y=d&&c>a?l:c,t.width=u?0:s-o,t.height=d?0:l-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),u||d},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var i=Fl(t.r,e.r),a=Pl(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;return n<0&&(r=t.r,t.r=t.r0,t.r0=r),o}},Rl={cartesian2d:function(e,t,n,r,i,a,o,s,c){var l=new h({shape:B({},r),z2:1});return l.__dataIndex=n,l.name=`item`,a&&(l.shape[i?`height`:`width`]=0),l},polar:function(e,t,n,r,i,a,o,s,c){var l=!i&&c?Al:u,d=new l({shape:r,z2:1});d.name=`item`;var f,p;if(d.calculateTextPosition=(f=Gl(i),p={isRoundCap:l===Al}.isRoundCap,function(e,t,n){var r=t.position;if(!r||r instanceof Array)return y(e,t,n);var i=f(r),a=t.distance==null?5:t.distance,o=this.shape,s=o.cx,c=o.cy,l=o.r,u=o.r0,d=(l+u)/2,m=o.startAngle,h=o.endAngle,g=(m+h)/2,_=p?Math.abs(l-u)/2:0,v=Math.cos,b=Math.sin,x=s+l*v(m),S=c+l*b(m),C=`left`,w=`top`;switch(i){case`startArc`:x=s+(u-a)*v(g),S=c+(u-a)*b(g),C=`center`,w=`top`;break;case`insideStartArc`:x=s+(u+a)*v(g),S=c+(u+a)*b(g),C=`center`,w=`bottom`;break;case`startAngle`:x=s+d*v(m)+jl(m,a+_,!1),S=c+d*b(m)+Ml(m,a+_,!1),C=`right`,w=`middle`;break;case`insideStartAngle`:x=s+d*v(m)+jl(m,-a+_,!1),S=c+d*b(m)+Ml(m,-a+_,!1),C=`left`,w=`middle`;break;case`middle`:x=s+d*v(g),S=c+d*b(g),C=`center`,w=`middle`;break;case`endArc`:x=s+(l+a)*v(g),S=c+(l+a)*b(g),C=`center`,w=`bottom`;break;case`insideEndArc`:x=s+(l-a)*v(g),S=c+(l-a)*b(g),C=`center`,w=`top`;break;case`endAngle`:x=s+d*v(h)+jl(h,a+_,!0),S=c+d*b(h)+Ml(h,a+_,!0),C=`left`,w=`middle`;break;case`insideEndAngle`:x=s+d*v(h)+jl(h,-a+_,!0),S=c+d*b(h)+Ml(h,-a+_,!0),C=`right`,w=`middle`;break;default:return y(e,t,n)}return(e||={}).x=x,e.y=S,e.align=C,e.verticalAlign=w,e}),a){var m=i?`r`:`endAngle`,h={};d.shape[m]=i?r.r0:r.startAngle,h[m]=r[m],(s?b:$t)(d,{shape:h},a)}return d}};function zl(e,t,n,r,i,a,o,s){var c,l;a?(l={x:r.x,width:r.width},c={y:r.y,height:r.height}):(l={y:r.y,height:r.height},c={x:r.x,width:r.width}),s||(o?b:$t)(n,{shape:c},t,i,null);var u=t?e.baseAxis.model:null;(o?b:$t)(n,{shape:l},u,i)}function Bl(e,t){for(var n=0;n<t.length;n++)if(!isFinite(e[t[n]]))return!0;return!1}var Vl=[`x`,`y`,`width`,`height`],Hl=[`cx`,`cy`,`r`,`startAngle`,`endAngle`],Ul={cartesian2d:function(e){return!Bl(e,Vl)},polar:function(e){return!Bl(e,Hl)}},Wl={cartesian2d:function(e,t,n){var r=e.getItemLayout(t);if(!r)return null;var i=n?function(e,t){var n=e.get([`itemStyle`,`borderColor`]);if(!n||n===`none`)return 0;var r=e.get([`itemStyle`,`borderWidth`])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,i,a)}(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*i}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function Gl(e){return function(e){var t=e?`Arc`:`Angle`;return function(e){switch(e){case`start`:case`insideStart`:case`end`:case`insideEnd`:return e+t;default:return e}}}(e)}function Kl(e,t,n,r,i,a,o,s){var c=t.getItemVisual(n,`style`);if(s){if(!a.get(`roundCap`)){var l=e.shape,u=Nl(r.getModel(`itemStyle`),l,!0);B(l,u),e.setShape(l)}}else{var d=r.get([`itemStyle`,`borderRadius`])||0;e.setShape(`r`,d)}e.useStyle(c);var f=r.getShallow(`cursor`);f&&e.attr(`cursor`,f);var p=s?o?i.r>=i.r0?`endArc`:`startArc`:i.endAngle>=i.startAngle?`endAngle`:`startAngle`:o?function(e,t){return e.height===0?t.getOtherAxis(t.getBaseAxis()).inverse?`bottom`:`top`:e.height>0?`bottom`:`top`}(i,a.coordinateSystem):function(e,t){return e.width===0?t.getOtherAxis(t.getBaseAxis()).inverse?`left`:`right`:e.width>=0?`right`:`left`}(i,a.coordinateSystem),m=Hn(r);nt(e,m,{labelFetcher:a,labelDataIndex:n,defaultText:Zs(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:p});var h=e.getTextContent();if(s&&h){var g=r.get([`label`,`position`]);e.textConfig.inside=g===`middle`||null,function(e,t,n,r){if(_r(r))e.setTextConfig({rotation:r});else if(q(t))e.setTextConfig({rotation:0});else{var i,a=e.shape,o=a.clockwise?a.startAngle:a.endAngle,s=a.clockwise?a.endAngle:a.startAngle,c=(o+s)/2,l=n(t);switch(l){case`startArc`:case`insideStartArc`:case`middle`:case`insideEndArc`:case`endArc`:i=c;break;case`startAngle`:case`insideStartAngle`:i=o;break;case`endAngle`:case`insideEndAngle`:i=s;break;default:e.setTextConfig({rotation:0});return}var u=1.5*Math.PI-i;l===`middle`&&u>Math.PI/2&&u<1.5*Math.PI&&(u-=Math.PI),e.setTextConfig({rotation:u})}}(e,g===`outside`?p:g,Gl(o),r.get([`label`,`rotate`]))}vr(h,m,a.getRawValue(n),function(e){return Qs(t,e)});var _=r.getModel([`emphasis`]);Ut(e,_.get(`focus`),_.get(`blurScope`),_.get(`disabled`)),Qt(e,r),function(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}(i)&&(e.style.fill=`none`,e.style.stroke=`none`,H(e.states,function(e){e.style&&(e.style.fill=e.style.stroke=`none`)}))}var ql=function(){},Jl=function(e){function t(t){var n=e.call(this,t)||this;return n.type=`largeBar`,n}return X(t,e),t.prototype.getDefaultShape=function(){return new ql},t.prototype.buildPath=function(e,t){for(var n=t.points,r=this.baseDimIdx,i=1-this.baseDimIdx,a=[],o=[],s=this.barWidth,c=0;c<n.length;c+=3)o[r]=s,o[i]=n[c+2],a[r]=n[c+r],a[i]=n[c+i],e.rect(a[0],a[1],o[0],o[1])},t}(re);function Yl(e,t,n,r){var i=e.getData(),a=+!!i.getLayout(`valueAxisHorizontal`),o=i.getLayout(`largeDataIndices`),s=i.getLayout(`size`),c=e.getModel(`backgroundStyle`),l=i.getLayout(`largeBackgroundPoints`),u=r?Tn(e):0;if(l){var d=new Jl({shape:{points:l},incremental:u,silent:!0,z2:0});d.baseDimIdx=a,d.largeDataIndices=o,d.barWidth=s,d.useStyle(c.getItemStyle()),t.add(d),n&&n.push(d)}var f=new Jl({shape:{points:i.getLayout(`largePoints`)},incremental:u,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual(`style`)),f.style.stroke=null,G(f).seriesIndex=e.seriesIndex,e.get(`silent`)||(f.on(`mousedown`,Xl),f.on(`mousemove`,Xl)),n&&n.push(f)}var Xl=it(function(e){var t=function(e,t,n){for(var r=e.baseDimIdx,i=1-r,a=e.shape.points,o=e.largeDataIndices,s=[],c=[],l=e.barWidth,u=0,d=a.length/3;u<d;u++){var f=3*u;if(c[r]=l,c[i]=a[f+2],s[r]=a[f+r],s[i]=a[f+i],c[i]<0&&(s[i]+=c[i],c[i]=-c[i]),t>=s[0]&&t<=s[0]+c[0]&&n>=s[1]&&n<=s[1]+c[1])return o[u]}return-1}(this,e.offsetX,e.offsetY);G(this).dataIndex=t>=0?t:null},30,!1);function Zl(e,t,n){if(Sc(n,`cartesian2d`)){var r=t,i=n.getArea();return{x:e?r.x:i.x,y:e?i.y:r.y,width:e?r.width:i.width,height:e?i.height:r.height}}var a=t;return{cx:(i=n.getArea()).cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:2*Math.PI}}var Ql=function(){function e(e,t){this._getDataWithEncodedVisual=e,this._getRawData=t}return e.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},e.prototype.containName=function(e){return this._getRawData().indexOfName(e)>=0},e.prototype.indexOfName=function(e){return this._getDataWithEncodedVisual().indexOfName(e)},e.prototype.getItemVisual=function(e,t){return this._getDataWithEncodedVisual().getItemVisual(e,t)},e}(),$l=I(),eu=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return X(t,e),t.prototype.init=function(t){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Ql(m(this.getData,this),m(this.getRawData,this)),this._defaultLabelLine(t)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return function(e,t,n){t=q(t)&&{coordDimensions:t}||B({encodeDefine:e.getEncode()},t);var r=e.getSource(),i=Ea(r,t).dimensions,a=new Ta(i,e);return a.initData(r,n),a}(this,{coordDimensions:[`value`],encodeDefaulter:Y(br,this)})},t.prototype.getDataParams=function(t){var n=this.getData(),r=$l(n),i=r.seats;if(!i){var a=[];n.each(n.mapDimension(`value`),function(e){a.push(e)}),i=r.seats=ur(a,n.hostModel.get(`percentPrecision`))}var o=e.prototype.getDataParams.call(this,t);return o.percent=i[t]||0,o.$vars.push(`percent`),o},t.prototype._defaultLabelLine=function(e){qt(e,`labelLine`,[`show`]);var t=e.labelLine,n=e.emphasis.labelLine;t.show=t.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}(bn);tn({fullType:eu.type,getCoord2:function(e){return e.getShallow(`center`)}});var tu=Math.PI/180;function nu(e,t,n,r,i,a,o,s,c,l){if(!(e.length<2)){for(var u=e.length,d=0;d<u;d++)if(e[d].position===`outer`&&e[d].labelAlignTo===`labelLine`){var f=e[d].label.x-l;e[d].linePoints[1][0]+=f,e[d].label.x=l}(function(e,t,n,r,i){var a=e.length,o=fr[t],s=Wt[t];if(a<2)return!1;e.sort(function(e,t){return e.rect[o]-t.rect[o]});for(var c,l=0,u=!1,d=0,f=0;f<a;f++){var p=e[f],m=p.rect;(c=m[o]-l)<0&&(m[o]-=c,p.label[o]-=c,u=!0),d+=Math.max(-c,0),l=m[o]+m[s]}d>0&&i&&x(-d/a,0,a);var h,g,_=e[0],v=e[a-1];function y(){h=_.rect[o]-n,g=r-v.rect[o]-v.rect[s]}function b(e,t,n){if(e<0){var r=Math.min(t,-e);if(r>0){x(r*n,0,a);var i=r+e;i<0&&S(-i*n,1)}else S(-e*n,1)}}function x(t,n,r){t!==0&&(u=!0);for(var i=n;i<r;i++){var a=e[i];a.rect[o]+=t,a.label[o]+=t}}function S(t,n){for(var r=[],i=0,c=1;c<a;c++){var l=e[c-1].rect,u=Math.max(e[c].rect[o]-l[o]-l[s],0);r.push(u),i+=u}if(i){var d=Math.min(Math.abs(t)/i,n);if(t>0)for(c=0;c<a-1;c++)x(r[c]*d,0,c+1);else for(c=a-1;c>0;c--)x(-r[c-1]*d,c,a)}}function C(e){var t=e<0?-1:1;e=Math.abs(e);for(var n=Math.ceil(e/(a-1)),r=0;r<a-1;r++)if(t>0?x(n,0,r+1):x(-n,a-r-1,a),(e-=n)<=0)return}return y(),h<0&&S(-h,.8),g<0&&S(g,.8),y(),b(h,g,1),b(g,h,-1),y(),h<0&&C(-h),g<0&&C(g),u})(e,1,c,c+o)&&function(e){for(var a={list:[],maxY:0},o={list:[],maxY:0},s=0;s<e.length;s++)if(e[s].labelAlignTo===`none`){var c=e[s],l=c.label.y>n?o:a,u=Math.abs(c.label.y-n);if(u>=l.maxY){var d=c.label.x-t-c.len2*i,f=r+c.len;l.rB=Math.abs(d)<f?Math.sqrt(u*u/(1-d*d/f/f)):f,l.maxY=u}l.list.push(c)}p(a),p(o)}(e)}function p(e){for(var a=e.rB,o=a*a,s=0;s<e.list.length;s++){var c=e.list[s],l=Math.abs(c.label.y-n),u=r+c.len,d=u*u,f=t+(Math.sqrt(Math.abs((1-l*l/o)*d))+c.len2)*i,p=f-c.label.x;ru(c,c.targetTextWidth-p*i,!0),c.label.x=f}}}function ru(e,t,n){if(e.labelStyleWidth==null){var r=e.label,i=r.style,a=e.rect,o=i.backgroundColor,s=i.padding,c=s?s[1]+s[3]:0,l=i.overflow,u=a.width+(o?0:c);if(t<u||n){if(l&&l.match(`break`)){r.setStyle(`backgroundColor`,null),r.setStyle(`width`,t-c);var d=r.getBoundingRect();r.setStyle(`width`,Math.ceil(d.width)),r.setStyle(`backgroundColor`,o)}else{var f=t-c,p=t<u?f:n?f>e.unconstrainedWidth?null:f:null;r.setStyle(`width`,p)}iu(a,r)}}}function iu(e,t){ou.rect=e,Gs(ou,t,au)}var au={minMarginForce:[null,0,null,0],marginDefault:[1,0,1,0]},ou={};function su(e){return e.position===`center`}function cu(e){var t,n,r=e.getData(),i=[],a=!1,o=(e.get(`minShowLabelAngle`)||0)*tu,s=r.getLayout(`viewRect`),c=r.getLayout(`r`),l=s.width,u=s.x,d=s.y,f=s.height;function p(e){e.ignore=!0}r.each(function(e){var s=r.getItemGraphicEl(e),d=s.shape,m=s.getTextContent(),h=s.getTextGuideLine(),g=r.getItemModel(e),_=g.getModel(`label`),v=_.get(`position`)||g.get([`emphasis`,`label`,`position`]),y=_.get(`distanceToLabelLine`),b=_.get(`alignTo`),x=mt(_.get(`edgeDistance`),l),S=_.get(`bleedMargin`);S??=Math.min(l,f)>200?10:2;var C=g.getModel(`labelLine`),w=C.get(`length`);w=mt(w,l);var T=C.get(`length2`);if(T=mt(T,l),Math.abs(d.endAngle-d.startAngle)<o)return H(m.states,p),m.ignore=!0,void(h&&(H(h.states,p),h.ignore=!0));if(function(e){if(!e.ignore)return!0;for(var t in e.states)if(!1===e.states[t].ignore)return!0;return!1}(m)){var E,D,O,k,A=(d.startAngle+d.endAngle)/2,j=Math.cos(A),M=Math.sin(A);t=d.cx,n=d.cy;var N=v===`inside`||v===`inner`;if(v===`center`)E=d.cx,D=d.cy,k=`center`;else{var P=(N?(d.r+d.r0)/2*j:d.r*j)+t,F=(N?(d.r+d.r0)/2*M:d.r*M)+n;if(E=P+3*j,D=F+3*M,!N){var ee=P+j*(w+c-d.r),I=F+M*(w+c-d.r),te=ee+(j<0?-1:1)*T;E=b===`edge`?j<0?u+x:u+l-x:te+(j<0?-y:y),D=I,O=[[P,F],[ee,I],[te,I]]}k=N?`center`:b===`edge`?j>0?`right`:`left`:j>0?`left`:`right`}var L=Math.PI,ne=0,re=_.get(`rotate`);if(_r(re))ne=L/180*re;else if(v===`center`)ne=0;else if(re===`radial`||!0===re)ne=j<0?-A+L:-A;else if(re===`tangential`||re===`tangential-noflip`&&v!==`outside`&&v!==`outer`){var ie=Math.atan2(j,M);ie<0&&(ie=2*L+ie),M>0&&re!==`tangential-noflip`&&(ie=L+ie),ne=ie-L}if(a=!!ne,m.x=E,m.y=D,m.rotation=ne,m.setStyle({verticalAlign:`middle`}),N){m.setStyle({align:k});var ae=m.states.select;ae&&(ae.x+=m.x,ae.y+=m.y)}else{var oe=new pt(0,0,0,0);iu(oe,m),i.push({label:m,labelLine:h,position:v,len:w,len2:T,minTurnAngle:C.get(`minTurnAngle`),maxSurfaceAngle:C.get(`maxSurfaceAngle`),surfaceNormal:new U(j,M),linePoints:O,textAlign:k,labelDistance:y,labelAlignTo:b,edgeDistance:x,bleedMargin:S,rect:oe,unconstrainedWidth:oe.width,labelStyleWidth:m.style.width})}s.setTextConfig({inside:N})}}),!a&&e.get(`avoidLabelOverlap`)&&function(e,t,n,r,i,a,o,s){for(var c=[],l=[],u=Number.MAX_VALUE,d=-Number.MAX_VALUE,f=0;f<e.length;f++){var p=e[f].label;su(e[f])||(p.x<t?(u=Math.min(u,p.x),c.push(e[f])):(d=Math.max(d,p.x),l.push(e[f])))}for(f=0;f<e.length;f++)if(!su(g=e[f])&&g.linePoints){if(g.labelStyleWidth!=null)continue;p=g.label;var m=g.linePoints,h=void 0;h=g.labelAlignTo===`edge`?p.x<t?m[2][0]-g.labelDistance-o-g.edgeDistance:o+i-g.edgeDistance-m[2][0]-g.labelDistance:g.labelAlignTo===`labelLine`?p.x<t?u-o-g.bleedMargin:o+i-d-g.bleedMargin:p.x<t?p.x-o-g.bleedMargin:o+i-p.x-g.bleedMargin,g.targetTextWidth=h,ru(g,h,!1)}for(nu(l,t,n,r,1,0,a,0,s,d),nu(c,t,n,r,-1,0,a,0,s,u),f=0;f<e.length;f++){var g;if(!su(g=e[f])&&g.linePoints){p=g.label,m=g.linePoints;var _=g.labelAlignTo===`edge`,v=p.style.padding,y=v?v[1]+v[3]:0,b=p.style.backgroundColor?0:y,x=g.rect.width+b,S=m[1][0]-m[2][0];_?p.x<t?m[2][0]=o+g.edgeDistance+x+g.labelDistance:m[2][0]=o+i-g.edgeDistance-x-g.labelDistance:(p.x<t?m[2][0]=p.x+g.labelDistance:m[2][0]=p.x-g.labelDistance,m[1][0]=m[2][0]+S),m[1][1]=m[2][1]=p.y}}}(i,t,n,c,l,f,u,d);for(var m=0;m<i.length;m++){var h=i[m],g=h.label,_=h.labelLine,v=isNaN(g.x)||isNaN(g.y);if(g){g.setStyle({align:h.textAlign}),v&&(H(g.states,p),g.ignore=!0);var y=g.states.select;y&&(y.x+=g.x,y.y+=g.y)}if(_){var b=h.linePoints;v||!b?(H(_.states,p),_.ignore=!0):(Ls(b,h.minTurnAngle),Rs(b,h.surfaceNormal,h.maxSurfaceAngle),_.setShape({points:b}),g.__hostTarget.textGuideLineConfig={anchor:new U(b[0][0],b[0][1])})}}}var lu=2*Math.PI,uu=Math.PI/180,du=ut(`pie`,function(e,t){e.eachSeriesByType(`pie`,function(e){var n=e.getData(),r=n.mapDimension(`value`),i=se(e,t),a=i.cx,o=i.cy,s=i.r,c=i.r0,l=i.viewRect,u=-e.get(`startAngle`)*uu,d=e.get(`endAngle`),f=e.get(`padAngle`)*uu;d=d===`auto`?u-lu:-d*uu;var p=e.get(`minAngle`)*uu+f,m=0;n.each(r,function(e){!isNaN(e)&&m++});var h=n.getSum(r),_=Math.PI/(h||m)*2,v=e.get(`clockwise`),y=e.get(`roseType`),b=e.get(`stillShowZeroSum`),x=n.getDataExtent(r);x[0]=0;var S=v?1:-1,C=[u,d],w=S*f/2;at(C,!v),u=C[0],d=C[1];var T=fu(e);T.startAngle=u,T.endAngle=d,T.clockwise=v,T.cx=a,T.cy=o,T.r=s,T.r0=c;var E=Math.abs(d-u),D=E,O=0,k=u;if(n.setLayout({viewRect:l,r:s}),n.each(r,function(e,t){var r;if(isNaN(e))n.setItemLayout(t,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:v,cx:a,cy:o,r0:c,r:y?NaN:s});else{(r=y===`area`?E/m:h===0&&b?_:e*_)<p?(r=p,D-=p):O+=e;var i=k+S*r,l=0,u=0;f>r?u=l=k+S*r/2:(l=k+w,u=i-w),n.setItemLayout(t,{angle:r,startAngle:l,endAngle:u,clockwise:v,cx:a,cy:o,r0:c,r:y?g(e,x,[c,s]):s}),k=i}}),D<lu&&m){if(D<=.001){var A=E/m;n.each(r,function(e,t){if(!isNaN(e)){var r=n.getItemLayout(t);r.angle=A;var i=0,a=0;A<f?a=i=u+S*(t+.5)*A:(i=u+S*t*A+w,a=u+S*(t+1)*A-w),r.startAngle=i,r.endAngle=a}})}else _=D/O,k=u,n.each(r,function(e,t){if(!isNaN(e)){var r=n.getItemLayout(t),i=r.angle===p?p:e*_,a=0,o=0;i<f?o=a=k+S*i/2:(a=k+w,o=k+S*i-w),r.startAngle=a,r.endAngle=o,k+=S*i}})}})}),fu=I(),pu=function(e){function t(t,n,r){var i=e.call(this)||this;i.z2=2;var a=new w;return i.setTextContent(a),i.updateData(t,n,r,!0),i}return X(t,e),t.prototype.updateData=function(e,t,n,r){var i=this,a=e.hostModel,o=e.getItemModel(t),s=o.getModel(`emphasis`),c=e.getItemLayout(t),l=B(Nl(o.getModel(`itemStyle`),c,!0),c);if(isNaN(l.startAngle))i.setShape(l);else{if(r){i.setShape(l);var u=a.getShallow(`animationType`);a.ecModel.ssr?($t(i,{scaleX:0,scaleY:0},a,{dataIndex:t,isFrom:!0}),i.originX=l.cx,i.originY=l.cy):u===`scale`?(i.shape.r=c.r0,$t(i,{shape:{r:c.r}},a,t)):n==null?(i.shape.endAngle=c.startAngle,b(i,{shape:{endAngle:c.endAngle}},a,t)):(i.setShape({startAngle:n,endAngle:n}),$t(i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},a,t))}else x(i),b(i,{shape:l},a,t);i.useStyle(e.getItemVisual(t,`style`)),Qt(i,o);var d=(c.startAngle+c.endAngle)/2,f=a.get(`selectedOffset`),p=Math.cos(d)*f,m=Math.sin(d)*f,h=o.getShallow(`cursor`);h&&i.attr(`cursor`,h),this._updateLabel(a,e,t),i.ensureState(`emphasis`).shape=B({r:c.r+(s.get(`scale`)&&s.get(`scaleSize`)||0)},Nl(s.getModel(`itemStyle`),c)),B(i.ensureState(`select`),{x:p,y:m,shape:Nl(o.getModel([`select`,`itemStyle`]),c)}),B(i.ensureState(`blur`),{shape:Nl(o.getModel([`blur`,`itemStyle`]),c)});var g=i.getTextGuideLine(),_=i.getTextContent();g&&B(g.ensureState(`select`),{x:p,y:m}),B(_.ensureState(`select`),{x:p,y:m}),Ut(this,s.get(`focus`),s.get(`blurScope`),s.get(`disabled`))}},t.prototype._updateLabel=function(e,t,n){var r=this,i=t.getItemModel(n),a=i.getModel(`labelLine`),o=t.getItemVisual(n,`style`),s=o&&o.fill,c=o&&o.opacity;nt(r,Hn(i),{labelFetcher:t.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:c,defaultText:e.getFormattedLabel(n,`normal`)||t.getName(n)});var l=r.getTextContent();r.setTextConfig({position:null,rotation:null}),l.attr({z2:10});var u=i.get([`label`,`position`]);if(u!==`outside`&&u!==`outer`)r.removeTextGuideLine();else{var d=this.getTextGuideLine();d||(d=new et,this.setTextGuideLine(d)),function(e,t,n){var r=e.getTextGuideLine(),i=e.getTextContent();if(i){for(var a=t.normal,o=a.get(`show`),s=i.ignore,c=0;c<bt.length;c++){var l=bt[c],u=t[l],d=l===`normal`;if(u){var f=u.get(`show`);if((d?s:R(i.states[l]&&i.states[l].ignore,s))||!R(f,o)){var p=d?r:r&&r.states[l];p&&(p.ignore=!0),r&&zs(r,!0,l,u);continue}r||(r=new et,e.setTextGuideLine(r),d||!s&&o||zs(r,!0,`normal`,t.normal),e.stateProxy&&(r.stateProxy=e.stateProxy)),zs(r,!1,l,u)}}if(r){Sr(r.style,n),r.style.fill=null;var m=a.get(`showAbove`);(e.textGuideLineConfig=e.textGuideLineConfig||{}).showAbove=m||!1,r.buildPath=Bs}}else r&&e.removeTextGuideLine()}(this,function(e,t){t||=`labelLine`;for(var n={normal:e.getModel(t)},r=0;r<_e.length;r++){var i=_e[r];n[i]=e.getModel([i,t])}return n}(i),{stroke:s,opacity:kr(a.get([`lineStyle`,`opacity`]),c,1)})}},t}(u),mu=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`pie`,t.ignoreLabelLineUpdate=!0,t}return X(t,e),t.prototype.render=function(e,t,n,r){var i,a=e.getData(),o=this._data,s=this.group;if(!o&&a.count()>0){for(var c=a.getItemLayout(0),l=1;isNaN(c&&c.startAngle)&&l<a.count();++l)c=a.getItemLayout(l);c&&(i=c.startAngle)}if(this._emptyCircleSector&&s.remove(this._emptyCircleSector),a.count()===0&&e.get(`showEmptyCircle`)){var d=fu(e),f=new u({shape:Lr(d)});f.useStyle(e.getModel(`emptyCircleStyle`).getItemStyle()),this._emptyCircleSector=f,s.add(f)}a.diff(o).add(function(e){var t=new pu(a,e,i);a.setItemGraphicEl(e,t),s.add(t)}).update(function(e,t){var n=o.getItemGraphicEl(t);n.updateData(a,e,i),n.off(`click`),s.add(n),a.setItemGraphicEl(e,n)}).remove(function(t){var n=o.getItemGraphicEl(t);Gt(n,e,t)}).execute(),cu(e),e.get(`animationTypeUpdate`)!==`expansion`&&(this._data=a)},t.prototype.dispose=function(){},t.prototype.containPoint=function(e,t){var n=t.getData().getItemLayout(0);if(n){var r=e[0]-n.cx,i=e[1]-n.cy,a=Math.sqrt(r*r+i*i);return a<=n.r&&a>=n.r0}},t.type=`pie`,t}(cr);function hu(e){e.registerChartView(mu),e.registerSeriesModel(eu),D(`pie`,e.registerAction),e.registerLayout(du),e.registerProcessor({seriesType:`pie`,reset:function(e,t){var n=t.findComponents({mainType:`legend`});if(n&&n.length){var r=e.getData();r.filterSelf(function(e){for(var t=r.getName(e),i=0;i<n.length;i++)if(!n[i].isSelected(t))return!1;return!0})}}}),e.registerProcessor(function(e){return{seriesType:e,reset:function(e,t){var n=e.getData();n.filterSelf(function(e){var t=n.mapDimension(`value`),r=n.get(t,e);return!(_r(r)&&!isNaN(r)&&r<0)})}}}(`pie`))}var gu=function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return X(t,e),t.prototype.getCoordSysModel=function(){return this.getReferringComponents(`grid`,de).models[0]},t.type=`cartesian2dAxis`,t}(Br);hr(gu,Po);var _u={show:!0,z:0,inverse:!1,name:``,nameLocation:`end`,nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:`...`,placeholder:`.`},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:`auto`,onZeroAxisIndex:null,lineStyle:{color:K.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:K.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:K.color.axisSplitLine,width:1,type:`solid`}},splitArea:{show:!1,areaStyle:{color:[K.color.backgroundTint,K.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:K.color.neutral00,borderColor:K.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:`auto`}},vu=Re({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:`auto`,show:`auto`},axisLabel:{interval:`auto`}},_u),yu=Re({boundaryGap:[0,0],axisLine:{show:`auto`},axisTick:{show:`auto`},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:K.color.axisMinorSplitLine,width:1}}},_u),bu={category:vu,value:yu,time:Re({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:`bold`}}},splitLine:{show:!1}},yu),log:Sr({logBase:10},yu)};function xu(e,t,n,r){H(So,function(i,a){var o=Re(Re({},bu[a],!0),r,!0),s=function(e){function n(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t+`Axis.`+a,n}return X(n,e),n.prototype.mergeDefaultAndTheme=function(e,t){var n=Wn(this),r=n?wt(e):{},i=t.getTheme();Re(e,i.get(a+`Axis`)),Re(e,this.getDefaultOption()),e.type=Su(e),n&&Ur(e,r,n)},n.prototype.optionUpdated=function(){this.option.type===`category`&&(this.__ordinalMeta=Ia.createByAxisModel(this))},n.prototype.getCategories=function(e){var t=this.option;if(t.type===`category`)return e?t.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.prototype.updateAxisBreaks=function(e){return{breaks:[]}},n.type=t+`Axis.`+a,n.defaultOption=o,n}(n);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+`Axis`,Su)}function Su(e){return e.type||(e.data?`category`:`value`)}var Cu=function(){function e(e){this.type=`cartesian`,this._dimList=[],this._axes={},this.name=e||``}return e.prototype.getAxis=function(e){return this._axes[e]},e.prototype.getAxes=function(){return J(this._dimList,function(e){return this._axes[e]},this)},e.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Mt(this.getAxes(),function(t){return t.scale.type===e})},e.prototype.addAxis=function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},e}(),wu=[`x`,`y`];function Tu(e){return(e.type===`interval`||e.type===`time`)&&!Ar(e)}var Eu=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=vl,t.dimensions=wu,t}return X(t,e),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis(`x`).scale,t=this.getAxis(`y`).scale;if(Tu(e)&&Tu(t)){var n=Ua(e,null),r=Ua(t,null),i=this.dataToPoint([n[0],r[0]]),a=this.dataToPoint([n[1],r[1]]),o=n[1]-n[0],s=r[1]-r[0];if(o&&s){var c=(a[0]-i[0])/o,l=(a[1]-i[1])/s,u=i[0]-n[0]*c,d=i[1]-r[0]*l,f=this._transform=[c,0,0,l,u,d];this._invTransform=Me([],f)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale(`ordinal`)[0]||this.getAxesByScale(`time`)[0]||this.getAxis(`x`)},t.prototype.containPoint=function(e){var t=this.getAxis(`x`),n=this.getAxis(`y`);return t.contain(t.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,t){var n=this.dataToPoint(e),r=this.dataToPoint(t),i=this.getArea(),a=new pt(n[0],n[1],r[0]-n[0],r[1]-n[1]);return i.intersect(a)},t.prototype.dataToPoint=function(e,t,n){n||=[];var r=e[0],i=e[1];if(this._transform&&r!=null&&isFinite(r)&&i!=null&&isFinite(i))return Ge(n,e,this._transform);var a=this.getAxis(`x`),o=this.getAxis(`y`);return n[0]=a.toGlobalCoord(a.dataToCoord(r,t)),n[1]=o.toGlobalCoord(o.dataToCoord(i,t)),n},t.prototype.clampData=function(e,t){var n=this.getAxis(`x`).scale,r=this.getAxis(`y`).scale,i=n.getExtent(),a=r.getExtent(),o=n.parse(e[0]),s=r.parse(e[1]);return(t||=[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),o),Math.max(i[0],i[1])),t[1]=Math.min(Math.max(Math.min(a[0],a[1]),s),Math.max(a[0],a[1])),t},t.prototype.pointToData=function(e,t,n){if(n||=[],this._invTransform)return Ge(n,e,this._invTransform);var r=this.getAxis(`x`),i=this.getAxis(`y`);return n[0]=r.coordToData(r.toLocalCoord(e[0]),t),n[1]=i.coordToData(i.toLocalCoord(e[1]),t),n},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim===`x`?`y`:`x`)},t.prototype.getArea=function(e){e||=0;var t=this.getAxis(`x`).getGlobalExtent(),n=this.getAxis(`y`).getGlobalExtent(),r=Math.min(t[0],t[1])-e,i=Math.min(n[0],n[1])-e,a=Math.max(t[0],t[1])-r+e,o=Math.max(n[0],n[1])-i+e;return new pt(r,i,a,o)},t}(Cu),Du=[[3,1],[0,2]],Ou=function(){function e(e,t,n){this.type=`grid`,this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=wu,this._initCartesian(e,t,n),this.model=e}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(e,t){var n=this._axesMap;function r(e){for(var t=O(e),n=[],r=t.length-1;r>=0;r--){var i=e[+t[r]];i.__alignTo?n.push(i):cs(i)}H(n,function(e){var t=e,n=e.__alignTo;Ar(t.scale)||Ar(n.scale)||n.scale.getTicks().length<2?cs(e):function(e,t){var n,r,i,a=e.scale,o=e.model,s=as(a,o,o.ecModel,e,null),l=Xa(a),u=Xa(t)?t.intervalStub:t,d=l?a.intervalStub:a,f=a.base,p=u.getTicks(),m=u.getTicks({expandToNicedExtent:!0}),h=p.length-1;if(h===1)n=r=0,i=1;else if(h===2){var g=xt(p[0].value-p[1].value),_=xt(p[1].value-p[2].value);n=r=0,g===_?i=2:(i=1,g<_?n=g/_:r=_/g)}else{var v=u.getConfig().interval;n=(1-(p[0].value-m[0].value)/v)%1,r=(1-(m[h].value-p[h].value)/v)%1,i=h-+!!n-!!r}var y,b,x,S,C,w,T=s.zoomFixMM,E=T[0]||T[1],D=[s.fixMM[0]||E,s.fixMM[1]||E],O=a.getExtent(),A=d.getExtent(),j=no(A,D);function M(e){for(var t=0;t<50&&!e();t++)x=l?x*z(f,2):Qa(x),S=$a(x)}function N(){y=V(w-x*n,S)}function P(){b=V(C+x*r,S)}function F(){w=n?V(y+x*n,S):y}function ee(){C=r?V(b-x*r,S):b}if(D[0]&&D[1]){y=j[0],b=j[1],x=(b-y)/(i+n+r);var I=e.getExtent(),te=xt(I[1]-I[0]);S=Jn([b,y],te,.5/i),F(),ee(),Mr(S)&&(x=V(x,S))}else{var L=j[1]-j[0];x=l?z(sr(L),1):k(L/i,2),S=$a(x),D[0]?(y=j[0],M(function(){if(F(),C=V(w+x*i,S),P(),b>=j[1])return!0})):D[1]?(b=j[1],M(function(){if(ee(),w=V(C-x*i,S),N(),y<=j[0])return!0})):M(function(){w=V(mr(j[0]/x)*x,S),C=V(ge(j[1]/x)*x,S);var e=c((C-w)/x);if(e<=i){var t=i-e,n=void 0,r=s.incl0||l;if(r&&j[0]===0)n=[0,t];else if(r&&j[1]===0)n=[t,0];else{var a=ge(t/2);n=t%2==0?[a,a]:y+b<j[0]+j[1]?[a,a+1]:[a+1,a]}if(w=V(w-x*n[0],S),C=V(C+x*n[1],S),N(),P(),y<=j[0]&&b>=j[1])return!0}})}jo(a,D,A,[y,b],O,{interval:x,intervalCount:i,intervalPrecision:S,niceExtent:[w,C]})}(e,e.__alignTo.scale)})}H(this._axesList,function(e){ns(e,1);var t=e.scale;Za(t)&&t.setSortInfo(e.model.get(`categorySortInfo`))}),r(n.x),r(n.y);var i={};H(n.x,function(e){ku(n,`y`,e,i)}),H(n.y,function(e){ku(n,`x`,e,i)}),this.resize(this.model,t)},e.prototype.resize=function(e,t,n){var r=gt(e,t),i=this._rect=Vr(e.getBoxLayoutParams(),r.refContainer),a=this._axesMap,o=this._coordsList,s=e.get(`containLabel`);if(Mu(a,i),!n){var c=function(e,t,n,r,i){var a=new Gc(Iu);return H(n,function(n){return H(n,function(n){if(ko(n.model)){var o=!r;n.axisBuilder=function(e,t,n,r,i,a){for(var o=ll(e,n),s=!1,c=!1,l=0;l<t.length;l++)qa(t[l].getOtherAxis(n.axis).scale)&&(s=c=!0,n.axis.type===`category`&&n.axis.onBand&&(c=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=c,o.defaultNameMoveOverlap=a,new Zc(n,r,o,i)}(e,t,n.model,i,a,o)}})}),a}(i,o,a,s,t),l=void 0;if(s)l=Pu(i.clone(),`axisLabel`,null,i,a,c,r);else{var u=function(e,t,n){var r,i=e.get(`outerBoundsMode`,!0);i===`same`?r=t.clone():i!=null&&i!==`auto`||(r=Vr(e.get(`outerBounds`,!0)||gl,n.refContainer));var a,o=e.get(`outerBoundsContain`,!0);a=o==null||o===`auto`||er([`all`,`axisLabel`],o)<0?`all`:o;var s=[dr(R(e.get(`outerBoundsClampWidth`,!0),_l[0]),t.width),dr(R(e.get(`outerBoundsClampHeight`,!0),_l[1]),t.height)];return{outerBoundsRect:r,parsedOuterBoundsContain:a,outerBoundsClamp:s}}(e,i,r),d=u.outerBoundsRect,f=u.parsedOuterBoundsContain,p=u.outerBoundsClamp;d&&(l=Pu(d,f,p,i,a,c,r))}Fu(i,a,ps,null,l,r),H(this._coordsList,function(e){e.calcAffineTransform()})}},e.prototype.getAxis=function(e,t){var n=this._axesMap[e];if(n!=null)return n[t||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(e,t){if(e!=null&&t!=null){var n=`x`+e+`y`+t;return this._coordsMap[n]}_(e)&&(t=e.yAxisIndex,e=e.xAxisIndex);for(var r=0,i=this._coordsList;r<i.length;r++)if(i[r].getAxis(`x`).index===e||i[r].getAxis(`y`).index===t)return i[r]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.dataToPoint(n):r.axis?r.axis.toGlobalCoord(r.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(e,t,n){var r=this._findConvertTarget(t);return r.cartesian?r.cartesian.pointToData(n):r.axis?r.axis.coordToData(r.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(e){var t,n,r=e.seriesModel,i=e.xAxisModel||r&&r.getReferringComponents(`xAxis`,de).models[0],a=e.yAxisModel||r&&r.getReferringComponents(`yAxis`,de).models[0],o=e.gridModel,s=this._coordsList;return r?(t=r.coordinateSystem,er(s,t)<0&&(t=null)):i&&a?t=this.getCartesian(i.componentIndex,a.componentIndex):i?n=this.getAxis(`x`,i.componentIndex):a?n=this.getAxis(`y`,a.componentIndex):o&&o.coordinateSystem===this&&(t=this._coordsList[0]),{cartesian:t,axis:n}},e.prototype.containPoint=function(e){var t=this._coordsList[0];if(t)return t.containPoint(e)},e.prototype._initCartesian=function(e,t,n){var r=this,i=this,a={left:!1,right:!1,top:!1,bottom:!1},o={x:{},y:{}},s={x:0,y:0};if(t.eachComponent(`xAxis`,c(`x`),this),t.eachComponent(`yAxis`,c(`y`),this),!s.x||!s.y)return this._axesMap={},void(this._axesList=[]);function c(t){return function(n,r){if(function(e,t){return e.getCoordSysModel()===t}(n,e)){var c=n.get(`position`);t===`x`?c!==`top`&&c!==`bottom`&&(c=a.bottom?`top`:`bottom`):c!==`left`&&c!==`right`&&(c=a.left?`right`:`left`),a[c]=!0;var u,d=((u=n.get(`type`))!=null&&(ee(So,u)||Pa.getClass(u))||(u=`value`),u),f=new Rc(t,function(e,t,n){var r;switch(l()&&(r=Ao(e,t,n)),t){case`category`:return new ao({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:Ht()});case`time`:return new co({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get(`useUTC`),breakOption:r});case`log`:return new vo({logBase:e.get(`logBase`),breakOption:r});case`value`:return new so({breakOption:r});default:return new((Pa.getClass(t))||so)({})}}(n,d,!0),[0,0],d,c);f.onBand=No(f.scale,n),f.inverse=n.get(`inverse`),n.axis=f,f.model=n,f.grid=i,f.index=r,i._axesList.push(f),o[t][r]=f,s[t]++}}}this._axesMap=o,H(o.x,function(t,n){H(o.y,function(i,a){var o=`x`+n+`y`+a,s=new Eu(o);s.master=r,s.model=e,r._coordsMap[o]=s,r._coordsList.push(s),s.addAxis(t),s.addAxis(i)})}),ju(o.x),ju(o.y)},e.prototype.getTooltipAxes=function(e){var t=[],n=[];return H(this.getCartesians(),function(r){var i=e!=null&&e!==`auto`?r.getAxis(e):r.getBaseAxis(),a=r.getOtherAxis(i);er(t,i)<0&&t.push(i),er(n,a)<0&&n.push(a)}),{baseAxes:t,otherAxes:n}},e.create=function(t,n){var r=[];return t.eachComponent(`grid`,function(i,a){var o=new e(i,t,n);o.name=`grid_`+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o),H(o._axesList,function(t){var n=t,r=e.dimIdxMap;ts(n).dimIdxInCoord=r.get(n.dim)})}),t.eachSeries(function(e){var t,n;Cn({targetModel:e,coordSysType:vl,coordSysProvider:function(){var r=function(e){var t={xAxisModel:null,yAxisModel:null};return H(t,function(n,r){var i=r.replace(/Model$/,``);t[r]=e.getReferringComponents(i,de).models[0]}),t}(e),i=r.xAxisModel,a=r.yAxisModel;return t=i.axis,n=a.axis,i.getCoordSysModel().coordinateSystem.getCartesian(i.componentIndex,a.componentIndex)}}),t&&n&&(qo(t,e,vl),qo(n,e,vl))},this),r},e.dimensions=wu,e.dimIdxMap=ua(wu),e}();function ku(e,t,n,r){n.getAxesOnZeroOf=function(){return i?[i]:[]};var i,a=e[t],o=n.model,s=o.get([`axisLine`,`onZero`]),c=o.get([`axisLine`,`onZeroAxisIndex`]);if(s){if(c!=null)Au(s,a[c])&&(i=a[c]);else for(var l in a)if(ee(a,l)&&Au(s,a[l])&&!r[u(a[l])]){i=a[l];break}i&&(r[u(i)]=!0)}function u(e){return e.dim+`_`+e.index}}function Au(e,t){if(!t)return!1;var n=function(e,t,n){var r=n?Ua(e,null):e.getExtentUnsafe(0,null),i=r[0],a=r[1];return nr(i,a)?i===t||a===t?2:i<t&&a>t?1:3:3}(t.scale,0,!1),r=t&&t.type!==`category`&&t.type!==`time`&&n!==3;return r&&e===`auto`&&function(e){return Co(e).noOnMyZero}(t)&&(r=!1),r}function ju(e){for(var t,n=O(e),r=[],i=n.length-1;i>=0;i--){var a=e[+n[i]];qa(a.scale)&&Ao(a.model,a.type,!0)==null&&(a.model.get(`alignTicks`)&&a.model.get(`interval`)==null?r.push(a):t=a)}t||=r.pop(),t&&H(r,function(e){e.__alignTo=t})}function Mu(e,t){H(e.x,function(e){return Nu(e,t.x,t.width)}),H(e.y,function(e){return Nu(e,t.y,t.height)})}function Nu(e,t,n){var r=[0,n],i=+!!e.inverse;e.setExtent(r[i],r[1-i]),function(e,t){var n=e.getExtent(),r=n[0]+n[1];e.toGlobalCoord=e.dim===`x`?function(e){return e+t}:function(e){return r-e+t},e.toLocalCoord=e.dim===`x`?function(e){return e-t}:function(e){return r-e+t}}(e,t)}function Pu(e,t,n,r,i,a,o){Fu(r,i,fs,t,!1,o);var s=[0,0,0,0];l(0),l(1),u(r,0,NaN),u(r,1,NaN);var c=Or(s,function(e){return e>0})==null;return Dn(r,s,!0,!0,n),Mu(i,r),c;function l(e){H(i[fr[e]],function(t){if(ko(t.model)){var n=a.ensureRecord(t.model),r=n.labelInfoList;if(r)for(var i=0;i<r.length;i++){var o=r[i],s=t.scale.normalize(Mo(t.scale,Uc(o.label).labelInfo.tick));s=e===1?1-s:s,u(o.rect,e,s),u(o.rect,1-e,NaN)}var c=n.nameLayout;c&&(s=Oo(n.nameLocation)?.5:NaN,u(c.rect,e,s),u(c.rect,1-e,NaN))}})}function u(t,n,r){var i=e[fr[n]]-t[fr[n]],a=t[Wt[n]]+t[fr[n]]-(e[Wt[n]]+e[fr[n]]);i=d(i,1-r),a=d(a,r);var o=Du[n][0],c=Du[n][1];s[o]=z(s[o],i),s[c]=z(s[c],a)}function d(e,t){return e>0&&!ve(t)&&t>1e-4&&(e/=t),e}}function Fu(e,t,n,r,i,a){var o=n===ps;H(t,function(t){return H(t,function(t){ko(t.model)&&(function(e,t,n){var r=ll(t,n);e.updateCfg(r)}(t.axisBuilder,e,t.model),t.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};function c(t){s[fr[1-t]]=e[Wt[t]]<=.5*a.refContainer[Wt[t]]?0:1-t==1?2:1}c(0),c(1),H(t,function(e,t){return H(e,function(e){ko(e.model)&&((r===`all`||o)&&e.axisBuilder.build({axisName:!0},{nameMarginLevel:s[t]}),o&&e.axisBuilder.build({axisLine:!0}))})})}var Iu=function(e,t,n,r,i,a){var o=n.axis.dim===`x`?`y`:`x`;Jc(e,0,0,r,i,a),Oo(e.nameLocation)||H(t.recordMap[o],function(e){e&&e.labelInfoList&&e.dirVec&&Xc(e.labelInfoList,e.dirVec,r,i)})};function Lu(e,t){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(e,t,n){var r=t.getComponent(`tooltip`),i=t.getComponent(`axisPointer`),a=i.get(`link`,!0)||[],o=[];H(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var s=Vu(n.model),c=e.coordSysAxesInfo[s]={};e.coordSysMap[s]=n;var l=n.model.getModel(`tooltip`,r);if(H(n.getAxes(),Y(p,!1,null)),n.getTooltipAxes&&r&&l.get(`show`)){var u=l.get(`trigger`)===`axis`,d=l.get([`axisPointer`,`type`])===`cross`,f=n.getTooltipAxes(l.get([`axisPointer`,`axis`]));(u||d)&&H(f.baseAxes,Y(p,!d||`cross`,u)),d&&H(f.otherAxes,Y(p,`cross`,!1))}}function p(r,s,u){var d=u.model.getModel(`axisPointer`,i),f=d.get(`show`);if(f&&(f!==`auto`||r||Bu(d))){s??=d.get(`triggerTooltip`),d=r?function(e,t,n,r,i,a){var o=t.getModel(`axisPointer`),s={};H([`type`,`snap`,`lineStyle`,`shadowStyle`,`label`,`animation`,`animationDurationUpdate`,`animationEasingUpdate`,`z`],function(e){s[e]=Lr(o.get(e))}),s.snap=e.type!==`category`&&!!a,o.get(`type`)===`cross`&&(s.type=`line`);var c=s.label||={};if(c.show??=!1,i===`cross`){var l=o.get([`label`,`show`]);if(c.show=l==null||l,!a){var u=s.lineStyle=o.get(`crossStyle`);u&&Sr(c,u.textStyle)}}return e.model.getModel(`axisPointer`,new Ze(s,n,r))}(u,l,i,t,r,s):d;var p=d.get(`snap`),m=d.get(`triggerEmphasis`),h=Vu(u.model),g=s||p||u.type===`category`,_=e.axesInfo[h]={key:h,axis:u,coordSys:n,axisPointerModel:d,triggerTooltip:s,triggerEmphasis:m,involveSeries:g,snap:p,useHandle:Bu(d),seriesModels:[],linkGroup:null};c[h]=_,e.seriesInvolved=e.seriesInvolved||g;var v=function(e,t){for(var n=t.model,r=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(Ru(a[r+`AxisId`],n.id)||Ru(a[r+`AxisIndex`],n.componentIndex)||Ru(a[r+`AxisName`],n.name))return i}}(a,u);if(v!=null){var y=o[v]||(o[v]={axesInfo:{}});y.axesInfo[h]=_,y.mapper=a[v].mapper,_.linkGroup=y}}}})}(n,e,t),n.seriesInvolved&&function(e,t){t.eachSeries(function(t){var n=t.coordinateSystem,r=t.get([`tooltip`,`trigger`],!0),i=t.get([`tooltip`,`show`],!0);n&&n.model&&r!==`none`&&!1!==r&&r!==`item`&&!1!==i&&!1!==t.get([`axisPointer`,`show`],!0)&&H(e.coordSysAxesInfo[Vu(n.model)],function(e){var r=e.axis;n.getAxis(r.dim)===r&&(e.seriesModels.push(t),e.seriesDataCount??=0,e.seriesDataCount+=t.getData().count())})})}(n,e),n}function Ru(e,t){return e===`all`||q(e)&&er(e,t)>=0||e===t}function zu(e){var t=(e.ecModel.getComponent(`axisPointer`)||{}).coordSysAxesInfo;return t&&t.axesInfo[Vu(e)]}function Bu(e){return!!e.get([`handle`,`show`])}function Vu(e){return e.type+`||`+e.id}var Hu={},Uu=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return X(t,e),t.prototype.render=function(t,n,r,i){this.axisPointerClass&&function(e){var t=zu(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,i=n.option,a=n.get(`status`),o=n.get(`value`);o!=null&&(o=r.parse(o));var s=Bu(n);a??(i.status=s?`show`:`hide`);var c=r.getExtent();(o==null||o>c[1])&&(o=c[1]),o<c[0]&&(o=c[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?`hide`:`show`)}}(t),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(t,r,!0)},t.prototype.updateAxisPointer=function(e,t,n,r){this._doUpdateAxisPointerClass(e,n,!1)},t.prototype.remove=function(e,t){var n=this._axisPointer;n&&n.remove(t)},t.prototype.dispose=function(t,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,n,r){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var a=function(e){var t=zu(e);return t&&t.axisPointerModel}(e);a?(this._axisPointer||=new i).render(e,a,n,r):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,t){Hu[e]=t},t.getAxisPointerClass=function(e){return e&&Hu[e]},t.type=`axis`,t}(p),Wu=I(),Gu=[`splitArea`,`splitLine`,`minorSplitLine`,`breakArea`],Ku=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.axisPointerClass=`CartesianAxisPointer`,n}return X(t,e),t.prototype.render=function(t,n,r,i){this.group.removeAll();var a=this._axisGroup;this._axisGroup=new le,this.group.add(this._axisGroup),ko(t)&&(this._axisGroup.add(t.axis.axisBuilder.group),H(Gu,function(e){t.get([e,`show`])&&qu[e](this,this._axisGroup,t,t.getCoordSysModel(),r)},this),i&&i.type===`changeAxisOrder`&&i.isInitSort||_n(a,this._axisGroup,t),e.prototype.render.call(this,t,n,r,i))},t.prototype.remove=function(){Wu(this).splitAreaColors=null},t.type=`cartesianAxis`,t}(Uu),qu={splitLine:function(e,t,n,r,i){var a=n.axis;if(!a.scale.isBlank()){var o=n.getModel(`splitLine`),s=o.getModel(`lineStyle`),c=s.get(`color`),l=!1!==o.get(`showMinLine`),u=!1!==o.get(`showMaxLine`);c=q(c)?c:[c];for(var d=r.coordinateSystem.getRect(),f=a.isHorizontal(),p=0,m=a.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`}),h=[],g=[],_=s.getLineStyle(),v=0;v<m.length;v++){var y=a.toGlobalCoord(m[v].coord);if((v!==0||l)&&(v!==m.length-1||u)){var b=m[v].tickValue;f?(h[0]=y,h[1]=d.y,g[0]=y,g[1]=d.y+d.height):(h[0]=d.x,h[1]=y,g[0]=d.x+d.width,g[1]=y);var x=p++%c.length,S=new It({anid:b==null?null:`line_`+b,autoBatch:!0,shape:{x1:h[0],y1:h[1],x2:g[0],y2:g[1]},style:Sr({stroke:c[x]},_),silent:!0});Dr(S.shape,_.lineWidth),t.add(S)}}}},minorSplitLine:function(e,t,n,r,i){var a=n.axis,o=n.getModel(`minorSplitLine`).getModel(`lineStyle`),s=r.coordinateSystem.getRect(),c=a.isHorizontal(),l=a.getMinorTicksCoords();if(l.length)for(var u=[],d=[],f=o.getLineStyle(),p=0;p<l.length;p++)for(var m=0;m<l[p].length;m++){var h=a.toGlobalCoord(l[p][m].coord);c?(u[0]=h,u[1]=s.y,d[0]=h,d[1]=s.y+s.height):(u[0]=s.x,u[1]=h,d[0]=s.x+s.width,d[1]=h);var g=new It({anid:`minor_line_`+l[p][m].tickValue,autoBatch:!0,shape:{x1:u[0],y1:u[1],x2:d[0],y2:d[1]},style:f,silent:!0});Dr(g.shape,f.lineWidth),t.add(g)}},splitArea:function(e,t,n,r,i){(function(e,t,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel(`splitArea`),s=o.getModel(`areaStyle`),c=s.get(`color`),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:o,breakTicks:`none`,pruneByBreak:`preserve_extent_bound`});if(u.length){var d=c.length,f=Wu(e).splitAreaColors,p=a(),m=0;if(f)for(var g=0;g<u.length;g++){var _=f.get(u[g].tickValue);if(_!=null){m=(_+(d-1)*g)%d;break}}var v=i.toGlobalCoord(u[0].coord),y=s.getAreaStyle();for(c=q(c)?c:[c],g=1;g<u.length;g++){var b=i.toGlobalCoord(u[g].coord),x=void 0,S=void 0,C=void 0,w=void 0;i.isHorizontal()?(x=v,S=l.y,C=b-x,w=l.height,v=x+C):(x=l.x,S=v,C=l.width,v=S+(w=b-S));var T=u[g-1].tickValue;T!=null&&p.set(T,m),t.add(new h({anid:T==null?null:`area_`+T,shape:{x,y:S,width:C,height:w},style:Sr({fill:c[m]},y),autoBatch:!0,silent:!0})),m=(m+1)%d}Wu(e).splitAreaColors=p}}})(e,t,n,r)},breakArea:function(e,t,n,r,i){n.axis.scale}},Ju=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return X(t,e),t.type=`xAxis`,t}(Ku),Yu=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=Ju.type,t}return X(t,e),t.type=`yAxis`,t}(Ku),Xu=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`grid`,t}return X(t,e),t.prototype.render=function(e,t){this.group.removeAll(),e.get(`show`)&&this.group.add(new h({shape:e.coordinateSystem.getRect(),style:Sr({fill:e.get(`backgroundColor`)},e.getItemStyle()),silent:!0,z2:-1}))},t.type=`grid`,t}(p),Zu={offset:0};function Qu(e){e.registerComponentView(Xu),e.registerComponentModel(yl),e.registerCoordinateSystem(`cartesian2d`,Ou),xu(e,`x`,gu,Zu),xu(e,`y`,gu,Zu),e.registerComponentView(Ju),e.registerComponentView(Yu),e.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}var $u=I(),ed=Lr,td=m,nd=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(e,t,n,r){var i=t.get(`value`),a=t.get(`status`);if(this._axisModel=e,this._axisPointerModel=t,this._api=n,r||this._lastValue!==i||this._lastStatus!==a){this._lastValue=i,this._lastStatus=a;var o=this._group,s=this._handle;if(!a||a===`hide`)return o&&o.hide(),void(s&&s.hide());o&&o.show(),s&&s.show();var c={};this.makeElOption(c,i,e,t,n);var l=c.graphicKey;l!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=l;var u=this._moveAnimation=this.determineAnimation(e,t);if(o){var d=Y(rd,t,u);this.updatePointerEl(o,c,d),this.updateLabelEl(o,c,d,t)}else o=this._group=new le,this.createPointerEl(o,c,e,t),this.createLabelEl(o,c,e,t),n.getZr().add(o);sd(o,t,!0),this._renderHandle(i)}},e.prototype.remove=function(e){this.clear(e)},e.prototype.dispose=function(e){this.clear(e)},e.prototype.determineAnimation=function(e,t){var n=t.get(`animation`),r=e.axis,i=r.type===`category`,a=t.get(`snap`);if(!a&&!i)return!1;if(n===`auto`||n==null){var o=this.animationThreshold;if(i&&Ds(r).w>o)return!0;if(a){var s=zu(e).seriesDataCount,c=r.getExtent();return Math.abs(c[0]-c[1])/s>o}return!1}return!0===n},e.prototype.makeElOption=function(e,t,n,r,i){},e.prototype.createPointerEl=function(e,t,n,r){var i=t.pointer;if(i){var a=$u(e).pointerEl=new he[i.type](ed(t.pointer));e.add(a)}},e.prototype.createLabelEl=function(e,t,n,r){if(t.label){var i=$u(e).labelEl=new w(ed(t.label));e.add(i),ad(i,r)}},e.prototype.updatePointerEl=function(e,t,n){var r=$u(e).pointerEl;r&&t.pointer&&(r.setStyle(t.pointer.style),n(r,{shape:t.pointer.shape}))},e.prototype.updateLabelEl=function(e,t,n,r){var i=$u(e).labelEl;i&&(i.setStyle(t.label.style),n(i,{x:t.label.x,y:t.label.y}),ad(i,r))},e.prototype._renderHandle=function(e){if(!this._dragging&&this.updateHandleTransform){var t,n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,a=n.getModel(`handle`),o=n.get(`status`);if(!a.get(`show`)||!o||o===`hide`)return i&&r.remove(i),void(this._handle=null);this._handle||(t=!0,i=this._handle=Tt(a.get(`icon`),{cursor:`move`,draggable:!0,onmousemove:function(e){ye(e.event)},onmousedown:td(this._onHandleDragMove,this,0,0),drift:td(this._onHandleDragMove,this),ondragend:td(this._onHandleDragEnd,this)}),r.add(i)),sd(i,n,!1),i.setStyle(a.getItemStyle(null,[`color`,`borderColor`,`borderWidth`,`opacity`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`]));var s=a.get(`size`);q(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,P(this,`_doDispatchAxisPointer`,a.get(`throttle`)||0,`fixRate`),this._moveHandleToValue(e,t)}},e.prototype._moveHandleToValue=function(e,t){rd(this._axisPointerModel,!t&&this._moveAnimation,this._handle,od(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(e,t){var n=this._handle;if(n){this._dragging=!0;var r=this.updateHandleTransform(od(n),[e,t],this._axisModel,this._axisPointerModel);this._payloadInfo=r,n.stopAnimation(),n.attr(od(r)),$u(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,t=this._axisModel;this._api.dispatchAction({type:`updateAxisPointer`,x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:t.axis.dim,axisIndex:t.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get(`value`);this._moveHandleToValue(e),this._api.dispatchAction({type:`hideTip`})}},e.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var t=e.getZr(),n=this._group,r=this._handle;t&&n&&(this._lastGraphicKey=null,n&&t.remove(n),r&&t.remove(r),this._group=null,this._handle=null,this._payloadInfo=null),In(this,`_doDispatchAxisPointer`)},e.prototype.doClear=function(){},e.prototype.buildLabel=function(e,t,n){return{x:e[n||=0],y:e[1-n],width:t[n],height:t[1-n]}},e}();function rd(e,t,n,r){id($u(n).lastProp,r)||($u(n).lastProp=r,t?b(n,r,e):(n.stopAnimation(),n.attr(r)))}function id(e,t){if(_(e)&&_(t)){var n=!0;return H(t,function(t,r){n&&=id(e[r],t)}),!!n}return e===t}function ad(e,t){e[t.get([`label`,`show`])?`show`:`hide`]()}function od(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function sd(e,t,n){var r=t.get(`z`),i=t.get(`zlevel`);e&&e.traverse(function(e){e.type!==`group`&&(r!=null&&(e.z=r),i!=null&&(e.zlevel=i),e.silent=n)})}function cd(e,t,n,r,i){var a=ld(n.get(`value`),t.axis,t.ecModel,n.get(`seriesDataIndices`),{precision:n.get([`label`,`precision`]),formatter:n.get([`label`,`formatter`])}),o=n.getModel(`label`),s=tt(o.get(`padding`)||0),c=o.getFont(),l=Fe(a,c),u=i.position,d=l.width+s[1]+s[3],f=l.height+s[0]+s[2],p=i.align;p===`right`&&(u[0]-=d),p===`center`&&(u[0]-=d/2);var m=i.verticalAlign;m===`bottom`&&(u[1]-=f),m===`middle`&&(u[1]-=f/2),function(e,t,n,r){var i=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}(u,d,f,r);var h=o.get(`backgroundColor`);h&&h!==`auto`||(h=t.get([`axisLine`,`lineStyle`,`color`])),e.label={x:u[0],y:u[1],style:zr(o,{text:a,font:c,fill:o.getTextColor(),padding:s,backgroundColor:h}),z2:10}}function ld(e,t,n,r,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:To(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};H(r,function(e){var t=n.getSeriesByIndex(e.seriesIndex),r=e.dataIndexInside,i=t&&t.getDataParams(r);i&&s.seriesData.push(i)}),W(o)?a=o.replace(`{value}`,a):S(o)&&(a=o(s))}return a}function ud(e,t,n){var r=s();return Ve(r,r,n.rotation),Qe(r,r,n.position),jn([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}var dd=function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return X(t,e),t.prototype.makeElOption=function(e,t,n,r,i){var a=n.axis,o=a.grid,s=r.get(`type`),c=a.getGlobalExtent(),l=fd(o,a).getOtherAxis(a).getGlobalExtent(),u=a.toGlobalCoord(a.dataToCoord(t,!0));if(s&&s!==`none`){var d=function(e){var t,n=e.get(`type`),r=e.getModel(n+`Style`);return n===`line`?(t=r.getLineStyle()).fill=null:n===`shadow`&&((t=r.getAreaStyle()).stroke=null),t}(r),f=pd[s](a,u,c,l,r.get(`seriesDataIndices`),r.ecModel);f.style=d,e.graphicKey=f.type,e.pointer=f}(function(e,t,n,r,i,a){var o=Zc.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get([`label`,`margin`]),cd(t,r,i,a,{position:ud(r.axis,e,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})})(t,e,ll(o.getRect(),n),n,r,i)},t.prototype.getHandleTransform=function(e,t,n){var r=ll(t.axis.grid.getRect(),t,{labelInside:!1});r.labelMargin=n.get([`handle`,`margin`]);var i=ud(t.axis,e,r);return{x:i[0],y:i[1],rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,t,n,r){var i=n.axis,a=i.grid,o=i.getGlobalExtent(!0),s=fd(a,i).getOtherAxis(i).getGlobalExtent(),c=i.dim===`x`?0:1,l=[e.x,e.y];l[c]+=t[c],l[c]=gr(o[1],l[c]),l[c]=z(o[0],l[c]);var u=(s[1]+s[0])/2,d=[u,u];return d[c]=l[c],{x:l[0],y:l[1],rotation:e.rotation,cursorPoint:d,tooltipOption:[{verticalAlign:`middle`},{align:`center`}][c]}},t}(nd);function fd(e,t){var n={};return n[t.dim+`AxisIndex`]=t.index,e.getCartesian(n)}var pd={line:function(e,t,n,r){return{type:`Line`,subPixelOptimize:!0,shape:(i=[t,r[0]],a=[t,r[1]],o=md(e),{x1:i[o||=0],y1:i[1-o],x2:a[o],y2:a[1-o]})};var i,a,o},shadow:function(e,t,n,r,i,a){var o,s,c,l=function(e,t,n){return Ds(e,{fromStat:{sers:J(t,function(e){return n.getSeriesByIndex(e.seriesIndex)})},min:1}).w}(e,i,a),u=r[1]-r[0],d=function(e,t,n){return[z(gr(t[0],t[1]),e-n/2),gr(e+n/2,z(t[0],t[1]))]}(t,n,l),f=d[0],p=d[1];return{type:`Rect`,shape:(o=[f,r[0]],s=[p-f,u],c=md(e),{x:o[c||=0],y:o[1-c],width:s[c],height:s[1-c]})}}};function md(e){return e.dim===`x`?0:1}var hd=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return X(t,e),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:K.color.border,width:1,type:`dashed`},shadowStyle:{color:K.color.shadowTint},label:{show:!0,formatter:null,precision:`auto`,margin:3,color:K.color.neutral00,padding:[5,7,5,7],backgroundColor:K.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:K.color.accent40,throttle:40}},t}(Br),gd=I(),_d=H;function vd(e,t,n){if(!ot.node){var r=t.getZr();gd(r).records||(gd(r).records={}),function(e,t){if(gd(e).initialized)return;function n(n,r){e.on(n,function(n){var i=function(e){var t={showTip:[],hideTip:[]},n=function(r){var i=t[r.type];i?i.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}(t);_d(gd(e).records,function(e){e&&r(e,n,i.dispatchAction)}),function(e,t){var n,r=e.showTip.length,i=e.hideTip.length;r?n=e.showTip[r-1]:i&&(n=e.hideTip[i-1]),n&&(n.dispatchAction=null,t.dispatchAction(n))}(i.pendings,t)})}gd(e).initialized=!0,n(`click`,Y(bd,`click`)),n(`mousemove`,Y(bd,`mousemove`)),n(`mousewheel`,Y(bd,`mousewheel`)),n(`globalout`,yd)}(r,t),(gd(r).records[e]||(gd(r).records[e]={})).handler=n}}function yd(e,t,n){e.handler(`leave`,null,n)}function bd(e,t,n,r){t.handler(e,n,r)}function xd(e,t){if(!ot.node){var n=t.getZr();(gd(n).records||{})[e]&&(gd(n).records[e]=null)}}var Sd=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return X(t,e),t.prototype.render=function(e,t,n){var r=t.getComponent(`tooltip`),i=e.get(`triggerOn`)||r&&r.get(`triggerOn`)||`mousemove|click|mousewheel`;vd(`axisPointer`,n,function(e,t,n){i!==`none`&&(e===`leave`||i.indexOf(e)>=0)&&n({type:`updateAxisPointer`,currTrigger:e,x:t&&t.offsetX,y:t&&t.offsetY})})},t.prototype.remove=function(e,t){xd(`axisPointer`,t)},t.prototype.dispose=function(e,t){xd(`axisPointer`,t)},t.type=`axisPointer`,t}(p);function Cd(e,t){var n,r=[],i=e.seriesIndex;if(i==null||!(n=t.getSeriesByIndex(i)))return{point:[]};var a=n.getData(),o=N(a,e);if(o==null||o<0||q(o))return{point:[]};var s=a.getItemGraphicEl(o),c=n.coordinateSystem;if(n.getTooltipPosition)r=n.getTooltipPosition(o)||[];else if(c&&c.dataToPoint){if(e.isStacked){var l=c.getBaseAxis(),u=c.getOtherAxis(l).dim,d=l.dim,f=+(u===`x`||u===`radius`),p=a.mapDimension(d),m=[];m[f]=a.get(p,o),m[1-f]=a.get(a.getCalculationInfo(`stackResultDimension`),o),r=c.dataToPoint(m)||[]}else r=c.dataToPoint(a.getValues(J(c.dimensions,function(e){return a.mapDimension(e)}),o))||[]}else if(s){var h=s.getBoundingRect().clone();h.applyTransform(s.transform),r=[h.x+h.width/2,h.y+h.height/2]}return{point:r,el:s}}var wd=I();function Td(e,t,n){var r=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||m(n.dispatchAction,n),s=t.getComponent(`axisPointer`).coordSysAxesInfo;if(s){Ad(i)&&(i=Cd({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=Ad(i),l=a.axesInfo,u=s.axesInfo,d=r===`leave`||Ad(i),f={},p={},h={list:[],map:{}},g={showPointer:Y(Dd,p),showTooltip:Y(Od,h)};H(s.coordSysMap,function(e,t){var n=c||e.containPoint(i);H(s.coordSysAxesInfo[t],function(e,t){var r=e.axis,a=function(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}(l,e);if(!d&&n&&(!l||a)){var o=a&&a.value;o!=null||c||(o=r.pointToData(i)),o!=null&&Ed(e,o,g,!1,f)}})});var _={};return H(u,function(e,t){var n=e.linkGroup;n&&!p[t]&&H(n.axesInfo,function(t,r){var i=p[r];if(t!==e&&i){var a=i.value;n.mapper&&(a=e.axis.scale.parse(n.mapper(a,kd(t),kd(e)))),_[e.key]=a}})}),H(_,function(e,t){Ed(u[t],e,g,!0,f)}),function(e,t,n){var r=n.axesInfo=[];H(t,function(t,n){var i=t.axisPointerModel.option,a=e[n];a?(!t.useHandle&&(i.status=`show`),i.value=a.value,i.seriesDataIndices=(a.payloadBatch||[]).slice()):!t.useHandle&&(i.status=`hide`),i.status===`show`&&r.push({axisDim:t.axis.dim,axisIndex:t.axis.model.componentIndex,value:i.value})})}(p,u,f),function(e,t,n,r){if(Ad(t)||!e.list.length)return void r({type:`hideTip`});var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:`showTip`,escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}(h,i,e,o),function(e,t,n){var r=n.getZr(),i=`axisPointerLastHighlights`,a=wd(r)[i]||{},o=wd(r)[i]={};H(e,function(e,t){var n=e.axisPointerModel.option;n.status===`show`&&e.triggerEmphasis&&H(n.seriesDataIndices,function(e){o[e.seriesIndex+`|`+e.dataIndex]=e})});var s=[],c=[];function l(e){return{seriesIndex:e.seriesIndex,dataIndex:e.dataIndex}}H(a,function(e,t){!o[t]&&c.push(l(e))}),H(o,function(e,t){!a[t]&&s.push(l(e))}),c.length&&n.dispatchAction({type:`downplay`,escapeConnect:!0,notBlur:!0,batch:c}),s.length&&n.dispatchAction({type:`highlight`,escapeConnect:!0,notBlur:!0,batch:s})}(u,0,n),f}}function Ed(e,t,n,r,i){var a=e.axis;if(!a.scale.isBlank()&&a.containData(t)){if(e.involveSeries){var o=function(e,t){var n=t.axis,r=n.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return H(t.seriesModels,function(t,c){var l,u,d=t.getData().mapDimensionsAll(r);if(t.getAxisTooltipData){var f=t.getAxisTooltipData(d,e,n);u=f.dataIndices,l=f.nestestValue}else{if(!(u=t.indicesOfNearest(r,d[0],e,n.type===`category`?.5:null)).length)return;l=t.getData().get(d[0],u[0])}if(Mr(l)){var p=e-l,m=Math.abs(p);m<=o&&((m<o||p>=0&&s<0)&&(o=m,s=p,i=l,a.length=0),H(u,function(e){a.push({seriesIndex:t.seriesIndex,dataIndexInside:e,dataIndex:t.getData().getRawIndex(e)})}))}}),{payloadBatch:a,snapToValue:i}}(t,e),s=o.payloadBatch,c=o.snapToValue;s[0]&&i.seriesIndex==null&&B(i,s[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,s),n.showTooltip(e,o,c)}else n.showPointer(e,t)}}function Dd(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function Od(e,t,n,r){var i=n.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(t.triggerTooltip&&i.length){var c=t.coordSys.model,l=Vu(c),u=e.map[l];u||(u=e.map[l]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(u)),u.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get([`label`,`precision`]),formatter:s.get([`label`,`formatter`])},seriesDataIndices:i.slice()})}}function kd(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+`AxisIndex`]=t.componentIndex,n.axisName=n[r+`AxisName`]=t.name,n.axisId=n[r+`AxisId`]=t.id,n}function Ad(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function jd(e){Uu.registerAxisPointerClass(`CartesianAxisPointer`,dd),e.registerComponentModel(hd),e.registerComponentView(Sd),e.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var t=e.axisPointer.link;t&&!q(t)&&(e.axisPointer.link=[t])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(e,t){e.getComponent(`axisPointer`).coordSysAxesInfo=Lu(e,t)}}),e.registerAction({type:`updateAxisPointer`,event:`updateAxisPointer`,update:`:updateAxisPointer`},Td)}function Md(e){jr(Qu),jr(jd)}var Nd=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return X(t,e),t.type=`tooltip`,t.dependencies=[`axisPointer`],t.defaultOption={z:60,show:!0,showContent:!0,trigger:`item`,triggerOn:`mousemove|click|mousewheel`,alwaysShowContent:!1,renderMode:`auto`,confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:K.color.neutral00,shadowBlur:10,shadowColor:`rgba(0, 0, 0, .2)`,shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:K.color.border,padding:null,extraCssText:``,axisPointer:{type:`line`,axis:`auto`,animation:`auto`,animationDurationUpdate:200,animationEasingUpdate:`exponentialOut`,crossStyle:{color:K.color.borderShade,width:1,type:`dashed`,textStyle:{}}},textStyle:{color:K.color.tertiary,fontSize:14}},t}(Br);function Pd(e){var t=e.get(`confine`);return t==null?e.get(`renderMode`)===`richText`:!!t}function Fd(e){if(ot.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n<r;n++)if(e[n]in t)return e[n]}}var Id=Fd([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]);function Ld(e,t){if(!e)return t;t=Qn(t,!0);var n=e.indexOf(t);return(e=n===-1?t:`-`+e.slice(0,n)+`-`+t).toLowerCase()}var Rd=Ld(Fd([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]),`transition`),zd=Ld(Id,`transform`),Bd=`position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;`+(ot.transform3dSupported?`will-change:transform;`:``);function Vd(e,t,n){var r=e.toFixed(0)+`px`,i=t.toFixed(0)+`px`;if(!ot.transformSupported)return n?`top:`+i+`;left:`+r+`;`:[[`top`,i],[`left`,r]];var a=ot.transform3dSupported,o=`translate`+(a?`3d`:``)+`(`+r+`,`+i+(a?`,0`:``)+`)`;return n?`top:0;left:0;`+zd+`:`+o+`;`:[[`top`,0],[`left`,0],[Id,o]]}function Hd(e,t,n,r){var i=[],a=e.get(`transitionDuration`),o=e.get(`backgroundColor`),s=e.get(`shadowBlur`),c=e.get(`shadowColor`),l=e.get(`shadowOffsetX`),u=e.get(`shadowOffsetY`),d=e.getModel(`textStyle`),f=kn(e,`html`),p=l+`px `+u+`px `+s+`px `+c;return i.push(`box-shadow:`+p),t&&a>0&&i.push(function(e,t,n){var r=`cubic-bezier(0.23,1,0.32,1)`,i=``,a=``;return n&&(a=`opacity`+(i=` `+e/2+`s `+r)+`,visibility`+i),t||(i=` `+e+`s `+r,a+=(a.length?`,`:``)+(ot.transformSupported?``+zd+i:`,left`+i+`,top`+i)),Rd+`:`+a}(a,n,r)),o&&i.push(`background-color:`+o),H([`width`,`color`,`radius`],function(t){var n=`border-`+t,r=Qn(n),a=e.get(r);a!=null&&i.push(n+`:`+a+(t===`color`?``:`px`))}),i.push(function(e){var t=[],n=e.get(`fontSize`),r=e.getTextColor();r&&t.push(`color:`+r),t.push(`font:`+e.getFont());var i=R(e.get(`lineHeight`),Math.round(3*n/2));n&&t.push(`line-height:`+i+`px`);var a=e.get(`textShadowColor`),o=e.get(`textShadowBlur`)||0,s=e.get(`textShadowOffsetX`)||0,c=e.get(`textShadowOffsetY`)||0;return a&&o&&t.push(`text-shadow:`+s+`px `+c+`px `+o+`px `+a),H([`decoration`,`align`],function(n){var r=e.get(n);r&&t.push(`text-`+n+`:`+r)}),t.join(`;`)}(d)),f!=null&&i.push(`padding:`+tt(f).join(`px `)+`px`),i.join(`;`)+`;`}function Ud(e,t,n,r,i){var a=t&&t.painter;if(n){var o=a&&a.getViewportRoot();o&&xe(e,o,n,r,i)}else{e[0]=r,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Wd=function(){function e(e,t){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ot.wxa)return null;var n=document.createElement(`div`);n.domBelongToZr=!0,this.el=n;var r=this._zr=e.getZr(),i=t.appendTo,a=i&&(W(i)?document.querySelector(i):Ne(i)?i:S(i)&&i(e.getDom()));Ud(this._styleCoord,r,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(n),this._api=e,this._container=a;var o=this;n.onmouseenter=function(){o._enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},n.onmousemove=function(e){if(e||=window.event,!o._enterable){var t=r.handler,n=r.painter.getViewportRoot();Kn(n,e,!0),t.dispatch(`mousemove`,e)}},n.onmouseleave=function(){o._inContent=!1,o._enterable&&o._show&&o.hideLater(o._hideDelay)}}return e.prototype.update=function(e){if(!this._container){var t=this._api.getDom(),n=(a=`position`,(o=(i=t).currentStyle||document.defaultView&&document.defaultView.getComputedStyle(i))?a?o[a]:o:null),r=t.style;r.position!==`absolute`&&n!==`absolute`&&(r.position=`relative`)}var i,a,o,s=e.get(`alwaysShowContent`);s&&this._moveIfResized(),this._alwaysShowContent=s,this._enableDisplayTransition=e.get(`displayTransition`)&&e.get(`transitionDuration`)>0,this.el.className=e.get(`className`)||``},e.prototype.show=function(e,t){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,r=n.style,i=this._styleCoord;n.innerHTML?r.cssText=Bd+Hd(e,!this._firstShow,this._longHide,this._enableDisplayTransition)+Vd(i[0],i[1],!0)+`border-color:`+Er(t)+`;`+(e.get(`extraCssText`)||``)+`;pointer-events:`+(this._enterable?`auto`:`none`):r.display=`none`,this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(e,t,n,r,i){var a=this.el;if(e!=null){var o=``;if(W(i)&&n.get(`trigger`)===`item`&&!Pd(n)&&(o=function(e,t,n){if(!W(n)||n===`inside`)return``;var r=e.get(`backgroundColor`),i=e.get(`borderWidth`);t=Er(t);var a,o,s=(a=n)===`left`?`right`:a===`right`?`left`:a===`top`?`bottom`:`top`,c=Math.max(1.5*Math.round(i),6),l=``,u=zd+`:`;er([`left`,`right`],s)>-1?(l+=`top:50%`,u+=`translateY(-50%) rotate(`+(o=s===`left`?-225:-45)+`deg)`):(l+=`left:50%`,u+=`translateX(-50%) rotate(`+(o=s===`top`?225:45)+`deg)`);var d=o*Math.PI/180,f=c+i,p=f*Math.abs(Math.cos(d))+f*Math.abs(Math.sin(d)),m=t+` solid `+i+`px;`;return`<div style="`+[`position:absolute;width:`+c+`px;height:`+c+`px;z-index:-1;`,(l+=`;`+s+`:-`+Math.round(100*((p-Math.SQRT2*i)/2+Math.SQRT2*i-(p-f)/2))/100+`px`)+`;`+u+`;`,`border-bottom:`+m,`border-right:`+m,`background-color:`+r+`;`].join(``)+`"></div>`}(n,r,i)),W(e))a.innerHTML=e+o;else if(e){a.innerHTML=``,q(e)||(e=[e]);for(var s=0;s<e.length;s++)Ne(e[s])&&e[s].parentNode!==a&&a.appendChild(e[s]);if(o&&a.childNodes.length){var c=document.createElement(`div`);c.innerHTML=o,a.appendChild(c)}}}else a.innerHTML=``},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el;return e?[e.offsetWidth,e.offsetHeight]:[0,0]},e.prototype.moveTo=function(e,t){if(this.el){var n=this._styleCoord;if(Ud(n,this._zr,this._container,e,t),n[0]!=null&&n[1]!=null){var r=this.el.style,i=Vd(n[0],n[1]);H(i,function(e){r[e[0]]=e[1]})}}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){var e=this,t=this.el.style;this._enableDisplayTransition?(t.visibility=`hidden`,t.opacity=`0`):t.display=`none`,ot.transform3dSupported&&(t.willChange=``),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(m(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this._zr;we(e&&e.painter&&e.painter.getViewportRoot(),this._container);var t=this.el;if(t){t.onmouseenter=t.onmousemove=t.onmouseleave=null;var n=t.parentNode;n&&n.removeChild(t)}this.el=this._container=null},e}(),Gd=function(){function e(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),Jd(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return e.prototype.update=function(e){var t=e.get(`alwaysShowContent`);t&&this._moveIfResized(),this._alwaysShowContent=t},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(e,t,n,r,i){var a=this;_(e)&&Bn(``),this.el&&this._zr.remove(this.el);var o=n.getModel(`textStyle`);this.el=new w({style:{rich:t.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:r,textShadowColor:o.get(`textShadowColor`),fill:n.get([`textStyle`,`color`]),padding:kn(n,`richText`),verticalAlign:`top`,align:`left`},z:n.get(`z`)}),H([`backgroundColor`,`borderRadius`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],function(e){a.el.style[e]=n.get(e)}),H([`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],function(e){a.el.style[e]=o.get(e)||0}),this._zr.add(this.el);var s=this;this.el.on(`mouseover`,function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0}),this.el.on(`mouseout`,function(){s._enterable&&s._show&&s.hideLater(s._hideDelay),s._inContent=!1})},e.prototype.setEnterable=function(e){this._enterable=e},e.prototype.getSize=function(){var e=this.el,t=this.el.getBoundingRect(),n=qd(e.style);return[t.width+n.left+n.right,t.height+n.top+n.bottom]},e.prototype.moveTo=function(e,t){var n=this.el;if(n){var r=this._styleCoord;Jd(r,this._zr,e,t),e=r[0],t=r[1];var i=n.style,a=Kd(i.borderWidth||0),o=qd(i);n.x=e+a+o.left,n.y=t+a+o.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var e=this._styleCoord[2],t=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),t*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(e){!this._show||this._inContent&&this._enterable||this._alwaysShowContent||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(m(this.hide,this),e)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Kd(e){return Math.max(0,e)}function qd(e){var t=Kd(e.shadowBlur||0),n=Kd(e.shadowOffsetX||0),r=Kd(e.shadowOffsetY||0);return{left:Kd(t-n),right:Kd(t+n),top:Kd(t-r),bottom:Kd(t+r)}}function Jd(e,t,n,r){e[0]=n,e[1]=r,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Yd=new h({shape:{x:-1,y:-1,width:2,height:2}}),Xd=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return X(t,e),t.prototype.init=function(e,t){if(!ot.node&&t.getDom()){var n=e.getComponent(`tooltip`),r=this._renderMode=be(n.get(`renderMode`));this._tooltipContent=r===`richText`?new Gd(t):new Wd(t,{appendTo:n.get(`appendToBody`,!0)?`body`:n.get(`appendTo`,!0)})}},t.prototype.render=function(e,t,n){if(!ot.node&&n.getDom()){this.group.removeAll(),this._tooltipModel=e,this._ecModel=t,this._api=n;var r=this._tooltipContent;r.update(e),r.setEnterable(e.get(`enterable`)),this._initGlobalListener(),this._keepShow(),this._renderMode!==`richText`&&e.get(`transitionDuration`)?P(this,`_updatePosition`,50,`fixRate`):In(this,`_updatePosition`)}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel.get(`triggerOn`);vd(`itemTooltip`,this._api,m(function(t,n,r){e!==`none`&&(e.indexOf(t)>=0?this._tryShow(n,r):t===`leave`&&this._hide(r))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,t=this._ecModel,n=this._api,r=e.get(`triggerOn`);if(e.get(`trigger`)!==`axis`&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&r!==`none`&&r!==`click`){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(e,t,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,t,n,r){if(r.from!==this.uid&&!ot.node&&n.getDom()){var i=Qd(r,n);this._ticket=``;var a=r.dataByCoordSys,o=function(e,t,n){var r=nn(e).queryOptionMap,i=r.keys()[0];if(i&&i!==`series`){var a=te(t,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a){var o;if(n.getViewOfComponentModel(a).group.traverse(function(t){var n=G(t).tooltipConfig;if(n&&n.name===e.name)return o=t,!0}),o)return{componentMainType:i,componentIndex:a.componentIndex,el:o}}}}(r,t,n);if(o){var s=o.el.getBoundingRect().clone();s.applyTransform(o.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:o.el,position:r.position,positionDefault:`bottom`},i)}else if(r.tooltip&&r.x!=null&&r.y!=null){var c=Yd;c.x=r.x,c.y=r.y,c.update(),G(c).tooltipConfig={name:null,option:r.tooltip},this._tryShow({offsetX:r.x,offsetY:r.y,target:c},i)}else if(a)this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,dataByCoordSys:a,tooltipOption:r.tooltipOption},i);else if(r.seriesIndex!=null){if(this._manuallyAxisShowTip(e,t,n,r))return;var l=Cd(r,t),u=l.point[0],d=l.point[1];u!=null&&d!=null&&this._tryShow({offsetX:u,offsetY:d,target:l.el,position:r.position,positionDefault:`bottom`},i)}else r.x!=null&&r.y!=null&&(n.dispatchAction({type:`updateAxisPointer`,x:r.x,y:r.y}),this._tryShow({offsetX:r.x,offsetY:r.y,position:r.position,target:n.getZr().findHover(r.x,r.y).target},i))}},t.prototype.manuallyHideTip=function(e,t,n,r){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get(`hideDelay`)),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,r.from!==this.uid&&this._hide(Qd(r,n))},t.prototype._manuallyAxisShowTip=function(e,t,n,r){var i=r.seriesIndex,a=r.dataIndex,o=t.getComponent(`axisPointer`).coordSysAxesInfo;if(i!=null&&a!=null&&o!=null){var s=t.getSeriesByIndex(i);if(s&&Zd([s.getData().getItemModel(a),s,(s.coordinateSystem||{}).model],this._tooltipModel).get(`trigger`)===`axis`)return n.dispatchAction({type:`updateAxisPointer`,seriesIndex:i,dataIndex:a,position:r.position}),!0}},t.prototype._tryShow=function(e,t){var n=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var r=e.dataByCoordSys;if(r&&r.length)this._showAxisTooltip(r,e);else if(n){if(G(n).ssrType===`legend`)return;var i,a;this._lastDataByCoordSys=null,this._cbParamsList=null,zt(n,function(e){if(e.tooltipDisabled)return i=a=null,!0;i||a||(G(e).dataIndex==null?G(e).tooltipConfig!=null&&(a=e):i=e)},!0),i?this._showSeriesItemTooltip(e,i,t):a?this._showComponentItemTooltip(e,a,t):this._hide(t)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(t)}},t.prototype._showOrMove=function(e,t){var n=e.get(`showDelay`);t=m(t,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(t,n):t()},t.prototype._showAxisTooltip=function(e,t){var n=this._ecModel,r=this._tooltipModel,i=[t.offsetX,t.offsetY],a=Zd([t.tooltipOption],r),o=this._renderMode,s=[],c=oe(`section`,{blocks:[],noHeader:!0}),l=[],u=new f;H(e,function(e){H(e.dataByAxis,function(e){var t=n.getComponent(e.axisDim+`Axis`,e.axisIndex),i=e.value,a=t.axis,d=a.scale.parse(i);if(t&&i!=null){var f=ld(i,a,n,e.seriesDataIndices,e.valueLabelOpt),p=oe(`section`,{header:f,noHeader:!Nn(f),sortBlocks:!0,blocks:[]});c.blocks.push(p),H(e.seriesDataIndices,function(i){var a=n.getSeriesByIndex(i.seriesIndex),c=i.dataIndexInside,m=a.getDataParams(c);if(!(m.dataIndex<0)){m.axisDim=e.axisDim,m.axisIndex=e.axisIndex,m.axisType=e.axisType,m.axisId=e.axisId,m.axisValue=To(t.axis,{value:d}),m.axisValueLabel=f,m.marker=u.makeTooltipMarker(`item`,Er(m.color),o);var h=ln(a.formatTooltip(c,!0,null)),g=h.frag;if(g){var _=Zd([a],r).get(`valueFormatter`);p.blocks.push(_?B({valueFormatter:_},g):g)}h.text&&l.push(h.text),s.push(m)}})}})}),c.blocks.reverse(),l.reverse();var d=t.position,p=a.get(`order`),m=Fn(c,u,o,p,n.get(`useUTC`),a.get(`textStyle`));m&&l.unshift(m);var h=o===`richText`?`
2
+
3
+ `:`<br/>`,g=l.join(h);this._showOrMove(a,function(){this._updateContentNotChangedOnAxis(e,s)?this._updatePosition(a,d,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(a,g,s,Math.random()+``,i[0],i[1],d,null,u)})},t.prototype._showSeriesItemTooltip=function(e,t,n){var r=this._ecModel,i=G(t),a=i.seriesIndex,o=r.getSeriesByIndex(a),s=i.dataModel||o,c=i.dataIndex,l=i.dataType,u=s.getData(l),d=this._renderMode,p=e.positionDefault,m=Zd([u.getItemModel(c),s,o&&(o.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),h=m.get(`trigger`);if(h==null||h===`item`){var g=s.getDataParams(c,l),_=new f;g.marker=_.makeTooltipMarker(`item`,Er(g.color),d);var v=ln(s.formatTooltip(c,!1,l)),y=m.get(`order`),b=m.get(`valueFormatter`),x=v.frag,S=x?Fn(b?B({valueFormatter:b},x):x,_,d,y,r.get(`useUTC`),m.get(`textStyle`)):v.text,C=`item_`+s.name+`_`+c;this._showOrMove(m,function(){this._showTooltipContent(m,S,g,C,e.offsetX,e.offsetY,e.position,e.target,_)}),n({type:`showTip`,dataIndexInside:c,dataIndex:u.getRawIndex(c),seriesIndex:a,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,t,n){var r=this._renderMode===`html`,i=G(t),a=i.tooltipConfig.option||{},o=a.encodeHTMLContent;W(a)&&(a={content:a,formatter:a},o=!0),o&&r&&a.content&&((a=Lr(a)).content=tr(a.content));var s=[a],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&s.push(c),s.push({formatter:a.content});var l=e.positionDefault,u=Zd(s,this._tooltipModel,l?{position:l}:null),d=u.get(`content`),p=Math.random()+``,m=new f;this._showOrMove(u,function(){var n=Lr(u.get(`formatterParams`)||{});this._showTooltipContent(u,d,n,p,e.offsetX,e.offsetY,e.position,t,m)}),n({type:`showTip`,from:this.uid})},t.prototype._showTooltipContent=function(e,t,n,r,i,a,o,s,c){if(this._ticket=``,e.get(`showContent`)&&e.get(`show`)){var l=this._tooltipContent;l.setEnterable(e.get(`enterable`));var u=e.get(`formatter`);o||=e.get(`position`);var d=t,f=this._getNearestPoint([i,a],n,e.get(`trigger`),e.get(`borderColor`),e.get(`defaultBorderColor`,!0)).color;if(u){if(W(u)){var p=e.ecModel.get(`useUTC`),h=q(n)?n[0]:n;d=u,h&&h.axisType&&h.axisType.indexOf(`time`)>=0&&(d=Pt(h.axisValue,d,p)),d=Oe(d,n,!0)}else if(S(u)){var g=m(function(t,r){t===this._ticket&&(l.setContent(r,c,e,f,o),this._updatePosition(e,o,i,a,l,n,s))},this);this._ticket=r,d=u(n,r,g)}else d=u}l.setContent(d,c,e,f,o),l.show(e,f),this._updatePosition(e,o,i,a,l,n,s)}},t.prototype._getNearestPoint=function(e,t,n,r,i){return n===`axis`||q(t)?{color:r||i}:q(t)?void 0:{color:r||t.color||t.borderColor}},t.prototype._updatePosition=function(e,t,n,r,i,a,o){var s=this._api.getWidth(),c=this._api.getHeight();t||=e.get(`position`);var l=i.getSize(),u=e.get(`align`),d=e.get(`verticalAlign`),f=o&&o.getBoundingRect().clone();if(o&&f.applyTransform(o.transform),S(t)&&(t=t([n,r],a,i.el,f,{viewSize:[s,c],contentSize:l.slice()})),q(t))n=mt(t[0],s),r=mt(t[1],c);else if(_(t)){var p=t;p.width=l[0],p.height=l[1];var m=Vr(p,{width:s,height:c});n=m.x,r=m.y,u=null,d=null}else if(W(t)&&o){var h=function(e,t,n,r){var i=n[0],a=n[1],o=Math.ceil(Math.SQRT2*r)+8,s=0,c=0,l=t.width,u=t.height;switch(e){case`inside`:s=t.x+l/2-i/2,c=t.y+u/2-a/2;break;case`top`:s=t.x+l/2-i/2,c=t.y-a-o;break;case`bottom`:s=t.x+l/2-i/2,c=t.y+u+o;break;case`left`:s=t.x-i-o,c=t.y+u/2-a/2;break;case`right`:s=t.x+l+o,c=t.y+u/2-a/2}return[s,c]}(t,f,l,e.get(`borderWidth`));n=h[0],r=h[1]}else h=function(e,t,n,r,i,a,o){var s=n.getSize(),c=s[0],l=s[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[e,t]}(n,r,i,s,c,u?null:20,d?null:20),n=h[0],r=h[1];u&&(n-=$d(u)?l[0]/2:u===`right`?l[0]:0),d&&(r-=$d(d)?l[1]/2:d===`bottom`?l[1]:0),Pd(e)&&(h=function(e,t,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,r)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}(n,r,i,s,c),n=h[0],r=h[1]),i.moveTo(n,r)},t.prototype._updateContentNotChangedOnAxis=function(e,t){var n=this._lastDataByCoordSys,r=this._cbParamsList,i=!!n&&n.length===e.length;return i&&H(n,function(n,a){var o=n.dataByAxis||[],s=(e[a]||{}).dataByAxis||[];(i&&=o.length===s.length)&&H(o,function(e,n){var a=s[n]||{},o=e.seriesDataIndices||[],c=a.seriesDataIndices||[];(i=i&&e.value===a.value&&e.axisType===a.axisType&&e.axisId===a.axisId&&o.length===c.length)&&H(o,function(e,t){var n=c[t];i=i&&e.seriesIndex===n.seriesIndex&&e.dataIndex===n.dataIndex}),r&&H(e.seriesDataIndices,function(e){var n=e.seriesIndex,a=t[n],o=r[n];a&&o&&o.data!==a.data&&(i=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=t,!!i},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:`hideTip`,from:this.uid})},t.prototype.dispose=function(e,t){!ot.node&&t.getDom()&&(In(this,`_updatePosition`),this._tooltipContent.dispose(),xd(`itemTooltip`,t),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type=`tooltip`,t}(p);function Zd(e,t,n){var r,i=t.ecModel;n?(r=new Ze(n,i,i),r=new Ze(t.option,r,i)):r=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Ze&&(o=o.get(`tooltip`,!0)),W(o)&&(o={formatter:o}),o&&(r=new Ze(o,r,i)))}return r}function Qd(e,t){return e.dispatchAction||m(t.dispatchAction,t)}function $d(e){return e===`center`||e===`middle`}function ef(e){jr(jd),e.registerComponentModel(Nd),e.registerComponentView(Xd),e.registerAction({type:`showTip`,event:`showTip`,update:`tooltip:manuallyShowTip`},mn),e.registerAction({type:`hideTip`,event:`hideTip`,update:`tooltip:manuallyHideTip`},mn)}var tf=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return X(t,e),t.type=`title`,t.defaultOption={z:6,show:!0,text:``,target:`blank`,subtext:``,subtarget:`blank`,left:`center`,top:K.size.m,backgroundColor:K.color.transparent,borderColor:K.color.primary,borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:`bold`,color:K.color.primary},subtextStyle:{fontSize:12,color:K.color.quaternary}},t}(Br),nf=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return X(t,e),t.prototype.render=function(e,t,n){if(this.group.removeAll(),e.get(`show`)){var r=this.group,i=e.getModel(`textStyle`),a=e.getModel(`subtextStyle`),o=e.get(`textAlign`),s=R(e.get(`textBaseline`),e.get(`textVerticalAlign`)),c=new w({style:zr(i,{text:e.get(`text`),fill:i.getTextColor()},{disableBox:!0}),z2:10}),l=c.getBoundingRect(),u=e.get(`subtext`),d=new w({style:zr(a,{text:u,fill:a.getTextColor(),y:l.height+e.get(`itemGap`),verticalAlign:`top`},{disableBox:!0}),z2:10}),f=e.get(`link`),p=e.get(`sublink`),m=e.get(`triggerEvent`,!0);c.silent=!f&&!m,d.silent=!p&&!m,f&&c.on(`click`,function(){Rt(f,`_`+e.get(`target`))}),p&&d.on(`click`,function(){Rt(p,`_`+e.get(`subtarget`))}),G(c).eventData=G(d).eventData=m?{componentType:`title`,componentIndex:e.componentIndex}:null,r.add(c),u&&r.add(d);var g=r.getBoundingRect(),_=e.getBoxLayoutParams();_.width=g.width,_.height=g.height;var v=gt(e,n),y=Vr(_,v.refContainer,e.get(`padding`));o||((o=e.get(`left`)||e.get(`right`))===`middle`&&(o=`center`),o===`right`?y.x+=y.width:o===`center`&&(y.x+=y.width/2)),s||((s=e.get(`top`)||e.get(`bottom`))===`center`&&(s=`middle`),s===`bottom`?y.y+=y.height:s===`middle`&&(y.y+=y.height/2),s||=`top`),r.x=y.x,r.y=y.y,r.markRedraw();var b={align:o,verticalAlign:s};c.setStyle(b),d.setStyle(b),g=r.getBoundingRect();var x=y.margin,S=e.getItemStyle([`color`,`opacity`]);S.fill=e.get(`backgroundColor`);var C=new h({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:S,subPixelOptimize:!0,silent:!0});r.add(C)}},t.type=`title`,t}(p);function rf(e){e.registerComponentModel(tf),e.registerComponentView(nf)}var af=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:`box`,ignoreSize:!0},n}return X(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),this._updateSelector(t)},t.prototype._updateSelector=function(e){var t=e.selector,n=this.ecModel;!0===t&&(t=e.selector=[`all`,`inverse`]),q(t)&&H(t,function(e,r){W(e)&&(e={type:e}),t[r]=Re(e,function(e,t){return t===`all`?{type:`all`,title:e.getLocaleModel().get([`legend`,`selector`,`all`])}:t===`inverse`?{type:`inverse`,title:e.getLocaleModel().get([`legend`,`selector`,`inverse`])}:void 0}(n,e.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get(`selectedMode`)===`single`){for(var t=!1,n=0;n<e.length;n++){var r=e[n].get(`name`);if(this.isSelected(r)){this.select(r),t=!0;break}}!t&&this.select(e[0].get(`name`))}},t.prototype._updateData=function(e){var t=[],n=[];e.eachRawSeries(function(r){var i,a=r.name;if(n.push(a),r.legendVisualProvider){var o=r.legendVisualProvider.getAllNames();e.isSeriesFiltered(r)||(n=n.concat(o)),o.length?t=t.concat(o):i=!0}else i=!0;i&&Jt(r)&&t.push(r.name)}),this._availableNames=n;var r=this.get(`data`)||t,i=a(),o=J(r,function(e){return(W(e)||_r(e))&&(e={name:e}),i.get(e.name)?null:(i.set(e.name,!0),new Ze(e,this,this.ecModel))},this);this._data=Mt(o,function(e){return!!e})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var t=this.option.selected;if(this.get(`selectedMode`)===`single`){var n=this._data;H(n,function(e){t[e.get(`name`)]=!1})}t[e]=!0},t.prototype.unSelect=function(e){this.get(`selectedMode`)!==`single`&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var t=this.option.selected;t.hasOwnProperty(e)||(t[e]=!0),this[t[e]?`unSelect`:`select`](e)},t.prototype.allSelect=function(){var e=this._data,t=this.option.selected;H(e,function(e){t[e.get(`name`,!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,t=this.option.selected;H(e,function(e){var n=e.get(`name`,!0);t.hasOwnProperty(n)||(t[n]=!0),t[n]=!t[n]})},t.prototype.isSelected=function(e){var t=this.option.selected;return!(t.hasOwnProperty(e)&&!t[e])&&er(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:K.size.m,align:`auto`,backgroundColor:K.color.transparent,borderColor:K.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:`inherit`,symbolKeepAspect:!0,inactiveColor:K.color.disabled,inactiveBorderColor:K.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:K.color.disabled,inactiveWidth:2,opacity:`inherit`,type:`inherit`,cap:`inherit`,join:`inherit`,dashOffset:`inherit`,miterLimit:`inherit`},textStyle:{color:K.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:`sans-serif`,color:K.color.tertiary,borderWidth:1,borderColor:K.color.border},emphasis:{selectorLabel:{show:!0,color:K.color.quaternary}},selectorPosition:`auto`,selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t}(Br),of=Y,sf=H,cf=le,lf=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return X(t,e),t.prototype.init=function(){this.group.add(this._contentGroup=new cf),this.group.add(this._selectorGroup=new cf),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,t,n){var r=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get(`show`,!0)){var i=e.get(`align`),a=e.get(`orient`);i&&i!==`auto`||(i=e.get(`left`)===`right`&&a===`vertical`?`right`:`left`);var o=e.get(`selector`,!0),s=e.get(`selectorPosition`,!0);!o||s&&s!==`auto`||(s=a===`horizontal`?`end`:`start`),this.renderInner(i,e,t,n,o,a,s);var c=gt(e,n).refContainer,l=e.getBoxLayoutParams(),u=e.get(`padding`),d=Vr(l,c,u),f=this.layoutInner(e,i,d,r,o,s),p=Vr(Sr({width:f.width,height:f.height},l),c,u);this.group.x=p.x-f.x,this.group.y=p.y-f.y,this.group.markRedraw(),this.group.add(this._backgroundEl=function(e,t){var n=tt(t.get(`padding`)),r=t.getItemStyle([`color`,`opacity`]);return r.fill=t.get(`backgroundColor`),new h({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get(`borderRadius`)},style:r,silent:!0,z2:-1})}(f,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,t,n,r,i,o,s){var c=this.getContentGroup(),l=a(),u=t.get(`selectedMode`),d=t.get(`triggerEvent`),f=[];n.eachRawSeries(function(e){!e.get(`legendHoverLink`)&&f.push(e.id)}),sf(t.getData(),function(i,a){var o=this,s=i.get(`name`);if(!this.newlineDisabled&&(s===``||s===`
4
+ `)){var p=new cf;p.newline=!0,c.add(p)}else{var m=n.getSeriesByName(s)[0];if(!l.get(s)){if(m){var h=m.getData(),g=h.getVisual(`legendLineStyle`)||{},_=h.getVisual(`legendIcon`),v=h.getVisual(`style`),y=this._createItem(m,s,a,i,t,e,g,v,_,u,r);y.on(`click`,of(uf,s,null,r,f)).on(`mouseover`,of(df,m.name,null,r,f)).on(`mouseout`,of(ff,m.name,null,r,f)),n.ssr&&y.eachChild(function(e){var t=G(e);t.seriesIndex=m.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),d&&y.eachChild(function(e){o.packEventData(e,t,m,a,s)}),l.set(s,!0)}else n.eachRawSeries(function(o){var c=this;if(!l.get(s)&&o.legendVisualProvider){var p=o.legendVisualProvider;if(!p.containName(s))return;var m=p.indexOfName(s),h=p.getItemVisual(m,`style`),g=p.getItemVisual(m,`legendIcon`),_=ke(h.fill);_&&_[3]===0&&(_[3]=.2,h=B(B({},h),{fill:Ct(_,`rgba`)}));var v=this._createItem(o,s,a,i,t,e,{},h,g,u,r);v.on(`click`,of(uf,null,s,r,f)).on(`mouseover`,of(df,null,s,r,f)).on(`mouseout`,of(ff,null,s,r,f)),n.ssr&&v.eachChild(function(e){var t=G(e);t.seriesIndex=o.seriesIndex,t.dataIndex=a,t.ssrType=`legend`}),d&&v.eachChild(function(e){c.packEventData(e,t,o,a,s)}),l.set(s,!0)}},this)}}},this),i&&this._createSelector(i,t,r,o,s)},t.prototype.packEventData=function(e,t,n,r,i){var a={componentType:`legend`,componentIndex:t.componentIndex,dataIndex:r,value:i,seriesIndex:n.seriesIndex};G(e).eventData=a},t.prototype._createSelector=function(e,t,n,r,i){var a=this.getSelectorGroup();sf(e,function(e){var r=e.type,i=new w({style:{x:0,y:0,align:`center`,verticalAlign:`middle`},onclick:function(){n.dispatchAction({type:r===`all`?`legendAllSelect`:`legendInverseSelect`,legendId:t.id})}});a.add(i);var o=t.getModel(`selectorLabel`),s=t.getModel([`emphasis`,`selectorLabel`]);nt(i,{normal:o,emphasis:s},{defaultText:e.title}),xn(i)})},t.prototype._createItem=function(e,t,n,r,i,a,o,s,c,l,u){var d=e.visualDrawType,f=i.get(`itemWidth`),p=i.get(`itemHeight`),m=i.isSelected(t),g=r.get(`symbolRotate`),_=r.get(`symbolKeepAspect`),v=r.get(`icon`),y=function(e,t,n,r,i,a,o){function s(e,t){e.lineWidth===`auto`&&(e.lineWidth=t.lineWidth>0?2:0),sf(e,function(n,r){e[r]===`inherit`&&(e[r]=t[r])})}var c=t.getModel(`itemStyle`),l=c.getItemStyle(),u=e.lastIndexOf(`empty`,0)===0?`fill`:`stroke`,d=c.getShallow(`decal`);l.decal=d&&d!==`inherit`?jt(d,o):r.decal,l.fill===`inherit`&&(l.fill=r[i]),l.stroke===`inherit`&&(l.stroke=r[u]),l.opacity===`inherit`&&(l.opacity=(i===`fill`?r:n).opacity),s(l,r);var f=t.getModel(`lineStyle`),p=f.getLineStyle();if(s(p,n),l.fill===`auto`&&(l.fill=r.fill),l.stroke===`auto`&&(l.stroke=r.fill),p.stroke===`auto`&&(p.stroke=r.fill),!a){var m=t.get(`inactiveBorderWidth`),h=l[u];l.lineWidth=m===`auto`?r.lineWidth>0&&h?2:0:l.lineWidth,l.fill=t.get(`inactiveColor`),l.stroke=t.get(`inactiveBorderColor`),p.stroke=f.get(`inactiveColor`),p.lineWidth=f.get(`inactiveWidth`)}return{itemStyle:l,lineStyle:p}}(c=v||c||`roundRect`,r,o,s,d,m,u),b=new cf,x=r.getModel(`textStyle`);if(!S(e.getLegendIcon)||v&&v!==`inherit`){var C=v===`inherit`&&e.getData().getVisual(`symbol`)?g===`inherit`?e.getData().getVisual(`symbolRotate`):g:0;b.add(function(e){var t=e.icon||`roundRect`,n=ze(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf(`empty`)>-1&&(n.style.stroke=n.style.fill,n.style.fill=K.color.neutral00,n.style.lineWidth=2),n}({itemWidth:f,itemHeight:p,icon:c,iconRotate:C,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:_}))}else b.add(e.getLegendIcon({itemWidth:f,itemHeight:p,icon:c,iconRotate:g,itemStyle:y.itemStyle,lineStyle:y.lineStyle,symbolKeepAspect:_}));var T=a===`left`?f+5:-5,E=a,D=i.get(`formatter`),O=t;W(D)&&D?O=D.replace(`{name}`,t??``):S(D)&&(O=D(t));var k=m?x.getTextColor():r.get(`inactiveColor`);b.add(new w({style:zr(x,{text:O,x:T,y:p/2,fill:k,align:E,verticalAlign:`middle`},{inheritColor:k})}));var A=new h({shape:b.getBoundingRect(),style:{fill:`transparent`}}),j=r.getModel(`tooltip`);return j.get(`show`)&&Sn({el:A,componentModel:i,itemName:t,itemTooltipOption:j.option}),b.add(A),b.eachChild(function(e){e.silent=!0}),A.silent=!l,this.getContentGroup().add(b),xn(b),b.__legendDataIndex=n,b},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getContentGroup(),s=this.getSelectorGroup();pn(e.get(`orient`),o,e.get(`itemGap`),n.width,n.height);var c=o.getBoundingRect(),l=[-c.x,-c.y];if(s.markRedraw(),o.markRedraw(),i){pn(`horizontal`,s,e.get(`selectorItemGap`,!0));var u=s.getBoundingRect(),d=[-u.x,-u.y],f=e.get(`selectorButtonGap`,!0),p=e.getOrient().index,m=p===0?`width`:`height`,h=p===0?`height`:`width`,g=p===0?`y`:`x`;a===`end`?d[p]+=c[m]+f:l[p]+=u[m]+f,d[1-p]+=c[h]/2-u[h]/2,s.x=d[0],s.y=d[1],o.x=l[0],o.y=l[1];var _={x:0,y:0};return _[m]=c[m]+f+u[m],_[h]=Math.max(c[h],u[h]),_[g]=Math.min(0,u[g]+d[1-p]),_}return o.x=l[0],o.y=l[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type=`legend.plain`,t}(p);function uf(e,t,n,r){ff(e,t,n,r),n.dispatchAction({type:`legendToggleSelect`,name:e??t}),df(e,t,n,r)}function df(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`highlight`,seriesName:e,name:t,excludeSeriesId:r})}function ff(e,t,n,r){n.usingTHL()||n.dispatchAction({type:`downplay`,seriesName:e,name:t,excludeSeriesId:r})}function pf(e,t,n){var r=e===`allSelect`||e===`inverseSelect`,i={},a=[];n.eachComponent({mainType:`legend`,query:t},function(n){r?n[e]():n[e](t.name),mf(n,i),a.push(n.componentIndex)});var o={};return n.eachComponent(`legend`,function(e){H(i,function(t,n){e[t?`select`:`unSelect`](n)}),mf(e,o)}),r?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function mf(e,t){var n=t||{};return H(e.getData(),function(t){var r=t.get(`name`);if(r!==`
5
+ `&&r!==``){var i=e.isSelected(r);n[r]=ee(n,r)?n[r]&&i:i}}),n}var hf=Se(function(e){var t=e.findComponents({mainType:`legend`});t&&t.length&&e.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})});function gf(e){e.registerComponentModel(af),e.registerComponentView(lf),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,hf),e.registerSubTypeDefaulter(`legend`,function(){return`plain`}),function(e){e.registerAction(`legendToggleSelect`,`legendselectchanged`,Y(pf,`toggleSelected`)),e.registerAction(`legendAllSelect`,`legendselectall`,Y(pf,`allSelect`)),e.registerAction(`legendInverseSelect`,`legendinverseselect`,Y(pf,`inverseSelect`)),e.registerAction(`legendSelect`,`legendselected`,Y(pf,`select`)),e.registerAction(`legendUnSelect`,`legendunselected`,Y(pf,`unSelect`))}(e)}var _f=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return X(t,e),t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(t,n,r){var i=wt(t);e.prototype.init.call(this,t,n,r),vf(this,t,i)},t.prototype.mergeOption=function(t,n){e.prototype.mergeOption.call(this,t,n),vf(this,this.option,t)},t.type=`legend.scroll`,t.defaultOption=Ir(af.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:K.color.accent50,pageIconInactiveColor:K.color.accent10,pageIconSize:15,pageTextStyle:{color:K.color.tertiary},animationDurationUpdate:800}),t}(af);function vf(e,t,n){var r=[1,1];r[e.getOrient().index]=0,Ur(t,n,{type:`box`,ignoreSize:!!r})}var yf=le,bf=[`width`,`height`],xf=[`x`,`y`],Sf=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!0,n._currentIndex=0,n}return X(t,e),t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new yf),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new yf)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(t,n,r,i,a,o,s){var c=this;e.prototype.renderInner.call(this,t,n,r,i,a,o,s);var l=this._controllerGroup,u=n.get(`pageIconSize`,!0),d=q(u)?u:[u,u];p(`pagePrev`,0);var f=n.getModel(`pageTextStyle`);function p(e,t){var r=e+`DataIndex`,a=Tt(n.get(`pageIcons`,!0)[n.getOrient().name][t],{onclick:m(c._pageGo,c,r,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});a.name=e,l.add(a)}l.add(new w({name:`pageText`,style:{text:`xx/xx`,fill:f.getTextColor(),font:f.getFont(),verticalAlign:`middle`,align:`center`},silent:!0})),p(`pageNext`,1)},t.prototype.layoutInner=function(e,t,n,r,i,a){var o=this.getSelectorGroup(),s=e.getOrient().index,c=bf[s],l=xf[s],u=bf[1-s],d=xf[1-s];i&&pn(`horizontal`,o,e.get(`selectorItemGap`,!0));var f=e.get(`selectorButtonGap`,!0),p=o.getBoundingRect(),m=[-p.x,-p.y],h=Lr(n);i&&(h[c]=n[c]-p[c]-f);var g=this._layoutContentAndController(e,r,h,s,c,u,d,l);if(i){if(a===`end`)m[s]+=g[c]+f;else{var _=p[c]+f;m[s]-=_,g[l]-=_}g[c]+=p[c]+f,m[1-s]+=g[d]+g[u]/2-p[u]/2,g[u]=Math.max(g[u],p[u]),g[d]=Math.min(g[d],p[d]+m[1-s]),o.x=m[0],o.y=m[1],o.markRedraw()}return g},t.prototype._layoutContentAndController=function(e,t,n,r,i,a,o,s){var c=this.getContentGroup(),l=this._containerGroup,u=this._controllerGroup;pn(e.get(`orient`),c,e.get(`itemGap`),r?n.width:null,r?null:n.height),pn(`horizontal`,u,e.get(`pageButtonItemGap`,!0));var d=c.getBoundingRect(),f=u.getBoundingRect(),p=this._showController=d[i]>n[i],m=[-d.x,-d.y];t||(m[r]=c[s]);var g=[0,0],_=[-f.x,-f.y],v=R(e.get(`pageButtonGap`,!0),e.get(`itemGap`,!0));p&&(e.get(`pageButtonPosition`,!0)===`end`?_[r]+=n[i]-f[i]:g[r]+=f[i]+v),_[1-r]+=d[a]/2-f[a]/2,c.setPosition(m),l.setPosition(g),u.setPosition(_);var y={x:0,y:0};if(y[i]=p?n[i]:d[i],y[a]=Math.max(d[a],f[a]),y[o]=Math.min(0,f[o]+_[1-r]),l.__rectSize=n[i],p){var x={x:0,y:0};x[i]=Math.max(n[i]-f[i]-v,0),x[a]=y[a],l.setClipPath(new h({shape:x})),l.__rectSize=x[i]}else u.eachChild(function(e){e.attr({invisible:!0,silent:!0})});var S=this._getPageInfo(e);return S.pageIndex!=null&&b(c,{x:S.contentPosition[0],y:S.contentPosition[1]},p?e:null),this._updatePageInfoView(e,S),y},t.prototype._pageGo=function(e,t,n){var r=this._getPageInfo(t)[e];r!=null&&n.dispatchAction({type:`legendScroll`,scrollDataIndex:r,legendId:t.id})},t.prototype._updatePageInfoView=function(e,t){var n=this._controllerGroup;H([`pagePrev`,`pageNext`],function(r){var i=t[r+`DataIndex`]!=null,a=n.childOfName(r);a&&(a.setStyle(`fill`,i?e.get(`pageIconColor`,!0):e.get(`pageIconInactiveColor`,!0)),a.cursor=i?`pointer`:`default`)});var r=n.childOfName(`pageText`),i=e.get(`pageFormatter`),a=t.pageIndex,o=a==null?0:a+1,s=t.pageCount;r&&i&&r.setStyle(`text`,W(i)?i.replace(`{current}`,o==null?``:o+``).replace(`{total}`,s==null?``:s+``):i({current:o,total:s}))},t.prototype._getPageInfo=function(e){var t=e.get(`scrollDataIndex`,!0),n=this.getContentGroup(),r=this._containerGroup.__rectSize,i=e.getOrient().index,a=bf[i],o=xf[i],s=this._findTargetItemIndex(t),c=n.children(),l=c[s],u=c.length,d=+!!u,f={contentPosition:[n.x,n.y],pageCount:d,pageIndex:d-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!l)return f;var p=v(l);f.contentPosition[i]=-p.s;for(var m=s+1,h=p,g=p,_=null;m<=u;++m)(!(_=v(c[m]))&&g.e>h.s+r||_&&!y(_,h.s))&&(h=g.i>h.i?g:_)&&(f.pageNextDataIndex??=h.i,++f.pageCount),g=_;for(m=s-1,h=p,g=p,_=null;m>=-1;--m)(_=v(c[m]))&&y(g,_.s)||!(h.i<g.i)||(g=h,f.pagePrevDataIndex??=h.i,++f.pageCount,++f.pageIndex),h=_;return f;function v(e){if(e){var t=e.getBoundingRect(),n=t[o]+e[o];return{s:n,e:n+t[a],i:e.__legendDataIndex}}}function y(e,t){return e.e>=t&&e.s<=t+r}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild(function(r,i){var a=r.__legendDataIndex;n==null&&a!=null&&(n=i),a===e&&(t=i)}),t??n):0;var t,n},t.type=`legend.scroll`,t}(lf);function Cf(e){jr(gf),e.registerComponentModel(_f),e.registerComponentView(Sf),function(e){e.registerAction(`legendScroll`,`legendscroll`,function(e,t){var n=e.scrollDataIndex;n!=null&&t.eachComponent({mainType:`legend`,subType:`scroll`,query:e},function(e){e.setScrollDataIndex(n)})})}(e)}function wf(e){jr(gf),jr(Cf)}var Tf=!1;function Ef(){Tf||(Tf=!0,jr([Hr,Md,wf,rf,ef,L]))}var Df={bar:[function(e){e.registerChartView(Il),e.registerSeriesModel(Ol),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Cl(`bar`)),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,{seriesType:`bar`,plan:v(),reset:function(e){if(function(e){return e.coordinateSystem&&e.coordinateSystem.type===`cartesian2d`}(e)){var t=e.getData(),n=e.coordinateSystem,r=n.getBaseAxis(),i=n.getOtherAxis(r),a=t.getDimensionIndex(t.mapDimension(i.dim)),o=t.getDimensionIndex(t.mapDimension(r.dim)),s=e.get(`showBackground`,!0),c=t.mapDimension(i.dim),l=t.getCalculationInfo(`stackResultDimension`),u=Ma(t,c)&&!!t.getCalculationInfo(`stackedOnSeries`),d=i.isHorizontal(),f=i.toGlobalCoord(i.dataToCoord(function(e){return e.scale.rawExtentInfo.makeRenderInfo().startValue}(i))),p=wl(e),m=e.get(`barMinHeight`)||0,h=l&&t.getDimensionIndex(l),g=t.getLayout(`size`),_=t.getLayout(`offset`);return{progress:function(e,t){for(var r,i=e.count,c=p&&dc(3*i),l=p&&s&&dc(3*i),v=p&&dc(i),y=n.master.getRect(),b=d?y.width:y.height,x=t.getStore(),S=0;(r=e.next())!=null;){var C=x.get(u?h:a,r),w=x.get(o,r),T=f,E=void 0;u&&(E=+C-x.get(a,r));var D=void 0,O=void 0,k=void 0,A=void 0;if(d){var j=n.dataToPoint([C,w]);u&&(T=n.dataToPoint([E,w])[0]),D=T,O=j[1]+_,k=j[0]-T,A=g,xt(k)<m&&(k=(k<0?-1:1)*m)}else j=n.dataToPoint([w,C]),u&&(T=n.dataToPoint([w,E])[1]),D=j[0]+_,O=T,k=g,A=j[1]-T,xt(A)<m&&(A=(A<=0?-1:1)*m);p?(c[S]=D,c[S+1]=O,c[S+2]=d?k:A,l&&(l[S]=d?y.x:D,l[S+1]=d?O:y.y,l[S+2]=b),v[r]=r):t.setItemLayout(r,{x:D,y:O,width:k,height:A}),S+=3}p&&t.setLayout({largePoints:c,largeDataIndices:v,largeBackgroundPoints:l,valueAxisHorizontal:d})}}}}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Ic(`bar`)),e.registerAction({type:`changeAxisOrder`,event:`changeAxisOrder`,update:`update`},function(e,t){var n=e.componentType||`series`;t.eachComponent({mainType:n,query:e},function(t){e.sortInfo&&t.axis.setCategorySortInfo(e.sortInfo)})}),El(e)}],line:[Lc],area:[Lc],scatter:[Lc],bubble:[Lc],pie:[hu],ofPie:[hu]},Of=new Set;function kf(t){for(let n of t.groups){let t=e.typeOf(n);if(Of.has(t))continue;Of.add(t);let r=e.get(t)?.modules?.()??Df[t]??[];r.length>0&&jr(r)}}function Af(e,t){Ef();let n=zi(e,{interactive:!1,...t});kf(e);let r=He(null,null,{renderer:`svg`,ssr:!0,width:e.width,height:e.height});return r.setOption(n),r}function jf(e,t){let n=Af(e,t);try{return n.renderToSVGString()}finally{n.dispose()}}function Mf(e,t,n){Ef();let r=t,i=n,a=zi(t,n);kf(t);let o=He(e,null,{renderer:`svg`,width:t.width,height:t.height});return o.setOption(a),{update:(e,t)=>{e.width===r.width&&e.height===r.height||o.resize({width:e.width,height:e.height}),r=e,t&&(i=t);let n=zi(e,i);kf(e),o.setOption(n,{notMerge:!0})},dispose:()=>o.dispose()}}export{Af as createHeadlessChart,Ef as ensureRegistered,Mf as mountChart,jf as renderChartToSVG};