@sheetxl/mcp 0.8.0-beta.17 → 0.8.0-beta.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{Dzz3yrKbECzg6caR.js → -iaCg5U9jrEDEl_O.js} +1 -1
- package/assets/{Bcak_hZpcIkB2gJD.js → 0hHP9xpWzhkDrCTL.js} +1 -1
- package/assets/{B7OyFSpBb1eBvMVd.js → 1bm0Yqgfehw1Z2QU.js} +13 -13
- package/assets/{BodrfKIAhDFD-X3t.js → 2nx2Wljhbuct4aKx.js} +1 -1
- package/assets/{IGAV8DdYH32cW8XU.js → 7MIo82Ay8jEFMBH-.js} +1 -1
- package/assets/{CJF3P7U7yBQVF2Cg.js → ArL5bPq60ZcPcwU9.js} +1 -1
- package/assets/{C2NPIWe0pLs3PAZM.js → B6A2URH-mIs7J54h.js} +2 -2
- package/assets/{CfA8o-FNret9-D6Y.js → B7vRFm79CUJ1VvFw.js} +1 -1
- package/assets/{4qMP71Fe1Ep8kbOX.js → B8Z4-80QEORmYOJ9.js} +1 -1
- package/assets/{Jd71-QCmFEcDcYSw.js → BGLlbVFS6J3lt9Lw.js} +1 -1
- package/assets/{BS4ZsfH5D6aemSpO.js → BHsQeg6najGesUM4.js} +1 -1
- package/assets/{DsCNtBR5jCeqmLBS.js → BPctZbHQFoqJNYzC.js} +2 -2
- package/assets/{B6NnxkSmEzCGZEZA.js → BQkQNqRh5xxYhBy4.js} +1 -1
- package/assets/{B8JX7a6VZlBNA_Bd.js → BSNegq0YcivZJmkf.js} +1663 -1663
- package/assets/{DE4xC78p5UtS7wH6.js → BTnTQBSbzYU7cwra.js} +1 -1
- package/assets/{qgW-p2sFhMtuu5yw.js → BUHEmX1fseJVV65_.js} +1 -1
- package/assets/{CwRhhoL5ynbe78dB.js → Bbky1A_gIgE8i0Oy.js} +1 -1
- package/assets/{z24-oIqP_fu2hsOt.js → BbvOmnXrmBNjeWjQ.js} +1 -1
- package/assets/{DPKeRb9GKmh_WCPv.js → Bbxkz6vmyZJftTd-.js} +1 -1
- package/assets/{CqwEHSKivMYw7tRZ.js → BcYdUKmFOf5rn2VZ.js} +1 -1
- package/assets/{Mgs_OJP41a-Nfac3.js → BfIJP4H3I51jnIVR.js} +1 -1
- package/assets/{Xe7sA_mEwDQpJjcF.js → BgUHR-HVjZDY4SaH.js} +2 -2
- package/assets/{DrHVew6gwOB6oxCn.js → BgVW1icycJewsx77.js} +1 -1
- package/assets/{lcIaYgz4tQGBlzlo.js → Bgi6ubwGkGYsILci.js} +86 -86
- package/assets/{BebXDUnlrDDRGW60.js → BiOrM24CFYL1JGFE.js} +2 -2
- package/assets/{CqjNsZ2OB4Kx6J3s.js → Bj1WHx6LIEq6RVGw.js} +8 -8
- package/assets/{dcvgOfBmWFTsXoT8.js → Bk6A5eONxLTBIA_p.js} +4 -4
- package/assets/{B7Nqa7V-v0cxGBux.js → Bk6SeqUJkn7ft1y1.js} +1 -1
- package/assets/{D6ON3ZLcTAXV3fO6.js → BkhdNc3LdmcyAjwk.js} +9803 -7812
- package/assets/{D5L35C8cbX16BSCF.js → Bl77DvFa09DuVVuj.js} +1147 -1082
- package/assets/{Dre79rTMoYYikNuB.js → Bpf9jHj5AFY9543y.js} +19 -19
- package/assets/{oJNJQJEDQCsjHSmo.js → Bq6ocyztkvzKxMMC.js} +1 -1
- package/assets/{DF7-oRscXc_vkMo8.js → Bw2Nxye4Qj10uA3o.js} +1 -1
- package/assets/{C4deMY87Q_haYyLF.js → Bz1lp0mtNAoPuPve.js} +1 -1
- package/assets/{C2ZX6ffXsMaEr2d2.js → BzkTa7l_e7R--ejo.js} +448 -448
- package/assets/{iBgLe32XErisaUSr.js → C06iKc7jZ6affk2m.js} +1 -1
- package/assets/{BMJhHHX2LWgOJWGz.js → C17Wflhw5IFSgFFY.js} +1 -1
- package/assets/{PbBzI4PlKpCgULLd.js → C53f6C0pAU7_9FI-.js} +1 -1
- package/assets/{UH_biJmLrI9SvckA.js → C7Q4V5mU0wsErspO.js} +3 -3
- package/assets/{kpS1vY0DcE9p8JnI.js → CA_22AL82sRhLAko.js} +2 -2
- package/assets/{BT8AGlSg2t7V1QNj.js → CBSSZrizrucIG_9i.js} +764 -767
- package/assets/{YQtUMMGmb1_WFsh_.js → CE4VYOniMmY8sXQ_.js} +1 -1
- package/assets/{CaJ9j3l0cERnYqDS.js → CIOlYUuBZat8FhHa.js} +1 -1
- package/assets/{BvDcHHJvQMRHthm-.js → CIxf9Y_JsuEEO7Nu.js} +1 -1
- package/assets/{Bw_FtA-1886HMCLJ.js → CKvP54bJ4GkUqcZi.js} +3 -3
- package/assets/{DnTfXqCnRCe-1QYI.js → CNPUPTd9h7hwijpZ.js} +64 -64
- package/assets/{DoBvgI3Ry8DlGzwQ.js → CQZq4cA5kbES6htE.js} +1 -1
- package/assets/{BjnQVl1lb1KEbt2D.js → CQiv3YkDRDxTjy0r.js} +23 -23
- package/assets/{BSY9Tbmz6VEY_F_x.js → CWHuM2GYuKmi0rZx.js} +1 -1
- package/assets/{Dgi2xwb2DN2Gybj3.js → CYTPpV3lqNGOwme7.js} +2 -2
- package/assets/{CLze192iF2o-aETZ.js → C_v4hb9WXIt639Cm.js} +1 -1
- package/assets/{-cMvbaW1kvHslPKX.js → CcGrcjoI12MaDmwV.js} +2 -2
- package/assets/{BJBoygm-gY68bLAP.js → Cgf5GQVN-D8SlQ7A.js} +15 -15
- package/assets/{D336KioeSjd-T8n3.js → CiJq0zSDKpaKhL3y.js} +2 -2
- package/assets/{1feDuXw6tBXu2XFg.js → Cj4MYfqHewu8IOOL.js} +1 -1
- package/assets/{BUV7BlOZcuPgDZ__.js → CjoRkjB9NzS4LaFy.js} +1 -1
- package/assets/{BjhAYfsKC8iEbtgn.js → CjrzyKFdie6KYfsG.js} +30 -30
- package/assets/{Cl7HHR6Vc9S4n3AP.js → CkMXAUkUuJ2LJUBE.js} +1 -1
- package/assets/{G2Wjyx_ETCAcofwm.js → CoXgI3MEnvkXeshj.js} +1294 -1267
- package/assets/{YFiGplEq1G4XdCJ2.js → CqOzqRIQFCnEegoB.js} +1 -1
- package/assets/{CshK6Ew7OQ7mngI3.js → CqvcgwQ0UcKndrhO.js} +2 -2
- package/assets/{CMRLNLqYkiqCLMRa.js → CrjUfkCuRaXUC8X8.js} +3 -3
- package/assets/{FvxN6PPps-rNPDo8.js → CubwsTFIaEVf039H.js} +1 -1
- package/assets/{BmM-nHMAAuNatCcN.js → Cur_-XiBPijLpwxX.js} +1 -1
- package/assets/{7TRx0dMYnL2i4tqL.js → Curuj_knAdRpMy1L.js} +265 -265
- package/assets/{DDhPOQPc-lpyZrUJ.js → Cz7tKgNBbnr4DZCb.js} +4 -4
- package/assets/{C3Q-fjiZZ15waCq_.js → D-LrOz3Yvp17bUT8.js} +2 -2
- package/assets/{0kfwZuOHUkJmVjg6.js → D005GbIBowRGfwed.js} +6 -6
- package/assets/{BKRLtOdVOUTrLjQN.js → D06A3fKIe3WCTFru.js} +28 -28
- package/assets/{8cVPexxAVrFJ9QLX.js → D1ZekPxeTGzhFy2L.js} +1 -1
- package/assets/{C46RpMrfF6FiEFI7.js → D1kI9nJRL1RUF3-E.js} +1 -1
- package/assets/{B2UxLSteMiPlg8Uu.js → D1nQ_BminCM0cyH0.js} +1 -1
- package/assets/{Dkg-LQVsZlrHk7A8.js → D4p9Pv82ECKCOlua.js} +1 -1
- package/assets/{DSsH28SW8CMrSL-q.js → D5OYqo56iGB-5gFG.js} +1 -1
- package/assets/{COa691om4fLN4CUy.js → D6fQheA4qCS5CxYQ.js} +1 -1
- package/assets/{OHBzl-tZOi9Ni8YV.js → D990KjcBrCaAEz5k.js} +1 -1
- package/assets/{BQYpVYbvfWuUJgdx.js → DAnSdO8615XsOPNe.js} +1 -1
- package/assets/{z7nDK_gfX7G37XbZ.js → DFlL4pAqxaQ_hVe1.js} +115 -115
- package/assets/{Cr6lm0oXZJaaoAmD.js → DHL-ZmN5GzB4pIrM.js} +1 -1
- package/assets/{BKjovBsLpX2Fkhov.js → DIPDNtbm8FAru-FQ.js} +120 -120
- package/assets/{Cz4H3Qge2u8er3Ny.js → DLJH6ppG9VHjHe_z.js} +3 -3
- package/assets/{DMuOMpgIhVgB3eG8.js → DNtWf9lfGjzoB9Hy.js} +1 -1
- package/assets/{DeEZvPW-VvlE28oE.js → DOg_zvSkhsKmw4q1.js} +3 -3
- package/assets/{C7iHn3y3HVBHflpA.js → DS9HD6_BPxzdun0X.js} +33 -33
- package/assets/{BgldX21zhey2aR9D.js → DSNaHPvgqymqpsko.js} +1 -1
- package/assets/{CUbCBf24Ie4A2l4R.js → DT_kCIZ600UsFy4t.js} +2 -2
- package/assets/{B2BfjRdJGZs6afVL.js → DXORLAVmseFlsxkG.js} +2 -2
- package/assets/{CWLleOolFzyT0COW.js → DXe8SG12UJoGbbWR.js} +1 -1
- package/assets/{DV6WSFmSEKfb3d2s.js → D_6TeeMN5zmoQPTm.js} +108 -108
- package/assets/{CLgvdaqeFlESLvbF.js → Di_C31GTbBJ_xVOK.js} +1 -1
- package/assets/{BGZ_ltNFYvnAmbVR.js → DnMDfty7pU96BIEJ.js} +1 -1
- package/assets/{BlbxiLf1zD6_fWZs.js → DngcuWO2cSuMCMu1.js} +1 -1
- package/assets/{D_peM8fbRgGaWvpq.js → DppU35gFSUPaiCQH.js} +1 -1
- package/assets/{BdijGsy5W7yZ_I_n.js → DrkfG324qZRPckuC.js} +1 -1
- package/assets/{BhCbCEPpDzhg5nqL.js → Ds6LQkRDwXsJ-CFR.js} +1 -1
- package/assets/{nQbVdQrfdz3osBdi.js → DtD0J-7IetHv5o6E.js} +3 -3
- package/assets/{CsiIgnb_L2x2Go6g.js → DwWcXC4pUR3U2WXU.js} +1 -1
- package/assets/{Ljri8sTW3dWT4clD.js → DwcKSqV5YEBBA8hY.js} +1 -1
- package/assets/{CyI1eGGzJX8nJXaT.js → DxKZjKyewqvj46S2.js} +2 -2
- package/assets/{Bj4BFLBC9Tf6SGSt.js → DxTzG7VM8v4WJ6cI.js} +1 -1
- package/assets/{BX5xFncPLyeN7TqA.js → EkavVNuGWG95UggH.js} +5 -5
- package/assets/{AnF1Kh3Vo2AniIYO.js → GZJ4AFFt8qKRADOa.js} +2 -2
- package/assets/{DYJcfrNUUJQtxXWX.js → Gd_0grQd-3D1VPXW.js} +1 -1
- package/assets/{B9M_sgHpoc-op6FF.js → HVm22OJ1gEeY8kii.js} +1 -1
- package/assets/{BSAdmOdx3brRE9LW.js → LV6tvjnxRzrWaFb8.js} +1 -1
- package/assets/{Bz1ImBvJwPwBrA5j.js → Ln7XTzksutZHFpml.js} +1 -1
- package/assets/{CtmrBbpapaNwjwNB.js → Se9JmvmEtu4MfXJh.js} +52 -52
- package/assets/{B3mh2tuvP-lMP6f_.js → b6GPrIkdzfTW4f2j.js} +1 -1
- package/assets/{MW2nt7se27FlH9Yb.js → bJ-XKvDf7IkAafUI.js} +3 -7
- package/assets/{Bni-y4FJS4rkFYtn.js → exNO4fmccU8Aq8cE.js} +2227 -2121
- package/assets/gCkru9Vv-Ban4DCD.js +14 -0
- package/assets/{B9J8nV-dh6jHpzZI.js → ht0UxaAlRnuYUvpx.js} +1 -1
- package/assets/{D0OQ6ka8so0BWPwL.js → iP-shs7tsDGMVvQh.js} +1 -1
- package/assets/{BBC_WF8BcAH-k_cQ.js → jPim6WG_KS-ZDker.js} +1 -1
- package/assets/{BOx4Ut_Rme7NH34X.js → mrif6ZBbTbZKYaLJ.js} +1 -1
- package/assets/{DidhZpf9qJAei29Y.js → rT5f4v0Q_61nHkff.js} +1 -1
- package/assets/{APP8AzsNgQXHTalA.js → udbHvSLquJ5xGK3R.js} +2 -2
- package/assets/{Bxkx8QokmRNyXbOI.js → vb-L2Q2jyjjgDvJy.js} +6 -6
- package/assets/{BJdWgj1hv57eGVl4.js → zEyWjY3NhC8w_spQ.js} +436 -436
- package/assets/{D5VFuX1h50V2jLmZ.js → zkoJXSxpRzqfbG8k.js} +201 -200
- package/index.js +1164 -1093
- package/lib.js +1 -1
- package/licenses/dependencies.txt +59 -59
- package/package.json +2 -2
- package/resources/locales/@sheetxl/sdk/de/model.msg.json +15 -0
- package/resources/locales/@sheetxl/sdk/en/model.msg.json +15 -0
- package/screenshot-page/assets/{C71ZZMVLfHdPl441.js → 1yHlU53ypZZelMPx.js} +1 -1
- package/screenshot-page/assets/A_-Jwzwmm3lkcm2f.js +586 -0
- package/screenshot-page/assets/{Btgo0VFTT0JxuaP3.js → B-8IMo2f1yGNXOyz.js} +86 -90
- package/screenshot-page/assets/BF6igzahAW9pl35p.js +1 -0
- package/screenshot-page/assets/{Bh33WyohJvbKZVQN.js → BU5vg917ZnXC04e-.js} +2 -2
- package/screenshot-page/assets/BWDqL5_mwspr6CjI.js +3 -0
- package/screenshot-page/assets/BX9VkTqZoroo08EG.js +13 -0
- package/screenshot-page/assets/BdDouZl3VrM4yBP5.js +2 -0
- package/screenshot-page/assets/{CB2mQ5rbaSw2W4ik.js → BqlVqRKpsFGl-elI.js} +3 -3
- package/screenshot-page/assets/{CfkssmHURDicfYvR.js → BuzI4z8RJGOw8BZD.js} +1 -1
- package/screenshot-page/assets/{DqXO_Zw1Cp7rAQ04.js → C7mXat-6esc1AmRD.js} +2 -2
- package/screenshot-page/assets/{B8qybUclSjEYP5FJ.js → CFl15-2FAF9f3V7L.js} +2 -2
- package/screenshot-page/assets/{CUZobZ3mfNAdEisS.js → CJmdRzGWq0FZMrp5.js} +1 -1
- package/screenshot-page/assets/{CTjUtxDw6Z2I9OGc.js → CLcTX_nmvaVPsxDl.js} +1 -1
- package/screenshot-page/assets/COpZTXe_J1mSpeYD.js +5 -0
- package/screenshot-page/assets/{BMf827t1Ul65MHd5.js → CQukCzhuewMuFOlO.js} +1 -1
- package/screenshot-page/assets/CZq2dMHs2MHHyyBl.js +1 -0
- package/screenshot-page/assets/CaTGa2NvuuE3qJAV.js +1 -0
- package/screenshot-page/assets/Cb8ORg9ENgscK6yl.js +2 -0
- package/screenshot-page/assets/Chq6rvtA5qZAwYG4.js +1 -0
- package/screenshot-page/assets/ClWDZixRy4DFZdI5.js +1 -0
- package/screenshot-page/assets/CmNlzN3DCl87wNU2.js +1 -0
- package/screenshot-page/assets/CoPUxkU9zZy0dXti.js +2 -0
- package/screenshot-page/assets/{DXaM3CulPA3aPGV1.js → Cpwg3bWAqBBcgBmv.js} +2 -2
- package/screenshot-page/assets/{BE8ea8S0Q-qogeEs.js → CqogMOf7MzkOk7as.js} +2 -2
- package/screenshot-page/assets/{BKwVcuWOKeH2xREA.js → CrUIo7hXByCWY7in.js} +1 -1
- package/screenshot-page/assets/Cv-YUArreXqhafcU.js +2 -0
- package/screenshot-page/assets/{DgtqX4DiBgkepVZZ.js → Cx1kZ2u_8JFV2Q8D.js} +1 -1
- package/screenshot-page/assets/{BD96fN2dSVuoME09.js → Cx9lvo3Q1xOwYkRK.js} +4 -4
- package/screenshot-page/assets/D0nZlczIH0ULuSyL.js +3 -0
- package/screenshot-page/assets/D1ZZiOS7_HFjpZCA.js +1 -0
- package/screenshot-page/assets/D23_69pojBfIh4nV.js +5 -0
- package/screenshot-page/assets/D24UBy2L73pOCPPw.js +1 -0
- package/screenshot-page/assets/D2q4M3I5Jmxm85P2.js +1 -0
- package/screenshot-page/assets/D6LmZnV2h3Kg7G3e.js +1 -0
- package/screenshot-page/assets/{BYQZ8o8k3-MDoNat.js → D6Yv5cc1JE7DGd6j.js} +1 -1
- package/screenshot-page/assets/DAkSmFRVds51vhiy.js +1 -0
- package/screenshot-page/assets/DMhOGCTy8V0N14gY.js +1 -0
- package/screenshot-page/assets/DUFPgv-3CtD_sCVO.js +1 -0
- package/screenshot-page/assets/{CSMEGhAHxl5-4FxB.js → DeGMS3crYErjsRrw.js} +1 -1
- package/screenshot-page/assets/{D_rtIYQ7FDC2CoEn.js → DegZKTNqt1LRnSxY.js} +1 -1
- package/screenshot-page/assets/{CT7cY57t9j1sBhAy.js → DjVxI3p3ssmCtYky.js} +1 -1
- package/screenshot-page/assets/DknSteOdQ6CdF0RT.js +1 -0
- package/screenshot-page/assets/Dt1A-DUBfvyouz_T.js +1 -0
- package/screenshot-page/assets/{DcUOAH274IbYOuK1.js → DwNHMH9f_lQyn50d.js} +1 -1
- package/screenshot-page/assets/{D0koRjO2KnWQ1fNV.js → DwuLl9Ua1k8m9KcK.js} +1 -1
- package/screenshot-page/assets/DzlbsQ0qqdQEl80f.js +1 -0
- package/screenshot-page/assets/EY31tFQrw7iYFrr6.js +4 -0
- package/screenshot-page/assets/{B1W17rc9ilPFCh31.js → MzJpKWgPrxR1UN-Y.js} +1 -1
- package/screenshot-page/assets/{-N4OYIMgf6f5vgNy.js → RutPv2GFWmeBiWvn.js} +1 -1
- package/screenshot-page/assets/{DeyRZ5rprDbRbuf4.js → Tj3B5At0OAN3tDza.js} +1 -1
- package/screenshot-page/assets/fQ13z3k3bntY-jfw.js +1 -0
- package/screenshot-page/assets/oO6aFwepb3DDkGYF.js +39 -0
- package/screenshot-page/assets/{DdXSKhFUAsKUsQ1u.js → pH9rKZYDE8xrhkC4.js} +1 -1
- package/screenshot-page/assets/qFyplGXRu7IepHio.js +1 -0
- package/screenshot-page/assets/w7IQEh1FiqZA6o5y.js +42 -0
- package/screenshot-page/assets/zEVoxCTt-ZW8Aowg.js +16 -0
- package/screenshot-page/assets/{DtihumgXQ7ETaN0A.js → zvxBjll3jnL0-vNn.js} +2 -2
- package/screenshot-page/index.html +12 -11
- package/screenshot-page/resources/locales/@sheetxl/sdk/de/model.msg.json +15 -0
- package/screenshot-page/resources/locales/@sheetxl/sdk/en/model.msg.json +15 -0
- package/types/scripting-api.json +11444 -11299
- package/types/scripting-enums.json +22 -1
- package/types/scripting.d.ts +631 -15
- package/assets/CSLLHl-zum7m1CJl.js +0 -14
- package/screenshot-page/assets/7Xk_eQAcM_HgWrOC.js +0 -1
- package/screenshot-page/assets/B8UkvH0o9n_G5UO9.js +0 -3
- package/screenshot-page/assets/BMwQInar0xVS5FRu.js +0 -1
- package/screenshot-page/assets/BNMBa8EZgWX2Eb3c.js +0 -1
- package/screenshot-page/assets/BQCyH9YbEgnH78Ke.js +0 -2
- package/screenshot-page/assets/BcDxaEii3arJqOym.js +0 -1
- package/screenshot-page/assets/Be-rukvcufhLamH5.js +0 -1
- package/screenshot-page/assets/C2ty_K_uix4ooip6.js +0 -1
- package/screenshot-page/assets/C9mUKjQ3yEzRu9j2.js +0 -2
- package/screenshot-page/assets/CCVAsuUimIJOkBnk.js +0 -1
- package/screenshot-page/assets/CFfgJlXaIS8QMx5O.js +0 -1
- package/screenshot-page/assets/CN8u05DjKwNHbUHN.js +0 -5
- package/screenshot-page/assets/COoMVTzF50qBNFEu.js +0 -39
- package/screenshot-page/assets/C_OuKbe6z1it80cj.js +0 -1
- package/screenshot-page/assets/Cbcv49b9jWyY4HKj.js +0 -2
- package/screenshot-page/assets/CtZFqwLoeJOvwFrl.js +0 -42
- package/screenshot-page/assets/Cz6KFmsp267l_VZS.js +0 -1
- package/screenshot-page/assets/D6CzedWHXTesD55R.js +0 -1
- package/screenshot-page/assets/DCP8JXEeiwAMiVD2.js +0 -1
- package/screenshot-page/assets/DQAZPADvH5lhlMnK.js +0 -1
- package/screenshot-page/assets/DQBUH0j44Vtrykua.js +0 -13
- package/screenshot-page/assets/DRncpwDkZZX8rL9S.js +0 -20
- package/screenshot-page/assets/DSKOOgcJQeqIc9Us.js +0 -3
- package/screenshot-page/assets/DTrnAtpccj55fGg5.js +0 -1
- package/screenshot-page/assets/Djl40tfWoPJSvqtv.js +0 -1
- package/screenshot-page/assets/LYyM_ig973jLdOU0.js +0 -2
- package/screenshot-page/assets/TCImIYUUdVD4Z35I.js +0 -1
- package/screenshot-page/assets/Tph2vYqw17-NBCtd.js +0 -1
- package/screenshot-page/assets/dQsis-90Up-pIkSq.js +0 -4
- package/screenshot-page/assets/dXn1GWWjYmuLb1HF.js +0 -586
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{n as e}from"./DKVB6ddRfDJatYid.js";var t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},t(e,n)};function n(e,n){if(typeof n!=`function`&&n!==null)throw TypeError(`Class extends value `+String(n)+` is not a constructor or null`);function r(){this.constructor=e}t(e,n),e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}var r=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},i=new function(){this.browser=new r,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<`u`};typeof wx==`object`&&typeof wx.getSystemInfoSync==`function`?(i.wxa=!0,i.touchEventsSupported=!0):typeof document>`u`&&typeof self<`u`?i.worker=!0:!i.hasGlobalWindow||`Deno`in window||typeof navigator<`u`&&typeof navigator.userAgent==`string`&&navigator.userAgent.indexOf(`Node.js`)>-1?(i.node=!0,i.svgSupported=!0):function(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);if(r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(`.`)[0]>18),o&&(n.weChat=!0),t.svgSupported=typeof SVGRect<`u`,t.touchEventsSupported=`ontouchstart`in window&&!n.ie&&!n.edge,t.pointerEventsSupported=`onpointerdown`in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<`u`){var s=document.documentElement.style;t.transform3dSupported=(n.ie&&`transition`in s||n.edge||`WebKitCSSMatrix`in window&&`m11`in new WebKitCSSMatrix||`MozPerspective`in s)&&!(`OTransition`in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}}(navigator.userAgent,i);var a,o,s=function(e){var t={};if(typeof JSON>`u`)return t;for(var n=0;n<e.length;n++)t[String.fromCharCode(n+32)]=(e.charCodeAt(n)-20)/100;return t}(`007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N`),c={createCanvas:function(){return typeof document<`u`&&document.createElement(`canvas`)},measureText:function(e,t){if(!a){var n=c.createCanvas();a=n&&n.getContext(`2d`)}if(a)return o!==t&&(o=a.font=t||`12px sans-serif`),a.measureText(e);e||=``;var r=/((?:\d+)?\.?\d*)px/.exec(t||=`12px sans-serif`),i=r&&+r[1]||12,l=0;if(t.indexOf(`mono`)>=0)l=i*e.length;else for(var u=0;u<e.length;u++){var d=s[e[u]];l+=d==null?i:d*i}return{width:l}},loadImage:function(e,t,n){var r=new Image;return r.onload=t,r.onerror=n,r.src=e,r},getTime:function(){return Date.now?Date.now():+new Date}},l=N([`Function`,`RegExp`,`Date`,`Error`,`CanvasGradient`,`CanvasPattern`,`Image`,`Canvas`],function(e,t){return e[`[object `+t+`]`]=!0,e},{}),u=N([`Int8`,`Uint8`,`Uint8Clamped`,`Int16`,`Uint16`,`Int32`,`Uint32`,`Float32`,`Float64`],function(e,t){return e[`[object `+t+`Array]`]=!0,e},{}),d=Object.prototype.toString,f=Array.prototype,p=f.forEach,m=f.filter,h=f.slice,g=f.map,_=function(){}.constructor,v=_?_.prototype:null,y=`__proto__`,b=2311,x=2**53-1;function S(){return b>=x&&(b=0),b++}function C(){var e=[...arguments];typeof console<`u`&&console.error.apply(console,e)}function w(e){if(typeof e!=`object`||!e)return e;var t=e,n=d.call(e);if(n===`[object Array]`){if(!pe(e)){t=[];for(var r=0,i=e.length;r<i;r++)t[r]=w(e[r])}}else if(u[n]){if(!pe(e)){var a=e.constructor;if(a.from)t=a.from(e);else for(t=new a(e.length),r=0,i=e.length;r<i;r++)t[r]=e[r]}}else if(!l[n]&&!pe(e)&&!U(e))for(var o in t={},e)e.hasOwnProperty(o)&&o!==y&&(t[o]=w(e[o]));return t}function T(e,t,n){if(!V(t)||!V(e))return n?w(t):e;for(var r in t)if(t.hasOwnProperty(r)&&r!==y){var i=e[r],a=t[r];!V(a)||!V(i)||L(a)||L(i)||U(a)||U(i)||re(a)||re(i)||pe(a)||pe(i)?!n&&r in e||(e[r]=w(t[r])):T(i,a,n)}return e}function E(e,t){if(Object.assign)Object.assign(e,t);else for(var n in t)t.hasOwnProperty(n)&&n!==y&&(e[n]=t[n]);return e}function D(e,t,n){for(var r=F(t),i=0,a=r.length;i<a;i++){var o=r[i];(n?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}c.createCanvas;function O(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n}return-1}function k(e,t,n){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(t),i=0;i<r.length;i++){var a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else D(e,t,n)}function A(e){return!!e&&typeof e!=`string`&&typeof e.length==`number`}function j(e,t,n){if(e&&t){if(e.forEach&&e.forEach===p)e.forEach(t,n);else if(e.length===+e.length)for(var r=0,i=e.length;r<i;r++)t.call(n,e[r],r,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(n,e[a],a,e)}}function M(e,t,n){if(!e)return[];if(!t)return se(e);if(e.map&&e.map===g)return e.map(t,n);for(var r=[],i=0,a=e.length;i<a;i++)r.push(t.call(n,e[i],i,e));return r}function N(e,t,n,r){if(e&&t){for(var i=0,a=e.length;i<a;i++)n=t.call(r,n,e[i],i,e);return n}}function P(e,t,n){if(!e)return[];if(!t)return se(e);if(e.filter&&e.filter===m)return e.filter(t,n);for(var r=[],i=0,a=e.length;i<a;i++)t.call(n,e[i],i,e)&&r.push(e[i]);return r}function ee(e,t,n){if(e&&t){for(var r=0,i=e.length;r<i;r++)if(t.call(n,e[r],r,e))return e[r]}}function F(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n);return t}var I=v&&R(v.bind)?v.call.bind(v.bind):function(e,t){var n=[...arguments].slice(2);return function(){return e.apply(t,n.concat(h.call(arguments)))}};function te(e){var t=[...arguments].slice(1);return function(){return e.apply(this,t.concat(h.call(arguments)))}}function L(e){return Array.isArray?Array.isArray(e):d.call(e)===`[object Array]`}function R(e){return typeof e==`function`}function z(e){return typeof e==`string`}function ne(e){return d.call(e)===`[object String]`}function B(e){return typeof e==`number`}function V(e){var t=typeof e;return t===`function`||!!e&&t===`object`}function re(e){return!!l[d.call(e)]}function H(e){return!!u[d.call(e)]}function U(e){return typeof e==`object`&&typeof e.nodeType==`number`&&typeof e.ownerDocument==`object`}function W(e){return e.colorStops!=null}function ie(e){return e!=e}function ae(){for(var e=[...arguments],t=0,n=e.length;t<n;t++)if(e[t]!=null)return e[t]}function G(e,t){return e??t}function oe(e,t,n){return e??t??n}function se(e){var t=[...arguments].slice(1);return h.apply(e,t)}function ce(e){if(typeof e==`number`)return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function le(e,t){if(!e)throw Error(t)}function ue(e){return e==null?null:typeof e.trim==`function`?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,``)}var de=`__ec_primitive__`;function fe(e){e[de]=!0}function pe(e){return e[de]}var me=function(){function e(){this.data={}}return e.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},e.prototype.has=function(e){return this.data.hasOwnProperty(e)},e.prototype.get=function(e){return this.data[e]},e.prototype.set=function(e,t){return this.data[e]=t,this},e.prototype.keys=function(){return F(this.data)},e.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},e}(),he=typeof Map==`function`,ge=function(){function e(t){var n=L(t);this.data=he?new Map:new me;var r=this;function i(e,t){n?r.set(e,t):r.set(t,e)}t instanceof e?t.each(i):t&&j(t,i)}return e.prototype.hasKey=function(e){return this.data.has(e)},e.prototype.get=function(e){return this.data.get(e)},e.prototype.set=function(e,t){return this.data.set(e,t),t},e.prototype.each=function(e,t){this.data.forEach(function(n,r){e.call(t,n,r)})},e.prototype.keys=function(){var e=this.data.keys();return he?Array.from(e):e},e.prototype.removeKey=function(e){this.data.delete(e)},e}();function K(e){return new ge(e)}function _e(e,t){var n;if(Object.create)n=Object.create(e);else{var r=function(){};r.prototype=e,n=new r}return t&&E(n,t),n}function q(e,t){return e.hasOwnProperty(t)}function ve(){}var ye=180/Math.PI;function be(e,t){return e??=0,t??=0,[e,t]}function xe(e){return[e[0],e[1]]}function Se(e,t,n){return e[0]=t,e[1]=n,e}function Ce(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function we(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function Te(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function Ee(e,t){var n=function(e){return Math.sqrt(function(e){return e[0]*e[0]+e[1]*e[1]}(e))}(t);return n===0?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function De(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Oe=De,ke=function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])};function Ae(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function je(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function Me(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function Ne(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}var Pe=function(e,t){this.target=e,this.topTarget=t&&t.topTarget},Fe=function(){function e(e){this.handler=e,e.on(`mousedown`,this._dragStart,this),e.on(`mousemove`,this._drag,this),e.on(`mouseup`,this._dragEnd,this)}return e.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new Pe(t,e),`dragstart`,e.event))},e.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,r=e.offsetY,i=n-this._x,a=r-this._y;this._x=n,this._y=r,t.drift(i,a,e),this.handler.dispatchToElement(new Pe(t,e),`drag`,e.event);var o=this.handler.findHover(n,r,t).target,s=this._dropTarget;this._dropTarget=o,t!==o&&(s&&o!==s&&this.handler.dispatchToElement(new Pe(s,e),`dragleave`,e.event),o&&o!==s&&this.handler.dispatchToElement(new Pe(o,e),`dragenter`,e.event))}},e.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new Pe(t,e),`dragend`,e.event),this._dropTarget&&this.handler.dispatchToElement(new Pe(this._dropTarget,e),`drop`,e.event),this._draggingTarget=null,this._dropTarget=null},e}(),Ie=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||={};var i=this._$handlers;if(typeof t==`function`&&(r=n,n=t,t=null),!n||!e)return this;var a=this._$eventProcessor;t!=null&&a&&a.normalizeQuery&&(t=a.normalizeQuery(t)),i[e]||(i[e]=[]);for(var o=0;o<i[e].length;o++)if(i[e][o].h===n)return this;var s={h:n,query:t,ctx:r||this,callAtLast:n.zrEventfulCallAtLast},c=i[e].length-1,l=i[e][c];return l&&l.callAtLast?i[e].splice(c,0,s):i[e].push(s),this},e.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},e.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var r=[],i=0,a=n[e].length;i<a;i++)n[e][i].h!==t&&r.push(n[e][i]);n[e]=r}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},e.prototype.trigger=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=n.length,o=0;o<a;o++){var s=n[o];if(!r||!r.filter||s.query==null||r.filter(e,s.query))switch(i){case 0:s.h.call(s.ctx);break;case 1:s.h.call(s.ctx,t[0]);break;case 2:s.h.call(s.ctx,t[0],t[1]);break;default:s.h.apply(s.ctx,t)}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e.prototype.triggerWithContext=function(e){var t=[...arguments].slice(1);if(!this._$handlers)return this;var n=this._$handlers[e],r=this._$eventProcessor;if(n)for(var i=t.length,a=t[i-1],o=n.length,s=0;s<o;s++){var c=n[s];if(!r||!r.filter||c.query==null||r.filter(e,c.query))switch(i){case 0:c.h.call(a);break;case 1:c.h.call(a,t[0]);break;case 2:c.h.call(a,t[0],t[1]);break;default:c.h.apply(a,t.slice(1,i-1))}}return r&&r.afterTrigger&&r.afterTrigger(e),this},e}(),Le=Math.log(2);function Re(e,t,n,r,i,a){var o=r+`-`+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var c=Math.round(Math.log((1<<s)-1&~i)/Le);return e[n][c]}for(var l=r|1<<n,u=n+1;r&1<<u;)u++;for(var d=0,f=0,p=0;f<s;f++){var m=1<<f;m&i||(d+=(p%2?-1:1)*e[n][f]*Re(e,t-1,u,l,i|m,a),p++)}return a[o]=d,d}function ze(e,t){var n=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],r={},i=Re(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]??(a[s]=0),a[s]+=((o+s)%2?-1:1)*Re(n,7,+(o===0),1<<o,1<<s,r)/i*t[o];return function(e,t,n){var r=t*a[6]+n*a[7]+1;e[0]=(t*a[0]+n*a[1]+a[2])/r,e[1]=(t*a[3]+n*a[4]+a[5])/r}}}var Be=`___zrEVENTSAVED`,Ve=[];function He(e,t,n,r,i){return We(Ve,t,r,i,!0)&&We(e,n,Ve[0],Ve[1])}function Ue(e,t){function n(e){var t=e[Be];t&&(t.clearMarkers&&t.clearMarkers(),delete e[Be])}e&&n(e),t&&n(t)}function We(e,t,n,r,a){if(t.getBoundingClientRect&&i.domSupported&&!Ge(t)){var o=t[Be]||(t[Be]={}),s=function(e,t,n){for(var r=n?`invTrans`:`trans`,i=t[r],a=t.srcCoords,o=[],s=[],c=!0,l=0;l<4;l++){var u=e[l].getBoundingClientRect(),d=2*l,f=u.left,p=u.top;o.push(f,p),c=c&&a&&f===a[d]&&p===a[d+1],s.push(e[l].offsetLeft,e[l].offsetTop)}return c&&i?i:(t.srcCoords=o,t[r]=n?ze(s,o):ze(o,s))}(function(e,t){var n=t.markers;if(n)return n;n=t.markers=[];for(var r=[`left`,`right`],i=[`top`,`bottom`],a=0;a<4;a++){var o=document.createElement(`div`),s=a%2,c=(a>>1)%2;o.style.cssText=[`position: absolute`,`visibility: hidden`,`padding: 0`,`margin: 0`,`border-width: 0`,`user-select: none`,`width:0`,`height:0`,r[s]+`:0`,i[c]+`:0`,r[1-s]+`:auto`,i[1-c]+`:auto`,``].join(`!important;`),e.appendChild(o),n.push(o)}return t.clearMarkers=function(){j(n,function(e){e.parentNode&&e.parentNode.removeChild(e)})},n}(t,o),o,a);if(s)return s(e,n,r),!0}return!1}function Ge(e){return e.nodeName.toUpperCase()===`CANVAS`}var Ke=/([&<>"'])/g,qe={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`};function Je(e){return e==null?``:(e+``).replace(Ke,function(e,t){return qe[t]})}var Ye=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Xe=[],Ze=i.browser.firefox&&+i.browser.version.split(`.`)[0]<39;function Qe(e,t,n,r){return n||={},r?$e(e,t,n):Ze&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX==null?$e(e,t,n):(n.zrX=t.offsetX,n.zrY=t.offsetY),n}function $e(e,t,n){if(i.domSupported&&e.getBoundingClientRect){var r=t.clientX,a=t.clientY;if(Ge(e)){var o=e.getBoundingClientRect();n.zrX=r-o.left,n.zrY=a-o.top;return}if(We(Xe,e,r,a))return n.zrX=Xe[0],void(n.zrY=Xe[1])}n.zrX=n.zrY=0}function et(e){return e||window.event}function tt(e,t,n){if((t=et(t)).zrX!=null)return t;var r=t.type;if(r&&r.indexOf(`touch`)>=0){var i=r===`touchend`?t.changedTouches[0]:t.targetTouches[0];i&&Qe(e,i,t,n)}else{Qe(e,t,t,n);var a=function(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;return n==null||r==null?t:3*Math.abs(r===0?n:r)*(r>0?-1:r<0?1:n>0?-1:1)}(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var o=t.button;return t.which==null&&o!==void 0&&Ye.test(t.type)&&(t.which=1&o?1:2&o?3:4&o?2:0),t}function nt(e,t,n,r){e.removeEventListener(t,n,r)}var rt=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},it=function(){function e(){this._track=[]}return e.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(e,t,n){var r=e.touches;if(r){for(var i={points:[],touches:[],target:t,event:e},a=0,o=r.length;a<o;a++){var s=r[a],c=Qe(n,s,{});i.points.push([c.zrX,c.zrY]),i.touches.push(s)}this._track.push(i)}},e.prototype._recognize=function(e){for(var t in ot)if(ot.hasOwnProperty(t)){var n=ot[t](this._track,e);if(n)return n}},e}();function at(e){var t=e[1][0]-e[0][0],n=e[1][1]-e[0][1];return Math.sqrt(t*t+n*n)}var ot={pinch:function(e,t){var n=e.length;if(n){var r,i=(e[n-1]||{}).points,a=(e[n-2]||{}).points||i;if(a&&a.length>1&&i&&i.length>1){var o=at(i)/at(a);!isFinite(o)&&(o=1),t.pinchScale=o;var s=[((r=i)[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2];return t.pinchX=s[0],t.pinchY=s[1],{type:`pinch`,target:e[0].target,event:t}}}}};function st(){return[1,0,0,1,0,0]}function ct(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function lt(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function ut(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],o=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=c,e}function dt(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function ft(e,t,n,r){r===void 0&&(r=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],c=t[3],l=t[5],u=Math.sin(n),d=Math.cos(n);return e[0]=i*d+s*u,e[1]=-i*u+s*d,e[2]=a*d+c*u,e[3]=-a*u+d*c,e[4]=d*(o-r[0])+u*(l-r[1])+r[0],e[5]=d*(l-r[1])-u*(o-r[0])+r[1],e}function pt(e,t){var n=t[0],r=t[2],i=t[4],a=t[1],o=t[3],s=t[5],c=n*o-a*r;return c?(c=1/c,e[0]=o*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*s-o*i)*c,e[5]=(a*i-n*s)*c,e):null}var mt=function(){function e(e,t){this.x=e||0,this.y=t||0}return e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(e,t){return this.x=e,this.y=t,this},e.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},e.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},e.prototype.scale=function(e){this.x*=e,this.y*=e},e.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},e.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},e.prototype.dot=function(e){return this.x*e.x+this.y*e.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},e.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},e.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},e.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},e.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},e.set=function(e,t,n){e.x=t,e.y=n},e.copy=function(e,t){e.x=t.x,e.y=t.y},e.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},e.lenSquare=function(e){return e.x*e.x+e.y*e.y},e.dot=function(e,t){return e.x*t.x+e.y*t.y},e.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},e.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},e.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},e.scaleAndAdd=function(e,t,n,r){e.x=t.x+n.x*r,e.y=t.y+n.y*r},e.lerp=function(e,t,n,r){var i=1-r;e.x=i*t.x+r*n.x,e.y=i*t.y+r*n.y},e}(),ht=Math.min,gt=Math.max,_t=Math.abs,vt=[`x`,`y`],yt=[`width`,`height`],bt=new mt,xt=new mt,St=new mt,Ct=new mt,wt=Ft(),Tt=wt.minTv,Et=wt.maxTv,Dt=[0,0],J=function(){function e(e,t,n,r){Ot(this,e,t,n,r)}return e.set=function(e,t,n,r,i){return r<0&&(t+=r,r=-r),i<0&&(n+=i,i=-i),e.x=t,e.y=n,e.width=r,e.height=i,e},e.prototype.union=function(e){var t=ht(e.x,this.x),n=ht(e.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?gt(e.x+e.width,this.x+this.width)-t:e.width,this.height=isFinite(this.y)&&isFinite(this.height)?gt(e.y+e.height,this.y+this.height)-n:e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){return At([1,0,0,1,0,0],this,e)},e.prototype.intersect=function(t,n,r){return e.intersect(this,t,n,r)},e.intersect=function(t,n,r,i){r&&mt.set(r,0,0);var a=i&&i.outIntersectRect||null,o=i&&i.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!n)return!1;t instanceof e||(t=Ot(jt,t.x,t.y,t.width,t.height)),n instanceof e||(n=Ot(Mt,n.x,n.y,n.width,n.height));var s=!!r;wt.reset(i,s);var c=wt.touchThreshold,l=t.x+c,u=t.x+t.width-c,d=t.y+c,f=t.y+t.height-c,p=n.x+c,m=n.x+n.width-c,h=n.y+c,g=n.y+n.height-c;if(l>u||d>f||p>m||h>g)return!1;var _=!(u<p||m<l||f<h||g<d);return(s||a)&&(Dt[0]=1/0,Dt[1]=0,Pt(l,u,p,m,0,s,a,o),Pt(d,f,h,g,1,s,a,o),s&&mt.copy(r,_?wt.useDir?wt.dirMinTv:Tt:Et)),_},e.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},e.prototype.contain=function(t,n){return e.contain(this,t,n)},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){kt(this,e)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},e.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},e.applyTransform=function(e,t,n){if(n){if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var r=n[0],i=n[3],a=n[4],o=n[5];e.x=t.x*r+a,e.y=t.y*i+o,e.width=t.width*r,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}bt.x=St.x=t.x,bt.y=Ct.y=t.y,xt.x=Ct.x=t.x+t.width,xt.y=St.y=t.y+t.height,bt.transform(n),Ct.transform(n),xt.transform(n),St.transform(n),e.x=ht(bt.x,xt.x,St.x,Ct.x),e.y=ht(bt.y,xt.y,St.y,Ct.y);var s=gt(bt.x,xt.x,St.x,Ct.x),c=gt(bt.y,xt.y,St.y,Ct.y);e.width=s-e.x,e.height=c-e.y}else e!==t&&kt(e,t)},e.calculateTransform=function(e,t,n){var r=n.width/t.width,i=n.height/t.height;return dt(e=ct(e||[]),e,Se(Nt,-t.x,-t.y)),function(e,t,n){var r=n[0],i=n[1];e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i}(e,e,Se(Nt,r,i)),dt(e,e,Se(Nt,n.x,n.y)),e},e}(),Ot=(J.create,J.set),kt=J.copy,At=J.calculateTransform,jt=(J.applyTransform,J.contain,new J(0,0,0,0)),Mt=new J(0,0,0,0),Nt=[];function Pt(e,t,n,r,i,a,o,s){var c=_t(t-n),l=_t(r-e),u=ht(c,l),d=vt[i],f=vt[1-i],p=yt[i];t<n||r<e?c<l?(a&&(Et[d]=-c),s&&(o[d]=t,o[p]=0)):(a&&(Et[d]=l),s&&(o[d]=e,o[p]=0)):(o&&(o[d]=gt(e,n),o[p]=ht(t,r)-o[d]),a&&(u<Dt[0]||wt.useDir)&&(Dt[0]=ht(u,Dt[0]),(c<l||!wt.bidirectional)&&(Tt[d]=c,Tt[f]=0,wt.useDir&&wt.calcDirMTV()),(c>=l||!wt.bidirectional)&&(Tt[d]=-l,Tt[f]=0,wt.useDir&&wt.calcDirMTV())))}function Ft(){var e=0,t=new mt,n=new mt,r={minTv:new mt,maxTv:new mt,useDir:!1,dirMinTv:new mt,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,a){r.touchThreshold=0,i&&i.touchThreshold!=null&&(r.touchThreshold=gt(0,i.touchThreshold)),r.negativeSize=!1,a&&(r.minTv.set(1/0,1/0),r.maxTv.set(0,0),r.useDir=!1,i&&i.direction!=null&&(r.useDir=!0,r.dirMinTv.copy(r.minTv),n.copy(r.minTv),e=i.direction,r.bidirectional=i.bidirectional==null||!!i.bidirectional,r.bidirectional||t.set(Math.cos(e),Math.sin(e))))},calcDirMTV:function(){var a=r.minTv,o=r.dirMinTv,s=a.y*a.y+a.x*a.x,c=Math.sin(e),l=Math.cos(e),u=c*a.y+l*a.x;i(u)?i(a.x)&&i(a.y)&&o.set(0,0):(n.x=s*l/u,n.y=s*c/u,i(n.x)&&i(n.y)?o.set(0,0):(r.bidirectional||t.dot(n)>0)&&n.len()<o.len()&&o.copy(n))}};function i(e){return _t(e)<1e-10}return r}var It=`silent`;function Lt(){rt(this.event)}var Rt=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.handler=null,t}return n(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ie),zt=function(e,t){this.x=e,this.y=t},Bt=[`click`,`dblclick`,`mousewheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],Vt=new J(0,0,0,0),Ht=function(e){function t(t,n,r,i,a){var o=e.call(this)||this;return o._hovered=new zt(0,0),o.storage=t,o.painter=n,o.painterRoot=i,o._pointerSize=a,r||=new Rt,o.proxy=null,o.setHandlerProxy(r),o._draggingMgr=new Fe(o),o}return n(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(j(Bt,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=Gt(this,t,n),i=this._hovered,a=i.target;a&&!a.__zr&&(a=(i=this.findHover(i.x,i.y)).target);var o=this._hovered=r?new zt(t,n):this.findHover(t,n),s=o.target,c=this.proxy;c.setCursor&&c.setCursor(s?s.cursor:`default`),a&&s!==a&&this.dispatchToElement(i,`mouseout`,e),this.dispatchToElement(o,`mousemove`,e),s&&s!==a&&this.dispatchToElement(o,`mouseover`,e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;t!==`only_globalout`&&this.dispatchToElement(this._hovered,`mouseout`,e),t!==`no_globalout`&&this.trigger(`globalout`,{type:`globalout`,event:e})},t.prototype.resize=function(){this._hovered=new zt(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){var r=(e||={}).target;if(!r||!r.silent){for(var i=`on`+t,a=function(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Lt}}(t,e,n);r&&(r[i]&&(a.cancelBubble=!!r[i].call(r,a)),r.trigger(t,a),r=r.__hostTarget?r.__hostTarget:r.parent,!a.cancelBubble););a.cancelBubble||(this.trigger(t,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){typeof e[i]==`function`&&e[i].call(e,a),e.trigger&&e.trigger(t,a)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new zt(e,t);if(Wt(r,i,e,t,n),this._pointerSize&&!i.target){for(var a=[],o=this._pointerSize,s=o/2,c=new J(e-s,t-s,o,o),l=r.length-1;l>=0;l--){var u=r[l];u===n||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(Vt.copy(u.getBoundingRect()),u.transform&&Vt.applyTransform(u.transform),Vt.intersect(c)&&a.push(u))}if(a.length){for(var d=Math.PI/12,f=2*Math.PI,p=0;p<s;p+=4)for(var m=0;m<f;m+=d)if(Wt(a,i,e+p*Math.cos(m),t+p*Math.sin(m),n),i.target)return i}}return i},t.prototype.processGesture=function(e,t){this._gestureMgr||=new it;var n=this._gestureMgr;t===`start`&&n.clear();var r=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(t===`end`&&n.clear(),r){var i=r.type;e.gestureEvent=i;var a=new zt;a.target=r.target,this.dispatchToElement(a,i,r.event)}},t}(Ie);function Ut(e,t,n){if(e[e.rectHover?`rectContain`:`contain`](t,n)){for(var r=e,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(t,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s?r.ignoreHostSilent?null:s:r.parent}return!i||It}return!1}function Wt(e,t,n,r,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=Ut(o,n,r))&&(!t.topTarget&&(t.topTarget=o),s!==It)){t.target=o;break}}}function Gt(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}j([`click`,`mousedown`,`mouseup`,`mousewheel`,`dblclick`,`contextmenu`],function(e){Ht.prototype[e]=function(t){var n,r,i=t.zrX,a=t.zrY,o=Gt(this,i,a);if(e===`mouseup`&&o||(r=(n=this.findHover(i,a)).target),e===`mousedown`)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if(e===`mouseup`)this._upEl=r;else if(e===`click`){if(this._downEl!==this._upEl||!this._downPoint||Oe(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}});function Kt(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){for(;i<n&&r(e[i],e[i-1])<0;)i++;(function(e,t,n){for(n--;t<n;){var r=e[t];e[t++]=e[n],e[n--]=r}})(e,t,i)}else for(;i<n&&r(e[i],e[i-1])>=0;)i++;return i-t}function qt(e,t,n,r,i){for(r===t&&r++;r<n;r++){for(var a,o=e[r],s=t,c=r;s<c;)i(o,e[a=s+c>>>1])<0?c=a:s=a+1;var l=r-s;switch(l){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;l>0;)e[s+l]=e[s+l-1],l--}e[s]=o}}function Jt(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])>0){for(s=r-i;c<s&&a(e,t[n+i+c])>0;)o=c,(c=1+(c<<1))<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}else{for(s=i+1;c<s&&a(e,t[n+i-c])<=0;)o=c,(c=1+(c<<1))<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])>0?o=u+1:c=u}return c}function Yt(e,t,n,r,i,a){var o=0,s=0,c=1;if(a(e,t[n+i])<0){for(s=i+1;c<s&&a(e,t[n+i-c])<0;)o=c,(c=1+(c<<1))<=0&&(c=s);c>s&&(c=s);var l=o;o=i-c,c=i-l}else{for(s=r-i;c<s&&a(e,t[n+i+c])>=0;)o=c,(c=1+(c<<1))<=0&&(c=s);c>s&&(c=s),o+=i,c+=i}for(o++;o<c;){var u=o+(c-o>>>1);a(e,t[n+u])<0?c=u:o=u+1}return c}function Xt(e,t){var n,r,i=7,a=0,o=[];function s(s){var c=n[s],l=r[s],u=n[s+1],d=r[s+1];r[s]=l+d,s===a-3&&(n[s+1]=n[s+2],r[s+1]=r[s+2]),a--;var f=Yt(e[u],e,c,l,0,t);c+=f,(l-=f)!==0&&(d=Jt(e[c+l-1],e,u,d,d-1,t))!==0&&(l<=d?function(n,r,a,s){var c=0;for(c=0;c<r;c++)o[c]=e[n+c];var l=0,u=a,d=n;if(e[d++]=e[u++],--s===0)for(c=0;c<r;c++)e[d+c]=o[l+c];else if(r===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else{for(var f,p,m,h=i;;){f=0,p=0,m=!1;do if(t(e[u],o[l])<0){if(e[d++]=e[u++],p++,f=0,--s===0){m=!0;break}}else if(e[d++]=o[l++],f++,p=0,--r===1){m=!0;break}while((f|p)<h);if(m)break;do{if((f=Yt(e[u],o,l,r,0,t))!==0){for(c=0;c<f;c++)e[d+c]=o[l+c];if(d+=f,l+=f,(r-=f)<=1){m=!0;break}}if(e[d++]=e[u++],--s===0){m=!0;break}if((p=Jt(o[l],e,u,s,0,t))!==0){for(c=0;c<p;c++)e[d+c]=e[u+c];if(d+=p,u+=p,(s-=p)===0){m=!0;break}}if(e[d++]=o[l++],--r===1){m=!0;break}h--}while(f>=7||p>=7);if(m)break;h<0&&(h=0),h+=2}if((i=h)<1&&(i=1),r===1){for(c=0;c<s;c++)e[d+c]=e[u+c];e[d+s]=o[l]}else{if(r===0)throw Error();for(c=0;c<r;c++)e[d+c]=o[l+c]}}}(c,l,u,d):function(n,r,a,s){var c=0;for(c=0;c<s;c++)o[c]=e[a+c];var l=n+r-1,u=s-1,d=a+s-1,f=0,p=0;if(e[d--]=e[l--],--r===0)for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c];else if(s===1){for(p=(d-=r)+1,f=(l-=r)+1,c=r-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else{for(var m=i;;){var h=0,g=0,_=!1;do if(t(o[u],e[l])<0){if(e[d--]=e[l--],h++,g=0,--r===0){_=!0;break}}else if(e[d--]=o[u--],g++,h=0,--s===1){_=!0;break}while((h|g)<m);if(_)break;do{if((h=r-Yt(o[u],e,n,r,r-1,t))!==0){for(r-=h,p=(d-=h)+1,f=(l-=h)+1,c=h-1;c>=0;c--)e[p+c]=e[f+c];if(r===0){_=!0;break}}if(e[d--]=o[u--],--s===1){_=!0;break}if((g=s-Jt(e[l],o,0,s,s-1,t))!==0){for(s-=g,p=(d-=g)+1,f=(u-=g)+1,c=0;c<g;c++)e[p+c]=o[f+c];if(s<=1){_=!0;break}}if(e[d--]=e[l--],--r===0){_=!0;break}m--}while(h>=7||g>=7);if(_)break;m<0&&(m=0),m+=2}if((i=m)<1&&(i=1),s===1){for(p=(d-=r)+1,f=(l-=r)+1,c=r-1;c>=0;c--)e[p+c]=e[f+c];e[d]=o[u]}else{if(s===0)throw Error();for(f=d-(s-1),c=0;c<s;c++)e[f+c]=o[c]}}}(c,l,u,d))}return n=[],r=[],{mergeRuns:function(){for(;a>1;){var e=a-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]<r[e+1]&&e--;else if(r[e]>r[e+1])break;s(e)}},forceMergeRuns:function(){for(;a>1;){var e=a-2;e>0&&r[e-1]<r[e+1]&&e--,s(e)}},pushRun:function(e,t){n[a]=e,r[a]=t,a+=1}}}function Zt(e,t,n,r){n||=0,r||=e.length;var i=r-n;if(!(i<2)){var a=0;if(i<32)qt(e,n,r,n+(a=Kt(e,n,r,t)),t);else{var o=Xt(e,t),s=function(e){for(var t=0;e>=32;)t|=1&e,e>>=1;return e+t}(i);do{if((a=Kt(e,n,r,t))<s){var c=i;c>s&&(c=s),qt(e,n,n+c,n+a,t),a=c}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}}var Qt=!1;function $t(){Qt||(Qt=!0,console.warn(`z / z2 / zlevel of displayable is invalid, which may cause unexpected errors`))}function en(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var tn=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=en}return e.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},e.prototype.getDisplayList=function(e,t){t||=!1;var n=this._displayList;return!e&&n.length||this.updateDisplayList(t),n},e.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,r=0,i=t.length;r<i;r++)this._updateAndAddDisplayable(t[r],null,e);n.length=this._displayListLen,Zt(n,en)},e.prototype._updateAndAddDisplayable=function(e,t,n){if(!e.ignore||n){e.beforeUpdate(),e.update(),e.afterUpdate();var r=e.getClipPath(),i=t&&t.length,a=0,o=e.__clipPaths;if(!e.ignoreClip&&(i||r)){if(o||=e.__clipPaths=[],i)for(var s=0;s<t.length;s++)o[a++]=t[s];for(var c=r,l=e;c;)c.parent=l,c.updateTransform(),o[a++]=c,l=c,c=c.getClipPath()}if(o&&(o.length=a),e.childrenRef){for(var u=e.childrenRef(),d=0;d<u.length;d++){var f=u[d];e.__dirty&&(f.__dirty|=1),this._updateAndAddDisplayable(f,o,n)}e.__dirty=0}else{var p=e;isNaN(p.z)&&($t(),p.z=0),isNaN(p.z2)&&($t(),p.z2=0),isNaN(p.zlevel)&&($t(),p.zlevel=0),this._displayList[this._displayListLen++]=p}var m=e.getDecalElement&&e.getDecalElement();m&&this._updateAndAddDisplayable(m,o,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,o,n);var g=e.getTextContent();g&&this._updateAndAddDisplayable(g,o,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);else{var r=O(this._roots,e);r>=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),nn=i.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)},rn={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:1024**(e-1)},exponentialOut:function(e){return e===1?1:1-2**(-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*1024**(e-1):.5*(2-2**(-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1;return e===0?0:e===1?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),-n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/.4))},elasticOut:function(e){var t,n=.1;return e===0?0:e===1?1:(!n||n<1?(n=1,t=.1):t=.4*Math.asin(1/n)/(2*Math.PI),n*2**(-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=.1):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*2**(10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*2**(-10*--e)*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-rn.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*rn.bounceIn(2*e):.5*rn.bounceOut(2*e-1)+.5}},an=Math.pow,on=Math.sqrt,sn=1e-8,cn=1e-4,ln=on(3),un=1/3,dn=be(),fn=be(),pn=be();function mn(e){return e>-1e-8&&e<sn}function hn(e){return e>sn||e<-1e-8}function gn(e,t,n,r,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*r+3*a*n)}function _n(e,t,n,r,i){var a=1-i;return 3*(((t-e)*a+2*(n-t)*i)*a+(r-n)*i*i)}function vn(e,t,n,r,i,a){var o=r+3*(t-n)-e,s=3*(n-2*t+e),c=3*(t-e),l=e-i,u=s*s-3*o*c,d=s*c-9*o*l,f=c*c-3*s*l,p=0;if(mn(u)&&mn(d))mn(s)?a[0]=0:(w=-c/s)>=0&&w<=1&&(a[p++]=w);else{var m=d*d-4*u*f;if(mn(m)){var h=d/u,g=-h/2;(w=-s/o+h)>=0&&w<=1&&(a[p++]=w),g>=0&&g<=1&&(a[p++]=g)}else if(m>0){var _=on(m),v=u*s+1.5*o*(-d+_),y=u*s+1.5*o*(-d-_);(w=(-s-((v=v<0?-an(-v,un):an(v,un))+(y=y<0?-an(-y,un):an(y,un))))/(3*o))>=0&&w<=1&&(a[p++]=w)}else{var b=(2*u*s-3*o*d)/(2*on(u*u*u)),x=Math.acos(b)/3,S=on(u),C=Math.cos(x),w=(-s-2*S*C)/(3*o),T=(g=(-s+S*(C+ln*Math.sin(x)))/(3*o),(-s+S*(C-ln*Math.sin(x)))/(3*o));w>=0&&w<=1&&(a[p++]=w),g>=0&&g<=1&&(a[p++]=g),T>=0&&T<=1&&(a[p++]=T)}}return p}function yn(e,t,n,r,i){var a=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,s=3*t-3*e,c=0;if(mn(o))hn(a)&&(u=-s/a)>=0&&u<=1&&(i[c++]=u);else{var l=a*a-4*o*s;if(mn(l))i[0]=-a/(2*o);else if(l>0){var u,d=on(l),f=(-a-d)/(2*o);(u=(-a+d)/(2*o))>=0&&u<=1&&(i[c++]=u),f>=0&&f<=1&&(i[c++]=f)}}return c}function bn(e,t,n,r,i,a){var o=(t-e)*i+e,s=(n-t)*i+t,c=(r-n)*i+n,l=(s-o)*i+o,u=(c-s)*i+s,d=(u-l)*i+l;a[0]=e,a[1]=o,a[2]=l,a[3]=d,a[4]=d,a[5]=u,a[6]=c,a[7]=r}function xn(e,t,n,r,i,a,o,s,c){for(var l=e,u=t,d=0,f=1/c,p=1;p<=c;p++){var m=p*f,h=gn(e,n,i,o,m),g=gn(t,r,a,s,m),_=h-l,v=g-u;d+=Math.sqrt(_*_+v*v),l=h,u=g}return d}function Sn(e,t,n,r){var i=1-r;return i*(i*e+2*r*t)+r*r*n}function Cn(e,t,n,r){return 2*((1-r)*(t-e)+r*(n-t))}function wn(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function Tn(e,t,n,r,i){var a=(t-e)*r+e,o=(n-t)*r+t,s=(o-a)*r+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function En(e,t,n,r,i,a,o){for(var s=e,c=t,l=0,u=1/o,d=1;d<=o;d++){var f=d*u,p=Sn(e,n,i,f),m=Sn(t,r,a,f),h=p-s,g=m-c;l+=Math.sqrt(h*h+g*g),s=p,c=m}return l}var Dn=/cubic-bezier\(([0-9,\.e ]+)\)/;function On(e){var t=e&&Dn.exec(e);if(t){var n=t[1].split(`,`),r=+ue(n[0]),i=+ue(n[1]),a=+ue(n[2]),o=+ue(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(e){return e<=0?0:e>=1?1:vn(0,r,a,1,e,s)&&gn(0,i,o,1,s[0])}}}var kn=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||ve,this.ondestroy=e.ondestroy||ve,this.onrestart=e.onrestart||ve,e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||=(this._startTime=e+this._delay,!0),!this._paused){var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var a=this.easingFunc,o=a?a(i):i;if(this.onframe(o),i===1){if(!this.loop)return!0;var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=R(e)?e:rn[e]||On(e)},e}(),An=function(e){this.value=e},jn=function(){function e(){this._len=0}return e.prototype.insert=function(e){var t=new An(e);return this.insertEntry(t),t},e.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},e.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Mn=function(){function e(e){this._list=new jn,this._maxSize=10,this._map={},this._maxSize=e}return e.prototype.put=function(e,t){var n=this._list,r=this._map,i=null;if(r[e]==null){var a=n.len(),o=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var s=n.head;n.remove(s),delete r[s.key],i=s.value,this._lastRemovedEntry=s}o?o.value=t:o=new An(t),o.key=e,n.insertEntry(o),r[e]=o}return i},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Nn={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function Pn(e){return(e=Math.round(e))<0?0:e>255?255:e}function Fn(e){return e<0?0:e>1?1:e}function In(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Pn(parseFloat(t)/100*255):Pn(parseInt(t,10))}function Ln(e){var t=e;return t.length&&t.charAt(t.length-1)===`%`?Fn(parseFloat(t)/100):Fn(parseFloat(t))}function Rn(e,t,n){return n<0?n+=1:n>1&&--n,6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function zn(e,t,n){return e+(t-e)*n}function Bn(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function Vn(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Hn=new Mn(20),Un=null;function Wn(e,t){Un&&Vn(Un,t),Un=Hn.put(e,Un||t.slice())}function Gn(e,t){if(e){t||=[];var n=Hn.get(e);if(n)return Vn(t,n);var r=(e+=``).replace(/ /g,``).toLowerCase();if(r in Nn)return Vn(t,Nn[r]),Wn(e,t),t;var i,a=r.length;if(r.charAt(0)===`#`)return a===4||a===5?(i=parseInt(r.slice(1,4),16))>=0&&i<=4095?(Bn(t,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,a===5?parseInt(r.slice(4),16)/15:1),Wn(e,t),t):void Bn(t,0,0,0,1):a===7||a===9?(i=parseInt(r.slice(1,7),16))>=0&&i<=16777215?(Bn(t,(16711680&i)>>16,(65280&i)>>8,255&i,a===9?parseInt(r.slice(7),16)/255:1),Wn(e,t),t):void Bn(t,0,0,0,1):void 0;var o=r.indexOf(`(`),s=r.indexOf(`)`);if(o!==-1&&s+1===a){var c=r.substr(0,o),l=r.substr(o+1,s-(o+1)).split(`,`),u=1;switch(c){case`rgba`:if(l.length!==4)return l.length===3?Bn(t,+l[0],+l[1],+l[2],1):Bn(t,0,0,0,1);u=Ln(l.pop());case`rgb`:return l.length>=3?(Bn(t,In(l[0]),In(l[1]),In(l[2]),l.length===3?u:Ln(l[3])),Wn(e,t),t):void Bn(t,0,0,0,1);case`hsla`:return l.length===4?(l[3]=Ln(l[3]),Kn(l,t),Wn(e,t),t):void Bn(t,0,0,0,1);case`hsl`:return l.length===3?(Kn(l,t),Wn(e,t),t):void Bn(t,0,0,0,1);default:return}}Bn(t,0,0,0,1)}}function Kn(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=Ln(e[1]),i=Ln(e[2]),a=i<=.5?i*(r+1):i+r-i*r,o=2*i-a;return Bn(t||=[],Pn(255*Rn(o,a,n+1/3)),Pn(255*Rn(o,a,n)),Pn(255*Rn(o,a,n-1/3)),1),e.length===4&&(t[3]=e[3]),t}function qn(e,t){var n=Gn(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return Xn(n,n.length===4?`rgba`:`rgb`)}}function Jn(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),a=Math.ceil(r),o=Gn(t[i]),s=Gn(t[a]),c=r-i,l=Xn([Pn(zn(o[0],s[0],c)),Pn(zn(o[1],s[1],c)),Pn(zn(o[2],s[2],c)),Fn(zn(o[3],s[3],c))],`rgba`);return n?{color:l,leftIndex:i,rightIndex:a,value:r}:l}}function Yn(e,t,n,r){var i,a=Gn(e);if(e)return a=function(e){if(e){var t,n,r=e[0]/255,i=e[1]/255,a=e[2]/255,o=Math.min(r,i,a),s=Math.max(r,i,a),c=s-o,l=(s+o)/2;if(c===0)t=0,n=0;else{n=l<.5?c/(s+o):c/(2-s-o);var u=((s-r)/6+c/2)/c,d=((s-i)/6+c/2)/c,f=((s-a)/6+c/2)/c;r===s?t=f-d:i===s?t=1/3+u-f:a===s&&(t=2/3+d-u),t<0&&(t+=1),t>1&&--t}var p=[360*t,n,l];return e[3]!=null&&p.push(e[3]),p}}(a),t!=null&&(a[0]=(i=R(t)?t(a[0]):t,(i=Math.round(i))<0?0:i>360?360:i)),n!=null&&(a[1]=Ln(R(n)?n(a[1]):n)),r!=null&&(a[2]=Ln(R(r)?r(a[2]):r)),Xn(Kn(a),`rgba`)}function Xn(e,t){if(e&&e.length){var n=e[0]+`,`+e[1]+`,`+e[2];return t!==`rgba`&&t!==`hsva`&&t!==`hsla`||(n+=`,`+e[3]),t+`(`+n+`)`}}function Zn(e,t){var n=Gn(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var Qn=new Mn(100);function $n(e){if(z(e)){var t=Qn.get(e);return t||(t=qn(e,-.1),Qn.put(e,t)),t}if(W(e)){var n=E({},e);return n.colorStops=M(e.colorStops,function(e){return{offset:e.offset,color:qn(e.color,-.1)}}),n}return e}var er=Math.round;function tr(e){var t;if(e&&e!==`transparent`){if(typeof e==`string`&&e.indexOf(`rgba`)>-1){var n=Gn(e);n&&(e=`rgb(`+n[0]+`,`+n[1]+`,`+n[2]+`)`,t=n[3])}}else e=`none`;return{color:e,opacity:t??1}}var nr=1e-4;function rr(e){return e<nr&&e>-1e-4}function ir(e){return er(1e3*e)/1e3}function ar(e){return er(1e4*e)/1e4}var or={left:`start`,right:`end`,center:`middle`,middle:`middle`};function sr(e){return e&&!!e.image}function cr(e){return sr(e)||function(e){return e&&!!e.svgElement}(e)}function lr(e){return e.type===`linear`}function ur(e){return e.type===`radial`}function dr(e){return e&&(e.type===`linear`||e.type===`radial`)}function fr(e){return`url(#`+e+`)`}function pr(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function mr(e){var t=e.x||0,n=e.y||0,r=(e.rotation||0)*ye,i=G(e.scaleX,1),a=G(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,c=[];return(t||n)&&c.push(`translate(`+t+`px,`+n+`px)`),r&&c.push(`rotate(`+r+`)`),i===1&&a===1||c.push(`scale(`+i+`,`+a+`)`),(o||s)&&c.push(`skew(`+er(o*ye)+`deg, `+er(s*ye)+`deg)`),c.join(` `)}var hr=typeof Buffer<`u`&&typeof Buffer.from==`function`?function(e){return Buffer.from(e).toString(`base64`)}:typeof btoa==`function`&&typeof unescape==`function`&&typeof encodeURIComponent==`function`?function(e){return btoa(unescape(encodeURIComponent(e)))}:function(e){return null},gr=Array.prototype.slice;function _r(e,t,n){return(t-e)*n+e}function vr(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=_r(t[a],n[a],r);return e}function yr(e,t,n,r){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+n[a]*r;return e}function br(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+n[o][s]*r}return e}function xr(e,t){for(var n=e.length,r=t.length,i=n>r?t:e,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function Sr(e,t,n){var r=e,i=t;if(r.push&&i.push){var a=r.length,o=i.length;if(a!==o){if(a>o)r.length=o;else for(var s=a;s<o;s++)r.push(n===1?i[s]:gr.call(i[s]))}var c=r[0]&&r[0].length;for(s=0;s<r.length;s++)if(n===1)isNaN(r[s])&&(r[s]=i[s]);else for(var l=0;l<c;l++)isNaN(r[s][l])&&(r[s][l]=i[s][l])}}function Cr(e){if(A(e)){var t=e.length;if(A(e[0])){for(var n=[],r=0;r<t;r++)n.push(gr.call(e[r]));return n}return gr.call(e)}return e}function wr(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],`rgba(`+e.join(`,`)+`)`}function Tr(e){return e===4||e===5}function Er(e){return e===1||e===2}var Dr=[0,0,0,0],Or=function(){function e(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,i=r.length,a=!1,o=6,s=t;if(A(t)){var c=function(e){return A(e&&e[0])?2:1}(t);o=c,(c===1&&!B(t[0])||c===2&&!B(t[0][0]))&&(a=!0)}else if(B(t)&&!ie(t))o=0;else if(z(t)){if(isNaN(+t)){var l=Gn(t);l&&(s=l,o=3)}else o=0}else if(W(t)){var u=E({},s);u.colorStops=M(t.colorStops,function(e){return{offset:e.offset,color:Gn(e.color)}}),lr(t)?o=4:ur(t)&&(o=5),s=u}i===0?this.valType=o:o===this.valType&&o!==6||(a=!0),this.discrete=this.discrete||a;var d={time:e,value:s,rawValue:t,percent:0};return n&&(d.easing=n,d.easingFunc=R(n)?n:rn[n]||On(n)),r.push(d),d},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,a=n[i-1],o=this.discrete,s=Er(r),c=Tr(r),l=0;l<i;l++){var u=n[l],d=u.value,f=a.value;u.percent=u.time/e,o||(s&&l!==i-1?Sr(d,f,r):c&&xr(d.colorStops,f.colorStops))}if(!o&&r!==5&&t&&this.needsAnimate()&&t.needsAnimate()&&r===t.valType&&!t._finished){this._additiveTrack=t;var p=n[0].value;for(l=0;l<i;l++)r===0?n[l].additiveValue=n[l].value-p:r===3?n[l].additiveValue=yr([],n[l].value,p,-1):Er(r)&&(n[l].additiveValue=r===1?yr([],n[l].value,p,-1):br([],n[l].value,p,-1))}},e.prototype.step=function(e,t){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,r,i,a=this._additiveTrack!=null,o=a?`additiveValue`:`value`,s=this.valType,c=this.keyframes,l=c.length,u=this.propName,d=s===3,f=this._lastFr,p=Math.min;if(l===1)r=i=c[0];else{if(t<0)n=0;else if(t<this._lastFrP){for(n=p(f+1,l-1);n>=0&&!(c[n].percent<=t);n--);n=p(n,l-2)}else{for(n=f;n<l&&!(c[n].percent>t);n++);n=p(n-1,l-2)}i=c[n+1],r=c[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var m=i.percent-r.percent,h=m===0?1:p((t-r.percent)/m,1);i.easingFunc&&(h=i.easingFunc(h));var g=a?this._additiveValue:d?Dr:e[u];if(!Er(s)&&!d||g||(g=this._additiveValue=[]),this.discrete)e[u]=h<1?r.rawValue:i.rawValue;else if(Er(s))s===1?vr(g,r[o],i[o],h):function(e,t,n,r){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=_r(t[o][s],n[o][s],r)}}(g,r[o],i[o],h);else if(Tr(s)){var _=r[o],v=i[o],y=s===4;e[u]={type:y?`linear`:`radial`,x:_r(_.x,v.x,h),y:_r(_.y,v.y,h),colorStops:M(_.colorStops,function(e,t){var n=v.colorStops[t];return{offset:_r(e.offset,n.offset,h),color:wr(vr([],e.color,n.color,h))}}),global:v.global},y?(e[u].x2=_r(_.x2,v.x2,h),e[u].y2=_r(_.y2,v.y2,h)):e[u].r=_r(_.r,v.r,h)}else if(d)vr(g,r[o],i[o],h),a||(e[u]=wr(g));else{var b=_r(r[o],i[o],h);a?this._additiveValue=b:e[u]=b}a&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===0?e[n]=e[n]+r:t===3?(Gn(e[n],Dr),yr(Dr,Dr,r,1),e[n]=wr(Dr)):t===1?yr(e[n],e[n],r,1):t===2&&br(e[n],e[n],r,1)},e}(),kr=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?C(`Can' use additive animation on looped animation.`):(this._additiveAnimators=r,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,F(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,a=0;a<n.length;a++){var o=n[a],s=i[o];if(!s){s=i[o]=new Or(o);var c=void 0,l=this._getAdditiveTrack(o);if(l){var u=l.keyframes,d=u[u.length-1];c=d&&d.value,l.valType===3&&c&&(c=wr(c))}else c=this._target[o];if(c==null)continue;e>0&&s.addKeyframe(0,Cr(c),r),this._trackKeys.push(o)}s.addKeyframe(e,Cr(t[o]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n<t;n++)e[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,t=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,t)for(var n=0;n<t.length;n++)t[n].call(this)},e.prototype._setTracksFinished=function(){for(var e=this._tracks,t=this._trackKeys,n=0;n<t.length;n++)e[t[n]].setFinished()},e.prototype._getAdditiveTrack=function(e){var t,n=this._additiveAnimators;if(n)for(var r=0;r<n.length;r++){var i=n[r].getTrack(e);i&&(t=i)}return t},e.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var a=this._trackKeys[i],o=this._tracks[a],s=this._getAdditiveTrack(a),c=o.keyframes,l=c.length;if(o.prepare(r,s),o.needsAnimate()){if(!this._allowDiscrete&&o.discrete){var u=c[l-1];u&&(t._target[o.propName]=u.rawValue),o.setFinished()}else n.push(o)}}if(n.length||this._force){var d=new kn({life:r,loop:this._loop,delay:this._delay||0,onframe:function(e){t._started=2;var r=t._additiveAnimators;if(r){for(var i=!1,a=0;a<r.length;a++)if(r[a]._clip){i=!0;break}i||(t._additiveAnimators=null)}for(a=0;a<n.length;a++)n[a].step(t._target,e);var o=t._onframeCbs;if(o)for(a=0;a<o.length;a++)o[a](t._target,e)},ondestroy:function(){t._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},e.prototype.stop=function(e){if(this._clip){var t=this._clip;e&&t.onframe(1),this._abortedCallback()}},e.prototype.delay=function(e){return this._delay=e,this},e.prototype.during=function(e){return e&&(this._onframeCbs||=[],this._onframeCbs.push(e)),this},e.prototype.done=function(e){return e&&(this._doneCbs||=[],this._doneCbs.push(e)),this},e.prototype.aborted=function(e){return e&&(this._abortedCbs||=[],this._abortedCbs.push(e)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(e){return this._tracks[e]},e.prototype.getTracks=function(){var e=this;return M(this._trackKeys,function(t){return e._tracks[t]})},e.prototype.stopTracks=function(e,t){if(!e.length||!this._clip)return!0;for(var n=this._tracks,r=this._trackKeys,i=0;i<e.length;i++){var a=n[e[i]];a&&!a.isFinished()&&(t?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}var o=!0;for(i=0;i<r.length;i++)if(!n[r[i]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},e.prototype.saveTo=function(e,t,n){if(e){t||=this._trackKeys;for(var r=0;r<t.length;r++){var i=t[r],a=this._tracks[i];if(a&&!a.isFinished()){var o=a.keyframes,s=o[n?0:o.length-1];s&&(e[i]=Cr(s.rawValue))}}}},e.prototype.__changeFinalValue=function(e,t){t||=F(e);for(var n=0;n<t.length;n++){var r=t[n],i=this._tracks[r];if(i){var a=i.keyframes;if(a.length>1){var o=a.pop();i.addKeyframe(o.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function Ar(){return new Date().getTime()}var jr,Mr,Nr=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t||={},n.stage=t.stage||{},n}return n(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){for(var t=Ar()-this._pausedTime,n=t-this._time,r=this._head;r;){var i=r.next;r.step(t,n)&&(r.ondestroy(),this.removeClip(r)),r=i}this._time=t,e||(this.trigger(`frame`,n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,nn(function t(){e._running&&(nn(t),!e._paused&&e.update())})},t.prototype.start=function(){this._running||(this._time=Ar(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||=(this._pauseStart=Ar(),!0)},t.prototype.resume=function(){this._paused&&=(this._pausedTime+=Ar()-this._pauseStart,!1)},t.prototype.clear=function(){for(var e=this._head;e;){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,t){t||={},this.start();var n=new kr(e,t.loop);return this.addAnimator(n),n},t}(Ie),Pr=i.domSupported,Fr=(Mr={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:jr=[`click`,`dblclick`,`mousewheel`,`wheel`,`mouseout`,`mouseup`,`mousedown`,`mousemove`,`contextmenu`],touch:[`touchstart`,`touchend`,`touchmove`],pointer:M(jr,function(e){var t=e.replace(`mouse`,`pointer`);return Mr.hasOwnProperty(t)?t:e})}),Ir=[`mousemove`,`mouseup`],Lr=[`pointermove`,`pointerup`],Rr=!1;function zr(e){var t=e.pointerType;return t===`pen`||t===`touch`}function Br(e){e&&(e.zrByTouch=!0)}function Vr(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var Hr=function(e,t){this.stopPropagation=ve,this.stopImmediatePropagation=ve,this.preventDefault=ve,this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY},Ur={mousedown:function(e){e=tt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger(`mousedown`,e)},mousemove:function(e){e=tt(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger(`mousemove`,e)},mouseup:function(e){e=tt(this.dom,e),this.__togglePointerCapture(!1),this.trigger(`mouseup`,e)},mouseout:function(e){Vr(this,(e=tt(this.dom,e)).toElement||e.relatedTarget)||(this.__pointerCapturing&&(e.zrEventControl=`no_globalout`),this.trigger(`mouseout`,e))},wheel:function(e){Rr=!0,e=tt(this.dom,e),this.trigger(`mousewheel`,e)},mousewheel:function(e){Rr||(e=tt(this.dom,e),this.trigger(`mousewheel`,e))},touchstart:function(e){Br(e=tt(this.dom,e)),this.__lastTouchMoment=new Date,this.handler.processGesture(e,`start`),Ur.mousemove.call(this,e),Ur.mousedown.call(this,e)},touchmove:function(e){Br(e=tt(this.dom,e)),this.handler.processGesture(e,`change`),Ur.mousemove.call(this,e)},touchend:function(e){Br(e=tt(this.dom,e)),this.handler.processGesture(e,`end`),Ur.mouseup.call(this,e),+new Date-this.__lastTouchMoment<300&&Ur.click.call(this,e)},pointerdown:function(e){Ur.mousedown.call(this,e)},pointermove:function(e){zr(e)||Ur.mousemove.call(this,e)},pointerup:function(e){Ur.mouseup.call(this,e)},pointerout:function(e){zr(e)||Ur.mouseout.call(this,e)}};j([`click`,`dblclick`,`contextmenu`],function(e){Ur[e]=function(t){t=tt(this.dom,t),this.trigger(e,t)}});var Wr={pointermove:function(e){zr(e)||Wr.mousemove.call(this,e)},pointerup:function(e){Wr.mouseup.call(this,e)},mousemove:function(e){this.trigger(`mousemove`,e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger(`mouseup`,e),t&&(e.zrEventControl=`only_globalout`,this.trigger(`mouseout`,e))}};function Gr(e,t){var n=t.domHandlers;i.pointerEventsSupported?j(Fr.pointer,function(r){qr(t,r,function(t){n[r].call(e,t)})}):(i.touchEventsSupported&&j(Fr.touch,function(r){qr(t,r,function(i){n[r].call(e,i),function(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}(t)})}),j(Fr.mouse,function(r){qr(t,r,function(i){i=et(i),t.touching||n[r].call(e,i)})}))}function Kr(e,t){function n(n){qr(t,n,function(r){r=et(r),Vr(e,r.target)||(r=function(e,t){return tt(e.dom,new Hr(e,t),!0)}(e,r),t.domHandlers[n].call(e,r))},{capture:!0})}i.pointerEventsSupported?j(Lr,n):i.touchEventsSupported||j(Ir,n)}function qr(e,t,n,r){e.mounted[t]=n,e.listenerOpts[t]=r,function(e,t,n,r){e.addEventListener(t,n,r)}(e.domTarget,t,n,r)}function Jr(e){var t=e.mounted;for(var n in t)t.hasOwnProperty(n)&&nt(e.domTarget,n,t[n],e.listenerOpts[n]);e.mounted={}}var Yr=function(e,t){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=t},Xr=function(e){function t(t,n){var r=e.call(this)||this;return r.__pointerCapturing=!1,r.dom=t,r.painterRoot=n,r._localHandlerScope=new Yr(t,Ur),Pr&&(r._globalHandlerScope=new Yr(document,Wr)),Gr(r,r._localHandlerScope),r}return n(t,e),t.prototype.dispose=function(){Jr(this._localHandlerScope),Pr&&Jr(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||`default`)},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,Pr&&+this.__pointerCapturing^e){this.__pointerCapturing=e;var t=this._globalHandlerScope;e?Kr(this,t):Jr(t)}},t}(Ie),Zr=1;i.hasGlobalWindow&&(Zr=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Qr=Zr,$r=`#333`,ei=`#ccc`,ti=ct,ni=5e-5;function ri(e){return e>ni||e<-5e-5}var ii,ai=[],oi=[],si=[1,0,0,1,0,0],ci=Math.abs,li=function(){function e(){}var t;return e.prototype.getLocalTransform=function(e){return ui(this,e)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return ri(this.rotation)||ri(this.x)||ri(this.y)||ri(this.scaleX-1)||ri(this.scaleY-1)||ri(this.skewX)||ri(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n||=[1,0,0,1,0,0],t?this.getLocalTransform(n):ti(n),e&&(t?ut(n,e,n):lt(n,e)),this.transform=n,this._resolveGlobalScaleRatio(n),this.invTransform=this.invTransform||[1,0,0,1,0,0],pt(this.invTransform,n)):n&&(ti(n),this.invTransform=null)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(t!=null&&t!==1){this.getGlobalScale(ai);var n=ai[0]<0?-1:1,r=ai[1]<0?-1:1,i=((ai[0]-n)*t+n)/ai[0]||0,a=((ai[1]-r)*t+r)/ai[1]||0;e[0]*=i,e[1]*=i,e[2]*=a,e[3]*=a}},e.prototype.getComputedTransform=function(){for(var e=this,t=[];e;)t.push(e),e=e.parent;for(;e=t.pop();)e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||[1,0,0,1,0,0],ut(oi,e.invTransform,t),t=oi);var n=this.originX,r=this.originY;(n||r)&&(si[4]=n,si[5]=r,ut(oi,t,si),oi[4]-=n,oi[5]-=r,t=oi),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e||=[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&je(n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&je(n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&ci(e[0]-1)>1e-10&&ci(e[3]-1)>1e-10?Math.sqrt(ci(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){fi(this,e)},e.getLocalTransform=function(e,t){t||=[];var n=e.originX||0,r=e.originY||0,i=e.scaleX,a=e.scaleY,o=e.anchorX,s=e.anchorY,c=e.rotation||0,l=e.x,u=e.y,d=e.skewX?Math.tan(e.skewX):0,f=e.skewY?Math.tan(-e.skewY):0;if(n||r||o||s){var p=n+o,m=r+s;t[4]=-p*i-d*m*a,t[5]=-m*a-f*p*i}else t[4]=t[5]=0;return t[0]=i,t[3]=a,t[1]=f*i,t[2]=d*a,c&&ft(t,t,c),t[4]+=n+l,t[5]+=r+u,t},e.initDefaultProps=((t=e.prototype).scaleX=t.scaleY=t.globalScaleRatio=1,void(t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0)),e}(),ui=li.getLocalTransform,di=[`x`,`y`,`originX`,`originY`,`anchorX`,`anchorY`,`rotation`,`scaleX`,`scaleY`,`skewX`,`skewY`];function fi(e,t){return function(e,t,n){e||={};for(var r=0;r<n.length;r++){var i=n[r];e[i]=t[i]}return e}(e,t,di)}function pi(e){ii||=new Mn(100),e||=`12px sans-serif`;var t=ii.get(e);return t||(t={font:e,strWidthCache:new Mn(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:c.measureText(`国`,e).width,asciiCharWidth:c.measureText(`a`,e).width},ii.put(e,t)),t}var mi=0,hi=5;function gi(e,t){return e.asciiWidthMapTried||=(e.asciiWidthMap=function(e){if(!(mi>=hi)){e||=`12px sans-serif`;for(var t=[],n=+new Date,r=0;r<=127;r++)t[r]=c.measureText(String.fromCharCode(r),e).width;var i=+new Date-n;return i>16?mi=hi:i>2&&mi++,t}}(e.font),!0),0<=t&&t<=127?e.asciiWidthMap==null?e.asciiCharWidth:e.asciiWidthMap[t]:e.stWideCharWidth}function _i(e,t){var n=e.strWidthCache,r=n.get(t);return r??(r=c.measureText(t,e.font).width,n.put(t,r)),r}function vi(e,t,n,r){var i=_i(pi(t),e),a=Si(t);return new J(bi(0,i,n),xi(0,a,r),i,a)}function yi(e,t,n,r){var i=((e||``)+``).split(`
|
|
2
|
+
`);if(i.length===1)return vi(i[0],t,n,r);for(var a=new J(0,0,0,0),o=0;o<i.length;o++){var s=vi(i[o],t,n,r);o===0?a.copy(s):a.union(s)}return a}function bi(e,t,n,r){return n===`right`?r?e+=t:e-=t:n===`center`&&(r?e+=t/2:e-=t/2),e}function xi(e,t,n,r){return n===`middle`?r?e+=t/2:e-=t/2:n===`bottom`&&(r?e+=t:e-=t),e}function Si(e){return pi(e).stWideCharWidth}function Ci(e,t){return typeof e==`string`?e.lastIndexOf(`%`)>=0?parseFloat(e)/100*t:parseFloat(e):e}function wi(e,t,n){var r=t.position||`inside`,i=t.distance==null?5:t.distance,a=n.height,o=n.width,s=a/2,c=n.x,l=n.y,u=`left`,d=`top`;if(r instanceof Array)c+=Ci(r[0],n.width),l+=Ci(r[1],n.height),u=null,d=null;else switch(r){case`left`:c-=i,l+=s,u=`right`,d=`middle`;break;case`right`:c+=i+o,l+=s,d=`middle`;break;case`top`:c+=o/2,l-=i,u=`center`,d=`bottom`;break;case`bottom`:c+=o/2,l+=a+i,u=`center`;break;case`inside`:c+=o/2,l+=s,u=`center`,d=`middle`;break;case`insideLeft`:c+=i,l+=s,d=`middle`;break;case`insideRight`:c+=o-i,l+=s,u=`right`,d=`middle`;break;case`insideTop`:c+=o/2,l+=i,u=`center`;break;case`insideBottom`:c+=o/2,l+=a-i,u=`center`,d=`bottom`;break;case`insideTopLeft`:c+=i,l+=i;break;case`insideTopRight`:c+=o-i,l+=i,u=`right`;break;case`insideBottomLeft`:c+=i,l+=a-i,d=`bottom`;break;case`insideBottomRight`:c+=o-i,l+=a-i,u=`right`,d=`bottom`}return(e||={}).x=c,e.y=l,e.align=u,e.verticalAlign=d,e}var Ti=`__zr_normal__`,Ei=di.concat([`ignore`]),Di=N(di,function(e,t){return e[t]=!0,e},{ignore:!1}),Oi={},ki=new J(0,0,0,0),Ai=[],ji=function(){function e(e){this.id=S(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case`horizontal`:t=0;break;case`vertical`:e=0}var r=this.transform;r||=this.transform=[1,0,0,1,0,0],r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||={};var n=this.textConfig,r=n.local,i=t.innerTransformable,a=void 0,o=void 0,s=!1;i.parent=r?this:null;var c=!1;i.copyTransform(t);var l=n.position!=null,u=n.autoOverflowArea,d=void 0;if((u||l)&&(d=ki,n.layoutRect?d.copy(n.layoutRect):d.copy(this.getBoundingRect()),r||d.applyTransform(this.transform)),l){this.calculateTextPosition?this.calculateTextPosition(Oi,n,d):wi(Oi,n,d),i.x=Oi.x,i.y=Oi.y,a=Oi.align,o=Oi.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var p=void 0,m=void 0;f===`center`?(p=.5*d.width,m=.5*d.height):(p=Ci(f[0],d.width),m=Ci(f[1],d.height)),c=!0,i.originX=-i.x+p+(r?0:d.x),i.originY=-i.y+m+(r?0:d.y)}}n.rotation!=null&&(i.rotation=n.rotation);var h=n.offset;h&&(i.x+=h[0],i.y+=h[1],c||(i.originX=-h[0],i.originY=-h[1]));var g=this._innerTextDefaultStyle||={};if(u){var _=g.overflowRect=g.overflowRect||new J(0,0,0,0);i.getLocalTransform(Ai),pt(Ai,Ai),J.copy(_,d),_.applyTransform(Ai)}else g.overflowRect=null;var v=void 0,y=void 0,b=void 0;(n.inside==null?typeof n.position==`string`&&n.position.indexOf(`inside`)>=0:n.inside)&&this.canBeInsideText()?(v=n.insideFill,y=n.insideStroke,v!=null&&v!==`auto`||(v=this.getInsideTextFill()),y!=null&&y!==`auto`||(y=this.getInsideTextStroke(v),b=!0)):(v=n.outsideFill,y=n.outsideStroke,v!=null&&v!==`auto`||(v=this.getOutsideFill()),y!=null&&y!==`auto`||(y=this.getOutsideStroke(v),b=!0)),(v||=`#000`)===g.fill&&y===g.stroke&&b===g.autoStroke&&a===g.align&&o===g.verticalAlign||(s=!0,g.fill=v,g.stroke=y,g.autoStroke=b,g.align=a,g.verticalAlign=o,t.setDefaultTextStyle(g)),t.__dirty|=1,s&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return`#fff`},e.prototype.getInsideTextStroke=function(e){return`#000`},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ei:$r},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n=typeof t==`string`&&Gn(t);n||=[255,255,255,1];for(var r=n[3],i=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*r+(i?0:255)*(1-r);return n[3]=1,Xn(n,`rgba`)},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){e===`textConfig`?this.setTextConfig(t):e===`textContent`?this.setTextContent(t):e===`clipPath`?this.setClipPath(t):e===`extra`?(this.extra=this.extra||{},E(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if(typeof e==`string`)this.attrKV(e,t);else if(V(e))for(var n=F(e),r=0;r<n.length;r++){var i=n[r];this.attrKV(i,e[i])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);for(var t=this._normalState,n=0;n<this.animators.length;n++){var r=this.animators[n],i=r.__fromStateTransition;if(!(r.getLoop()||i&&i!==`__zr_normal__`)){var a=r.targetName,o=a?t[a]:t;r.saveTo(o)}}},e.prototype._innerSaveToNormal=function(e){var t=this._normalState;t||=this._normalState={},e.textConfig&&!t.textConfig&&(t.textConfig=this.textConfig),this._savePrimaryToNormal(e,t,Ei)},e.prototype._savePrimaryToNormal=function(e,t,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]==null||i in t||(t[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(Ti,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===Ti;if(this.hasState()||!i){var a=this.currentStates,o=this.stateTransition;if(!(O(a,e)>=0)||!t&&a.length!==1){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(e)),s||=this.states&&this.states[e],s||i){i||this.saveCurrentToNormalState(s);var c=this._textContent,l=Ii(this,c,s,r);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(e,s,this._normalState,t,Ri(this,n,o),o);var u=this._textGuide;return c&&c.useState(e,t,n,!!l),u&&u.useState(e,t,n,!!l),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2),s}C(`State `+e+` not exists.`)}}},e.prototype.useStates=function(e,t,n){if(e.length){var r=[],i=this.currentStates,a=e.length,o=a===i.length;if(o){for(var s=0;s<a;s++)if(e[s]!==i[s]){o=!1;break}}if(o)return;for(s=0;s<a;s++){var c=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(c,e)),l||=this.states[c],l&&r.push(l)}var u=r[a-1],d=this._textContent,f=Ii(this,d,u,n);f&&!this.__inHover&&(this.__inHover=f);var p=this._mergeStates(r),m=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(`,`),p,this._normalState,!1,Ri(this,t,m),m);var h=this._textGuide;d&&d.useStates(e,t,!!f),h&&h.useStates(e,t,!!f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this.__inHover=0,this.__dirty&=-2)}else this.clearStates()},e.prototype.isSilent=function(){for(var e=this;e;){if(e.silent)return!0;var t=e.__hostTarget;e=t?e.ignoreHostSilent?null:t:e.parent}return!1},e.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var t=this.animators[e];t.targetName&&t.changeTarget(this[t.targetName])}},e.prototype.removeState=function(e){var t=O(this.currentStates,e);if(t>=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=O(r,e),a=O(r,t)>=0;i>=0?a?r.splice(i,1):r[i]=t:n&&!a&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},r=0;r<e.length;r++){var i=e[r];E(n,i),i.textConfig&&E(t||={},i.textConfig)}return t&&(n.textConfig=t),n},e.prototype._applyStateObj=function(e,t,n,r,i,a){if(this.__inHover!==1){var o=!(t&&r);t&&t.textConfig?(this.textConfig=E({},r?this.textConfig:n.textConfig),E(this.textConfig,t.textConfig)):o&&n.textConfig&&(this.textConfig=n.textConfig);for(var s={},c=!1,l=0;l<Ei.length;l++){var u=Ei[l],d=i&&Di[u];t&&t[u]!=null?d?(c=!0,s[u]=t[u]):this[u]=t[u]:o&&n[u]!=null&&(d?(c=!0,s[u]=n[u]):this[u]=n[u])}if(!i)for(l=0;l<this.animators.length;l++){var f=this.animators[l],p=f.targetName;f.getLoop()||f.__changeFinalValue(p?(t||n)[p]:t||n)}c&&this._transitionState(e,s,a)}},e.prototype._attachComponent=function(e){if((!e.__zr||e.__hostTarget)&&e!==this){var t=this.__zr;t&&e.addSelfToZr(t),e.__zr=t,e.__hostTarget=this}},e.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},e.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(e){var t=this._textContent;t!==e&&(t&&t!==e&&this.removeTextContent(),e.innerTransformable=new li,this._attachComponent(e),this._textContent=e,this.markRedraw())},e.prototype.setTextConfig=function(e){this.textConfig||={},E(this.textConfig,e),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=1;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.addAnimator(t[n]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},e.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var t=this.animators;if(t)for(var n=0;n<t.length;n++)e.animation.removeAnimator(t[n]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},e.prototype.animate=function(e,t,n){var r=new kr(e?this[e]:this,t,n);return e&&(r.targetName=e),this.addAnimator(r,e),r},e.prototype.addAnimator=function(e,t){var n=this.__zr,r=this;e.during(function(){r.updateDuringAnimation(t)}).done(function(){var t=r.animators,n=O(t,e);n>=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],a=0;a<r;a++){var o=n[a];e&&e!==o.scope?i.push(o):o.stop(t)}return this.animators=i,this},e.prototype.animateTo=function(e,t,n){Mi(this,e,t,n)},e.prototype.animateFrom=function(e,t,n){Mi(this,e,t,n,!0)},e.prototype._transitionState=function(e,t,n,r){for(var i=Mi(this,t,n,r),a=0;a<i.length;a++)i[a].__fromStateTransition=e},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;function n(e,n,r,i){function a(e,t){Object.defineProperty(t,0,{get:function(){return e[r]},set:function(t){e[r]=t}}),Object.defineProperty(t,1,{get:function(){return e[i]},set:function(t){e[i]=t}})}Object.defineProperty(t,e,{get:function(){return this[n]||a(this,this[n]=[]),this[n]},set:function(e){this[r]=e[0],this[i]=e[1],this[n]=e,a(this,e)}})}t.type=`element`,t.name=``,t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=0,t.__dirty=1,Object.defineProperty&&(n(`position`,`_legacyPos`,`x`,`y`),n(`scale`,`_legacyScale`,`scaleX`,`scaleY`),n(`origin`,`_legacyOrigin`,`originX`,`originY`))}(),e}();function Mi(e,t,n,r,i){var a=[];Fi(e,``,e,t,n||={},r,a,i);var o=a.length,s=!1,c=n.done,l=n.aborted,u=function(){s=!0,--o<=0&&(s?c&&c():l&&l())},d=function(){--o<=0&&(s?c&&c():l&&l())};o||c&&c(),a.length>0&&n.during&&a[0].during(function(e,t){n.during(t)});for(var f=0;f<a.length;f++){var p=a[f];u&&p.done(u),d&&p.aborted(d),n.force&&p.duration(n.duration),p.start(n.easing)}return a}function Ni(e,t,n){for(var r=0;r<n;r++)e[r]=t[r]}function Pi(e,t,n){if(A(t[n])){if(A(e[n])||(e[n]=[]),H(t[n])){var r=t[n].length;e[n].length!==r&&(e[n]=new t[n].constructor(r),Ni(e[n],t[n],r))}else{var i=t[n],a=e[n],o=i.length;if(A(i[0]))for(var s=i[0].length,c=0;c<o;c++)a[c]?Ni(a[c],i[c],s):a[c]=Array.prototype.slice.call(i[c]);else Ni(a,i,o);a.length=i.length}}else e[n]=t[n]}function Fi(e,t,n,r,i,a,o,s){for(var c=F(r),l=i.duration,u=i.delay,d=i.additive,f=i.setToFinal,p=!V(a),m=e.animators,h=[],g=0;g<c.length;g++){var _=c[g],v=r[_];if(v!=null&&n[_]!=null&&(p||a[_])){if(!V(v)||A(v)||W(v))h.push(_);else{if(t){s||(n[_]=v,e.updateDuringAnimation(t));continue}Fi(e,_,n[_],v,i,a&&a[_],o,s)}}else s||(n[_]=v,e.updateDuringAnimation(t),h.push(_))}var y=h.length;if(!d&&y){for(var b=0;b<m.length;b++)if((S=m[b]).targetName===t&&S.stopTracks(h)){var x=O(m,S);m.splice(x,1)}}if(i.force||(h=P(h,function(e){return t=r[e],i=n[e],!(t===i||A(t)&&A(i)&&function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}(t,i));var t,i}),y=h.length),y>0||i.force&&!o.length){var S,C=void 0,w=void 0,T=void 0;if(s)for(w={},f&&(C={}),b=0;b<y;b++)w[_=h[b]]=n[_],f?C[_]=r[_]:n[_]=r[_];else if(f)for(T={},b=0;b<y;b++)T[_=h[b]]=Cr(n[_]),Pi(n,r,_);(S=new kr(n,!1,!1,d?P(m,function(e){return e.targetName===t}):null)).targetName=t,i.scope&&(S.scope=i.scope),f&&C&&S.whenWithKeys(0,C,h),T&&S.whenWithKeys(0,T,h),S.whenWithKeys(l??500,s?w:r,h).delay(u||0),e.addAnimator(S,t),o.push(S)}}function Ii(e,t,n,r){return!(n&&n.hoverLayer||r)||Li(e)||t&&Li(t)?0:1}function Li(e){return e.type===`text`||e.type===`tspan`}function Ri(e,t,n){return!t&&!e.__inHover&&n&&n.duration>0}k(ji,Ie),k(ji,li);var zi=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return n(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n<t.length;n++)if(t[n].name===e)return t[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,t){if(e&&e!==this&&e.parent!==this&&t&&t.parent===this){var n=this._children,r=n.indexOf(t);r>=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=O(this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=O(n,e);return r<0||(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n<e.length;n++){var r=e[n];t&&r.removeSelfFromZr(t),r.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,t){for(var n=this._children,r=0;r<n.length;r++){var i=n[r];e.call(t,i,r)}return this},t.prototype.traverse=function(e,t){for(var n=0;n<this._children.length;n++){var r=this._children[n],i=e.call(t,r);r.isGroup&&!i&&r.traverse(e,t)}return this},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].removeSelfFromZr(t)},t.prototype.getBoundingRect=function(e){for(var t=new J(0,0,0,0),n=e||this._children,r=[],i=null,a=0;a<n.length;a++){var o=n[a];if(!o.ignore&&!o.invisible){var s=o.getBoundingRect(),c=o.getLocalTransform(r);c?(J.applyTransform(t,s,c),(i||=t.clone()).union(t)):(i||=s.clone()).union(s)}}return i||t},t}(ji);zi.prototype.type=`group`;var Bi={},Vi={},Hi,Ui=function(){function e(e,t,n){var r=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,n||={},this.dom=t,this.id=e;var a=new tn,o=n.renderer||`canvas`;Bi[o]||(o=F(Bi)[0]),n.useDirtyRect=n.useDirtyRect!=null&&n.useDirtyRect;var s=new Bi[o](t,a,n,e),c=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var l,u=i.node||i.worker||c?null:new Xr(s.getViewportRoot(),s.root),d=n.useCoarsePointer;(d==null||d===`auto`?i.touchEventsSupported:d)&&(l=G(n.pointerSize,44)),this.handler=new Ht(a,s,u,s.root,l),this.animation=new Nr({stage:{update:c?null:function(){return r._flush(!1)}}}),c||this.animation.start()}return e.prototype.add=function(e){!this._disposed&&e&&(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},e.prototype.remove=function(e){!this._disposed&&e&&(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},e.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=function(e){if(!e)return!1;if(typeof e==`string`)return Zn(e,1)<.4;if(e.colorStops){for(var t=e.colorStops,n=0,r=t.length,i=0;i<r;i++)n+=Zn(t[i].color,1);return(n/=r)<.4}return!1}(e))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(e){this._darkMode=e},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(e){this._disposed||this._refresh({animUpdate:!e,refresh:!0,refreshHover:!1})},e.prototype._refresh=function(e){e.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:e.refresh,refreshHover:e.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!0)},e.prototype._flush=function(e){var t,n=Ar(),r=this._needsRefresh,i=this._needsRefreshHover;(r||i)&&(t=!0,this._refresh({animUpdate:e,refresh:r,refreshHover:i}));var a=Ar();t?(this._stillFrameAccum=0,this.trigger(`rendered`,{elapsedTime:a-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},e.prototype.resize=function(e){this._disposed||(e||={},this.painter.resize(e.width,e.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this._disposed||this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},e.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},e.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof zi&&e[t].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){var e;this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,e=this.id,delete Vi[e])},e}();function Wi(e,t){var n=new Ui(S(),e,t);return Vi[n.id]=n,n}var Gi=1e-4,Ki=Math.min,qi=Math.max,Ji=Math.abs,Yi=Math.round,Xi=Math.floor,Zi=Math.ceil,Qi=Math.pow,$i=Math.log,ea=Math.LN10,ta=Math.PI,na=Math.random;function ra(e,t,n,r){var i=t[0],a=t[1],o=n[0],s=n[1],c=a-i,l=s-o;if(c===0)return l===0?o:(o+s)/2;if(r){if(c>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}}else{if(e===i)return o;if(e===a)return s}return(e-i)/c*l+o}var ia=function(e,t,n){switch(e){case`center`:case`middle`:e=`50%`;break;case`left`:case`top`:e=`0%`;break;case`right`:case`bottom`:e=`100%`}return aa(e,t,n)};function aa(e,t,n){return z(e)?function(e){return!!(t=e,t.replace(/^\s+|\s+$/g,``)).match(/%$/);var t}(e)?parseFloat(e)/100*t+(n||0):parseFloat(e):e==null?NaN:+e}function oa(e,t,n){return isNaN(t)?n?``+e:+e:(t=Ki(qi(0,t),20),e=(+e).toFixed(t),n?e:+e)}function sa(e){return e.sort(function(e,t){return e-t}),e}function ca(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Yi(e*t)/t===e)return n}return function(e){var t=e.toString().toLowerCase(),n=t.indexOf(`e`),r=n>0?+t.slice(n+1):0,i=n>0?n:t.length,a=t.indexOf(`.`);return qi(0,(a<0?0:i-1-a)-r)}(e)}function la(e,t,n){var r=Ji(e[1]-e[0]);if(!isFinite(r)||r===0)return NaN;var i=$i(2*Ji(n||1)*Ji(r))/ea,a=$i(Ji(t))/ea,o=qi(0,Zi(-i+a));return isFinite(o)||(o=NaN),o}function ua(e,t){var n=N(e,function(e,t){return e+(isNaN(t)?0:t)},0);if(n===0)return[];for(var r=Qi(10,t),i=M(e,function(e){return(isNaN(e)?0:e)/n*r*100}),a=100*r,o=M(i,function(e){return Xi(e)}),s=N(o,function(e,t){return e+t},0),c=M(i,function(e,t){return e-o[t]});s<a;){for(var l=-1/0,u=null,d=0,f=c.length;d<f;++d)c[d]>l&&(l=c[d],u=d);++o[u],c[u]=0,++s}return M(o,function(e){return e/r})}function da(e,t){var n=qi(ca(e),ca(t)),r=e+t;return n>20?r:oa(r,n)}var fa=Qi(2,53)-1;function pa(e){var t=2*ta;return(e%t+t)%t}function ma(e){return e>-1e-4&&e<Gi}var ha=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function ga(e){if(e instanceof Date)return e;if(z(e)){var t=ha.exec(e);if(!t)return new Date(NaN);if(t[8]){var n=+t[4]||0;return t[8].toUpperCase()!==`Z`&&(n-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],(t[2]||1)-1,+t[3]||1,n,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return e==null?new Date(NaN):new Date(Yi(e))}function _a(e){return Qi(10,va(e))}function va(e){if(e===0)return 0;var t=Xi($i(e)/ea);return e/Qi(10,t)>=10&&t++,t}function ya(e,t){var n=va(e),r=Qi(10,n),i=e/r;return oa(e=(t===2?1:t?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*r,-n)}function ba(e){var t=parseFloat(e);return t==e&&(t!==0||!z(e)||e.indexOf(`x`)<=0)?t:NaN}function xa(){return Yi(9*na())}function Sa(e,t){return t===0?e:Sa(t,e%t)}function Ca(e,t){return e==null?t:t==null?e:e*t/Sa(e,t)}function wa(e){return e!=null&&isFinite(e)}var Ta={},Ea=typeof console<`u`&&console.warn&&console.log;function Da(e,t){(function(e,t,n){if(Ea){if(n){if(Ta[t])return;Ta[t]=!0}console[e](`[ECharts] `+t)}})(`error`,e,t)}function Oa(e){throw Error(e)}function ka(e,t,n){return(t-e)*n+e}var Aa=`series\0`;function ja(e){return e instanceof Array?e:e==null?[]:[e]}function Ma(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,i=n.length;r<i;r++){var a=n[r];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var Na=`fontStyle.fontWeight.fontSize.fontFamily.rich.tag.color.textBorderColor.textBorderWidth.width.height.lineHeight.align.verticalAlign.baseline.shadowColor.shadowBlur.shadowOffsetX.shadowOffsetY.textShadowColor.textShadowBlur.textShadowOffsetX.textShadowOffsetY.backgroundColor.borderColor.borderWidth.borderRadius.padding`.split(`.`);function Pa(e){return!V(e)||L(e)||e instanceof Date?e:e.value}function Fa(e){return V(e)&&!(e instanceof Array)}function Ia(e,t,n){var r=n===`normalMerge`,i=n===`replaceMerge`,a=n===`replaceAll`;e||=[],t=(t||[]).slice();var o=K();j(t,function(e,n){V(e)||(t[n]=null)});var s,c,l=function(e,t,n){var r=[];if(n===`replaceAll`)return r;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),r.push({existing:n===`replaceMerge`||Va(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}(e,o,n);return(r||i)&&function(e,t,n,r){j(r,function(i,a){if(i&&i.id!=null){var o=Ra(i.id),s=n.get(o);if(s!=null){var c=e[s];le(!c.newOption,`Duplicated option on id "`+o+`".`),c.newOption=i,c.existing=t[s],r[a]=null}}})}(l,e,o,t),r&&function(e,t){j(t,function(n,r){if(n&&n.name!=null)for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||n.id==null)&&!Va(n)&&!Va(a)&&La(`name`,a,n))return e[i].newOption=n,void(t[r]=null)}})}(l,t),r||i?function(e,t,n){j(t,function(t){if(t){for(var r,i=0;(r=e[i])&&(r.newOption||Va(r.existing)||r.existing&&t.id!=null&&!La(`id`,t,r.existing));)i++;r?(r.newOption=t,r.brandNew=n):e.push({newOption:t,brandNew:n,existing:null,keyInfo:null}),i++}})}(l,t,i):a&&function(e,t){j(t,function(t){e.push({newOption:t,brandNew:!0,existing:null,keyInfo:null})})}(l,t),s=l,c=K(),j(s,function(e){var t=e.existing;t&&c.set(t.id,e)}),j(s,function(e){var t=e.newOption;le(!t||t.id==null||!c.get(t.id)||c.get(t.id)===e,`id duplicates: `+(t&&t.id)),t&&t.id!=null&&c.set(t.id,e),!e.keyInfo&&(e.keyInfo={})}),j(s,function(e,t){var n=e.existing,r=e.newOption,i=e.keyInfo;if(V(r)){if(i.name=r.name==null?n?n.name:Aa+t:Ra(r.name),n)i.id=Ra(n.id);else if(r.id!=null)i.id=Ra(r.id);else{var a=0;do i.id=`\0`+i.name+`\0`+a++;while(c.get(i.id))}c.set(i.id,e)}}),l}function La(e,t,n){var r=za(t[e],null),i=za(n[e],null);return r!=null&&i!=null&&r===i}function Ra(e){return za(e,``)}function za(e,t){return e==null?t:z(e)?e:B(e)||ne(e)?e+``:t}function Ba(e){var t=e.name;return!(!t||!t.indexOf(Aa))}function Va(e){return e&&e.id!=null&&Ra(e.id).indexOf(`\0_ec_\0`)===0}function Ha(e,t){return t.dataIndexInside==null?t.dataIndex==null?t.name==null?void 0:L(t.name)?M(t.name,function(t){return e.indexOfName(t)}):e.indexOfName(t.name):L(t.dataIndex)?M(t.dataIndex,function(t){return e.indexOfRawIndex(t)}):e.indexOfRawIndex(t.dataIndex):t.dataIndexInside}function Ua(){var e=`__ec_inner_`+Wa++;return function(t){return t[e]||(t[e]={})}}var Wa=xa();function Ga(e,t,n){var r=Ka(t,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=n?n.defaultMainType:null;return!i&&s&&a.set(s,{}),a.each(function(t,r){var i=Ja(e,r,t,{useDefault:s===r,enableAll:!n||n.enableAll==null||n.enableAll,enableNone:!n||n.enableNone==null||n.enableNone});o[r+`Models`]=i.models,o[r+`Model`]=i.models[0]}),o}function Ka(e,t){var n;if(z(e)){var r={};r[e+`Index`]=0,n=r}else n=e;var i=K(),a={},o=!1;return j(n,function(e,n){if(n!==`dataIndex`&&n!==`dataIndexInside`){var r=n.match(/^(\w+)(Index|Id|Name)$/)||[],s=r[1],c=(r[2]||``).toLowerCase();s&&c&&!(t&&t.includeMainTypes&&O(t.includeMainTypes,s)<0)&&(o||=!!s,(i.get(s)||i.set(s,{}))[c]=e)}else a[n]=e}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var qa={useDefault:!0,enableAll:!1,enableNone:!1};function Ja(e,t,n,r){r||=qa;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var c=void 0;return s.models=r.useDefault&&(c=e.getComponent(t))?[c]:[],s}if(i===`none`||!1===i){if(r.enableNone)return s.models=[],s;i=-1}return i===`all`&&(i=r.enableAll?a=o=null:-1),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s}function Ya(e,t,n){e.setAttribute?e.setAttribute(t,n):e[t]=n}function Xa(e){return e===`auto`?i.domSupported?`html`:`richText`:e||`html`}function Za(e,t,n,r,i){var a=t==null||t===`auto`;if(r==null)return r;if(B(r))return oa(m=ka(n||0,r,i),a?Math.max(ca(n||0),ca(r)):t);if(z(r))return i<1?n:r;for(var o=[],s=n,c=r,l=Math.max(s?s.length:0,c.length),u=0;u<l;++u){var d=e.getDimensionInfo(u);if(d&&d.type===`ordinal`)o[u]=(i<1&&s?s:c)[u];else{var f=s&&s[u]?s[u]:0,p=c[u],m=ka(f,p,i);o[u]=oa(m,a?Math.max(ca(f),ca(p)):t)}}return o}(function(){function e(){}e.prototype.reset=function(e,t,n,r){return this._list=e,this._step=r||=1,this._idx=t,this._end=n??(r>0?e.length:0),this.item=null,this.key=NaN,this},e.prototype.next=function(){return(this._step>0?this._idx<this._end:this._idx>=this._end)&&(this.item=this._list[this._idx],this.key=this._idx+=this._step,!0)}})();function Qa(){return[1/0,-1/0]}function $a(e,t){ro(t)&&(t<e[0]&&(e[0]=t),t>e[1]&&(e[1]=t))}function eo(e,t){ro(t)&&t<e[0]&&(e[0]=t)}function to(e,t){ro(t)&&t>e[1]&&(e[1]=t)}function no(e,t){io(t[0],t[1])&&(t[0]<e[0]&&(e[0]=t[0]),t[1]>e[1]&&(e[1]=t[1]))}function ro(e){return e!=null&&isFinite(e)}function io(e,t){return ro(e)&&ro(t)&&e<=t}function ao(e){var t=e[1]-e[0];return isFinite(t)&&t>=0}function oo(e){io(e[0],e[1])&&e[0]>e[1]&&(e[0]=e[1])}function so(){var e=`__ec_once_`+co++;return function(t,n){q(t,e)||(t[e]=1,n())}}var co=xa();function lo(e,t,n){var r=K(),i=0;j(e,function(a){var o=t(a),s=r.get(o)||0;n&&n(a,s),s||n||(e[i++]=a),r.set(o,s+1)}),n||(e.length=i)}function uo(e){return e.value+``}function fo(e){return e+``}function po(e,t){return G(t,!0)?e.seriesIndex+2:0}function mo(e,t,n){var r=e.getData().count();return{progressiveRender:n.progressiveEnabled&&t.incrementalPrepareRender&&r>=n.threshold,large:e.get(`large`)&&r>=e.get(`largeThreshold`),modDataCount:e.get(`progressiveChunkMode`)===`mod`?e.getData().count():null}}function ho(e,t){return{seriesType:e,overallReset:t}}function go(e){return{overallReset:e}}var _o=`___EC__COMPONENT__CONTAINER___`,vo=`___EC__EXTENDED_CLASS___`;function yo(e){var t={main:``,sub:``};if(e){var n=e.split(`.`);t.main=n[0]||``,t.sub=n[1]||``}return t}function bo(e,t){e.$constructor=e,e.extend=function(e){var t,r,i=this;return R(r=i)&&/^class\s/.test(Function.prototype.toString.call(r))?t=function(e){function t(){return e.apply(this,arguments)||this}return n(t,e),t}(i):(t=function(){(e.$constructor||i).apply(this,arguments)},function(e,t){var n=e.prototype;function r(){}for(var i in r.prototype=t.prototype,e.prototype=new r,n)n.hasOwnProperty(i)&&(e.prototype[i]=n[i]);e.prototype.constructor=e,e.superClass=t}(t,this)),E(t.prototype,e),t[vo]=!0,t.extend=this.extend,t.superCall=Co,t.superApply=wo,t.superClass=i,t}}function xo(e,t){e.extend=t.extend}var So=Math.round(10*Math.random());function Co(e,t){var n=[...arguments].slice(2);return this.superClass.prototype[t].apply(e,n)}function wo(e,t,n){return this.superClass.prototype[t].apply(e,n)}function To(e){var t={};e.registerClass=function(e){var n,r=e.type||e.prototype.type;if(r){le(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(n=r),`componentType "`+n+`" illegal`),e.prototype.type=r;var i=yo(r);if(i.sub){if(i.sub!==_o){var a=function(e){var n=t[e.main];return n&&n[_o]||((n=t[e.main]={})[_o]=!0),n}(i);a[i.sub]=e}}else t[i.main]=e}return e},e.getClass=function(e,n,r){var i=t[e];if(i&&i[_o]&&(i=n?i[n]:null),r&&!i)throw Error(n?`Component `+e+`.`+(n||``)+` is used but not imported.`:e+`.type should be specified.`);return i},e.getClassesByMainType=function(e){var n=yo(e),r=[],i=t[n.main];return i&&i[_o]?j(i,function(e,t){t!==_o&&r.push(e)}):r.push(i),r},e.hasClass=function(e){return!!t[yo(e).main]},e.getAllClassMainTypes=function(){var e=[];return j(t,function(t,n){e.push(n)}),e},e.hasSubTypes=function(e){var n=t[yo(e).main];return n&&n[_o]}}function Eo(e,t){for(var n=0;n<e.length;n++)e[n][1]||(e[n][1]=e[n][0]);return t||=!1,function(n,r,i){for(var a={},o=0;o<e.length;o++){var s=e[o][1];if(!(r&&O(r,s)>=0||i&&O(i,s)<0)){var c=n.getShallow(s,t);c!=null&&(a[e[o][0]]=c)}}return a}}var Do=Eo([[`fill`,`color`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`opacity`],[`shadowColor`]]),Oo=function(){function e(){}return e.prototype.getAreaStyle=function(e,t){return Do(this,e,t)},e}(),ko=new Mn(50);function Ao(e){if(typeof e==`string`){var t=ko.get(e);return t&&t.image}return e}function jo(e,t,n,r,i){if(e){if(typeof e==`string`){if(t&&t.__zrImageSrc===e||!n)return t;var a=ko.get(e),o={hostEl:n,cb:r,cbPayload:i};return a?!No(t=a.image)&&a.pending.push(o):((t=c.loadImage(e,Mo,Mo)).__zrImageSrc=e,ko.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}return e}return t}function Mo(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var n=e.pending[t],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}e.pending.length=0}function No(e){return e&&e.width&&e.height}var Po=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Fo(e,t,n,r,i,a){if(!n)return e.text=``,void(e.isTruncated=!1);var o=(t+``).split(`
|
|
3
|
+
`);a=Io(n,r,i,a);for(var s=!1,c={},l=0,u=o.length;l<u;l++)Lo(c,o[l],a),o[l]=c.textLine,s||=c.isTruncated;e.text=o.join(`
|
|
4
|
+
`),e.isTruncated=s}function Io(e,t,n,r){var i=E({},r||={});n=G(n,`...`),i.maxIterations=G(r.maxIterations,2);var a=i.minChar=G(r.minChar,0),o=i.fontMeasureInfo=pi(t),s=o.asciiCharWidth;i.placeholder=G(r.placeholder,``);for(var c=e=Math.max(0,e-1),l=0;l<a&&c>=s;l++)c-=s;var u=_i(o,n);return u>c&&(n=``,u=0),c=e-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=c,i.containerWidth=e,i}function Lo(e,t,n){var r=n.containerWidth,i=n.contentWidth,a=n.fontMeasureInfo;if(!r)return e.textLine=``,void(e.isTruncated=!1);var o=_i(a,t);if(o<=r)return e.textLine=t,void(e.isTruncated=!1);for(var s=0;;s++){if(o<=i||s>=n.maxIterations){t+=n.ellipsis;break}var c=s===0?Ro(t,i,a):o>0?Math.floor(t.length*i/o):0;o=_i(a,t=t.substr(0,c))}t===``&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function Ro(e,t,n){for(var r=0,i=0,a=e.length;i<a&&r<t;i++)r+=gi(n,e.charCodeAt(i));return i}var zo=function(){},Bo=function(e){this.tokens=[],e&&(this.tokens=e)},Vo=function(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1};function Ho(e,t,n,r,i){var a,o,s=t===``,c=i&&n.rich[i]||{},l=e.lines,u=c.font||n.font,d=!1;if(r){var f=c.padding,p=f?f[1]+f[3]:0;if(c.width!=null&&c.width!==`auto`){var m=Ci(c.width,r.width)+p;l.length>0&&m+r.accumWidth>r.width&&(a=t.split(`
|
|
5
|
+
`),d=!0),r.accumWidth=m}else{var h=Go(t,u,r.width,r.breakAll,r.accumWidth);r.accumWidth=h.accumWidth+p,o=h.linesWidths,a=h.lines}}a||=t.split(`
|
|
6
|
+
`);for(var g=pi(u),_=0;_<a.length;_++){var v=a[_],y=new zo;if(y.styleName=i,y.text=v,y.isLineHolder=!v&&!s,y.width=typeof c.width==`number`?c.width:o?o[_]:_i(g,v),_||d)l.push(new Bo([y]));else{var b=(l[l.length-1]||(l[0]=new Bo)).tokens,x=b.length;x===1&&b[0].isLineHolder?b[0]=y:(v||!x||s)&&b.push(y)}}}var Uo=N(`,&?/;] `.split(``),function(e,t){return e[t]=!0,e},{});function Wo(e){return!function(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}(e)||!!Uo[e]}function Go(e,t,n,r,i){for(var a=[],o=[],s=``,c=``,l=0,u=0,d=pi(t),f=0;f<e.length;f++){var p=e.charAt(f);if(p!==`
|
|
7
|
+
`){var m=gi(d,p.charCodeAt(0)),h=!r&&!Wo(p);(a.length?u+m>n:i+u+m>n)?u?(s||c)&&(h?(s||(s=c,c=``,u=l=0),a.push(s),o.push(u-l),c+=p,s=``,u=l+=m):(c&&(s+=c,c=``,l=0),a.push(s),o.push(u),s=p,u=m)):h?(a.push(c),o.push(l),c=p,l=m):(a.push(p),o.push(m)):(u+=m,h?(c+=p,l+=m):(c&&(s+=c,c=``,l=0),s+=p))}else c&&(s+=c,u+=l),a.push(s),o.push(u),s=``,c=``,l=0,u=0}return c&&(s+=c),s&&(a.push(s),o.push(u)),a.length===1&&(u+=i),{accumWidth:u,lines:a,linesWidths:o}}function Ko(e,t,n,r,i,a){if(e.baseX=n,e.baseY=r,e.outerWidth=e.outerHeight=null,t){var o=2*t.width,s=2*t.height;J.set(qo,bi(n,o,i),xi(r,s,a),o,s),J.intersect(t,qo,null,Jo);var c=Jo.outIntersectRect;e.outerWidth=c.width,e.outerHeight=c.height,e.baseX=bi(c.x,c.width,i,!0),e.baseY=xi(c.y,c.height,a,!0)}}var qo=new J(0,0,0,0),Jo={outIntersectRect:{},clamp:!0};function Yo(e){return e==null?e=``:e+=``}function Xo(e,t,n,r){var i=new J(bi(e.x||0,t,e.textAlign),xi(e.y||0,n,e.textBaseline),t,n),a=r??(Zo(e)?e.lineWidth:0);return a>0&&(i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a),i}function Zo(e){var t=e.stroke;return t!=null&&t!==`none`&&e.lineWidth>0}var Qo=`__zr_style_`+Math.round(10*Math.random()),$o={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:`#000`,opacity:1,blend:`source-over`},es={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};$o[Qo]=!0;var ts=[`z`,`z2`,`invisible`],ns=[`invisible`],rs=function(e){function t(t){return e.call(this,t)||this}var r;return n(t,e),t.prototype._init=function(t){for(var n=F(t),r=0;r<n.length;r++){var i=n[r];i===`style`?this.useStyle(t[i]):e.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(e){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,t,n,r){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&function(e,t,n){return is.copy(e.getBoundingRect()),e.transform&&is.applyTransform(e.transform),as.width=t,as.height=n,!is.intersect(as)}(this,e,t)||i&&!i[0]&&!i[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var a=0;a<this.__clipPaths.length;++a)if(this.__clipPaths[a].isZeroArea())return!1}if(r&&this.parent)for(var o=this.parent;o;){if(o.ignore)return!1;o=o.parent}return!0},t.prototype.contain=function(e,t){return this.rectContain(e,t)},t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.rectContain=function(e,t){var n=this.transformCoordToLocal(e,t);return this.getBoundingRect().contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var t=this.transform,n=this.getBoundingRect(),r=this.style,i=r.shadowBlur||0,a=r.shadowOffsetX||0,o=r.shadowOffsetY||0;e=this._paintRect||=new J(0,0,0,0),t?J.applyTransform(e,n,t):e.copy(n),(i||a||o)&&(e.width+=2*i+Math.abs(a),e.height+=2*i+Math.abs(o),e.x=Math.min(e.x,e.x+a-i),e.y=Math.min(e.y,e.y+o-i));var s=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-s),e.y=Math.floor(e.y-s),e.width=Math.ceil(e.width+1+2*s),e.height=Math.ceil(e.height+1+2*s))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new J(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate(`style`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`style`?this.style?this.setStyle(n):this.useStyle(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setStyle=function(e,t){return typeof e==`string`?this.style[e]=t:E(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=2,this._rect&&=null},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(2&this.__dirty)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(e){return _e($o,e)},t.prototype.useStyle=function(e){e[Qo]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[Qo]},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,n,ts)},t.prototype._applyStateObj=function(t,n,r,i,a,o){e.prototype._applyStateObj.call(this,t,n,r,i,a,o);var s,c=!(n&&i),l=this.__inHover===1;if(n&&n.style?a?i?s=n.style:(s=this._mergeStyle(this.createStyle(),r.style),this._mergeStyle(s,n.style)):(s=this._mergeStyle(this.createStyle(),i?this.style:r.style),this._mergeStyle(s,n.style)):c&&(s=r.style),s){if(a){var u=this.style;if(this.style=this.createStyle(c?{}:u),c)for(var d=F(u),f=0;f<d.length;f++)(m=d[f])in s&&(s[m]=s[m],this.style[m]=u[m]);var p=F(s);for(f=0;f<p.length;f++){var m=p[f];this.style[m]=this.style[m]}this._transitionState(t,{style:s},o,this.getAnimationStyleProps())}else l?this._useHoverStyle(s):this.useStyle(s)}if(!l){var h=this.__inHover?ns:ts;for(f=0;f<h.length;f++)m=h[f],n&&n[m]!=null?this[m]=n[m]:c&&r[m]!=null&&(this[m]=r[m])}},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.style&&(n||={},this._mergeStyle(n,a.style))}return n&&(r.style=n),r},t.prototype._mergeStyle=function(e,t){return E(e,t),e},t.prototype.getAnimationStyleProps=function(){return es},t.initDefaultProps=((r=t.prototype).type=`displayable`,r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor=`pointer`,r.rectHover=!1,r.incremental=0,r._rect=null,r.dirtyRectTolerance=0,void(r.__dirty=3)),t}(ji),is=new J(0,0,0,0),as=new J(0,0,0,0),os=Math.min,ss=Math.max,cs=Math.sin,ls=Math.cos,us=2*Math.PI,ds=be(),fs=be(),ps=be();function ms(e,t,n,r,i,a){i[0]=os(e,n),i[1]=os(t,r),a[0]=ss(e,n),a[1]=ss(t,r)}var hs=[],gs=[];function _s(e,t,n,r,i,a,o,s,c,l){var u=yn,d=gn,f=u(e,n,i,o,hs);c[0]=1/0,c[1]=1/0,l[0]=-1/0,l[1]=-1/0;for(var p=0;p<f;p++){var m=d(e,n,i,o,hs[p]);c[0]=os(m,c[0]),l[0]=ss(m,l[0])}for(f=u(t,r,a,s,gs),p=0;p<f;p++){var h=d(t,r,a,s,gs[p]);c[1]=os(h,c[1]),l[1]=ss(h,l[1])}c[0]=os(e,c[0]),l[0]=ss(e,l[0]),c[0]=os(o,c[0]),l[0]=ss(o,l[0]),c[1]=os(t,c[1]),l[1]=ss(t,l[1]),c[1]=os(s,c[1]),l[1]=ss(s,l[1])}function vs(e,t,n,r,i,a,o,s){var c=wn,l=Sn,u=ss(os(c(e,n,i),1),0),d=ss(os(c(t,r,a),1),0),f=l(e,n,i,u),p=l(t,r,a,d);o[0]=os(e,i,f),o[1]=os(t,a,p),s[0]=ss(e,i,f),s[1]=ss(t,a,p)}function ys(e,t,n,r,i,a,o,s,c){var l=Me,u=Ne,d=Math.abs(i-a);if(d%us<1e-4&&d>1e-4)return s[0]=e-n,s[1]=t-r,c[0]=e+n,void(c[1]=t+r);if(ds[0]=ls(i)*n+e,ds[1]=cs(i)*r+t,fs[0]=ls(a)*n+e,fs[1]=cs(a)*r+t,l(s,ds,fs),u(c,ds,fs),(i%=us)<0&&(i+=us),(a%=us)<0&&(a+=us),i>a&&!o?a+=us:i<a&&o&&(i+=us),o){var f=a;a=i,i=f}for(var p=0;p<a;p+=Math.PI/2)p>i&&(ps[0]=ls(p)*n+e,ps[1]=cs(p)*r+t,l(s,ps,s),u(c,ps,c))}var Y={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},bs=[],xs=[],Ss=[],Cs=[],ws=[],Ts=[],Es=Math.min,Ds=Math.max,Os=Math.cos,ks=Math.sin,As=Math.abs,js=Math.PI,Ms=2*js,Ns=typeof Float32Array<`u`,Ps=[];function Fs(e){return Math.round(e/js*1e8)/1e8%2*js}function Is(e,t){var n=Fs(e[0]);n<0&&(n+=Ms);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=Ms?i=n+Ms:t&&n-i>=Ms?i=n-Ms:!t&&n>i?i=n+(Ms-Fs(n-i)):t&&n<i&&(i=n-(Ms-Fs(i-n))),e[0]=n,e[1]=i}var Ls=function(){function e(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}var t;return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(e,t,n){(n||=0)>0&&(this._ux=As(n/Qr/e)||0,this._uy=As(n/Qr/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(Y.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=As(e-this._xi),r=As(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(Y.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var a=n*n+r*r;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){return this._drawPendingPt(),this.addData(Y.C,e,t,n,r,i,a),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,a),this._xi=i,this._yi=a,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(Y.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,a){this._drawPendingPt(),Ps[0]=r,Ps[1]=i,Is(Ps,a),r=Ps[0];var o=(i=Ps[1])-r;return this.addData(Y.A,e,t,n,n,r,o,0,+!a),this._ctx&&this._ctx.arc(e,t,n,r,i,a),this._xi=Os(i)*n+e,this._yi=ks(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(Y.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Y.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){if(this._saveData){var t=e.length;this.data&&this.data.length===t||!Ns||(this.data=new Float32Array(t));for(var n=0;n<t;n++)this.data[n]=e[n];this._len=t}},e.prototype.appendPath=function(e){if(this._saveData){e instanceof Array||(e=[e]);for(var t=e.length,n=0,r=this._len,i=0;i<t;i++)n+=e[i].len();var a=this.data;if(Ns&&(a instanceof Float32Array||!a)&&(this.data=new Float32Array(r+n),r>0&&a))for(var o=0;o<r;o++)this.data[o]=a[o];for(i=0;i<t;i++){var s=e[i].data;for(o=0;o<s.length;o++)this.data[r++]=s[o]}this._len=r}},e.prototype.addData=function(e,t,n,r,i,a,o,s,c){if(this._saveData){var l=this.data;this._len+arguments.length>l.length&&(this._expandData(),l=this.data);for(var u=0;u<arguments.length;u++)l[this._len++]=arguments[u]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t<this._len;t++)e[t]=this.data[t];this.data=e}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,Ns&&this._len>11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){Ss[0]=Ss[1]=ws[0]=ws[1]=Number.MAX_VALUE,Cs[0]=Cs[1]=Ts[0]=Ts[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,n=0,r=0,i=0,a=0;a<this._len;){var o=e[a++],s=a===1;switch(s&&(r=t=e[a],i=n=e[a+1]),o){case Y.M:t=r=e[a++],n=i=e[a++],ws[0]=r,ws[1]=i,Ts[0]=r,Ts[1]=i;break;case Y.L:ms(t,n,e[a],e[a+1],ws,Ts),t=e[a++],n=e[a++];break;case Y.C:_s(t,n,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],ws,Ts),t=e[a++],n=e[a++];break;case Y.Q:vs(t,n,e[a++],e[a++],e[a],e[a+1],ws,Ts),t=e[a++],n=e[a++];break;case Y.A:var c=e[a++],l=e[a++],u=e[a++],d=e[a++],f=e[a++],p=e[a++]+f;a+=1;var m=!e[a++];s&&(r=Os(f)*u+c,i=ks(f)*d+l),ys(c,l,u,d,f,p,m,ws,Ts),t=Os(p)*u+c,n=ks(p)*d+l;break;case Y.R:ms(r=t=e[a++],i=n=e[a++],r+e[a++],i+e[a++],ws,Ts);break;case Y.Z:t=r,n=i}Me(Ss,Ss,ws),Ne(Cs,Cs,Ts)}return a===0&&(Ss[0]=Ss[1]=Cs[0]=Cs[1]=0),new J(Ss[0],Ss[1],Cs[0]-Ss[0],Cs[1]-Ss[1])},e.prototype._calculateLength=function(){var e=this.data,t=this._len,n=this._ux,r=this._uy,i=0,a=0,o=0,s=0;this._pathSegLen||=[];for(var c=this._pathSegLen,l=0,u=0,d=0;d<t;){var f=e[d++],p=d===1;p&&(o=i=e[d],s=a=e[d+1]);var m=-1;switch(f){case Y.M:i=o=e[d++],a=s=e[d++];break;case Y.L:var h=e[d++],g=(y=e[d++])-a;(As(k=h-i)>n||As(g)>r||d===t-1)&&(m=Math.sqrt(k*k+g*g),i=h,a=y);break;case Y.C:var _=e[d++],v=e[d++],y=(h=e[d++],e[d++]),b=e[d++],x=e[d++];m=xn(i,a,_,v,h,y,b,x,10),i=b,a=x;break;case Y.Q:m=En(i,a,_=e[d++],v=e[d++],h=e[d++],y=e[d++],10),i=h,a=y;break;case Y.A:var S=e[d++],C=e[d++],w=e[d++],T=e[d++],E=e[d++],D=e[d++],O=D+E;d+=1,p&&(o=Os(E)*w+S,s=ks(E)*T+C),m=Ds(w,T)*Es(Ms,Math.abs(D)),i=Os(O)*w+S,a=ks(O)*T+C;break;case Y.R:o=i=e[d++],s=a=e[d++],m=2*e[d++]+2*e[d++];break;case Y.Z:var k=o-i;g=s-a,m=Math.sqrt(k*k+g*g),i=o,a=s}m>=0&&(c[u++]=m,l+=m)}return this._pathLen=l,l},e.prototype.rebuildPath=function(e,t){var n,r,i,a,o,s,c,l,u,d,f=this.data,p=this._ux,m=this._uy,h=this._len,g=t<1,_=0,v=0,y=0;if(!g||(this._pathSegLen||this._calculateLength(),c=this._pathSegLen,l=t*this._pathLen))t:for(var b=0;b<h;){var x=f[b++],S=b===1;switch(S&&(n=i=f[b],r=a=f[b+1]),x!==Y.L&&y>0&&(e.lineTo(u,d),y=0),x){case Y.M:n=i=f[b++],r=a=f[b++],e.moveTo(i,a);break;case Y.L:o=f[b++],s=f[b++];var C=As(o-i),w=As(s-a);if(C>p||w>m){if(g){if(_+(W=c[v++])>l){var T=(l-_)/W;e.lineTo(i*(1-T)+o*T,a*(1-T)+s*T);break t}_+=W}e.lineTo(o,s),i=o,a=s,y=0}else{var E=C*C+w*w;E>y&&(u=o,d=s,y=E)}break;case Y.C:var D=f[b++],O=f[b++],k=f[b++],A=f[b++],j=f[b++],M=f[b++];if(g){if(_+(W=c[v++])>l){bn(i,D,k,j,T=(l-_)/W,bs),bn(a,O,A,M,T,xs),e.bezierCurveTo(bs[1],xs[1],bs[2],xs[2],bs[3],xs[3]);break t}_+=W}e.bezierCurveTo(D,O,k,A,j,M),i=j,a=M;break;case Y.Q:if(D=f[b++],O=f[b++],k=f[b++],A=f[b++],g){if(_+(W=c[v++])>l){Tn(i,D,k,T=(l-_)/W,bs),Tn(a,O,A,T,xs),e.quadraticCurveTo(bs[1],xs[1],bs[2],xs[2]);break t}_+=W}e.quadraticCurveTo(D,O,k,A),i=k,a=A;break;case Y.A:var N=f[b++],P=f[b++],ee=f[b++],F=f[b++],I=f[b++],te=f[b++],L=f[b++],R=!f[b++],z=ee>F?ee:F,ne=As(ee-F)>.001,B=I+te,V=!1;if(g&&(_+(W=c[v++])>l&&(B=I+te*(l-_)/W,V=!0),_+=W),ne&&e.ellipse?e.ellipse(N,P,ee,F,L,I,B,R):e.arc(N,P,z,I,B,R),V)break t;S&&(n=Os(I)*ee+N,r=ks(I)*F+P),i=Os(B)*ee+N,a=ks(B)*F+P;break;case Y.R:n=i=f[b],r=a=f[b+1],o=f[b++],s=f[b++];var re=f[b++],H=f[b++];if(g){if(_+(W=c[v++])>l){var U=l-_;e.moveTo(o,s),e.lineTo(o+Es(U,re),s),(U-=re)>0&&e.lineTo(o+re,s+Es(U,H)),(U-=H)>0&&e.lineTo(o+Ds(re-U,0),s+H),(U-=re)>0&&e.lineTo(o,s+Ds(H-U,0));break t}_+=W}e.rect(o,s,re,H);break;case Y.Z:if(g){var W;if(_+(W=c[v++])>l){T=(l-_)/W,e.lineTo(i*(1-T)+n*T,a*(1-T)+r*T);break t}_+=W}e.closePath(),i=n,a=r}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.prototype.canSave=function(){return!!this._saveData},e.CMD=Y,e.initDefaultProps=((t=e.prototype)._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,void(t._version=0)),e}();function Rs(e,t,n,r,i,a,o){if(i===0)return!1;var s=i,c=0;if(o>t+s&&o>r+s||o<t-s&&o<r-s||a>e+s&&a>n+s||a<e-s&&a<n-s)return!1;if(e===n)return Math.abs(a-e)<=s/2;var l=(c=(t-r)/(e-n))*a-o+(e*r-n*t)/(e-n);return l*l/(c*c+1)<=s/2*s/2}function zs(e,t,n,r,i,a,o,s,c,l,u){if(c===0)return!1;var d=c;return!(u>t+d&&u>r+d&&u>a+d&&u>s+d||u<t-d&&u<r-d&&u<a-d&&u<s-d||l>e+d&&l>n+d&&l>i+d&&l>o+d||l<e-d&&l<n-d&&l<i-d&&l<o-d)&&function(e,t,n,r,i,a,o,s,c,l,u){var d,f,p,m,h,g=.005,_=1/0;dn[0]=c,dn[1]=l;for(var v=0;v<1;v+=.05)fn[0]=gn(e,n,i,o,v),fn[1]=gn(t,r,a,s,v),(m=ke(dn,fn))<_&&(d=v,_=m);_=1/0;for(var y=0;y<32&&!(g<cn);y++)f=d-g,p=d+g,fn[0]=gn(e,n,i,o,f),fn[1]=gn(t,r,a,s,f),m=ke(fn,dn),f>=0&&m<_?(d=f,_=m):(pn[0]=gn(e,n,i,o,p),pn[1]=gn(t,r,a,s,p),h=ke(pn,dn),p<=1&&h<_?(d=p,_=h):g*=.5);return u&&(u[0]=gn(e,n,i,o,d),u[1]=gn(t,r,a,s,d)),on(_)}(e,t,n,r,i,a,o,s,l,u,null)<=d/2}function Bs(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;return!(c>t+l&&c>r+l&&c>a+l||c<t-l&&c<r-l&&c<a-l||s>e+l&&s>n+l&&s>i+l||s<e-l&&s<n-l&&s<i-l)&&function(e,t,n,r,i,a,o,s,c){var l,u=.005,d=1/0;dn[0]=o,dn[1]=s;for(var f=0;f<1;f+=.05)fn[0]=Sn(e,n,i,f),fn[1]=Sn(t,r,a,f),(g=ke(dn,fn))<d&&(l=f,d=g);d=1/0;for(var p=0;p<32&&!(u<cn);p++){var m=l-u,h=l+u;fn[0]=Sn(e,n,i,m),fn[1]=Sn(t,r,a,m);var g=ke(fn,dn);if(m>=0&&g<d)l=m,d=g;else{pn[0]=Sn(e,n,i,h),pn[1]=Sn(t,r,a,h);var _=ke(pn,dn);h<=1&&_<d?(l=h,d=_):u*=.5}}return c&&(c[0]=Sn(e,n,i,l),c[1]=Sn(t,r,a,l)),on(d)}(e,t,n,r,i,a,s,c,null)<=l/2}var Vs=2*Math.PI;function Hs(e){return(e%=Vs)<0&&(e+=Vs),e}var Us=2*Math.PI;function Ws(e,t,n,r,i,a,o,s,c){if(o===0)return!1;var l=o;s-=e,c-=t;var u=Math.sqrt(s*s+c*c);if(u-l>n||u+l<n)return!1;if(Math.abs(r-i)%Us<1e-4)return!0;if(a){var d=r;r=Hs(i),i=Hs(d)}else r=Hs(r),i=Hs(i);r>i&&(i+=Us);var f=Math.atan2(c,s);return f<0&&(f+=Us),f>=r&&f<=i||f+Us>=r&&f+Us<=i}function Gs(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;var o=(a-t)/(r-t),s=r<t?1:-1;o!==1&&o!==0||(s=r<t?.5:-.5);var c=o*(n-e)+e;return c===i?1/0:c>i?s:0}var Ks=Ls.CMD,qs=2*Math.PI,Js=[-1,-1,-1],Ys=[-1,-1];function Xs(){var e=Ys[0];Ys[0]=Ys[1],Ys[1]=e}function Zs(e,t,n,r,i,a,o,s,c,l){if(l>t&&l>r&&l>a&&l>s||l<t&&l<r&&l<a&&l<s)return 0;var u=vn(t,r,a,s,l,Js);if(u===0)return 0;for(var d=0,f=-1,p=void 0,m=void 0,h=0;h<u;h++){var g=Js[h],_=g===0||g===1?.5:1;gn(e,n,i,o,g)<c||(f<0&&(f=yn(t,r,a,s,Ys),Ys[1]<Ys[0]&&f>1&&Xs(),p=gn(t,r,a,s,Ys[0]),f>1&&(m=gn(t,r,a,s,Ys[1]))),f===2?g<Ys[0]?d+=p<t?_:-_:g<Ys[1]?d+=m<p?_:-_:d+=s<m?_:-_:g<Ys[0]?d+=p<t?_:-_:d+=s<p?_:-_)}return d}function Qs(e,t,n,r,i,a,o,s){if(s>t&&s>r&&s>a||s<t&&s<r&&s<a)return 0;var c=function(e,t,n,r,i){var a=e-2*t+n,o=2*(t-e),s=e-r,c=0;if(mn(a))hn(o)&&(u=-s/o)>=0&&u<=1&&(i[c++]=u);else{var l=o*o-4*a*s;if(mn(l))(u=-o/(2*a))>=0&&u<=1&&(i[c++]=u);else if(l>0){var u,d=on(l),f=(-o-d)/(2*a);(u=(-o+d)/(2*a))>=0&&u<=1&&(i[c++]=u),f>=0&&f<=1&&(i[c++]=f)}}return c}(t,r,a,s,Js);if(c===0)return 0;var l=wn(t,r,a);if(l>=0&&l<=1){for(var u=0,d=Sn(t,r,a,l),f=0;f<c;f++){var p=Js[f]===0||Js[f]===1?.5:1;Sn(e,n,i,Js[f])<o||(Js[f]<l?u+=d<t?p:-p:u+=a<d?p:-p)}return u}return p=Js[0]===0||Js[0]===1?.5:1,Sn(e,n,i,Js[0])<o?0:a<t?p:-p}function $s(e,t,n,r,i,a,o,s){if((s-=t)>n||s<-n)return 0;var c=Math.sqrt(n*n-s*s);Js[0]=-c,Js[1]=c;var l=Math.abs(r-i);if(l<1e-4)return 0;if(l>=qs-1e-4){r=0,i=qs;var u=a?1:-1;return o>=Js[0]+e&&o<=Js[1]+e?u:0}if(r>i){var d=r;r=i,i=d}r<0&&(r+=qs,i+=qs);for(var f=0,p=0;p<2;p++){var m=Js[p];if(m+e>o){var h=Math.atan2(s,m);u=a?1:-1,h<0&&(h=qs+h),(h>=r&&h<=i||h+qs>=r&&h+qs<=i)&&(h>Math.PI/2&&h<1.5*Math.PI&&(u=-u),f+=u)}}return f}function ec(e,t,n,r,i){for(var a,o,s,c,l=e.data,u=e.len(),d=0,f=0,p=0,m=0,h=0,g=0;g<u;){var _=l[g++],v=g===1;switch(_===Ks.M&&g>1&&(n||(d+=Gs(f,p,m,h,r,i))),v&&(m=f=l[g],h=p=l[g+1]),_){case Ks.M:f=m=l[g++],p=h=l[g++];break;case Ks.L:if(n){if(Rs(f,p,l[g],l[g+1],t,r,i))return!0}else d+=Gs(f,p,l[g],l[g+1],r,i)||0;f=l[g++],p=l[g++];break;case Ks.C:if(n){if(zs(f,p,l[g++],l[g++],l[g++],l[g++],l[g],l[g+1],t,r,i))return!0}else d+=Zs(f,p,l[g++],l[g++],l[g++],l[g++],l[g],l[g+1],r,i)||0;f=l[g++],p=l[g++];break;case Ks.Q:if(n){if(Bs(f,p,l[g++],l[g++],l[g],l[g+1],t,r,i))return!0}else d+=Qs(f,p,l[g++],l[g++],l[g],l[g+1],r,i)||0;f=l[g++],p=l[g++];break;case Ks.A:var y=l[g++],b=l[g++],x=l[g++],S=l[g++],C=l[g++],w=l[g++];g+=1;var T=!!(1-l[g++]);a=Math.cos(C)*x+y,o=Math.sin(C)*S+b,v?(m=a,h=o):d+=Gs(f,p,a,o,r,i);var E=(r-y)*S/x+y;if(n){if(Ws(y,b,S,C,C+w,T,t,E,i))return!0}else d+=$s(y,b,S,C,C+w,T,E,i);f=Math.cos(C+w)*x+y,p=Math.sin(C+w)*S+b;break;case Ks.R:if(m=f=l[g++],h=p=l[g++],a=m+l[g++],o=h+l[g++],n){if(Rs(m,h,a,h,t,r,i)||Rs(a,h,a,o,t,r,i)||Rs(a,o,m,o,t,r,i)||Rs(m,o,m,h,t,r,i))return!0}else d+=Gs(a,h,a,o,r,i),d+=Gs(m,o,m,h,r,i);break;case Ks.Z:if(n){if(Rs(f,p,m,h,t,r,i))return!0}else d+=Gs(f,p,m,h,r,i);f=m,p=h}}return n||(s=p,c=h,Math.abs(s-c)<1e-4)||(d+=Gs(f,p,m,h,r,i)||0),d!==0}var tc=D({fill:`#000`,stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:`butt`,miterLimit:10,strokeNoScale:!1,strokeFirst:!1},$o),nc={style:D({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},es.style)},rc=di.concat([`invisible`,`culling`,`z`,`z2`,`zlevel`,`parent`]),X=function(e){function t(t){return e.call(this,t)||this}var r;return n(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<rc.length;++s)i[rc[s]]=this[rc[s]];i.__dirty|=1}else this._decalEl&&=null},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(t){var n=F(t);this.shape=this.getDefaultShape();var r=this.getDefaultStyle();r&&this.useStyle(r);for(var i=0;i<n.length;i++){var a=n[i],o=t[a];a===`style`?this.style?E(this.style,o):this.useStyle(o):a===`shape`?E(this.shape,o):e.prototype.attrKV.call(this,a,o)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!==`none`){if(z(e)){var t=Zn(e,0);return t>.5?$r:t>.2?`#eee`:ei}if(e)return ei}return $r},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(z(t)){var n=this.__zr;if(!(!n||!n.isDarkMode())==Zn(e,0)<.4)return t}},t.prototype.buildPath=function(e,t,n){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Ls(!1)},t.prototype.hasStroke=function(){var e=this.style,t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||4&this.__dirty)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var a=this._rectStroke||=e.clone();if(this.__dirty||n){a.copy(e);var o=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;s=Math.max(s,c??4)}o>1e-10&&(a.width+=s/o,a.height+=s/o,a.x-=s/o/2,a.y-=s/o/2)}return a}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var a=this.path;if(this.hasStroke()){var o=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(o=Math.max(o,this.strokeContainThreshold)),function(e,t,n,r){return ec(e,t,!0,n,r)}(a,o/s,e,t)))return!0}if(this.hasFill())return function(e,t,n){return ec(e,0,!1,t,n)}(a,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&=null,this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate(`shape`,e)},t.prototype.updateDuringAnimation=function(e){e===`style`?this.dirtyStyle():e===`shape`?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){t===`shape`?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||=this.shape={},typeof e==`string`?n[e]=t:E(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(4&this.__dirty)},t.prototype.createStyle=function(e){return _e(tc,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=E({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,a,o){if(e.prototype._applyStateObj.call(this,t,n,r,i,a,o),this.__inHover!==1){var s,c=!(n&&i);if(n&&n.shape?a?i?s=n.shape:(s=E({},r.shape),E(s,n.shape)):(s=E({},i?this.shape:r.shape),E(s,n.shape)):c&&(s=r.shape),s){if(a){this.shape=E({},this.shape);for(var l={},u=F(s),d=0;d<u.length;d++){var f=u[d];typeof s[f]==`object`?this.shape[f]=s[f]:l[f]=s[f]}this._transitionState(t,{shape:l},o)}else this.shape=s,this.dirtyShape()}}},t.prototype._mergeStates=function(t){for(var n,r=e.prototype._mergeStates.call(this,t),i=0;i<t.length;i++){var a=t[i];a.shape&&(n||={},this._mergeStyle(n,a.shape))}return n&&(r.shape=n),r},t.prototype.getAnimationStyleProps=function(){return nc},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var r=function(t){function r(n){var r=t.call(this,n)||this;return e.init&&e.init.call(r,n),r}return n(r,t),r.prototype.getDefaultStyle=function(){return w(e.style)},r.prototype.getDefaultShape=function(){return w(e.shape)},r}(t);for(var i in e)typeof e[i]==`function`&&(r.prototype[i]=e[i]);return r},t.initDefaultProps=((r=t.prototype).type=`path`,r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,void(r.__dirty=7)),t}(rs),ic=D({strokeFirst:!0,font:`12px sans-serif`,x:0,y:0,textAlign:`left`,textBaseline:`top`,miterLimit:2},tc),ac=function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return n(t,e),t.prototype.hasStroke=function(){return Zo(this.style)},t.prototype.hasFill=function(){var e=this.style.fill;return e!=null&&e!==`none`},t.prototype.createStyle=function(e){return _e(ic,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e,t,n;return this._rect||=(e=this.style,t=Yo(e.text),n=e.font,Xo(e,_i(pi(n),t),Si(n),null)),this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(rs);ac.prototype.type=`tspan`;var oc=D({x:0,y:0},$o),sc={style:D({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},es.style)},cc=function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return n(t,e),t.prototype.createStyle=function(e){return _e(oc,e)},t.prototype._getSize=function(e){var t=this.style,n=t[e];if(n!=null)return n;var r,i=(r=t.image)&&typeof r!=`string`&&r.width&&r.height?t.image:this.__image;if(!i)return 0;var a=e===`width`?`height`:`width`,o=t[a];return o==null?i[e]:i[e]/i[a]*o},t.prototype.getWidth=function(){return this._getSize(`width`)},t.prototype.getHeight=function(){return this._getSize(`height`)},t.prototype.getAnimationStyleProps=function(){return sc},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||=new J(e.x||0,e.y||0,this.getWidth(),this.getHeight()),this._rect},t}(rs);cc.prototype.type=`image`;var lc=Math.round;function uc(e,t,n){if(t){var r=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=r,e.x2=i,e.y1=a,e.y2=o;var s=n&&n.lineWidth;return s&&(lc(2*r)===lc(2*i)&&(e.x1=e.x2=fc(r,s,!0)),lc(2*a)===lc(2*o)&&(e.y1=e.y2=fc(a,s,!0))),e}}function dc(e,t,n){if(t){var r=t.x,i=t.y,a=t.width,o=t.height;e.x=r,e.y=i,e.width=a,e.height=o;var s=n&&n.lineWidth;return s&&(e.x=fc(r,s,!0),e.y=fc(i,s,!0),e.width=Math.max(fc(r+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(fc(i+o,s,!1)-e.y,o===0?0:1)),e}}function fc(e,t,n){if(!t)return e;var r=lc(2*e);return(r+lc(t))%2==0?r/2:(r+(n?1:-1))/2}var pc=function(){this.x=0,this.y=0,this.width=0,this.height=0},mc={},hc=function(e){function t(t){return e.call(this,t)||this}return n(t,e),t.prototype.getDefaultShape=function(){return new pc},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=dc(mc,t,this.style);n=o.x,r=o.y,i=o.width,a=o.height,o.r=t.r,t=o}else n=t.x,r=t.y,i=t.width,a=t.height;t.r?function(e,t){var n,r,i,a,o,s=t.x,c=t.y,l=t.width,u=t.height,d=t.r;l<0&&(s+=l,l=-l),u<0&&(c+=u,u=-u),typeof d==`number`?n=r=i=a=d:d instanceof Array?d.length===1?n=r=i=a=d[0]:d.length===2?(n=i=d[0],r=a=d[1]):d.length===3?(n=d[0],r=a=d[1],i=d[2]):(n=d[0],r=d[1],i=d[2],a=d[3]):n=r=i=a=0,n+r>l&&(n*=l/(o=n+r),r*=l/o),i+a>l&&(i*=l/(o=i+a),a*=l/o),r+i>u&&(r*=u/(o=r+i),i*=u/o),n+a>u&&(n*=u/(o=n+a),a*=u/o),e.moveTo(s+n,c),e.lineTo(s+l-r,c),r!==0&&e.arc(s+l-r,c+r,r,-Math.PI/2,0),e.lineTo(s+l,c+u-i),i!==0&&e.arc(s+l-i,c+u-i,i,0,Math.PI/2),e.lineTo(s+a,c+u),a!==0&&e.arc(s+a,c+u-a,a,Math.PI/2,Math.PI),e.lineTo(s,c+n),n!==0&&e.arc(s+n,c+n,n,Math.PI,1.5*Math.PI),e.closePath()}(e,t):e.rect(n,r,i,a)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(X);hc.prototype.type=`rect`;var gc={fill:`#000`},_c={},vc={style:D({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},es.style)},yc=function(e){function t(t){var n=e.call(this)||this;return n.type=`text`,n._children=[],n._defaultStyle=gc,n.attr(t),n}return n(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t<this._children.length;t++){var n=this._children[t];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var t=this.innerTransformable;t?(t.updateTransform(),t.transform&&(this.transform=t.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(t){var n=this.innerTransformable;return n?n.getLocalTransform(t):e.prototype.getLocalTransform.call(this,t)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){var e;this._childCursor=0,Ec(e=this.style),j(e.rich,Ec),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(t){e.prototype.addSelfToZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=t},t.prototype.removeSelfFromZr=function(t){e.prototype.removeSelfFromZr.call(this,t);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new J(0,0,0,0),t=this._children,n=[],r=null,i=0;i<t.length;i++){var a=t[i],o=a.getBoundingRect(),s=a.getLocalTransform(n);s?(e.copy(o),e.applyTransform(s),(r||=e.clone()).union(e)):(r||=o.clone()).union(o)}this._rect=r||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||gc},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,t){if(!t)return e;var n=t.rich,r=e.rich||n&&{};return E(e,t),n&&r?(this._mergeRich(r,n),e.rich=r):r&&(e.rich=r),e},t.prototype._mergeRich=function(e,t){for(var n=F(t),r=0;r<n.length;r++){var i=n[r];e[i]=e[i]||{},E(e[i],t[i])}},t.prototype.getAnimationStyleProps=function(){return vc},t.prototype._getOrCreateChild=function(e){var t=this._children[this._childCursor];return t&&t instanceof e||(t=new e),this._children[this._childCursor++]=t,t.__zr=this.__zr,t.parent=this,t},t.prototype._updatePlainTexts=function(){var e=this.style,t=e.font||`12px sans-serif`,n=e.padding,r=this._defaultStyle,i=e.x||0,a=e.y||0,o=e.align||r.align||`left`,s=e.verticalAlign||r.verticalAlign||`top`;Ko(_c,r.overflowRect,i,a,o,s),i=_c.baseX,a=_c.baseY;var c=function(e,t,n,r){var i=Yo(e),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,c=o?o[0]+o[2]:0,l=t.font,u=a===`truncate`,d=Si(l),f=G(t.lineHeight,d),p=t.lineOverflow===`truncate`,m=!1,h=t.width;h==null&&n!=null&&(h=n-s);var g,_=t.height;_==null&&r!=null&&(_=r-c);var v=(g=h==null||a!==`break`&&a!==`breakAll`?i?i.split(`
|
|
8
|
+
`):[]:i?Go(i,t.font,h,a===`breakAll`,0).lines:[]).length*f;if(_??=v,v>_&&p){var y=Math.floor(_/f);m||=g.length>y,v=(g=g.slice(0,y)).length*f}if(i&&u&&h!=null)for(var b=Io(h,l,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x={},S=0;S<g.length;S++)Lo(x,g[S],b),g[S]=x.textLine,m||=x.isTruncated;var C=_,w=0,T=pi(l);for(S=0;S<g.length;S++)w=Math.max(_i(T,g[S]),w);h??=w;var E=h;return{lines:g,height:_,outerWidth:E+=s,outerHeight:C+=c,lineHeight:f,calculatedLineHeight:d,contentWidth:w,contentHeight:v,width:h,isTruncated:m}}(Ac(e),e,_c.outerWidth,_c.outerHeight),l=jc(e),u=!!e.backgroundColor,d=c.outerHeight,f=c.outerWidth,p=c.lines,m=c.lineHeight;this.isTruncated=!!c.isTruncated;var h=i,g=xi(a,c.contentHeight,s);if(l||n){var _=bi(i,f,o),v=xi(a,d,s);l&&this._renderBackground(e,e,_,v,f,d)}g+=m/2,n&&(h=kc(i,o,n),s===`top`?g+=n[0]:s===`bottom`&&(g-=n[2]));for(var y=0,b=!1,x=!1,S=Oc(`fill`in e?e.fill:(x=!0,r.fill)),C=Dc(`stroke`in e?e.stroke:u||r.autoStroke&&!x?null:(y=2,b=!0,r.stroke)),w=e.textShadowBlur>0,T=0;T<p.length;T++){var E=this._getOrCreateChild(ac),D=E.createStyle();E.useStyle(D),D.text=p[T],D.x=h,D.y=g,o&&(D.textAlign=o),D.textBaseline=`middle`,D.opacity=e.opacity,D.strokeFirst=!0,w&&(D.shadowBlur=e.textShadowBlur||0,D.shadowColor=e.textShadowColor||`transparent`,D.shadowOffsetX=e.textShadowOffsetX||0,D.shadowOffsetY=e.textShadowOffsetY||0),D.stroke=C,D.fill=S,C&&(D.lineWidth=e.lineWidth||y,D.lineDash=e.lineDash,D.lineDashOffset=e.lineDashOffset||0),D.font=t,wc(D,e),g+=m,E.setBoundingRect(Xo(D,c.contentWidth,c.calculatedLineHeight,b?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,t=this._defaultStyle,n=e.align||t.align,r=e.verticalAlign||t.verticalAlign,i=e.x||0,a=e.y||0;Ko(_c,t.overflowRect,i,a,n,r),i=_c.baseX,a=_c.baseY;var o=function(e,t,n,r,i){var a=new Vo,o=Yo(e);if(!o)return a;var s=t.padding,c=s?s[1]+s[3]:0,l=s?s[0]+s[2]:0,u=t.width;u==null&&n!=null&&(u=n-c);var d=t.height;d==null&&r!=null&&(d=r-l);for(var f,p=t.overflow,m=p!==`break`&&p!==`breakAll`||u==null?null:{width:u,accumWidth:0,breakAll:p===`breakAll`},h=Po.lastIndex=0;(f=Po.exec(o))!=null;){var g=f.index;g>h&&Ho(a,o.substring(h,g),t,m),Ho(a,f[2],t,m,f[1]),h=Po.lastIndex}h<o.length&&Ho(a,o.substring(h,o.length),t,m);var _=[],v=0,y=0,b=p===`truncate`,x=t.lineOverflow===`truncate`,S={};function C(e,t,n){e.width=t,e.lineHeight=n,v+=n,y=Math.max(y,t)}t:for(var w=0;w<a.lines.length;w++){for(var T=a.lines[w],E=0,D=0,O=0;O<T.tokens.length;O++){var k=(R=T.tokens[O]).styleName&&t.rich[R.styleName]||{},A=R.textPadding=k.padding,j=A?A[1]+A[3]:0,M=R.font=k.font||t.font;R.contentHeight=Si(M);var N=G(k.height,R.contentHeight);if(R.innerHeight=N,A&&(N+=A[0]+A[2]),R.height=N,R.lineHeight=oe(k.lineHeight,t.lineHeight,N),R.align=k&&k.align||i,R.verticalAlign=k&&k.verticalAlign||`middle`,x&&d!=null&&v+R.lineHeight>d){var P=a.lines.length;O>0?(T.tokens=T.tokens.slice(0,O),C(T,D,E),a.lines=a.lines.slice(0,w+1)):a.lines=a.lines.slice(0,w),a.isTruncated=a.isTruncated||a.lines.length<P;break t}var ee=k.width,F=ee==null||ee===`auto`;if(typeof ee==`string`&&ee.charAt(ee.length-1)===`%`)R.percentWidth=ee,_.push(R),R.contentWidth=_i(pi(M),R.text);else{if(F){var I=k.backgroundColor,te=I&&I.image;te&&No(te=Ao(te))&&(R.width=Math.max(R.width,te.width*N/te.height))}var L=b&&u!=null?u-D:null;L!=null&&L<R.width?!F||L<j?(R.text=``,R.width=R.contentWidth=0):(Fo(S,R.text,L-j,M,t.ellipsis,{minChar:t.truncateMinChar}),R.text=S.text,a.isTruncated=a.isTruncated||S.isTruncated,R.width=R.contentWidth=_i(pi(M),R.text)):R.contentWidth=_i(pi(M),R.text)}R.width+=j,D+=R.width,k&&(E=Math.max(E,R.lineHeight))}C(T,D,E)}for(a.outerWidth=a.width=G(u,y),a.outerHeight=a.height=G(d,v),a.contentHeight=v,a.contentWidth=y,a.outerWidth+=c,a.outerHeight+=l,w=0;w<_.length;w++){var R,z=(R=_[w]).percentWidth;R.width=parseInt(z,10)/100*a.width}return a}(Ac(e),e,_c.outerWidth,_c.outerHeight,n),s=o.width,c=o.outerWidth,l=o.outerHeight,u=e.padding;this.isTruncated=!!o.isTruncated;var d=bi(i,c,n),f=xi(a,l,r),p=d,m=f;u&&(p+=u[3],m+=u[0]);var h=p+s;jc(e)&&this._renderBackground(e,e,d,f,c,l);for(var g=!!e.backgroundColor,_=0;_<o.lines.length;_++){for(var v=o.lines[_],y=v.tokens,b=y.length,x=v.lineHeight,S=v.width,C=0,w=p,T=h,E=b-1,D=void 0;C<b&&(!(D=y[C]).align||D.align===`left`);)this._placeToken(D,e,x,m,w,`left`,g),S-=D.width,w+=D.width,C++;for(;E>=0&&(D=y[E]).align===`right`;)this._placeToken(D,e,x,m,T,`right`,g),S-=D.width,T-=D.width,E--;for(w+=(s-(w-p)-(h-T)-S)/2;C<=E;)D=y[C],this._placeToken(D,e,x,m,w+D.width/2,`center`,g),w+=D.width,C++;m+=x}},t.prototype._placeToken=function(e,t,n,r,i,a,o){var s=t.rich[e.styleName]||{};s.text=e.text;var c=e.verticalAlign,l=r+n/2;c===`top`?l=r+e.height/2:c===`bottom`&&(l=r+n-e.height/2),!e.isLineHolder&&jc(s)&&this._renderBackground(s,t,a===`right`?i-e.width:a===`center`?i-e.width/2:i,l-e.height/2,e.width,e.height);var u=!!s.backgroundColor,d=e.textPadding;d&&(i=kc(i,a,d),l-=e.height/2-d[0]-e.innerHeight/2);var f=this._getOrCreateChild(ac),p=f.createStyle();f.useStyle(p);var m=this._defaultStyle,h=!1,g=0,_=!1,v=Oc(`fill`in s?s.fill:`fill`in t?t.fill:(h=!0,m.fill)),y=Dc(`stroke`in s?s.stroke:`stroke`in t?t.stroke:u||o||m.autoStroke&&!h?null:(g=2,_=!0,m.stroke)),b=s.textShadowBlur>0||t.textShadowBlur>0;p.text=e.text,p.x=i,p.y=l,b&&(p.shadowBlur=s.textShadowBlur||t.textShadowBlur||0,p.shadowColor=s.textShadowColor||t.textShadowColor||`transparent`,p.shadowOffsetX=s.textShadowOffsetX||t.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||t.textShadowOffsetY||0),p.textAlign=a,p.textBaseline=`middle`,p.font=e.font||`12px sans-serif`,p.opacity=oe(s.opacity,t.opacity,1),wc(p,s),y&&(p.lineWidth=oe(s.lineWidth,t.lineWidth,g),p.lineDash=G(s.lineDash,t.lineDash),p.lineDashOffset=t.lineDashOffset||0,p.stroke=y),v&&(p.fill=v),f.setBoundingRect(Xo(p,e.contentWidth,e.contentHeight,_?0:null))},t.prototype._renderBackground=function(e,t,n,r,i,a){var o,s,c,l=e.backgroundColor,u=e.borderWidth,d=e.borderColor,f=l&&l.image,p=l&&!f,m=e.borderRadius,h=this;if(p||e.lineHeight||u&&d){(o=this._getOrCreateChild(hc)).useStyle(o.createStyle()),o.style.fill=null;var g=o.shape;g.x=n,g.y=r,g.width=i,g.height=a,g.r=m,o.dirtyShape()}if(p)(c=o.style).fill=l||null,c.fillOpacity=G(e.fillOpacity,1);else if(f){(s=this._getOrCreateChild(cc)).onload=function(){h.dirtyStyle()};var _=s.style;_.image=l.image,_.x=n,_.y=r,_.width=i,_.height=a}u&&d&&((c=o.style).lineWidth=u,c.stroke=d,c.strokeOpacity=G(e.strokeOpacity,1),c.lineDash=e.borderDash,c.lineDashOffset=e.borderDashOffset||0,o.strokeContainThreshold=0,o.hasFill()&&o.hasStroke()&&(c.strokeFirst=!0,c.lineWidth*=2));var v=(o||s).style;v.shadowBlur=e.shadowBlur||0,v.shadowColor=e.shadowColor||`transparent`,v.shadowOffsetX=e.shadowOffsetX||0,v.shadowOffsetY=e.shadowOffsetY||0,v.opacity=oe(e.opacity,t.opacity,1)},t.makeFont=function(e){var t=``;return Tc(e)&&(t=[e.fontStyle,e.fontWeight,Cc(e.fontSize),e.fontFamily||`sans-serif`].join(` `)),t&&ue(t)||e.textFont||e.font},t}(rs),bc={left:!0,right:1,center:1},xc={top:1,bottom:1,middle:1},Sc=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`];function Cc(e){return typeof e!=`string`||e.indexOf(`px`)===-1&&e.indexOf(`rem`)===-1&&e.indexOf(`em`)===-1?isNaN(+e)?`12px`:e+`px`:e}function wc(e,t){for(var n=0;n<Sc.length;n++){var r=Sc[n],i=t[r];i!=null&&(e[r]=i)}}function Tc(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Ec(e){if(e){e.font=yc.makeFont(e);var t=e.align;t===`middle`&&(t=`center`),e.align=t==null||bc[t]?t:`left`;var n=e.verticalAlign;n===`center`&&(n=`middle`),e.verticalAlign=n==null||xc[n]?n:`top`,e.padding&&=ce(e.padding)}}function Dc(e,t){return e==null||t<=0||e===`transparent`||e===`none`?null:e.image||e.colorStops?`#000`:e}function Oc(e){return e==null||e===`none`?null:e.image||e.colorStops?`#000`:e}function kc(e,t,n){return t===`right`?e-n[1]:t===`center`?e+n[3]/2-n[1]/2:e+n[3]}function Ac(e){var t=e.text;return t!=null&&(t+=``),t}function jc(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var Mc=Ua(),Nc=function(e,t,n,r){if(r){var i=Mc(r);i.dataIndex=n,i.dataType=t,i.seriesIndex=e,i.ssrType=`chart`,r.type===`group`&&r.traverse(function(r){var i=Mc(r);i.seriesIndex=e,i.dataIndex=n,i.dataType=t,i.ssrType=`chart`})}},Pc=K([`tooltip`,`label`,`itemName`,`itemId`,`itemGroupId`,`itemChildGroupId`,`seriesName`]),Fc=`original`,Ic=`arrayRows`,Lc=`objectRows`,Rc=`keyedColumns`,zc=`typedArray`,Bc=`column`,Vc=[`getDom`,`getZr`,`getWidth`,`getHeight`,`getDevicePixelRatio`,`dispatchAction`,`isSSR`,`isDisposed`,`on`,`off`,`getDataURL`,`getConnectedDataURL`,`getOption`,`getId`,`updateLabelLayout`],Hc=function(e){j(Vc,function(t){this[t]=I(e[t],e)},this)},Uc=1,Wc={},Gc=Ua(),Kc=Ua(),qc=[`emphasis`,`blur`,`select`],Jc=[`normal`,`emphasis`,`blur`,`select`],Yc=`highlight`,Xc=`downplay`,Zc=`select`,Qc=`unselect`,$c=`toggleSelect`,el=`selectchanged`;function tl(e){return e!=null&&e!==`none`}function nl(e,t,n){e.onHoverStateChange&&(e.hoverState||0)!==n&&e.onHoverStateChange(t),e.hoverState=n}function rl(e){nl(e,`emphasis`,2)}function il(e){e.hoverState===2&&nl(e,`normal`,0)}function al(e){nl(e,`blur`,1)}function ol(e){e.hoverState===1&&nl(e,`normal`,0)}function sl(e){e.selected=!0}function cl(e){e.selected=!1}function ll(e,t,n){t(e,n)}function ul(e,t,n){ll(e,t,n),e.isGroup&&e.traverse(function(e){ll(e,t,n)})}function dl(e,t){switch(t){case`emphasis`:e.hoverState=2;break;case`normal`:e.hoverState=0;break;case`blur`:e.hoverState=1;break;case`select`:e.selected=!0}}function fl(e,t){var n=this.states[e];if(this.style){if(e===`emphasis`)return function(e,t,n,r){var i=n&&O(n,`select`)>=0,a=!1;if(e instanceof X){var o=Gc(e),s=i&&o.selectFill||o.normalFill,c=i&&o.selectStroke||o.normalStroke;if(tl(s)||tl(c)){var l=(r||={}).style||{};l.fill===`inherit`?(a=!0,r=E({},r),(l=E({},l)).fill=s):!tl(l.fill)&&tl(s)?(a=!0,r=E({},r),(l=E({},l)).fill=$n(s)):!tl(l.stroke)&&tl(c)&&(a||(r=E({},r),l=E({},l)),l.stroke=$n(c)),r.style=l}}if(r&&r.z2==null){a||(r=E({},r));var u=e.z2EmphasisLift;r.z2=e.z2+(u??10)}return r}(this,0,t,n);if(e===`blur`)return function(e,t,n){var r=O(e.currentStates,t)>=0,i=e.style.opacity,a=r?null:function(e,t,n,r){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o];a[s]=i[s]??(r&&r[s])}for(o=0;o<e.animators.length;o++){var c=e.animators[o];c.__fromStateTransition&&c.__fromStateTransition.indexOf(n)<0&&c.targetName===`style`&&c.saveTo(a,t)}return a}(e,[`opacity`],t,{opacity:1}),o=(n||={}).style||{};return o.opacity??(n=E({},n),o=E({opacity:r?i:.1*a.opacity},o),n.style=o),n}(this,e,n);if(e===`select`)return function(e,t,n){if(n&&n.z2==null){n=E({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??9)}return n}(this,0,n)}return n}function pl(e){e.stateProxy=fl;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=fl),n&&(n.stateProxy=fl)}function ml(e,t){!xl(e,t)&&!e.__highByOuter&&ul(e,rl)}function hl(e,t){!xl(e,t)&&!e.__highByOuter&&ul(e,il)}function gl(e,t){e.__highByOuter|=1<<(t||0),ul(e,rl)}function _l(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&ul(e,il)}function vl(e){ul(e,ol)}function yl(e){ul(e,sl)}function bl(e){ul(e,cl)}function xl(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Sl(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(t,i){var a=Kc(i),o=function(e,t){return t.mainType===`series`?e.getViewOfSeriesModel(t):e.getViewOfComponentModel(t)}(e,i),s=t===`series`;!s&&r.push(o),a.isBlured&&(o.group.traverse(function(e){ol(e)}),s&&n.push(i)),a.isBlured=!1}),j(r,function(e){e&&e.toggleBlurSeries&&e.toggleBlurSeries(n,!1,t)})}function Cl(e,t,n,r){var i=r.getModel();function a(e,t){for(var n=0;n<t.length;n++){var r=e.getItemGraphicEl(t[n]);r&&vl(r)}}if(n||=`coordinateSystem`,e!=null&&t&&t!==`none`){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var c=[];i.eachSeries(function(e){var i=o===e,l=e.coordinateSystem;if(l&&l.master&&(l=l.master),!(n===`series`&&!i||n===`coordinateSystem`&&!(l&&s?l===s:i)||t===`series`&&i)){if(r.getViewOfSeriesModel(e).group.traverse(function(e){e.__highByOuter&&i&&t===`self`||al(e)}),A(t))a(e.getData(),t);else if(V(t))for(var u=F(t),d=0;d<u.length;d++)a(e.getData(u[d]),t[u[d]]);c.push(e),Kc(e).isBlured=!0}}),i.eachComponent(function(e,t){if(e!==`series`){var n=r.getViewOfComponentModel(t);n&&n.toggleBlurSeries&&n.toggleBlurSeries(c,!0,i)}})}}function wl(e,t,n){if(e!=null&&t!=null){var r=n.getModel().getComponent(e,t);if(r){Kc(r).isBlured=!0;var i=n.getViewOfComponentModel(r);i&&i.focusBlurEnabled&&i.group.traverse(function(e){al(e)})}}}function Tl(e,t,n,r){var i={focusSelf:!1,dispatchers:null};if(e==null||e===`series`||t==null||n==null)return i;var a=r.getModel().getComponent(e,t);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s,c=o.findHighDownDispatchers(n),l=0;l<c.length;l++)if(Mc(c[l]).focus===`self`){s=!0;break}return{focusSelf:s,dispatchers:c}}function El(e){j(e.getAllData(),function(t){var n=t.data,r=t.type;n.eachItemGraphicEl(function(t,n){e.isSelected(n,r)?yl(t):bl(t)})})}function Dl(e){var t=[];return e.eachSeries(function(e){j(e.getAllData(),function(n){n.data;var r=n.type,i=e.getSelectedDataIndices();if(i.length>0){var a={dataIndex:i,seriesIndex:e.seriesIndex};r!=null&&(a.dataType=r),t.push(a)}})}),t}function Ol(e,t,n){Nl(e,!0),ul(e,pl),function(e,t,n){var r=Mc(e);t==null?r.focus&&=null:(r.focus=t,r.blurScope=n)}(e,t,n)}function kl(e,t,n,r){r?function(e){Nl(e,!1)}(e):Ol(e,t,n)}var Al=[`emphasis`,`blur`,`select`],jl={itemStyle:`getItemStyle`,lineStyle:`getLineStyle`,areaStyle:`getAreaStyle`};function Ml(e,t,n,r){n||=`itemStyle`;for(var i=0;i<Al.length;i++){var a=Al[i],o=t.getModel([a,n]);e.ensureState(a).style=r?r(o):o[jl[n]]()}}function Nl(e,t){var n=!1===t,r=e;e.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=e.highDownSilentOnTouch),n&&!r.__highDownDispatcher||(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Pl(e){return!(!e||!e.__highDownDispatcher)}function Fl(e){var t=e.type;return t===`select`||t===`unselect`||t===`toggleSelect`}function Il(e){var t=e.type;return t===`highlight`||t===`downplay`}var Ll=Ls.CMD,Rl=[[],[],[]],zl=Math.sqrt,Bl=Math.atan2,Vl=Math.sqrt,Hl=Math.sin,Ul=Math.cos,Wl=Math.PI;function Gl(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Kl(e,t){return(e[0]*t[0]+e[1]*t[1])/(Gl(e)*Gl(t))}function ql(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Kl(e,t))}function Jl(e,t,n,r,i,a,o,s,c,l,u){var d=Wl/180*c,f=Ul(d)*(e-n)/2+Hl(d)*(t-r)/2,p=-1*Hl(d)*(e-n)/2+Ul(d)*(t-r)/2,m=f*f/(o*o)+p*p/(s*s);m>1&&(o*=Vl(m),s*=Vl(m));var h=(i===a?-1:1)*Vl((o*o*(s*s)-o*o*(p*p)-s*s*(f*f))/(o*o*(p*p)+s*s*(f*f)))||0,g=h*o*p/s,_=h*-s*f/o,v=(e+n)/2+Ul(d)*g-Hl(d)*_,y=(t+r)/2+Hl(d)*g+Ul(d)*_,b=ql([1,0],[(f-g)/o,(p-_)/s]),x=[(f-g)/o,(p-_)/s],S=[(-1*f-g)/o,(-1*p-_)/s],C=ql(x,S);if(Kl(x,S)<=-1&&(C=Wl),Kl(x,S)>=1&&(C=0),C<0){var w=Math.round(C/Wl*1e6)/1e6;C=2*Wl+w%2*Wl}u.addData(l,v,y,o,s,b,C,d,a)}var Yl=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Xl=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Zl=function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return n(t,e),t.prototype.applyTransform=function(e){},t}(X);function Ql(e){return e.setData!=null}function $l(e,t){var n=function(e){var t=new Ls;if(!e)return t;var n,r=0,i=0,a=r,o=i,s=Ls.CMD,c=e.match(Yl);if(!c)return t;for(var l=0;l<c.length;l++){for(var u=c[l],d=u.charAt(0),f=void 0,p=u.match(Xl)||[],m=p.length,h=0;h<m;h++)p[h]=parseFloat(p[h]);for(var g=0;g<m;){var _=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=r,T=i,E=void 0,D=void 0;switch(d){case`l`:r+=p[g++],i+=p[g++],f=s.L,t.addData(f,r,i);break;case`L`:r=p[g++],i=p[g++],f=s.L,t.addData(f,r,i);break;case`m`:r+=p[g++],i+=p[g++],f=s.M,t.addData(f,r,i),a=r,o=i,d=`l`;break;case`M`:r=p[g++],i=p[g++],f=s.M,t.addData(f,r,i),a=r,o=i,d=`L`;break;case`h`:r+=p[g++],f=s.L,t.addData(f,r,i);break;case`H`:r=p[g++],f=s.L,t.addData(f,r,i);break;case`v`:i+=p[g++],f=s.L,t.addData(f,r,i);break;case`V`:i=p[g++],f=s.L,t.addData(f,r,i);break;case`C`:f=s.C,t.addData(f,p[g++],p[g++],p[g++],p[g++],p[g++],p[g++]),r=p[g-2],i=p[g-1];break;case`c`:f=s.C,t.addData(f,p[g++]+r,p[g++]+i,p[g++]+r,p[g++]+i,p[g++]+r,p[g++]+i),r+=p[g-2],i+=p[g-1];break;case`S`:_=r,v=i,E=t.len(),D=t.data,n===s.C&&(_+=r-D[E-4],v+=i-D[E-3]),f=s.C,w=p[g++],T=p[g++],r=p[g++],i=p[g++],t.addData(f,_,v,w,T,r,i);break;case`s`:_=r,v=i,E=t.len(),D=t.data,n===s.C&&(_+=r-D[E-4],v+=i-D[E-3]),f=s.C,w=r+p[g++],T=i+p[g++],r+=p[g++],i+=p[g++],t.addData(f,_,v,w,T,r,i);break;case`Q`:w=p[g++],T=p[g++],r=p[g++],i=p[g++],f=s.Q,t.addData(f,w,T,r,i);break;case`q`:w=p[g++]+r,T=p[g++]+i,r+=p[g++],i+=p[g++],f=s.Q,t.addData(f,w,T,r,i);break;case`T`:_=r,v=i,E=t.len(),D=t.data,n===s.Q&&(_+=r-D[E-4],v+=i-D[E-3]),r=p[g++],i=p[g++],f=s.Q,t.addData(f,_,v,r,i);break;case`t`:_=r,v=i,E=t.len(),D=t.data,n===s.Q&&(_+=r-D[E-4],v+=i-D[E-3]),r+=p[g++],i+=p[g++],f=s.Q,t.addData(f,_,v,r,i);break;case`A`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],Jl(w=r,T=i,r=p[g++],i=p[g++],S,C,y,b,x,f=s.A,t);break;case`a`:y=p[g++],b=p[g++],x=p[g++],S=p[g++],C=p[g++],Jl(w=r,T=i,r+=p[g++],i+=p[g++],S,C,y,b,x,f=s.A,t)}}d!==`z`&&d!==`Z`||(f=s.Z,t.addData(f),r=a,i=o),n=f}return t.toStatic(),t}(e),r=E({},t);return r.buildPath=function(e){var t,r=Ql(e);r&&e.canSave()?(e.appendPath(n),(t=e.getContext())&&e.rebuildPath(t,1)):(t=r?e.getContext():e)&&n.rebuildPath(t,1)},r.applyTransform=function(e){(function(e,t){if(t){var n,r,i,a,o,s,c=e.data,l=e.len(),u=Ll.M,d=Ll.C,f=Ll.L,p=Ll.R,m=Ll.A,h=Ll.Q;for(i=0,a=0;i<l;){switch(n=c[i++],a=i,r=0,n){case u:case f:r=1;break;case d:r=3;break;case h:r=2;break;case m:var g=t[4],_=t[5],v=zl(t[0]*t[0]+t[1]*t[1]),y=zl(t[2]*t[2]+t[3]*t[3]),b=Bl(-t[1]/y,t[0]/v);c[i]*=v,c[i++]+=g,c[i]*=y,c[i++]+=_,c[i++]*=v,c[i++]*=y,c[i++]+=b,c[i++]+=b,a=i+=2;break;case p:s[0]=c[i++],s[1]=c[i++],je(s,s,t),c[a++]=s[0],c[a++]=s[1],s[0]+=c[i++],s[1]+=c[i++],je(s,s,t),c[a++]=s[0],c[a++]=s[1]}for(o=0;o<r;o++){var x=Rl[o];x[0]=c[i++],x[1]=c[i++],je(x,x,t),c[a++]=x[0],c[a++]=x[1]}}e.increaseVersion()}})(n,e),this.dirtyShape()},r}var eu=function(){this.cx=0,this.cy=0,this.r=0},tu=function(e){function t(t){return e.call(this,t)||this}return n(t,e),t.prototype.getDefaultShape=function(){return new eu},t.prototype.buildPath=function(e,t){e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI)},t}(X);tu.prototype.type=`circle`;var nu=function(){this.cx=0,this.cy=0,this.rx=0,this.ry=0},ru=function(e){function t(t){return e.call(this,t)||this}return n(t,e),t.prototype.getDefaultShape=function(){return new nu},t.prototype.buildPath=function(e,t){var n=.5522848,r=t.cx,i=t.cy,a=t.rx,o=t.ry,s=a*n,c=o*n;e.moveTo(r-a,i),e.bezierCurveTo(r-a,i-c,r-s,i-o,r,i-o),e.bezierCurveTo(r+s,i-o,r+a,i-c,r+a,i),e.bezierCurveTo(r+a,i+c,r+s,i+o,r,i+o),e.bezierCurveTo(r-s,i+o,r-a,i+c,r-a,i),e.closePath()},t}(X);ru.prototype.type=`ellipse`;var iu=Math.PI,au=2*iu,ou=Math.sin,su=Math.cos,cu=Math.acos,lu=Math.atan2,uu=Math.abs,du=Math.sqrt,fu=Math.max,pu=Math.min,mu=1e-4;function hu(e,t,n,r,i,a,o){var s=e-n,c=t-r,l=(o?a:-a)/du(s*s+c*c),u=l*c,d=-l*s,f=e+u,p=t+d,m=n+u,h=r+d,g=(f+m)/2,_=(p+h)/2,v=m-f,y=h-p,b=v*v+y*y,x=i-a,S=f*h-m*p,C=(y<0?-1:1)*du(fu(0,x*x*b-S*S)),w=(S*y-v*C)/b,T=(-S*v-y*C)/b,E=(S*y+v*C)/b,D=(-S*v+y*C)/b,O=w-g,k=T-_,A=E-g,j=D-_;return O*O+k*k>A*A+j*j&&(w=E,T=D),{cx:w,cy:T,x0:-u,y0:-d,x1:w*(i/x-1),y1:T*(i/x-1)}}function gu(e,t){var n,r=fu(t.r,0),i=fu(t.r0||0,0),a=r>0;if(a||i>0){if(a||(r=i,i=0),i>r){var o=r;r=i,i=o}var s=t.startAngle,c=t.endAngle;if(!isNaN(s)&&!isNaN(c)){var l=t.cx,u=t.cy,d=!!t.clockwise,f=uu(c-s),p=f>au&&f%au;if(p>mu&&(f=p),r>mu){if(f>au-mu)e.moveTo(l+r*su(s),u+r*ou(s)),e.arc(l,u,r,s,c,!d),i>mu&&(e.moveTo(l+i*su(c),u+i*ou(c)),e.arc(l,u,i,c,s,d));else{var m=void 0,h=void 0,g=void 0,_=void 0,v=void 0,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0,w=void 0,T=void 0,E=void 0,D=void 0,O=void 0,k=void 0,A=r*su(s),j=r*ou(s),M=i*su(c),N=i*ou(c),P=f>mu;if(P){var ee=t.cornerRadius;ee&&(n=function(e){var t;if(L(e)){var n=e.length;if(!n)return e;t=n===1?[e[0],e[0],0,0]:n===2?[e[0],e[0],e[1],e[1]]:n===3?e.concat(e[2]):e}else t=[e,e,e,e];return t}(ee),m=n[0],h=n[1],g=n[2],_=n[3]);var F=uu(r-i)/2;if(v=pu(F,g),y=pu(F,_),b=pu(F,m),x=pu(F,h),w=S=fu(v,y),T=C=fu(b,x),(S>mu||C>mu)&&(E=r*su(c),D=r*ou(c),O=i*su(s),k=i*ou(s),f<iu)){var I=function(e,t,n,r,i,a,o,s){var c=n-e,l=r-t,u=o-i,d=s-a,f=d*c-u*l;if(!(f*f<mu))return[e+(f=(u*(t-a)-d*(e-i))/f)*c,t+f*l]}(A,j,O,k,E,D,M,N);if(I){var te=A-I[0],R=j-I[1],z=E-I[0],ne=D-I[1],B=1/ou(cu((te*z+R*ne)/(du(te*te+R*R)*du(z*z+ne*ne)))/2),V=du(I[0]*I[0]+I[1]*I[1]);w=pu(S,(r-V)/(B+1)),T=pu(C,(i-V)/(B-1))}}}if(P){if(w>mu){var re=pu(g,w),H=pu(_,w),U=hu(O,k,A,j,r,re,d),W=hu(E,D,M,N,r,H,d);e.moveTo(l+U.cx+U.x0,u+U.cy+U.y0),w<S&&re===H?e.arc(l+U.cx,u+U.cy,w,lu(U.y0,U.x0),lu(W.y0,W.x0),!d):(re>0&&e.arc(l+U.cx,u+U.cy,re,lu(U.y0,U.x0),lu(U.y1,U.x1),!d),e.arc(l,u,r,lu(U.cy+U.y1,U.cx+U.x1),lu(W.cy+W.y1,W.cx+W.x1),!d),H>0&&e.arc(l+W.cx,u+W.cy,H,lu(W.y1,W.x1),lu(W.y0,W.x0),!d))}else e.moveTo(l+A,u+j),e.arc(l,u,r,s,c,!d)}else e.moveTo(l+A,u+j);i>mu&&P?T>mu?(re=pu(m,T),U=hu(M,N,E,D,i,-(H=pu(h,T)),d),W=hu(A,j,O,k,i,-re,d),e.lineTo(l+U.cx+U.x0,u+U.cy+U.y0),T<C&&re===H?e.arc(l+U.cx,u+U.cy,T,lu(U.y0,U.x0),lu(W.y0,W.x0),!d):(H>0&&e.arc(l+U.cx,u+U.cy,H,lu(U.y0,U.x0),lu(U.y1,U.x1),!d),e.arc(l,u,i,lu(U.cy+U.y1,U.cx+U.x1),lu(W.cy+W.y1,W.cx+W.x1),d),re>0&&e.arc(l+W.cx,u+W.cy,re,lu(W.y1,W.x1),lu(W.y0,W.x0),!d))):(e.lineTo(l+M,u+N),e.arc(l,u,i,c,s,d)):e.lineTo(l+M,u+N)}}else e.moveTo(l,u);e.closePath()}}}var _u=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},vu=function(e){function t(t){return e.call(this,t)||this}return n(t,e),t.prototype.getDefaultShape=function(){return new _u},t.prototype.buildPath=function(e,t){gu(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(X);vu.prototype.type=`sector`;var yu=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},bu=function(e){function t(t){return e.call(this,t)||this}return n(t,e),t.prototype.getDefaultShape=function(){return new yu},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(X);function xu(e,t,n){var r=t.smooth,i=t.points;if(i&&i.length>=2){if(r){var a=function(e,t,n,r){var i,a,o,s,c=[],l=[],u=[],d=[];if(r){o=[1/0,1/0],s=[-1/0,-1/0];for(var f=0,p=e.length;f<p;f++)Me(o,o,e[f]),Ne(s,s,e[f]);Me(o,o,r[0]),Ne(s,s,r[1])}for(f=0,p=e.length;f<p;f++){var m=e[f];if(n)i=e[f?f-1:p-1],a=e[(f+1)%p];else{if(f===0||f===p-1){c.push(xe(e[f]));continue}i=e[f-1],a=e[f+1]}we(l,a,i),Te(l,l,t);var h=De(m,i),g=De(m,a),_=h+g;_!==0&&(h/=_,g/=_),Te(u,l,-h),Te(d,l,g);var v=Ce([],m,u),y=Ce([],m,d);r&&(Ne(v,v,o),Me(v,v,s),Ne(y,y,o),Me(y,y,s)),c.push(v),c.push(y)}return n&&c.push(c.shift()),c}(i,r,n,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var c=a[2*s],l=a[2*s+1],u=i[(s+1)%o];e.bezierCurveTo(c[0],c[1],l[0],l[1],u[0],u[1])}}else{e.moveTo(i[0][0],i[0][1]),s=1;for(var d=i.length;s<d;s++)e.lineTo(i[s][0],i[s][1])}n&&e.closePath()}}bu.prototype.type=`ring`;var Su=function(){this.points=null,this.smooth=0,this.smoothConstraint=null},Cu=function(e){function t(t){return e.call(this,t)||this}return n(t,e),t.prototype.getDefaultShape=function(){return new Su},t.prototype.buildPath=function(e,t){xu(e,t,!0)},t}(X);Cu.prototype.type=`polygon`;var wu=function(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null},Tu=function(e){function t(t){return e.call(this,t)||this}return n(t,e),t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new wu},t.prototype.buildPath=function(e,t){xu(e,t,!1)},t}(X);Tu.prototype.type=`polyline`;var Eu={},Du=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1},Ou=function(e){function t(t){return e.call(this,t)||this}return n(t,e),t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Du},t.prototype.buildPath=function(e,t){var n,r,i,a;if(this.subPixelOptimize){var o=uc(Eu,t,this.style);n=o.x1,r=o.y1,i=o.x2,a=o.y2}else n=t.x1,r=t.y1,i=t.x2,a=t.y2;var s=t.percent;s!==0&&(e.moveTo(n,r),s<1&&(i=n*(1-s)+i*s,a=r*(1-s)+a*s),e.lineTo(i,a))},t.prototype.pointAt=function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]},t}(X);Ou.prototype.type=`line`;var ku=[],Au=function(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1};function ju(e,t,n){var r=e.cpx2,i=e.cpy2;return r!=null||i!=null?[(n?_n:gn)(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?_n:gn)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?Cn:Sn)(e.x1,e.cpx1,e.x2,t),(n?Cn:Sn)(e.y1,e.cpy1,e.y2,t)]}var Mu=function(e){function t(t){return e.call(this,t)||this}return n(t,e),t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Au},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2,o=t.cpx1,s=t.cpy1,c=t.cpx2,l=t.cpy2,u=t.percent;u!==0&&(e.moveTo(n,r),c==null||l==null?(u<1&&(Tn(n,o,i,u,ku),o=ku[1],i=ku[2],Tn(r,s,a,u,ku),s=ku[1],a=ku[2]),e.quadraticCurveTo(o,s,i,a)):(u<1&&(bn(n,o,c,i,u,ku),o=ku[1],c=ku[2],i=ku[3],bn(r,s,l,a,u,ku),s=ku[1],l=ku[2],a=ku[3]),e.bezierCurveTo(o,s,c,l,i,a)))},t.prototype.pointAt=function(e){return ju(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=ju(this.shape,e,!0);return Ee(t,t)},t}(X);Mu.prototype.type=`bezier-curve`;var Nu=function(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Pu=function(e){function t(t){return e.call(this,t)||this}return n(t,e),t.prototype.getDefaultStyle=function(){return{stroke:`#000`,fill:null}},t.prototype.getDefaultShape=function(){return new Nu},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),a=t.startAngle,o=t.endAngle,s=t.clockwise,c=Math.cos(a),l=Math.sin(a);e.moveTo(c*i+n,l*i+r),e.arc(n,r,i,a,o,!s)},t}(X);Pu.prototype.type=`arc`;var Fu=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.type=`compound`,t}return n(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n<e.length;n++)t||=e[n].shapeChanged();t&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],t=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(t[0],t[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,t){for(var n=t.paths||[],r=0;r<n.length;r++)n[r].buildPath(e,n[r].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],t=0;t<e.length;t++)e[t].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),X.prototype.getBoundingRect.call(this)},t}(X),Iu=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}(),Lu=function(e){function t(t,n,r,i,a,o){var s=e.call(this,a)||this;return s.x=t??0,s.y=n??0,s.x2=r??1,s.y2=i??0,s.type=`linear`,s.global=o||!1,s}return n(t,e),t}(Iu),Ru=function(e){function t(t,n,r,i,a){var o=e.call(this,i)||this;return o.x=t??.5,o.y=n??.5,o.r=r??.5,o.type=`radial`,o.global=a||!1,o}return n(t,e),t}(Iu),zu=Math.min,Bu=Math.max,Vu=Math.abs,Hu=[0,0],Uu=[0,0],Wu=Ft(),Gu=Wu.minTv,Ku=Wu.maxTv,qu=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new mt;for(n=0;n<2;n++)this._axes[n]=new mt;e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,r=this._axes,i=e.x,a=e.y,o=i+e.width,s=a+e.height;if(n[0].set(i,a),n[1].set(o,a),n[2].set(o,s),n[3].set(i,s),t)for(var c=0;c<4;c++)n[c].transform(t);for(mt.sub(r[0],n[1],n[0]),mt.sub(r[1],n[3],n[0]),r[0].normalize(),r[1].normalize(),c=0;c<2;c++)this._origin[c]=r[c].dot(n[0])},e.prototype.intersect=function(e,t,n){var r=!0,i=!t;return t&&mt.set(t,0,0),Wu.reset(n,!i),!this._intersectCheckOneSide(this,e,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,i,-1)&&(r=!1,i)||i||Wu.negativeSize||mt.copy(t,r?Wu.useDir?Wu.dirMinTv:Gu:Ku),r},e.prototype._intersectCheckOneSide=function(e,t,n,r){for(var i=!0,a=0;a<2;a++){var o=e._axes[a];if(e._getProjMinMaxOnAxis(a,e._corners,Hu),e._getProjMinMaxOnAxis(a,t._corners,Uu),Wu.negativeSize||Hu[1]<Uu[0]||Hu[0]>Uu[1]){if(i=!1,Wu.negativeSize||n)return i;var s=Vu(Uu[0]-Hu[1]),c=Vu(Hu[0]-Uu[1]);zu(s,c)>Ku.len()&&(s<c?mt.scale(Ku,o,-s*r):mt.scale(Ku,o,c*r))}else n||(s=Vu(Uu[0]-Hu[1]),c=Vu(Hu[0]-Uu[1]),(Wu.useDir||zu(s,c)<Gu.len())&&((s<c||!Wu.bidirectional)&&(mt.scale(Gu,o,s*r),Wu.useDir&&Wu.calcDirMTV()),(s>=c||!Wu.bidirectional)&&(mt.scale(Gu,o,-c*r),Wu.useDir&&Wu.calcDirMTV())))}return i},e.prototype._getProjMinMaxOnAxis=function(e,t,n){for(var r=this._axes[e],i=this._origin,a=t[0].dot(r)+i[e],o=a,s=a,c=1;c<t.length;c++){var l=t[c].dot(r)+i[e];o=zu(l,o),s=Bu(l,s)}n[0]=o+Wu.touchThreshold,n[1]=s-Wu.touchThreshold,Wu.negativeSize=n[1]<n[0]},e}(),Ju=[],Yu=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.notClear=!0,t.incremental=1,t._displayables=[],t._temporaryDisplayables=[],t._cursor=0,t}return n(t,e),t.prototype.traverse=function(e,t){e.call(t,this)},t.prototype.useStyle=function(){this.style={}},t.prototype._useHoverStyle=function(){this.__hoverStyle=null},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(e,t){t?this._temporaryDisplayables.push(e):this._displayables.push(e),this.markRedraw()},t.prototype.addDisplayables=function(e,t){t||=!1;for(var n=0;n<e.length;n++)this.addDisplayable(e[n],t)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(e){for(var t=this._cursor;t<this._displayables.length;t++)e&&e(this._displayables[t]);for(t=0;t<this._temporaryDisplayables.length;t++)e&&e(this._temporaryDisplayables[t])},t.prototype.update=function(){this.updateTransform();for(var e=this._cursor;e<this._displayables.length;e++)(t=this._displayables[e]).parent=this,t.update(),t.parent=null;for(e=0;e<this._temporaryDisplayables.length;e++){var t;(t=this._temporaryDisplayables[e]).parent=this,t.update(),t.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var e=new J(1/0,1/0,-1/0,-1/0),t=0;t<this._displayables.length;t++){var n=this._displayables[t],r=n.getBoundingRect().clone();n.needLocalTransform()&&r.applyTransform(n.getLocalTransform(Ju)),e.union(r)}this._rect=e}return this._rect},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t);if(this.getBoundingRect().contain(n[0],n[1])){for(var r=0;r<this._displayables.length;r++)if(this._displayables[r].contain(e,t))return!0}return!1},t}(rs),Xu=Ua();function Zu(e,t,n,r,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=e===`update`;if(t&&t.isAnimationEnabled()){var c=void 0,l=void 0,u=void 0;return r?(c=G(r.duration,200),l=G(r.easing,`cubicOut`),u=0):(c=t.getShallow(s?`animationDurationUpdate`:`animationDuration`),l=t.getShallow(s?`animationEasingUpdate`:`animationEasing`),u=t.getShallow(s?`animationDelayUpdate`:`animationDelay`)),a&&(a.duration!=null&&(c=a.duration),a.easing!=null&&(l=a.easing),a.delay!=null&&(u=a.delay)),R(u)&&(u=u(n,i)),R(c)&&(c=c(n)),{duration:c||0,delay:u,easing:l}}return null}function Qu(e,t,n,r,i,a,o){var s,c=!1;R(i)?(o=a,a=i,i=null):V(i)&&(a=i.cb,o=i.during,c=i.isFrom,s=i.removeOpt,i=i.dataIndex);var l=e===`leave`;l||t.stopAnimation(`leave`);var u=Zu(e,r,i,l?s||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(t,i):null);if(u&&u.duration>0){var d={duration:u.duration,delay:u.delay||0,easing:u.easing,done:a,force:!!a||!!o,setToFinal:!l,scope:e,during:o};c?t.animateFrom(n,d):t.animateTo(n,d)}else t.stopAnimation(),!c&&t.attr(n),o&&o(1),a&&a()}function $u(e,t,n,r,i,a){Qu(`update`,e,t,n,r,i,a)}function ed(e,t,n,r,i,a){Qu(`enter`,e,t,n,r,i,a)}function td(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++)if(e.animators[t].scope===`leave`)return!0;return!1}function nd(e,t,n,r,i,a){td(e)||Qu(`leave`,e,t,n,r,i,a)}function rd(e,t,n,r){e.removeTextContent(),e.removeTextGuideLine(),nd(e,{style:{opacity:0}},t,n,r)}function id(e,t,n){function r(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(e){e.isGroup||rd(e,t,n,r)}):rd(e,t,n,r)}function ad(e){Xu(e).oldStyle=e.style}var od=e({Arc:()=>Pu,BezierCurve:()=>Mu,BoundingRect:()=>J,Circle:()=>tu,CompoundPath:()=>Fu,Ellipse:()=>ru,Group:()=>zi,HOVER_LAYER_FOR_INCREMENTAL:()=>2,HOVER_LAYER_FROM_THRESHOLD:()=>1,HOVER_LAYER_NO:()=>0,Image:()=>cc,IncrementalDisplayable:()=>Yu,Line:()=>Ou,LinearGradient:()=>Lu,OrientedBoundingRect:()=>qu,Path:()=>X,Point:()=>mt,Polygon:()=>Cu,Polyline:()=>Tu,RadialGradient:()=>Ru,Rect:()=>hc,Ring:()=>bu,Sector:()=>vu,Text:()=>yc,WH:()=>ld,XY:()=>cd,applyTransform:()=>wd,calcZ2Range:()=>Wd,clipPointsByRect:()=>Od,clipRectByRect:()=>kd,createIcon:()=>Ad,decomposeTransform:()=>Jd,ensureCopyRect:()=>Vd,ensureCopyTransform:()=>Hd,expandOrShrinkRect:()=>Pd,extendPath:()=>fd,extendShape:()=>ud,getCurrentCanvasPainter:()=>Xd,getShapeClass:()=>md,getTransform:()=>Cd,groupTransition:()=>Dd,initProps:()=>ed,isBoundingRectAxisAligned:()=>zd,isElementRemoved:()=>td,lineLineIntersect:()=>Md,linePolygonIntersect:()=>jd,makeImage:()=>gd,makePath:()=>hd,mergePath:()=>vd,payloadDisableAnimation:()=>qd,registerShape:()=>pd,removeElement:()=>nd,removeElementWithFadeOut:()=>id,resizePath:()=>yd,retrieveZInfo:()=>Ud,setTooltipConfig:()=>Id,subPixelOptimize:()=>Sd,subPixelOptimizeLine:()=>bd,subPixelOptimizeRect:()=>xd,transformDirection:()=>Td,traverseElements:()=>Rd,traverseUpdateZ:()=>Gd,updateProps:()=>$u}),sd={},cd=[`x`,`y`],ld=[`width`,`height`];function ud(e){return X.extend(e)}var dd=function(e,t){var r=$l(e,t);return function(e){function t(t){var n=e.call(this,t)||this;return n.applyTransform=r.applyTransform,n.buildPath=r.buildPath,n}return n(t,e),t}(Zl)};function fd(e,t){return dd(e,t)}function pd(e,t){sd[e]=t}function md(e){if(sd.hasOwnProperty(e))return sd[e]}function hd(e,t,n,r){var i=function(e,t){return new Zl($l(e,t))}(e,t);return n&&(r===`center`&&(n=_d(n,i.getBoundingRect())),yd(i,n)),i}function gd(e,t,n){var r=new cc({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(e){if(n===`center`){var i={width:e.width,height:e.height};r.setStyle(_d(t,i))}}});return r}function _d(e,t){var n,r=t.width/t.height,i=e.height*r;return n=i<=e.width?e.height:(i=e.width)/r,{x:e.x+e.width/2-i/2,y:e.y+e.height/2-n/2,width:i,height:n}}var vd=function(e,t){for(var n=[],r=e.length,i=0;i<r;i++){var a=e[i];n.push(a.getUpdatedPathProxy(!0))}var o=new X(t);return o.createPathProxy(),o.buildPath=function(e){if(Ql(e)){e.appendPath(n);var t=e.getContext();t&&e.rebuildPath(t,1)}},o};function yd(e,t){if(e.applyTransform){var n=e.getBoundingRect().calculateTransform(t);e.applyTransform(n)}}function bd(e,t){return uc(e,e,{lineWidth:t}),e}function xd(e,t){return dc(e,e,t),e}var Sd=fc;function Cd(e,t){for(var n=ct([]);e&&e!==t;)ut(n,e.getLocalTransform(),n),e=e.parent;return n}function wd(e,t,n){return t&&!A(t)&&(t=li.getLocalTransform(t)),n&&(t=pt([],t)),je([],e,t)}function Td(e,t,n){var r=t[4]===0||t[5]===0||t[0]===0?1:Ji(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Ji(2*t[4]/t[2]),a=[e===`left`?-r:e===`right`?r:0,e===`top`?-i:e===`bottom`?i:0];return a=wd(a,t,n),Ji(a[0])>Ji(a[1])?a[0]>0?`right`:`left`:a[1]>0?`bottom`:`top`}function Ed(e){return!e.isGroup}function Dd(e,t,n){if(e&&t){var r,i=(r={},e.traverse(function(e){Ed(e)&&e.anid&&(r[e.anid]=e)}),r);t.traverse(function(e){if(Ed(e)&&e.anid){var t=i[e.anid];if(t){var r=a(e);e.attr(a(t)),$u(e,r,n,Mc(e).dataIndex)}}})}function a(e){var t={x:e.x,y:e.y,rotation:e.rotation};return function(e){return e.shape!=null}(e)&&(t.shape=w(e.shape)),t}}function Od(e,t){return M(e,function(e){var n=e[0];n=qi(n,t.x),n=Ki(n,t.x+t.width);var r=e[1];return r=qi(r,t.y),[n,r=Ki(r,t.y+t.height)]})}function kd(e,t){var n=qi(e.x,t.x),r=Ki(e.x+e.width,t.x+t.width),i=qi(e.y,t.y),a=Ki(e.y+e.height,t.y+t.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function Ad(e,t,n){var r=E({rectHover:!0},t),i=r.style={strokeNoScale:!0};if(n||={x:-1,y:-1,width:2,height:2},e)return e.indexOf(`image://`)===0?(i.image=e.slice(8),D(i,n),new cc(r)):hd(e.replace(`path://`,``),r,n,`center`)}function jd(e,t,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(Md(e,t,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function Md(e,t,n,r,i,a,o,s){var c,l=n-e,u=r-t,d=o-i,f=s-a,p=Nd(d,f,l,u);if((c=p)<=1e-6&&c>=-1e-6)return!1;var m=e-i,h=t-a,g=Nd(m,h,l,u)/p;if(g<0||g>1)return!1;var _=Nd(m,h,d,f)/p;return!(_<0||_>1)}function Nd(e,t,n,r){return e*r-n*t}function Pd(e,t,n,r,i){return t==null||(B(t)?Z[0]=Z[1]=Z[2]=Z[3]=t:(Z[0]=t[0],Z[1]=t[1],Z[2]=t[2],Z[3]=t[3]),r&&(Z[0]=qi(0,Z[0]),Z[1]=qi(0,Z[1]),Z[2]=qi(0,Z[2]),Z[3]=qi(0,Z[3])),n&&(Z[0]=-Z[0],Z[1]=-Z[1],Z[2]=-Z[2],Z[3]=-Z[3]),Fd(e,Z,`x`,`width`,3,1,i&&i[0]||0),Fd(e,Z,`y`,`height`,0,2,i&&i[1]||0)),e}var Z=[0,0,0,0];function Fd(e,t,n,r,i,a,o){var s=t[a]+t[i],c=e[r];e[r]+=s,o=qi(0,Ki(o,c)),e[r]<o?(e[r]=o,e[n]+=t[i]>=0?-t[i]:t[a]>=0?c+t[a]:Ji(s)>1e-8?(c-o)*t[i]/s:0):e[n]-=t[i]}function Id(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,i=z(t)?{formatter:t}:t,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:[`name`]};s[a+`Index`]=o;var c=e.formatterParamsExtra;c&&j(F(c),function(e){q(s,e)||(s[e]=c[e],s.$vars.push(e))});var l=Mc(e.el);l.componentMainType=a,l.componentIndex=o,l.tooltipConfig={name:r,option:D({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function Ld(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function Rd(e,t){if(e){if(L(e))for(var n=0;n<e.length;n++)Ld(e[n],t);else Ld(e,t)}}function zd(e){return!e||Ji(e[1])<Bd&&Ji(e[2])<Bd||Ji(e[0])<Bd&&Ji(e[3])<Bd}var Bd=1e-5;function Vd(e,t){return e?J.copy(e,t):t.clone()}function Hd(e,t){return t?lt(e||[1,0,0,1,0,0],t):void 0}function Ud(e){return{z:e.get(`z`)||0,zlevel:e.get(`zlevel`)||0}}function Wd(e){var t=-1/0,n=1/0;function r(e){if(e&&!e.isGroup){var t=e.currentStates;if(t.length)for(var n=0;n<t.length;n++)i(e.states[t[n]]);i(e)}}function i(e){if(e){var r=e.z2;r>t&&(t=r),r<n&&(n=r)}}return Ld(e,function(e){r(e),r(e.getTextContent()),r(e.getTextGuideLine())}),n>t&&(n=t=0),{min:n,max:t}}function Gd(e,t,n){Kd(e,t,n,-1/0)}function Kd(e,t,n,r){if(e.ignoreModelZ)return r;var i=e.getTextContent(),a=e.getTextGuideLine();if(e.isGroup)for(var o=e.childrenRef(),s=0;s<o.length;s++)r=qi(Kd(o[s],t,n,r),r);else e.z=t,e.zlevel=n,r=qi(e.z2||0,r);if(i&&(i.z=t,i.zlevel=n,isFinite(r)&&(i.z2=r+2)),a){var c=e.textGuideLineConfig;a.z=t,a.zlevel=n,isFinite(r)&&(a.z2=r+(c&&c.showAbove?1:-1))}return r}function qd(e){return e.animation={duration:0},e}function Jd(e,t){return t?lt(Yd.transform,t):ct(Yd.transform),Yd.decomposeTransform(),fi(e,Yd),e}var Yd=new li;function Xd(e){var t=e.getZr().painter;return t.getType()===`canvas`?t:null}Yd.transform=[1,0,0,1,0,0],pd(`circle`,tu),pd(`ellipse`,ru),pd(`sector`,vu),pd(`ring`,bu),pd(`polygon`,Cu),pd(`polyline`,Tu),pd(`rect`,hc),pd(`line`,Ou),pd(`bezierCurve`,Mu),pd(`arc`,Pu);var Zd={};function Qd(e,t,n){var r,i=e.labelFetcher,a=e.labelDataIndex,o=e.labelDimIndex,s=t.normal;i&&(r=i.getFormattedLabel(a,`normal`,null,o,s&&s.get(`formatter`),n==null?null:{interpolatedValue:n})),r??=R(e.defaultText)?e.defaultText(a,e,n):e.defaultText;for(var c={normal:r},l=0;l<qc.length;l++){var u=qc[l],d=t[u];c[u]=G(i?i.getFormattedLabel(a,u,null,o,d&&d.get(`formatter`)):null,r)}return c}function $d(e,t,n,r){n||=Zd;for(var i=e instanceof yc,a=!1,o=0;o<Jc.length;o++)if((f=t[Jc[o]])&&f.getShallow(`show`)){a=!0;break}var s=i?e:e.getTextContent();if(a){i||(s||(s=new yc,e.setTextContent(s)),e.stateProxy&&(s.stateProxy=e.stateProxy));var c=Qd(n,t),l=t.normal,u=!!l.getShallow(`show`),d=tf(l,r&&r.normal,n,!1,!i);for(d.text=c.normal,i||e.setTextConfig(nf(l,n,!1)),o=0;o<qc.length;o++){var f,p=qc[o];if(f=t[p]){var m=s.ensureState(p),h=!!G(f.getShallow(`show`),u);h!==u&&(m.ignore=!h),m.style=tf(f,r&&r[p],n,!0,!i),m.style.text=c[p],!i&&(e.ensureState(p).textConfig=nf(f,n,!0))}}s.silent=!!l.getShallow(`silent`),s.style.x!=null&&(d.x=s.style.x),s.style.y!=null&&(d.y=s.style.y),s.ignore=!u,s.useStyle(d),s.dirty(),n.enableTextSetter&&(cf(s).setLabelText=function(e){var r=Qd(n,t,e);(function(e,t){for(var n=0;n<qc.length;n++){var r=qc[n],i=t[r],a=e.ensureState(r);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)})(s,r)})}else s&&(s.ignore=!0);e.dirty()}function ef(e,t){t||=`label`;for(var n={normal:e.getModel(t)},r=0;r<qc.length;r++){var i=qc[r];n[i]=e.getModel([i,t])}return n}function tf(e,t,n,r,i){var a={};return function(e,t,n,r,i){n||=Zd;var a,o=t.ecModel,s=o&&o.option.textStyle,c=function(e){for(var t;e&&e!==e.ecModel;){var n=(e.option||Zd).rich;if(n){t||={};for(var r=F(n),i=0;i<r.length;i++)t[r[i]]=1}e=e.parentModel}return t}(t);if(c){a={};var l=`richInheritPlainLabel`,u=G(t.get(l),o?o.get(l):void 0);for(var d in c)if(c.hasOwnProperty(d)){var f=t.getModel([`rich`,d]);sf(a[d]={},f,s,t,u,n,r,i,!1,!0)}}a&&(e.rich=a);var p=t.get(`overflow`);p&&(e.overflow=p);var m=t.get(`lineOverflow`);m&&(e.lineOverflow=m);var h=e,g=t.get(`minMargin`);if(g!=null)g=B(g)?g/2:0,h.margin=[g,g,g,g],h.__marginType=ff.minMargin;else{var _=t.get(`textMargin`);_!=null&&(h.margin=ce(_),h.__marginType=ff.textMargin)}sf(e,t,s,null,null,n,r,i,!0,!1)}(a,e,n,r,i),t&&E(a,t),a}function nf(e,t,n){t||={};var r,i={},a=e.getShallow(`rotate`),o=G(e.getShallow(`distance`),n?null:5),s=e.getShallow(`offset`);return(r=e.getShallow(`position`)||(n?null:`inside`))===`outside`&&(r=t.defaultOutsidePosition||`top`),r!=null&&(i.position=r),s!=null&&(i.offset=s),a!=null&&(a*=Math.PI/180,i.rotation=a),o!=null&&(i.distance=o),i.outsideFill=e.get(`color`)===`inherit`?t.inheritColor||null:`auto`,t.autoOverflowArea!=null&&(i.autoOverflowArea=t.autoOverflowArea),t.layoutRect!=null&&(i.layoutRect=t.layoutRect),i}var rf=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`textShadowColor`,`textShadowBlur`,`textShadowOffsetX`,`textShadowOffsetY`],af=[`align`,`lineHeight`,`width`,`height`,`tag`,`verticalAlign`,`ellipsis`],of=[`padding`,`borderWidth`,`borderRadius`,`borderDashOffset`,`backgroundColor`,`borderColor`,`shadowColor`,`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`];function sf(e,t,n,r,i,a,o,s,c,l){n=!o&&n||Zd;var u=a&&a.inheritColor,d=t.getShallow(`color`),f=t.getShallow(`textBorderColor`),p=G(t.getShallow(`opacity`),n.opacity);d!==`inherit`&&d!==`auto`||(d=u||null),f!==`inherit`&&f!==`auto`||(f=u||null),s||(d||=n.color,f||=n.textBorderColor),d!=null&&(e.fill=d),f!=null&&(e.stroke=f);var m=G(t.getShallow(`textBorderWidth`),n.textBorderWidth);m!=null&&(e.lineWidth=m);var h=G(t.getShallow(`textBorderType`),n.textBorderType);h!=null&&(e.lineDash=h);var g=G(t.getShallow(`textBorderDashOffset`),n.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),o||p!=null||l||(p=a&&a.defaultOpacity),p!=null&&(e.opacity=p),o||s||e.fill==null&&a.inheritColor&&(e.fill=a.inheritColor);for(var _=0;_<rf.length;_++){var v=rf[_];(b=!1!==i&&r?oe(t.getShallow(v),r.getShallow(v),n[v]):G(t.getShallow(v),n[v]))!=null&&(e[v]=b)}for(_=0;_<af.length;_++)v=af[_],(b=t.getShallow(v))!=null&&(e[v]=b);if(e.verticalAlign==null){var y=t.getShallow(`baseline`);y!=null&&(e.verticalAlign=y)}if(!c||!a.disableBox){for(_=0;_<of.length;_++){var b;v=of[_],(b=t.getShallow(v))!=null&&(e[v]=b)}var x=t.getShallow(`borderType`);x!=null&&(e.borderDash=x),e.backgroundColor!==`auto`&&e.backgroundColor!==`inherit`||!u||(e.backgroundColor=u),e.borderColor!==`auto`&&e.borderColor!==`inherit`||!u||(e.borderColor=u)}}var cf=Ua();function lf(e,t,n,r){if(e){var i=cf(e);i.prevValue=i.value,i.value=n;var a=t.normal;i.valueAnimation=a.get(`valueAnimation`),i.valueAnimation&&(i.precision=a.get(`precision`),i.defaultInterpolatedText=r,i.statesModels=t)}}var uf,df,ff={minMargin:1,textMargin:2},pf=[`textStyle`,`color`],mf=[`fontStyle`,`fontWeight`,`fontSize`,`fontFamily`,`padding`,`lineHeight`,`rich`,`width`,`height`,`overflow`],hf=new yc,gf=function(){function e(){}return e.prototype.getTextColor=function(e){var t=this.ecModel;return this.getShallow(`color`)||(!e&&t?t.get(pf):null)},e.prototype.getFont=function(){return e={fontStyle:this.getShallow(`fontStyle`),fontWeight:this.getShallow(`fontWeight`),fontSize:this.getShallow(`fontSize`),fontFamily:this.getShallow(`fontFamily`)},t=this.ecModel,n=t&&t.getModel(`textStyle`),ue([e.fontStyle||n&&n.getShallow(`fontStyle`)||``,e.fontWeight||n&&n.getShallow(`fontWeight`)||``,(e.fontSize||n&&n.getShallow(`fontSize`)||12)+`px`,e.fontFamily||n&&n.getShallow(`fontFamily`)||`sans-serif`].join(` `));var e,t,n},e.prototype.getTextRect=function(e){for(var t={text:e,verticalAlign:this.getShallow(`verticalAlign`)||this.getShallow(`baseline`)},n=0;n<mf.length;n++)t[mf[n]]=this.getShallow(mf[n]);return hf.useStyle(t),hf.update(),hf.getBoundingRect()},e}(),_f=[[`lineWidth`,`width`],[`stroke`,`color`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`type`],[`lineDashOffset`,`dashOffset`],[`lineCap`,`cap`],[`lineJoin`,`join`],[`miterLimit`]],vf=Eo(_f),yf=function(){function e(){}return e.prototype.getLineStyle=function(e){return vf(this,e)},e}(),bf=[[`fill`,`color`],[`stroke`,`borderColor`],[`lineWidth`,`borderWidth`],[`opacity`],[`shadowBlur`],[`shadowOffsetX`],[`shadowOffsetY`],[`shadowColor`],[`lineDash`,`borderType`],[`lineDashOffset`,`borderDashOffset`],[`lineCap`,`borderCap`],[`lineJoin`,`borderJoin`],[`miterLimit`,`borderMiterLimit`]],xf=Eo(bf),Sf=function(){function e(){}return e.prototype.getItemStyle=function(e,t){return xf(this,e,t)},e}(),Cf=function(){function e(e,t,n){this.parentModel=t,this.ecModel=n,this.option=e}return e.prototype.init=function(e,t,n){},e.prototype.mergeOption=function(e,t){T(this.option,e,!0)},e.prototype.get=function(e,t){return e==null?this.option:this._doGet(this.parsePath(e),!t&&this.parentModel)},e.prototype.getShallow=function(e,t){var n=this.option,r=n==null?n:n[e];if(r==null&&!t){var i=this.parentModel;i&&(r=i.getShallow(e))}return r},e.prototype.getModel=function(t,n){var r=t!=null,i=r?this.parsePath(t):null;return new e(r?this._doGet(i):this.option,n||=this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){return new this.constructor(w(this.option))},e.prototype.parsePath=function(e){return typeof e==`string`?e.split(`.`):e},e.prototype.resolveParentPath=function(e){return e},e.prototype.isAnimationEnabled=function(){if(!i.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(e,t){var n=this.option;if(!e)return n;for(var r=0;r<e.length&&(!e[r]||(n=n&&typeof n==`object`?n[e[r]]:null)!=null);r++);return n==null&&t&&(n=t._doGet(this.resolveParentPath(e),t.parentModel)),n},e}();bo(Cf),uf=Cf,df=[`__\0is_clz`,So++].join(`_`),uf.prototype[df]=!0,uf.isInstance=function(e){return!(!e||!e[df])},k(Cf,yf),k(Cf,Sf),k(Cf,Oo),k(Cf,gf);var wf=Math.round(10*Math.random());function Tf(e){return[e||``,wf++].join(`_`)}function Ef(e,t){return T(T({},e,!0),t,!0)}var Df=`ZH`,Of=`EN`,kf=Of,Af={},jf={},Mf=i.domSupported&&(document.documentElement.lang||navigator.language||navigator.browserLanguage||kf).toUpperCase().indexOf(Df)>-1?Df:kf;function Nf(e,t){e=e.toUpperCase(),jf[e]=new Cf(t),Af[e]=t}Nf(Of,{time:{month:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],monthAbbr:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],dayOfWeek:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],dayOfWeekAbbr:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`]},legend:{selector:{all:`All`,inverse:`Inv`}},toolbox:{brush:{title:{rect:`Box Select`,polygon:`Lasso Select`,lineX:`Horizontally Select`,lineY:`Vertically Select`,keep:`Keep Selections`,clear:`Clear Selections`}},dataView:{title:`Data View`,lang:[`Data View`,`Close`,`Refresh`]},dataZoom:{title:{zoom:`Zoom`,back:`Zoom Reset`}},magicType:{title:{line:`Switch to Line Chart`,bar:`Switch to Bar Chart`,stack:`Stack`,tiled:`Tile`}},restore:{title:`Restore`},saveAsImage:{title:`Save as Image`,lang:[`Right Click to Save Image`]}},series:{typeNames:{pie:`Pie chart`,bar:`Bar chart`,line:`Line chart`,scatter:`Scatter plot`,effectScatter:`Ripple scatter plot`,radar:`Radar chart`,tree:`Tree`,treemap:`Treemap`,boxplot:`Boxplot`,candlestick:`Candlestick`,k:`K line chart`,heatmap:`Heat map`,map:`Map`,parallel:`Parallel coordinate map`,lines:`Line graph`,graph:`Relationship graph`,sankey:`Sankey diagram`,funnel:`Funnel chart`,gauge:`Gauge`,pictorialBar:`Pictorial bar`,themeRiver:`Theme River Map`,sunburst:`Sunburst`,custom:`Custom chart`,chart:`Chart`}},aria:{general:{withTitle:`This is a chart about "{title}"`,withoutTitle:`This is a chart`},series:{single:{prefix:``,withName:` with type {seriesType} named {seriesName}.`,withoutName:` with type {seriesType}.`},multiple:{prefix:`. It consists of {seriesCount} series count.`,withName:` The {seriesId} series is a {seriesType} representing {seriesName}.`,withoutName:` The {seriesId} series is a {seriesType}.`,separator:{middle:``,end:``}}},data:{allData:`The data is as follows: `,partialData:`The first {displayCnt} items are: `,withName:`the data for {name} is {value}`,withoutName:`{value}`,separator:{middle:`, `,end:`. `}}}}),Nf(Df,{time:{month:[`一月`,`二月`,`三月`,`四月`,`五月`,`六月`,`七月`,`八月`,`九月`,`十月`,`十一月`,`十二月`],monthAbbr:[`1月`,`2月`,`3月`,`4月`,`5月`,`6月`,`7月`,`8月`,`9月`,`10月`,`11月`,`12月`],dayOfWeek:[`星期日`,`星期一`,`星期二`,`星期三`,`星期四`,`星期五`,`星期六`],dayOfWeekAbbr:[`日`,`一`,`二`,`三`,`四`,`五`,`六`]},legend:{selector:{all:`全选`,inverse:`反选`}},toolbox:{brush:{title:{rect:`矩形选择`,polygon:`圈选`,lineX:`横向选择`,lineY:`纵向选择`,keep:`保持选择`,clear:`清除选择`}},dataView:{title:`数据视图`,lang:[`数据视图`,`关闭`,`刷新`]},dataZoom:{title:{zoom:`区域缩放`,back:`区域缩放还原`}},magicType:{title:{line:`切换为折线图`,bar:`切换为柱状图`,stack:`切换为堆叠`,tiled:`切换为平铺`}},restore:{title:`还原`},saveAsImage:{title:`保存为图片`,lang:[`右键另存为图片`]}},series:{typeNames:{pie:`饼图`,bar:`柱状图`,line:`折线图`,scatter:`散点图`,effectScatter:`涟漪散点图`,radar:`雷达图`,tree:`树图`,treemap:`矩形树图`,boxplot:`箱型图`,candlestick:`K线图`,k:`K线图`,heatmap:`热力图`,map:`地图`,parallel:`平行坐标图`,lines:`线图`,graph:`关系图`,sankey:`桑基图`,funnel:`漏斗图`,gauge:`仪表盘图`,pictorialBar:`象形柱图`,themeRiver:`主题河流图`,sunburst:`旭日图`,custom:`自定义图表`,chart:`图表`}},aria:{general:{withTitle:`这是一个关于“{title}”的图表。`,withoutTitle:`这是一个图表,`},series:{single:{prefix:``,withName:`图表类型是{seriesType},表示{seriesName}。`,withoutName:`图表类型是{seriesType}。`},multiple:{prefix:`它由{seriesCount}个图表系列组成。`,withName:`第{seriesId}个系列是一个表示{seriesName}的{seriesType},`,withoutName:`第{seriesId}个系列是一个{seriesType},`,separator:{middle:`;`,end:`。`}}},data:{allData:`其数据是——`,partialData:`其中,前{displayCnt}项是——`,withName:`{name}的数据是{value}`,withoutName:`{value}`,separator:{middle:`,`,end:``}}}});function Pf(){return null}function Ff(e,t){return t.breakOption,t.breakParsed}function If(e){var t=e.brk;return t?t.breaks:[]}function Lf(e){var t=e.brk;return!!t&&t.hasBreaks()}var Rf=1e3,zf=6e4,Bf=36e5,Vf=864e5,Hf=31536e6,Uf={year:/({yyyy}|{yy})/,month:/({MMMM}|{MMM}|{MM}|{M})/,day:/({dd}|{d})/,hour:/({HH}|{H}|{hh}|{h})/,minute:/({mm}|{m})/,second:/({ss}|{s})/,millisecond:/({SSS}|{S})/},Wf={year:`{yyyy}`,month:`{MMM}`,day:`{d}`,hour:`{HH}:{mm}`,minute:`{HH}:{mm}`,second:`{HH}:{mm}:{ss}`,millisecond:`{HH}:{mm}:{ss} {SSS}`},Gf=`{yyyy}-{MM}-{dd}`,Kf={year:`{yyyy}`,month:`{yyyy}-{MM}`,day:Gf,hour:Gf+` `+Wf.hour,minute:Gf+` `+Wf.minute,second:Gf+` `+Wf.second,millisecond:`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}`},qf=[`year`,`month`,`day`,`hour`,`minute`,`second`,`millisecond`],Jf=[`year`,`half-year`,`quarter`,`month`,`week`,`half-week`,`day`,`half-day`,`quarter-day`,`hour`,`minute`,`second`,`millisecond`];function Yf(e){return z(e)||R(e)?e:function(e){e||={};var t={},n=!0;return j(qf,function(t){n&&=e[t]==null}),j(qf,function(r,i){var a=e[r];t[r]={};for(var o=null,s=i;s>=0;s--){var c=qf[s],l=V(a)&&!L(a)?a[c]:a,u=void 0;L(l)?o=(u=l.slice())[0]||``:z(l)?u=[o=l]:(o==null?o=Wf[r]:Uf[c].test(o)||(o=t[c][c][0]+` `+o),u=[o],n&&(u[1]=`{primary|`+o+`}`)),t[r][c]=u}}),t}(e)}function Xf(e,t){return`0000`.substr(0,t-(e+=``).length)+e}function Zf(e){switch(e){case`half-year`:case`quarter`:return`month`;case`week`:case`half-week`:return`day`;case`half-day`:case`quarter-day`:return`hour`;default:return e}}function Qf(e){return e===Zf(e)}function $f(e){switch(e){case`year`:case`month`:return`day`;case`millisecond`:return`millisecond`;default:return`second`}}function ep(e,t,n,r){var i=ga(e),a=i[ip(n)](),o=i[ap(n)]()+1,s=Math.floor((o-1)/3)+1,c=i[op(n)](),l=i[`get`+(n?`UTC`:``)+`Day`](),u=i[sp(n)](),d=(u-1)%12+1,f=i[cp(n)](),p=i[lp(n)](),m=i[up(n)](),h=u>=12?`pm`:`am`,g=h.toUpperCase(),_=(r instanceof Cf?r:function(e){return jf[e]}(r||Mf)||jf[kf]).getModel(`time`),v=_.get(`month`),y=_.get(`monthAbbr`),b=_.get(`dayOfWeek`),x=_.get(`dayOfWeekAbbr`);return(t||``).replace(/{a}/g,h+``).replace(/{A}/g,g+``).replace(/{yyyy}/g,a+``).replace(/{yy}/g,Xf(a%100+``,2)).replace(/{Q}/g,s+``).replace(/{MMMM}/g,v[o-1]).replace(/{MMM}/g,y[o-1]).replace(/{MM}/g,Xf(o,2)).replace(/{M}/g,o+``).replace(/{dd}/g,Xf(c,2)).replace(/{d}/g,c+``).replace(/{eeee}/g,b[l]).replace(/{ee}/g,x[l]).replace(/{e}/g,l+``).replace(/{HH}/g,Xf(u,2)).replace(/{H}/g,u+``).replace(/{hh}/g,Xf(d+``,2)).replace(/{h}/g,d+``).replace(/{mm}/g,Xf(f,2)).replace(/{m}/g,f+``).replace(/{ss}/g,Xf(p,2)).replace(/{s}/g,p+``).replace(/{SSS}/g,Xf(m,3)).replace(/{S}/g,m+``)}function tp(e,t,n,r,i){var a=null;if(z(n))a=n;else if(R(n)){var o={time:e.time,level:e.time?e.time.level:0};a=n(e.value,t,o)}else{var s=e.time;if(s){var c=n[s.lowerTimeUnit][s.upperTimeUnit];a=c[Math.min(s.level,c.length-1)]||``}else{var l=np(e.value,i);a=n[l][l][0]}}return ep(new Date(e.value),a,i,r)}function np(e,t){var n=ga(e),r=n[ap(t)]()+1,i=n[op(t)](),a=n[sp(t)](),o=n[cp(t)](),s=n[lp(t)](),c=n[up(t)]()===0,l=c&&s===0,u=l&&o===0,d=u&&a===0,f=d&&i===1;return f&&r===1?`year`:f?`month`:d?`day`:u?`hour`:l?`minute`:c?`second`:`millisecond`}function rp(e,t,n){switch(t){case`year`:e[fp(n)](0);case`month`:e[pp(n)](1);case`day`:e[mp(n)](0);case`hour`:e[hp(n)](0);case`minute`:e[gp(n)](0);case`second`:e[_p(n)](0)}return e}function ip(e){return e?`getUTCFullYear`:`getFullYear`}function ap(e){return e?`getUTCMonth`:`getMonth`}function op(e){return e?`getUTCDate`:`getDate`}function sp(e){return e?`getUTCHours`:`getHours`}function cp(e){return e?`getUTCMinutes`:`getMinutes`}function lp(e){return e?`getUTCSeconds`:`getSeconds`}function up(e){return e?`getUTCMilliseconds`:`getMilliseconds`}function dp(e){return e?`setUTCFullYear`:`setFullYear`}function fp(e){return e?`setUTCMonth`:`setMonth`}function pp(e){return e?`setUTCDate`:`setDate`}function mp(e){return e?`setUTCHours`:`setHours`}function hp(e){return e?`setUTCMinutes`:`setMinutes`}function gp(e){return e?`setUTCSeconds`:`setSeconds`}function _p(e){return e?`setUTCMilliseconds`:`setMilliseconds`}function vp(e){if(isNaN(ba(e)))return z(e)?e:`-`;var t=(e+``).split(`.`);return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,`$1,`)+(t.length>1?`.`+t[1]:``)}function yp(e,t){return e=(e||``).toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var bp=ce;function xp(e,t,n){function r(e){return e&&ue(e)?e:`-`}function i(e){return wa(e)}var a=t===`time`,o=e instanceof Date;if(a||o){var s=a?ga(e):e;if(!isNaN(+s))return ep(s,`{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}`,n);if(o)return`-`}if(t===`ordinal`)return ne(e)?r(e):B(e)&&i(e)?e+``:`-`;var c=ba(e);return i(c)?vp(c):ne(e)?r(e):typeof e==`boolean`?e+``:`-`}var Sp=[`a`,`b`,`c`,`d`,`e`,`f`,`g`],Cp=function(e,t){return`{`+e+(t??``)+`}`};function wp(e,t,n){L(t)||(t=[t]);var r=t.length;if(!r)return``;for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Sp[a];e=e.replace(Cp(o),Cp(o,0))}for(var s=0;s<r;s++)for(var c=0;c<i.length;c++){var l=t[s][i[c]];e=e.replace(Cp(Sp[c],s),n?Je(l):l)}return e}function Tp(e,t){return t||=`transparent`,z(e)?e:V(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Ep(e,t){if(t===`_blank`||t===`blank`){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var Dp={},Op={},kp=function(){function e(){this._normalMasterList=[],this._nonSeriesBoxMasterList=[]}return e.prototype.create=function(e,t){function n(n,r){var i=[];return j(n,function(n,r){var a=n.create(e,t);i=i.concat(a||[])}),i}this._nonSeriesBoxMasterList=n(Dp,!0),this._normalMasterList=n(Op,!1)},e.prototype.update=function(e,t){j(this._normalMasterList,function(n){n.update&&n.update(e,t)})},e.prototype.getCoordinateSystems=function(){return this._normalMasterList.concat(this._nonSeriesBoxMasterList)},e.register=function(e,t){e!==`matrix`&&e!==`calendar`?Op[e]=t:Dp[e]=t},e.get=function(e){return Op[e]||Dp[e]},e}();function Ap(e){jp.set(e.fullType,{getCoord2:void 0}).getCoord2=e.getCoord2}var jp=K();function Mp(e){var t=e.getShallow(`coord`,!0),n=1;if(t==null){var r=jp.get(e.type);r&&r.getCoord2&&(n=2,t=r.getCoord2(e))}return{coord:t,from:n}}function Np(e,t){var n=e.getShallow(`coordinateSystem`),r=e.getShallow(`coordinateSystemUsage`,!0),i=0;if(n){var a=e.mainType===`series`;r??=a?`data`:`box`,r===`data`?(i=1,a||(i=0)):r===`box`&&(i=2,a||function(e){return!!Dp[e]}(n)||(i=0))}return{coordSysType:n,kind:i}}function Pp(e){var t=e.targetModel,n=e.coordSysType,r=e.coordSysProvider,i=e.isDefaultDataCoordSys;e.allowNotFound;var a=Np(t),o=a.kind,s=a.coordSysType;if(i&&o!==1&&(o=1,s=n),o===0||s!==n)return 0;var c=r(n,t);return c?(o===1?t.coordinateSystem=c:t.boxCoordinateSystem=c,o):0}var Fp=j,Ip=[`left`,`right`,`top`,`bottom`,`width`,`height`],Lp=[[`width`,`left`,`right`],[`height`,`top`,`bottom`]];function Rp(e,t,n,r,i){var a=0,o=0;r??=1/0,i??=1/0;var s=0;t.eachChild(function(c,l){var u,d,f=c.getBoundingRect(),p=t.childAt(l+1),m=p&&p.getBoundingRect();if(e===`horizontal`){var h=f.width+(m?-m.x+f.x:0);(u=a+h)>r||c.newline?(a=0,u=h,o+=s+n,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(m?-m.y+f.y:0);(d=o+g)>i||c.newline?(a+=s+n,o=0,d=g,s=f.width):s=Math.max(s,f.width)}c.newline||(c.x=a,c.y=o,c.markRedraw(),e===`horizontal`?a=u+n:o=d+n)})}var zp=Rp;te(Rp,`vertical`),te(Rp,`horizontal`);function Bp(e,t){var n=function(e,t){var n,r,i=Up(e,t,{enableLayoutOnlyByCenter:!0}),a=e.getBoxLayoutParams();if(i.type===Hp.point)r=i.refPoint,n=Vp(a,{width:t.getWidth(),height:t.getHeight()});else{var o=e.get(`center`),s=L(o)?o:[o,o];n=Vp(a,i.refContainer),r=i.boxCoordFrom===2?i.refPoint:[ia(s[0],n.width)+n.x,ia(s[1],n.height)+n.y]}return{viewRect:n,center:r}}(e,t),r=n.viewRect,i=n.center,a=e.get(`radius`);L(a)||(a=[0,a]);var o=ia(r.width,t.getWidth()),s=ia(r.height,t.getHeight()),c=Math.min(o,s),l=ia(a[0],c/2),u=ia(a[1],c/2);return{cx:i[0],cy:i[1],r0:l,r:u,viewRect:r}}function Vp(e,t,n){n=bp(n||0);var r=t.width,i=t.height,a=ia(e.left,r),o=ia(e.top,i),s=ia(e.right,r),c=ia(e.bottom,i),l=ia(e.width,r),u=ia(e.height,i),d=n[2]+n[0],f=n[1]+n[3],p=e.aspect;switch(isNaN(l)&&(l=r-s-f-a),isNaN(u)&&(u=i-c-d-o),p!=null&&(isNaN(l)&&isNaN(u)&&(p>r/i?l=.8*r:u=.8*i),isNaN(l)&&(l=p*u),isNaN(u)&&(u=l/p)),isNaN(a)&&(a=r-s-l-f),isNaN(o)&&(o=i-c-u-d),e.left||e.right){case`center`:a=r/2-l/2-n[3];break;case`right`:a=r-l-f}switch(e.top||e.bottom){case`middle`:case`center`:o=i/2-u/2-n[0];break;case`bottom`:o=i-u-d}a||=0,o||=0,isNaN(l)&&(l=r-f-a-(s||0)),isNaN(u)&&(u=i-d-o-(c||0));var m=new J((t.x||0)+a+n[3],(t.y||0)+o+n[0],l,u);return m.margin=n,m}var Hp={rect:1,point:2};function Up(e,t,n){var r,i,a,o,s=e.boxCoordinateSystem;if(s){var c=Mp(e),l=c.coord,u=c.from;if(s.dataToLayout){a=Hp.rect,o=u;var d=s.dataToLayout(l);r=d.contentRect||d.rect}else n&&n.enableLayoutOnlyByCenter&&s.dataToPoint&&(a=Hp.point,o=u,i=s.dataToPoint(l))}return a??=Hp.rect,a===Hp.rect&&(r||={x:0,y:0,width:t.getWidth(),height:t.getHeight()},i=[r.x+r.width/2,r.y+r.height/2]),{type:a,refContainer:r,refPoint:i,boxCoordFrom:o}}function Wp(e,t,n,r,i,a){var o,s=!i||!i.hv||i.hv[0],c=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||`all`;if((a||=e).x=e.x,a.y=e.y,!s&&!c)return!1;if(l===`raw`)o=e.type===`group`?new J(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(o=e.getBoundingRect(),e.needLocalTransform()){var u=e.getLocalTransform();(o=o.clone()).applyTransform(u)}var d=Vp(D({width:o.width,height:o.height},t),n,r),f=s?d.x-o.x:0,p=c?d.y-o.y:0;return l===`raw`?(a.x=f,a.y=p):(a.x+=f,a.y+=p),a===e&&e.markRedraw(),!0}function Gp(e){var t=e.layoutMode||e.constructor.layoutMode;return V(t)?t:t?{type:t}:null}function Kp(e,t,n){var r=n&&n.ignoreSize;!L(r)&&(r=[r,r]);var i=o(Lp[0],0),a=o(Lp[1],1);function o(n,i){var a={},o=0,c={},l=0;if(Fp(n,function(t){c[t]=e[t]}),Fp(n,function(e){q(t,e)&&(a[e]=c[e]=t[e]),s(a,e)&&o++,s(c,e)&&l++}),r[i])return s(t,n[1])?c[n[2]]=null:s(t,n[2])&&(c[n[1]]=null),c;if(l!==2&&o){if(o>=2)return a;for(var u=0;u<n.length;u++){var d=n[u];if(!q(a,d)&&q(e,d)){a[d]=e[d];break}}return a}return c}function s(e,t){return e[t]!=null&&e[t]!==`auto`}function c(e,t,n){Fp(e,function(e){t[e]=n[e]})}c(Lp[0],e,i),c(Lp[1],e,a)}function qp(e){return Jp({},e)}function Jp(e,t){return t&&e&&Fp(Ip,function(n){q(t,n)&&(e[n]=t[n])}),e}var Yp=Ua(),Q=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.uid=Tf(`ec_cpt_model`),i}var r;return n(t,e),t.prototype.init=function(e,t,n){this.mergeDefaultAndTheme(e,n)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Gp(this),r=n?qp(e):{};T(e,t.getTheme().get(this.mainType)),T(e,this.getDefaultOption()),n&&Kp(e,r,n)},t.prototype.mergeOption=function(e,t){T(this.option,e,!0);var n=Gp(this);n&&Kp(this.option,e,n)},t.prototype.optionUpdated=function(e,t){},t.prototype.getDefaultOption=function(){var e=this.constructor;if(!function(e){return!(!e||!e[vo])}(e))return e.defaultOption;var t=Yp(this);if(!t.defaultOption){for(var n=[],r=e;r;){var i=r.prototype.defaultOption;i&&n.push(i),r=r.superClass}for(var a={},o=n.length-1;o>=0;o--)a=T(a,n[o],!0);t.defaultOption=a}return t.defaultOption},t.prototype.getReferringComponents=function(e,t){var n=e+`Index`,r=e+`Id`;return Ja(this.ecModel,e,{index:this.get(n,!0),id:this.get(r,!0)},t)},t.prototype.getBoxLayoutParams=function(){return t=!1,{left:(e=this).getShallow(`left`,t),top:e.getShallow(`top`,t),right:e.getShallow(`right`,t),bottom:e.getShallow(`bottom`,t),width:e.getShallow(`width`,t),height:e.getShallow(`height`,t)};var e,t},t.prototype.getZLevelKey=function(){return``},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=((r=t.prototype).type=`component`,r.id=``,r.name=``,r.mainType=``,r.subType=``,void(r.componentIndex=0)),t}(Cf);xo(Q,Cf),To(Q),function(e){var t={};e.registerSubTypeDefaulter=function(e,n){var r=yo(e);t[r.main]=n},e.determineSubType=function(n,r){var i=r.type;if(!i){var a=yo(n).main;e.hasSubTypes(n)&&t[a]&&(i=t[a](r))}return i}}(Q),function(e,t){function n(e,t){return e[t]||(e[t]={predecessor:[],successor:[]}),e[t]}e.topologicalTravel=function(e,r,i,a){if(e.length){var o=function(e){var r={},i=[];return j(e,function(a){var o=n(r,a),s=function(e,t){var n=[];return j(e,function(e){O(t,e)>=0&&n.push(e)}),n}(o.originalDeps=t(a),e);o.entryCount=s.length,o.entryCount===0&&i.push(a),j(s,function(e){O(o.predecessor,e)<0&&o.predecessor.push(e);var t=n(r,e);O(t.successor,e)<0&&t.successor.push(a)})}),{graph:r,noEntryList:i}}(r),s=o.graph,c=o.noEntryList,l={};for(j(e,function(e){l[e]=!0});c.length;){var u=c.pop(),d=s[u],f=!!l[u];f&&(i.call(a,u,d.originalDeps.slice()),delete l[u]),j(d.successor,f?m:p)}j(l,function(){throw Error(``)})}function p(e){s[e].entryCount--,s[e].entryCount===0&&c.push(e)}function m(e){l[e]=!0,p(e)}}}(Q,function(e){var t=[];return j(Q.getClassesByMainType(e),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=M(t,function(e){return yo(e).main}),e!==`dataset`&&O(t,`dataset`)<=0&&t.unshift(`dataset`),t});var Xp={color:{},darkColor:{},size:{}},Zp=Xp.color={theme:[`#5070dd`,`#b6d634`,`#505372`,`#ff994d`,`#0ca8df`,`#ffd10a`,`#fb628b`,`#785db0`,`#3fbe95`],neutral00:`#fff`,neutral05:`#f4f7fd`,neutral10:`#e8ebf0`,neutral15:`#dbdee4`,neutral20:`#cfd2d7`,neutral25:`#c3c5cb`,neutral30:`#b7b9be`,neutral35:`#aaacb2`,neutral40:`#9ea0a5`,neutral45:`#929399`,neutral50:`#86878c`,neutral55:`#797b7f`,neutral60:`#6d6e73`,neutral65:`#616266`,neutral70:`#54555a`,neutral75:`#48494d`,neutral80:`#3c3c41`,neutral85:`#303034`,neutral90:`#232328`,neutral95:`#17171b`,neutral99:`#000`,accent05:`#eff1f9`,accent10:`#e0e4f2`,accent15:`#d0d6ec`,accent20:`#c0c9e6`,accent25:`#b1bbdf`,accent30:`#a1aed9`,accent35:`#91a0d3`,accent40:`#8292cc`,accent45:`#7285c6`,accent50:`#6578ba`,accent55:`#5c6da9`,accent60:`#536298`,accent65:`#4a5787`,accent70:`#404c76`,accent75:`#374165`,accent80:`#2e3654`,accent85:`#252b43`,accent90:`#1b2032`,accent95:`#121521`,transparent:`rgba(0,0,0,0)`,highlight:`rgba(255,231,130,0.8)`};for(var Qp in E(Zp,{primary:Zp.neutral80,secondary:Zp.neutral70,tertiary:Zp.neutral60,quaternary:Zp.neutral50,disabled:Zp.neutral20,border:Zp.neutral30,borderTint:Zp.neutral20,borderShade:Zp.neutral40,background:Zp.neutral05,backgroundTint:`rgba(234,237,245,0.5)`,backgroundTransparent:`rgba(255,255,255,0)`,backgroundShade:Zp.neutral10,shadow:`rgba(0,0,0,0.2)`,shadowTint:`rgba(129,130,136,0.2)`,axisLine:Zp.neutral70,axisLineTint:Zp.neutral40,axisTick:Zp.neutral70,axisTickMinor:Zp.neutral60,axisLabel:Zp.neutral70,axisSplitLine:Zp.neutral15,axisMinorSplitLine:Zp.neutral05}),Zp)if(Zp.hasOwnProperty(Qp)){var $p=Zp[Qp];Qp===`theme`?Xp.darkColor.theme=Zp.theme.slice():Qp===`highlight`?Xp.darkColor.highlight=`rgba(255,231,130,0.4)`:Qp.indexOf(`accent`)===0?Xp.darkColor[Qp]=Yn($p,null,function(e){return .5*e},function(e){return Math.min(1,1.3-e)}):Xp.darkColor[Qp]=Yn($p,null,function(e){return .9*e},function(e){return 1-e**1.5})}Xp.size={xxs:2,xs:5,s:10,m:15,l:20,xl:30,xxl:40,xxxl:50};var em=``;typeof navigator<`u`&&(em=navigator.platform||``);var tm=`rgba(0, 0, 0, 0.2)`,nm=Xp.color.theme[0],rm=Yn(nm,null,null,.9),im={darkMode:`auto`,colorBy:`series`,color:Xp.color.theme,gradientColor:[rm,nm],aria:{decal:{decals:[{color:tm,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:tm,symbol:`circle`,dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:tm,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:tm,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:tm,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:tm,symbol:`triangle`,dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:em.match(/^Win/)?`Microsoft YaHei`:`sans-serif`,fontSize:12,fontStyle:`normal`,fontWeight:`normal`},blendMode:null,stateAnimation:{duration:300,easing:`cubicOut`},animation:`auto`,animationDuration:1e3,animationDurationUpdate:500,animationEasing:`cubicInOut`,animationEasingUpdate:`cubicInOut`,animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},am={Must:1,Might:2,Not:3},om=Ua();function sm(e,t,n){var r={},i=lm(t);if(!i||!e)return r;var a,o,s=[],c=[],l=t.ecModel,u=om(l).datasetMap,d=i.uid+`_`+n.seriesLayoutBy;j(e=e.slice(),function(t,n){var i=V(t)?t:e[n]={name:t};i.type===`ordinal`&&a==null&&(a=n,o=m(i)),r[i.name]=[]});var f=u.get(d)||u.set(d,{categoryWayDim:o,valueWayDim:0});function p(e,t,n){for(var r=0;r<n;r++)e.push(t+r)}function m(e){var t=e.dimsDef;return t?t.length:1}return j(e,function(e,t){var n=e.name,i=m(e);if(a==null){var o=f.valueWayDim;p(r[n],o,i),p(c,o,i),f.valueWayDim+=i}else a===t?(p(r[n],0,i),p(s,0,i)):(o=f.categoryWayDim,p(r[n],o,i),p(c,o,i),f.categoryWayDim+=i)}),s.length&&(r.itemName=s),c.length&&(r.seriesName=c),r}function cm(e,t,n){var r={};if(!lm(e))return r;var i,a=t.sourceFormat,o=t.dimensionsDefine;a!==`objectRows`&&a!==`keyedColumns`||j(o,function(e,t){(V(e)?e.name:e)===`name`&&(i=t)});var s=function(){for(var e={},r={},s=[],c=0,l=Math.min(5,n);c<l;c++){var u=dm(t.data,a,t.seriesLayoutBy,o,t.startIndex,c);s.push(u);var d=u===am.Not;if(d&&e.v==null&&c!==i&&(e.v=c),(e.n==null||e.n===e.v||!d&&s[e.n]===am.Not)&&(e.n=c),f(e)&&s[e.n]!==am.Not)return e;d||(u===am.Might&&r.v==null&&c!==i&&(r.v=c),r.n!=null&&r.n!==r.v||(r.n=c))}function f(e){return e.v!=null&&e.n!=null}return f(e)?e:f(r)?r:null}();if(s){r.value=[s.v];var c=i??s.n;r.itemName=[c],r.seriesName=[c]}return r}function lm(e){if(!e.get(`data`,!0))return Ja(e.ecModel,`dataset`,{index:e.get(`datasetIndex`,!0),id:e.get(`datasetId`,!0)},qa).models[0]}function um(e,t){return dm(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function dm(e,t,n,r,i,a){var o,s,c;if(H(e))return am.Not;if(r){var l=r[a];V(l)?(s=l.name,c=l.type):z(l)&&(s=l)}if(c!=null)return c===`ordinal`?am.Must:am.Not;if(t===`arrayRows`){var u=e;if(n===`row`){for(var d=u[a],f=0;f<(d||[]).length&&f<5;f++)if((o=v(d[i+f]))!=null)return o}else for(f=0;f<u.length&&f<5;f++){var p=u[i+f];if(p&&(o=v(p[a]))!=null)return o}}else if(t===`objectRows`){var m=e;if(!s)return am.Not;for(f=0;f<m.length&&f<5;f++)if((g=m[f])&&(o=v(g[s]))!=null)return o}else if(t===`keyedColumns`){if(!s||!(d=e[s])||H(d))return am.Not;for(f=0;f<d.length&&f<5;f++)if((o=v(d[f]))!=null)return o}else if(t===`original`){var h=e;for(f=0;f<h.length&&f<5;f++){var g,_=Pa(g=h[f]);if(!L(_))return am.Not;if((o=v(_[a]))!=null)return o}}function v(e){var t=z(e);return e!=null&&isFinite(Number(e))&&e!==``?t?am.Might:am.Not:t&&e!==`-`?am.Must:void 0}return am.Not}var fm=K(),pm,mm,hm,gm=Ua(),_m=(Ua(),function(){function e(){}return e.prototype.getColorFromPalette=function(e,t,n){var r=ja(this.get(`color`,!0)),i=this.get(`colorLayer`,!0);return function(e,t,n,r,i,a,o){a||=e;var s=t(a),c=s.paletteIdx||0,l=s.paletteNameMap=s.paletteNameMap||{};if(l.hasOwnProperty(i))return l[i];var u=o!=null&&r?function(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r].length>t)return e[r];return e[n-1]}(r,o):n;if(u||=n,u&&u.length){var d=u[c];return i&&(l[i]=d),s.paletteIdx=(c+1)%u.length,d}}(this,gm,r,i,e,t,n)},e.prototype.clearColorPalette=function(){(function(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}})(this,gm)},e}()),vm=`\0_ec_inner`,ym=function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return n(t,e),t.prototype.init=function(e,t,n,r,i,a){r||={},this.option=null,this._theme=new Cf(r),this._locale=new Cf(i),this._optionManager=a},t.prototype.setOption=function(e,t,n){var r=Sm(t);this._optionManager.setOption(e,n,r),this._resetOption(null,r)},t.prototype.resetOption=function(e,t){return this._resetOption(e,Sm(t))},t.prototype._resetOption=function(e,t){var n=!1,r=this._optionManager;if(!e||e===`recreate`){var i=r.mountOption(e===`recreate`);this.option&&e!==`recreate`?(this.restoreData(),this._mergeOption(i,t)):hm(this,i),n=!0}if(e!==`timeline`&&e!==`media`||this.restoreData(),!e||e===`recreate`||e===`timeline`){var a=r.getTimelineOption(this);a&&(n=!0,this._mergeOption(a,t))}if(!e||e===`recreate`||e===`media`){var o=r.getMediaOption(this);o.length&&j(o,function(e){n=!0,this._mergeOption(e,t)},this)}return n},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,t){var n=this.option,r=this._componentsMap,i=this._componentsCount,a=[],o=K(),s=t&&t.replaceMergeMainTypeMap;om(this).datasetMap=K(),j(e,function(e,t){e!=null&&(Q.hasClass(t)?t&&(a.push(t),o.set(t,!0)):n[t]=n[t]==null?w(e):T(n[t],e,!0))}),s&&s.each(function(e,t){Q.hasClass(t)&&!o.get(t)&&(a.push(t),o.set(t,!0))}),Q.topologicalTravel(a,Q.getAllClassMainTypes(),function(t){var a=function(e,t,n){var r=fm.get(t);if(!r)return n;var i=r(e);return i?n.concat(i):n}(this,t,ja(e[t])),o=r.get(t),c=Ia(o,a,o?s&&s.get(t)?`replaceMerge`:`normalMerge`:`replaceAll`);(function(e,t,n){j(e,function(e){var r=e.newOption;V(r)&&(e.keyInfo.mainType=t,e.keyInfo.subType=function(e,t,n,r){return t.type?t.type:n?n.subType:r.determineSubType(e,t)}(t,r,e.existing,n))})})(c,t,Q),n[t]=null,r.set(t,null),i.set(t,0);var l,u=[],d=[],f=0;j(c,function(e,n){var r=e.existing,i=e.newOption;if(i){var a=t===`series`,o=Q.getClass(t,e.keyInfo.subType,!a);if(!o)return;if(t===`tooltip`){if(l)return;l=!0}if(r&&r.constructor===o)r.name=e.keyInfo.name,r.mergeOption(i,this),r.optionUpdated(i,!1);else{var s=E({componentIndex:n},e.keyInfo);E(r=new o(i,this,this,s),s),e.brandNew&&(r.__requireNewView=!0),r.init(i,this,this),r.optionUpdated(null,!0)}}else r&&(r.mergeOption({},this),r.optionUpdated({},!1));r?(u.push(r.option),d.push(r),f++):(u.push(void 0),d.push(void 0))},this),n[t]=u,r.set(t,d),i.set(t,f),t===`series`&&pm(this)},this),this._seriesIndices||pm(this)},t.prototype.getOption=function(){var e=w(this.option);return j(e,function(t,n){if(Q.hasClass(n)){for(var r=ja(t),i=r.length,a=!1,o=i-1;o>=0;o--)r[o]&&!Va(r[o])?a=!0:(r[o]=null,!a&&i--);r.length=i,e[n]=r}}),delete e[vm],e},t.prototype.setTheme=function(e){this._theme=new Cf(e),this._resetOption(`recreate`,null)},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,t){var n=this._componentsMap.get(e);if(n){var r=n[t||0];if(r)return r;if(t==null){for(var i=0;i<n.length;i++)if(n[i])return n[i]}}},t.prototype.queryComponents=function(e){var t=e.mainType;if(!t)return[];var n,r=e.index,i=e.id,a=e.name,o=this._componentsMap.get(t);return o&&o.length?(r==null?n=i==null?a==null?P(o,function(e){return!!e}):bm(`name`,a,o):bm(`id`,i,o):(n=[],j(ja(r),function(e){o[e]&&n.push(o[e])})),xm(n,e)):[]},t.prototype.findComponents=function(e){var t,n,r,i,a,o=e.query,s=e.mainType,c=(n=s+`Index`,r=s+`Id`,i=s+`Name`,!(t=o)||t[n]==null&&t[r]==null&&t[i]==null?null:{mainType:s,index:t[n],id:t[r],name:t[i]});return a=xm(c?this.queryComponents(c):P(this._componentsMap.get(s),function(e){return!!e}),e),e.filter?P(a,e.filter):a},t.prototype.eachComponent=function(e,t,n){var r=this._componentsMap;if(R(e)){var i=t,a=e;r.each(function(e,t){for(var n=0;e&&n<e.length;n++){var r=e[n];r&&a.call(i,t,r,r.componentIndex)}})}else for(var o=z(e)?r.get(e):V(e)?this.findComponents(e):null,s=0;o&&s<o.length;s++){var c=o[s];c&&t.call(n,c,c.componentIndex)}},t.prototype.getSeriesByName=function(e){var t=za(e,null);return P(this._componentsMap.get(`series`),function(e){return!!e&&t!=null&&e.name===t})},t.prototype.getSeriesByIndex=function(e){return this._componentsMap.get(`series`)[e]},t.prototype.getSeriesByType=function(e){return P(this._componentsMap.get(`series`),function(t){return!!t&&t.subType===e})},t.prototype.getSeries=function(){return P(this._componentsMap.get(`series`),function(e){return!!e})},t.prototype.getSeriesCount=function(){return this._componentsCount.get(`series`)},t.prototype.eachSeries=function(e,t){mm(this),j(this._seriesIndices,function(n){var r=this._componentsMap.get(`series`)[n];e.call(t,r,n)},this)},t.prototype.eachRawSeries=function(e,t){j(this._componentsMap.get(`series`),function(n){n&&e.call(t,n,n.componentIndex)})},t.prototype.eachSeriesByType=function(e,t,n){mm(this),j(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];i.subType===e&&t.call(n,i,r)},this)},t.prototype.eachRawSeriesByType=function(e,t,n){return j(this.getSeriesByType(e),t,n)},t.prototype.isSeriesFiltered=function(e){return mm(this),this._seriesIndicesMap.get(e.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(e,t){mm(this);var n=[];j(this._seriesIndices,function(r){var i=this._componentsMap.get(`series`)[r];e.call(t,i,r)&&n.push(r)},this),this._seriesIndices=n,this._seriesIndicesMap=K(n)},t.prototype.restoreData=function(e){pm(this);var t=this._componentsMap,n=[];t.each(function(e,t){Q.hasClass(t)&&n.push(t)}),Q.topologicalTravel(n,Q.getAllClassMainTypes(),function(n){j(t.get(n),function(t){!t||n===`series`&&function(e,t){if(t){var n=t.seriesIndex,r=t.seriesId,i=t.seriesName;return n!=null&&e.componentIndex!==n||r!=null&&e.id!==r||i!=null&&e.name!==i}}(t,e)||t.restoreData()})})},t.internalField=(pm=function(e){var t=e._seriesIndices=[];j(e._componentsMap.get(`series`),function(e){e&&t.push(e.componentIndex)}),e._seriesIndicesMap=K(t)},mm=function(e){},void(hm=function(e,t){e.option={},e.option[vm]=1,e._componentsMap=K({series:[]}),e._componentsCount=K();var n=t.aria;V(n)&&n.enabled==null&&(n.enabled=!0),function(e,t){var n=e.color&&!e.colorLayer;j(t,function(t,r){r===`colorLayer`&&n||r===`color`&&e.color||Q.hasClass(r)||(typeof t==`object`?e[r]=e[r]?T(e[r],t,!1):w(t):e[r]??(e[r]=t))})}(t,e._theme.option),T(t,im,!1),e._mergeOption(t,null)})),t}(Cf);function bm(e,t,n){if(L(t)){var r=K();return j(t,function(e){e!=null&&za(e,null)!=null&&r.set(e,!0)}),P(n,function(t){return t&&r.get(t[e])})}var i=za(t,null);return P(n,function(t){return t&&i!=null&&t[e]===i})}function xm(e,t){return t.hasOwnProperty(`subType`)?P(e,function(e){return e&&e.subType===t.subType}):e}function Sm(e){var t=K();return e&&j(ja(e.replaceMerge),function(e){t.set(e,!0)}),{replaceMergeMainTypeMap:t}}k(ym,_m);var Cm=/^(min|max)?(.+)$/,wm=function(){function e(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return e.prototype.setOption=function(e,t,n){e&&(j(ja(e.series),function(e){e&&e.data&&H(e.data)&&fe(e.data)}),j(ja(e.dataset),function(e){e&&e.source&&H(e.source)&&fe(e.source)})),e=w(e);var r=this._optionBackup,i=function(e,t,n){var r,i,a=[],o=e.baseOption,s=e.timeline,c=e.options,l=e.media,u=!!e.media,d=!!(c||s||o&&o.timeline);o?(i=o).timeline||(i.timeline=s):((d||u)&&(e.options=e.media=null),i=e),u&&L(l)&&j(l,function(e){e&&e.option&&(e.query?a.push(e):r||=e)});function f(e){j(t,function(t){t(e,n)})}return f(i),j(c,function(e){return f(e)}),j(a,function(e){return f(e.option)}),{baseOption:i,timelineOptions:c||[],mediaDefault:r,mediaList:a}}(e,t,!r);this._newBaseOption=i.baseOption,r?(i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(e){var t=this._optionBackup;return this._timelineOptions=t.timelineOptions,this._mediaList=t.mediaList,this._mediaDefault=t.mediaDefault,this._currentMediaIndices=[],w(e?t.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(e){var t,n=this._timelineOptions;if(n.length){var r=e.getComponent(`timeline`);r&&(t=w(n[r.getCurrentIndex()]))}return t},e.prototype.getMediaOption=function(e){var t,n,r=this._api.getWidth(),i=this._api.getHeight(),a=this._mediaList,o=this._mediaDefault,s=[],c=[];if(!a.length&&!o)return c;for(var l=0,u=a.length;l<u;l++)Tm(a[l].query,r,i)&&s.push(l);return!s.length&&o&&(s=[-1]),s.length&&(t=s,n=this._currentMediaIndices,t.join(`,`)!==n.join(`,`))&&(c=M(s,function(e){return w(e===-1?o.option:a[e].option)})),this._currentMediaIndices=s,c},e}();function Tm(e,t,n){var r={width:t,height:n,aspectratio:t/n},i=!0;return j(e,function(e,t){var n=t.match(Cm);if(n&&n[1]&&n[2]){var a=n[1];(function(e,t,n){return n===`min`?e>=t:n===`max`?e<=t:e===t})(r[n[2].toLowerCase()],e,a)||(i=!1)}}),i}var Em=j,Dm=V,Om=[`areaStyle`,`lineStyle`,`nodeStyle`,`linkStyle`,`chordStyle`,`label`,`labelLine`];function km(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=Om.length;n<r;n++){var i=Om[n],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?T(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?T(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function Am(e,t,n){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var r=e[t].normal,i=e[t].emphasis;r&&(n?(e[t].normal=e[t].emphasis=null,D(e[t],r)):e[t]=r),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function jm(e){Am(e,`itemStyle`),Am(e,`lineStyle`),Am(e,`areaStyle`),Am(e,`label`),Am(e,`labelLine`),Am(e,`upperLabel`),Am(e,`edgeLabel`)}function Mm(e,t){var n=Dm(e)&&e[t],r=Dm(n)&&n.textStyle;if(r)for(var i=0,a=Na.length;i<a;i++){var o=Na[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}function Nm(e){e&&(jm(e),Mm(e,`label`),e.emphasis&&Mm(e.emphasis,`label`))}function Pm(e){return L(e)?e:e?[e]:[]}function Fm(e){return(L(e)?e[0]:e)||{}}function Im(e,t){Em(Pm(e.series),function(e){Dm(e)&&function(e){if(Dm(e)){km(e),jm(e),Mm(e,`label`),Mm(e,`upperLabel`),Mm(e,`edgeLabel`),e.emphasis&&(Mm(e.emphasis,`label`),Mm(e.emphasis,`upperLabel`),Mm(e.emphasis,`edgeLabel`));var t=e.markPoint;t&&(km(t),Nm(t));var n=e.markLine;n&&(km(n),Nm(n));var r=e.markArea;r&&Nm(r);var i=e.data;if(e.type===`graph`){i||=e.nodes;var a=e.links||e.edges;if(a&&!H(a))for(var o=0;o<a.length;o++)Nm(a[o]);j(e.categories,function(e){jm(e)})}if(i&&!H(i))for(o=0;o<i.length;o++)Nm(i[o]);if((t=e.markPoint)&&t.data){var s=t.data;for(o=0;o<s.length;o++)Nm(s[o])}if((n=e.markLine)&&n.data){var c=n.data;for(o=0;o<c.length;o++)L(c[o])?(Nm(c[o][0]),Nm(c[o][1])):Nm(c[o])}e.type===`gauge`?(Mm(e,`axisLabel`),Mm(e,`title`),Mm(e,`detail`)):e.type===`treemap`?(Am(e.breadcrumb,`itemStyle`),j(e.levels,function(e){jm(e)})):e.type===`tree`&&jm(e.leaves)}}(e)});var n=[`xAxis`,`yAxis`,`radiusAxis`,`angleAxis`,`singleAxis`,`parallelAxis`,`radar`];t&&n.push(`valueAxis`,`categoryAxis`,`logAxis`,`timeAxis`),Em(n,function(t){Em(Pm(e[t]),function(e){e&&(Mm(e,`axisLabel`),Mm(e.axisPointer,`label`))})}),Em(Pm(e.parallel),function(e){var t=e&&e.parallelAxisDefault;Mm(t,`axisLabel`),Mm(t&&t.axisPointer,`label`)}),Em(Pm(e.calendar),function(e){Am(e,`itemStyle`),Mm(e,`dayLabel`),Mm(e,`monthLabel`),Mm(e,`yearLabel`)}),Em(Pm(e.radar),function(e){Mm(e,`name`),e.name&&e.axisName==null&&(e.axisName=e.name,delete e.name),e.nameGap!=null&&e.axisNameGap==null&&(e.axisNameGap=e.nameGap,delete e.nameGap)}),Em(Pm(e.geo),function(e){Dm(e)&&(Nm(e),Em(Pm(e.regions),function(e){Nm(e)}))}),Em(Pm(e.timeline),function(e){Nm(e),Am(e,`label`),Am(e,`itemStyle`),Am(e,`controlStyle`,!0);var t=e.data;L(t)&&j(t,function(e){V(e)&&(Am(e,`label`),Am(e,`itemStyle`))})}),Em(Pm(e.toolbox),function(e){Am(e,`iconStyle`),Em(e.feature,function(e){Am(e,`iconStyle`)})}),Mm(Fm(e.axisPointer),`label`),Mm(Fm(e.tooltip).axisPointer,`label`)}function Lm(e){e&&j(Rm,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Rm=[[`x`,`left`],[`y`,`top`],[`x2`,`right`],[`y2`,`bottom`]],zm=[`grid`,`geo`,`parallel`,`legend`,`toolbox`,`title`,`visualMap`,`dataZoom`,`timeline`],Bm=[[`borderRadius`,`barBorderRadius`],[`borderColor`,`barBorderColor`],[`borderWidth`,`barBorderWidth`]];function Vm(e){var t=e&&e.itemStyle;if(t)for(var n=0;n<Bm.length;n++){var r=Bm[n][1],i=Bm[n][0];t[r]!=null&&(t[i]=t[r])}}function Hm(e){e&&e.alignTo===`edge`&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function Um(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Wm(e,t){if(e)for(var n=0;n<e.length;n++)t(e[n]),e[n]&&Wm(e[n].children,t)}function Gm(e,t){Im(e,t),e.series=ja(e.series),j(e.series,function(e){if(V(e)){var t=e.type;if(t===`line`)e.clipOverflow!=null&&(e.clip=e.clipOverflow);else if(t===`pie`||t===`gauge`){if(e.clockWise!=null&&(e.clockwise=e.clockWise),Hm(e.label),(i=e.data)&&!H(i))for(var n=0;n<i.length;n++)Hm(i[n]);e.hoverOffset!=null&&(e.emphasis=e.emphasis||{},(e.emphasis.scaleSize=null)&&(e.emphasis.scaleSize=e.hoverOffset))}else if(t===`gauge`){var r=function(e,t){for(var n=t.split(`,`),r=e,i=0;i<n.length&&(r&&=r[n[i]])!=null;i++);return r}(e,`pointer.color`);r!=null&&function(e,t,n,r){for(var i,a=t.split(`,`),o=e,s=0;s<a.length-1;s++)o[i=a[s]]??(o[i]={}),o=o[i];(r||o[a[s]]==null)&&(o[a[s]]=n)}(e,`itemStyle.color`,r)}else if(t===`bar`){var i;if(Vm(e),Vm(e.backgroundStyle),Vm(e.emphasis),(i=e.data)&&!H(i))for(n=0;n<i.length;n++)typeof i[n]==`object`&&(Vm(i[n]),Vm(i[n]&&i[n].emphasis))}else if(t===`sunburst`){var a=e.highlightPolicy;a&&(e.emphasis=e.emphasis||{},e.emphasis.focus||(e.emphasis.focus=a)),Um(e),Wm(e.data,Um)}else t===`graph`||t===`sankey`?function(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus??(e.emphasis.focus=`adjacency`))}(e):t===`map`&&(e.mapType&&!e.map&&(e.map=e.mapType),e.mapLocation&&D(e,e.mapLocation));e.hoverAnimation!=null&&(e.emphasis=e.emphasis||{},e.emphasis&&e.emphasis.scale==null&&(e.emphasis.scale=e.hoverAnimation)),Lm(e)}}),e.dataRange&&(e.visualMap=e.dataRange),j(zm,function(t){var n=e[t];n&&(L(n)||(n=[n]),j(n,function(e){Lm(e)}))})}var Km=go(function(e){var t=K();e.eachSeries(function(e){var n=e.get(`stack`);if(n){var r=t.get(n)||t.set(n,[]),i=e.getData(),a={stackResultDimension:i.getCalculationInfo(`stackResultDimension`),stackedOverDimension:i.getCalculationInfo(`stackedOverDimension`),stackedDimension:i.getCalculationInfo(`stackedDimension`),stackedByDimension:i.getCalculationInfo(`stackedByDimension`),isStackedByIndex:i.getCalculationInfo(`isStackedByIndex`),data:i,seriesModel:e};if(!a.stackedDimension||!a.isStackedByIndex&&!a.stackedByDimension)return;r.push(a)}}),t.each(function(e){e.length!==0&&((e[0].seriesModel.get(`stackOrder`)||`seriesAsc`)===`seriesDesc`&&e.reverse(),j(e,function(t,n){t.data.setCalculationInfo(`stackedOnSeries`,n>0?e[n-1].seriesModel:null)}),function(e){j(e,function(t,n){var r=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,c=t.seriesModel.get(`stackStrategy`)||`samesign`;o.modify(a,function(a,l,u){var d,f,p=o.get(t.stackedDimension,u);if(isNaN(p))return i;s?f=o.getRawIndex(u):d=o.get(t.stackedByDimension,u);for(var m=NaN,h=n-1;h>=0;h--){var g=e[h];if(s||(f=g.data.rawIndexOf(g.stackedByDimension,d)),f>=0){var _=g.data.getByRawIndex(g.stackResultDimension,f);if(c===`all`||c===`positive`&&_>0||c===`negative`&&_<0||c===`samesign`&&p>=0&&_>0||c===`samesign`&&p<=0&&_<0){p=da(p,_),m=_;break}}}return r[0]=p,r[1]=m,r})})}(e))})}),qm,Jm,Ym,Xm,Zm,Qm,$m=function(e){this.data=e.data||(e.sourceFormat===`keyedColumns`?{}:[]),this.sourceFormat=e.sourceFormat||`unknown`,this.seriesLayoutBy=e.seriesLayoutBy||`column`,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var t=this.dimensionsDefine=e.dimensionsDefine;if(t)for(var n=0;n<t.length;n++){var r=t[n];r.type==null&&um(this,n)===am.Must&&(r.type=`ordinal`)}};function eh(e){return e instanceof $m}function th(e,t,n){n||=rh(e);var r=t.seriesLayoutBy,i=function(e,t,n,r,i){var a,o;if(!e)return{dimensionsDefine:ih(i),startIndex:o,dimensionsDetectedCount:a};if(t===`arrayRows`){var s=e;r===`auto`||r==null?ah(function(e){e!=null&&e!==`-`&&(z(e)?o??=1:o=0)},n,s,10):o=B(r)?r:+!!r,i||o!==1||(i=[],ah(function(e,t){i[t]=e==null?``:e+``},n,s,1/0)),a=i?i.length:n===`row`?s.length:s[0]?s[0].length:null}else if(t===`objectRows`)i||=function(e){for(var t,n=0;n<e.length&&!(t=e[n++]););if(t)return F(t)}(e);else if(t===`keyedColumns`)i||(i=[],j(e,function(e,t){i.push(t)}));else if(t===`original`){var c=Pa(e[0]);a=L(c)&&c.length||1}return{startIndex:o,dimensionsDefine:ih(i),dimensionsDetectedCount:a}}(e,n,r,t.sourceHeader,t.dimensions);return new $m({data:e,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:w(t)})}function nh(e){return new $m({data:e,sourceFormat:H(e)?zc:Fc})}function rh(e){var t=`unknown`;if(H(e))t=zc;else if(L(e)){e.length===0&&(t=Ic);for(var n=0,r=e.length;n<r;n++){var i=e[n];if(i!=null){if(L(i)||H(i)){t=Ic;break}if(V(i)){t=Lc;break}}}}else if(V(e)){for(var a in e)if(q(e,a)&&A(e[a])){t=Rc;break}}return t}function ih(e){if(e){var t=K();return M(e,function(e,n){var r={name:(e=V(e)?e:{name:e}).name,displayName:e.displayName,type:e.type};if(r.name==null)return r;r.name+=``,r.displayName??=r.name;var i=t.get(r.name);return i?r.name+=`-`+i.count++:t.set(r.name,{count:1}),r})}}function ah(e,t,n,r){if(t===`row`)for(var i=0;i<n.length&&i<r;i++)e(n[i]?n[i][0]:null,i);else{var a=n[0]||[];for(i=0;i<a.length&&i<r;i++)e(a[i],i)}}function oh(e){var t=e.sourceFormat;return t===`objectRows`||t===`keyedColumns`}var sh=function(){function e(e,t){var n=eh(e)?e:nh(e);this._source=n;var r=this._data=n.data,i=n.sourceFormat;n.seriesLayoutBy,i===`typedArray`&&(this._offset=0,this._dimSize=t,this._data=r),Qm(this,r,n)}var t;return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(e,t){},e.prototype.appendData=function(e){},e.prototype.clean=function(){},e.protoInitialize=((t=e.prototype).pure=!1,void(t.persistent=!0)),e.internalField=function(){var e;Qm=function(e,i,a){var o=a.sourceFormat,s=a.seriesLayoutBy,c=a.startIndex,l=a.dimensionsDefine;E(e,Zm[vh(o,s)]),o===`typedArray`?(e.getItem=t,e.count=r,e.fillStorage=n):(e.getItem=I(dh(o,s),null,i,c,l),e.count=I(mh(o,s),null,i,c,l))};var t=function(e,t){e-=this._offset,t||=[];for(var n=this._data,r=this._dimSize,i=r*e,a=0;a<r;a++)t[a]=n[i+a];return t},n=function(e,t,n,r){for(var i=this._data,a=this._dimSize,o=0;o<a;o++){for(var s=r[o],c=s[0]==null?1/0:s[0],l=s[1]==null?-1/0:s[1],u=t-e,d=n[o],f=0;f<u;f++){var p=i[f*a+o];d[e+f]=p,p<c&&(c=p),p>l&&(l=p)}s[0]=c,s[1]=l}},r=function(){return this._data?this._data.length/this._dimSize:0};function i(e){for(var t=0;t<e.length;t++)this._data.push(e[t])}(e={})[Ic+`_`+Bc]={pure:!0,appendData:i},e[Ic+`_row`]={pure:!0,appendData:function(){throw Error(`Do not support appendData when set seriesLayoutBy: "row".`)}},e[Lc]={pure:!0,appendData:i},e[Rc]={pure:!0,appendData:function(e){var t=this._data;j(e,function(e,n){for(var r=t[n]||(t[n]=[]),i=0;i<(e||[]).length;i++)r.push(e[i])})}},e[Fc]={appendData:i},e[zc]={persistent:!1,pure:!0,appendData:function(e){this._data=e},clean:function(){this._offset+=this.count(),this._data=null}},Zm=e}(),e}(),ch=function(e){L(e)||Da(`series.data or dataset.source must be an array.`)};(qm={})[Ic+`_`+Bc]=ch,qm[Ic+`_row`]=ch,qm[Lc]=ch,qm[Rc]=function(e,t){for(var n=0;n<t.length;n++)t[n].name??Da(`dimension name must not be null/undefined.`)},qm[Fc]=ch;var lh=function(e,t,n,r){return e[r]},uh=((Jm={})[Ic+`_`+Bc]=function(e,t,n,r){return e[r+t]},Jm[Ic+`_row`]=function(e,t,n,r,i){r+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var c=o[s];a[s]=c?c[r]:null}return a},Jm[Lc]=lh,Jm[Rc]=function(e,t,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name,c=s==null?null:e[s];a[o]=c?c[r]:null}return a},Jm[Fc]=lh,Jm);function dh(e,t){return uh[vh(e,t)]}var fh=function(e,t,n){return e.length},ph=((Ym={})[Ic+`_`+Bc]=function(e,t,n){return Math.max(0,e.length-t)},Ym[Ic+`_row`]=function(e,t,n){var r=e[0];return r?Math.max(0,r.length-t):0},Ym[Lc]=fh,Ym[Rc]=function(e,t,n){var r=n[0].name,i=r==null?null:e[r];return i?i.length:0},Ym[Fc]=fh,Ym);function mh(e,t){return ph[vh(e,t)]}var hh=function(e,t,n){return e[t]},gh=((Xm={})[Ic]=hh,Xm[Lc]=function(e,t,n){return e[n]},Xm[Rc]=hh,Xm[Fc]=function(e,t,n){var r=Pa(e);return r instanceof Array?r[t]:r},Xm[zc]=hh,Xm);function _h(e){return gh[e]}function vh(e,t){return e===`arrayRows`?e+`_`+t:e}function yh(e,t,n){if(e){var r=e.getRawDataItem(t);if(r!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=e.getDimensionIndex(n),s=i.getDimensionProperty(o);return _h(a)(r,o,s)}var c=r;return a===`original`&&(c=Pa(r)),c}}}var bh=/\{@(.+?)\}/g,xh=function(){function e(){}return e.prototype.getDataParams=function(e,t){var n=this.getData(t),r=this.getRawValue(e,t),i=n.getRawIndex(e),a=n.getName(e),o=n.getRawDataItem(e),s=n.getItemVisual(e,`style`),c=s&&s[n.getItemVisual(e,`drawType`)||`fill`],l=s&&s.stroke,u=this.mainType,d=u===`series`,f=n.userOutput&&n.userOutput.get();return{componentType:u,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:i,data:o,dataType:t,value:r,color:c,borderColor:l,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:[`seriesName`,`name`,`value`]}},e.prototype.getFormattedLabel=function(e,t,n,r,i,a){t||=`normal`;var o=this.getData(n),s=this.getDataParams(e,n);return a&&(s.value=a.interpolatedValue),r!=null&&L(s.value)&&(s.value=s.value[r]),i||=o.getItemModel(e).get(t===`normal`?[`label`,`formatter`]:[t,`label`,`formatter`]),R(i)?(s.status=t,s.dimensionIndex=r,i(s)):z(i)?wp(i,s).replace(bh,function(t,n){var r=n.length,i=n;i.charAt(0)===`[`&&i.charAt(r-1)===`]`&&(i=+i.slice(1,r-1));var s=yh(o,e,i);if(a&&L(a.interpolatedValue)){var c=o.getDimensionIndex(i);c>=0&&(s=a.interpolatedValue[c])}return s==null?``:s+``}):void 0},e.prototype.getRawValue=function(e,t){return yh(this.getData(t),e)},e.prototype.formatTooltip=function(e,t,n){},e}();function Sh(e){var t,n;return V(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function Ch(e){return new wh(e)}var wh=function(){function e(e){e||={},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return e.prototype.perform=function(e){var t,n=this._upstream,r=e&&e.skip;if(this._dirty&&n){var i=this.context;i.data=i.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!r&&(t=this._plan(this.context));var a,o=u(this._modBy),s=this._modDataCount||0,c=u(e&&e.modBy),l=e&&e.modDataCount||0;function u(e){return!(e>=1)&&(e=1),e}o===c&&s===l||(t=`reset`),(this._dirty||t===`reset`)&&(this._dirty=!1,a=this._doReset(r)),this._modBy=c,this._modDataCount=l;var d=e&&e.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var f=this._dueIndex,p=Math.min(d==null?1/0:this._dueIndex+d,this._dueEnd);if(!r&&(a||f<p)){var m=this._progress;if(L(m))for(var h=0;h<m.length;h++)this._doProgress(m[h],f,p,c,l);else this._doProgress(m,f,p,c,l)}this._dueIndex=p;var g=this._settedOutputEnd==null?p:this._settedOutputEnd;this._outputDueEnd=g}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd==null?this._dueEnd:this._settedOutputEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(e,t,n,r,i){Th.reset(t,n,r,i),this._callingProgress=e,this._callingProgress({start:t,end:n,count:n-t,next:Th.next},this.context)},e.prototype._doReset=function(e){var t,n;this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null,!e&&this._reset&&((t=this._reset(this.context))&&t.progress&&(n=t.forceFirstProgress,t=t.progress),L(t)&&!t.length&&(t=null)),this._progress=t,this._modBy=this._modDataCount=null;var r=this._downstream;return r&&r.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(e){(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},e.prototype.dispose=function(){this._disposed||=(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},e}(),Th=function(){var e,t,n,r,i,a={reset:function(c,l,u,d){t=c,e=l,n=u,r=d,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var a=t%i*n+Math.ceil(t/i),o=t>=e?null:a<r?a:t;return t++,o}}();function Eh(e,t){var n=t&&t.type;return n===`ordinal`?e:(n!==`time`||B(e)||e==null||e===`-`||(e=+ga(e)),e==null||e===``?NaN:Number(e))}K({number:function(e){return parseFloat(e)},time:function(e){return+ga(e)},trim:function(e){return z(e)?ue(e):e}});var Dh={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},Oh=(function(){function e(e,t){B(t)||Oa(``),this._opFn=Dh[e],this._rvalFloat=ba(t)}e.prototype.evaluate=function(e){return B(e)?this._opFn(e,this._rvalFloat):this._opFn(ba(e),this._rvalFloat)}}(),function(){function e(e,t){var n=e===`desc`;this._resultLT=n?1:-1,t??=n?`min`:`max`,this._incomparable=t===`min`?-1/0:1/0}return e.prototype.evaluate=function(e,t){var n=B(e)?e:ba(e),r=B(t)?t:ba(t),i=isNaN(n),a=isNaN(r);if(i&&(n=this._incomparable),a&&(r=this._incomparable),i&&a){var o=z(e),s=z(t);o&&(n=s?e:0),s&&(r=o?t:0)}return n<r?this._resultLT:n>r?-this._resultLT:0},e}());(function(){function e(e,t){this._rval=t,this._isEQ=e,this._rvalTypeof=typeof t,this._rvalFloat=ba(t)}e.prototype.evaluate=function(e){var t=e===this._rval;if(!t){var n=typeof e;n===this._rvalTypeof||n!==`number`&&this._rvalTypeof!==`number`||(t=ba(e)===this._rvalFloat)}return this._isEQ?t:!t}})();function kh(e){var t=``,n=-1/0,r=-1/0,i=1/0,a=1/0;return e&&(e.g!=null&&(t+=`G`+e.g,n=e.g),e.ge!=null&&(t+=`GE`+e.ge,r=e.ge),e.l!=null&&(t+=`L`+e.l,i=e.l),e.le!=null&&(t+=`LE`+e.le,a=e.le)),{key:t,g:n,ge:r,l:i,le:a}}function Ah(e,t){return t>e.g&&t>=e.ge&&t<e.l&&t<=e.le}var jh=function(){function e(){}return e.prototype.getRawData=function(){throw Error(`not supported`)},e.prototype.getRawDataItem=function(e){throw Error(`not supported`)},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(e){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(e,t){},e.prototype.retrieveValueFromItem=function(e,t){},e.prototype.convertValue=function(e,t){return Eh(e,t)},e}();function Mh(e){return Rh(e.sourceFormat)||Oa(``),e.data}function Nh(e){var t=e.sourceFormat,n=e.data;if(Rh(t)||Oa(``),t===`arrayRows`){for(var r=[],i=0,a=n.length;i<a;i++)r.push(n[i].slice());return r}if(t===`objectRows`){for(r=[],i=0,a=n.length;i<a;i++)r.push(E({},n[i]));return r}}function Ph(e,t,n){if(n!=null)return B(n)||!isNaN(n)&&!q(t,n)?e[n]:q(t,n)?t[n]:void 0}function Fh(e){return w(e)}var Ih=K();function Lh(e,t,n,r){t.length||Oa(``),V(e)||Oa(``);var i=e.type,a=Ih.get(i);a||Oa(``);var o=M(t,function(e){return function(e,t){var n=new jh,r=e.data,i=n.sourceFormat=e.sourceFormat,a=e.startIndex;e.seriesLayoutBy!==`column`&&Oa(``);var o=[],s={},c=e.dimensionsDefine;if(c)j(c,function(e,t){var n=e.name,r={index:t,name:n,displayName:e.displayName};o.push(r),n!=null&&(q(s,n)&&Oa(``),s[n]=r)});else for(var l=0;l<e.dimensionsDetectedCount;l++)o.push({index:l});var u=dh(i,Bc);t.__isBuiltIn&&(n.getRawDataItem=function(e){return u(r,a,o,e)},n.getRawData=I(Mh,null,e)),n.cloneRawData=I(Nh,null,e),n.count=I(mh(i,Bc),null,r,a,o);var d=_h(i);n.retrieveValue=function(e,t){return f(u(r,a,o,e),t)};var f=n.retrieveValueFromItem=function(e,t){if(e!=null){var n=o[t];return n?d(e,t,n.name):void 0}};return n.getDimensionInfo=I(Ph,null,o,s),n.cloneAllDimensionInfo=I(Fh,null,o),n}(e,a)});return M(ja(a.transform({upstream:o[0],upstreamList:o,config:w(e.config)})),function(e,n){var r;V(e)||Oa(``),e.data||Oa(``),Rh(rh(e.data))||Oa(``);var i=t[0];if(i&&n===0&&!e.dimensions){var a=i.startIndex;a&&(e.data=i.data.slice(0,a).concat(e.data)),r={seriesLayoutBy:Bc,sourceHeader:a,dimensions:i.metaRawOption.dimensions}}else r={seriesLayoutBy:Bc,sourceHeader:0,dimensions:e.dimensions};return th(e.data,r,null)})}function Rh(e){return e===`arrayRows`||e===`objectRows`}var zh,Bh=typeof Uint32Array>`u`?Array:Uint32Array,Vh=typeof Uint16Array>`u`?Array:Uint16Array,Hh=typeof Int32Array>`u`?Array:Int32Array,Uh=typeof Float64Array>`u`?Array:Float64Array,Wh={float:Uh,int:Hh,ordinal:Array,number:Array,time:Uh};function Gh(e){return e>65535?Bh:Vh}function Kh(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function qh(e,t,n,r,i){var a=Wh[n||`float`];if(i){var o=e[t],s=o&&o.length;if(s!==r){for(var c=new a(r),l=0;l<s;l++)c[l]=o[l];e[t]=c}}else e[t]=new a(r)}var Jh=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=K()}return e.prototype.initData=function(e,t,n){this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var r=e.getSource(),i=this.defaultDimValueGetter=zh[r.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[],oh(r),this._dimensions=M(t,function(e){return{type:e.type,property:e.property}}),this._initDataFromProvider(0,e.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(e,t){var n=this._calcDimNameToIdx,r=this._dimensions,i=n.get(e);if(i!=null){if(r[i].type===t)return i}else i=r.length;return r[i]={type:t},n.set(e,i),this._chunks[i]=new Wh[t||`float`](this._rawCount),this._rawExtent[i]=[1/0,-1/0],i},e.prototype.collectOrdinalMeta=function(e,t){var n=this._chunks[e],r=this._dimensions[e],i=this._rawExtent,a=r.ordinalOffset||0,o=n.length;a===0&&(i[e]=[1/0,-1/0]);for(var s=i[e],c=a;c<o;c++){var l=n[c]=t.parseAndCollect(n[c]);isNaN(l)||(s[0]=Math.min(l,s[0]),s[1]=Math.max(l,s[1]))}r.ordinalMeta=t,r.ordinalOffset=o,r.type=`ordinal`},e.prototype.getOrdinalMeta=function(e){return this._dimensions[e].ordinalMeta},e.prototype.getDimensionProperty=function(e){var t=this._dimensions[e];return t&&t.property},e.prototype.appendData=function(e){var t=this._provider,n=this.count();t.appendData(e);var r=t.count();return t.persistent||(r+=n),n<r&&this._initDataFromProvider(n,r,!0),[n,r]},e.prototype.appendValues=function(e,t){for(var n=this._chunks,r=this._dimensions,i=r.length,a=this._rawExtent,o=this.count(),s=o+Math.max(e.length,t||0),c=0;c<i;c++)qh(n,c,(p=r[c]).type,s,!0);for(var l=[],u=o;u<s;u++)for(var d=u-o,f=0;f<i;f++){var p=r[f],m=zh.arrayRows.call(this,e[d]||l,p.property,d,f);n[f][u]=m;var h=a[f];m<h[0]&&(h[0]=m),m>h[1]&&(h[1]=m)}return this._rawCount=this._count=s,{start:o,end:s}},e.prototype._initDataFromProvider=function(e,t,n){for(var r=this._provider,i=this._chunks,a=this._dimensions,o=a.length,s=this._rawExtent,c=M(a,function(e){return e.property}),l=0;l<o;l++){var u=a[l];s[l]||(s[l]=Qa()),qh(i,l,u.type,t,n)}if(r.fillStorage)r.fillStorage(e,t,i,s);else for(var d=[],f=e;f<t;f++){d=r.getItem(f,d);for(var p=0;p<o;p++){var m=i[p],h=this._dimValueGetter(d,c[p],f,p);m[f]=h;var g=s[p];h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}!r.persistent&&r.clean&&r.clean(),this._rawCount=this._count=t,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(e,t){if(!(t>=0&&t<this._count))return NaN;var n=this._chunks[e];return n?n[this.getRawIndex(t)]:NaN},e.prototype.getValues=function(e,t){var n=[],r=[];if(t==null){t=e,e=[];for(var i=0;i<this._dimensions.length;i++)r.push(i)}else r=e;i=0;for(var a=r.length;i<a;i++)n.push(this.get(r[i],t));return n},e.prototype.getByRawIndex=function(e,t){if(!(t>=0&&t<this._rawCount))return NaN;var n=this._chunks[e];return n?n[t]:NaN},e.prototype.getSum=function(e){var t=0;if(this._chunks[e])for(var n=0,r=this.count();n<r;n++){var i=this.get(e,n);isNaN(i)||(t+=i)}return t},e.prototype.getMedian=function(e){var t=[];this.each([e],function(e){isNaN(e)||t.push(e)}),sa(t);var n=this.count();return n===0?0:n%2==1?t[(n-1)/2]:(t[n/2]+t[n/2-1])/2},e.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var t=this._indices,n=t[e];if(n!=null&&n<this._count&&n===e)return e;for(var r=0,i=this._count-1;r<=i;){var a=(r+i)/2|0;if(t[a]<e)r=a+1;else{if(!(t[a]>e))return a;i=a-1}}return-1},e.prototype.getIndices=function(){var e,t=this._indices;if(t){var n=t.constructor,r=this._count;if(n===Array){e=new n(r);for(var i=0;i<r;i++)e[i]=t[i]}else e=new n(t.buffer,0,r)}else for(e=new(n=(Gh(this._rawCount)))(this.count()),i=0;i<e.length;i++)e[i]=i;return e},e.prototype.filter=function(e,t){if(!this._count)return this;for(var n=this.clone(),r=n.count(),i=new(Gh(n._rawCount))(r),a=[],o=e.length,s=0,c=e[0],l=n._chunks,u=0;u<r;u++){var d=void 0,f=n.getRawIndex(u);if(o===0)d=t(u);else if(o===1)d=t(l[c][f],u);else{for(var p=0;p<o;p++)a[p]=l[e[p]][f];a[p]=u,d=t.apply(null,a)}d&&(i[s++]=f)}return s<r&&(n._indices=i),n._count=s,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(e){var t=this.clone(),n=t._count;if(!n)return this;var r=F(e),i=r.length;if(!i)return this;var a=t.count(),o=new(Gh(t._rawCount))(a),s=0,c=r[0],l=e[c][0],u=e[c][1],d=t._chunks,f=!1;if(!t._indices){var p=0;if(i===1){for(var m=d[r[0]],h=0;h<n;h++)((y=m[h])>=l&&y<=u||isNaN(y))&&(o[s++]=p),p++;f=!0}else if(i===2){m=d[r[0]];var g=d[r[1]],_=e[r[1]][0],v=e[r[1]][1];for(h=0;h<n;h++){var y=m[h],b=g[h];(y>=l&&y<=u||isNaN(y))&&(b>=_&&b<=v||isNaN(b))&&(o[s++]=p),p++}f=!0}}if(!f){if(i===1)for(h=0;h<a;h++){var x=t.getRawIndex(h);((y=d[r[0]][x])>=l&&y<=u||isNaN(y))&&(o[s++]=x)}else for(h=0;h<a;h++){for(var S=!0,C=(x=t.getRawIndex(h),0);C<i;C++){var w=r[C];((y=d[w][x])<e[w][0]||y>e[w][1])&&(S=!1)}S&&(o[s++]=t.getRawIndex(h))}}return s<a&&(t._indices=o),t._count=s,t._extent=[],t._updateGetRawIdx(),t},e.prototype.map=function(e,t){var n=this.clone(e);return this._updateDims(n,e,t),n},e.prototype.modify=function(e,t){this._updateDims(this,e,t)},e.prototype._updateDims=function(e,t,n){for(var r=e._chunks,i=[],a=t.length,o=e.count(),s=[],c=e._rawExtent,l=0;l<t.length;l++)c[t[l]]=Qa();for(var u=0;u<o;u++){for(var d=e.getRawIndex(u),f=0;f<a;f++)s[f]=r[t[f]][d];s[a]=u;var p=n&&n.apply(null,s);if(p!=null)for(typeof p!=`object`&&(i[0]=p,p=i),l=0;l<p.length;l++){var m=t[l],h=p[l],g=c[m],_=r[m];_&&(_[d]=h),h<g[0]&&(g[0]=h),h>g[1]&&(g[1]=h)}}},e.prototype.lttbDownSample=function(e,t){var n,r,i,a=this.clone([e],!0),o=a._chunks[e],s=this.count(),c=0,l=Math.floor(1/t),u=this.getRawIndex(0),d=new(Gh(this._rawCount))(Math.min(2*(Math.ceil(s/l)+2),s));d[c++]=u;for(var f=1;f<s-1;f+=l){for(var p=Math.min(f+l,s-1),m=Math.min(f+2*l,s),h=(m+p)/2,g=0,_=p;_<m;_++){var v=o[T=this.getRawIndex(_)];isNaN(v)||(g+=v)}g/=m-p;var y=f,b=Math.min(f+l,s),x=f-1,S=o[u];n=-1,i=y;var C=-1,w=0;for(_=y;_<b;_++){var T;v=o[T=this.getRawIndex(_)],isNaN(v)?(w++,C<0&&(C=T)):(r=Math.abs((x-h)*(v-S)-(x-_)*(g-S)))>n&&(n=r,i=T)}w>0&&w<b-y&&(d[c++]=Math.min(C,i),i=Math.max(C,i)),d[c++]=i,u=i}return d[c++]=this.getRawIndex(s-1),a._count=c,a._indices=d,a.getRawIndex=this._getRawIdx,a},e.prototype.minmaxDownSample=function(e,t){for(var n=this.clone([e],!0),r=n._chunks,i=Math.floor(1/t),a=r[e],o=this.count(),s=new(Gh(this._rawCount))(2*Math.ceil(o/i)),c=0,l=0;l<o;l+=i){var u=l,d=a[this.getRawIndex(u)],f=l,p=a[this.getRawIndex(f)],m=i;l+i>o&&(m=o-l);for(var h=0;h<m;h++){var g=a[this.getRawIndex(l+h)];g<d&&(d=g,u=l+h),g>p&&(p=g,f=l+h)}var _=this.getRawIndex(u),v=this.getRawIndex(f);u<f?(s[c++]=_,s[c++]=v):(s[c++]=v,s[c++]=_)}return n._count=c,n._indices=s,n._updateGetRawIdx(),n},e.prototype.downSample=function(e,t,n,r){for(var i=this.clone([e],!0),a=i._chunks,o=[],s=Math.floor(1/t),c=a[e],l=this.count(),u=i._rawExtent[e]=[1/0,-1/0],d=new(Gh(this._rawCount))(Math.ceil(l/s)),f=0,p=0;p<l;p+=s){s>l-p&&(s=l-p,o.length=s);for(var m=0;m<s;m++){var h=this.getRawIndex(p+m);o[m]=c[h]}var g=n(o),_=this.getRawIndex(Math.min(p+r(o,g)||0,l-1));c[_]=g,g<u[0]&&(u[0]=g),g>u[1]&&(u[1]=g),d[f++]=_}return i._count=f,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(e,t){if(this._count)for(var n=e.length,r=this._chunks,i=0,a=this.count();i<a;i++){var o=this.getRawIndex(i);switch(n){case 0:t(i);break;case 1:t(r[e[0]][o],i);break;case 2:t(r[e[0]][o],r[e[1]][o],i);break;default:for(var s=0,c=[];s<n;s++)c[s]=r[e[s]][o];c[s]=i,t.apply(null,c)}}},e.prototype.getDataExtent=function(e,t){var n=this._chunks[e],r=[1/0,-1/0];if(!n)return r;var i=this.count();if(!this._indices&&!t)return this._rawExtent[e].slice();var a=this._extent,o=a[e]||(a[e]={}),s=kh(t),c=s.key,l=o[c];if(l)return l.slice();for(var u=r[0],d=r[1],f=0;f<i;f++){var p=n[this.getRawIndex(f)];t&&!Ah(s,p)||(p<u&&(u=p),p>d&&(d=p))}return o[c]=[u,d]},e.prototype.getRawDataItem=function(e){var t=this.getRawIndex(e);if(this._provider.persistent)return this._provider.getItem(t);for(var n=[],r=this._chunks,i=0;i<r.length;i++)n.push(r[i][t]);return n},e.prototype.clone=function(t,n){var r=new e,i=this._chunks,a=t&&N(t,function(e,t){return e[t]=!0,e},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?Kh(i[o]):i[o];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},e.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=w(this._extent),e._rawExtent=w(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,t=void 0;if(e===Array){var n=this._indices.length;t=new e(n);for(var r=0;r<n;r++)t[r]=this._indices[r]}else t=new e(this._indices);return t}return null},e.prototype._getRawIdxIdentity=function(e){return e},e.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function e(e,t,n,r){return Eh(e[r],this._dimensions[r])}zh={arrayRows:e,objectRows:function(e,t,n,r){return Eh(e[t],this._dimensions[r])},keyedColumns:e,original:function(e,t,n,r){var i=e&&(e.value==null?e:e.value);return Eh(i instanceof Array?i[r]:i,this._dimensions[r])},typedArray:function(e,t,n,r){return e[r]}}}(),e}(),Yh=function(){function e(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(e,t){this._sourceList=e,this._upstreamSignList=t,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+`_`+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var e,t,n=this._sourceHost,r=this._getUpstreamSourceManagers(),i=!!r.length;if(Xh(n)){var a=n,o=void 0,s=void 0,c=void 0;if(i){var l=r[0];l.prepareSource(),o=(c=l.getSource()).data,s=c.sourceFormat,t=[l._getVersionSign()]}else s=H(o=a.get(`data`,!0))?zc:Fc,t=[];var u=this._getSourceMetaRawOption()||{},d=c&&c.metaRawOption||{},f=G(u.seriesLayoutBy,d.seriesLayoutBy)||null,p=G(u.sourceHeader,d.sourceHeader),m=G(u.dimensions,d.dimensions);e=f!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m?[th(o,{seriesLayoutBy:f,sourceHeader:p,dimensions:m},s)]:[]}else{var h=n;if(i){var g=this._applyTransform(r);e=g.sourceList,t=g.upstreamSignList}else e=[th(h.get(`source`,!0),this._getSourceMetaRawOption(),null)],t=[]}this._setLocalSource(e,t)},e.prototype._applyTransform=function(e){var t,n=this._sourceHost,r=n.get(`transform`,!0),i=n.get(`fromTransformResult`,!0);i!=null&&e.length!==1&&Zh(``);var a,o=[],s=[];return j(e,function(e){e.prepareSource();var t=e.getSource(i||0);i==null||t||Zh(``),o.push(t),s.push(e._getVersionSign())}),r?t=function(e,t){var n=ja(e),r=n.length;r||Oa(``);for(var i=0,a=r;i<a;i++)t=Lh(n[i],t),i!==a-1&&(t.length=Math.max(t.length,1));return t}(r,o,n.componentIndex):i!=null&&(t=[(a=o[0],new $m({data:a.data,sourceFormat:a.sourceFormat,seriesLayoutBy:a.seriesLayoutBy,dimensionsDefine:w(a.dimensionsDefine),startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount}))]),{sourceList:t,upstreamSignList:s}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),t=0;t<e.length;t++){var n=e[t];if(n._isDirty()||this._upstreamSignList[t]!==n._getVersionSign())return!0}},e.prototype.getSource=function(e){e||=0;var t=this._sourceList[e];if(!t){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(e)}return t},e.prototype.getSharedDataStore=function(e){var t=e.makeStoreSchema();return this._innerGetDataStore(t.dimensions,e.source,t.hash)},e.prototype._innerGetDataStore=function(e,t,n){var r=this._storeList,i=r[0];i||=r[0]={};var a=i[n];if(!a){var o=this._getUpstreamSourceManagers()[0];Xh(this._sourceHost)&&o?a=o._innerGetDataStore(e,t,n):(a=new Jh).initData(new sh(t,e.length),e),i[n]=a}return a},e.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Xh(e)){var t=lm(e);return t?[t.getSourceManager()]:[]}return M(function(e){return e.get(`transform`,!0)||e.get(`fromTransformResult`,!0)?Ja(e.ecModel,`dataset`,{index:e.get(`fromDatasetIndex`,!0),id:e.get(`fromDatasetId`,!0)},qa).models:[]}(e),function(e){return e.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var e,t,n,r=this._sourceHost;if(Xh(r))e=r.get(`seriesLayoutBy`,!0),t=r.get(`sourceHeader`,!0),n=r.get(`dimensions`,!0);else if(!this._getUpstreamSourceManagers().length){var i=r;e=i.get(`seriesLayoutBy`,!0),t=i.get(`sourceHeader`,!0),n=i.get(`dimensions`,!0)}return{seriesLayoutBy:e,sourceHeader:t,dimensions:n}},e}();function Xh(e){return e.mainType===`series`}function Zh(e){throw Error(e)}function Qh(e){var t=e.lineHeight;return t==null?`line-height:1`:`line-height:`+Je(t+``)+`px`}function $h(e,t){var n=e.color||Xp.color.tertiary,r=e.fontSize||12,i=e.fontWeight||`400`,a=e.color||Xp.color.secondary,o=e.fontSize||14,s=e.fontWeight||`900`;return t===`html`?{nameStyle:`font-size:`+Je(r+``)+`px;color:`+Je(n)+`;font-weight:`+Je(i+``),valueStyle:`font-size:`+Je(o+``)+`px;color:`+Je(a)+`;font-weight:`+Je(s+``)}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var eg=[0,10,20,30],tg=[``,`
|
|
9
|
+
`,`
|
|
10
|
+
|
|
11
|
+
`,`
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
`];function ng(e,t){return t.type=e,t}function rg(e){return e.type===`section`}function ig(e){return rg(e)?og:sg}function ag(e){if(rg(e)){var t=0,n=e.blocks.length,r=n>1||n>0&&!e.noHeader;return j(e.blocks,function(e){var n=ag(e);n>=t&&(t=n+ +(r&&(!n||rg(e)&&!e.noHeader)))}),t}return 0}function og(e,t,n,r){var i,a=t.noHeader,o=(i=ag(t),{html:eg[i],richText:tg[i]}),s=[],c=t.blocks||[];le(!c||L(c)),c||=[];var l=e.orderMode;if(t.sortBlocks&&l){c=c.slice();var u={valueAsc:`asc`,valueDesc:`desc`};if(q(u,l)){var d=new Oh(u[l],null);c.sort(function(e,t){return d.evaluate(e.sortParam,t.sortParam)})}else l===`seriesDesc`&&c.reverse()}j(c,function(n,i){var a=t.valueFormatter,c=ig(n)(a?E(E({},e),{valueFormatter:a}):e,n,i>0?o.html:0,r);c!=null&&s.push(c)});var f=e.renderMode===`richText`?s.join(o.richText):lg(r,s.join(``),a?n:o.html);if(a)return f;var p=xp(t.header,`ordinal`,e.useUTC),m=$h(r,e.renderMode).nameStyle,h=Qh(r);return e.renderMode===`richText`?ug(e,p,m)+o.richText+f:lg(r,`<div style="`+m+`;`+h+`;">`+Je(p)+`</div>`+f,n)}function sg(e,t,n,r){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,c=t.name,l=e.useUTC,u=t.valueFormatter||e.valueFormatter||function(e){return M(e=L(e)?e:[e],function(e,t){return xp(e,L(p)?p[t]:p,l)})};if(!a||!o){var d=s?``:e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||Xp.color.secondary,i),f=a?``:xp(c,`ordinal`,l),p=t.valueType,m=o?[]:u(t.value,t.rawDataIndex),h=!s||!a,g=!s&&a,_=$h(r,i),v=_.nameStyle,y=_.valueStyle;return i===`richText`?(s?``:d)+(a?``:ug(e,f,v))+(o?``:function(e,t,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:`right`}),e.markupStyleCreator.wrapRichTextStyle(L(t)?t.join(` `):t,a)}(e,m,h,g,y)):lg(r,(s?``:d)+(a?``:function(e,t,n){return`<span style="`+n+`;`+(t?`margin-left:2px`:``)+`">`+Je(e)+`</span>`}(f,!s,v))+(o?``:function(e,t,n,r){var i=t?`float:right;margin-left:`+(n?`10px`:`20px`):``;return e=L(e)?e:[e],`<span style="`+i+`;`+r+`">`+M(e,function(e){return Je(e)}).join(` `)+`</span>`}(m,h,g,y)),n)}}function cg(e,t,n,r,i,a){if(e)return ig(e)({useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter},e,0,a)}function lg(e,t,n){return`<div style="`+(`margin: `+n+`px 0 0`)+`;`+Qh(e)+`;">`+t+`<div style="clear:both"></div></div>`}function ug(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function dg(e,t){return e.get(`padding`)??(t===`richText`?[8,10]:10)}var fg=function(){function e(){this.richTextStyles={},this._nextStyleNameId=xa()}return e.prototype._generateStyleName=function(){return`__EC_aUTo_`+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(e,t,n){var r=n===`richText`?this._generateStyleName():null,i=function(e,t){var n=z(e)?{color:e,extraCssText:t}:e||{},r=n.color,i=n.type;t=n.extraCssText;var a=n.renderMode||`html`;return r?a===`html`?i===`subItem`?`<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:`+Je(r)+`;`+(t||``)+`"></span>`:`<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:`+Je(r)+`;`+(t||``)+`"></span>`:{renderMode:a,content:`{`+(n.markerId||`markerX`)+`|} `,style:i===`subItem`?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}:``}({color:t,type:e,renderMode:n,markerId:r});return z(i)?i:(this.richTextStyles[r]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(e,t){var n={};L(t)?j(t,function(e){return E(n,e)}):E(n,t);var r=this._generateStyleName();return this.richTextStyles[r]=n,`{`+r+`|`+e+`}`},e}();function pg(e){var t,n,r,i,a=e.series,o=e.dataIndex,s=e.multipleSeries,c=a.getData(),l=c.mapDimensionsAll(`defaultedTooltip`),u=l.length,d=a.getRawValue(o),f=L(d),p=function(e,t){return Tp(e.getData().getItemVisual(t,`style`)[e.visualDrawType])}(a,o);if(u>1||f&&!u){var m=function(e,t,n,r,i){var a=t.getData(),o=N(e,function(e,t,n){var r=a.getDimensionInfo(n);return e||r&&!1!==r.tooltip&&r.displayName!=null},!1),s=[],c=[],l=[];function u(e,t){var n=a.getDimensionInfo(t);n&&!1!==n.otherDims.tooltip&&(o?l.push(ng(`nameValue`,{markerType:`subItem`,markerColor:i,name:n.displayName,value:e,valueType:n.type})):(s.push(e),c.push(n.type)))}return r.length?j(r,function(e){u(yh(a,n,e),e)}):j(e,u),{inlineValues:s,inlineValueTypes:c,blocks:l}}(d,a,o,l,p);t=m.inlineValues,n=m.inlineValueTypes,r=m.blocks,i=m.inlineValues[0]}else if(u){var h=c.getDimensionInfo(l[0]);i=t=yh(c,o,l[0]),n=h.type}else i=t=f?d[0]:d;var g=Ba(a),_=g&&a.name||``,v=c.getName(o),y=s?_:v;return ng(`section`,{header:_,noHeader:s||!g,sortParam:i,blocks:[ng(`nameValue`,{markerType:`item`,markerColor:p,name:y,noName:!ue(y),value:t,valueType:n,rawDataIndex:c.getRawIndex(o)})].concat(r||[])})}var mg=Ua();function hg(e,t){return e.getName(t)||e.getId(t)}var gg=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t._selectedDataIndicesMap={},t}var r;return n(t,e),t.prototype.init=function(e,t,n){this.seriesIndex=this.componentIndex,this.dataTask=Ch({count:vg,reset:yg}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,n),(mg(this).sourceManager=new Yh(this)).prepareSource();var r=this.getInitialData(e,n);xg(r,this),this.dataTask.context.data=r,mg(this).dataBeforeProcessed=r,_g(this),this._initSelectedMapFromData(r)},t.prototype.mergeDefaultAndTheme=function(e,t){var n=Gp(this),r=n?qp(e):{},i=this.subType;Q.hasClass(i)&&(i+=`Series`),T(e,t.getTheme().get(this.subType)),T(e,this.getDefaultOption()),Ma(e,`label`,[`show`]),this.fillDataTextStyle(e.data),n&&Kp(e,r,n)},t.prototype.mergeOption=function(e,t){e=T(this.option,e,!0),this.fillDataTextStyle(e.data);var n=Gp(this);n&&Kp(this.option,e,n);var r=mg(this).sourceManager;r.dirty(),r.prepareSource();var i=this.getInitialData(e,t);xg(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,mg(this).dataBeforeProcessed=i,_g(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(e){if(e&&!H(e))for(var t=[`show`],n=0;n<e.length;n++)e[n]&&e[n].label&&Ma(e[n],`label`,t)},t.prototype.getInitialData=function(e,t){},t.prototype.appendData=function(e){this.getRawData().appendData(e.data)},t.prototype.getData=function(e){var t=Cg(this);if(t){var n=t.context.data;return e!=null&&n.getLinkedData?n.getLinkedData(e):n}return mg(this).data},t.prototype.getAllData=function(){var e=this.getData();return e&&e.getLinkedDataAll?e.getLinkedDataAll():[{data:e}]},t.prototype.setData=function(e){var t=Cg(this);if(t){var n=t.context;n.outputData=e,t!==this.dataTask&&(n.data=e)}mg(this).data=e},t.prototype.getEncode=function(){var e=this.get(`encode`,!0);if(e)return K(e)},t.prototype.getSourceManager=function(){return mg(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return mg(this).dataBeforeProcessed},t.prototype.getColorBy=function(){return this.get(`colorBy`)||`series`},t.prototype.isColorBySeries=function(){return this.getColorBy()===`series`},t.prototype.getBaseAxis=function(){var e=this.coordinateSystem;return e&&e.getBaseAxis&&e.getBaseAxis()},t.prototype.indicesOfNearest=function(e,t,n,r){var i=this.getData(),a=this.coordinateSystem,o=a&&a.getAxis(e);if(!a||!o)return[];var s=o.dataToCoord(n);r??=1/0;for(var c=[],l=1/0,u=-1,d=0,f=i.getDimensionIndex(t),p=i.getStore(),m=0,h=p.count();m<h;m++){var g=p.get(f,m),_=s-o.dataToCoord(g),v=Math.abs(_);v<=r&&((v<l||v===l&&_>=0&&u<0)&&(l=v,u=_,d=0),_===u&&(c[d++]=m))}return c.length=d,c},t.prototype.formatTooltip=function(e,t,n){return pg({series:this,dataIndex:e,multipleSeries:t})},t.prototype.isAnimationEnabled=function(){var e=this.ecModel;if(i.node&&(!e||!e.ssr))return!1;var t=this.getShallow(`animation`);return t&&this.getData().count()>this.getShallow(`animationThreshold`)&&(t=!1),!!t},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,t,n){var r=this.ecModel,i=_m.prototype.getColorFromPalette.call(this,e,t,n);return i||=r.getColorFromPalette(e,t,n),i},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get(`progressive`)},t.prototype.getProgressiveThreshold=function(){return this.get(`progressiveThreshold`)},t.prototype.select=function(e,t){this._innerSelect(this.getData(t),e)},t.prototype.unselect=function(e,t){var n=this.option.selectedMap;if(n){var r=this.option.selectedMode,i=this.getData(t);if(r===`series`||n===`all`)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var a=0;a<e.length;a++){var o=hg(i,e[a]);n[o]=!1,this._selectedDataIndicesMap[o]=-1}}},t.prototype.toggleSelect=function(e,t){for(var n=[],r=0;r<e.length;r++)n[0]=e[r],this.isSelected(e[r],t)?this.unselect(n,t):this.select(n,t)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap===`all`)return[].slice.call(this.getData().getIndices());for(var e=this._selectedDataIndicesMap,t=F(e),n=[],r=0;r<t.length;r++){var i=e[t[r]];i>=0&&n.push(i)}return n},t.prototype.isSelected=function(e,t){var n=this.option.selectedMap;if(!n)return!1;var r=this.getData(t);return(n===`all`||n[hg(r,e)])&&!r.getItemModel(e).get([`select`,`disabled`])},t.prototype.isUniversalTransitionEnabled=function(){if(this.__universalTransitionEnabled)return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,t){var n,r,i=this.option,a=i.selectedMode,o=t.length;if(a&&o){if(a===`series`)i.selectedMap=`all`;else if(a===`multiple`){V(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,c=0;c<o;c++){var l=t[c];s[d=hg(e,l)]=!0,this._selectedDataIndicesMap[d]=e.getRawIndex(l)}}else if(a===`single`||!0===a){var u=t[o-1],d=hg(e,u);i.selectedMap=((n={})[d]=!0,n),this._selectedDataIndicesMap=((r={})[d]=e.getRawIndex(u),r)}}},t.prototype._initSelectedMapFromData=function(e){if(!this.option.selectedMap){var t=[];e.hasItemOption&&e.each(function(n){var r=e.getRawDataItem(n);r&&r.selected&&t.push(n)}),t.length>0&&this._innerSelect(e,t)}},t.registerClass=function(e){return Q.registerClass(e)},t.protoInitialize=((r=t.prototype).type=`series.__base__`,r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol=`circle`,r.visualStyleAccessPath=`itemStyle`,void(r.visualDrawType=`fill`)),t}(Q);function _g(e){var t=e.name;Ba(e)||(e.name=function(e){var t=e.getRawData(),n=t.mapDimensionsAll(`seriesName`),r=[];return j(n,function(e){var n=t.getDimensionInfo(e);n.displayName&&r.push(n.displayName)}),r.join(` `)}(e)||t)}function vg(e){return e.model.getRawData().count()}function yg(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),bg}function bg(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function xg(e,t){j(function(e,t){for(var n=new e.constructor(e.length+t.length),r=0;r<e.length;r++)n[r]=e[r];var i=e.length;for(r=0;r<t.length;r++)n[r+i]=t[r];return n}(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,te(Sg,t))})}function Sg(e,t){var n=Cg(e);return n&&n.setOutputEnd((t||this).count()),t}function Cg(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(e.uid))}return r}}k(gg,xh),k(gg,_m),xo(gg,Q);var wg=function(){function e(){this.group=new zi,this.uid=Tf(`viewComponent`)}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){},e.prototype.updateLayout=function(e,t,n,r){},e.prototype.updateVisual=function(e,t,n,r){},e.prototype.toggleBlurSeries=function(e,t,n){},e.prototype.eachRendered=function(e){var t=this.group;t&&t.traverse(e)},e}();function Tg(){var e=Ua();return function(t){var n=e(t),r=t.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!(!r||!r.large),s=n.progressiveRender=!(!r||!r.progressiveRender);return(i!==o||a!==s)&&`reset`}}bo(wg),To(wg);var Eg=Ua(),Dg=Tg(),Og=function(){function e(){this.group=new zi,this.uid=Tf(`viewChart`),this.renderTask=Ch({plan:jg,reset:Mg}),this.renderTask.context={view:this}}return e.prototype.init=function(e,t){},e.prototype.render=function(e,t,n,r){},e.prototype.highlight=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&Ag(i,r,`emphasis`)},e.prototype.downplay=function(e,t,n,r){var i=e.getData(r&&r.dataType);i&&Ag(i,r,`normal`)},e.prototype.remove=function(e,t){this.group.removeAll()},e.prototype.dispose=function(e,t){},e.prototype.updateView=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.updateVisual=function(e,t,n,r){this.render(e,t,n,r)},e.prototype.eachRendered=function(e){Rd(this.group,e)},e.markUpdateMethod=function(e,t){Eg(e).updateMethod=t},e.protoInitialize=void(e.prototype.type=`chart`),e}();function kg(e,t,n){e&&Pl(e)&&(t===`emphasis`?gl:_l)(e,n)}function Ag(e,t,n){var r=Ha(e,t),i=t&&t.highlightKey!=null?function(e){var t=Wc[e];return t==null&&Uc<=32&&(t=Wc[e]=Uc++),t}(t.highlightKey):null;r==null?e.eachItemGraphicEl(function(e){kg(e,n,i)}):j(ja(r),function(t){kg(e.getItemGraphicEl(t),n,i)})}function jg(e){return Dg(e.model)}function Mg(e){var t=e.model,n=e.ecModel,r=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&Eg(i).updateMethod,c=a?`incrementalPrepareRender`:s&&o[s]?s:`render`;return c!==`render`&&o[c](t,n,r,i),Ng[c]}bo(Og),To(Og);var Ng={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},Pg=`\0__throttleOriginMethod`,Fg=`\0__throttleRate`,Ig=`\0__throttleType`;function Lg(e,t,n){var r,i,a,o,s,c=0,l=0,u=null;function d(){l=new Date().getTime(),u=null,e.apply(a,o||[])}t||=0;var f=function(){var e=[...arguments];r=new Date().getTime(),a=this,o=e;var f=s||t,p=s||n;s=null,i=r-(p?c:l)-f,clearTimeout(u),p?u=setTimeout(d,f):i>=0?d():u=setTimeout(d,-i),c=r};return f.clear=function(){u&&=(clearTimeout(u),null)},f.debounceNextCall=function(e){s=e},f}function Rg(e,t,n,r){var i=e[t];if(i){var a=i[Pg]||i,o=i[Ig];if(i[Fg]!==n||o!==r){if(n==null||!r)return e[t]=a;(i=e[t]=Lg(a,n,r===`debounce`))[Pg]=a,i[Ig]=r,i[Fg]=n}return i}}function zg(e,t){var n=e[t];n&&n[Pg]&&(n.clear&&n.clear(),e[t]=n[Pg])}var Bg=Ua(),Vg={itemStyle:Eo(bf,!0),lineStyle:Eo(_f,!0)},Hg={lineStyle:`stroke`,itemStyle:`fill`};function Ug(e,t){return e.visualStyleMapper||Vg[t]||(console.warn(`Unknown style type '`+t+`'.`),Vg.itemStyle)}function Wg(e,t){return e.visualDrawType||Hg[t]||(console.warn(`Unknown style type '`+t+`'.`),`fill`)}var Gg={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=e.getModel(r),a=Ug(e,r)(i),o=i.getShallow(`decal`);o&&(n.setVisual(`decal`,o),o.dirty=!0);var s=Wg(e,r),c=a[s],l=R(c)?c:null,u=a.fill===`auto`||a.stroke===`auto`;if(!a[s]||l||u){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[s]||(a[s]=d,n.setVisual(`colorFromPalette`,!0)),a.fill=a.fill===`auto`||R(a.fill)?d:a.fill,a.stroke=a.stroke===`auto`||R(a.stroke)?d:a.stroke}if(n.setVisual(`style`,a),n.setVisual(`drawType`,s),!t.isSeriesFiltered(e)&&l)return n.setVisual(`colorFromPalette`,!1),{dataEach:function(t,n){var r=e.getDataParams(n),i=E({},a);i[s]=l(r),t.setItemVisual(n,`style`,i)}}}},Kg=new Cf,qg={createOnAllSeries:!0,reset:function(e,t){if(!e.ignoreStyleOnData){var n=e.getData(),r=e.visualStyleAccessPath||`itemStyle`,i=Ug(e,r),a=n.getVisual(`drawType`);return{dataEach:n.hasItemOption?function(e,t){var n=e.getRawDataItem(t);if(n&&n[r]){Kg.option=n[r];var o=i(Kg);E(e.ensureUniqueItemVisual(t,`style`),o),Kg.option.decal&&(e.setItemVisual(t,`decal`,Kg.option.decal),Kg.option.decal.dirty=!0),a in o&&e.setItemVisual(t,`colorFromPalette`,!1)}}:null}}}},Jg={performRawSeries:!0,overallReset:function(e){var t=K();e.eachSeries(function(e){if(!e.isColorBySeries()){var n=e.type+`-`+e.getColorBy();Bg(e).scope=t.get(n)||t.set(n,{})}}),e.eachSeries(function(e){if(!e.isColorBySeries()){var t=e.getRawData(),n={},r=e.getData(),i=Bg(e).scope,a=Wg(e,e.visualStyleAccessPath||`itemStyle`);r.each(function(e){var t=r.getRawIndex(e);n[t]=e}),t.each(function(o){var s=n[o];if(r.getItemVisual(s,`colorFromPalette`)){var c=r.ensureUniqueItemVisual(s,`style`),l=t.getName(o)||o+``,u=t.count();c[a]=e.getColorFromPalette(l,i,u)}})}})}},Yg=Math.PI,Xg=function(){function e(e,t,n,r){this._stageTaskMap=K(),this.ecInstance=e,this.api=t,n=this._dataProcessorHandlers=n.slice(),r=this._visualHandlers=r.slice(),this._allHandlers=n.concat(r)}return e.prototype.restoreData=function(e,t){e.restoreData(t),this._stageTaskMap.each(function(e){var t=e.overallTask;t&&t.dirty()})},e.prototype.getPerformArgs=function(e,t){if(e.__pipeline){var n=this._pipelineMap.get(e.__pipeline.id),r=n.context,i=!t&&n.progressiveEnabled&&(!r||r.progressiveRender)&&e.__idxInPipeline>n.blockIndex?n.step:null,a=r&&r.modDataCount;return{step:i,modBy:a==null?null:Math.ceil(a/i),modDataCount:a}}},e.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},e.prototype.updateStreamModes=function(e,t){var n=this._pipelineMap.get(e.uid);e.pipelineContext=n.context=e.__preparePipelineContext?e.__preparePipelineContext(t,n):mo(e,t,n)},e.prototype.restorePipelines=function(e,t){var n=this,r=n._pipelineMap=K();t.eachSeries(function(t){var i=e.painter.type===`canvas`&&t.getProgressive(),a=t.uid;r.set(a,{id:a,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),n._pipe(t,t.dataTask)})},e.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,t=this.api.getModel(),n=this.api;j(this._allHandlers,function(r){var i=e.get(r.uid)||e.set(r.uid,{});le(!(r.reset&&r.overallReset),``),r.reset&&this._createSeriesStageTask(r,i,t,n),r.overallReset&&this._createOverallStageTask(r,i,t,n)},this)},e.prototype.prepareView=function(e,t,n,r){var i=e.renderTask,a=i.context;a.model=t,a.ecModel=n,a.api=r,i.__block=!e.incrementalPrepareRender,this._pipe(t,i)},e.prototype.performDataProcessorTasks=function(e,t){this._performStageTasks(this._dataProcessorHandlers,e,t,{block:!0})},e.prototype.performVisualTasks=function(e,t,n){this._performStageTasks(this._visualHandlers,e,t,n)},e.prototype._performStageTasks=function(e,t,n,r){r||={};var i=!1,a=this;function o(e,t){return e.setDirty&&(!e.dirtyMap||e.dirtyMap.get(t.__pipeline.id))}j(e,function(e,s){if(!r.visualType||r.visualType===e.visualType){var c=a._stageTaskMap.get(e.uid),l=c.seriesTaskMap,u=c.overallTask;if(u){var d,f=u.agentStubMap;f.each(function(e){o(r,e)&&(e.dirty(),d=!0)}),d&&u.dirty(),a.updatePayload(u,n);var p=a.getPerformArgs(u,r.block);f.each(function(e){e.perform(p)}),u.perform(p)&&(i=!0)}else l&&l.each(function(s,c){o(r,s)&&s.dirty();var l=a.getPerformArgs(s,r.block);l.skip=!e.performRawSeries&&t.isSeriesFiltered(s.context.model),a.updatePayload(s,n),s.perform(l)&&(i=!0)})}}),this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(e){var t;e.eachSeries(function(e){t=e.dataTask.perform()||t}),this.unfinished=t||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(e){var t=e.tail;do{if(t.__block){e.blockIndex=t.__idxInPipeline;break}t=t.getUpstream()}while(t)})},e.prototype.updatePayload=function(e,t){t!==`remain`&&(e.context.payload=t)},e.prototype._createSeriesStageTask=function(e,t,n,r){var i=this,a=t.seriesTaskMap,o=t.seriesTaskMap=K(),s=e.seriesType,c=e.getTargetSeries;function l(t){var s=t.uid,c=o.set(s,a&&a.get(s)||Ch({plan:t_,reset:n_,count:a_}));c.context={model:t,ecModel:n,api:r,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:i},i._pipe(t,c)}e.createOnAllSeries?n.eachRawSeries(l):s?n.eachRawSeriesByType(s,l):c&&c(n,r).each(l)},e.prototype._createOverallStageTask=function(e,t,n,r){var i=this,a=t.overallTask=t.overallTask||Ch({reset:Zg});a.context={ecModel:n,api:r,overallReset:e.overallReset,scheduler:i};var o=a.agentStubMap,s=a.agentStubMap=K(),c=e.seriesType,l=e.getTargetSeries,u=e.dirtyOnOverallProgress,d=!1;function f(e){var t=e.uid,n=s.set(t,o&&o.get(t)||(d=!0,Ch({reset:Qg,onDirty:e_})));n.context={model:e,dirtyOnOverallProgress:u},n.agent=a,n.__block=u,i._pipe(e,n)}le(!e.createOnAllSeries,``),c?n.eachRawSeriesByType(c,f):l?l(n,r).each(f):j(n.getSeries(),f),d&&a.dirty()},e.prototype._pipe=function(e,t){var n=e.uid,r=this._pipelineMap.get(n);!r.head&&(r.head=t),r.tail&&r.tail.pipe(t),r.tail=t,t.__idxInPipeline=r.count++,t.__pipeline=r},e.wrapStageHandler=function(e,t){return R(e)&&(e={overallReset:e,seriesType:o_(e)}),e.uid=Tf(`stageHandler`),t&&(e.visualType=t),e},e}();function Zg(e){e.overallReset(e.ecModel,e.api,e.payload)}function Qg(e){return e.dirtyOnOverallProgress&&$g}function $g(){this.agent.dirty(),this.getDownstream().dirty()}function e_(){this.agent&&this.agent.dirty()}function t_(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function n_(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=ja(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?M(t,function(e,t){return i_(t)}):r_}var r_=i_(0);function i_(e){return function(t,n){var r=n.data,i=n.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(t,r)}}function a_(e){return e.data.count()}function o_(e){s_=null;try{e(c_,l_)}catch{}return s_}var s_,c_={},l_={};function u_(e,t){for(var n in t.prototype)e[n]=ve}u_(c_,ym),u_(l_,Hc),c_.eachSeriesByType=c_.eachRawSeriesByType=function(e){s_=e},c_.eachComponent=function(e){e.mainType===`series`&&e.subType&&(s_=e.subType)};var d_,$=Xp.darkColor,f_=$.background,p_=function(){return{axisLine:{lineStyle:{color:$.axisLine}},splitLine:{lineStyle:{color:$.axisSplitLine}},splitArea:{areaStyle:{color:[$.backgroundTint,$.backgroundTransparent]}},minorSplitLine:{lineStyle:{color:$.axisMinorSplitLine}},axisLabel:{color:$.axisLabel},axisName:{}}},m_={label:{color:$.secondary},itemStyle:{borderColor:$.borderTint},dividerLineStyle:{color:$.border}},h_={darkMode:!0,color:$.theme,backgroundColor:f_,axisPointer:{lineStyle:{color:$.border},crossStyle:{color:$.borderShade},label:{color:$.tertiary}},legend:{textStyle:{color:$.secondary},pageTextStyle:{color:$.tertiary}},textStyle:{color:$.secondary},title:{textStyle:{color:$.primary},subtextStyle:{color:$.quaternary}},toolbox:{iconStyle:{borderColor:$.accent50},feature:{dataView:{backgroundColor:f_,textColor:$.primary,textareaColor:$.background,textareaBorderColor:$.border,buttonColor:$.accent50,buttonTextColor:$.neutral00}}},tooltip:{backgroundColor:$.neutral20,defaultBorderColor:$.border,textStyle:{color:$.tertiary}},dataZoom:{borderColor:$.accent10,textStyle:{color:$.tertiary},brushStyle:{color:$.backgroundTint},handleStyle:{color:$.neutral00,borderColor:$.accent20},moveHandleStyle:{color:$.accent40},emphasis:{handleStyle:{borderColor:$.accent50}},dataBackground:{lineStyle:{color:$.accent30},areaStyle:{color:$.accent20}},selectedDataBackground:{lineStyle:{color:$.accent50},areaStyle:{color:$.accent30}}},visualMap:{textStyle:{color:$.secondary},handleStyle:{borderColor:$.neutral30}},timeline:{lineStyle:{color:$.accent10},label:{color:$.tertiary},controlStyle:{color:$.accent30,borderColor:$.accent30}},calendar:{itemStyle:{color:$.neutral00,borderColor:$.neutral20},dayLabel:{color:$.tertiary},monthLabel:{color:$.secondary},yearLabel:{color:$.secondary}},matrix:{x:m_,y:m_,backgroundColor:{borderColor:$.axisLine},body:{itemStyle:{borderColor:$.borderTint}}},timeAxis:p_(),logAxis:p_(),valueAxis:p_(),categoryAxis:p_(),line:{symbol:`circle`},graph:{color:$.theme},gauge:{title:{color:$.secondary},axisLine:{lineStyle:{color:[[1,$.neutral05]]}},axisLabel:{color:$.axisLabel},detail:{color:$.primary}},candlestick:{itemStyle:{color:`#f64e56`,color0:`#54ea92`,borderColor:`#f64e56`,borderColor0:`#54ea92`}},funnel:{itemStyle:{borderColor:$.background}},radar:(d_=p_(),d_.axisName={color:$.axisLabel},d_.axisLine.lineStyle.color=$.neutral20,d_),treemap:{breadcrumb:{itemStyle:{color:$.neutral20,textStyle:{color:$.secondary}},emphasis:{itemStyle:{color:$.neutral30}}}},sunburst:{itemStyle:{borderColor:$.background}},map:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},label:{color:$.tertiary},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}}},geo:{itemStyle:{borderColor:$.border,areaColor:$.neutral10},emphasis:{label:{color:$.primary},itemStyle:{areaColor:$.highlight}},select:{label:{color:$.primary},itemStyle:{color:$.highlight}}}};h_.categoryAxis.splitLine.show=!1;var g_=function(){function e(){}return e.prototype.normalizeQuery=function(e){var t={},n={},r={};if(z(e)){var i=yo(e);t.mainType=i.main||null,t.subType=i.sub||null}else{var a=[`Index`,`Name`,`Id`],o={name:1,dataIndex:1,dataType:1};j(e,function(e,i){for(var s=!1,c=0;c<a.length;c++){var l=a[c],u=i.lastIndexOf(l);if(u>0&&u===i.length-l.length){var d=i.slice(0,u);d!==`data`&&(t.mainType=d,t[l.toLowerCase()]=e,s=!0)}}o.hasOwnProperty(i)&&(n[i]=e,s=!0),s||(r[i]=e)})}return{cptQuery:t,dataQuery:n,otherQuery:r}},e.prototype.filter=function(e,t){var n=this.eventInfo;if(!n)return!0;var r=n.targetEl,i=n.packedEvent,a=n.model,o=n.view;if(!a||!o)return!0;var s=t.cptQuery,c=t.dataQuery;return l(s,a,`mainType`)&&l(s,a,`subType`)&&l(s,a,`index`,`componentIndex`)&&l(s,a,`name`)&&l(s,a,`id`)&&l(c,i,`name`)&&l(c,i,`dataIndex`)&&l(c,i,`dataType`)&&(!o.filterForExposedEvent||o.filterForExposedEvent(e,t.otherQuery,r,i));function l(e,t,n,r){return e[n]==null||t[r||n]===e[n]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),__=[`symbol`,`symbolSize`,`symbolRotate`,`symbolOffset`],v_=__.concat([`symbolKeepAspect`]),y_={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual(`legendIcon`,e.legendIcon),e.hasSymbolVisual){for(var r={},i={},a=!1,o=0;o<__.length;o++){var s=__[o],c=e.get(s);R(c)?(a=!0,i[s]=c):r[s]=c}if(r.symbol=r.symbol||e.defaultSymbol,n.setVisual(E({legendIcon:e.legendIcon||r.symbol,symbolKeepAspect:e.get(`symbolKeepAspect`)},r)),!t.isSeriesFiltered(e)){var l=F(i);return{dataEach:a?function(t,n){for(var r=e.getRawValue(n),a=e.getDataParams(n),o=0;o<l.length;o++){var s=l[o];t.setItemVisual(n,s,i[s](r,a))}}:null}}}}},b_={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(e.hasSymbolVisual&&!t.isSeriesFiltered(e))return{dataEach:e.getData().hasItemOption?function(e,t){for(var n=e.getItemModel(t),r=0;r<v_.length;r++){var i=v_[r],a=n.getShallow(i,!0);a!=null&&e.setItemVisual(t,i,a)}}:null}}};function x_(e,t){function n(t,n){var r=[];return t.eachComponent({mainType:`series`,subType:e,query:n},function(e){r.push(e.seriesIndex)}),r}j([[e+`ToggleSelect`,`toggleSelect`],[e+`Select`,`select`],[e+`UnSelect`,`unselect`]],function(e){t(e[0],function(t,r,i){t=E({},t),i.dispatchAction(E(t,{type:e[1],seriesIndex:n(r,t)}))})})}function S_(e,t,n,r,i){var a=e+t;n.isSilent(a)||r.eachComponent({mainType:`series`,subType:`pie`},function(e){for(var t=e.seriesIndex,r=e.option.selectedMap,o=i.selected,s=0;s<o.length;s++)if(o[s].seriesIndex===t){var c=e.getData(),l=Ha(c,i.fromActionPayload);n.trigger(a,{type:a,seriesId:e.id,name:L(l)?c.getName(l[0]):c.getName(l),selected:z(r)?r:E({},r)})}})}function C_(e,t,n){for(var r;e&&(!t(e)||(r=e,!n));)e=e.__hostTarget||e.parent;return r}var w_=new Ie,T_={},E_={},D_=Ua();function O_(e){return D_(e).prepare}function k_(e){return D_(e).fullUpdate}var A_=Math.round(9*Math.random()),j_=typeof Object.defineProperty==`function`,M_=function(){function e(){this._id=`__ec_inner_`+A_++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return j_?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype.delete=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError(`Value of WeakMap is not a non-null object.`);return e},e}(),N_=X.extend({type:`triangle`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r+a),e.lineTo(n-i,r+a),e.closePath()}}),P_=X.extend({type:`diamond`,shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var n=t.cx,r=t.cy,i=t.width/2,a=t.height/2;e.moveTo(n,r-a),e.lineTo(n+i,r),e.lineTo(n,r+a),e.lineTo(n-i,r),e.closePath()}}),F_=X.extend({type:`pin`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.x,r=t.y,i=t.width/5*3,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),c=r-a+o+s,l=Math.asin(s/o),u=Math.cos(l)*o,d=Math.sin(l),f=Math.cos(l),p=.6*o,m=.7*o;e.moveTo(n-u,c+s),e.arc(n,c,o,Math.PI-l,2*Math.PI+l),e.bezierCurveTo(n+u-d*p,c+s+f*p,n,r-m,n,r),e.bezierCurveTo(n,r-m,n-u+d*p,c+s+f*p,n-u,c+s),e.closePath()}}),I_=X.extend({type:`arrow`,shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var n=t.height,r=t.width,i=t.x,a=t.y,o=r/3*2;e.moveTo(i,a),e.lineTo(i+o,a+n),e.lineTo(i,a+n/4*3),e.lineTo(i-o,a+n),e.lineTo(i,a),e.closePath()}}),L_={line:function(e,t,n,r,i){i.x1=e,i.y1=t+r/2,i.x2=e+n,i.y2=t+r/2},rect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r},roundRect:function(e,t,n,r,i){i.x=e,i.y=t,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(e,t,n,r,i){var a=Math.min(n,r);i.x=e,i.y=t,i.width=a,i.height=a},circle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.r=Math.min(n,r)/2},diamond:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r},pin:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},arrow:function(e,t,n,r,i){i.x=e+n/2,i.y=t+r/2,i.width=n,i.height=r},triangle:function(e,t,n,r,i){i.cx=e+n/2,i.cy=t+r/2,i.width=n,i.height=r}},R_={};j({line:Ou,rect:hc,roundRect:hc,square:hc,circle:tu,diamond:P_,pin:F_,arrow:I_,triangle:N_},function(e,t){R_[t]=new e});var z_=X.extend({type:`symbol`,shape:{symbolType:``,x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,n){var r=wi(e,t,n),i=this.shape;return i&&i.symbolType===`pin`&&t.position===`inside`&&(r.y=n.y+.4*n.height),r},buildPath:function(e,t,n){var r=t.symbolType;if(r!==`none`){var i=R_[r];i||=R_[r=`rect`],L_[r](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,n)}}});function B_(e,t){if(this.type!==`image`){var n=this.style;this.__isEmptyBrush?(n.stroke=e,n.fill=t||Xp.color.neutral00,n.lineWidth=2):this.shape.symbolType===`line`?n.stroke=e:n.fill=e,this.markRedraw()}}function V_(e,t,n,r,i,a,o){var s,c=e.indexOf(`empty`)===0;return c&&(e=e.substr(5,1).toLowerCase()+e.substr(6)),(s=e.indexOf(`image://`)===0?gd(e.slice(8),new J(t,n,r,i),o?`center`:`cover`):e.indexOf(`path://`)===0?hd(e.slice(7),{},new J(t,n,r,i),o?`center`:`cover`):new z_({shape:{symbolType:e,x:t,y:n,width:r,height:i}})).__isEmptyBrush=c,s.setColor=B_,a&&s.setColor(a),s}function H_(e){return L(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function U_(e,t){if(e!=null)return L(e)||(e=[e,e]),[ia(e[0],t[0])||0,ia(G(e[1],e[0]),t[1])||0]}function W_(e){return isFinite(e)}function G_(e,t,n){for(var r=t.type===`radial`?function(e,t,n){var r=n.width,i=n.height,a=Math.min(r,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,c=t.r==null?.5:t.r;return t.global||(o=o*r+n.x,s=s*i+n.y,c*=a),o=W_(o)?o:.5,s=W_(s)?s:.5,c=c>=0&&W_(c)?c:.5,e.createRadialGradient(o,s,0,o,s,c)}(e,t,n):function(e,t,n){var r=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;return t.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=W_(r)?r:0,i=W_(i)?i:1,a=W_(a)?a:0,o=W_(o)?o:0,e.createLinearGradient(r,a,i,o)}(e,t,n),i=t.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function K_(e){return parseInt(e,10)}function q_(e,t,n){var r=[`width`,`height`][t],i=[`clientWidth`,`clientHeight`][t],a=[`paddingLeft`,`paddingTop`][t],o=[`paddingRight`,`paddingBottom`][t];if(n[r]!=null&&n[r]!==`auto`)return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(e);return(e[i]||K_(s[r])||K_(e.style[r]))-(K_(s[a])||0)-(K_(s[o])||0)||0}function J_(e){var t,n,r=e.style,i=r.lineDash&&r.lineWidth>0&&(t=r.lineDash,n=r.lineWidth,t&&t!==`solid`&&n>0?t===`dashed`?[4*n,2*n]:t===`dotted`?[n]:B(t)?[t]:L(t)?t:null:null),a=r.lineDashOffset;if(i){var o=r.strokeNoScale&&e.getLineScale?e.getLineScale():1;o&&o!==1&&(i=M(i,function(e){return e/o}),a/=o)}return[i,a]}var Y_=new Ls(!0);function X_(e){var t=e.stroke;return!(t==null||t===`none`||!(e.lineWidth>0))}function Z_(e){return typeof e==`string`&&e!==`none`}function Q_(e){var t=e.fill;return t!=null&&t!==`none`}function $_(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function ev(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function tv(e,t,n){var r=jo(t.image,t.__image,n);if(No(r)){var i=e.createPattern(r,t.repeat||`repeat`);if(typeof DOMMatrix==`function`&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*ye),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}var nv=[`shadowBlur`,`shadowOffsetX`,`shadowOffsetY`],rv=[[`lineCap`,`butt`],[`lineJoin`,`miter`],[`miterLimit`,10]];function iv(e,t,n,r,i){var a=!1;if(!r&&t===(n||={}))return!1;if(r||t.opacity!==n.opacity){sv(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?$o.opacity:o}(r||t.blend!==n.blend)&&(a||=(sv(e,i),!0),e.globalCompositeOperation=t.blend||$o.blend);for(var s=0;s<nv.length;s++){var c=nv[s];(r||t[c]!==n[c])&&(a||=(sv(e,i),!0),e[c]=e.dpr*(t[c]||0))}return(r||t.shadowColor!==n.shadowColor)&&(a||=(sv(e,i),!0),e.shadowColor=t.shadowColor||$o.shadowColor),a}function av(e,t,n,r,i){var a=t.style,o=r?null:n&&n.style||{};if(a===o)return!1;var s=iv(e,a,o,r,i);if((r||a.fill!==o.fill)&&(s||=(sv(e,i),!0),Z_(a.fill)&&(e.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||=(sv(e,i),!0),Z_(a.stroke)&&(e.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||=(sv(e,i),!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var c=a.lineWidth/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||=(sv(e,i),!0),e.lineWidth=c)}for(var l=0;l<rv.length;l++){var u=rv[l],d=u[0];(r||a[d]!==o[d])&&(s||=(sv(e,i),!0),e[d]=a[d]||u[1])}return s}function ov(e,t){var n=t.transform,r=e.dpr||1;n?e.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):e.setTransform(r,0,0,r,0,0)}function sv(e,t){t.batchFill&&(t.batchFill=!1,e.fill()),t.batchStroke&&(t.batchStroke=!1,e.stroke())}function cv(e,t,n){var r=t.transform;if(!t.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1))return t.__dirty&=-2,void(t.__isRendered=!1);var i=t.__clipPaths,a=n.prevElClipPaths,o=t.style,s=!1,c=!1;if(a&&!function(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!0;return!1}(i,a)||(a&&(sv(e,n),e.restore(),c=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),i&&i.length&&(sv(e,n),e.save(),function(e,t,n){for(var r=!1,i=0;i<e.length;i++){var a=e[i];r||=a.isZeroArea(),ov(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}n.allClipped=r}(i,e,n),s=!0,n.prevElClipPaths=i)),n.allClipped)return t.__dirty&=-2,void(t.__isRendered=!1);t.beforeBrush&&t.beforeBrush(n.beforeBrushParam),t.innerBeforeBrush();var l=n.prevEl;l||(c=s=!0);var u,d,f=t instanceof X&&t.autoBatch&&function(e){var t=Q_(e),n=X_(e);return!(e.lineDash||!(+t^n)||t&&typeof e.fill!=`string`||n&&typeof e.stroke!=`string`||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}(o);s||(u=r,d=l.transform,u&&d?u[0]!==d[0]||u[1]!==d[1]||u[2]!==d[2]||u[3]!==d[3]||u[4]!==d[4]||u[5]!==d[5]:u||d)?(sv(e,n),ov(e,t)):f||sv(e,n),t instanceof X?(n.lastDrawType!==1&&(c=!0,n.lastDrawType=1),av(e,t,l,c,n),f&&(n.batchFill||n.batchStroke)||e.beginPath(),function(e,t,n,r,i){var a,o=X_(n),s=Q_(n),c=n.strokePercent,l=c<1,u=!t.path;t.silent&&!l||!u||t.createPathProxy();var d=t.path||Y_,f=t.__dirty;if(!r){var p=n.fill,m=n.stroke,h=s&&!!p.colorStops,g=o&&!!m.colorStops,_=s&&!!p.image,v=o&&!!m.image,y=void 0,b=void 0,x=void 0,S=void 0,C=void 0;(h||g)&&(C=t.getBoundingRect()),h&&(y=f?G_(e,p,C):t.__canvasFillGradient,t.__canvasFillGradient=y),g&&(b=f?G_(e,m,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),_&&(x=f||!t.__canvasFillPattern?tv(e,p,t):t.__canvasFillPattern,t.__canvasFillPattern=x),v&&(S=f||!t.__canvasStrokePattern?tv(e,m,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),h?e.fillStyle=y:_&&(x?e.fillStyle=x:s=!1),g?e.strokeStyle=b:v&&(S?e.strokeStyle=S:o=!1)}var w,T,E=t.getGlobalScale();d.setScale(E[0],E[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(w=(a=J_(t))[0],T=a[1]);var D=!0;(u||4&f)&&(d.setDPR(e.dpr),l?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,l?c:1),w&&(e.setLineDash(w),e.lineDashOffset=T),r?(i.batchFill=s,i.batchStroke=o):n.strokeFirst?(o&&ev(e,n),s&&$_(e,n)):(s&&$_(e,n),o&&ev(e,n)),w&&e.setLineDash([])}(e,t,o,f,n)):t instanceof ac?(n.lastDrawType!==3&&(c=!0,n.lastDrawType=3),av(e,t,l,c,n),function(e,t,n){var r,i=n.text;if(i!=null&&(i+=``),i){e.font=n.font||`12px sans-serif`,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,o=void 0;e.setLineDash&&n.lineDash&&(a=(r=J_(t))[0],o=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),n.strokeFirst?(X_(n)&&e.strokeText(i,n.x,n.y),Q_(n)&&e.fillText(i,n.x,n.y)):(Q_(n)&&e.fillText(i,n.x,n.y),X_(n)&&e.strokeText(i,n.x,n.y)),a&&e.setLineDash([])}}(e,t,o)):t instanceof cc?(n.lastDrawType!==2&&(c=!0,n.lastDrawType=2),function(e,t,n,r,i){iv(e,t.style,n&&n.style,r,i)}(e,t,l,c,n),function(e,t,n){var r=t.__image=jo(n.image,t.__image,t,t.onload);if(r&&No(r)){var i=n.x||0,a=n.y||0,o=t.getWidth(),s=t.getHeight(),c=r.width/r.height;if(o==null&&s!=null?o=s*c:s==null&&o!=null?s=o/c:o==null&&s==null&&(o=r.width,s=r.height),n.sWidth&&n.sHeight){var l=n.sx||0,u=n.sy||0;e.drawImage(r,l,u,n.sWidth,n.sHeight,i,a,o,s)}else if(n.sx&&n.sy){var d=o-(l=n.sx),f=s-(u=n.sy);e.drawImage(r,l,u,d,f,i,a,o,s)}else e.drawImage(r,i,a,o,s)}}(e,t,o)):t.getTemporalDisplayables&&(n.lastDrawType!==4&&(c=!0,n.lastDrawType=4),function(e,t,n){var r=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a,o,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover,beforeBrushParam:{}};for(a=t.getCursor(),o=r.length;a<o;a++)(u=r[a]).beforeBrush&&u.beforeBrush(n.beforeBrushParam),u.innerBeforeBrush(),cv(e,u,s),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),s.prevEl=u;lv(e,s);for(var c=0,l=i.length;c<l;c++){var u;(u=i[c]).beforeBrush&&u.beforeBrush(n.beforeBrushParam),u.innerBeforeBrush(),cv(e,u,s),u.innerAfterBrush(),u.afterBrush&&u.afterBrush(),s.prevEl=u}lv(e,s),t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}(e,t,n)),t.innerAfterBrush(),t.afterBrush&&(f&&sv(e,n),t.afterBrush()),n.prevEl=t,t.__dirty=0,t.__isRendered=!0}function lv(e,t){sv(e,t),t.prevElClipPaths&&e.restore()}var uv=new M_,dv=new Mn(100),fv=[`symbol`,`symbolSize`,`symbolKeepAspect`,`color`,`backgroundColor`,`dashArrayX`,`dashArrayY`,`maxTileWidth`,`maxTileHeight`];function pv(e,t){if(e===`none`)return null;var n=t.getDevicePixelRatio(),r=t.getZr(),i=r.painter.type===`svg`;e.dirty&&uv.delete(e);var a=uv.get(e);if(a)return a;var o=D(e,{symbol:`rect`,symbolSize:1,symbolKeepAspect:!0,color:`rgba(0, 0, 0, 0.2)`,backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});o.backgroundColor===`none`&&(o.backgroundColor=null);var s={repeat:`repeat`};return function(e){for(var t,a=[n],s=!0,l=0;l<fv.length;++l){var u=o[fv[l]];if(u!=null&&!L(u)&&!z(u)&&!B(u)&&typeof u!=`boolean`){s=!1;break}a.push(u)}if(s){t=a.join(`,`)+(i?`-svg`:``);var d=dv.get(t);d&&(i?e.svgElement=d:e.image=d)}var f,p=hv(o.dashArrayX),m=function(e){if(!e||typeof e==`object`&&e.length===0)return[0,0];if(B(e)){var t=Math.ceil(e);return[t,t]}var n=M(e,function(e){return Math.ceil(e)});return e.length%2?n.concat(n):n}(o.dashArrayY),h=mv(o.symbol),g=(x=p,M(x,function(e){return gv(e)})),_=gv(m),v=!i&&c.createCanvas(),y=i&&{tag:`g`,attrs:{},key:`dcl`,children:[]},b=function(){for(var e=1,t=0,n=g.length;t<n;++t)e=Ca(e,g[t]);var r=1;for(t=0,n=h.length;t<n;++t)r=Ca(r,h[t].length);e*=r;var i=_*g.length*h.length;return{width:Math.max(1,Math.min(e,o.maxTileWidth)),height:Math.max(1,Math.min(i,o.maxTileHeight))}}(),x;v&&(v.width=b.width*n,v.height=b.height*n,f=v.getContext(`2d`)),(function(){f&&(f.clearRect(0,0,v.width,v.height),o.backgroundColor&&(f.fillStyle=o.backgroundColor,f.fillRect(0,0,v.width,v.height)));for(var e=0,t=0;t<m.length;++t)e+=m[t];if(e<=0)return;for(var a=-_,s=0,c=0,l=0;a<b.height;){if(s%2==0){for(var u=c/2%h.length,d=0,g=0,x=0;d<2*b.width;){var S=0;for(t=0;t<p[l].length;++t)S+=p[l][t];if(S<=0)break;if(g%2==0){var C=.5*(1-o.symbolSize),w=d+p[l][g]*C,T=a+m[s]*C,E=p[l][g]*o.symbolSize,D=m[s]*o.symbolSize,O=x/2%h[u].length;k(w,T,E,D,h[u][O])}d+=p[l][g],++x,++g===p[l].length&&(g=0)}++l===p.length&&(l=0)}a+=m[s],++c,++s===m.length&&(s=0)}function k(e,t,a,s,c){var l=i?1:n,u=V_(c,e*l,t*l,a*l,s*l,o.color,o.symbolKeepAspect);if(i){var d=r.painter.renderOneToVNode(u);d&&y.children.push(d)}else(function(e,t){var n={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};cv(e,t,n),lv(e,n)})(f,u)}})(),s&&dv.put(t,v||y),e.image=v,e.svgElement=y,e.svgWidth=b.width,e.svgHeight=b.height}(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,uv.set(e,s),e.dirty=!1,s}function mv(e){if(!e||e.length===0)return[[`rect`]];if(z(e))return[[e]];for(var t=!0,n=0;n<e.length;++n)if(!z(e[n])){t=!1;break}if(t)return mv([e]);var r=[];for(n=0;n<e.length;++n)z(e[n])?r.push([e[n]]):r.push(e[n]);return r}function hv(e){if(!e||e.length===0)return[[0,0]];if(B(e))return[[i=Math.ceil(e),i]];for(var t=!0,n=0;n<e.length;++n)if(!B(e[n])){t=!1;break}if(t)return hv([e]);var r=[];for(n=0;n<e.length;++n)if(B(e[n])){var i=Math.ceil(e[n]);r.push([i,i])}else(i=M(e[n],function(e){return Math.ceil(e)})).length%2==1?r.push(i.concat(i)):r.push(i);return r}function gv(e){for(var t=0,n=0;n<e.length;++n)t+=e[n];return e.length%2==1?2*t:t}var _v=go(function(e,t){e.eachRawSeries(function(n){if(!e.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(e){var n=r.getItemVisual(e,`decal`);n&&(r.ensureUniqueItemVisual(e,`style`).decal=pv(n,t))});var i=r.getVisual(`decal`);i&&(r.getVisual(`style`).decal=pv(i,t))}})}),vv=2e3,yv=4500,bv={PROCESSOR:{SERIES_FILTER:800,AXIS_STATISTICS:920,FILTER:1e3,STATISTIC:5e3,STATISTICS:5e3},VISUAL:{LAYOUT:1e3,PROGRESSIVE_LAYOUT:1100,GLOBAL:vv,CHART:3e3,POST_CHART_LAYOUT:4600,COMPONENT:4e3,BRUSH:5e3,CHART_ITEM:yv,ARIA:6e3,DECAL:7e3}},xv=`__flagInMainProcess`,Sv=`__mainProcessVersion`,Cv=`__pendingUpdate`,wv=`__needsUpdateStatus`,Tv=/^[a-zA-Z0-9_]+$/,Ev=`__connectUpdateStatus`;function Dv(e){return function(){var t=[...arguments];if(!this.isDisposed())return kv(this,e,t);this.id}}function Ov(e){return function(){var t=[...arguments];return kv(this,e,t)}}function kv(e,t,n){return n[0]=n[0]&&n[0].toLowerCase(),Ie.prototype[t].apply(e,n)}var Av,jv,Mv,Nv,Pv,Fv,Iv,Lv,Rv,zv,Bv,Vv,Hv,Uv,Wv,Gv,Kv,qv,Jv,Yv=function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return n(t,e),t}(Ie),Xv=Yv.prototype;Xv.on=Ov(`on`),Xv.off=Ov(`off`);var Zv=function(e){function t(t,n,r){var i=e.call(this,new g_)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],r||={},i.__v_skip=!0,i._dom=t,i[Sv]=1,r.ssr&&(Hi=function(e){var t=Mc(e),n=t.dataIndex;if(n!=null){var r=K();return r.set(`series_index`,t.seriesIndex),r.set(`data_index`,n),t.ssrType&&r.set(`ssr_type`,t.ssrType),r}});var a=i._zr=Wi(t,{renderer:r.renderer||`canvas`,devicePixelRatio:r.devicePixelRatio,width:r.width,height:r.height,ssr:r.ssr,useDirtyRect:G(r.useDirtyRect,!1),useCoarsePointer:G(r.useCoarsePointer,`auto`),pointerSize:r.pointerSize});i._ssr=r.ssr,i._throttledZrFlush=Lg(I(a.flush,a),17),i._updateTheme(n),i._locale=function(e){if(z(e)){var t=Af[e.toUpperCase()]||{};return e===Df||e===Of?w(t):T(w(t),w(Af[kf]),!1)}return T(w(e),w(Af[kf]),!1)}(r.locale||Mf),i._coordSysMgr=new kp;var o=i._api=Wv(i);function s(e,t){return e.__prio-t.__prio}return Zt(ay,s),Zt(ry,s),i._scheduler=new Xg(i,o,ry,ay),i._messageCenter=new Yv,i._initEvents(),i.resize=I(i.resize,i),a.animation.on(`frame`,i._onframe,i),zv(a,i),Bv(a,i),fe(i),i}return n(t,e),t.prototype._onframe=function(){if(!this._disposed){var e=this._scheduler,t=this._model,n=this._api;if(qv(this),this[Cv]){var r=this[Cv].silent;this[xv]=!0,Jv(this);try{Av(this),Nv.update.call(this,null,this[Cv].updateParams)}catch(e){throw this[xv]=!1,this[Cv]=null,e}this._zr.flush(),this[xv]=!1,this[Cv]=null,Lv.call(this,r),Rv.call(this,r)}else if(e.unfinished){var i=1;do{e.unfinished=!1;var a=c.getTime();e.performSeriesTasks(t),e.performDataProcessorTasks(t),Fv(this,t),e.performVisualTasks(t),Uv(this,this._model,n,`remain`,{}),i-=c.getTime()-a}while(i>0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,t,n){if(!this[xv]){if(this._disposed)this.id;else{var r,i,a;if(V(t)&&(n=t.lazyUpdate,r=t.silent,i=t.replaceMerge,a=t.transition,t=t.notMerge),this[xv]=!0,Jv(this),!this._model||t){var o=new wm(this._api),s=this._theme,c=this._model=new ym;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,s,this._locale,o)}this._model.setOption(e,{replaceMerge:i},iy);var l={seriesTransition:a,optionChanged:!0};if(n)this[Cv]={silent:r,updateParams:l},this[xv]=!1,this.getZr().wakeUp();else{try{Av(this),Nv.update.call(this,null,l)}catch(e){throw this[Cv]=null,this[xv]=!1,e}this._ssr||this._zr.flush(),this[Cv]=null,this[xv]=!1,Lv.call(this,r),Rv.call(this,r)}}}},t.prototype.setTheme=function(e,t){if(!this[xv]){if(this._disposed)this.id;else{var n=this._model;if(n){var r=t&&t.silent,i=null;this[Cv]&&(r??=this[Cv].silent,i=this[Cv].updateParams,this[Cv]=null),this[xv]=!0,Jv(this);try{this._updateTheme(e),n.setTheme(this._theme),Av(this),Nv.update.call(this,{type:`setTheme`},i)}catch(e){throw this[xv]=!1,e}this[xv]=!1,Lv.call(this,r),Rv.call(this,r)}}}},t.prototype._updateTheme=function(e){z(e)&&(e=oy[e]),e&&((e=w(e))&&Gm(e,!0),this._theme=e)},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||i.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return e||={},this._zr.painter.getRenderedCanvas({backgroundColor:e.backgroundColor||this._model.get(`backgroundColor`),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return e||={},this._zr.painter.renderToString({useViewBox:e.useViewBox})},t.prototype.getSvgDataURL=function(){var e=this._zr;return j(e.storage.getDisplayList(),function(e){e.stopAnimation(null,!0)}),e.painter.toDataURL()},t.prototype.getDataURL=function(e){if(!this._disposed){var t=(e||={}).excludeComponents,n=this._model,r=[],i=this;j(t,function(e){n.eachComponent({mainType:e},function(e){var t=i._componentsMap[e.__viewId];t.group.ignore||(r.push(t),t.group.ignore=!0)})});var a=this._zr.painter.getType()===`svg`?this.getSvgDataURL():this.renderToCanvas(e).toDataURL(`image/`+(e&&e.type||`png`));return j(r,function(e){e.group.ignore=!1}),a}this.id},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var t=e.type===`svg`,n=this.group,r=Math.min,i=Math.max,a=1/0;if(ly[n]){var o=a,s=a,l=-1/0,u=-1/0,d=[],f=e&&e.pixelRatio||this.getDevicePixelRatio();j(cy,function(a,c){if(a.group===n){var f=t?a.getZr().painter.getSvgDom().innerHTML:a.renderToCanvas(w(e)),p=a.getDom().getBoundingClientRect();o=r(p.left,o),s=r(p.top,s),l=i(p.right,l),u=i(p.bottom,u),d.push({dom:f,left:p.left,top:p.top})}});var p=(l*=f)-(o*=f),m=(u*=f)-(s*=f),h=c.createCanvas(),g=Wi(h,{renderer:t?`svg`:`canvas`});if(g.resize({width:p,height:m}),t){var _=``;return j(d,function(e){var t=e.left-o,n=e.top-s;_+=`<g transform="translate(`+t+`,`+n+`)">`+e.dom+`</g>`}),g.painter.getSvgRoot().innerHTML=_,e.connectedBackgroundColor&&g.painter.setBackgroundColor(e.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return e.connectedBackgroundColor&&g.add(new hc({shape:{x:0,y:0,width:p,height:m},style:{fill:e.connectedBackgroundColor}})),j(d,function(e){var t=new cc({style:{x:e.left*f-o,y:e.top*f-s,image:e.dom}});g.add(t)}),g.refreshImmediately(),h.toDataURL(`image/`+(e&&e.type||`png`))}return this.getDataURL(e)}this.id},t.prototype.convertToPixel=function(e,t,n){return Pv(this,`convertToPixel`,e,t,n)},t.prototype.convertToLayout=function(e,t,n){return Pv(this,`convertToLayout`,e,t,n)},t.prototype.convertFromPixel=function(e,t,n){return Pv(this,`convertFromPixel`,e,t,n)},t.prototype.containPixel=function(e,t){var n;if(!this._disposed)return j(Ga(this._model,e),function(e,r){r.indexOf(`Models`)>=0&&j(e,function(e){var i=e.coordinateSystem;if(i&&i.containPoint)n||=!!i.containPoint(t);else if(r===`seriesModels`){var a=this._chartsMap[e.__viewId];a&&a.containPoint&&(n||=a.containPoint(t,e))}},this)},this),!!n;this.id},t.prototype.getVisual=function(e,t){var n=Ga(this._model,e,{defaultMainType:`series`}),r=n.seriesModel.getData(),i=n.hasOwnProperty(`dataIndexInside`)?n.dataIndexInside:n.hasOwnProperty(`dataIndex`)?r.indexOfRawIndex(n.dataIndex):null;return i==null?function(e,t){switch(t){case`color`:return e.getVisual(`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getVisual(`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getVisual(t)}}(r,t):function(e,t,n){switch(n){case`color`:return e.getItemVisual(t,`style`)[e.getVisual(`drawType`)];case`opacity`:return e.getItemVisual(t,`style`).opacity;case`symbol`:case`symbolSize`:case`liftZ`:return e.getItemVisual(t,n)}}(r,i,t)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;j($v,function(t){var n=function(n){var r,i=e.getModel(),a=n.target;if(t===`globalout`?r={}:a&&C_(a,function(e){var t=Mc(e);if(t&&t.dataIndex!=null){var n=t.dataModel||i.getSeriesByIndex(t.seriesIndex);return r=n&&n.getDataParams(t.dataIndex,t.dataType,a)||{},!0}if(t.eventData)return r=E({},t.eventData),!0},!0),r){var o=r.componentType,s=r.componentIndex;o!==`markLine`&&o!==`markPoint`&&o!==`markArea`||(o=`series`,s=r.seriesIndex);var c=o&&s!=null&&i.getComponent(o,s),l=c&&e[c.mainType===`series`?`_chartsMap`:`_componentsMap`][c.__viewId];r.event=n,r.type=t,e._$eventProcessor.eventInfo={targetEl:a,packedEvent:r,model:c,view:l},e.trigger(t,r)}};n.zrEventfulCallAtLast=!0,e._zr.on(t,n,e)});var t=this._messageCenter;j(ny,function(n,r){t.on(r,function(t){e.trigger(r,t)})}),function(e,t,n){e.on(`selectchanged`,function(e){var r=n.getModel();e.isFromClick?(S_(`map`,`selectchanged`,t,r,e),S_(`pie`,`selectchanged`,t,r,e)):e.fromAction===`select`?(S_(`map`,`selected`,t,r,e),S_(`pie`,`selected`,t,r,e)):e.fromAction===`unselect`&&(S_(`map`,`unselected`,t,r,e),S_(`pie`,`unselected`,t,r,e))})}(t,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed?this.id:this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed)this.id;else{this._disposed=!0,this.getDom()&&Ya(this.getDom(),dy,``);var e=this,t=e._api,n=e._model;j(e._componentsViews,function(e){e.dispose(n,t)}),j(e._chartsViews,function(e){e.dispose(n,t)}),e._zr.dispose(),e._dom=e._model=e._chartsMap=e._componentsMap=e._chartsViews=e._componentsViews=e._scheduler=e._api=e._zr=e._throttledZrFlush=e._theme=e._coordSysMgr=e._messageCenter=null,delete cy[e.id]}},t.prototype.resize=function(e){if(!this[xv]){if(this._disposed)this.id;else{this._zr.resize(e);var t=this._model;if(this._loadingFX&&this._loadingFX.resize(),t){var n=t.resetOption(`media`),r=e&&e.silent;this[Cv]&&(r??=this[Cv].silent,n=!0,this[Cv]=null),this[xv]=!0,Jv(this);try{n&&Av(this),Nv.update.call(this,{type:`resize`,animation:E({duration:0},e&&e.animation)})}catch(e){throw this[xv]=!1,e}this[xv]=!1,Lv.call(this,r),Rv.call(this,r)}}}},t.prototype.showLoading=function(e,t){if(this._disposed)this.id;else if(V(e)&&(t=e,e=``),e||=`default`,this.hideLoading(),sy[e]){var n=sy[e](this._api,t),r=this._zr;this._loadingFX=n,r.add(n)}},t.prototype.hideLoading=function(){this._disposed?this.id:(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var t=E({},e);return t.type=ty[e.type],t},t.prototype.dispatchAction=function(e,t){if(this._disposed)this.id;else if(V(t)||(t={silent:!!t}),ey[e.type]&&this._model){if(this[xv])this._pendingActions.push(e);else{var n=t.silent;Iv.call(this,e,n);var r=t.flush;r?this._zr.flush():!1!==r&&i.browser.weChat&&this._throttledZrFlush(),Lv.call(this,n),Rv.call(this,n)}}},t.prototype.updateLabelLayout=function(){w_.trigger(`series:layoutlabels`,this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(this._disposed)this.id;else{var t=e.seriesIndex;this.getModel().getSeriesByIndex(t).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(e){e.clearColorPalette(),e.eachSeries(function(e){e.clearColorPalette()})}function t(e){for(var t=[],n=e.currentStates,r=0;r<n.length;r++){var i=n[r];i!==`emphasis`&&i!==`blur`&&i!==`select`&&t.push(i)}e.selected&&e.states.select&&t.push(`select`),e.hoverState===2&&e.states.emphasis?t.push(`emphasis`):e.hoverState===1&&e.states.blur&&t.push(`blur`),e.useStates(t)}function r(e,t){if(!e.preventAutoZ){var n=Ud(e);t.eachRendered(function(e){return Gd(e,n.z,n.zlevel),!0})}}function a(e,t){t.eachRendered(function(e){if(!td(e)){var t=e.getTextContent(),n=e.getTextGuideLine();e.stateTransition&&=null,t&&t.stateTransition&&(t.stateTransition=null),n&&n.stateTransition&&(n.stateTransition=null),e.hasState()?(e.prevStates=e.currentStates,e.clearStates()):e.prevStates&&=null}})}function o(e,n){var r=e.getModel(`stateAnimation`),i=e.isAnimationEnabled(),a=r.get(`duration`),o=a>0?{duration:a,delay:r.get(`delay`),easing:r.get(`easing`)}:null;n.eachRendered(function(e){if(e.states&&e.states.emphasis){if(td(e))return;if(e instanceof X&&function(e){var t=Gc(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var n=e.states.select||{};t.selectFill=n.style&&n.style.fill||null,t.selectStroke=n.style&&n.style.stroke||null}(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(i){e.stateTransition=o;var r=e.getTextContent(),a=e.getTextGuideLine();r&&(r.stateTransition=o),a&&(a.stateTransition=o)}e.__dirty&&t(e)}})}Av=function(e){var t=e._model;D_(t).prepare={};var n=e._scheduler;n.restorePipelines(e._zr,e._model),n.prepareStageTasks(),jv(e,!0),jv(e,!1),n.plan()},jv=function(e,t){for(var n=e._model,r=e._scheduler,i=t?e._componentsViews:e._chartsViews,a=t?e._componentsMap:e._chartsMap,o=e._zr,s=e._api,c=0;c<i.length;c++)i[c].__alive=!1;function l(e){var c=e.__requireNewView;e.__requireNewView=!1;var l=`_ec_`+e.id+`_`+e.type,u=!c&&a[l];if(!u){var d=yo(e.type);(u=new(t?wg.getClass(d.main,d.sub):Og.getClass(d.sub))).init(n,s),a[l]=u,i.push(u),o.add(u.group)}e.__viewId=u.__id=l,u.__alive=!0,u.__model=e,u.group.__ecComponentInfo={mainType:e.mainType,index:e.componentIndex},!t&&r.prepareView(u,e,n,s)}for(t?n.eachComponent(function(e,t){e!==`series`&&l(t)}):n.eachSeries(l),c=0;c<i.length;){var u=i[c];u.__alive?c++:(!t&&u.renderTask.dispose(),o.remove(u.group),u.dispose(n,s),i.splice(c,1),a[u.__id]===u&&delete a[u.__id],u.__id=u.group.__ecComponentInfo=null)}},Mv=function(e,t,n,r,i){var a=e._model;if(a.setUpdatePayload(n),r){var o,s=function(e,t,n){var r={};r[t+`Id`]=e[t+`Id`],r[t+`Index`]=e[t+`Index`],r[t+`Name`]=e[t+`Name`];var i={mainType:t,query:r};return n&&(i.subType=n),i}(n,r,i),c=n.excludeSeriesId;c!=null&&(o=K(),j(ja(c),function(e){var t=za(e,null);t!=null&&o.set(t,!0)})),a&&a.eachComponent(s,function(t){if(!o||o.get(t.id)==null){if(Il(n)){if(t instanceof gg)n.type!==`highlight`||n.notBlur||t.get([`emphasis`,`disabled`])||function(e,t,n){var r=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=Ha(i,t);a=(L(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),c=0;!o&&c<s;)o=i.getItemGraphicEl(c++);if(o){var l=Mc(o);Cl(r,l.focus,l.blurScope,n)}else{var u=e.get([`emphasis`,`focus`]),d=e.get([`emphasis`,`blurScope`]);u!=null&&Cl(r,u,d,n)}}}(t,n,e._api);else{var r=Tl(t.mainType,t.componentIndex,n.name,e._api),i=r.focusSelf,a=r.dispatchers;n.type===`highlight`&&i&&!n.notBlur&&wl(t.mainType,t.componentIndex,e._api),a&&j(a,function(e){n.type===`highlight`?gl(e):_l(e)})}}else Fl(n)&&t instanceof gg&&(function(e,t){if(Fl(t)){var n=t.dataType,r=Ha(e.getData(n),t);L(r)||(r=[r]),e[t.type===`toggleSelect`?`toggleSelect`:t.type===`select`?`select`:`unselect`](r,n)}}(t,n,e._api),El(t),Kv(e))}},e),a&&a.eachComponent(s,function(t){o&&o.get(t.id)!=null||l(e[r===`series`?`_chartsMap`:`_componentsMap`][t.__viewId])},e)}else j([].concat(e._componentsViews,e._chartsViews),l);function l(r){r&&r.__alive&&r[t]&&r[t](r.__model,a,e._api,n)}},Nv={prepareAndUpdate:function(e){Av(this),Nv.update.call(this,e,e&&{optionChanged:e.newOption!=null})},update:function(t,n){var r=this._model,i=this._api,a=this._zr,o=this._coordSysMgr,s=this._scheduler;if(r){(function(e){D_(e).fullUpdate={}})(r),r.setUpdatePayload(t),s.restoreData(r,t),s.performSeriesTasks(r),o.create(r,i),w_.trigger(`coordsys:aftercreate`,r,i),s.performDataProcessorTasks(r,t),Fv(this,r),o.update(r,i),e(r),s.performVisualTasks(r,t);var c=r.get(`backgroundColor`)||`transparent`;a.setBackgroundColor(c);var l=r.get(`darkMode`);l!=null&&l!==`auto`&&a.setDarkMode(l),Vv(this,r,i,t,n),w_.trigger(`afterupdate`,r,i)}},updateTransform:function(e){var t=this,n=t._model,r=t._api;if(n){n.setUpdatePayload(e);var i=[];n.eachComponent(function(a,o){if(a!==`series`){var s=t.getViewOfComponentModel(o);if(s&&s.__alive){if(s.updateTransform){var c=s.updateTransform(o,n,r,e);c&&c.update&&i.push(s)}else i.push(s)}}});var a=K();n.eachSeries(function(i){var o=t._chartsMap[i.__viewId],s=i.pipelineContext;if(o.updateTransform&&!s.progressiveRender){var c=o.updateTransform(i,n,r,e);c&&c.update&&a.set(i.uid,1)}else a.set(i.uid,1)}),t._scheduler.performVisualTasks(n,e,{setDirty:!0,dirtyMap:a}),Uv(t,n,r,e,{},a),w_.trigger(`afterupdate`,n,r)}},updateView:function(t){var n=this._model;n&&(n.setUpdatePayload(t),Og.markUpdateMethod(t,`updateView`),e(n),this._scheduler.performVisualTasks(n,t,{setDirty:!0}),Vv(this,n,this._api,t,{}),w_.trigger(`afterupdate`,n,this._api))},updateVisual:function(t){var n=this,r=this._model;r&&(r.setUpdatePayload(t),r.eachSeries(function(e){e.getData().clearAllVisual()}),Og.markUpdateMethod(t,`updateVisual`),e(r),this._scheduler.performVisualTasks(r,t,{visualType:`visual`,setDirty:!0}),r.eachComponent(function(e,i){if(e!==`series`){var a=n.getViewOfComponentModel(i);a&&a.__alive&&a.updateVisual(i,r,n._api,t)}}),r.eachSeries(function(e){n._chartsMap[e.__viewId].updateVisual(e,r,n._api,t)}),w_.trigger(`afterupdate`,r,this._api))},updateLayout:function(e){Nv.update.call(this,e)}},Pv=function(e,t,n,r,i){if(e._disposed)e.id;else for(var a,o=e._model,s=e._coordSysMgr.getCoordinateSystems(),c=Ga(o,n),l=0;l<s.length;l++){var u=s[l];if(u[t]&&(a=u[t](o,c,r,i))!=null)return a}},Fv=function(e,t){var n=e._chartsMap,r=e._scheduler;t.eachSeries(function(e){r.updateStreamModes(e,n[e.__viewId])})},Iv=function(e,t){var n=this,r=this.getModel(),i=e.type,a=e.escapeConnect,o=ey[i],s=(o.update||`update`).split(`:`),c=s.pop(),l=s[0]!=null&&yo(s[0]);this[xv]=!0,Jv(this);var u=[e],d=!1;e.batch&&(d=!0,u=M(e.batch,function(t){return(t=D(E({},t),e)).batch=null,t}));var f,p=[],m=[],h=o.nonRefinedEventType,g=Fl(e),_=Il(e);if(_&&Sl(this._api),j(u,function(t){var i=o.action(t,r,n._api);if(o.refineEvent?m.push(i):f=i,(f||=E({},t)).type=h,p.push(f),_){var a=Ka(e),s=a.queryOptionMap,u=a.mainTypeSpecified?s.keys()[0]:`series`;Mv(n,c,t,u),Kv(n)}else g?(Mv(n,c,t,`series`),Kv(n)):l&&Mv(n,c,t,l.main,l.sub)}),c!==`none`&&!_&&!g&&!l)try{this[Cv]?(Av(this),Nv.update.call(this,e),this[Cv]=null):Nv[c].call(this,e)}catch(e){throw this[xv]=!1,e}if(f=d?{type:h,escapeConnect:a,batch:p}:p[0],this[xv]=!1,!t){var v=void 0;if(o.refineEvent){var y=o.refineEvent(m,e,r,this._api).eventContent;le(V(y)),(v=D({type:o.refinedEventType},y)).fromAction=e.type,v.fromActionPayload=e,v.escapeConnect=!0}var b=this._messageCenter;b.trigger(f.type,f),v&&b.trigger(v.type,v)}},Lv=function(e){for(var t=this._pendingActions;t.length;){var n=t.shift();Iv.call(this,n,e)}},Rv=function(e){!e&&this.trigger(`updated`)},zv=function(e,t){e.on(`rendered`,function(n){t.trigger(`rendered`,n),!e.animation.isFinished()||t[Cv]||t._scheduler.unfinished||t._pendingActions.length?e.refresh():t.trigger(`finished`)})},Bv=function(e,t){e.on(`mouseover`,function(e){var n=C_(e.target,Pl);n&&(function(e,t,n){var r=Mc(e),i=Tl(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&wl(r.componentMainType,r.componentIndex,n),j(a,function(e){return ml(e,t)})):(Cl(r.seriesIndex,r.focus,r.blurScope,n),r.focus===`self`&&wl(r.componentMainType,r.componentIndex,n),ml(e,t))}(n,e,t._api),Kv(t))}).on(`mouseout`,function(e){var n=C_(e.target,Pl);n&&(function(e,t,n){Sl(n);var r=Mc(e),i=Tl(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?j(i,function(e){return hl(e,t)}):hl(e,t)}(n,e,t._api),Kv(t))}).on(`click`,function(e){var n=C_(e.target,function(e){return Mc(e).dataIndex!=null},!0);if(n){var r=n.selected?`unselect`:`select`,i=Mc(n);t._api.dispatchAction({type:r,dataType:i.dataType,dataIndexInside:i.dataIndex,seriesIndex:i.seriesIndex,isFromClick:!0})}})},Vv=function(e,t,n,r,i){(function(e){var t=[],n=[],r=!1;if(e.eachComponent(function(e,i){var a=i.get(`zlevel`)||0,o=i.get(`z`)||0,s=i.getZLevelKey();r||=!!s,(e===`series`?n:t).push({zlevel:a,z:o,idx:i.componentIndex,type:e,key:s})}),r){var i,a,o=t.concat(n);Zt(o,function(e,t){return e.zlevel===t.zlevel?e.z-t.z:e.zlevel-t.zlevel}),j(o,function(t){var n=e.getComponent(t.type,t.idx),r=t.zlevel,o=t.key;i!=null&&(r=Math.max(i,r)),o?(r===i&&o!==a&&r++,a=o):a&&=(r===i&&r++,``),i=r,n.setZLevel(r)})}})(t),Hv(e,t,n,r,i),j(e._chartsViews,function(e){e.__alive=!1}),Uv(e,t,n,r,i),j(e._chartsViews,function(e){e.__alive||e.remove(t,n)})},Hv=function(e,t,n,i,s,c){j(c||e._componentsViews,function(e){var s=e.__model;a(s,e),e.render(s,t,n,i),r(s,e),o(s,e)})},Uv=function(e,t,n,s,c,l){var u=e._scheduler;c=E(c||{},{updatedSeries:t.getSeries()}),w_.trigger(`series:beforeupdate`,t,n,c);var d=!1;t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];n.__alive=!0;var r=n.renderTask;u.updatePayload(r,s),a(t,n),l&&l.get(t.uid)&&r.dirty(),r.perform(u.getPerformArgs(r))&&(d=!0),n.group.silent=!!t.get(`silent`),function(e,t){var n=e.get(`blendMode`)||null;t.eachRendered(function(e){e.isGroup||(e.style.blend=n)})}(t,n),El(t)}),u.unfinished=d||u.unfinished,w_.trigger(`series:layoutlabels`,t,n,c),w_.trigger(`series:transition`,t,n,c),t.eachSeries(function(t){var n=e._chartsMap[t.__viewId];r(t,n),o(t,n)}),function(e,t){var n=e._zr;if(n.painter.type===`canvas`){var r=n.storage,a=0;r.traverse(function(e){e.isGroup||a++});var o=a>G(t.get(`hoverLayerThreshold`),im.hoverLayerThreshold)&&!i.node&&!i.worker;(e._usingTHL||o)&&(t.eachSeries(function(t){if(!t.preventUsingHoverLayer){var n=e._chartsMap[t.__viewId];n.__alive&&n.eachRendered(function(e){var t=e.states.emphasis;t&&t.hoverLayer!==2&&(t.hoverLayer=+!!o)})}}),e._usingTHL=o)}}(e,t),w_.trigger(`series:afterupdate`,t,n,c)},Kv=function(e){e[wv]=!0,e.getZr().wakeUp()},Jv=function(e){e[Sv]=(e[Sv]+1)%1e6},qv=function(e){e[wv]&&(e.getZr().storage.traverse(function(e){td(e)||t(e)}),e[wv]=!1)},Wv=function(e){return new(function(t){function r(){return t!==null&&t.apply(this,arguments)||this}return n(r,t),r.prototype.getCoordinateSystems=function(){return e._coordSysMgr.getCoordinateSystems()},r.prototype.getComponentByElement=function(t){for(;t;){var n=t.__ecComponentInfo;if(n!=null)return e._model.getComponent(n.mainType,n.index);t=t.parent}},r.prototype.enterEmphasis=function(t,n){gl(t,n),Kv(e)},r.prototype.leaveEmphasis=function(t,n){_l(t,n),Kv(e)},r.prototype.enterBlur=function(t){(function(e){ul(e,al)})(t),Kv(e)},r.prototype.leaveBlur=function(t){vl(t),Kv(e)},r.prototype.enterSelect=function(t){yl(t),Kv(e)},r.prototype.leaveSelect=function(t){bl(t),Kv(e)},r.prototype.getModel=function(){return e.getModel()},r.prototype.getViewOfComponentModel=function(t){return e.getViewOfComponentModel(t)},r.prototype.getViewOfSeriesModel=function(t){return e.getViewOfSeriesModel(t)},r.prototype.getECUpdateCycleVersion=function(){return e[Sv]},r.prototype.usingTHL=function(){return e._usingTHL},r}(Hc))(e)},Gv=function(e){function t(e,t){for(var n=0;n<e.length;n++)e[n][Ev]=t}j(ty,function(n,r){e._messageCenter.on(r,function(n){if(ly[e.group]&&e[Ev]!==0){if(n&&n.escapeConnect)return;var r=e.makeActionFromEvent(n),i=[];j(cy,function(t){t!==e&&t.group===e.group&&i.push(t)}),t(i,0),j(i,function(e){e[Ev]!==1&&e.dispatchAction(r)}),t(i,2)}})})}}(),t}(Ie),Qv=Zv.prototype;Qv.on=Dv(`on`),Qv.off=Dv(`off`),Qv.one=function(e,t,n){var r=this;this.on.call(this,e,function n(){var i=[...arguments];t&&t.apply&&t.apply(this,i),r.off(e,n)},n)};var $v=[`click`,`dblclick`,`mouseover`,`mouseout`,`mousemove`,`mousedown`,`mouseup`,`globalout`,`contextmenu`],ey={},ty={},ny={},ry=[],iy=[],ay=[],oy={},sy={},cy={},ly={},uy=new Date-0,dy=`_echarts_instance_`;function fy(e,t,n){var r=!(n&&n.ssr);if(r){var i=function(e){return cy[function(e,t){return e.getAttribute?e.getAttribute(t):e[t]}(e,dy)]}(e);if(i)return i}var a=new Zv(e,t,n);return a.id=`ec_`+uy++,cy[a.id]=a,r&&Ya(e,dy,a.id),Gv(a),w_.trigger(`afterinit`,a),a}function py(e,t){oy[e]=t}function my(e){O(iy,e)<0&&iy.push(e)}function hy(e,t){by(ry,e,t,2e3)}function gy(e,t){w_.on(e,t)}function _y(e,t,n){var r,i,a,o,s;function c(e){return e.toLowerCase()}R(t)&&(n=t,t=``),V(e)?(r=e.type,i=e.event,o=e.update,s=e.publishNonRefinedEvent,n||=e.action,a=e.refineEvent):(r=e,i=t),i=c(i||r);var l=a?c(r):i;ey[r]||(le(Tv.test(r)&&Tv.test(i)),a&&le(i!==r),ey[r]={actionType:r,refinedEventType:i,nonRefinedEventType:l,update:o,action:n,refineEvent:a},ny[i]=1,a&&s&&(ny[l]=1),ty[l]=r)}function vy(e,t){by(ay,e,t,3e3,`visual`,!0)}var yy=[];function by(e,t,n,r,i,a){if((R(t)||V(t))&&(n=t,t=r),!(O(yy,n)>=0)){yy.push(n);var o=Xg.wrapStageHandler(n,i);o.__prio=t,o.__raw=n,e.push(o)}}function xy(e,t){sy[e]=t}var Sy=function(e){var t=(e=w(e)).type;t||Oa(``);var n=t.split(`:`);n.length!==2&&Oa(``);var r=!1;n[0]===`echarts`&&(t=n[1],r=!0),e.__isBuiltIn=r,Ih.set(t,e)};function Cy(e,t,n,r){return{eventContent:{selected:Dl(n),isFromClick:t.isFromClick||!1}}}vy(vv,Gg),vy(yv,qg),vy(yv,Jg),vy(vv,y_),vy(yv,b_),vy(7e3,_v),my(Gm),hy(900,Km),xy(`default`,function(e,t){D(t||={},{text:`loading`,textColor:Xp.color.primary,fontSize:12,fontWeight:`normal`,fontStyle:`normal`,fontFamily:`sans-serif`,maskColor:`rgba(255,255,255,0.8)`,showSpinner:!0,color:Xp.color.theme[0],spinnerRadius:10,lineWidth:5,zlevel:0});var n=new zi,r=new hc({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var i,a=new yc({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new hc({style:{fill:`none`},textContent:a,textConfig:{position:`right`,distance:10},zlevel:t.zlevel,z:10001});return n.add(o),t.showSpinner&&((i=new Pu({shape:{startAngle:-Yg/2,endAngle:-Yg/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:`round`,lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*Yg/2}).start(`circularInOut`),i.animateShape(!0).when(1e3,{startAngle:3*Yg/2}).delay(300).start(`circularInOut`),n.add(i)),n.resize=function(){var n=a.getBoundingRect().width,s=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-2*s-(t.showSpinner&&n?10:0)-n)/2-(t.showSpinner&&n?0:5+n/2)+(t.showSpinner?0:n/2)+(n?0:s),l=e.getHeight()/2;t.showSpinner&&i.setShape({cx:c,cy:l}),o.setShape({x:c-s,y:l-s,width:2*s,height:2*s}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}),_y({type:Yc,event:Yc,update:Yc},ve),_y({type:Xc,event:Xc,update:Xc},ve),_y({type:Zc,event:el,update:Zc,action:ve,refineEvent:Cy,publishNonRefinedEvent:!0}),_y({type:Qc,event:el,update:Qc,action:ve,refineEvent:Cy,publishNonRefinedEvent:!0}),_y({type:$c,event:el,update:$c,action:ve,refineEvent:Cy,publishNonRefinedEvent:!0}),py(`default`,{}),py(`dark`,h_);var wy=[],Ty={registerPreprocessor:my,registerProcessor:hy,registerPostInit:function(e){gy(`afterinit`,e)},registerPostUpdate:function(e){gy(`afterupdate`,e)},registerUpdateLifecycle:gy,registerAction:_y,registerCoordinateSystem:function(e,t){kp.register(e,t)},registerLayout:function(e,t){by(ay,e,t,1e3,`layout`,!0)},registerVisual:vy,registerTransform:Sy,registerLoading:xy,registerMap:function(e,t,n){var r=T_.registerMap;r&&r(e,t,n)},registerImpl:function(e,t){T_[e]=t},PRIORITY:bv,ComponentModel:Q,ComponentView:wg,SeriesModel:gg,ChartView:Og,registerComponentModel:function(e){Q.registerClass(e)},registerComponentView:function(e){wg.registerClass(e)},registerSeriesModel:function(e){gg.registerClass(e)},registerChartView:function(e){Og.registerClass(e)},registerCustomSeries:function(e,t){(function(e,t){E_[e]=t})(e,t)},registerSubTypeDefaulter:function(e,t){Q.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Bi[e]=t}};function Ey(e){L(e)?j(e,function(e){Ey(e)}):O(wy,e)>=0||(wy.push(e),R(e)&&(e={install:e}),e.install(Ty))}function Dy(e,t){t&&(t.font=t.textFont||t.font,q(t,`textStrokeWidth`)&&(e.lineWidth=t.textStrokeWidth),q(t,`textAlign`)&&(e.align=t.textAlign),q(t,`textVerticalAlign`)&&(e.verticalAlign=t.textVerticalAlign),q(t,`textLineHeight`)&&(e.lineHeight=t.textLineHeight),q(t,`textWidth`)&&(e.width=t.textWidth),q(t,`textHeight`)&&(e.height=t.textHeight),q(t,`textBackgroundColor`)&&(e.backgroundColor=t.textBackgroundColor),q(t,`textPadding`)&&(e.padding=t.textPadding),q(t,`textBorderColor`)&&(e.borderColor=t.textBorderColor),q(t,`textBorderWidth`)&&(e.borderWidth=t.textBorderWidth),q(t,`textBorderRadius`)&&(e.borderRadius=t.textBorderRadius),q(t,`textBoxShadowColor`)&&(e.shadowColor=t.textBoxShadowColor),q(t,`textBoxShadowBlur`)&&(e.shadowBlur=t.textBoxShadowBlur),q(t,`textBoxShadowOffsetX`)&&(e.shadowOffsetX=t.textBoxShadowOffsetX),q(t,`textBoxShadowOffsetY`)&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}var Oy={position:[`x`,`y`],scale:[`scaleX`,`scaleY`],origin:[`originX`,`originY`]},ky=F(Oy);N(di,function(e,t){return e[t]=1,e},{}),di.join(`, `);var Ay=[``,`style`,`shape`,`extra`],jy=Ua();function My(e,t,n,r,i){var a=e+`Animation`,o=Zu(e,r,i)||{},s=jy(t).userDuring;return o.duration>0&&(o.during=s?I(Ry,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),E(o,n[a]),o}function Ny(e,t,n,r){var i=(r||={}).dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),c=jy(e),l=t.style;c.userDuring=t.during;var u={},d={};if(function(e,t,n){for(var r=0;r<ky.length;r++){var i=ky[r],a=Oy[i],o=t[i];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(r=0;r<di.length;r++){var s=di[r];t[s]!=null&&(n[s]=t[s])}}(0,t,d),e.type===`compound`)for(var f=e.shape.paths,p=t.shape.paths,m=0;m<p.length;m++)By(`shape`,p[m],f[m]);else By(`shape`,t,d),By(`extra`,t,d);if(!a&&s&&(function(e,t,n){for(var r=t.transition,i=Fy(r)?di:ja(r||[]),a=0;a<i.length;a++){var o=i[a];o!==`style`&&o!==`shape`&&o!==`extra`&&(n[o]=e[o])}}(e,t,u),zy(`shape`,e,t,u),zy(`extra`,e,t,u),function(e,t,n,r){if(n){var i,a=e.style;if(a){var o=n.transition,s=t.transition;if(o&&!Fy(o)){var c=ja(o);!i&&(i=r.style={});for(var l=0;l<c.length;l++){var u=a[m=c[l]];i[m]=u}}else if(e.getAnimationStyleProps&&(Fy(s)||Fy(o)||O(s,`style`)>=0)){var d=e.getAnimationStyleProps(),f=d?d.style:null;if(f){!i&&(i=r.style={});var p=F(n);for(l=0;l<p.length;l++){var m;f[m=p[l]]&&(u=a[m],i[m]=u)}}}}}}(e,t,l,u)),d.style=l,function(e,t,n){var r=t.style;if(!e.isGroup&&r){if(n){e.useStyle({});for(var i=e.animators,a=0;a<i.length;a++){var o=i[a];o.targetName===`style`&&o.changeTarget(e.style)}}e.setStyle(r)}t&&(t.style=null,t&&e.attr(t),t.style=r)}(e,d,o),function(e,t){q(t,`silent`)&&(e.silent=t.silent),q(t,`ignore`)&&(e.ignore=t.ignore),e instanceof rs&&q(t,`invisible`)&&(e.invisible=t.invisible),e instanceof X&&q(t,`autoBatch`)&&(e.autoBatch=t.autoBatch)}(e,t),s){if(a){var h={};j(Ay,function(e){var n=e?t[e]:t;n&&n.enterFrom&&(e&&(h[e]=h[e]||{}),E(e?h[e]:h,n.enterFrom))});var g=My(`enter`,e,t,n,i);g.duration>0&&e.animateFrom(h,g)}else(function(e,t,n,r,i){if(i){var a=My(`update`,e,t,r,n);a.duration>0&&e.animateFrom(i,a)}})(e,t,i||0,n,u)}Py(e,t),l?e.dirty():e.markRedraw()}function Py(e,t){for(var n=jy(e).leaveToProps,r=0;r<Ay.length;r++){var i=Ay[r],a=i?t[i]:t;a&&a.leaveTo&&(n||=jy(e).leaveToProps={},i&&(n[i]=n[i]||{}),E(i?n[i]:n,a.leaveTo))}}function Fy(e){return e===`all`}var Iy={},Ly={setTransform:function(e,t){return Iy.el[e]=t,this},getTransform:function(e){return Iy.el[e]},setShape:function(e,t){var n=Iy.el;return(n.shape||={})[e]=t,n.dirtyShape&&n.dirtyShape(),this},getShape:function(e){var t=Iy.el.shape;if(t)return t[e]},setStyle:function(e,t){var n=Iy.el,r=n.style;return r&&(r[e]=t,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(e){var t=Iy.el.style;if(t)return t[e]},setExtra:function(e,t){return(Iy.el.extra||(Iy.el.extra={}))[e]=t,this},getExtra:function(e){var t=Iy.el.extra;if(t)return t[e]}};function Ry(){var e=this,t=e.el;if(t){var n=jy(t).userDuring,r=e.userDuring;n===r?(Iy.el=t,r(Ly)):e.el=e.userDuring=null}}function zy(e,t,n,r){var i=n[e];if(i){var a,o=t[e];if(o){var s=n.transition,c=i.transition;if(c){if(!a&&(a=r[e]={}),Fy(c))E(a,o);else for(var l=ja(c),u=0;u<l.length;u++){var d=o[p=l[u]];a[p]=d}}else if(Fy(s)||O(s,e)>=0){!a&&(a=r[e]={});var f=F(o);for(u=0;u<f.length;u++){var p;d=o[p=f[u]],Vy(i[p],d)&&(a[p]=d)}}}}}function By(e,t,n){var r=t[e];if(r)for(var i=n[e]={},a=F(r),o=0;o<a.length;o++){var s=a[o];i[s]=Cr(r[s])}}function Vy(e,t){return A(e)?e!==t:e!=null&&isFinite(e)}var Hy=Ua(),Uy=[`percent`,`easing`,`shape`,`style`,`extra`];function Wy(e,t,n){if(n.isAnimationEnabled()&&t){if(L(t))j(t,function(t){Wy(e,t,n)});else{var r=t.keyframes,i=t.duration;if(n&&i==null){var a=Zu(`enter`,n,0);i=a&&a.duration}if(r&&i){var o=Hy(e);j(Ay,function(n){var a;n&&!e[n]||(r.sort(function(e,t){return e.percent-t.percent}),j(r,function(r){var s=e.animators,c=n?r[n]:r;if(c){var l=F(c);if(n||(l=P(l,function(e){return O(Uy,e)<0})),l.length){a||((a=e.animate(n,t.loop,!0)).scope=`keyframe`);for(var u=0;u<s.length;u++)s[u]!==a&&s[u].targetName===a.targetName&&s[u].stopTracks(l);n&&(o[n]=o[n]||{});var d=n?o[n]:o;j(l,function(t){d[t]=((n?e[n]:e)||{})[t]}),a.whenWithKeys(i*r.percent,c,l,r.easing)}}}),a&&a.delay(t.delay||0).duration(i).start(t.easing))})}}}}function Gy(e,t){var n;return j(t,function(t){e[t]!=null&&e[t]!==`auto`&&(n=!0)}),n}var Ky=[`transition`,`enterFrom`,`leaveTo`],qy=Ky.concat([`enterAnimation`,`updateAnimation`,`leaveAnimation`]);function Jy(e,t,n){if(n&&(!e[n]&&t[n]&&(e[n]={}),e=e[n],t=t[n]),e&&t)for(var r=n?Ky:qy,i=0;i<r.length;i++){var a=r[i];e[a]==null&&t[a]!=null&&(e[a]=t[a])}}var Yy=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.preventAutoZ=!0,n}return n(t,e),t.prototype.mergeOption=function(t,n){var r=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,t,n),this.option.elements=r},t.prototype.optionUpdated=function(e,t){var n=this.option,r=(t?n:e).elements,i=n.elements=t?[]:n.elements,a=[];this._flatten(r,a,null);var o=Ia(i,a,`normalMerge`),s=this._elOptionsToUpdate=[];j(o,function(e,t){var n=e.newOption;n&&(s.push(n),function(e,t){var n=e.existing;if(t.id=e.keyInfo.id,!t.type&&n&&(t.type=n.type),t.parentId==null){var r=t.parentOption;r?t.parentId=r.id:n&&(t.parentId=n.parentId)}t.parentOption=null}(e,n),function(e,t,n){var r=E({},n),i=e[t],a=n.$action||`merge`;a===`merge`?i?(T(i,r,!0),Kp(i,r,{ignoreSize:!0}),Jp(n,i),Jy(n,i),Jy(n,i,`shape`),Jy(n,i,`style`),Jy(n,i,`extra`),n.clipPath=i.clipPath):e[t]=r:a===`replace`?e[t]=r:a===`remove`&&i&&(e[t]=null)}(i,t,n),function(e,t){if(e&&(e.hv=t.hv=[Gy(t,[`left`,`right`]),Gy(t,[`top`,`bottom`])],e.type===`group`)){var n=e,r=t;n.width??=r.width=0,n.height??=r.height=0}}(i[t],n))},this),n.elements=P(i,function(e){return e&&delete e.$action,e!=null})},t.prototype._flatten=function(e,t,n){j(e,function(e){if(e){n&&(e.parentOption=n),t.push(e);var r=e.children;r&&r.length&&this._flatten(r,t,e),delete e.children}},this)},t.prototype.useElOptionsToUpdate=function(){var e=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,e},t.type=`graphic`,t.defaultOption={elements:[]},t}(Q),Xy={path:null,compoundPath:null,group:zi,image:cc,text:yc},Zy=Ua(),Qy=function(e){function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return n(t,e),t.prototype.init=function(){this._elMap=K()},t.prototype.render=function(e,t,n){e!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=e,this._updateElements(e),this._relocate(e,n)},t.prototype._updateElements=function(e){var t=e.useElOptionsToUpdate();if(t){var n=this._elMap,r=this.group,i=e.get(`z`),a=e.get(`zlevel`);j(t,function(t){var o=za(t.id,null),s=o==null?null:n.get(o),c=za(t.parentId,null),l=c==null?r:n.get(c),u=t.type,d=t.style;u===`text`&&d&&t.hv&&t.hv[1]&&(d.textVerticalAlign=d.textBaseline=d.verticalAlign=d.align=null);var f=t.textContent,p=t.textConfig;if(d&&function(e,t,n,r){return e&&(e.legacy||!1!==e.legacy&&!n&&!r&&t!==`tspan`&&(t===`text`||q(e,`text`)))}(d,u,!!p,!!f)){var m=function(e,t,n){var r,i,a,o=e;if(t===`text`)a=o;else{a={},q(o,`text`)&&(a.text=o.text),q(o,`rich`)&&(a.rich=o.rich),q(o,`textFill`)&&(a.fill=o.textFill),q(o,`textStroke`)&&(a.stroke=o.textStroke),q(o,`fontFamily`)&&(a.fontFamily=o.fontFamily),q(o,`fontSize`)&&(a.fontSize=o.fontSize),q(o,`fontStyle`)&&(a.fontStyle=o.fontStyle),q(o,`fontWeight`)&&(a.fontWeight=o.fontWeight),i={type:`text`,style:a,silent:!0},r={};var s=q(o,`textPosition`);n?r.position=s?o.textPosition:`inside`:s&&(r.position=o.textPosition),q(o,`textPosition`)&&(r.position=o.textPosition),q(o,`textOffset`)&&(r.offset=o.textOffset),q(o,`textRotation`)&&(r.rotation=o.textRotation),q(o,`textDistance`)&&(r.distance=o.textDistance)}return Dy(a,e),j(a.rich,function(e){Dy(e,e)}),{textConfig:r,textContent:i}}(d,u,!0);!p&&m.textConfig&&(p=t.textConfig=m.textConfig),!f&&m.textContent&&(f=m.textContent)}var h=function(e){return e=E({},e),j([`id`,`parentId`,`$action`,`hv`,`bounding`,`textContent`,`clipPath`].concat(Ip),function(t){delete e[t]}),e}(t),g=t.$action||`merge`,_=g===`merge`,v=g===`replace`;if(_){var y=s;(D=!s)?y=eb(o,l,t.type,n):(y&&(Zy(y).isNew=!1),function(e){e.stopAnimation(`keyframe`),e.attr(Hy(e))}(y)),y&&(Ny(y,h,e,{isInit:D}),nb(y,t,i,a))}else if(v){tb(s,t,n,e);var b=eb(o,l,t.type,n);b&&(Ny(b,h,e,{isInit:!0}),nb(b,t,i,a))}else g===`remove`&&(Py(s,t),tb(s,t,n,e));var x=n.get(o);if(x&&f){if(_){var S=x.getTextContent();S?S.attr(f):x.setTextContent(new yc(f))}else v&&x.setTextContent(new yc(f))}if(x){var C=t.clipPath;if(C){var w=C.type,T=void 0,D=!1;if(_){var O=x.getClipPath();T=(D=!O||Zy(O).type!==w)?$y(w):O}else v&&(D=!0,T=$y(w));x.setClipPath(T),Ny(T,C,e,{isInit:D}),Wy(T,C.keyframeAnimation,e)}var k=Zy(x);x.setTextConfig(p),k.option=t,function(e,t,n){var r=Mc(e).eventData;e.silent||e.ignore||r||(r=Mc(e).eventData={componentType:`graphic`,componentIndex:t.componentIndex,name:e.name}),r&&(r.info=n.info)}(x,e,t),Id({el:x,componentModel:e,itemName:x.name,itemTooltipOption:t.tooltip}),Wy(x,t.keyframeAnimation,e)}})}},t.prototype._relocate=function(e,t){for(var n=e.option.elements,r=this.group,i=this._elMap,a=t.getWidth(),o=t.getHeight(),s=[`x`,`y`],c=0;c<n.length;c++)if((m=(p=za((f=n[c]).id,null))==null?null:i.get(p))&&m.isGroup){var l=(h=m.parent)===r,u=Zy(m),d=Zy(h);u.width=ia(u.option.width,l?a:d.width)||0,u.height=ia(u.option.height,l?o:d.height)||0}for(c=n.length-1;c>=0;c--){var f,p,m;if(m=(p=za((f=n[c]).id,null))==null?null:i.get(p)){var h=m.parent,g=(d=Zy(h),{}),_=Wp(m,f,h===r?{width:a,height:o}:{width:d.width,height:d.height},null,{hv:f.hv,boundingMode:f.bounding},g);if(!Zy(m).isNew&&_){for(var v=f.transition,y={},b=0;b<s.length;b++){var x=s[b],S=g[x];v&&(Fy(v)||O(v,x)>=0)?y[x]=S:m[x]=S}$u(m,y,e,0)}else m.attr(g)}}},t.prototype._clear=function(){var e=this,t=this._elMap;t.each(function(n){tb(n,Zy(n).option,t,e._lastGraphicModel)}),this._elMap=K()},t.prototype.dispose=function(){this._clear()},t.type=`graphic`,t}(wg);function $y(e){var t=new(q(Xy,e)?Xy[e]:md(e))({});return Zy(t).type=e,t}function eb(e,t,n,r){var i=$y(n);return t.add(i),r.set(e,i),Zy(i).id=e,Zy(i).isNew=!0,i}function tb(e,t,n,r){e&&e.parent&&(e.type===`group`&&e.traverse(function(e){tb(e,t,n,r)}),function(e,t,n,r){if(e){var i=e.parent,a=jy(e).leaveToProps;if(a){var o=My(`update`,e,t,n,0);o.done=function(){i&&i.remove(e),r&&r()},e.animateTo(a,o)}else i&&i.remove(e),r&&r()}}(e,t,r),n.removeKey(Zy(e).id))}function nb(e,t,n,r){e.isGroup||j([[`cursor`,rs.prototype.cursor],[`zlevel`,r||0],[`z`,n||0],[`z2`,0]],function(n){var r=n[0];q(t,r)?e[r]=G(t[r],n[1]):e[r]??(e[r]=n[1])}),j(F(t),function(n){if(n.indexOf(`on`)===0){var r=t[n];e[n]=R(r)?r:null}}),q(t,`draggable`)&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function rb(e){e.registerComponentModel(Yy),e.registerComponentView(Qy),e.registerPreprocessor(function(e){var t=e.graphic;L(t)?e.graphic=t[0]&&t[0].elements?[e.graphic[0]]:[{elements:t}]:t&&!t.elements&&(e.graphic=[{elements:[t]}])})}var ib=Math.sin,ab=Math.cos,ob=Math.PI,sb=2*Math.PI,cb=180/ob,lb=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str=``,this._p=10**(e||4)},e.prototype.moveTo=function(e,t){this._add(`M`,e,t)},e.prototype.lineTo=function(e,t){this._add(`L`,e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,a){this._add(`C`,e,t,n,r,i,a)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add(`Q`,e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,a){this.ellipse(e,t,n,n,0,r,i,a)},e.prototype.ellipse=function(e,t,n,r,i,a,o,s){var c=o-a,l=!s,u=Math.abs(c),d=rr(u-sb)||(l?c>=sb:-c>=sb),f=c>0?c%sb:c%sb+sb,p=!1;p=!!d||!rr(u)&&f>=ob==!!l;var m=e+n*ab(a),h=t+r*ib(a);this._start&&this._add(`M`,m,h);var g=Math.round(i*cb);if(d){var _=1/this._p,v=(l?1:-1)*(sb-_);this._add(`A`,n,r,g,1,+l,e+n*ab(a+v),t+r*ib(a+v)),_>.01&&this._add(`A`,n,r,g,0,+l,m,h)}else{var y=e+n*ab(o),b=t+r*ib(o);this._add(`A`,n,r,g,+p,+l,y,b)}},e.prototype.rect=function(e,t,n,r){this._add(`M`,e,t),this._add(`l`,n,0),this._add(`l`,0,r),this._add(`l`,-n,0),this._add(`Z`)},e.prototype.closePath=function(){this._d.length>0&&this._add(`Z`)},e.prototype._add=function(e,t,n,r,i,a,o,s,c){for(var l=[],u=this._p,d=1;d<arguments.length;d++){var f=arguments[d];if(isNaN(f))return void(this._invalid=!0);l.push(Math.round(f*u)/u)}this._d.push(e+l.join(` `)),this._start=e===`Z`},e.prototype.generateStr=function(){this._str=this._invalid?``:this._d.join(``),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),ub=`none`,db=Math.round,fb=[`lineCap`,`miterLimit`,`lineJoin`],pb=M(fb,function(e){return`stroke-`+e.toLowerCase()});function mb(e,t,n,r){var i=t.opacity==null?1:t.opacity;if(n instanceof cc)e(`opacity`,i);else{if(function(e){var t=e.fill;return t!=null&&t!==ub}(t)){var a=tr(t.fill);e(`fill`,a.color);var o=t.fillOpacity==null?a.opacity*i:t.fillOpacity*a.opacity*i;(r||o<1)&&e(`fill-opacity`,o)}else e(`fill`,ub);if(function(e){var t=e.stroke;return t!=null&&t!==ub}(t)){var s=tr(t.stroke);e(`stroke`,s.color);var c=t.strokeNoScale?n.getLineScale():1,l=c?(t.lineWidth||0)/c:0,u=t.strokeOpacity==null?s.opacity*i:t.strokeOpacity*s.opacity*i,d=t.strokeFirst;if((r||l!==1)&&e(`stroke-width`,l),(r||d)&&e(`paint-order`,d?`stroke`:`fill`),(r||u<1)&&e(`stroke-opacity`,u),t.lineDash){var f=J_(n),p=f[0],m=f[1];p&&(m=db(m||0),e(`stroke-dasharray`,p.join(`,`)),(m||r)&&e(`stroke-dashoffset`,m))}else r&&e(`stroke-dasharray`,ub);for(var h=0;h<fb.length;h++){var g=fb[h];if(r||t[g]!==tc[g]){var _=t[g]||tc[g];_&&e(pb[h],_)}}}else r&&e(`stroke`,ub)}}var hb=`http://www.w3.org/2000/svg`,gb=`http://www.w3.org/1999/xlink`;function _b(e){return document.createElementNS(hb,e)}function vb(e,t,n,r,i){return{tag:e,attrs:n||{},children:r,text:i,key:t}}function yb(e,t){var n=(t||={}).newline?`
|
|
15
|
+
`:``;return function e(t){var r=t.children,i=t.tag,a=t.attrs,o=t.text;return function(e,t){var n=[];if(t)for(var r in t){var i=t[r],a=r;!1!==i&&(!0!==i&&i!=null&&(a+=`="`+i+`"`),n.push(a))}return`<`+e+` `+n.join(` `)+`>`}(i,a)+(i===`style`?o||``:Je(o))+(r?``+n+M(r,function(t){return e(t)}).join(n)+n:``)+(`</`+i+`>`)}(e)}function bb(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function xb(e,t,n,r){return vb(`svg`,`root`,{width:e,height:t,xmlns:hb,"xmlns:xlink":gb,version:`1.1`,baseProfile:`full`,viewBox:!!r&&`0 0 `+e+` `+t},n)}var Sb=0;function Cb(){return Sb++}var wb={cubicIn:`0.32,0,0.67,0`,cubicOut:`0.33,1,0.68,1`,cubicInOut:`0.65,0,0.35,1`,quadraticIn:`0.11,0,0.5,0`,quadraticOut:`0.5,1,0.89,1`,quadraticInOut:`0.45,0,0.55,1`,quarticIn:`0.5,0,0.75,0`,quarticOut:`0.25,1,0.5,1`,quarticInOut:`0.76,0,0.24,1`,quinticIn:`0.64,0,0.78,0`,quinticOut:`0.22,1,0.36,1`,quinticInOut:`0.83,0,0.17,1`,sinusoidalIn:`0.12,0,0.39,0`,sinusoidalOut:`0.61,1,0.88,1`,sinusoidalInOut:`0.37,0,0.63,1`,exponentialIn:`0.7,0,0.84,0`,exponentialOut:`0.16,1,0.3,1`,exponentialInOut:`0.87,0,0.13,1`,circularIn:`0.55,0,1,0.45`,circularOut:`0,0.55,0.45,1`,circularInOut:`0.85,0,0.15,1`},Tb=`transform-origin`;function Eb(e,t,n){var r=E({},e.shape);E(r,t),e.buildPath(n,r);var i=new lb;return i.reset(pr(e)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function Db(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[Tb]=n+`px `+r+`px`)}var Ob={fill:`fill`,opacity:`opacity`,lineWidth:`stroke-width`,lineDashOffset:`stroke-dashoffset`};function kb(e,t){var n=t.zrId+`-ani-`+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function Ab(e){return z(e)?wb[e]?`cubic-bezier(`+wb[e]+`)`:On(e)?e:``:``}function jb(e,t,n,r){var i=e.animators,a=i.length,o=[];if(e instanceof Fu){var s=function(e,t,n){var r,i,a=e.shape.paths,o={};if(j(a,function(e){var t=bb(n.zrId);t.animation=!0,jb(e,{},t,!0);var a=t.cssAnims,s=t.cssNodes,c=F(a),l=c.length;if(l){var u=a[i=c[l-1]];for(var d in u){var f=u[d];o[d]=o[d]||{d:``},o[d].d+=f.d||``}for(var p in s){var m=s[p].animation;m.indexOf(i)>=0&&(r=m)}}}),r){t.d=!1;var s=kb(o,n);return r.replace(i,s)}}(e,t,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var c={},l=0;l<a;l++){var u=i[l],d=[u.getMaxTime()/1e3+`s`],f=Ab(u.getClip().easing),p=u.getDelay();f?d.push(f):d.push(`linear`),p&&d.push(p/1e3+`s`),u.getLoop()&&d.push(`infinite`);var m=d.join(` `);c[m]=c[m]||[m,[]],c[m][1].push(u)}function h(i){var a,o=i[1],s=o.length,c={},l={},u={},d=`animation-timing-function`;function f(e,t,n){for(var r=e.getTracks(),i=e.getMaxTime(),a=0;a<r.length;a++){var o=r[a];if(o.needsAnimate()){var s=o.keyframes,c=o.propName;if(n&&(c=n(c)),c)for(var l=0;l<s.length;l++){var u=s[l],f=Math.round(u.time/i*100)+`%`,p=Ab(u.easing),m=u.rawValue;(z(m)||B(m))&&(t[f]=t[f]||{},t[f][c]=u.rawValue,p&&(t[f][d]=p))}}}}for(var p=0;p<s;p++)(C=(S=o[p]).targetName)?C===`shape`&&f(S,l):!r&&f(S,c);for(var m in c){var h={};fi(h,e),E(h,c[m]);var g=mr(h),_=c[m][d];u[m]=g?{transform:g}:{},Db(u[m],h),_&&(u[m][d]=_)}var v=!0;for(var m in l){u[m]=u[m]||{};var y=!a;_=l[m][d],y&&(a=new Ls);var b=a.len();a.reset(),u[m].d=Eb(e,l[m],a);var x=a.len();if(!y&&b!==x){v=!1;break}_&&(u[m][d]=_)}if(!v)for(var m in u)delete u[m].d;if(!r)for(p=0;p<s;p++){var S,C;(C=(S=o[p]).targetName)===`style`&&f(S,u,function(e){return Ob[e]})}var w,T=F(u),D=!0;for(p=1;p<T.length;p++){var O=T[p-1],k=T[p];if(u[O][Tb]!==u[k][Tb]){D=!1;break}w=u[O][Tb]}if(D&&w){for(var m in u)u[m][Tb]&&delete u[m][Tb];t[Tb]=w}if(P(T,function(e){return F(u[e]).length>0}).length)return kb(u,n)+` `+i[0]+` both`}for(var g in c)(s=h(c[g]))&&o.push(s);if(o.length){var _=n.zrId+`-cls-`+Cb();n.cssNodes[`.`+_]={animation:o.join(`,`)},t.class=_}}function Mb(e,t,n,r){var i=JSON.stringify(e),a=n.cssStyleCache[i];a||(a=n.zrId+`-cls-`+Cb(),n.cssStyleCache[i]=a,n.cssNodes[`.`+a+(r?`:hover`:``)]=e),t.class=t.class?t.class+` `+a:a}var Nb=Math.round;function Pb(e){return e&&z(e.src)}function Fb(e){return e&&R(e.toDataURL)}function Ib(e,t,n,r){mb(function(i,a){var o=i===`fill`||i===`stroke`;o&&dr(a)?qb(t,e,i,r):o&&cr(a)?Jb(n,e,i,r):e[i]=a,o&&r.ssr&&a===`none`&&(e[`pointer-events`]=`visible`)},t,n,!1),function(e,t,n){var r=e.style;if(function(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}(r)){var i=function(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(`,`)}(e),a=n.shadowCache,o=a[i];if(!o){var s=e.getGlobalScale(),c=s[0],l=s[1];if(!c||!l)return;var u=r.shadowOffsetX||0,d=r.shadowOffsetY||0,f=r.shadowBlur,p=tr(r.shadowColor),m=p.opacity,h=p.color,g=f/2/c+` `+f/2/l;o=n.zrId+`-s`+n.shadowIdx++,n.defs[o]=vb(`filter`,o,{id:o,x:`-100%`,y:`-100%`,width:`300%`,height:`300%`},[vb(`feDropShadow`,``,{dx:u/c,dy:d/l,stdDeviation:g,"flood-color":h,"flood-opacity":m})]),a[i]=o}t.filter=fr(o)}}(n,e,r)}function Lb(e,t){var n=function(e){if(typeof Hi==`function`)return Hi(e)}(t);n&&(n.each(function(t,n){t!=null&&(e[(`ecmeta_`+n).toLowerCase()]=t+``)}),t.isSilent()&&(e.ecmeta_silent=`true`))}function Rb(e){return rr(e[0]-1)&&rr(e[1])&&rr(e[2])&&rr(e[3]-1)}function zb(e,t,n){if(t&&(!function(e){return rr(e[4])&&rr(e[5])}(t)||!Rb(t))){var r=n?10:1e4;e.transform=Rb(t)?`translate(`+Nb(t[4]*r)/r+` `+Nb(t[5]*r)/r+`)`:function(e){return`matrix(`+ir(e[0])+`,`+ir(e[1])+`,`+ir(e[2])+`,`+ir(e[3])+`,`+ar(e[4])+`,`+ar(e[5])+`)`}(t)}}function Bb(e,t,n){for(var r=e.points,i=[],a=0;a<r.length;a++)i.push(Nb(r[a][0]*n)/n),i.push(Nb(r[a][1]*n)/n);t.points=i.join(` `)}function Vb(e){return!e.smooth}var Hb,Ub,Wb={circle:[(Hb=[`cx`,`cy`,`r`],Ub=M(Hb,function(e){return typeof e==`string`?[e,e]:e}),function(e,t,n){for(var r=0;r<Ub.length;r++){var i=Ub[r],a=e[i[0]];a!=null&&(t[i[1]]=Nb(a*n)/n)}})],polyline:[Bb,Vb],polygon:[Bb,Vb]};function Gb(e,t){var n=e.style,r=e.shape,i=Wb[e.type],a={},o=t.animation,s=`path`,c=e.style.strokePercent,l=t.compress&&pr(e)||4;if(!i||t.willUpdate||i[1]&&!i[1](r)||o&&function(e){for(var t=e.animators,n=0;n<t.length;n++)if(t[n].targetName===`shape`)return!0;return!1}(e)||c<1){var u=!e.path||e.shapeChanged();e.path||e.createPathProxy();var d=e.path;u&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var f=d.getVersion(),p=e,m=p.__svgPathBuilder;p.__svgPathVersion===f&&m&&c===p.__svgPathStrokePercent||(m||=p.__svgPathBuilder=new lb,m.reset(l),d.rebuildPath(m,c),m.generateStr(),p.__svgPathVersion=f,p.__svgPathStrokePercent=c),a.d=m.getStr()}else{s=e.type;var h=10**l;i[0](r,a,h)}return zb(a,e.transform),Ib(a,n,e,t),Lb(a,e),t.animation&&jb(e,a,t),t.emphasis&&function(e,t,n){if(!e.ignore){if(e.isSilent())Mb(l={"pointer-events":`none`},t,n,!0);else{var r=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},i=r.fill;if(!i){var a=e.style&&e.style.fill,o=e.states.select&&e.states.select.style&&e.states.select.style.fill,s=e.currentStates.indexOf(`select`)>=0&&o||a;s&&(i=$n(s))}var c=r.lineWidth;c&&(c/=!r.strokeNoScale&&e.transform?e.transform[0]:1);var l={cursor:`pointer`};i&&(l.fill=i),r.stroke&&(l.stroke=r.stroke),c&&(l[`stroke-width`]=c),Mb(l,t,n,!0)}}}(e,a,t),vb(s,e.id+``,a)}function Kb(e,t){return e instanceof X?Gb(e,t):e instanceof cc?function(e,t){var n=e.style,r=n.image;if(r&&!z(r)&&(Pb(r)?r=r.src:Fb(r)&&(r=r.toDataURL())),r){var i=n.x||0,a=n.y||0,o={href:r,width:n.width,height:n.height};return i&&(o.x=i),a&&(o.y=a),zb(o,e.transform),Ib(o,n,e,t),Lb(o,e),t.animation&&jb(e,o,t),vb(`image`,e.id+``,o)}}(e,t):e instanceof ac?function(e,t){var n=e.style,r=n.text;if(r!=null&&(r+=``),r&&!isNaN(n.x)&&!isNaN(n.y)){var i=n.font||`12px sans-serif`,a=n.x||0,o=function(e,t,n){return n===`top`?e+=t/2:n===`bottom`&&(e-=t/2),e}(n.y||0,Si(i),n.textBaseline),s={"dominant-baseline":`central`,"text-anchor":or[n.textAlign]||n.textAlign};if(Tc(n)){var c=``,l=n.fontStyle,u=Cc(n.fontSize);if(!parseFloat(u))return;var d=n.fontFamily||`sans-serif`,f=n.fontWeight;c+=`font-size:`+u+`;font-family:`+d+`;`,l&&l!==`normal`&&(c+=`font-style:`+l+`;`),f&&f!==`normal`&&(c+=`font-weight:`+f+`;`),s.style=c}else s.style=`font: `+i;return r.match(/\s/)&&(s[`xml:space`]=`preserve`),a&&(s.x=a),o&&(s.y=o),zb(s,e.transform),Ib(s,n,e,t),Lb(s,e),t.animation&&jb(e,s,t),vb(`text`,e.id+``,s,void 0,r)}}(e,t):void 0}function qb(e,t,n,r){var i,a=e[n],o={gradientUnits:a.global?`userSpaceOnUse`:`objectBoundingBox`};if(lr(a))i=`linearGradient`,o.x1=a.x,o.y1=a.y,o.x2=a.x2,o.y2=a.y2;else{if(!ur(a))return;i=`radialGradient`,o.cx=G(a.x,.5),o.cy=G(a.y,.5),o.r=G(a.r,.5)}for(var s=a.colorStops,c=[],l=0,u=s.length;l<u;++l){var d=100*ar(s[l].offset)+`%`,f=tr(s[l].color),p=f.color,m=f.opacity,h={offset:d};h[`stop-color`]=p,m<1&&(h[`stop-opacity`]=m),c.push(vb(`stop`,l+``,h))}var g=yb(vb(i,``,o,c)),_=r.gradientCache,v=_[g];v||(v=r.zrId+`-g`+r.gradientIdx++,_[g]=v,o.id=v,r.defs[v]=vb(i,v,o,c)),t[n]=fr(v)}function Jb(e,t,n,r){var i,a=e.style[n],o=e.getBoundingRect(),s={},c=a.repeat,l=c===`no-repeat`,u=c===`repeat-x`,d=c===`repeat-y`;if(sr(a)){var f=a.imageWidth,p=a.imageHeight,m=void 0,h=a.image;if(z(h)?m=h:Pb(h)?m=h.src:Fb(h)&&(m=h.toDataURL()),typeof Image>`u`){var g=`Image width/height must been given explictly in svg-ssr renderer.`;le(f,g),le(p,g)}else if(f==null||p==null){var _=function(e,t){if(e){var n=e.elm,r=f||t.width,i=p||t.height;e.tag===`pattern`&&(u?(i=1,r/=o.width):d&&(r=1,i/=o.height)),e.attrs.width=r,e.attrs.height=i,n&&(n.setAttribute(`width`,r),n.setAttribute(`height`,i))}},v=jo(m,null,e,function(e){l||_(S,e),_(i,e)});v&&v.width&&v.height&&(f||=v.width,p||=v.height)}i=vb(`image`,`img`,{href:m,width:f,height:p}),s.width=f,s.height=p}else a.svgElement&&(i=w(a.svgElement),s.width=a.svgWidth,s.height=a.svgHeight);if(i){var y,b;l?y=b=1:u?(b=1,y=s.width/o.width):d?(y=1,b=s.height/o.height):s.patternUnits=`userSpaceOnUse`,y==null||isNaN(y)||(s.width=y),b==null||isNaN(b)||(s.height=b);var x=mr(a);x&&(s.patternTransform=x);var S=vb(`pattern`,``,s,[i]),C=yb(S),T=r.patternCache,E=T[C];E||(E=r.zrId+`-p`+r.patternIdx++,T[C]=E,s.id=E,S=r.defs[E]=vb(`pattern`,E,s,[i])),t[n]=fr(E)}}function Yb(e,t,n){var r=n.clipPathCache,i=n.defs,a=r[e.id];if(!a){var o={id:a=n.zrId+`-c`+n.clipPathIdx++};r[e.id]=a,i[a]=vb(`clipPath`,a,o,[Gb(e,n)])}t[`clip-path`]=fr(a)}function Xb(e){return document.createTextNode(e)}function Zb(e,t,n){e.insertBefore(t,n)}function Qb(e,t){e.removeChild(t)}function $b(e,t){e.appendChild(t)}function ex(e){return e.parentNode}function tx(e){return e.nextSibling}function nx(e,t){e.textContent=t}var rx=vb(``,``);function ix(e){return e===void 0}function ax(e){return e!==void 0}function ox(e,t,n){for(var r={},i=t;i<=n;++i){var a=e[i].key;a!==void 0&&(r[a]=i)}return r}function sx(e,t){var n=e.key===t.key;return e.tag===t.tag&&n}function cx(e){var t,n=e.children,r=e.tag;if(ax(r)){var i=e.elm=_b(r);if(dx(rx,e),L(n))for(t=0;t<n.length;++t){var a=n[t];a!=null&&$b(i,cx(a))}else ax(e.text)&&!V(e.text)&&$b(i,Xb(e.text))}else e.elm=Xb(e.text);return e.elm}function lx(e,t,n,r,i){for(;r<=i;++r){var a=n[r];a!=null&&Zb(e,cx(a),t)}}function ux(e,t,n,r){for(;n<=r;++n){var i=t[n];i!=null&&(ax(i.tag)?Qb(ex(i.elm),i.elm):Qb(e,i.elm))}}function dx(e,t){var n,r=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(n in a){var o=a[n];i[n]!==o&&(!0===o?r.setAttribute(n,``):!1===o?r.removeAttribute(n):n===`style`?r.style.cssText=o:n.charCodeAt(0)===120?n===`xmlns:xlink`||n===`xmlns`?r.setAttributeNS(`http://www.w3.org/2000/xmlns/`,n,o):n.charCodeAt(3)===58?r.setAttributeNS(`http://www.w3.org/XML/1998/namespace`,n,o):n.charCodeAt(5)===58?r.setAttributeNS(gb,n,o):r.setAttribute(n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}function fx(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(dx(e,t),ix(t.text)?ax(r)&&ax(i)?r!==i&&function(e,t,n){for(var r,i,a,o=0,s=0,c=t.length-1,l=t[0],u=t[c],d=n.length-1,f=n[0],p=n[d];o<=c&&s<=d;)l==null?l=t[++o]:u==null?u=t[--c]:f==null?f=n[++s]:p==null?p=n[--d]:sx(l,f)?(fx(l,f),l=t[++o],f=n[++s]):sx(u,p)?(fx(u,p),u=t[--c],p=n[--d]):sx(l,p)?(fx(l,p),Zb(e,l.elm,tx(u.elm)),l=t[++o],p=n[--d]):sx(u,f)?(fx(u,f),Zb(e,u.elm,l.elm),u=t[--c],f=n[++s]):(ix(r)&&(r=ox(t,o,c)),ix(i=r[f.key])||(a=t[i]).tag!==f.tag?Zb(e,cx(f),l.elm):(fx(a,f),t[i]=void 0,Zb(e,a.elm,l.elm)),f=n[++s]);(o<=c||s<=d)&&(o>c?lx(e,n[d+1]==null?null:n[d+1].elm,n,s,d):ux(e,t,o,c))}(n,r,i):ax(i)?(ax(e.text)&&nx(n,``),lx(n,null,i,0,i.length-1)):ax(r)?ux(n,r,0,r.length-1):ax(e.text)&&nx(n,``):e.text!==t.text&&(ax(r)&&ux(n,r,0,r.length-1),nx(n,t.text)))}var px=0,mx=function(){function e(e,t,n){if(this.type=`svg`,this.configLayer=function(){},this.storage=t,this._opts=n=E({},n),this.root=e,this._id=`zr`+px++,this._oldVNode=xb(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement(`div`);r.style.cssText=`position:relative;overflow:hidden`;var i=this._svgDom=this._oldVNode.elm=_b(`svg`);dx(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style=`position:absolute;left:0;top:0;user-select:none`,function(e,t){if(sx(e,t))fx(e,t);else{var n=e.elm,r=ex(n);cx(t),r!==null&&(Zb(r,t.elm,tx(n)),ux(r,[e],0,0))}}(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return Kb(e,bb(this._id))},e.prototype.renderToVNode=function(e){e||={};var t=this.storage.getDisplayList(!0),n=this._width,r=this._height,i=bb(this._id);i.animation=e.animation,i.willUpdate=e.willUpdate,i.compress=e.compress,i.emphasis=e.emphasis,i.ssr=this._opts.ssr;var a=[],o=this._bgVNode=function(e,t,n,r){var i;if(n&&n!==`none`){if(i=vb(`rect`,`bg`,{width:e,height:t,x:`0`,y:`0`}),dr(n))qb({fill:n},i.attrs,`fill`,r);else if(cr(n))Jb({style:{fill:n},dirty:ve,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,`fill`,r);else{var a=tr(n),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs[`fill-opacity`]=s)}}return i}(n,r,this._backgroundColor,i);o&&a.push(o);var s=e.compress?null:this._mainVNode=vb(`g`,`main`,{},[]);this._paintList(t,i,s?s.children:a),s&&a.push(s);var c=M(F(i.defs),function(e){return i.defs[e]});if(c.length&&a.push(vb(`defs`,`defs`,{},c)),e.animation){var l=function(e,t,n){var r=(n||={}).newline?`
|
|
16
|
+
`:``,i=` {`+r,a=r+`}`,o=M(F(e),function(t){return t+i+M(F(e[t]),function(n){return n+`:`+e[t][n]+`;`}).join(r)+a}).join(r),s=M(F(t),function(e){return`@keyframes `+e+i+M(F(t[e]),function(n){return n+i+M(F(t[e][n]),function(r){var i=t[e][n][r];return r===`d`&&(i=`path("`+i+`")`),r+`:`+i+`;`}).join(r)+a}).join(r)+a}).join(r);return o||s?[`<![CDATA[`,o,s,`]]>`].join(r):``}(i.cssNodes,i.cssAnims,{newline:!0});if(l){var u=vb(`style`,`stl`,{},[],l);a.push(u)}}return xb(n,r,a,e.useViewBox)},e.prototype.renderToString=function(e){return e||={},yb(this.renderToVNode({animation:G(e.cssAnimation,!0),emphasis:G(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:G(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r,i,a=e.length,o=[],s=0,c=0,l=0;l<a;l++){var u=e[l];if(!u.invisible){var d=u.__clipPaths,f=d&&d.length||0,p=i&&i.length||0,m=void 0;for(m=Math.max(f-1,p-1);m>=0&&(!d||!i||d[m]!==i[m]);m--);for(var h=p-1;h>m;h--)r=o[--s-1];for(var g=m+1;g<f;g++){var _={};Yb(d[g],_,t);var v=vb(`g`,`clip-g-`+c++,_,[]);(r?r.children:n).push(v),o[s++]=v,r=v}i=d;var y=Kb(u,t);y&&(r?r.children:n).push(y)}}},e.prototype.resize=function(e,t){var n=this._opts,r=this.root,i=this._viewport;if(e!=null&&(n.width=e),t!=null&&(n.height=t),r&&i&&(i.style.display=`none`,e=q_(r,0,n),t=q_(r,1,n),i.style.display=``),this._width!==e||this._height!==t){if(this._width=e,this._height=t,i){var a=i.style;a.width=e+`px`,a.height=t+`px`}if(cr(this._backgroundColor))this.refresh();else{var o=this._svgDom;o&&(o.setAttribute(`width`,e),o.setAttribute(`height`,t));var s=this._bgVNode&&this._bgVNode.elm;s&&(s.setAttribute(`width`,e),s.setAttribute(`height`,t))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=``),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(e){var t=this.renderToString(),n=`data:image/svg+xml;`;return e?(t=hr(t))&&n+`base64,`+t:n+`charset=UTF-8,`+encodeURIComponent(t)},e}();function hx(e){e.registerPainter(`svg`,mx)}export{K as $,Ah as $n,st as $r,Yi as $t,Pf as A,vu as Ai,fi as An,fg as Ar,wg as At,I as B,hc as Bn,ra as Br,V as Bt,Tg as C,wi as Ci,$u as Cn,ad as Cr,R as Ct,Fa as D,yc as Di,$f as Dn,ap as Dr,x_ as Dt,F as E,ya as Ei,eo as En,oo as Er,Lu as Et,Ha as F,Rg as Fi,ga as Fn,q as Fr,Ua as Ft,Ja as G,rb as Gn,np as Gr,X as Gt,Ff as H,mp as Hn,ng as Hr,Bp as Ht,Vd as I,zi as Ii,gn as In,qa as Ir,Hd as It,qf as J,rp as Jn,od as Jr,Xi as Jt,qc as K,ie as Kn,rt as Kr,Xa as Kt,He as L,go as Ln,Kf as Lr,Ue as Lt,G as M,za as Mi,fo as Mn,fp as Mr,wp as Mt,Gn as N,Rd as Ni,dp as Nn,pt as Nr,U as Nt,Pc as O,yi as Oi,fa as On,pa as Or,T as Ot,V_ as P,Rf as Pi,ft as Pn,fy as Pr,H_ as Pt,qu as Q,je as Qn,op as Qr,Jh as Qt,Vf as R,hp as Rn,qi as Rr,Hf as Rt,E as S,Cf as Si,dt as Sn,oa as Sr,Qi as St,Tu as T,bp as Ti,$d as Tn,am as Tr,Lg as Tt,Is as U,i as Un,nh as Ur,U_ as Ut,Fc as V,ho as Vn,nd as Vr,Bf as Vt,J as W,ia as Wn,ro as Wr,Up as Wt,Jn as X,ja as Xn,oh as Xr,Jc as Xt,Ji as Y,j as Yn,se as Yr,Xn as Yt,qp as Z,Ad as Zn,so as Zr,Jf as Zt,Ci as _,vn as _i,sm as _n,pv as _r,P as _t,k_ as a,ep as ai,gl as an,Ou as ar,If as at,Ep as b,C_ as bi,um as bn,no as br,Qa as bt,kl as c,ld as ci,id as cn,cf as cr,Ma as ct,Ba as d,uo as di,ip as dn,lo as dr,Ml as dt,ed as ei,Za as en,Ap as er,Ka as et,zd as f,lp as fi,yh as fn,cp as fr,Mp as ft,Sh as g,_l as gi,sh as gn,mt as gr,Oe as gt,zp as h,ve as hi,cc as hn,pp as hr,Dd as ht,A as i,to as ii,gg as in,Ol as ir,Id as it,Pp as j,z as ji,dl as jn,po as jr,To as jt,Pd as k,vp as ki,dg as kn,ff as kr,wd as kt,kp as l,ue as li,ae as ln,cg as lr,Mc as lt,zg as m,va as mi,ca as mn,mo as mr,Oa as mt,Qf as n,ef as ni,Xp as nn,O_ as nr,Gp as nt,Ae as o,tt as oi,gp as on,la as or,Ls as ot,zf as p,ut as pi,yp as pn,ma as pr,O as pt,Je as q,io as qn,sa as qr,Yf as qt,$i as r,eh as ri,_a as rn,Og as rr,L as rt,kh as s,ua as si,aa as sn,cd as sr,M as st,$a as t,te as ti,Zi as tn,k as tr,Ki as tt,B as u,lf as ui,ao as un,cm as ur,Nc as ut,D as v,_p as vi,sp as vn,n as vr,Pa as vt,Tp as w,bd as wi,ee as wn,oe as wr,Lf as wt,Ey as x,wa as xi,up as xn,tp as xr,Zf as xt,Ef as y,w as yi,ct as yn,tf as yr,Q as yt,Vp as z,hx as zn,Kp as zr,Hh as zt};
|