@partex/one-core 2.0.64 → 2.0.66

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/lib/one-core.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var bC=Object.defineProperty;var SC=(e,t,r)=>t in e?bC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Uo=(e,t,r)=>(SC(e,typeof t!="symbol"?t+"":t,r),r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const v=require("vue"),O=require("naive-ui"),$t=require("vue-router"),Kt=require("vue-i18n"),Uh=require("axios"),Vs=require("md5"),CC=require("jsqr"),xC=require("vuedraggable"),X0=v.defineComponent({name:"OcActionButton",props:{data:{required:!0,type:Array,default:()=>[]}},setup(e){return()=>pn(e.data)}}),X=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},TC={},NC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},DC=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M11.75 3a.75.75 0 0 1 .743.648l.007.102l.001 7.25h7.253a.75.75 0 0 1 .102 1.493l-.102.007h-7.253l.002 7.25a.75.75 0 0 1-1.493.101l-.007-.102l-.002-7.249H3.752a.75.75 0 0 1-.102-1.493L3.752 11h7.25L11 3.75a.75.75 0 0 1 .75-.75z",fill:"currentColor"})],-1),AC=[DC];function MC(e,t){return v.openBlock(),v.createElementBlock("svg",NC,AC)}const Ul=X(TC,[["render",MC]]),kC={},EC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},PC=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M12 1.996a7.49 7.49 0 0 1 7.496 7.25l.004.25v4.097l1.38 3.156a1.249 1.249 0 0 1-1.145 1.75L15 18.502a3 3 0 0 1-5.995.177L9 18.499H4.275a1.251 1.251 0 0 1-1.147-1.747L4.5 13.594V9.496c0-4.155 3.352-7.5 7.5-7.5zM13.5 18.5l-3 .002a1.5 1.5 0 0 0 2.993.145l.007-.147zM12 3.496c-3.32 0-6 2.674-6 6v4.41L4.656 17h14.697L18 13.907V9.509l-.003-.225A5.988 5.988 0 0 0 12 3.496z",fill:"currentColor"})],-1),IC=[PC];function LC(e,t){return v.openBlock(),v.createElementBlock("svg",EC,IC)}const Wh=X(kC,[["render",LC]]),OC={},RC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},BC=v.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[v.createElementVNode("path",{d:"M8 6h12"}),v.createElementVNode("path",{d:"M6 12h12"}),v.createElementVNode("path",{d:"M4 18h12"})],-1),VC=[BC];function $C(e,t){return v.openBlock(),v.createElementBlock("svg",RC,VC)}const Yh=X(OC,[["render",$C]]),FC={},zC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},GC=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0z",fill:"currentColor"})],-1),HC=[GC];function UC(e,t){return v.openBlock(),v.createElementBlock("svg",zC,HC)}const qh=X(FC,[["render",UC]]),WC={},YC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},qC=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M16.53 11.72l-.084-.072a.75.75 0 0 0-.976.072l-2.72 2.72V7.75l-.007-.102A.75.75 0 0 0 12 7l-.102.007a.75.75 0 0 0-.648.743v6.692L8.53 11.72l-.085-.073a.75.75 0 0 0-.976 1.133l4 4.002l.084.072a.75.75 0 0 0 .976-.072l4.001-4l.073-.085a.75.75 0 0 0-.073-.977zM6.25 3A3.25 3.25 0 0 0 3 6.25v11.5A3.25 3.25 0 0 0 6.25 21h11.5A3.25 3.25 0 0 0 21 17.75V6.25A3.25 3.25 0 0 0 17.75 3H6.25zM4.5 6.25c0-.966.784-1.75 1.75-1.75h11.5c.966 0 1.75.784 1.75 1.75v11.5a1.75 1.75 0 0 1-1.75 1.75H6.25a1.75 1.75 0 0 1-1.75-1.75V6.25z",fill:"currentColor"})],-1),jC=[qC];function XC(e,t){return v.openBlock(),v.createElementBlock("svg",YC,jC)}const jh=X(WC,[["render",XC]]),ZC={},KC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},JC=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M20.026 17.001c-2.762 4.784-8.879 6.423-13.663 3.661A9.965 9.965 0 0 1 3.13 17.68a.75.75 0 0 1 .365-1.132c3.767-1.348 5.785-2.91 6.956-5.146c1.232-2.353 1.551-4.93.689-8.463a.75.75 0 0 1 .769-.927a9.961 9.961 0 0 1 4.457 1.327c4.784 2.762 6.423 8.879 3.66 13.662z",fill:"currentColor"})],-1),QC=[JC];function ex(e,t){return v.openBlock(),v.createElementBlock("svg",KC,QC)}const Wl=X(ZC,[["render",ex]]),tx={},rx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},nx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M12 2a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 12 2zm5 10a5 5 0 1 1-10 0a5 5 0 0 1 10 0zm4.25.75a.75.75 0 0 0 0-1.5h-1.5a.75.75 0 0 0 0 1.5h1.5zM12 19a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 12 19zm-7.75-6.25a.75.75 0 0 0 0-1.5h-1.5a.75.75 0 0 0 0 1.5h1.5zm-.03-8.53a.75.75 0 0 1 1.06 0l1.5 1.5a.75.75 0 0 1-1.06 1.06l-1.5-1.5a.75.75 0 0 1 0-1.06zm1.06 15.56a.75.75 0 1 1-1.06-1.06l1.5-1.5a.75.75 0 1 1 1.06 1.06l-1.5 1.5zm14.5-15.56a.75.75 0 0 0-1.06 0l-1.5 1.5a.75.75 0 0 0 1.06 1.06l1.5-1.5a.75.75 0 0 0 0-1.06zm-1.06 15.56a.75.75 0 1 0 1.06-1.06l-1.5-1.5a.75.75 0 1 0-1.06 1.06l1.5 1.5z",fill:"currentColor"})],-1),ax=[nx];function ix(e,t){return v.openBlock(),v.createElementBlock("svg",rx,ax)}const Yl=X(tx,[["render",ix]]),ox={},sx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},lx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M12 17a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4zM5 17a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7-7a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4zM5 10a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7-7a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4zM5 3a2 2 0 1 1 0 4a2 2 0 0 1 0-4z",fill:"currentColor"})],-1),ux=[lx];function cx(e,t){return v.openBlock(),v.createElementBlock("svg",sx,ux)}const Xh=X(ox,[["render",cx]]),fx={},hx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},dx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M10 2.75a7.25 7.25 0 0 1 5.63 11.819l4.9 4.9a.75.75 0 0 1-.976 1.134l-.084-.073l-4.901-4.9A7.25 7.25 0 1 1 10 2.75zm0 1.5a5.75 5.75 0 1 0 0 11.5a5.75 5.75 0 0 0 0-11.5z",fill:"currentColor"})],-1),vx=[dx];function px(e,t){return v.openBlock(),v.createElementBlock("svg",hx,vx)}const ql=X(fx,[["render",px]]),gx={},mx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},yx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M12 4.5a7.5 7.5 0 1 0 7.419 6.392c-.067-.454.265-.892.724-.892c.37 0 .696.256.752.623A9 9 0 1 1 18 5.292V4.25a.75.75 0 0 1 1.5 0v3a.75.75 0 0 1-.75.75h-3a.75.75 0 0 1 0-1.5h1.35a7.474 7.474 0 0 0-5.1-2z",fill:"currentColor"})],-1),_x=[yx];function bx(e,t){return v.openBlock(),v.createElementBlock("svg",mx,_x)}const Wa=X(gx,[["render",bx]]),Sx={},Cx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},xx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M17.75 3A3.25 3.25 0 0 1 21 6.25v5.772a6.471 6.471 0 0 0-1.5-.709V8.5h-15v9.25c0 .966.784 1.75 1.75 1.75h5.063c.173.534.412 1.037.709 1.5H6.25A3.25 3.25 0 0 1 3 17.75V6.25A3.25 3.25 0 0 1 6.25 3h11.5zm0 1.5H6.25A1.75 1.75 0 0 0 4.5 6.25V7h15v-.75a1.75 1.75 0 0 0-1.75-1.75zm5.25 13a5.5 5.5 0 1 1-11 0a5.5 5.5 0 0 1 11 0zm-5-3a.5.5 0 0 0-1 0v4.793l-1.646-1.647a.5.5 0 0 0-.708.708l2.5 2.5a.5.5 0 0 0 .708 0l2.5-2.5a.5.5 0 0 0-.708-.708L18 19.293V14.5z",fill:"currentColor"})],-1),Tx=[xx];function Nx(e,t){return v.openBlock(),v.createElementBlock("svg",Cx,Tx)}const Mo=X(Sx,[["render",Nx]]),Dx={},Ax={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Mx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M13.5 16a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h3zm3-5a.75.75 0 0 1 0 1.5h-9a.75.75 0 0 1 0-1.5h9zm3-5a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1 0-1.5h15z",fill:"currentColor"})],-1),kx=[Mx];function Ex(e,t){return v.openBlock(),v.createElementBlock("svg",Ax,kx)}const jl=X(Dx,[["render",Ex]]),Px={},Ix={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Lx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M4.5 5.75c0-.69.56-1.25 1.25-1.25h2a.75.75 0 0 0 0-1.5h-2A2.75 2.75 0 0 0 3 5.75v2a.75.75 0 0 0 1.5 0v-2zm0 12.5c0 .69.56 1.25 1.25 1.25h2a.75.75 0 0 1 0 1.5h-2A2.75 2.75 0 0 1 3 18.25v-2a.75.75 0 0 1 1.5 0v2zM18.25 4.5c.69 0 1.25.56 1.25 1.25v2a.75.75 0 0 0 1.5 0v-2A2.75 2.75 0 0 0 18.25 3h-2a.75.75 0 0 0 0 1.5h2zm1.25 13.75c0 .69-.56 1.25-1.25 1.25h-2a.75.75 0 0 0 0 1.5h2A2.75 2.75 0 0 0 21 18.25v-2a.75.75 0 0 0-1.5 0v2z",fill:"currentColor"})],-1),Ox=[Lx];function Rx(e,t){return v.openBlock(),v.createElementBlock("svg",Ix,Ox)}const Z0=X(Px,[["render",Rx]]),Bx={},Vx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},$x=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M12 1.75a3.25 3.25 0 0 1 3.245 3.066L15.25 5h5.25a.75.75 0 0 1 .102 1.493L20.5 6.5h-.796l-1.28 13.02a2.75 2.75 0 0 1-2.561 2.474l-.176.006H8.313a2.75 2.75 0 0 1-2.714-2.307l-.023-.174L4.295 6.5H3.5a.75.75 0 0 1-.743-.648L2.75 5.75a.75.75 0 0 1 .648-.743L3.5 5h5.25A3.25 3.25 0 0 1 12 1.75zm6.197 4.75H5.802l1.267 12.872a1.25 1.25 0 0 0 1.117 1.122l.127.006h7.374c.6 0 1.109-.425 1.225-1.002l.02-.126L18.196 6.5zM13.75 9.25a.75.75 0 0 1 .743.648L14.5 10v7a.75.75 0 0 1-1.493.102L13 17v-7a.75.75 0 0 1 .75-.75zm-3.5 0a.75.75 0 0 1 .743.648L11 10v7a.75.75 0 0 1-1.493.102L9.5 17v-7a.75.75 0 0 1 .75-.75zm1.75-6a1.75 1.75 0 0 0-1.744 1.606L10.25 5h3.5A1.75 1.75 0 0 0 12 3.25z",fill:"currentColor"})],-1),Fx=[$x];function zx(e,t){return v.openBlock(),v.createElementBlock("svg",Vx,Fx)}const Zh=X(Bx,[["render",zx]]),Gx={},Hx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},Ux=v.createElementVNode("path",{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3c7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176s176-78.8 176-176s-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112s112 50.1 112 112s-50.1 112-112 112z",fill:"currentColor"},null,-1),Wx=[Ux];function Yx(e,t){return v.openBlock(),v.createElementBlock("svg",Hx,Wx)}const Xl=X(Gx,[["render",Yx]]),qx={},jx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},Xx=v.createElementVNode("path",{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512C791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5zm-63.57-320.64L836 122.88a8 8 0 0 0-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 0 0 0 11.31L155.17 889a8 8 0 0 0 11.31 0l712.15-712.12a8 8 0 0 0 0-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 0 0-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 0 1 146.2-106.69L401.31 546.2A112 112 0 0 1 396 512z",fill:"currentColor"},null,-1),Zx=v.createElementVNode("path",{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 0 0 227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 0 1-112 112z",fill:"currentColor"},null,-1),Kx=[Xx,Zx];function Jx(e,t){return v.openBlock(),v.createElementBlock("svg",jx,Kx)}const Kh=X(qx,[["render",Jx]]),Qx={},e2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},t2=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M20 4.746a2.75 2.75 0 0 0-2.75-2.75H4.75A2.75 2.75 0 0 0 2 4.746v12.5a2.75 2.75 0 0 0 2.75 2.75h6.666l.105-.42c.096-.384.253-.748.463-1.08H4.75c-.69 0-1.25-.56-1.25-1.25v-12.5c0-.69.56-1.25 1.25-1.25h12.5c.69 0 1.25.56 1.25 1.25v7.113c.437-.4.956-.66 1.5-.781V4.746zm-4 9.608V6.73l-.007-.1A.744.744 0 0 0 15.25 6a.74.74 0 0 0-.75.73v8.541l.007.099c.017.125.067.24.142.337L16 14.355zm-8.507-5.71A.75.75 0 0 0 6.75 8a.748.748 0 0 0-.75.747v6.507l.007.101c.05.365.363.645.743.645c.414 0 .75-.334.75-.746V8.746l-.007-.101zm4.214 2.973a.73.73 0 0 0-.732-.62a.73.73 0 0 0-.725.733l.035 3.547l.008.099a.731.731 0 0 0 .732.62a.73.73 0 0 0 .725-.733l-.035-3.548l-.008-.098zm7.393 1.052l-5.903 5.902a2.686 2.686 0 0 0-.706 1.248l-.458 1.83a1.087 1.087 0 0 0 1.319 1.319l1.83-.458a2.685 2.685 0 0 0 1.248-.706l5.902-5.903A2.286 2.286 0 0 0 19.1 12.67z",fill:"currentColor"})],-1),r2=[t2];function n2(e,t){return v.openBlock(),v.createElementBlock("svg",e2,r2)}const Jh=X(Qx,[["render",n2]]),a2={},i2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},o2=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M4.397 4.554l.073-.084a.75.75 0 0 1 .976-.073l.084.073L12 10.939l6.47-6.47a.75.75 0 1 1 1.06 1.061L13.061 12l6.47 6.47a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L12 13.061l-6.47 6.47a.75.75 0 0 1-1.06-1.061L10.939 12l-6.47-6.47a.75.75 0 0 1-.072-.976l.073-.084l-.073.084z",fill:"currentColor"})],-1),s2=[o2];function l2(e,t){return v.openBlock(),v.createElementBlock("svg",i2,s2)}const cn=X(a2,[["render",l2]]),u2={},c2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},f2=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M22 6.5a5.5 5.5 0 1 0-11 0a5.5 5.5 0 0 0 11 0zM17 7l.001 2.504a.5.5 0 1 1-1 0V7h-2.505a.5.5 0 0 1 0-1H16V3.5a.5.5 0 0 1 1 0V6h2.503a.5.5 0 1 1 0 1h-2.502zm2.5 7v-1.732A6.518 6.518 0 0 0 21 11.19v7.56a3.25 3.25 0 0 1-3.066 3.245L17.75 22H6.25a3.25 3.25 0 0 1-3.245-3.066L3 18.75V7.25a3.25 3.25 0 0 1 3.066-3.245L6.25 4h4.248a6.451 6.451 0 0 0-.422 1.5H6.25a1.75 1.75 0 0 0-1.744 1.606L4.5 7.25V14H9a.75.75 0 0 1 .743.648l.007.102a2.25 2.25 0 0 0 4.495.154l.005-.154a.75.75 0 0 1 .648-.743L15 14h4.5zm-15 1.5v3.25a1.75 1.75 0 0 0 1.606 1.744l.144.006h11.5a1.75 1.75 0 0 0 1.744-1.607l.006-.143V15.5h-3.825a3.752 3.752 0 0 1-3.475 2.995l-.2.005a3.752 3.752 0 0 1-3.632-2.812l-.043-.188H4.5z",fill:"currentColor"})],-1),h2=[f2];function d2(e,t){return v.openBlock(),v.createElementBlock("svg",c2,h2)}const ko=X(u2,[["render",d2]]),v2={},p2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},g2=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M6.087 7.75a5.752 5.752 0 0 1 11.326 0h.087a4 4 0 0 1 3.962 4.552a6.534 6.534 0 0 0-1.597-1.364A2.501 2.501 0 0 0 17.5 9.25h-.756a.75.75 0 0 1-.75-.713a4.25 4.25 0 0 0-8.489 0a.75.75 0 0 1-.749.713H6a2.5 2.5 0 0 0 0 5h4.4a6.458 6.458 0 0 0-.357 1.5H6a4 4 0 0 1 0-8h.087zM22 16.5a5.5 5.5 0 1 0-11 0a5.5 5.5 0 0 0 11 0zm-6-3a.5.5 0 0 1 1 0v4.793l1.646-1.647a.5.5 0 0 1 .708.708l-2.5 2.5a.5.5 0 0 1-.708 0l-2.5-2.5a.5.5 0 0 1 .708-.708L16 18.293V13.5z",fill:"currentColor"})],-1),m2=[g2];function y2(e,t){return v.openBlock(),v.createElementBlock("svg",p2,m2)}const Zl=X(v2,[["render",y2]]),_2={},w2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},b2=v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 160h352"},null,-1),S2=v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 256h352"},null,-1),C2=v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 352h352"},null,-1),x2=[b2,S2,C2];function T2(e,t){return v.openBlock(),v.createElementBlock("svg",w2,x2)}const Kl=X(_2,[["render",T2]]),N2={},D2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},A2=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M16.242 2.932l4.826 4.826a2.75 2.75 0 0 1-.715 4.404l-4.87 2.435a.75.75 0 0 0-.374.426l-1.44 4.166a1.25 1.25 0 0 1-2.065.476L8.5 16.561L4.06 21H3v-1.062L7.44 15.5l-3.105-3.104a1.25 1.25 0 0 1 .476-2.066l4.166-1.439a.75.75 0 0 0 .426-.374l2.435-4.87a2.75 2.75 0 0 1 4.405-.715zm3.766 5.886l-4.826-4.825a1.25 1.25 0 0 0-2.002.324l-2.435 4.871a2.25 2.25 0 0 1-1.278 1.12l-3.789 1.31l6.705 6.704l1.308-3.788a2.25 2.25 0 0 1 1.12-1.278l4.872-2.436a1.25 1.25 0 0 0 .325-2.002z",fill:"currentColor"})],-1),M2=[A2];function k2(e,t){return v.openBlock(),v.createElementBlock("svg",D2,M2)}const Qh=X(N2,[["render",k2]]),E2={},P2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},I2=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M3.28 2.22a.75.75 0 0 0-1.06 1.06l5.905 5.905L4.81 10.33a1.25 1.25 0 0 0-.476 2.065L7.439 15.5L3 19.94V21h1.06l4.44-4.44l3.105 3.105a1.25 1.25 0 0 0 2.065-.476l1.145-3.313l5.905 5.904a.75.75 0 1 0 1.06-1.06L3.28 2.22zm10.355 12.476l-1.252 3.626l-6.705-6.705l3.626-1.252l4.331 4.331zm6.048-3.876l-3.787 1.894l1.118 1.118l3.34-1.67a2.75 2.75 0 0 0 .714-4.404l-4.825-4.826a2.75 2.75 0 0 0-4.405.715l-1.67 3.34l1.118 1.117l1.894-3.787a1.25 1.25 0 0 1 2.002-.325l4.826 4.826a1.25 1.25 0 0 1-.325 2.002z",fill:"currentColor"})],-1),L2=[I2];function O2(e,t){return v.openBlock(),v.createElementBlock("svg",P2,L2)}const ed=X(E2,[["render",O2]]),R2={},B2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},V2=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M4.22 8.47a.75.75 0 0 1 1.06 0L12 15.19l6.72-6.72a.75.75 0 1 1 1.06 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L4.22 9.53a.75.75 0 0 1 0-1.06z",fill:"currentColor"})],-1),$2=[V2];function F2(e,t){return v.openBlock(),v.createElementBlock("svg",B2,$2)}const Jl=X(R2,[["render",F2]]),z2={},G2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},H2=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M4.22 15.53a.75.75 0 0 0 1.06 0L12 8.81l6.72 6.72a.75.75 0 1 0 1.06-1.06l-7.25-7.25a.75.75 0 0 0-1.06 0l-7.25 7.25a.75.75 0 0 0 0 1.06z",fill:"currentColor"})],-1),U2=[H2];function W2(e,t){return v.openBlock(),v.createElementBlock("svg",G2,U2)}const td=X(z2,[["render",W2]]),Y2={},q2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},j2=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M16.25 5.18a.75.75 0 0 0 .142 1.051a7.251 7.251 0 0 1-3.599 12.976l.677-.677a.75.75 0 0 0-.977-1.133l-.084.073l-2 2a.75.75 0 0 0-.073.976l.073.084l2 2a.75.75 0 0 0 1.133-.976l-.072-.084l-.75-.75A8.75 8.75 0 0 0 17.301 5.04a.75.75 0 0 0-1.051.141zm-5.72-3.71a.75.75 0 0 0 0 1.06l.75.75a8.75 8.75 0 0 0-4.85 15.47a.75.75 0 1 0 .956-1.157a7.251 7.251 0 0 1 3.82-12.8l-.676.677a.75.75 0 1 0 1.061 1.06l2-2a.75.75 0 0 0 0-1.06l-2-2a.75.75 0 0 0-1.06 0z",fill:"currentColor"})],-1),X2=[j2];function Z2(e,t){return v.openBlock(),v.createElementBlock("svg",q2,X2)}const rd=X(Y2,[["render",Z2]]),K2={},J2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Q2=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M17.754 14a2.249 2.249 0 0 1 2.249 2.25v.918a2.75 2.75 0 0 1-.513 1.598c-1.545 2.164-4.07 3.235-7.49 3.235c-3.421 0-5.944-1.072-7.486-3.236a2.75 2.75 0 0 1-.51-1.596v-.92A2.249 2.249 0 0 1 6.251 14h11.502zM12 2.005a5 5 0 1 1 0 10a5 5 0 0 1 0-10z",fill:"currentColor"})],-1),eT=[Q2];function tT(e,t){return v.openBlock(),v.createElementBlock("svg",J2,eT)}const nd=X(K2,[["render",tT]]),ad=window.localStorage;function Gu(e,t){ad.setItem(e,JSON.stringify(t))}function Kv(e){const t=ad.getItem(e);return t?JSON.parse(t):null}function rT(e){ad.removeItem(e)}function Jv(){return Date.parse(String(new Date))}const nT="local-";class aT{constructor(t=""){Uo(this,"namespace");Uo(this,"mapKey");Uo(this,"map");this.namespace=t,this.mapKey=nT+this.namespace,this.map=Kv(this.mapKey)||{}}set(t,r,n=0){const a=this.getReallyKey(t),i={expires:n,time:Jv()};Gu(a,r),this.map[t]=i,Gu(this.mapKey,this.map)}getReallyKey(t){return this.namespace+"-"+t}get(t,r){const n=this.getReallyKey(t),a=this.map[t];if(a){const i=Kv(n);if(a.expires>0){if(Jv()-a.time<=a.expires)return i===!1||i?i:r;this.delete(t)}else return i===!1||i?i:r}return r}delete(t){const r=this.getReallyKey(t);delete this.map[t],Gu(this.mapKey,this.map),rT(r)}deleteAll(){for(const t in this.map)this.delete(t)}}const id=new aT("partex"),Ea=(e,t,r)=>{const n=new Date;return new Date(`${e||n.getFullYear()}/${t||n.getMonth()+1}/${r||n.getDate()} 00:00:00`).getTime()};function Yt(e,t,r=3e4){if(typeof r=="string"){let n=0;const a=r.split(" ");switch(a[1]){case"Minutes":n=6e4;break;case"Hours":n=36e5;break;case"Day":n=864e5;break;case"Week":n=6048e5;break}r=Number(a[0])*n}id.set(e,t,r)}function Et(e,t){return id.get(e,t)}const Eo=e=>{id.delete(e)},Js=(e=0)=>{const t=document.documentElement;t&&(t.scrollTop=e,setTimeout(()=>{t.scrollTop=e},100))},K0=()=>{const e=document.querySelectorAll(".partex-loading");e&&e.length>0&&e.forEach(t=>{const r=t.parentNode;r==null||r.removeChild(t)})};function Po(e,t=!1){let r=e.records;t&&(r=r.map((a,i)=>({key:i,...a})));const n=parseInt(e.size);return{query:{page:Number(e.current),pageCount:parseInt(e.pages),pageSize:n>29?n:30,itemCount:parseInt(e.total),pageSizes:[30,40,50],showQuickJumper:!0,showSizePicker:!0,pageSlot:8,prefix:()=>v.h("div",{},{default:()=>oe.lang==="zh-CN"?`共${e.total}条`:`${e.total} items`})},records:r}}function Io(e){if(!e.query)return e;const t={};return e.query.page&&(t.current=e.query.page),e.query.pageSize&&(t.size=e.query.pageSize),e.query.isGetAll&&(t.isGetAll=e.query.isGetAll),e.query.keyword&&(t.keyword=e.query.keyword),e.query.columnKey&&(t.columnKey=e.query.columnKey),e.query.order&&(t.order=e.query.order),{...e,query:t}}const Tr=(e,t="yyyy-MM-dd")=>{if(!e)return"";typeof e=="string"&&(e=e.replace(/年/g,"-").replace(/月/g,"-").replace(/日/g,""));let r=new Date(e);if(typeof e=="string"&&isNaN(r.getTime())&&(r=new Date(parseInt(e))),isNaN(r.getTime()))return"---";const n={"M+":r.getMonth()+1,"d+":r.getDate(),"h+":r.getHours(),"m+":r.getMinutes(),"s+":r.getSeconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(r.getFullYear()+"").substr(4-RegExp.$1.length)));for(const a in n)if(new RegExp("("+a+")").test(t)){let i=n[a];RegExp.$1.length!==1&&(i=("00"+n[a]).substr((""+n[a]).length)),t=t.replace(RegExp.$1,i)}return t},Jr=e=>{try{return window.btoa(encodeURIComponent(JSON.stringify(e)))}catch{return""}},po=e=>{try{return JSON.parse(decodeURIComponent(window.atob(e)))}catch{return""}},iT=(e,t=500)=>{const r=e;let n;const a=function(...o){n||(n=setTimeout(function(){n&&clearTimeout(n),n=void 0,r.apply(a,o)},t))};return a};function oT(e,t){e.requestFullscreen?(t&&(e.onfullscreenchange=t),e.requestFullscreen()):e.mozRequestFullScreen?(t&&(e.onmozfullscreenchange=t),e.mozRequestFullScreen()):e.webkitRequestFullscreen?(t&&(e.onwebkitfullscreenchange=t),e.webkitRequestFullscreen()):e.msRequestFullscreen&&(t&&(e.onmsfullscreenchange=t),e.msRequestFullscreen())}function sT(e,t=0){const r=["","k","m","b","t"],n=Math.floor(Math.log10(Math.abs(e))/3),a=Math.max(0,Math.min(n,r.length-1)),i=r[a];return i?(e/Math.pow(10,a*3)).toFixed(t)+i:(e/Math.pow(10,a*3)).toFixed(0)}const lT={Platform:{components:"组件库",iot:"智能效率监测平台",prt:"智能效率监测平台",tdm:"智能刀具管理平台",qms:"智能质量检测平台",twin:"智能数字大屏平台",maintain:"智能设备维保平台",order:"智能工单管理平台"},Notice:{success:"操作成功",error:"操作失败,请稍后重试"},Common:{validDays:"报表文件具有七天有效期",add:"新增",edit:"编辑",apply:"保存",cancel:"取消",search:"查询",refresh:"刷新",filter:"筛选",reset:"重置",more:"更多",export:"导出",success:"成功",failed:"失败",processing:"处理中",action:"操作",back:"返回",title:"零捷互联智能云平台",message:{title:"消息列表",title2:"消息",unRead:"未读",all:"全部",read:"已读",readAll:"一键已读"},login:{mobile:"手机号",mobilePlaceholder:"请输入手机号码",mobileMessage:"请输入正确的手机号码",password:"密码",passwordPlaceholder:"请输入密码",passwordMessage:"请输入密码",userName:"用户名",userNamePlaceholder:"请输入用户名",userNameMessage:"请输入正确的用户名",in:"登录"},my:{title:"我的信息",tenantCode:"租户代码",tenantName:"租户名称",name:"名称",email:"邮箱",emailMessage:"邮箱格式不正确",realName:"真实姓名",phone:"手机",phoneMessage:"手机号码格式不正确",submit:"更新",password:"修改密码",oldPassword:"旧密码",newPassword:"新密码",checkPassword:"确认新密码",oldPasswordMessage:"请填写旧密码",newPasswordMessage:"请填写新密码",checkPasswordMessage:"请填写确认新密码"},dropdownMenu:{software:"零捷软件",android:"安卓APP",ios:"iOS APP",chrome:"Chrome浏览器",edge:"Edge浏览器",dashboard_IoT:"大屏机加工版本",dashboard_Prt:"大屏印刷版本",report:"个性化报表",info:"我的信息",language:"语言",theme:"主题",light:"亮",dark:"暗",logout:"退出"},importer:{title:"导入",file:"导入文件",download:"下载模版",btnDownload:"下载",fileName:"文件名称",status:"状态",createTime:"创建时间",retry:"重试"}}},uT={Platform:{components:"Components",iot:"SMART LEAN IOT PLATFORM",prt:"SMART LEAN IOT PLATFORM",tdm:"SMART TOOL MANAGEMENT PLATFORM",qms:"SMART QUALITY MANAGEMENT PLATFORM",twin:"SMART DASHBOARD PLATFORM",maintain:"SMART MAINTAIN PLATFORM",order:"SMART ORDER MANAGEMENT PLATFORM"},Notice:{success:"Success",error:"An error occurred, please try again later"},Common:{validDays:"Files are valid for seven days",add:"Insert",edit:"Edit",apply:"Apply",cancel:"Cancel",search:"Search",refresh:"Refresh",filter:"Filter",reset:"Reset",more:"More",export:"Export",success:"Success",failed:"Failed",processing:"Processing",action:"Action",back:"Back",title:"Partex",message:{title:"Messages",title2:"Message",unRead:"Unread",all:"All",read:"Read",readAll:"Read All"},login:{mobile:"Mobile",mobilePlaceholder:"Please Input Mobile",mobileMessage:"Mobile is not correct",password:"Password",passwordPlaceholder:"Please Input Password",passwordMessage:"Please Input Password",userName:"UserName",userNamePlaceholder:"Please Input UserName",userNameMessage:"UserName is not correct",in:"Sign in"},my:{title:"Info",tenantCode:"TenantCode",tenantName:"TenantName",name:"Name",email:"Email",emailMessage:"Email is not correct",realName:"RealName",phone:"Mobile",phoneMessage:"Mobile is not correct",submit:"Apply",password:"Change Password",oldPassword:"Current",newPassword:"New",checkPassword:"Check",oldPasswordMessage:"Please Input Current Password",newPasswordMessage:"Please Input New Password",checkPasswordMessage:"Please Check New Password"},dropdownMenu:{software:"Softwares",android:"Android APP",ios:"iOS APP",chrome:"Chrome",edge:"Edge",dashboard:"Dashboard",dashboard_IoT:"Dashboard_IoT",dashboard_Prt:"Dashboard_Print",report:"Reports",info:"My",language:"Language",theme:"Theme",light:"Light",dark:"Dark",logout:"Logout"},importer:{title:"Import",file:"Import File",download:"Download Template",btnDownload:"Download",fileName:"FileName",status:"Status",createTime:"CreateTime",retry:"Retry"}}},cT=Kt.createI18n({legacy:!1,locale:"zh-CN",messages:{"en-US":{...uT},"zh-CN":{...lT},"fr-FR":{}}}),yt=cT,J0="2.0.64",Qv={Components:{platformName:()=>`${yt.global.t("Platform.components")} v${J0}`,platformType:"T0",platformUrl:"/",platformMainUrl:""},iot:{platformName:()=>yt.global.t("Platform.iot"),platformType:"T1",platformUrl:"/iot/home/all",platformMainUrl:""},prt:{platformName:()=>yt.global.t("Platform.prt"),platformType:"T1",platformUrl:"/prt/home/all",platformMainUrl:""},tdm:{platformName:()=>yt.global.t("Platform.tdm"),platformType:"T2",platformUrl:"/tdm/home",platformMainUrl:"/iot/home/all"},qms:{platformName:()=>yt.global.t("Platform.qms"),platformType:"T3",platformUrl:"/qms/home",platformMainUrl:"/iot/home/all"},twin:{platformName:()=>yt.global.t("Platform.twin"),platformType:"T4",platformUrl:"/twin/home",platformMainUrl:"/prt/home/all"},maintain:{platformName:()=>yt.global.t("Platform.maintain"),platformType:"T5",platformUrl:"/maintain/home",platformMainUrl:"auto"},order:{platformName:()=>yt.global.t("Platform.order"),platformType:"T6",platformUrl:"/order/home",platformMainUrl:"/prt/home/all"}},oe=v.reactive({needUpdate:!1,download:!1,theme:!1,isPad:!1,isMobile:!1,language:!1,lang:"zh-CN",platformName:()=>yt.global.t("Platform.iot"),platformType:"T1",platformUrl:"/iot/home/all",platformMainUrl:""});function od(e){oe.download=e}function fT(e){oe.language=e}function Ya(e){let t;e?t=e:oe.lang==="zh-CN"?t="en-US":t="zh-CN",Yt("lang",t,0),oe.lang=t;const r=document.body;r.dataset.lang=t,yt.global.locale.value=t}function hT(e){const t=Qv[e]||Qv.iot;oe.platformName=t.platformName,oe.platformType=t.platformType,oe.platformUrl=t.platformUrl,oe.platformMainUrl=t.platformMainUrl||"auto",document.title=t.platformName()}function Lo(e){oe.theme=e;const t=document.body,r=document.querySelector("meta[name=theme-color]");e?t.dataset.theme="dark":t.dataset.theme="",r&&(e?r.setAttribute("content","#2b2b2d"):r.setAttribute("content","#ffffff"))}function dT(e){oe.needUpdate=e}const Q0=()=>{oe.isMobile=window.screen.availWidth<769,oe.isPad=window.screen.availWidth<1024};window.addEventListener("resize",Q0);Q0();const Wo=(e,t)=>v.h(O.NTooltip,{style:{"max-width":"300px"}},{trigger:()=>e,default:()=>typeof t=="function"?t():t}),Nr=(e,t="default",r,n,a)=>{const i={size:"small",type:t,text:!0,disabled:typeof e.disabled=="function"?e.disabled(n,a):e.disabled||!1,loading:e.loading||!1},o={default:()=>typeof e.buttonText=="function"?e.buttonText():e.buttonText||null};if(!e.confirmText){if(e.onClick&&typeof e.onClick=="string"){const s=e.onClick;i.onClick=()=>{new Function("rowData","rowIndex",s)(n,a)}}e.onClick&&typeof e.onClick=="function"&&(i.onClick=e.onClick.bind(void 0,n,a))}return r&&(o.icon=()=>v.h(O.NIcon,{},{default:()=>v.h(r,{},{default:()=>null})})),v.h(O.NButton,i,o)},Qs=(e,t,r,n)=>{const a={placement:"left"};if(typeof t.onClick=="string"){const i=t.onClick;a["on-positive-click"]=()=>{new Function("rowData","rowIndex",i)(r,n)}}else t.onClick&&(a["on-positive-click"]=t.onClick.bind(void 0,r,n));return v.h(O.NPopconfirm,a,{default:()=>v.h("span",{style:{"max-width":"300px"}},{default:()=>typeof t.confirmText=="function"?t.confirmText():t.confirmText}),trigger:()=>e})},vT=(e,t,r)=>{let n;if(e.type==="detail"){const a=Nr(e,e.color?e.color:"primary",e.icon?e.icon:Xl,t,r);e.buttonText?n=a:n=Wo(a,oe.lang==="zh-CN"?"详情":"Detail")}if(e.type==="edit"){const a=Nr(e,e.color?e.color:"success",e.icon?e.icon:Jh,t,r);e.buttonText?n=a:n=Wo(a,oe.lang==="zh-CN"?"编辑":"Edit")}if(e.type==="delete"){let a=Nr({...e,onClick:""},e.color?e.color:"error",e.icon?e.icon:Zh,t,r);e.buttonText?a=a:a=Wo(a,oe.lang==="zh-CN"?"删除":"Delete"),n=Qs(a,{...e,confirmText:oe.lang==="zh-CN"?"删除后无法恢复,是否确认删除?":"Are you sure you want to delete ?"},t,r)}if(e.type==="custom"){const a=Nr(e.confirmText?{...e,onClick:""}:e,e.color,e.icon,t,r);e.buttonText?n=a:n=Wo(a,e.tooltipText)}return e.confirmText&&(n=Qs(n,e,t,r)),n},pT=(e,t,r)=>{const n=[];return e.forEach(a=>{let i;a.type==="detail"&&(i=Nr({...a,buttonText:oe.lang==="zh-CN"?"详情":"Detail"},"primary",void 0,t,r)),a.type==="edit"&&(i=Nr({...a,buttonText:oe.lang==="zh-CN"?"编辑":"Edit"},"success",void 0,t,r)),a.type==="delete"&&(i=Qs(Nr({...a,onClick:"",buttonText:oe.lang==="zh-CN"?"删除":"Delete"},"error",void 0,t,r),{...a,confirmText:oe.lang==="zh-CN"?"删除后无法恢复,是否确认删除?":"Are you sure you want to delete ?"},t,r)),a.type==="custom"&&(i=Nr(a,a.color,void 0,t,r)),a.confirmText&&(i=Qs(i,a,t,r)),n.push(i)}),n},pn=(e,t,r)=>{const n=[];return e.forEach(a=>{if(a.type==="group"){if(a.children.length>0){const i=pT(a.children,t,r);n.push(v.h(O.NPopover,{trigger:"hover"},{trigger:()=>Nr({buttonText:typeof a.buttonText=="function"?a.buttonText():a.buttonText,disabled:typeof a.disabled=="function"?a.disabled(t,r):a.disabled,loading:a.loading},a.color,a.icon,t,r),default:()=>v.h(O.NFlex,{vertical:!0},{default:()=>i})}))}}else{const i=vT(a,t,r);n.push(i)}}),v.h("div",{class:"action-flex"},{default:()=>n})},gT=v.defineComponent({name:"OcAuth",setup(){const e=$t.useRoute(),t=$t.useRouter(),{auth:r}=e.query;r?Yt("token",r,0):Eo("token"),t.replace(oe.platformUrl)}}),mT={class:"com-card flex-center",style:{flex:"1"}},yT=v.createElementVNode("p",{class:"oc-miss-title"},"登录中...",-1),_T=[yT];function wT(e,t,r,n,a,i){return v.openBlock(),v.createElementBlock("div",mT,_T)}const e_=X(gT,[["render",wT]]),bT=v.defineComponent({name:"OcBack",components:{IconChevronLeft:qh,NButton:O.NButton,NIcon:O.NIcon},props:{to:{type:String,default:""}},setup(e){const t=$t.useRouter();return{back:()=>{e.to?t.push(e.to):t.back()}}}});function ST(e,t,r,n,a,i){const o=v.resolveComponent("IconChevronLeft"),s=v.resolveComponent("NIcon"),l=v.resolveComponent("NButton");return v.openBlock(),v.createBlock(l,{text:"",onClick:e.back},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(o)]),_:1})]),default:v.withCtx(()=>[v.createElementVNode("span",null,v.toDisplayString(e.$t("Common.back")),1)]),_:1},8,["onClick"])}const t_=X(bT,[["render",ST]]),CT=v.defineComponent({name:"OcCircle",components:{NPopover:O.NPopover},props:{circle:{required:!0,type:Number,default:0},circleTxt:{type:String,default:""},pointA:{type:Number,default:void 0},pointB:{type:Number,default:void 0},pointSize:{type:Number,default:3},styles:{type:Object,default:()=>({backgroundBg:"rgba(255, 255, 255, 0.1)",processBg:"#fff",pointABg:"#f2a651",pointBBg:"#67c67e"})}},setup(e){const t=v.ref({show:!1,text:"",x:0,y:0});return{popover:t,calculateCircle:()=>{let s=314-e.circle*Math.PI;return s<=0&&(s=0),`stroke-dashoffset: ${s}`},calculatePointA:()=>e.pointA?`rotate(${-90+e.pointA*3.6} 100 80) translate(50, 0)`:"",calculatePointB:()=>e.pointB?`rotate(${-90+e.pointB*3.6} 100 80) translate(50, 0)`:"",mouseOver:(s,l)=>{const u=l==="a"?e.pointA:e.pointB;t.value={show:!0,text:`${u}%`,x:s.clientX,y:s.clientY}},mouseOut:()=>{t.value.show=!1}}}}),xT={viewBox:"40 20 120 120"},TT=v.createElementVNode("defs",null,[v.createElementVNode("filter",{id:"blurs"},[v.createElementVNode("feOffset",{result:"offOut",in:"SourceGraphic",dx:"0",dy:"0"}),v.createElementVNode("feGaussianBlur",{result:"blurOut",in:"offOut",stdDeviation:"0.8"}),v.createElementVNode("feBlend",{in:"SourceGraphic",in2:"blurOut",mode:"normal"})])],-1),NT=["stroke"],DT=["stroke"],AT=["r","transform","fill"],MT=["r","transform","fill"],kT={dx:"100",dy:"90",fill:"#333","text-anchor":"middle",style:{"font-size":"28px"}};function ET(e,t,r,n,a,i){const o=v.resolveComponent("NPopover");return v.openBlock(),v.createElementBlock(v.Fragment,null,[(v.openBlock(),v.createElementBlock("svg",xT,[TT,v.createElementVNode("circle",{transform:"rotate(-90 100 80)",cx:"100",cy:"80",r:"50",fill:"none","stroke-width":"10","stroke-dashoffset":"0",stroke:e.styles.backgroundBg},null,8,NT),v.createElementVNode("circle",{class:"oc-circle-round","stroke-linecap":"round",transform:"rotate(-90 100 80)",cx:"100",cy:"80",r:"50",fill:"none","stroke-width":"10",style:v.normalizeStyle(e.calculateCircle()),stroke:e.styles.processBg},null,12,DT),e.pointA?(v.openBlock(),v.createElementBlock("circle",{key:0,class:"oc-circle-round",filter:"url(#blurs)",cx:"100",cy:"80",r:e.pointSize,"stroke-width":"0",transform:e.calculatePointA(),fill:e.styles.pointABg,onMouseover:t[0]||(t[0]=s=>{e.mouseOver(s,"a")}),onMouseout:t[1]||(t[1]=(...s)=>e.mouseOut&&e.mouseOut(...s))},null,40,AT)):v.createCommentVNode("",!0),e.pointB?(v.openBlock(),v.createElementBlock("circle",{key:1,class:"oc-circle-round",filter:"url(#blurs)",cx:"100",cy:"80",r:e.pointSize,"stroke-width":"0",transform:e.calculatePointB(),fill:e.styles.pointBBg,onMouseover:t[2]||(t[2]=s=>{e.mouseOver(s,"b")}),onMouseout:t[3]||(t[3]=(...s)=>e.mouseOut&&e.mouseOut(...s))},null,40,MT)):v.createCommentVNode("",!0),v.createElementVNode("text",kT,v.toDisplayString(e.circleTxt?e.circleTxt:`${e.circle}%`),1)])),v.createVNode(o,{show:e.popover.show,x:e.popover.x,y:e.popover.y,"show-arrow":!1,trigger:"manual"},{default:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(e.popover.text),1)]),_:1},8,["show","x","y"])],64)}const r_=X(CT,[["render",ET]]);/*! *****************************************************************************
1
+ "use strict";var bC=Object.defineProperty;var SC=(e,t,r)=>t in e?bC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ho=(e,t,r)=>(SC(e,typeof t!="symbol"?t+"":t,r),r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const v=require("vue"),O=require("naive-ui"),$t=require("vue-router"),Kt=require("vue-i18n"),Uh=require("axios"),Bs=require("md5"),CC=require("jsqr"),xC=require("vuedraggable"),X0=v.defineComponent({name:"OcActionButton",props:{data:{required:!0,type:Array,default:()=>[]}},setup(e){return()=>pn(e.data)}}),X=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},TC={},NC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},DC=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M11.75 3a.75.75 0 0 1 .743.648l.007.102l.001 7.25h7.253a.75.75 0 0 1 .102 1.493l-.102.007h-7.253l.002 7.25a.75.75 0 0 1-1.493.101l-.007-.102l-.002-7.249H3.752a.75.75 0 0 1-.102-1.493L3.752 11h7.25L11 3.75a.75.75 0 0 1 .75-.75z",fill:"currentColor"})],-1),AC=[DC];function MC(e,t){return v.openBlock(),v.createElementBlock("svg",NC,AC)}const Ul=X(TC,[["render",MC]]),kC={},EC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},PC=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M12 1.996a7.49 7.49 0 0 1 7.496 7.25l.004.25v4.097l1.38 3.156a1.249 1.249 0 0 1-1.145 1.75L15 18.502a3 3 0 0 1-5.995.177L9 18.499H4.275a1.251 1.251 0 0 1-1.147-1.747L4.5 13.594V9.496c0-4.155 3.352-7.5 7.5-7.5zM13.5 18.5l-3 .002a1.5 1.5 0 0 0 2.993.145l.007-.147zM12 3.496c-3.32 0-6 2.674-6 6v4.41L4.656 17h14.697L18 13.907V9.509l-.003-.225A5.988 5.988 0 0 0 12 3.496z",fill:"currentColor"})],-1),IC=[PC];function LC(e,t){return v.openBlock(),v.createElementBlock("svg",EC,IC)}const Wh=X(kC,[["render",LC]]),OC={},RC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},BC=v.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[v.createElementVNode("path",{d:"M8 6h12"}),v.createElementVNode("path",{d:"M6 12h12"}),v.createElementVNode("path",{d:"M4 18h12"})],-1),VC=[BC];function $C(e,t){return v.openBlock(),v.createElementBlock("svg",RC,VC)}const Yh=X(OC,[["render",$C]]),FC={},zC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},GC=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0z",fill:"currentColor"})],-1),HC=[GC];function UC(e,t){return v.openBlock(),v.createElementBlock("svg",zC,HC)}const qh=X(FC,[["render",UC]]),WC={},YC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},qC=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M16.53 11.72l-.084-.072a.75.75 0 0 0-.976.072l-2.72 2.72V7.75l-.007-.102A.75.75 0 0 0 12 7l-.102.007a.75.75 0 0 0-.648.743v6.692L8.53 11.72l-.085-.073a.75.75 0 0 0-.976 1.133l4 4.002l.084.072a.75.75 0 0 0 .976-.072l4.001-4l.073-.085a.75.75 0 0 0-.073-.977zM6.25 3A3.25 3.25 0 0 0 3 6.25v11.5A3.25 3.25 0 0 0 6.25 21h11.5A3.25 3.25 0 0 0 21 17.75V6.25A3.25 3.25 0 0 0 17.75 3H6.25zM4.5 6.25c0-.966.784-1.75 1.75-1.75h11.5c.966 0 1.75.784 1.75 1.75v11.5a1.75 1.75 0 0 1-1.75 1.75H6.25a1.75 1.75 0 0 1-1.75-1.75V6.25z",fill:"currentColor"})],-1),jC=[qC];function XC(e,t){return v.openBlock(),v.createElementBlock("svg",YC,jC)}const jh=X(WC,[["render",XC]]),ZC={},KC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},JC=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M20.026 17.001c-2.762 4.784-8.879 6.423-13.663 3.661A9.965 9.965 0 0 1 3.13 17.68a.75.75 0 0 1 .365-1.132c3.767-1.348 5.785-2.91 6.956-5.146c1.232-2.353 1.551-4.93.689-8.463a.75.75 0 0 1 .769-.927a9.961 9.961 0 0 1 4.457 1.327c4.784 2.762 6.423 8.879 3.66 13.662z",fill:"currentColor"})],-1),QC=[JC];function ex(e,t){return v.openBlock(),v.createElementBlock("svg",KC,QC)}const Wl=X(ZC,[["render",ex]]),tx={},rx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},nx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M12 2a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 12 2zm5 10a5 5 0 1 1-10 0a5 5 0 0 1 10 0zm4.25.75a.75.75 0 0 0 0-1.5h-1.5a.75.75 0 0 0 0 1.5h1.5zM12 19a.75.75 0 0 1 .75.75v1.5a.75.75 0 0 1-1.5 0v-1.5A.75.75 0 0 1 12 19zm-7.75-6.25a.75.75 0 0 0 0-1.5h-1.5a.75.75 0 0 0 0 1.5h1.5zm-.03-8.53a.75.75 0 0 1 1.06 0l1.5 1.5a.75.75 0 0 1-1.06 1.06l-1.5-1.5a.75.75 0 0 1 0-1.06zm1.06 15.56a.75.75 0 1 1-1.06-1.06l1.5-1.5a.75.75 0 1 1 1.06 1.06l-1.5 1.5zm14.5-15.56a.75.75 0 0 0-1.06 0l-1.5 1.5a.75.75 0 0 0 1.06 1.06l1.5-1.5a.75.75 0 0 0 0-1.06zm-1.06 15.56a.75.75 0 1 0 1.06-1.06l-1.5-1.5a.75.75 0 1 0-1.06 1.06l1.5 1.5z",fill:"currentColor"})],-1),ax=[nx];function ix(e,t){return v.openBlock(),v.createElementBlock("svg",rx,ax)}const Yl=X(tx,[["render",ix]]),ox={},sx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},lx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M12 17a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4zM5 17a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7-7a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4zM5 10a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7-7a2 2 0 1 1 0 4a2 2 0 0 1 0-4zm7 0a2 2 0 1 1 0 4a2 2 0 0 1 0-4zM5 3a2 2 0 1 1 0 4a2 2 0 0 1 0-4z",fill:"currentColor"})],-1),ux=[lx];function cx(e,t){return v.openBlock(),v.createElementBlock("svg",sx,ux)}const Xh=X(ox,[["render",cx]]),fx={},hx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},dx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M10 2.75a7.25 7.25 0 0 1 5.63 11.819l4.9 4.9a.75.75 0 0 1-.976 1.134l-.084-.073l-4.901-4.9A7.25 7.25 0 1 1 10 2.75zm0 1.5a5.75 5.75 0 1 0 0 11.5a5.75 5.75 0 0 0 0-11.5z",fill:"currentColor"})],-1),vx=[dx];function px(e,t){return v.openBlock(),v.createElementBlock("svg",hx,vx)}const ql=X(fx,[["render",px]]),gx={},mx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},yx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M12 4.5a7.5 7.5 0 1 0 7.419 6.392c-.067-.454.265-.892.724-.892c.37 0 .696.256.752.623A9 9 0 1 1 18 5.292V4.25a.75.75 0 0 1 1.5 0v3a.75.75 0 0 1-.75.75h-3a.75.75 0 0 1 0-1.5h1.35a7.474 7.474 0 0 0-5.1-2z",fill:"currentColor"})],-1),_x=[yx];function bx(e,t){return v.openBlock(),v.createElementBlock("svg",mx,_x)}const Wa=X(gx,[["render",bx]]),Sx={},Cx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},xx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M17.75 3A3.25 3.25 0 0 1 21 6.25v5.772a6.471 6.471 0 0 0-1.5-.709V8.5h-15v9.25c0 .966.784 1.75 1.75 1.75h5.063c.173.534.412 1.037.709 1.5H6.25A3.25 3.25 0 0 1 3 17.75V6.25A3.25 3.25 0 0 1 6.25 3h11.5zm0 1.5H6.25A1.75 1.75 0 0 0 4.5 6.25V7h15v-.75a1.75 1.75 0 0 0-1.75-1.75zm5.25 13a5.5 5.5 0 1 1-11 0a5.5 5.5 0 0 1 11 0zm-5-3a.5.5 0 0 0-1 0v4.793l-1.646-1.647a.5.5 0 0 0-.708.708l2.5 2.5a.5.5 0 0 0 .708 0l2.5-2.5a.5.5 0 0 0-.708-.708L18 19.293V14.5z",fill:"currentColor"})],-1),Tx=[xx];function Nx(e,t){return v.openBlock(),v.createElementBlock("svg",Cx,Tx)}const Ao=X(Sx,[["render",Nx]]),Dx={},Ax={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Mx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M13.5 16a.75.75 0 0 1 0 1.5h-3a.75.75 0 0 1 0-1.5h3zm3-5a.75.75 0 0 1 0 1.5h-9a.75.75 0 0 1 0-1.5h9zm3-5a.75.75 0 0 1 0 1.5h-15a.75.75 0 0 1 0-1.5h15z",fill:"currentColor"})],-1),kx=[Mx];function Ex(e,t){return v.openBlock(),v.createElementBlock("svg",Ax,kx)}const jl=X(Dx,[["render",Ex]]),Px={},Ix={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Lx=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M4.5 5.75c0-.69.56-1.25 1.25-1.25h2a.75.75 0 0 0 0-1.5h-2A2.75 2.75 0 0 0 3 5.75v2a.75.75 0 0 0 1.5 0v-2zm0 12.5c0 .69.56 1.25 1.25 1.25h2a.75.75 0 0 1 0 1.5h-2A2.75 2.75 0 0 1 3 18.25v-2a.75.75 0 0 1 1.5 0v2zM18.25 4.5c.69 0 1.25.56 1.25 1.25v2a.75.75 0 0 0 1.5 0v-2A2.75 2.75 0 0 0 18.25 3h-2a.75.75 0 0 0 0 1.5h2zm1.25 13.75c0 .69-.56 1.25-1.25 1.25h-2a.75.75 0 0 0 0 1.5h2A2.75 2.75 0 0 0 21 18.25v-2a.75.75 0 0 0-1.5 0v2z",fill:"currentColor"})],-1),Ox=[Lx];function Rx(e,t){return v.openBlock(),v.createElementBlock("svg",Ix,Ox)}const Z0=X(Px,[["render",Rx]]),Bx={},Vx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},$x=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M12 1.75a3.25 3.25 0 0 1 3.245 3.066L15.25 5h5.25a.75.75 0 0 1 .102 1.493L20.5 6.5h-.796l-1.28 13.02a2.75 2.75 0 0 1-2.561 2.474l-.176.006H8.313a2.75 2.75 0 0 1-2.714-2.307l-.023-.174L4.295 6.5H3.5a.75.75 0 0 1-.743-.648L2.75 5.75a.75.75 0 0 1 .648-.743L3.5 5h5.25A3.25 3.25 0 0 1 12 1.75zm6.197 4.75H5.802l1.267 12.872a1.25 1.25 0 0 0 1.117 1.122l.127.006h7.374c.6 0 1.109-.425 1.225-1.002l.02-.126L18.196 6.5zM13.75 9.25a.75.75 0 0 1 .743.648L14.5 10v7a.75.75 0 0 1-1.493.102L13 17v-7a.75.75 0 0 1 .75-.75zm-3.5 0a.75.75 0 0 1 .743.648L11 10v7a.75.75 0 0 1-1.493.102L9.5 17v-7a.75.75 0 0 1 .75-.75zm1.75-6a1.75 1.75 0 0 0-1.744 1.606L10.25 5h3.5A1.75 1.75 0 0 0 12 3.25z",fill:"currentColor"})],-1),Fx=[$x];function zx(e,t){return v.openBlock(),v.createElementBlock("svg",Vx,Fx)}const Zh=X(Bx,[["render",zx]]),Gx={},Hx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},Ux=v.createElementVNode("path",{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 0 0 0 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3c7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176s176-78.8 176-176s-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112s112 50.1 112 112s-50.1 112-112 112z",fill:"currentColor"},null,-1),Wx=[Ux];function Yx(e,t){return v.openBlock(),v.createElementBlock("svg",Hx,Wx)}const Xl=X(Gx,[["render",Yx]]),qx={},jx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},Xx=v.createElementVNode("path",{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512C791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 0 0 0-51.5zm-63.57-320.64L836 122.88a8 8 0 0 0-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 0 0 0 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 0 0 0 11.31L155.17 889a8 8 0 0 0 11.31 0l712.15-712.12a8 8 0 0 0 0-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 0 0-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 0 1 146.2-106.69L401.31 546.2A112 112 0 0 1 396 512z",fill:"currentColor"},null,-1),Zx=v.createElementVNode("path",{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 0 0 227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 0 1-112 112z",fill:"currentColor"},null,-1),Kx=[Xx,Zx];function Jx(e,t){return v.openBlock(),v.createElementBlock("svg",jx,Kx)}const Kh=X(qx,[["render",Jx]]),Qx={},e2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},t2=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M20 4.746a2.75 2.75 0 0 0-2.75-2.75H4.75A2.75 2.75 0 0 0 2 4.746v12.5a2.75 2.75 0 0 0 2.75 2.75h6.666l.105-.42c.096-.384.253-.748.463-1.08H4.75c-.69 0-1.25-.56-1.25-1.25v-12.5c0-.69.56-1.25 1.25-1.25h12.5c.69 0 1.25.56 1.25 1.25v7.113c.437-.4.956-.66 1.5-.781V4.746zm-4 9.608V6.73l-.007-.1A.744.744 0 0 0 15.25 6a.74.74 0 0 0-.75.73v8.541l.007.099c.017.125.067.24.142.337L16 14.355zm-8.507-5.71A.75.75 0 0 0 6.75 8a.748.748 0 0 0-.75.747v6.507l.007.101c.05.365.363.645.743.645c.414 0 .75-.334.75-.746V8.746l-.007-.101zm4.214 2.973a.73.73 0 0 0-.732-.62a.73.73 0 0 0-.725.733l.035 3.547l.008.099a.731.731 0 0 0 .732.62a.73.73 0 0 0 .725-.733l-.035-3.548l-.008-.098zm7.393 1.052l-5.903 5.902a2.686 2.686 0 0 0-.706 1.248l-.458 1.83a1.087 1.087 0 0 0 1.319 1.319l1.83-.458a2.685 2.685 0 0 0 1.248-.706l5.902-5.903A2.286 2.286 0 0 0 19.1 12.67z",fill:"currentColor"})],-1),r2=[t2];function n2(e,t){return v.openBlock(),v.createElementBlock("svg",e2,r2)}const Jh=X(Qx,[["render",n2]]),a2={},i2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},o2=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M4.397 4.554l.073-.084a.75.75 0 0 1 .976-.073l.084.073L12 10.939l6.47-6.47a.75.75 0 1 1 1.06 1.061L13.061 12l6.47 6.47a.75.75 0 0 1 .072.976l-.073.084a.75.75 0 0 1-.976.073l-.084-.073L12 13.061l-6.47 6.47a.75.75 0 0 1-1.06-1.061L10.939 12l-6.47-6.47a.75.75 0 0 1-.072-.976l.073-.084l-.073.084z",fill:"currentColor"})],-1),s2=[o2];function l2(e,t){return v.openBlock(),v.createElementBlock("svg",i2,s2)}const cn=X(a2,[["render",l2]]),u2={},c2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},f2=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M22 6.5a5.5 5.5 0 1 0-11 0a5.5 5.5 0 0 0 11 0zM17 7l.001 2.504a.5.5 0 1 1-1 0V7h-2.505a.5.5 0 0 1 0-1H16V3.5a.5.5 0 0 1 1 0V6h2.503a.5.5 0 1 1 0 1h-2.502zm2.5 7v-1.732A6.518 6.518 0 0 0 21 11.19v7.56a3.25 3.25 0 0 1-3.066 3.245L17.75 22H6.25a3.25 3.25 0 0 1-3.245-3.066L3 18.75V7.25a3.25 3.25 0 0 1 3.066-3.245L6.25 4h4.248a6.451 6.451 0 0 0-.422 1.5H6.25a1.75 1.75 0 0 0-1.744 1.606L4.5 7.25V14H9a.75.75 0 0 1 .743.648l.007.102a2.25 2.25 0 0 0 4.495.154l.005-.154a.75.75 0 0 1 .648-.743L15 14h4.5zm-15 1.5v3.25a1.75 1.75 0 0 0 1.606 1.744l.144.006h11.5a1.75 1.75 0 0 0 1.744-1.607l.006-.143V15.5h-3.825a3.752 3.752 0 0 1-3.475 2.995l-.2.005a3.752 3.752 0 0 1-3.632-2.812l-.043-.188H4.5z",fill:"currentColor"})],-1),h2=[f2];function d2(e,t){return v.openBlock(),v.createElementBlock("svg",c2,h2)}const Mo=X(u2,[["render",d2]]),v2={},p2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},g2=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M6.087 7.75a5.752 5.752 0 0 1 11.326 0h.087a4 4 0 0 1 3.962 4.552a6.534 6.534 0 0 0-1.597-1.364A2.501 2.501 0 0 0 17.5 9.25h-.756a.75.75 0 0 1-.75-.713a4.25 4.25 0 0 0-8.489 0a.75.75 0 0 1-.749.713H6a2.5 2.5 0 0 0 0 5h4.4a6.458 6.458 0 0 0-.357 1.5H6a4 4 0 0 1 0-8h.087zM22 16.5a5.5 5.5 0 1 0-11 0a5.5 5.5 0 0 0 11 0zm-6-3a.5.5 0 0 1 1 0v4.793l1.646-1.647a.5.5 0 0 1 .708.708l-2.5 2.5a.5.5 0 0 1-.708 0l-2.5-2.5a.5.5 0 0 1 .708-.708L16 18.293V13.5z",fill:"currentColor"})],-1),m2=[g2];function y2(e,t){return v.openBlock(),v.createElementBlock("svg",p2,m2)}const Zl=X(v2,[["render",y2]]),_2={},w2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},b2=v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 160h352"},null,-1),S2=v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 256h352"},null,-1),C2=v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 352h352"},null,-1),x2=[b2,S2,C2];function T2(e,t){return v.openBlock(),v.createElementBlock("svg",w2,x2)}const Kl=X(_2,[["render",T2]]),N2={},D2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},A2=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M16.242 2.932l4.826 4.826a2.75 2.75 0 0 1-.715 4.404l-4.87 2.435a.75.75 0 0 0-.374.426l-1.44 4.166a1.25 1.25 0 0 1-2.065.476L8.5 16.561L4.06 21H3v-1.062L7.44 15.5l-3.105-3.104a1.25 1.25 0 0 1 .476-2.066l4.166-1.439a.75.75 0 0 0 .426-.374l2.435-4.87a2.75 2.75 0 0 1 4.405-.715zm3.766 5.886l-4.826-4.825a1.25 1.25 0 0 0-2.002.324l-2.435 4.871a2.25 2.25 0 0 1-1.278 1.12l-3.789 1.31l6.705 6.704l1.308-3.788a2.25 2.25 0 0 1 1.12-1.278l4.872-2.436a1.25 1.25 0 0 0 .325-2.002z",fill:"currentColor"})],-1),M2=[A2];function k2(e,t){return v.openBlock(),v.createElementBlock("svg",D2,M2)}const Qh=X(N2,[["render",k2]]),E2={},P2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},I2=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M3.28 2.22a.75.75 0 0 0-1.06 1.06l5.905 5.905L4.81 10.33a1.25 1.25 0 0 0-.476 2.065L7.439 15.5L3 19.94V21h1.06l4.44-4.44l3.105 3.105a1.25 1.25 0 0 0 2.065-.476l1.145-3.313l5.905 5.904a.75.75 0 1 0 1.06-1.06L3.28 2.22zm10.355 12.476l-1.252 3.626l-6.705-6.705l3.626-1.252l4.331 4.331zm6.048-3.876l-3.787 1.894l1.118 1.118l3.34-1.67a2.75 2.75 0 0 0 .714-4.404l-4.825-4.826a2.75 2.75 0 0 0-4.405.715l-1.67 3.34l1.118 1.117l1.894-3.787a1.25 1.25 0 0 1 2.002-.325l4.826 4.826a1.25 1.25 0 0 1-.325 2.002z",fill:"currentColor"})],-1),L2=[I2];function O2(e,t){return v.openBlock(),v.createElementBlock("svg",P2,L2)}const ed=X(E2,[["render",O2]]),R2={},B2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},V2=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M4.22 8.47a.75.75 0 0 1 1.06 0L12 15.19l6.72-6.72a.75.75 0 1 1 1.06 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L4.22 9.53a.75.75 0 0 1 0-1.06z",fill:"currentColor"})],-1),$2=[V2];function F2(e,t){return v.openBlock(),v.createElementBlock("svg",B2,$2)}const Jl=X(R2,[["render",F2]]),z2={},G2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},H2=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M4.22 15.53a.75.75 0 0 0 1.06 0L12 8.81l6.72 6.72a.75.75 0 1 0 1.06-1.06l-7.25-7.25a.75.75 0 0 0-1.06 0l-7.25 7.25a.75.75 0 0 0 0 1.06z",fill:"currentColor"})],-1),U2=[H2];function W2(e,t){return v.openBlock(),v.createElementBlock("svg",G2,U2)}const td=X(z2,[["render",W2]]),Y2={},q2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},j2=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M16.25 5.18a.75.75 0 0 0 .142 1.051a7.251 7.251 0 0 1-3.599 12.976l.677-.677a.75.75 0 0 0-.977-1.133l-.084.073l-2 2a.75.75 0 0 0-.073.976l.073.084l2 2a.75.75 0 0 0 1.133-.976l-.072-.084l-.75-.75A8.75 8.75 0 0 0 17.301 5.04a.75.75 0 0 0-1.051.141zm-5.72-3.71a.75.75 0 0 0 0 1.06l.75.75a8.75 8.75 0 0 0-4.85 15.47a.75.75 0 1 0 .956-1.157a7.251 7.251 0 0 1 3.82-12.8l-.676.677a.75.75 0 1 0 1.061 1.06l2-2a.75.75 0 0 0 0-1.06l-2-2a.75.75 0 0 0-1.06 0z",fill:"currentColor"})],-1),X2=[j2];function Z2(e,t){return v.openBlock(),v.createElementBlock("svg",q2,X2)}const rd=X(Y2,[["render",Z2]]),K2={},J2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Q2=v.createElementVNode("g",{fill:"none"},[v.createElementVNode("path",{d:"M17.754 14a2.249 2.249 0 0 1 2.249 2.25v.918a2.75 2.75 0 0 1-.513 1.598c-1.545 2.164-4.07 3.235-7.49 3.235c-3.421 0-5.944-1.072-7.486-3.236a2.75 2.75 0 0 1-.51-1.596v-.92A2.249 2.249 0 0 1 6.251 14h11.502zM12 2.005a5 5 0 1 1 0 10a5 5 0 0 1 0-10z",fill:"currentColor"})],-1),eT=[Q2];function tT(e,t){return v.openBlock(),v.createElementBlock("svg",J2,eT)}const nd=X(K2,[["render",tT]]),ad=window.localStorage;function Gu(e,t){ad.setItem(e,JSON.stringify(t))}function Kv(e){const t=ad.getItem(e);return t?JSON.parse(t):null}function rT(e){ad.removeItem(e)}function Jv(){return Date.parse(String(new Date))}const nT="local-";class aT{constructor(t=""){Ho(this,"namespace");Ho(this,"mapKey");Ho(this,"map");this.namespace=t,this.mapKey=nT+this.namespace,this.map=Kv(this.mapKey)||{}}set(t,r,n=0){const a=this.getReallyKey(t),i={expires:n,time:Jv()};Gu(a,r),this.map[t]=i,Gu(this.mapKey,this.map)}getReallyKey(t){return this.namespace+"-"+t}get(t,r){const n=this.getReallyKey(t),a=this.map[t];if(a){const i=Kv(n);if(a.expires>0){if(Jv()-a.time<=a.expires)return i===!1||i?i:r;this.delete(t)}else return i===!1||i?i:r}return r}delete(t){const r=this.getReallyKey(t);delete this.map[t],Gu(this.mapKey,this.map),rT(r)}deleteAll(){for(const t in this.map)this.delete(t)}}const id=new aT("partex"),Ea=(e,t,r)=>{const n=new Date;return new Date(`${e||n.getFullYear()}/${t||n.getMonth()+1}/${r||n.getDate()} 00:00:00`).getTime()};function Yt(e,t,r=3e4){if(typeof r=="string"){let n=0;const a=r.split(" ");switch(a[1]){case"Minutes":n=6e4;break;case"Hours":n=36e5;break;case"Day":n=864e5;break;case"Week":n=6048e5;break}r=Number(a[0])*n}id.set(e,t,r)}function Et(e,t){return id.get(e,t)}const ko=e=>{id.delete(e)},Ks=(e=0)=>{const t=document.documentElement;t&&(t.scrollTop=e,setTimeout(()=>{t.scrollTop=e},100))},K0=()=>{const e=document.querySelectorAll(".partex-loading");e&&e.length>0&&e.forEach(t=>{const r=t.parentNode;r==null||r.removeChild(t)})};function Eo(e,t=!1){let r=e.records;t&&(r=r.map((a,i)=>({key:i,...a})));const n=parseInt(e.size);return{query:{page:Number(e.current),pageCount:parseInt(e.pages),pageSize:n>29?n:30,itemCount:parseInt(e.total),pageSizes:[30,40,50],showQuickJumper:!0,showSizePicker:!0,pageSlot:8,prefix:()=>v.h("div",{},{default:()=>oe.lang==="zh-CN"?`共${e.total}条`:`${e.total} items`})},records:r}}function Po(e){if(!e.query)return e;const t={};return e.query.page&&(t.current=e.query.page),e.query.pageSize&&(t.size=e.query.pageSize),e.query.isGetAll&&(t.isGetAll=e.query.isGetAll),e.query.keyword&&(t.keyword=e.query.keyword),e.query.columnKey&&(t.columnKey=e.query.columnKey),e.query.order&&(t.order=e.query.order),{...e,query:t}}const Tr=(e,t="yyyy-MM-dd")=>{if(!e)return"";typeof e=="string"&&(e=e.replace(/年/g,"-").replace(/月/g,"-").replace(/日/g,""));let r=new Date(e);if(typeof e=="string"&&isNaN(r.getTime())&&(r=new Date(parseInt(e))),isNaN(r.getTime()))return"---";const n={"M+":r.getMonth()+1,"d+":r.getDate(),"h+":r.getHours(),"m+":r.getMinutes(),"s+":r.getSeconds()};/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(r.getFullYear()+"").substr(4-RegExp.$1.length)));for(const a in n)if(new RegExp("("+a+")").test(t)){let i=n[a];RegExp.$1.length!==1&&(i=("00"+n[a]).substr((""+n[a]).length)),t=t.replace(RegExp.$1,i)}return t},Jr=e=>{try{return window.btoa(encodeURIComponent(JSON.stringify(e)))}catch{return""}},vo=e=>{try{return JSON.parse(decodeURIComponent(window.atob(e)))}catch{return""}},iT=(e,t=500)=>{const r=e;let n;const a=function(...o){n||(n=setTimeout(function(){n&&clearTimeout(n),n=void 0,r.apply(a,o)},t))};return a};function oT(e,t){e.requestFullscreen?(t&&(e.onfullscreenchange=t),e.requestFullscreen()):e.mozRequestFullScreen?(t&&(e.onmozfullscreenchange=t),e.mozRequestFullScreen()):e.webkitRequestFullscreen?(t&&(e.onwebkitfullscreenchange=t),e.webkitRequestFullscreen()):e.msRequestFullscreen&&(t&&(e.onmsfullscreenchange=t),e.msRequestFullscreen())}function sT(e,t=0){const r=["","k","m","b","t"],n=Math.floor(Math.log10(Math.abs(e))/3),a=Math.max(0,Math.min(n,r.length-1)),i=r[a];return i?(e/Math.pow(10,a*3)).toFixed(t)+i:(e/Math.pow(10,a*3)).toFixed(0)}const lT={Platform:{components:"组件库",iot:"智能效率监测平台",prt:"智能效率监测平台",tdm:"智能刀具管理平台",qms:"智能质量检测平台",twin:"智能数字大屏平台",maintain:"智能设备维保平台",order:"智能工单管理平台"},Notice:{success:"操作成功",error:"操作失败,请稍后重试"},Common:{validDays:"报表文件具有七天有效期",add:"新增",edit:"编辑",apply:"保存",cancel:"取消",search:"查询",refresh:"刷新",filter:"筛选",reset:"重置",more:"更多",export:"导出",success:"成功",failed:"失败",processing:"处理中",action:"操作",back:"返回",title:"零捷互联智能云平台",message:{title:"消息列表",title2:"消息",unRead:"未读",all:"全部",read:"已读",readAll:"一键已读"},login:{mobile:"手机号",mobilePlaceholder:"请输入手机号码",mobileMessage:"请输入正确的手机号码",password:"密码",passwordPlaceholder:"请输入密码",passwordMessage:"请输入密码",userName:"用户名",userNamePlaceholder:"请输入用户名",userNameMessage:"请输入正确的用户名",in:"登录"},my:{title:"我的信息",tenantCode:"租户代码",tenantName:"租户名称",name:"名称",email:"邮箱",emailMessage:"邮箱格式不正确",realName:"真实姓名",phone:"手机",phoneMessage:"手机号码格式不正确",submit:"更新",password:"修改密码",oldPassword:"旧密码",newPassword:"新密码",checkPassword:"确认新密码",oldPasswordMessage:"请填写旧密码",newPasswordMessage:"请填写新密码",checkPasswordMessage:"请填写确认新密码"},dropdownMenu:{software:"零捷软件",android:"安卓APP",ios:"iOS APP",chrome:"Chrome浏览器",edge:"Edge浏览器",dashboard_IoT:"大屏机加工版本",dashboard_Prt:"大屏印刷版本",report:"个性化报表",info:"我的信息",language:"语言",theme:"主题",light:"亮",dark:"暗",logout:"退出"},importer:{title:"导入",file:"导入文件",download:"下载模版",btnDownload:"下载",fileName:"文件名称",status:"状态",createTime:"创建时间",retry:"重试"}}},uT={Platform:{components:"Components",iot:"SMART LEAN IOT PLATFORM",prt:"SMART LEAN IOT PLATFORM",tdm:"SMART TOOL MANAGEMENT PLATFORM",qms:"SMART QUALITY MANAGEMENT PLATFORM",twin:"SMART DASHBOARD PLATFORM",maintain:"SMART MAINTAIN PLATFORM",order:"SMART ORDER MANAGEMENT PLATFORM"},Notice:{success:"Success",error:"An error occurred, please try again later"},Common:{validDays:"Files are valid for seven days",add:"Insert",edit:"Edit",apply:"Apply",cancel:"Cancel",search:"Search",refresh:"Refresh",filter:"Filter",reset:"Reset",more:"More",export:"Export",success:"Success",failed:"Failed",processing:"Processing",action:"Action",back:"Back",title:"Partex",message:{title:"Messages",title2:"Message",unRead:"Unread",all:"All",read:"Read",readAll:"Read All"},login:{mobile:"Mobile",mobilePlaceholder:"Please Input Mobile",mobileMessage:"Mobile is not correct",password:"Password",passwordPlaceholder:"Please Input Password",passwordMessage:"Please Input Password",userName:"UserName",userNamePlaceholder:"Please Input UserName",userNameMessage:"UserName is not correct",in:"Sign in"},my:{title:"Info",tenantCode:"TenantCode",tenantName:"TenantName",name:"Name",email:"Email",emailMessage:"Email is not correct",realName:"RealName",phone:"Mobile",phoneMessage:"Mobile is not correct",submit:"Apply",password:"Change Password",oldPassword:"Current",newPassword:"New",checkPassword:"Check",oldPasswordMessage:"Please Input Current Password",newPasswordMessage:"Please Input New Password",checkPasswordMessage:"Please Check New Password"},dropdownMenu:{software:"Softwares",android:"Android APP",ios:"iOS APP",chrome:"Chrome",edge:"Edge",dashboard:"Dashboard",dashboard_IoT:"Dashboard_IoT",dashboard_Prt:"Dashboard_Print",report:"Reports",info:"My",language:"Language",theme:"Theme",light:"Light",dark:"Dark",logout:"Logout"},importer:{title:"Import",file:"Import File",download:"Download Template",btnDownload:"Download",fileName:"FileName",status:"Status",createTime:"CreateTime",retry:"Retry"}}},cT=Kt.createI18n({legacy:!1,locale:"zh-CN",messages:{"en-US":{...uT},"zh-CN":{...lT},"fr-FR":{}}}),yt=cT,J0="2.0.66",Qv={Components:{platformName:()=>`${yt.global.t("Platform.components")} v${J0}`,platformType:"T0",platformUrl:"/",platformMainUrl:""},iot:{platformName:()=>yt.global.t("Platform.iot"),platformType:"T1",platformUrl:"/iot/home/all",platformMainUrl:""},prt:{platformName:()=>yt.global.t("Platform.prt"),platformType:"T1",platformUrl:"/prt/home/all",platformMainUrl:""},tdm:{platformName:()=>yt.global.t("Platform.tdm"),platformType:"T2",platformUrl:"/tdm/home",platformMainUrl:"/iot/home/all"},qms:{platformName:()=>yt.global.t("Platform.qms"),platformType:"T3",platformUrl:"/qms/home",platformMainUrl:"/iot/home/all"},twin:{platformName:()=>yt.global.t("Platform.twin"),platformType:"T4",platformUrl:"/twin/home",platformMainUrl:"/prt/home/all"},maintain:{platformName:()=>yt.global.t("Platform.maintain"),platformType:"T5",platformUrl:"/maintain/home",platformMainUrl:"auto"},order:{platformName:()=>yt.global.t("Platform.order"),platformType:"T6",platformUrl:"/order/home",platformMainUrl:"/prt/home/all"}},oe=v.reactive({needUpdate:!1,download:!1,theme:!1,isPad:!1,isMobile:!1,language:!1,lang:"zh-CN",platformName:()=>yt.global.t("Platform.iot"),platformType:"T1",platformUrl:"/iot/home/all",platformMainUrl:""});function od(e){oe.download=e}function fT(e){oe.language=e}function Ya(e){let t;e?t=e:oe.lang==="zh-CN"?t="en-US":t="zh-CN",Yt("lang",t,0),oe.lang=t;const r=document.body;r.dataset.lang=t,yt.global.locale.value=t}function hT(e){const t=Qv[e]||Qv.iot;oe.platformName=t.platformName,oe.platformType=t.platformType,oe.platformUrl=t.platformUrl,oe.platformMainUrl=t.platformMainUrl||"auto",document.title=t.platformName()}function Io(e){oe.theme=e;const t=document.body,r=document.querySelector("meta[name=theme-color]");e?t.dataset.theme="dark":t.dataset.theme="",r&&(e?r.setAttribute("content","#2b2b2d"):r.setAttribute("content","#ffffff"))}function dT(e){oe.needUpdate=e}const Q0=()=>{oe.isMobile=window.screen.availWidth<769,oe.isPad=window.screen.availWidth<1024};window.addEventListener("resize",Q0);Q0();const Uo=(e,t)=>v.h(O.NTooltip,{style:{"max-width":"300px"}},{trigger:()=>e,default:()=>typeof t=="function"?t():t}),Nr=(e,t="default",r,n,a)=>{const i={size:"small",type:t,text:!0,disabled:typeof e.disabled=="function"?e.disabled(n,a):e.disabled||!1,loading:e.loading||!1},o={default:()=>typeof e.buttonText=="function"?e.buttonText():e.buttonText||null};if(!e.confirmText){if(e.onClick&&typeof e.onClick=="string"){const s=e.onClick;i.onClick=()=>{new Function("rowData","rowIndex",s)(n,a)}}e.onClick&&typeof e.onClick=="function"&&(i.onClick=e.onClick.bind(void 0,n,a))}return r&&(o.icon=()=>v.h(O.NIcon,{},{default:()=>v.h(r,{},{default:()=>null})})),v.h(O.NButton,i,o)},Js=(e,t,r,n)=>{const a={placement:"left"};if(typeof t.onClick=="string"){const i=t.onClick;a["on-positive-click"]=()=>{new Function("rowData","rowIndex",i)(r,n)}}else t.onClick&&(a["on-positive-click"]=t.onClick.bind(void 0,r,n));return v.h(O.NPopconfirm,a,{default:()=>v.h("span",{style:{"max-width":"300px"}},{default:()=>typeof t.confirmText=="function"?t.confirmText():t.confirmText}),trigger:()=>e})},vT=(e,t,r)=>{let n;if(e.type==="detail"){const a=Nr(e,e.color?e.color:"primary",e.icon?e.icon:Xl,t,r);e.buttonText?n=a:n=Uo(a,oe.lang==="zh-CN"?"详情":"Detail")}if(e.type==="edit"){const a=Nr(e,e.color?e.color:"success",e.icon?e.icon:Jh,t,r);e.buttonText?n=a:n=Uo(a,oe.lang==="zh-CN"?"编辑":"Edit")}if(e.type==="delete"){let a=Nr({...e,onClick:""},e.color?e.color:"error",e.icon?e.icon:Zh,t,r);e.buttonText?a=a:a=Uo(a,oe.lang==="zh-CN"?"删除":"Delete"),n=Js(a,{...e,confirmText:oe.lang==="zh-CN"?"删除后无法恢复,是否确认删除?":"Are you sure you want to delete ?"},t,r)}if(e.type==="custom"){const a=Nr(e.confirmText?{...e,onClick:""}:e,e.color,e.icon,t,r);e.buttonText?n=a:n=Uo(a,e.tooltipText)}return e.confirmText&&(n=Js(n,e,t,r)),n},pT=(e,t,r)=>{const n=[];return e.forEach(a=>{let i;a.type==="detail"&&(i=Nr({...a,buttonText:oe.lang==="zh-CN"?"详情":"Detail"},"primary",void 0,t,r)),a.type==="edit"&&(i=Nr({...a,buttonText:oe.lang==="zh-CN"?"编辑":"Edit"},"success",void 0,t,r)),a.type==="delete"&&(i=Js(Nr({...a,onClick:"",buttonText:oe.lang==="zh-CN"?"删除":"Delete"},"error",void 0,t,r),{...a,confirmText:oe.lang==="zh-CN"?"删除后无法恢复,是否确认删除?":"Are you sure you want to delete ?"},t,r)),a.type==="custom"&&(i=Nr(a,a.color,void 0,t,r)),a.confirmText&&(i=Js(i,a,t,r)),n.push(i)}),n},pn=(e,t,r)=>{const n=[];return e.forEach(a=>{if(a.type==="group"){if(a.children.length>0){const i=pT(a.children,t,r);n.push(v.h(O.NPopover,{trigger:"hover"},{trigger:()=>Nr({buttonText:typeof a.buttonText=="function"?a.buttonText():a.buttonText,disabled:typeof a.disabled=="function"?a.disabled(t,r):a.disabled,loading:a.loading},a.color,a.icon,t,r),default:()=>v.h(O.NFlex,{vertical:!0},{default:()=>i})}))}}else{const i=vT(a,t,r);n.push(i)}}),v.h("div",{class:"action-flex"},{default:()=>n})},gT=v.defineComponent({name:"OcAuth",setup(){const e=$t.useRoute(),t=$t.useRouter(),{auth:r}=e.query;r?Yt("token",r,0):ko("token"),t.replace(oe.platformUrl)}}),mT={class:"com-card flex-center",style:{flex:"1"}},yT=v.createElementVNode("p",{class:"oc-miss-title"},"登录中...",-1),_T=[yT];function wT(e,t,r,n,a,i){return v.openBlock(),v.createElementBlock("div",mT,_T)}const e_=X(gT,[["render",wT]]),bT=v.defineComponent({name:"OcBack",components:{IconChevronLeft:qh,NButton:O.NButton,NIcon:O.NIcon},props:{to:{type:String,default:""}},setup(e){const t=$t.useRouter();return{back:()=>{e.to?t.push(e.to):t.back()}}}});function ST(e,t,r,n,a,i){const o=v.resolveComponent("IconChevronLeft"),s=v.resolveComponent("NIcon"),l=v.resolveComponent("NButton");return v.openBlock(),v.createBlock(l,{text:"",onClick:e.back},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(o)]),_:1})]),default:v.withCtx(()=>[v.createElementVNode("span",null,v.toDisplayString(e.$t("Common.back")),1)]),_:1},8,["onClick"])}const t_=X(bT,[["render",ST]]),CT=v.defineComponent({name:"OcCircle",components:{NPopover:O.NPopover},props:{circle:{required:!0,type:Number,default:0},circleTxt:{type:String,default:""},pointA:{type:Number,default:void 0},pointB:{type:Number,default:void 0},pointSize:{type:Number,default:3},styles:{type:Object,default:()=>({backgroundBg:"rgba(255, 255, 255, 0.1)",processBg:"#fff",pointABg:"#f2a651",pointBBg:"#67c67e"})}},setup(e){const t=v.ref({show:!1,text:"",x:0,y:0});return{popover:t,calculateCircle:()=>{let s=314-e.circle*Math.PI;return s<=0&&(s=0),`stroke-dashoffset: ${s}`},calculatePointA:()=>e.pointA?`rotate(${-90+e.pointA*3.6} 100 80) translate(50, 0)`:"",calculatePointB:()=>e.pointB?`rotate(${-90+e.pointB*3.6} 100 80) translate(50, 0)`:"",mouseOver:(s,l)=>{const u=l==="a"?e.pointA:e.pointB;t.value={show:!0,text:`${u}%`,x:s.clientX,y:s.clientY}},mouseOut:()=>{t.value.show=!1}}}}),xT={viewBox:"40 20 120 120"},TT=v.createElementVNode("defs",null,[v.createElementVNode("filter",{id:"blurs"},[v.createElementVNode("feOffset",{result:"offOut",in:"SourceGraphic",dx:"0",dy:"0"}),v.createElementVNode("feGaussianBlur",{result:"blurOut",in:"offOut",stdDeviation:"0.8"}),v.createElementVNode("feBlend",{in:"SourceGraphic",in2:"blurOut",mode:"normal"})])],-1),NT=["stroke"],DT=["stroke"],AT=["r","transform","fill"],MT=["r","transform","fill"],kT={dx:"100",dy:"90",fill:"#333","text-anchor":"middle",style:{"font-size":"28px"}};function ET(e,t,r,n,a,i){const o=v.resolveComponent("NPopover");return v.openBlock(),v.createElementBlock(v.Fragment,null,[(v.openBlock(),v.createElementBlock("svg",xT,[TT,v.createElementVNode("circle",{transform:"rotate(-90 100 80)",cx:"100",cy:"80",r:"50",fill:"none","stroke-width":"10","stroke-dashoffset":"0",stroke:e.styles.backgroundBg},null,8,NT),v.createElementVNode("circle",{class:"oc-circle-round","stroke-linecap":"round",transform:"rotate(-90 100 80)",cx:"100",cy:"80",r:"50",fill:"none","stroke-width":"10",style:v.normalizeStyle(e.calculateCircle()),stroke:e.styles.processBg},null,12,DT),e.pointA?(v.openBlock(),v.createElementBlock("circle",{key:0,class:"oc-circle-round",filter:"url(#blurs)",cx:"100",cy:"80",r:e.pointSize,"stroke-width":"0",transform:e.calculatePointA(),fill:e.styles.pointABg,onMouseover:t[0]||(t[0]=s=>{e.mouseOver(s,"a")}),onMouseout:t[1]||(t[1]=(...s)=>e.mouseOut&&e.mouseOut(...s))},null,40,AT)):v.createCommentVNode("",!0),e.pointB?(v.openBlock(),v.createElementBlock("circle",{key:1,class:"oc-circle-round",filter:"url(#blurs)",cx:"100",cy:"80",r:e.pointSize,"stroke-width":"0",transform:e.calculatePointB(),fill:e.styles.pointBBg,onMouseover:t[2]||(t[2]=s=>{e.mouseOver(s,"b")}),onMouseout:t[3]||(t[3]=(...s)=>e.mouseOut&&e.mouseOut(...s))},null,40,MT)):v.createCommentVNode("",!0),v.createElementVNode("text",kT,v.toDisplayString(e.circleTxt?e.circleTxt:`${e.circle}%`),1)])),v.createVNode(o,{show:e.popover.show,x:e.popover.x,y:e.popover.y,"show-arrow":!1,trigger:"manual"},{default:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(e.popover.text),1)]),_:1},8,["show","x","y"])],64)}const r_=X(CT,[["render",ET]]);/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -11,8 +11,8 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
11
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
12
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
13
  PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */var If=function(e,t){return If=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},If(e,t)};function H(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");If(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var PT=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),IT=function(){function e(){this.browser=new PT,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),re=new IT;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(re.wxa=!0,re.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?re.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(re.node=!0,re.svgSupported=!0):LT(navigator.userAgent,re);function LT(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var sd=12,OT="sans-serif",jn=sd+"px "+OT,RT=20,BT=100,VT="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function $T(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),a=(e.charCodeAt(r)-RT)/BT;t[n]=a}return t}var FT=$T(VT),ti={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var a=ti.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==n&&(t=e.font=n||jn),e.measureText(r);r=r||"",n=n||jn;var i=/(\d+)px/.exec(n),o=i&&+i[1]||sd,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=FT[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},n_=Lr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),a_=Lr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),ri=Object.prototype.toString,Ql=Array.prototype,zT=Ql.forEach,GT=Ql.filter,ld=Ql.slice,HT=Ql.map,ep=(function(){}).constructor,Yo=ep?ep.prototype:null,ud="__proto__",UT=2311;function i_(){return UT++}function on(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function ue(e){if(e==null||typeof e!="object")return e;var t=e,r=ri.call(e);if(r==="[object Array]"){if(!Ki(e)){t=[];for(var n=0,a=e.length;n<a;n++)t[n]=ue(e[n])}}else if(a_[r]){if(!Ki(e)){var i=e.constructor;if(i.from)t=i.from(e);else{t=new i(e.length);for(var n=0,a=e.length;n<a;n++)t[n]=e[n]}}}else if(!n_[r]&&!Ki(e)&&!qa(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==ud&&(t[o]=ue(e[o]))}return t}function ve(e,t,r){if(!K(t)||!K(e))return r?ue(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==ud){var a=e[n],i=t[n];K(i)&&K(a)&&!U(i)&&!U(a)&&!qa(i)&&!qa(a)&&!tp(i)&&!tp(a)&&!Ki(i)&&!Ki(a)?ve(a,i,r):(r||!(n in e))&&(e[n]=ue(t[n]))}return e}function G(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==ud&&(e[r]=t[r]);return e}function he(e,t,r){for(var n=_e(t),a=0;a<n.length;a++){var i=n[a];(r?t[i]!=null:e[i]==null)&&(e[i]=t[i])}return e}function ce(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function WT(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var a in r)r.hasOwnProperty(a)&&(e.prototype[a]=r[a]);e.prototype.constructor=e,e.superClass=t}function Jt(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(r?t[i]!=null:e[i]==null)&&(e[i]=t[i])}else he(e,t,r)}function st(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function k(e,t,r){if(e&&t)if(e.forEach&&e.forEach===zT)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(r,e[i],i,e)}function q(e,t,r){if(!e)return[];if(!t)return cd(e);if(e.map&&e.map===HT)return e.map(t,r);for(var n=[],a=0,i=e.length;a<i;a++)n.push(t.call(r,e[a],a,e));return n}function Lr(e,t,r,n){if(e&&t){for(var a=0,i=e.length;a<i;a++)r=t.call(n,r,e[a],a,e);return r}}function qe(e,t,r){if(!e)return[];if(!t)return cd(e);if(e.filter&&e.filter===GT)return e.filter(t,r);for(var n=[],a=0,i=e.length;a<i;a++)t.call(r,e[a],a,e)&&n.push(e[a]);return n}function _e(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function YT(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(ld.call(arguments)))}}var Q=Yo&&ie(Yo.bind)?Yo.call.bind(Yo.bind):YT;function be(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(ld.call(arguments)))}}function U(e){return Array.isArray?Array.isArray(e):ri.call(e)==="[object Array]"}function ie(e){return typeof e=="function"}function j(e){return typeof e=="string"}function el(e){return ri.call(e)==="[object String]"}function xe(e){return typeof e=="number"}function K(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function tp(e){return!!n_[ri.call(e)]}function lt(e){return!!a_[ri.call(e)]}function qa(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function eu(e){return e.colorStops!=null}function qT(e){return e.image!=null}function jT(e){return ri.call(e)==="[object RegExp]"}function ja(e){return e!==e}function fn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function ne(e,t){return e??t}function sn(e,t,r){return e??t??r}function cd(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return ld.apply(e,t)}function o_(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 ee(e,t){if(!e)throw new Error(t)}function fr(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var s_="__ec_primitive__";function Lf(e){e[s_]=!0}function Ki(e){return e[s_]}var XT=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return _e(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),l_=typeof Map=="function";function ZT(){return l_?new Map:new XT}var KT=function(){function e(t){var r=U(t);this.data=ZT();var n=this;t instanceof e?t.each(a):t&&k(t,a);function a(i,o){r?n.set(i,o):n.set(o,i)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,a){t.call(r,n,a)})},e.prototype.keys=function(){var t=this.data.keys();return l_?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function ae(e){return new KT(e)}function JT(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var a=e.length,n=0;n<t.length;n++)r[n+a]=t[n];return r}function tu(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&G(r,t),r}function u_(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function W(e,t){return e.hasOwnProperty(t)}function ot(){}var QT=180/Math.PI;function ni(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function eN(e){return[e[0],e[1]]}function rp(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function c_(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function tN(e){return Math.sqrt(rN(e))}function rN(e){return e[0]*e[0]+e[1]*e[1]}function Hu(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function fd(e,t){var r=tN(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Of(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Rf=Of;function nN(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Ra=nN;function Uu(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function Vt(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[2]*a+r[4],e[1]=r[1]*n+r[3]*a+r[5],e}function Pa(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Ia(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var fa=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),aN=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new fa(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,a=t.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,r.drift(i,o,t),this.handler.dispatchToElement(new fa(r,t),"drag",t.event);var s=this.handler.findHover(n,a,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new fa(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new fa(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new fa(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new fa(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),Qt=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof r=="function"&&(a=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===n)return this;var l={h:n,query:r,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[t].length-1,c=i[t][u];return c&&c.callAtLast?i[t].splice(u,0,l):i[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var a=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==r&&a.push(n[t][i]);n[t]=a}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=r[o-1],l=a.length,u=0;u<l;u++){var c=a[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(t,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e}(),iN=Math.log(2);function Bf(e,t,r,n,a,i){var o=n+"-"+a,s=e.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/iN);return e[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var f=0,d=0,h=0;d<s;d++){var p=1<<d;p&a||(f+=(h%2?-1:1)*e[r][d]*Bf(e,t-1,c,u,a|p,i),h++)}return i[o]=f,f}function np(e,t){var r=[[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]]],n={},a=Bf(r,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*Bf(r,7,o===0?1:0,1<<o,1<<s,n)/a*t[o];return function(l,u,c){var f=u*i[6]+c*i[7]+1;l[0]=(u*i[0]+c*i[1]+i[2])/f,l[1]=(u*i[3]+c*i[4]+i[5])/f}}}var ap="___zrEVENTSAVED",Wu=[];function oN(e,t,r,n,a){return Vf(Wu,t,n,a,!0)&&Vf(e,r,Wu[0],Wu[1])}function Vf(e,t,r,n,a){if(t.getBoundingClientRect&&re.domSupported&&!f_(t)){var i=t[ap]||(t[ap]={}),o=sN(t,i),s=lN(o,i,a);if(s)return s(e,r,n),!0}return!1}function sN(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function lN(e,t,r){for(var n=r?"invTrans":"trans",a=t[n],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,h=c.top;o.push(d,h),l=l&&i&&d===i[f]&&h===i[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[n]=r?np(s,o):np(o,s))}function f_(e){return e.nodeName.toUpperCase()==="CANVAS"}var uN=/([&<>"'])/g,cN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Pt(e){return e==null?"":(e+"").replace(uN,function(t,r){return cN[r]})}var fN=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Yu=[],hN=re.browser.firefox&&+re.browser.version.split(".")[0]<39;function $f(e,t,r,n){return r=r||{},n?ip(e,t,r):hN&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):ip(e,t,r),r}function ip(e,t,r){if(re.domSupported&&e.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(f_(e)){var i=e.getBoundingClientRect();r.zrX=n-i.left,r.zrY=a-i.top;return}else if(Vf(Yu,e,n,a)){r.zrX=Yu[0],r.zrY=Yu[1];return}}r.zrX=r.zrY=0}function hd(e){return e||window.event}function At(e,t,r){if(t=hd(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&$f(e,o,t,r)}else{$f(e,t,t,r);var i=dN(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&fN.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function dN(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var a=Math.abs(n!==0?n:r),i=n>0?-1:n<0?1:r>0?-1:1;return 3*a*i}function vN(e,t,r,n){e.addEventListener(t,r,n)}function pN(e,t,r,n){e.removeEventListener(t,r,n)}var Xa=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function op(e){return e.which===2||e.which===3}var gN=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var a=t.touches;if(a){for(var i={points:[],touches:[],target:r,event:t},o=0,s=a.length;o<s;o++){var l=a[o],u=$f(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},e.prototype._recognize=function(t){for(var r in qu)if(qu.hasOwnProperty(r)){var n=qu[r](this._track,t);if(n)return n}},e}();function sp(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function mN(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var qu={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,a=(e[r-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=sp(n)/sp(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=mN(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Ba(){return[1,0,0,1,0,0]}function dd(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function yN(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 Va(e,t,r){var n=t[0]*r[0]+t[2]*r[1],a=t[1]*r[0]+t[3]*r[1],i=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e}function Ff(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function vd(e,t,r,n){n===void 0&&(n=[0,0]);var a=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(r),f=Math.cos(r);return e[0]=a*f+s*c,e[1]=-a*c+s*f,e[2]=i*f+l*c,e[3]=-i*c+f*l,e[4]=f*(o-n[0])+c*(u-n[1])+n[0],e[5]=f*(u-n[1])-c*(o-n[0])+n[1],e}function _N(e,t,r){var n=r[0],a=r[1];return e[0]=t[0]*n,e[1]=t[1]*a,e[2]=t[2]*n,e[3]=t[3]*a,e[4]=t[4]*n,e[5]=t[5]*a,e}function pd(e,t){var r=t[0],n=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=r*o-i*n;return l?(l=1/l,e[0]=o*l,e[1]=-i*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*a)*l,e[5]=(i*a-r*s)*l,e):null}var wN=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.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 t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,a){t.x=r.x+n.x*a,t.y=r.y+n.y*a},e.lerp=function(t,r,n,a){var i=1-a;t.x=i*r.x+a*n.x,t.y=i*r.y+a*n.y},e}();const se=wN;var qo=Math.min,jo=Math.max,mn=new se,yn=new se,_n=new se,wn=new se,yi=new se,_i=new se,bN=function(){function e(t,r,n,a){n<0&&(t=t+n,n=-n),a<0&&(r=r+a,a=-a),this.x=t,this.y=r,this.width=n,this.height=a}return e.prototype.union=function(t){var r=qo(t.x,this.x),n=qo(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=jo(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=jo(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,a=t.height/r.height,i=Ba();return Ff(i,i,[-r.x,-r.y]),_N(i,i,[n,a]),Ff(i,i,[t.x,t.y]),i},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,a=n.x,i=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(i<l||u<a||s<c||f<o);if(r){var h=1/0,p=0,m=Math.abs(i-l),g=Math.abs(u-a),y=Math.abs(s-c),w=Math.abs(f-o),_=Math.min(m,g),S=Math.min(y,w);i<l||u<a?_>p&&(p=_,m<g?se.set(_i,-m,0):se.set(_i,g,0)):_<h&&(h=_,m<g?se.set(yi,m,0):se.set(yi,-g,0)),s<c||f<o?S>p&&(p=S,y<w?se.set(_i,0,-y):se.set(_i,0,w)):_<h&&(h=_,y<w?se.set(yi,0,y):se.set(yi,0,-w))}return r&&se.copy(r,d?yi:_i),d},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},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.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];t.x=r.x*a+o,t.y=r.y*i+s,t.width=r.width*a,t.height=r.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}mn.x=_n.x=r.x,mn.y=wn.y=r.y,yn.x=wn.x=r.x+r.width,yn.y=_n.y=r.y+r.height,mn.transform(n),wn.transform(n),yn.transform(n),_n.transform(n),t.x=qo(mn.x,yn.x,_n.x,wn.x),t.y=qo(mn.y,yn.y,_n.y,wn.y);var l=jo(mn.x,yn.x,_n.x,wn.x),u=jo(mn.y,yn.y,_n.y,wn.y);t.width=l-t.x,t.height=u-t.y},e}();const ye=bN;var h_="silent";function SN(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:CN}}function CN(){Xa(this.event)}var xN=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Qt),wi=function(){function e(t,r){this.x=t,this.y=r}return e}(),TN=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ju=new ye(0,0,0,0),d_=function(e){H(t,e);function t(r,n,a,i,o){var s=e.call(this)||this;return s._hovered=new wi(0,0),s.storage=r,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new xN,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new aN(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(k(TN,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,i=v_(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new wi(n,a):this.findHover(n,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new wi(0,0)},t.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,a){r=r||{};var i=r.target;if(!(i&&i.silent)){for(var o="on"+n,s=SN(n,r,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,a){var i=this.storage.getDisplayList(),o=new wi(r,n);if(lp(i,o,r,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new ye(r-u,n-u,l,l),f=i.length-1;f>=0;f--){var d=i[f];d!==a&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(ju.copy(d.getBoundingRect()),d.transform&&ju.applyTransform(d.transform),ju.intersect(c)&&s.push(d))}if(s.length)for(var h=4,p=Math.PI/12,m=Math.PI*2,g=0;g<u;g+=h)for(var y=0;y<m;y+=p){var w=r+g*Math.cos(y),_=n+g*Math.sin(y);if(lp(s,o,w,_,a),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new gN);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;r.gestureEvent=o;var s=new wi;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(Qt);k(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){d_.prototype[e]=function(t){var r=t.zrX,n=t.zrY,a=v_(this,r,n),i,o;if((e!=="mouseup"||!a)&&(i=this.findHover(r,n),o=i.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||Rf(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function NN(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s||n.parent}return a?h_:!0}return!1}function lp(e,t,r,n,a){for(var i=e.length-1;i>=0;i--){var o=e[i],s=void 0;if(o!==a&&!o.ignore&&(s=NN(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==h_)){t.target=o;break}}}function v_(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const DN=d_;var p_=32,bi=7;function AN(e){for(var t=0;e>=p_;)t|=e&1,e>>=1;return e+t}function up(e,t,r,n){var a=t+1;if(a===r)return 1;if(n(e[a++],e[t])<0){for(;a<r&&n(e[a],e[a-1])<0;)a++;MN(e,t,a)}else for(;a<r&&n(e[a],e[a-1])>=0;)a++;return a-t}function MN(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function cp(e,t,r,n,a){for(n===t&&n++;n<r;n++){for(var i=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,a(i,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=i}}function Xu(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])>0){for(s=n-a;l<s&&i(e,t[r+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(e,t[r+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var c=o+(l-o>>>1);i(e,t[r+c])>0?o=c+1:l=c}return l}function Zu(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])<0){for(s=a+1;l<s&&i(e,t[r+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(e,t[r+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var c=o+(l-o>>>1);i(e,t[r+c])<0?l=c:o=c+1}return l}function kN(e,t){var r=bi,n,a,i=0,o=[];n=[],a=[];function s(h,p){n[i]=h,a[i]=p,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]<a[h+1]&&h--,c(h)}}function c(h){var p=n[h],m=a[h],g=n[h+1],y=a[h+1];a[h]=m+y,h===i-3&&(n[h+1]=n[h+2],a[h+1]=a[h+2]),i--;var w=Zu(e[g],e,p,m,0,t);p+=w,m-=w,m!==0&&(y=Xu(e[p+m-1],e,g,y,y-1,t),y!==0&&(m<=y?f(p,m,g,y):d(p,m,g,y)))}function f(h,p,m,g){var y=0;for(y=0;y<p;y++)o[y]=e[h+y];var w=0,_=m,S=h;if(e[S++]=e[_++],--g===0){for(y=0;y<p;y++)e[S+y]=o[w+y];return}if(p===1){for(y=0;y<g;y++)e[S+y]=e[_+y];e[S+g]=o[w];return}for(var x=r,C,T,b;;){C=0,T=0,b=!1;do if(t(e[_],o[w])<0){if(e[S++]=e[_++],T++,C=0,--g===0){b=!0;break}}else if(e[S++]=o[w++],C++,T=0,--p===1){b=!0;break}while((C|T)<x);if(b)break;do{if(C=Zu(e[_],o,w,p,0,t),C!==0){for(y=0;y<C;y++)e[S+y]=o[w+y];if(S+=C,w+=C,p-=C,p<=1){b=!0;break}}if(e[S++]=e[_++],--g===0){b=!0;break}if(T=Xu(o[w],e,_,g,0,t),T!==0){for(y=0;y<T;y++)e[S+y]=e[_+y];if(S+=T,_+=T,g-=T,g===0){b=!0;break}}if(e[S++]=o[w++],--p===1){b=!0;break}x--}while(C>=bi||T>=bi);if(b)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),p===1){for(y=0;y<g;y++)e[S+y]=e[_+y];e[S+g]=o[w]}else{if(p===0)throw new Error;for(y=0;y<p;y++)e[S+y]=o[w+y]}}function d(h,p,m,g){var y=0;for(y=0;y<g;y++)o[y]=e[m+y];var w=h+p-1,_=g-1,S=m+g-1,x=0,C=0;if(e[S--]=e[w--],--p===0){for(x=S-(g-1),y=0;y<g;y++)e[x+y]=o[y];return}if(g===1){for(S-=p,w-=p,C=S+1,x=w+1,y=p-1;y>=0;y--)e[C+y]=e[x+y];e[S]=o[_];return}for(var T=r;;){var b=0,D=0,N=!1;do if(t(o[_],e[w])<0){if(e[S--]=e[w--],b++,D=0,--p===0){N=!0;break}}else if(e[S--]=o[_--],D++,b=0,--g===1){N=!0;break}while((b|D)<T);if(N)break;do{if(b=p-Zu(o[_],e,h,p,p-1,t),b!==0){for(S-=b,w-=b,p-=b,C=S+1,x=w+1,y=b-1;y>=0;y--)e[C+y]=e[x+y];if(p===0){N=!0;break}}if(e[S--]=o[_--],--g===1){N=!0;break}if(D=g-Xu(e[w],o,0,g,g-1,t),D!==0){for(S-=D,_-=D,g-=D,C=S+1,x=_+1,y=0;y<D;y++)e[C+y]=o[x+y];if(g<=1){N=!0;break}}if(e[S--]=e[w--],--p===0){N=!0;break}T--}while(b>=bi||D>=bi);if(N)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),g===1){for(S-=p,w-=p,C=S+1,x=w+1,y=p-1;y>=0;y--)e[C+y]=e[x+y];e[S]=o[_]}else{if(g===0)throw new Error;for(x=S-(g-1),y=0;y<g;y++)e[x+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function $s(e,t,r,n){r||(r=0),n||(n=e.length);var a=n-r;if(!(a<2)){var i=0;if(a<p_){i=up(e,r,n,t),cp(e,r,n,r+i,t);return}var o=kN(e,t),s=AN(a);do{if(i=up(e,r,n,t),i<s){var l=a;l>s&&(l=s),cp(e,r,r+l,r+i,t),i=l}o.pushRun(r,i),o.mergeRuns(),a-=i,r+=i}while(a!==0);o.forceMergeRuns()}}var _t=1,zi=2,Aa=4,fp=!1;function Ku(){fp||(fp=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function hp(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var EN=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=hp}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,a=0,i=r.length;a<i;a++)this._updateAndAddDisplayable(r[a],null,t);n.length=this._displayListLen,$s(n,hp)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath();if(t.ignoreClip)r=null;else if(a){r?r=r.slice():r=[];for(var i=a,o=t;i;)i.parent=o,i.updateTransform(),r.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=_t),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var c=t;r&&r.length?c.__clipPaths=r:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(Ku(),c.z=0),isNaN(c.z2)&&(Ku(),c.z2=0),isNaN(c.zlevel)&&(Ku(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,r,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var a=ce(this._roots,t);a>=0&&this._roots.splice(a,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}(),g_;g_=re.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const zf=g_;var Ji={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:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},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,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.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?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Ji.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?Ji.bounceIn(e*2)*.5:Ji.bounceOut(e*2-1)*.5+.5}},Xo=Math.pow,ln=Math.sqrt,tl=1e-8,m_=1e-4,dp=ln(3),Zo=1/3,ur=ni(),It=ni(),$a=ni();function Qr(e){return e>-tl&&e<tl}function y_(e){return e>tl||e<-tl}function $e(e,t,r,n,a){var i=1-a;return i*i*(i*e+3*a*t)+a*a*(a*n+3*i*r)}function vp(e,t,r,n,a){var i=1-a;return 3*(((t-e)*i+2*(r-t)*a)*i+(n-r)*a*a)}function rl(e,t,r,n,a,i){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-a,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,h=0;if(Qr(c)&&Qr(f))if(Qr(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[h++]=p)}else{var m=f*f-4*c*d;if(Qr(m)){var g=f/c,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y)}else if(m>0){var w=ln(m),_=c*s+1.5*o*(-f+w),S=c*s+1.5*o*(-f-w);_<0?_=-Xo(-_,Zo):_=Xo(_,Zo),S<0?S=-Xo(-S,Zo):S=Xo(S,Zo);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[h++]=p)}else{var x=(2*c*s-3*o*f)/(2*ln(c*c*c)),C=Math.acos(x)/3,T=ln(c),b=Math.cos(C),p=(-s-2*T*b)/(3*o),y=(-s+T*(b+dp*Math.sin(C)))/(3*o),D=(-s+T*(b-dp*Math.sin(C)))/(3*o);p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y),D>=0&&D<=1&&(i[h++]=D)}}return h}function __(e,t,r,n,a){var i=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(Qr(o)){if(y_(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(Qr(c))a[0]=-i/(2*o);else if(c>0){var f=ln(c),u=(-i+f)/(2*o),d=(-i-f)/(2*o);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function nl(e,t,r,n,a,i){var o=(t-e)*a+e,s=(r-t)*a+t,l=(n-r)*a+r,u=(s-o)*a+o,c=(l-s)*a+s,f=(c-u)*a+u;i[0]=e,i[1]=o,i[2]=u,i[3]=f,i[4]=f,i[5]=c,i[6]=l,i[7]=n}function PN(e,t,r,n,a,i,o,s,l,u,c){var f,d=.005,h=1/0,p,m,g,y;ur[0]=l,ur[1]=u;for(var w=0;w<1;w+=.05)It[0]=$e(e,r,a,o,w),It[1]=$e(t,n,i,s,w),g=Ra(ur,It),g<h&&(f=w,h=g);h=1/0;for(var _=0;_<32&&!(d<m_);_++)p=f-d,m=f+d,It[0]=$e(e,r,a,o,p),It[1]=$e(t,n,i,s,p),g=Ra(It,ur),p>=0&&g<h?(f=p,h=g):($a[0]=$e(e,r,a,o,m),$a[1]=$e(t,n,i,s,m),y=Ra($a,ur),m<=1&&y<h?(f=m,h=y):d*=.5);return c&&(c[0]=$e(e,r,a,o,f),c[1]=$e(t,n,i,s,f)),ln(h)}function IN(e,t,r,n,a,i,o,s,l){for(var u=e,c=t,f=0,d=1/l,h=1;h<=l;h++){var p=h*d,m=$e(e,r,a,o,p),g=$e(t,n,i,s,p),y=m-u,w=g-c;f+=Math.sqrt(y*y+w*w),u=m,c=g}return f}function Ke(e,t,r,n){var a=1-n;return a*(a*e+2*n*t)+n*n*r}function pp(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function LN(e,t,r,n,a){var i=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(Qr(i)){if(y_(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(Qr(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=ln(c),u=(-o+f)/(2*i),d=(-o-f)/(2*i);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function w_(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function al(e,t,r,n,a){var i=(t-e)*n+e,o=(r-t)*n+t,s=(o-i)*n+i;a[0]=e,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=r}function ON(e,t,r,n,a,i,o,s,l){var u,c=.005,f=1/0;ur[0]=o,ur[1]=s;for(var d=0;d<1;d+=.05){It[0]=Ke(e,r,a,d),It[1]=Ke(t,n,i,d);var h=Ra(ur,It);h<f&&(u=d,f=h)}f=1/0;for(var p=0;p<32&&!(c<m_);p++){var m=u-c,g=u+c;It[0]=Ke(e,r,a,m),It[1]=Ke(t,n,i,m);var h=Ra(It,ur);if(m>=0&&h<f)u=m,f=h;else{$a[0]=Ke(e,r,a,g),$a[1]=Ke(t,n,i,g);var y=Ra($a,ur);g<=1&&y<f?(u=g,f=y):c*=.5}}return l&&(l[0]=Ke(e,r,a,u),l[1]=Ke(t,n,i,u)),ln(f)}function RN(e,t,r,n,a,i,o){for(var s=e,l=t,u=0,c=1/o,f=1;f<=o;f++){var d=f*c,h=Ke(e,r,a,d),p=Ke(t,n,i,d),m=h-s,g=p-l;u+=Math.sqrt(m*m+g*g),s=h,l=p}return u}var BN=/cubic-bezier\(([0-9,\.e ]+)\)/;function b_(e){var t=e&&BN.exec(e);if(t){var r=t[1].split(","),n=+fr(r[0]),a=+fr(r[1]),i=+fr(r[2]),o=+fr(r[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:rl(0,n,i,1,l,s)&&$e(0,a,o,1,s[0])}}}var VN=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||ot,this.ondestroy=t.ondestroy||ot,this.onrestart=t.onrestart||ot,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ie(t)?t:Ji[t]||b_(t)},e}();const $N=VN;var S_=function(){function e(t){this.value=t}return e}(),FN=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new S_(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Oo=function(){function e(t){this._list=new FN,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,a=this._map,i=null;if(a[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new S_(r),s.key=t,n.insertEntry(s),a[t]=s}return i},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),gp={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 un(e){return e=Math.round(e),e<0?0:e>255?255:e}function Gf(e){return e<0?0:e>1?1:e}function Ju(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?un(parseFloat(t)/100*255):un(parseInt(t,10))}function Qi(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Gf(parseFloat(t)/100):Gf(parseFloat(t))}function Qu(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Ko(e,t,r){return e+(t-e)*r}function Dt(e,t,r,n,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=a,e}function Hf(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var C_=new Oo(20),Jo=null;function ha(e,t){Jo&&Hf(Jo,t),Jo=C_.put(e,Jo||t.slice())}function Mr(e,t){if(e){t=t||[];var r=C_.get(e);if(r)return Hf(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in gp)return Hf(t,gp[n]),ha(e,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){Dt(t,0,0,0,1);return}return Dt(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),ha(e,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){Dt(t,0,0,0,1);return}return Dt(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),ha(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Dt(t,+u[0],+u[1],+u[2],1):Dt(t,0,0,0,1);c=Qi(u.pop());case"rgb":if(u.length>=3)return Dt(t,Ju(u[0]),Ju(u[1]),Ju(u[2]),u.length===3?c:Qi(u[3])),ha(e,t),t;Dt(t,0,0,0,1);return;case"hsla":if(u.length!==4){Dt(t,0,0,0,1);return}return u[3]=Qi(u[3]),mp(u,t),ha(e,t),t;case"hsl":if(u.length!==3){Dt(t,0,0,0,1);return}return mp(u,t),ha(e,t),t;default:return}}Dt(t,0,0,0,1)}}function mp(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Qi(e[1]),a=Qi(e[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],Dt(t,un(Qu(o,i,r+1/3)*255),un(Qu(o,i,r)*255),un(Qu(o,i,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function yp(e,t){var r=Mr(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return ru(r,r.length===4?"rgba":"rgb")}}function zN(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=Mr(t[a]),s=Mr(t[i]),l=n-a,u=ru([un(Ko(o[0],s[0],l)),un(Ko(o[1],s[1],l)),un(Ko(o[2],s[2],l)),Gf(Ko(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}function ru(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function il(e,t){var r=Mr(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var _p=new Oo(100);function wp(e){if(j(e)){var t=_p.get(e);return t||(t=yp(e,-.1),_p.put(e,t)),t}else if(eu(e)){var r=G({},e);return r.colorStops=q(e.colorStops,function(n){return{offset:n.offset,color:yp(n.color,-.1)}}),r}return e}function GN(e){return e.type==="linear"}function HN(e){return e.type==="radial"}(function(){return re.hasGlobalWindow&&ie(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return process.env.NODE_ENV!=="production"&&on("Base64 isn't natively supported in the current environment."),null}})();var Uf=Array.prototype.slice;function Cr(e,t,r){return(t-e)*r+e}function ec(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=Cr(t[i],r[i],n);return e}function UN(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=Cr(t[o][s],r[o][s],n)}return e}function Qo(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=t[i]+r[i]*n;return e}function bp(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function WN(e,t){for(var r=e.length,n=t.length,a=r>n?t:e,i=Math.min(r,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(r,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function YN(e,t,r){var n=e,a=t;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var l=i;l<o;l++)n.push(r===1?a[l]:Uf.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=a[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=a[l][c])}}function eo(e){if(st(e)){var t=e.length;if(st(e[0])){for(var r=[],n=0;n<t;n++)r.push(Uf.call(e[n]));return r}return Uf.call(e)}return e}function Fs(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 qN(e){return st(e&&e[0])?2:1}var es=0,zs=1,x_=2,Gi=3,Wf=4,Yf=5,Sp=6;function Cp(e){return e===Wf||e===Yf}function ts(e){return e===zs||e===x_}var Si=[0,0,0,0],jN=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}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(t,r,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=Sp,l=r;if(st(r)){var u=qN(r);s=u,(u===1&&!xe(r[0])||u===2&&!xe(r[0][0]))&&(o=!0)}else if(xe(r)&&!ja(r))s=es;else if(j(r))if(!isNaN(+r))s=es;else{var c=Mr(r);c&&(l=c,s=Gi)}else if(eu(r)){var f=G({},l);f.colorStops=q(r.colorStops,function(h){return{offset:h.offset,color:Mr(h.color)}}),GN(r)?s=Wf:HN(r)&&(s=Yf),l=f}i===0?this.valType=s:(s!==this.valType||s===Sp)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=ie(n)?n:Ji[n]||b_(n)),a.push(d),d},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(m,g){return m.time-g.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=ts(a),u=Cp(a),c=0;c<i;c++){var f=n[c],d=f.value,h=o.value;f.percent=f.time/t,s||(l&&c!==i-1?YN(d,h,a):u&&WN(d.colorStops,h.colorStops))}if(!s&&a!==Yf&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;for(var p=n[0].value,c=0;c<i;c++)a===es?n[c].additiveValue=n[c].value-p:a===Gi?n[c].additiveValue=Qo([],n[c].value,p,-1):ts(a)&&(n[c].additiveValue=a===zs?Qo([],n[c].value,p,-1):bp([],n[c].value,p,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===Gi,c,f=this._lastFr,d=Math.min,h,p;if(s===1)h=p=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var m=d(f+1,s-1);for(c=m;c>=0&&!(o[c].percent<=r);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>r);c++);c=d(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=r;var g=p.percent-h.percent,y=g===0?1:d((r-h.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var w=n?this._additiveValue:u?Si:t[l];if((ts(i)||u)&&!w&&(w=this._additiveValue=[]),this.discrete)t[l]=y<1?h.rawValue:p.rawValue;else if(ts(i))i===zs?ec(w,h[a],p[a],y):UN(w,h[a],p[a],y);else if(Cp(i)){var _=h[a],S=p[a],x=i===Wf;t[l]={type:x?"linear":"radial",x:Cr(_.x,S.x,y),y:Cr(_.y,S.y,y),colorStops:q(_.colorStops,function(T,b){var D=S.colorStops[b];return{offset:Cr(T.offset,D.offset,y),color:Fs(ec([],T.color,D.color,y))}}),global:S.global},x?(t[l].x2=Cr(_.x2,S.x2,y),t[l].y2=Cr(_.y2,S.y2,y)):t[l].r=Cr(_.r,S.r,y)}else if(u)ec(w,h[a],p[a],y),n||(t[l]=Fs(w));else{var C=Cr(h[a],p[a],y);n?this._additiveValue=C:t[l]=C}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,a=this._additiveValue;r===es?t[n]=t[n]+a:r===Gi?(Mr(t[n],Si),Qo(Si,Si,a,1),t[n]=Fs(Si)):r===zs?Qo(t[n],t[n],a,1):r===x_&&bp(t[n],t[n],a,1)},e}(),gd=function(){function e(t,r,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&a){on("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,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(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,_e(r),n)},e.prototype.whenWithKeys=function(t,r,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new jN(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];u=d&&d.value,c.valType===Gi&&u&&(u=Fs(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,eo(u),a),this._trackKeys.push(s)}l.addKeyframe(t,eo(r[s]),a)}return this._maxTime=Math.max(this._maxTime,t),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(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(t);i&&(r=i)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(r._target[s.propName]=f.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var d=new $N({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var p=r._additiveAnimators;if(p){for(var m=!1,g=0;g<p.length;g++)if(p[g]._clip){m=!0;break}m||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,h);var y=r._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return q(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var a=0;a<r.length;a++){var i=r[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[i]=eo(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||_e(t);for(var n=0;n<r.length;n++){var a=r[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function La(){return new Date().getTime()}var XN=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=La()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,r||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(zf(n),!r._paused&&r.update())}zf(n)},t.prototype.start=function(){this._running||(this._time=La(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=La(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=La()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var a=new gd(r,n.loop);return this.addAnimator(a),a},t}(Qt),ZN=300,tc=re.domSupported,rc=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=q(e,function(a){var i=a.replace("mouse","pointer");return r.hasOwnProperty(i)?i:a});return{mouse:e,touch:t,pointer:n}}(),xp={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Tp=!1;function qf(e){var t=e.pointerType;return t==="pen"||t==="touch"}function KN(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function nc(e){e&&(e.zrByTouch=!0)}function JN(e,t){return At(e.dom,new QN(e,t),!0)}function T_(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var QN=function(){function e(t,r){this.stopPropagation=ot,this.stopImmediatePropagation=ot,this.preventDefault=ot,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Ut={mousedown:function(e){e=At(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=At(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=At(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=At(this.dom,e);var t=e.toElement||e.relatedTarget;T_(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Tp=!0,e=At(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Tp||(e=At(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=At(this.dom,e),nc(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ut.mousemove.call(this,e),Ut.mousedown.call(this,e)},touchmove:function(e){e=At(this.dom,e),nc(e),this.handler.processGesture(e,"change"),Ut.mousemove.call(this,e)},touchend:function(e){e=At(this.dom,e),nc(e),this.handler.processGesture(e,"end"),Ut.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<ZN&&Ut.click.call(this,e)},pointerdown:function(e){Ut.mousedown.call(this,e)},pointermove:function(e){qf(e)||Ut.mousemove.call(this,e)},pointerup:function(e){Ut.mouseup.call(this,e)},pointerout:function(e){qf(e)||Ut.mouseout.call(this,e)}};k(["click","dblclick","contextmenu"],function(e){Ut[e]=function(t){t=At(this.dom,t),this.trigger(e,t)}});var jf={pointermove:function(e){qf(e)||jf.mousemove.call(this,e)},pointerup:function(e){jf.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 eD(e,t){var r=t.domHandlers;re.pointerEventsSupported?k(rc.pointer,function(n){Gs(t,n,function(a){r[n].call(e,a)})}):(re.touchEventsSupported&&k(rc.touch,function(n){Gs(t,n,function(a){r[n].call(e,a),KN(t)})}),k(rc.mouse,function(n){Gs(t,n,function(a){a=hd(a),t.touching||r[n].call(e,a)})}))}function tD(e,t){re.pointerEventsSupported?k(xp.pointer,r):re.touchEventsSupported||k(xp.mouse,r);function r(n){function a(i){i=hd(i),T_(e,i.target)||(i=JN(e,i),t.domHandlers[n].call(e,i))}Gs(t,n,a,{capture:!0})}}function Gs(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,vN(e.domTarget,t,r,n)}function ac(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&pN(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var Np=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),rD=function(e){H(t,e);function t(r,n){var a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new Np(r,Ut),tc&&(a._globalHandlerScope=new Np(document,jf)),eD(a,a._localHandlerScope),a}return t.prototype.dispose=function(){ac(this._localHandlerScope),tc&&ac(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,tc&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?tD(this,n):ac(n)}},t}(Qt);const nD=rD;var N_=1;re.hasGlobalWindow&&(N_=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ol=N_,Xf=.4,Zf="#333",Kf="#ccc",aD="#eee",Dp=dd,Ap=5e-5;function bn(e){return e>Ap||e<-Ap}var Sn=[],da=[],ic=Ba(),oc=Math.abs,md=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return bn(this.rotation)||bn(this.x)||bn(this.y)||bn(this.scaleX-1)||bn(this.scaleY-1)||bn(this.skewX)||bn(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(Dp(n),this.invTransform=null);return}n=n||Ba(),r?this.getLocalTransform(n):Dp(n),t&&(r?Va(n,t,n):yN(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Sn);var n=Sn[0]<0?-1:1,a=Sn[1]<0?-1:1,i=((Sn[0]-n)*r+n)/Sn[0]||0,o=((Sn[1]-a)*r+a)/Sn[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Ba(),pd(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Ba(),Va(da,t.invTransform,r),r=da);var n=this.originX,a=this.originY;(n||a)&&(ic[4]=n,ic[5]=a,Va(da,r,ic),da[4]-=n,da[5]-=a,r=da),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],a=this.invTransform;return a&&Vt(n,n,a),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],a=this.transform;return a&&Vt(n,n,a),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&oc(t[0]-1)>1e-10&&oc(t[3]-1)>1e-10?Math.sqrt(oc(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){iD(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,a=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||a||s||l){var p=n+s,m=a+l;r[4]=-p*i-d*m*o,r[5]=-m*o-h*p*i}else r[4]=r[5]=0;return r[0]=i,r[3]=o,r[1]=h*i,r[2]=d*o,u&&vd(r,r,u),r[4]+=n+c,r[5]+=a+f,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),pr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function iD(e,t){for(var r=0;r<pr.length;r++){var n=pr[r];e[n]=t[n]}}var Mp={};function wt(e,t){t=t||jn;var r=Mp[t];r||(r=Mp[t]=new Oo(500));var n=r.get(e);return n==null&&(n=ti.measureText(e,t).width,r.put(e,n)),n}function kp(e,t,r,n){var a=wt(e,t),i=_d(t),o=Hi(0,a,r),s=Ma(0,i,n),l=new ye(o,s,a,i);return l}function yd(e,t,r,n){var a=((e||"")+"").split(`
15
- `),i=a.length;if(i===1)return kp(a[0],t,r,n);for(var o=new ye(0,0,0,0),s=0;s<a.length;s++){var l=kp(a[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function Hi(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Ma(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function _d(e){return wt("国",e)}function hn(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function sl(e,t,r){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=r.height,o=r.width,s=i/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=hn(n[0],r.width),u+=hn(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=a,u+=s,c="right",f="middle";break;case"right":l+=a+o,u+=s,f="middle";break;case"top":l+=o/2,u-=a,c="center",f="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=a,u+=s,f="middle";break;case"insideRight":l+=o-a,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",f="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,f="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var sc="__zr_normal__",lc=pr.concat(["ignore"]),oD=Lr(pr,function(e,t){return e[t]=!0,e},{ignore:!1}),va={},sD=new ye(0,0,0,0),wd=function(){function e(t){this.id=i_(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=r,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(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=r.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(r),n.position!=null){var c=sD;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(va,n,c):sl(va,n,c),i.x=va.x,i.y=va.y,o=va.align,s=va.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=hn(f[0],c.width),h=hn(f[1],c.height)),u=!0,i.originX=-i.x+d+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}n.rotation!=null&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var m=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,w=void 0,_=void 0;m&&this.canBeInsideText()?(y=n.insideFill,w=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(w==null||w==="auto")&&(w=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,w=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(w==null||w==="auto")&&(w=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||w!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=w,g.autoStroke=_,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=_t,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Kf:Zf},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Mr(r);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,ru(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},G(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(K(t))for(var n=t,a=_e(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==sc)){var o=a.targetName,s=o?r[o]:r;a.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,lc)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var a=0;a<n.length;a++){var i=n[a];t[i]!=null&&!(i in r)&&(r[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(sc,!1,t)},e.prototype.useState=function(t,r,n,a){var i=t===sc,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(ce(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){on("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,r,n,c),d&&d.useState(t,r,n,c),i?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~_t),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(t[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&a.push(c)}var f=a[o-1],d=!!(f&&f.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(a),p=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!r&&!this.__inHover&&p&&p.duration>0,p);var m=this._textContent,g=this._textGuide;m&&m.useStates(t,r,d),g&&g.useStates(t,r,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~_t)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=ce(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var a=this.currentStates.slice(),i=ce(a,t),o=ce(a,r)>=0;i>=0?o?a.splice(i,1):a[i]=r:n&&!o&&a.push(r),this.useStates(a)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,a=0;a<t.length;a++){var i=t[a];G(r,i),i.textConfig&&(n=n||{},G(n,i.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,a,i,o){var s=!(r&&a);r&&r.textConfig?(this.textConfig=G({},a?this.textConfig:n.textConfig),G(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<lc.length;c++){var f=lc[c],d=i&&oD[f];r&&r[f]!=null?d?(u=!0,l[f]=r[f]):this[f]=r[f]:s&&n[f]!=null&&(d?(u=!0,l[f]=n[f]):this[f]=n[f])}if(!i)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],p=h.targetName;h.getLoop()||h.__changeFinalValue(p?(r||n)[p]:r||n)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(t===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;if(r!==t){if(r&&r!==t&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.innerTransformable=new md,this._attachComponent(t),this._textContent=t,this.markRedraw()}},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),G(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=_t;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var a=t?this[t]:this;if(process.env.NODE_ENV!=="production"&&!a){on('Property "'+t+'" is not existed in element '+this.id);return}var i=new gd(a,r,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},e.prototype.addAnimator=function(t,r){var n=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(r)}).done(function(){var i=a.animators,o=ce(i,t);o>=0&&i.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!t||t===s.scope?s.stop(r):i.push(s)}return this.animators=i,this},e.prototype.animateTo=function(t,r,n){uc(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){uc(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,a){for(var i=uc(this,r,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=_t;var r={};function n(i,o,s){r[i+o+s]||(console.warn("DEPRECATED: '"+i+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[i+o+s]=!0)}function a(i,o,s,l){Object.defineProperty(t,i,{get:function(){if(process.env.NODE_ENV!=="production"&&n(i,s,l),!this[o]){var c=this[o]=[];u(this,c)}return this[o]},set:function(c){process.env.NODE_ENV!=="production"&&n(i,s,l),this[s]=c[0],this[l]=c[1],this[o]=c,u(this,c)}});function u(c,f){Object.defineProperty(f,0,{get:function(){return c[s]},set:function(d){c[s]=d}}),Object.defineProperty(f,1,{get:function(){return c[l]},set:function(d){c[l]=d}})}}Object.defineProperty&&(a("position","_legacyPos","x","y"),a("scale","_legacyScale","scaleX","scaleY"),a("origin","_legacyOrigin","originX","originY"))}(),e}();Jt(wd,Qt);Jt(wd,md);function uc(e,t,r,n,a){r=r||{};var i=[];D_(e,"",e,t,r,n,i,a);var o=i.length,s=!1,l=r.done,u=r.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&r.during&&i[0].during(function(p,m){r.during(m)});for(var d=0;d<i.length;d++){var h=i[d];c&&h.done(c),f&&h.aborted(f),r.force&&h.duration(r.duration),h.start(r.easing)}return i}function cc(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function lD(e){return st(e[0])}function uD(e,t,r){if(st(t[r]))if(st(e[r])||(e[r]=[]),lt(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),cc(e[r],t[r],n))}else{var a=t[r],i=e[r],o=a.length;if(lD(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?cc(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else cc(i,a,o);i.length=a.length}else e[r]=t[r]}function cD(e,t){return e===t||st(e)&&st(t)&&fD(e,t)}function fD(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function D_(e,t,r,n,a,i,o,s){for(var l=_e(n),u=a.duration,c=a.delay,f=a.additive,d=a.setToFinal,h=!K(i),p=e.animators,m=[],g=0;g<l.length;g++){var y=l[g],w=n[y];if(w!=null&&r[y]!=null&&(h||i[y]))if(K(w)&&!st(w)&&!eu(w)){if(t){s||(r[y]=w,e.updateDuringAnimation(t));continue}D_(e,y,r[y],w,a,i&&i[y],o,s)}else m.push(y);else s||(r[y]=w,e.updateDuringAnimation(t),m.push(y))}var _=m.length;if(!f&&_)for(var S=0;S<p.length;S++){var x=p[S];if(x.targetName===t){var C=x.stopTracks(m);if(C){var T=ce(p,x);p.splice(T,1)}}}if(a.force||(m=qe(m,function(A){return!cD(n[A],r[A])}),_=m.length),_>0||a.force&&!o.length){var b=void 0,D=void 0,N=void 0;if(s){D={},d&&(b={});for(var S=0;S<_;S++){var y=m[S];D[y]=r[y],d?b[y]=n[y]:r[y]=n[y]}}else if(d){N={};for(var S=0;S<_;S++){var y=m[S];N[y]=eo(r[y]),uD(r,n,y)}}var x=new gd(r,!1,!1,f?qe(p,function(M){return M.targetName===t}):null);x.targetName=t,a.scope&&(x.scope=a.scope),d&&b&&x.whenWithKeys(0,b,m),N&&x.whenWithKeys(0,N,m),x.whenWithKeys(u??500,s?D:n,m).delay(c||0),e.addAnimator(x,t),o.push(x)}}const A_=wd;var Ie=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===r)return n[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){if(r&&(r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),process.env.NODE_ENV!=="production"&&r.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var a=ce(this._children,r);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(r,n){var a=this._children,i=a[n];if(r&&r!==this&&r.parent!==this&&r!==i){a[n]=r,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,a=this._children,i=ce(a,r);return i<0?this:(a.splice(i,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,a=0;a<r.length;a++){var i=r[a];n&&i.removeSelfFromZr(n),i.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];r.call(n,o,i)}return this},t.prototype.traverse=function(r,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=r.call(n,i);i.isGroup&&!o&&i.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new ye(0,0,0,0),a=r||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(i);c?(ye.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(A_);Ie.prototype.type="group";/*!
14
+ ***************************************************************************** */var If=function(e,t){return If=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},If(e,t)};function H(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");If(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var PT=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),IT=function(){function e(){this.browser=new PT,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),re=new IT;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(re.wxa=!0,re.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?re.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(re.node=!0,re.svgSupported=!0):LT(navigator.userAgent,re);function LT(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),i=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),i&&(r.edge=!0,r.version=i[1],r.newEdge=+i[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var sd=12,OT="sans-serif",jn=sd+"px "+OT,RT=20,BT=100,VT="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function $T(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),a=(e.charCodeAt(r)-RT)/BT;t[n]=a}return t}var FT=$T(VT),ti={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var a=ti.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==n&&(t=e.font=n||jn),e.measureText(r);r=r||"",n=n||jn;var i=/(\d+)px/.exec(n),o=i&&+i[1]||sd,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=FT[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},n_=Lr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),a_=Lr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),ri=Object.prototype.toString,Ql=Array.prototype,zT=Ql.forEach,GT=Ql.filter,ld=Ql.slice,HT=Ql.map,ep=(function(){}).constructor,Wo=ep?ep.prototype:null,ud="__proto__",UT=2311;function i_(){return UT++}function on(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function ue(e){if(e==null||typeof e!="object")return e;var t=e,r=ri.call(e);if(r==="[object Array]"){if(!Ki(e)){t=[];for(var n=0,a=e.length;n<a;n++)t[n]=ue(e[n])}}else if(a_[r]){if(!Ki(e)){var i=e.constructor;if(i.from)t=i.from(e);else{t=new i(e.length);for(var n=0,a=e.length;n<a;n++)t[n]=e[n]}}}else if(!n_[r]&&!Ki(e)&&!qa(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==ud&&(t[o]=ue(e[o]))}return t}function ve(e,t,r){if(!K(t)||!K(e))return r?ue(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==ud){var a=e[n],i=t[n];K(i)&&K(a)&&!U(i)&&!U(a)&&!qa(i)&&!qa(a)&&!tp(i)&&!tp(a)&&!Ki(i)&&!Ki(a)?ve(a,i,r):(r||!(n in e))&&(e[n]=ue(t[n]))}return e}function G(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==ud&&(e[r]=t[r]);return e}function he(e,t,r){for(var n=_e(t),a=0;a<n.length;a++){var i=n[a];(r?t[i]!=null:e[i]==null)&&(e[i]=t[i])}return e}function ce(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function WT(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var a in r)r.hasOwnProperty(a)&&(e.prototype[a]=r[a]);e.prototype.constructor=e,e.superClass=t}function Jt(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(r?t[i]!=null:e[i]==null)&&(e[i]=t[i])}else he(e,t,r)}function st(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function k(e,t,r){if(e&&t)if(e.forEach&&e.forEach===zT)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e);else for(var i in e)e.hasOwnProperty(i)&&t.call(r,e[i],i,e)}function q(e,t,r){if(!e)return[];if(!t)return cd(e);if(e.map&&e.map===HT)return e.map(t,r);for(var n=[],a=0,i=e.length;a<i;a++)n.push(t.call(r,e[a],a,e));return n}function Lr(e,t,r,n){if(e&&t){for(var a=0,i=e.length;a<i;a++)r=t.call(n,r,e[a],a,e);return r}}function qe(e,t,r){if(!e)return[];if(!t)return cd(e);if(e.filter&&e.filter===GT)return e.filter(t,r);for(var n=[],a=0,i=e.length;a<i;a++)t.call(r,e[a],a,e)&&n.push(e[a]);return n}function _e(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function YT(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(ld.call(arguments)))}}var Q=Wo&&ie(Wo.bind)?Wo.call.bind(Wo.bind):YT;function be(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(ld.call(arguments)))}}function U(e){return Array.isArray?Array.isArray(e):ri.call(e)==="[object Array]"}function ie(e){return typeof e=="function"}function j(e){return typeof e=="string"}function Qs(e){return ri.call(e)==="[object String]"}function xe(e){return typeof e=="number"}function K(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function tp(e){return!!n_[ri.call(e)]}function lt(e){return!!a_[ri.call(e)]}function qa(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function eu(e){return e.colorStops!=null}function qT(e){return e.image!=null}function jT(e){return ri.call(e)==="[object RegExp]"}function ja(e){return e!==e}function fn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function ne(e,t){return e??t}function sn(e,t,r){return e??t??r}function cd(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return ld.apply(e,t)}function o_(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 ee(e,t){if(!e)throw new Error(t)}function fr(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var s_="__ec_primitive__";function Lf(e){e[s_]=!0}function Ki(e){return e[s_]}var XT=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return _e(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),l_=typeof Map=="function";function ZT(){return l_?new Map:new XT}var KT=function(){function e(t){var r=U(t);this.data=ZT();var n=this;t instanceof e?t.each(a):t&&k(t,a);function a(i,o){r?n.set(i,o):n.set(o,i)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,a){t.call(r,n,a)})},e.prototype.keys=function(){var t=this.data.keys();return l_?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function ae(e){return new KT(e)}function JT(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var a=e.length,n=0;n<t.length;n++)r[n+a]=t[n];return r}function tu(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&G(r,t),r}function u_(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function W(e,t){return e.hasOwnProperty(t)}function ot(){}var QT=180/Math.PI;function ni(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function eN(e){return[e[0],e[1]]}function rp(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function c_(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function tN(e){return Math.sqrt(rN(e))}function rN(e){return e[0]*e[0]+e[1]*e[1]}function Hu(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function fd(e,t){var r=tN(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Of(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Rf=Of;function nN(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Ra=nN;function Uu(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function Vt(e,t,r){var n=t[0],a=t[1];return e[0]=r[0]*n+r[2]*a+r[4],e[1]=r[1]*n+r[3]*a+r[5],e}function Pa(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Ia(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var fa=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),aN=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new fa(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,a=t.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,r.drift(i,o,t),this.handler.dispatchToElement(new fa(r,t),"drag",t.event);var s=this.handler.findHover(n,a,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new fa(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new fa(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new fa(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new fa(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),Qt=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof r=="function"&&(a=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),i[t]||(i[t]=[]);for(var s=0;s<i[t].length;s++)if(i[t][s].h===n)return this;var l={h:n,query:r,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[t].length-1,c=i[t][u];return c&&c.callAtLast?i[t].splice(u,0,l):i[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var a=[],i=0,o=n[t].length;i<o;i++)n[t][i].h!==r&&a.push(n[t][i]);n[t]=a}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[t],i=this._$eventProcessor;if(a)for(var o=r.length,s=r[o-1],l=a.length,u=0;u<l;u++){var c=a[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(t,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(t),this},e}(),iN=Math.log(2);function Bf(e,t,r,n,a,i){var o=n+"-"+a,s=e.length;if(i.hasOwnProperty(o))return i[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/iN);return e[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var f=0,d=0,h=0;d<s;d++){var p=1<<d;p&a||(f+=(h%2?-1:1)*e[r][d]*Bf(e,t-1,c,u,a|p,i),h++)}return i[o]=f,f}function np(e,t){var r=[[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]]],n={},a=Bf(r,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*Bf(r,7,o===0?1:0,1<<o,1<<s,n)/a*t[o];return function(l,u,c){var f=u*i[6]+c*i[7]+1;l[0]=(u*i[0]+c*i[1]+i[2])/f,l[1]=(u*i[3]+c*i[4]+i[5])/f}}}var ap="___zrEVENTSAVED",Wu=[];function oN(e,t,r,n,a){return Vf(Wu,t,n,a,!0)&&Vf(e,r,Wu[0],Wu[1])}function Vf(e,t,r,n,a){if(t.getBoundingClientRect&&re.domSupported&&!f_(t)){var i=t[ap]||(t[ap]={}),o=sN(t,i),s=lN(o,i,a);if(s)return s(e,r,n),!0}return!1}function sN(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function lN(e,t,r){for(var n=r?"invTrans":"trans",a=t[n],i=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,h=c.top;o.push(d,h),l=l&&i&&d===i[f]&&h===i[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&a?a:(t.srcCoords=o,t[n]=r?np(s,o):np(o,s))}function f_(e){return e.nodeName.toUpperCase()==="CANVAS"}var uN=/([&<>"'])/g,cN={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Pt(e){return e==null?"":(e+"").replace(uN,function(t,r){return cN[r]})}var fN=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Yu=[],hN=re.browser.firefox&&+re.browser.version.split(".")[0]<39;function $f(e,t,r,n){return r=r||{},n?ip(e,t,r):hN&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):ip(e,t,r),r}function ip(e,t,r){if(re.domSupported&&e.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(f_(e)){var i=e.getBoundingClientRect();r.zrX=n-i.left,r.zrY=a-i.top;return}else if(Vf(Yu,e,n,a)){r.zrX=Yu[0],r.zrY=Yu[1];return}}r.zrX=r.zrY=0}function hd(e){return e||window.event}function At(e,t,r){if(t=hd(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&$f(e,o,t,r)}else{$f(e,t,t,r);var i=dN(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&fN.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function dN(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var a=Math.abs(n!==0?n:r),i=n>0?-1:n<0?1:r>0?-1:1;return 3*a*i}function vN(e,t,r,n){e.addEventListener(t,r,n)}function pN(e,t,r,n){e.removeEventListener(t,r,n)}var Xa=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function op(e){return e.which===2||e.which===3}var gN=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var a=t.touches;if(a){for(var i={points:[],touches:[],target:r,event:t},o=0,s=a.length;o<s;o++){var l=a[o],u=$f(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},e.prototype._recognize=function(t){for(var r in qu)if(qu.hasOwnProperty(r)){var n=qu[r](this._track,t);if(n)return n}},e}();function sp(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function mN(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var qu={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,a=(e[r-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=sp(n)/sp(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=mN(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Ba(){return[1,0,0,1,0,0]}function dd(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function yN(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 Va(e,t,r){var n=t[0]*r[0]+t[2]*r[1],a=t[1]*r[0]+t[3]*r[1],i=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=a,e[2]=i,e[3]=o,e[4]=s,e[5]=l,e}function Ff(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function vd(e,t,r,n){n===void 0&&(n=[0,0]);var a=t[0],i=t[2],o=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(r),f=Math.cos(r);return e[0]=a*f+s*c,e[1]=-a*c+s*f,e[2]=i*f+l*c,e[3]=-i*c+f*l,e[4]=f*(o-n[0])+c*(u-n[1])+n[0],e[5]=f*(u-n[1])-c*(o-n[0])+n[1],e}function _N(e,t,r){var n=r[0],a=r[1];return e[0]=t[0]*n,e[1]=t[1]*a,e[2]=t[2]*n,e[3]=t[3]*a,e[4]=t[4]*n,e[5]=t[5]*a,e}function pd(e,t){var r=t[0],n=t[2],a=t[4],i=t[1],o=t[3],s=t[5],l=r*o-i*n;return l?(l=1/l,e[0]=o*l,e[1]=-i*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*a)*l,e[5]=(i*a-r*s)*l,e):null}var wN=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.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 t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,a){t.x=r.x+n.x*a,t.y=r.y+n.y*a},e.lerp=function(t,r,n,a){var i=1-a;t.x=i*r.x+a*n.x,t.y=i*r.y+a*n.y},e}();const se=wN;var Yo=Math.min,qo=Math.max,mn=new se,yn=new se,_n=new se,wn=new se,yi=new se,_i=new se,bN=function(){function e(t,r,n,a){n<0&&(t=t+n,n=-n),a<0&&(r=r+a,a=-a),this.x=t,this.y=r,this.width=n,this.height=a}return e.prototype.union=function(t){var r=Yo(t.x,this.x),n=Yo(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=qo(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=qo(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,a=t.height/r.height,i=Ba();return Ff(i,i,[-r.x,-r.y]),_N(i,i,[n,a]),Ff(i,i,[t.x,t.y]),i},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,a=n.x,i=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(i<l||u<a||s<c||f<o);if(r){var h=1/0,p=0,m=Math.abs(i-l),g=Math.abs(u-a),y=Math.abs(s-c),w=Math.abs(f-o),_=Math.min(m,g),S=Math.min(y,w);i<l||u<a?_>p&&(p=_,m<g?se.set(_i,-m,0):se.set(_i,g,0)):_<h&&(h=_,m<g?se.set(yi,m,0):se.set(yi,-g,0)),s<c||f<o?S>p&&(p=S,y<w?se.set(_i,0,-y):se.set(_i,0,w)):_<h&&(h=_,y<w?se.set(yi,0,y):se.set(yi,0,-w))}return r&&se.copy(r,d?yi:_i),d},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},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.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];t.x=r.x*a+o,t.y=r.y*i+s,t.width=r.width*a,t.height=r.height*i,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}mn.x=_n.x=r.x,mn.y=wn.y=r.y,yn.x=wn.x=r.x+r.width,yn.y=_n.y=r.y+r.height,mn.transform(n),wn.transform(n),yn.transform(n),_n.transform(n),t.x=Yo(mn.x,yn.x,_n.x,wn.x),t.y=Yo(mn.y,yn.y,_n.y,wn.y);var l=qo(mn.x,yn.x,_n.x,wn.x),u=qo(mn.y,yn.y,_n.y,wn.y);t.width=l-t.x,t.height=u-t.y},e}();const ye=bN;var h_="silent";function SN(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:CN}}function CN(){Xa(this.event)}var xN=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Qt),wi=function(){function e(t,r){this.x=t,this.y=r}return e}(),TN=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ju=new ye(0,0,0,0),d_=function(e){H(t,e);function t(r,n,a,i,o){var s=e.call(this)||this;return s._hovered=new wi(0,0),s.storage=r,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new xN,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new aN(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(k(TN,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,a=r.zrY,i=v_(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new wi(n,a):this.findHover(n,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new wi(0,0)},t.prototype.dispatch=function(r,n){var a=this[r];a&&a.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,a){r=r||{};var i=r.target;if(!(i&&i.silent)){for(var o="on"+n,s=SN(n,r,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,a){var i=this.storage.getDisplayList(),o=new wi(r,n);if(lp(i,o,r,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new ye(r-u,n-u,l,l),f=i.length-1;f>=0;f--){var d=i[f];d!==a&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(ju.copy(d.getBoundingRect()),d.transform&&ju.applyTransform(d.transform),ju.intersect(c)&&s.push(d))}if(s.length)for(var h=4,p=Math.PI/12,m=Math.PI*2,g=0;g<u;g+=h)for(var y=0;y<m;y+=p){var w=r+g*Math.cos(y),_=n+g*Math.sin(y);if(lp(s,o,w,_,a),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new gN);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;r.gestureEvent=o;var s=new wi;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(Qt);k(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){d_.prototype[e]=function(t){var r=t.zrX,n=t.zrY,a=v_(this,r,n),i,o;if((e!=="mouseup"||!a)&&(i=this.findHover(r,n),o=i.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||Rf(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function NN(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s||n.parent}return a?h_:!0}return!1}function lp(e,t,r,n,a){for(var i=e.length-1;i>=0;i--){var o=e[i],s=void 0;if(o!==a&&!o.ignore&&(s=NN(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==h_)){t.target=o;break}}}function v_(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const DN=d_;var p_=32,bi=7;function AN(e){for(var t=0;e>=p_;)t|=e&1,e>>=1;return e+t}function up(e,t,r,n){var a=t+1;if(a===r)return 1;if(n(e[a++],e[t])<0){for(;a<r&&n(e[a],e[a-1])<0;)a++;MN(e,t,a)}else for(;a<r&&n(e[a],e[a-1])>=0;)a++;return a-t}function MN(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function cp(e,t,r,n,a){for(n===t&&n++;n<r;n++){for(var i=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,a(i,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=i}}function Xu(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])>0){for(s=n-a;l<s&&i(e,t[r+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(e,t[r+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var c=o+(l-o>>>1);i(e,t[r+c])>0?o=c+1:l=c}return l}function Zu(e,t,r,n,a,i){var o=0,s=0,l=1;if(i(e,t[r+a])<0){for(s=a+1;l<s&&i(e,t[r+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(e,t[r+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var c=o+(l-o>>>1);i(e,t[r+c])<0?l=c:o=c+1}return l}function kN(e,t){var r=bi,n,a,i=0,o=[];n=[],a=[];function s(h,p){n[i]=h,a[i]=p,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]<a[h+1]&&h--,c(h)}}function c(h){var p=n[h],m=a[h],g=n[h+1],y=a[h+1];a[h]=m+y,h===i-3&&(n[h+1]=n[h+2],a[h+1]=a[h+2]),i--;var w=Zu(e[g],e,p,m,0,t);p+=w,m-=w,m!==0&&(y=Xu(e[p+m-1],e,g,y,y-1,t),y!==0&&(m<=y?f(p,m,g,y):d(p,m,g,y)))}function f(h,p,m,g){var y=0;for(y=0;y<p;y++)o[y]=e[h+y];var w=0,_=m,S=h;if(e[S++]=e[_++],--g===0){for(y=0;y<p;y++)e[S+y]=o[w+y];return}if(p===1){for(y=0;y<g;y++)e[S+y]=e[_+y];e[S+g]=o[w];return}for(var x=r,C,T,b;;){C=0,T=0,b=!1;do if(t(e[_],o[w])<0){if(e[S++]=e[_++],T++,C=0,--g===0){b=!0;break}}else if(e[S++]=o[w++],C++,T=0,--p===1){b=!0;break}while((C|T)<x);if(b)break;do{if(C=Zu(e[_],o,w,p,0,t),C!==0){for(y=0;y<C;y++)e[S+y]=o[w+y];if(S+=C,w+=C,p-=C,p<=1){b=!0;break}}if(e[S++]=e[_++],--g===0){b=!0;break}if(T=Xu(o[w],e,_,g,0,t),T!==0){for(y=0;y<T;y++)e[S+y]=e[_+y];if(S+=T,_+=T,g-=T,g===0){b=!0;break}}if(e[S++]=o[w++],--p===1){b=!0;break}x--}while(C>=bi||T>=bi);if(b)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),p===1){for(y=0;y<g;y++)e[S+y]=e[_+y];e[S+g]=o[w]}else{if(p===0)throw new Error;for(y=0;y<p;y++)e[S+y]=o[w+y]}}function d(h,p,m,g){var y=0;for(y=0;y<g;y++)o[y]=e[m+y];var w=h+p-1,_=g-1,S=m+g-1,x=0,C=0;if(e[S--]=e[w--],--p===0){for(x=S-(g-1),y=0;y<g;y++)e[x+y]=o[y];return}if(g===1){for(S-=p,w-=p,C=S+1,x=w+1,y=p-1;y>=0;y--)e[C+y]=e[x+y];e[S]=o[_];return}for(var T=r;;){var b=0,D=0,N=!1;do if(t(o[_],e[w])<0){if(e[S--]=e[w--],b++,D=0,--p===0){N=!0;break}}else if(e[S--]=o[_--],D++,b=0,--g===1){N=!0;break}while((b|D)<T);if(N)break;do{if(b=p-Zu(o[_],e,h,p,p-1,t),b!==0){for(S-=b,w-=b,p-=b,C=S+1,x=w+1,y=b-1;y>=0;y--)e[C+y]=e[x+y];if(p===0){N=!0;break}}if(e[S--]=o[_--],--g===1){N=!0;break}if(D=g-Xu(e[w],o,0,g,g-1,t),D!==0){for(S-=D,_-=D,g-=D,C=S+1,x=_+1,y=0;y<D;y++)e[C+y]=o[x+y];if(g<=1){N=!0;break}}if(e[S--]=e[w--],--p===0){N=!0;break}T--}while(b>=bi||D>=bi);if(N)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),g===1){for(S-=p,w-=p,C=S+1,x=w+1,y=p-1;y>=0;y--)e[C+y]=e[x+y];e[S]=o[_]}else{if(g===0)throw new Error;for(x=S-(g-1),y=0;y<g;y++)e[x+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Vs(e,t,r,n){r||(r=0),n||(n=e.length);var a=n-r;if(!(a<2)){var i=0;if(a<p_){i=up(e,r,n,t),cp(e,r,n,r+i,t);return}var o=kN(e,t),s=AN(a);do{if(i=up(e,r,n,t),i<s){var l=a;l>s&&(l=s),cp(e,r,r+l,r+i,t),i=l}o.pushRun(r,i),o.mergeRuns(),a-=i,r+=i}while(a!==0);o.forceMergeRuns()}}var _t=1,zi=2,Aa=4,fp=!1;function Ku(){fp||(fp=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function hp(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var EN=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=hp}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,a=0,i=r.length;a<i;a++)this._updateAndAddDisplayable(r[a],null,t);n.length=this._displayListLen,Vs(n,hp)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var a=t.getClipPath();if(t.ignoreClip)r=null;else if(a){r?r=r.slice():r=[];for(var i=a,o=t;i;)i.parent=o,i.updateTransform(),r.push(i),o=i,i=i.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=_t),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var c=t;r&&r.length?c.__clipPaths=r:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(Ku(),c.z=0),isNaN(c.z2)&&(Ku(),c.z2=0),isNaN(c.zlevel)&&(Ku(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,r,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var a=ce(this._roots,t);a>=0&&this._roots.splice(a,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}(),g_;g_=re.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const zf=g_;var Ji={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:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},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,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.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?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Ji.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?Ji.bounceIn(e*2)*.5:Ji.bounceOut(e*2-1)*.5+.5}},jo=Math.pow,ln=Math.sqrt,el=1e-8,m_=1e-4,dp=ln(3),Xo=1/3,ur=ni(),It=ni(),$a=ni();function Qr(e){return e>-el&&e<el}function y_(e){return e>el||e<-el}function $e(e,t,r,n,a){var i=1-a;return i*i*(i*e+3*a*t)+a*a*(a*n+3*i*r)}function vp(e,t,r,n,a){var i=1-a;return 3*(((t-e)*i+2*(r-t)*a)*i+(n-r)*a*a)}function tl(e,t,r,n,a,i){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-a,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,h=0;if(Qr(c)&&Qr(f))if(Qr(s))i[0]=0;else{var p=-l/s;p>=0&&p<=1&&(i[h++]=p)}else{var m=f*f-4*c*d;if(Qr(m)){var g=f/c,p=-s/o+g,y=-g/2;p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y)}else if(m>0){var w=ln(m),_=c*s+1.5*o*(-f+w),S=c*s+1.5*o*(-f-w);_<0?_=-jo(-_,Xo):_=jo(_,Xo),S<0?S=-jo(-S,Xo):S=jo(S,Xo);var p=(-s-(_+S))/(3*o);p>=0&&p<=1&&(i[h++]=p)}else{var x=(2*c*s-3*o*f)/(2*ln(c*c*c)),C=Math.acos(x)/3,T=ln(c),b=Math.cos(C),p=(-s-2*T*b)/(3*o),y=(-s+T*(b+dp*Math.sin(C)))/(3*o),D=(-s+T*(b-dp*Math.sin(C)))/(3*o);p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y),D>=0&&D<=1&&(i[h++]=D)}}return h}function __(e,t,r,n,a){var i=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(Qr(o)){if(y_(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(Qr(c))a[0]=-i/(2*o);else if(c>0){var f=ln(c),u=(-i+f)/(2*o),d=(-i-f)/(2*o);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function rl(e,t,r,n,a,i){var o=(t-e)*a+e,s=(r-t)*a+t,l=(n-r)*a+r,u=(s-o)*a+o,c=(l-s)*a+s,f=(c-u)*a+u;i[0]=e,i[1]=o,i[2]=u,i[3]=f,i[4]=f,i[5]=c,i[6]=l,i[7]=n}function PN(e,t,r,n,a,i,o,s,l,u,c){var f,d=.005,h=1/0,p,m,g,y;ur[0]=l,ur[1]=u;for(var w=0;w<1;w+=.05)It[0]=$e(e,r,a,o,w),It[1]=$e(t,n,i,s,w),g=Ra(ur,It),g<h&&(f=w,h=g);h=1/0;for(var _=0;_<32&&!(d<m_);_++)p=f-d,m=f+d,It[0]=$e(e,r,a,o,p),It[1]=$e(t,n,i,s,p),g=Ra(It,ur),p>=0&&g<h?(f=p,h=g):($a[0]=$e(e,r,a,o,m),$a[1]=$e(t,n,i,s,m),y=Ra($a,ur),m<=1&&y<h?(f=m,h=y):d*=.5);return c&&(c[0]=$e(e,r,a,o,f),c[1]=$e(t,n,i,s,f)),ln(h)}function IN(e,t,r,n,a,i,o,s,l){for(var u=e,c=t,f=0,d=1/l,h=1;h<=l;h++){var p=h*d,m=$e(e,r,a,o,p),g=$e(t,n,i,s,p),y=m-u,w=g-c;f+=Math.sqrt(y*y+w*w),u=m,c=g}return f}function Ke(e,t,r,n){var a=1-n;return a*(a*e+2*n*t)+n*n*r}function pp(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function LN(e,t,r,n,a){var i=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(Qr(i)){if(y_(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(Qr(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=ln(c),u=(-o+f)/(2*i),d=(-o-f)/(2*i);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function w_(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function nl(e,t,r,n,a){var i=(t-e)*n+e,o=(r-t)*n+t,s=(o-i)*n+i;a[0]=e,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=r}function ON(e,t,r,n,a,i,o,s,l){var u,c=.005,f=1/0;ur[0]=o,ur[1]=s;for(var d=0;d<1;d+=.05){It[0]=Ke(e,r,a,d),It[1]=Ke(t,n,i,d);var h=Ra(ur,It);h<f&&(u=d,f=h)}f=1/0;for(var p=0;p<32&&!(c<m_);p++){var m=u-c,g=u+c;It[0]=Ke(e,r,a,m),It[1]=Ke(t,n,i,m);var h=Ra(It,ur);if(m>=0&&h<f)u=m,f=h;else{$a[0]=Ke(e,r,a,g),$a[1]=Ke(t,n,i,g);var y=Ra($a,ur);g<=1&&y<f?(u=g,f=y):c*=.5}}return l&&(l[0]=Ke(e,r,a,u),l[1]=Ke(t,n,i,u)),ln(f)}function RN(e,t,r,n,a,i,o){for(var s=e,l=t,u=0,c=1/o,f=1;f<=o;f++){var d=f*c,h=Ke(e,r,a,d),p=Ke(t,n,i,d),m=h-s,g=p-l;u+=Math.sqrt(m*m+g*g),s=h,l=p}return u}var BN=/cubic-bezier\(([0-9,\.e ]+)\)/;function b_(e){var t=e&&BN.exec(e);if(t){var r=t[1].split(","),n=+fr(r[0]),a=+fr(r[1]),i=+fr(r[2]),o=+fr(r[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:tl(0,n,i,1,l,s)&&$e(0,a,o,1,s[0])}}}var VN=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||ot,this.ondestroy=t.ondestroy||ot,this.onrestart=t.onrestart||ot,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ie(t)?t:Ji[t]||b_(t)},e}();const $N=VN;var S_=function(){function e(t){this.value=t}return e}(),FN=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new S_(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Lo=function(){function e(t){this._list=new FN,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,a=this._map,i=null;if(a[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new S_(r),s.key=t,n.insertEntry(s),a[t]=s}return i},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),gp={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 un(e){return e=Math.round(e),e<0?0:e>255?255:e}function Gf(e){return e<0?0:e>1?1:e}function Ju(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?un(parseFloat(t)/100*255):un(parseInt(t,10))}function Qi(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Gf(parseFloat(t)/100):Gf(parseFloat(t))}function Qu(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function Zo(e,t,r){return e+(t-e)*r}function Dt(e,t,r,n,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=a,e}function Hf(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var C_=new Lo(20),Ko=null;function ha(e,t){Ko&&Hf(Ko,t),Ko=C_.put(e,Ko||t.slice())}function Mr(e,t){if(e){t=t||[];var r=C_.get(e);if(r)return Hf(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in gp)return Hf(t,gp[n]),ha(e,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var i=parseInt(n.slice(1,4),16);if(!(i>=0&&i<=4095)){Dt(t,0,0,0,1);return}return Dt(t,(i&3840)>>4|(i&3840)>>8,i&240|(i&240)>>4,i&15|(i&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),ha(e,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){Dt(t,0,0,0,1);return}return Dt(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),ha(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===a){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Dt(t,+u[0],+u[1],+u[2],1):Dt(t,0,0,0,1);c=Qi(u.pop());case"rgb":if(u.length>=3)return Dt(t,Ju(u[0]),Ju(u[1]),Ju(u[2]),u.length===3?c:Qi(u[3])),ha(e,t),t;Dt(t,0,0,0,1);return;case"hsla":if(u.length!==4){Dt(t,0,0,0,1);return}return u[3]=Qi(u[3]),mp(u,t),ha(e,t),t;case"hsl":if(u.length!==3){Dt(t,0,0,0,1);return}return mp(u,t),ha(e,t),t;default:return}}Dt(t,0,0,0,1)}}function mp(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Qi(e[1]),a=Qi(e[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],Dt(t,un(Qu(o,i,r+1/3)*255),un(Qu(o,i,r)*255),un(Qu(o,i,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function yp(e,t){var r=Mr(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return ru(r,r.length===4?"rgba":"rgb")}}function zN(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),a=Math.floor(n),i=Math.ceil(n),o=Mr(t[a]),s=Mr(t[i]),l=n-a,u=ru([un(Zo(o[0],s[0],l)),un(Zo(o[1],s[1],l)),un(Zo(o[2],s[2],l)),Gf(Zo(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}function ru(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function al(e,t){var r=Mr(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var _p=new Lo(100);function wp(e){if(j(e)){var t=_p.get(e);return t||(t=yp(e,-.1),_p.put(e,t)),t}else if(eu(e)){var r=G({},e);return r.colorStops=q(e.colorStops,function(n){return{offset:n.offset,color:yp(n.color,-.1)}}),r}return e}function GN(e){return e.type==="linear"}function HN(e){return e.type==="radial"}(function(){return re.hasGlobalWindow&&ie(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return process.env.NODE_ENV!=="production"&&on("Base64 isn't natively supported in the current environment."),null}})();var Uf=Array.prototype.slice;function Cr(e,t,r){return(t-e)*r+e}function ec(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=Cr(t[i],r[i],n);return e}function UN(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=Cr(t[o][s],r[o][s],n)}return e}function Jo(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=t[i]+r[i]*n;return e}function bp(e,t,r,n){for(var a=t.length,i=a&&t[0].length,o=0;o<a;o++){e[o]||(e[o]=[]);for(var s=0;s<i;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function WN(e,t){for(var r=e.length,n=t.length,a=r>n?t:e,i=Math.min(r,n),o=a[i-1]||{color:[0,0,0,0],offset:0},s=i;s<Math.max(r,n);s++)a.push({offset:o.offset,color:o.color.slice()})}function YN(e,t,r){var n=e,a=t;if(!(!n.push||!a.push)){var i=n.length,o=a.length;if(i!==o){var s=i>o;if(s)n.length=o;else for(var l=i;l<o;l++)n.push(r===1?a[l]:Uf.call(a[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=a[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=a[l][c])}}function eo(e){if(st(e)){var t=e.length;if(st(e[0])){for(var r=[],n=0;n<t;n++)r.push(Uf.call(e[n]));return r}return Uf.call(e)}return e}function $s(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 qN(e){return st(e&&e[0])?2:1}var Qo=0,Fs=1,x_=2,Gi=3,Wf=4,Yf=5,Sp=6;function Cp(e){return e===Wf||e===Yf}function es(e){return e===Fs||e===x_}var Si=[0,0,0,0],jN=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}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(t,r,n){this._needsSort=!0;var a=this.keyframes,i=a.length,o=!1,s=Sp,l=r;if(st(r)){var u=qN(r);s=u,(u===1&&!xe(r[0])||u===2&&!xe(r[0][0]))&&(o=!0)}else if(xe(r)&&!ja(r))s=Qo;else if(j(r))if(!isNaN(+r))s=Qo;else{var c=Mr(r);c&&(l=c,s=Gi)}else if(eu(r)){var f=G({},l);f.colorStops=q(r.colorStops,function(h){return{offset:h.offset,color:Mr(h.color)}}),GN(r)?s=Wf:HN(r)&&(s=Yf),l=f}i===0?this.valType=s:(s!==this.valType||s===Sp)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=ie(n)?n:Ji[n]||b_(n)),a.push(d),d},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(m,g){return m.time-g.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=es(a),u=Cp(a),c=0;c<i;c++){var f=n[c],d=f.value,h=o.value;f.percent=f.time/t,s||(l&&c!==i-1?YN(d,h,a):u&&WN(d.colorStops,h.colorStops))}if(!s&&a!==Yf&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;for(var p=n[0].value,c=0;c<i;c++)a===Qo?n[c].additiveValue=n[c].value-p:a===Gi?n[c].additiveValue=Jo([],n[c].value,p,-1):es(a)&&(n[c].additiveValue=a===Fs?Jo([],n[c].value,p,-1):bp([],n[c].value,p,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,a=n?"additiveValue":"value",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===Gi,c,f=this._lastFr,d=Math.min,h,p;if(s===1)h=p=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var m=d(f+1,s-1);for(c=m;c>=0&&!(o[c].percent<=r);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>r);c++);c=d(c-1,s-2)}p=o[c+1],h=o[c]}if(h&&p){this._lastFr=c,this._lastFrP=r;var g=p.percent-h.percent,y=g===0?1:d((r-h.percent)/g,1);p.easingFunc&&(y=p.easingFunc(y));var w=n?this._additiveValue:u?Si:t[l];if((es(i)||u)&&!w&&(w=this._additiveValue=[]),this.discrete)t[l]=y<1?h.rawValue:p.rawValue;else if(es(i))i===Fs?ec(w,h[a],p[a],y):UN(w,h[a],p[a],y);else if(Cp(i)){var _=h[a],S=p[a],x=i===Wf;t[l]={type:x?"linear":"radial",x:Cr(_.x,S.x,y),y:Cr(_.y,S.y,y),colorStops:q(_.colorStops,function(T,b){var D=S.colorStops[b];return{offset:Cr(T.offset,D.offset,y),color:$s(ec([],T.color,D.color,y))}}),global:S.global},x?(t[l].x2=Cr(_.x2,S.x2,y),t[l].y2=Cr(_.y2,S.y2,y)):t[l].r=Cr(_.r,S.r,y)}else if(u)ec(w,h[a],p[a],y),n||(t[l]=$s(w));else{var C=Cr(h[a],p[a],y);n?this._additiveValue=C:t[l]=C}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,a=this._additiveValue;r===Qo?t[n]=t[n]+a:r===Gi?(Mr(t[n],Si),Jo(Si,Si,a,1),t[n]=$s(Si)):r===Fs?Jo(t[n],t[n],a,1):r===x_&&bp(t[n],t[n],a,1)},e}(),gd=function(){function e(t,r,n,a){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&a){on("Can' use additive animation on looped animation.");return}this._additiveAnimators=a,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(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,_e(r),n)},e.prototype.whenWithKeys=function(t,r,n,a){for(var i=this._tracks,o=0;o<n.length;o++){var s=n[o],l=i[s];if(!l){l=i[s]=new jN(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];u=d&&d.value,c.valType===Gi&&u&&(u=$s(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,eo(u),a),this._trackKeys.push(s)}l.addKeyframe(t,eo(r[s]),a)}return this._maxTime=Math.max(this._maxTime,t),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(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var a=0;a<n.length;a++){var i=n[a].getTrack(t);i&&(r=i)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],a=this._maxTime||0,i=0;i<this._trackKeys.length;i++){var o=this._trackKeys[i],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(r._target[s.propName]=f.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var d=new $N({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var p=r._additiveAnimators;if(p){for(var m=!1,g=0;g<p.length;g++)if(p[g]._clip){m=!0;break}m||(r._additiveAnimators=null)}for(var g=0;g<n.length;g++)n[g].step(r._target,h);var y=r._onframeCbs;if(y)for(var g=0;g<y.length;g++)y[g](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return q(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,a=this._trackKeys,i=0;i<t.length;i++){var o=n[t[i]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,i=0;i<a.length;i++)if(!n[a[i]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var a=0;a<r.length;a++){var i=r[a],o=this._tracks[i];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[i]=eo(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||_e(t);for(var n=0;n<r.length;n++){var a=r[n],i=this._tracks[a];if(i){var o=i.keyframes;if(o.length>1){var s=o.pop();i.addKeyframe(s.time,t[a]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();function La(){return new Date().getTime()}var XN=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=La()-this._pausedTime,a=n-this._time,i=this._head;i;){var o=i.next,s=i.step(n,a);s&&(i.ondestroy(),this.removeClip(i)),i=o}this._time=n,r||(this.trigger("frame",a),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(zf(n),!r._paused&&r.update())}zf(n)},t.prototype.start=function(){this._running||(this._time=La(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=La(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=La()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var a=new gd(r,n.loop);return this.addAnimator(a),a},t}(Qt),ZN=300,tc=re.domSupported,rc=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=q(e,function(a){var i=a.replace("mouse","pointer");return r.hasOwnProperty(i)?i:a});return{mouse:e,touch:t,pointer:n}}(),xp={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Tp=!1;function qf(e){var t=e.pointerType;return t==="pen"||t==="touch"}function KN(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function nc(e){e&&(e.zrByTouch=!0)}function JN(e,t){return At(e.dom,new QN(e,t),!0)}function T_(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var QN=function(){function e(t,r){this.stopPropagation=ot,this.stopImmediatePropagation=ot,this.preventDefault=ot,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Ut={mousedown:function(e){e=At(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=At(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=At(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=At(this.dom,e);var t=e.toElement||e.relatedTarget;T_(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Tp=!0,e=At(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Tp||(e=At(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=At(this.dom,e),nc(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ut.mousemove.call(this,e),Ut.mousedown.call(this,e)},touchmove:function(e){e=At(this.dom,e),nc(e),this.handler.processGesture(e,"change"),Ut.mousemove.call(this,e)},touchend:function(e){e=At(this.dom,e),nc(e),this.handler.processGesture(e,"end"),Ut.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<ZN&&Ut.click.call(this,e)},pointerdown:function(e){Ut.mousedown.call(this,e)},pointermove:function(e){qf(e)||Ut.mousemove.call(this,e)},pointerup:function(e){Ut.mouseup.call(this,e)},pointerout:function(e){qf(e)||Ut.mouseout.call(this,e)}};k(["click","dblclick","contextmenu"],function(e){Ut[e]=function(t){t=At(this.dom,t),this.trigger(e,t)}});var jf={pointermove:function(e){qf(e)||jf.mousemove.call(this,e)},pointerup:function(e){jf.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 eD(e,t){var r=t.domHandlers;re.pointerEventsSupported?k(rc.pointer,function(n){zs(t,n,function(a){r[n].call(e,a)})}):(re.touchEventsSupported&&k(rc.touch,function(n){zs(t,n,function(a){r[n].call(e,a),KN(t)})}),k(rc.mouse,function(n){zs(t,n,function(a){a=hd(a),t.touching||r[n].call(e,a)})}))}function tD(e,t){re.pointerEventsSupported?k(xp.pointer,r):re.touchEventsSupported||k(xp.mouse,r);function r(n){function a(i){i=hd(i),T_(e,i.target)||(i=JN(e,i),t.domHandlers[n].call(e,i))}zs(t,n,a,{capture:!0})}}function zs(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,vN(e.domTarget,t,r,n)}function ac(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&pN(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var Np=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),rD=function(e){H(t,e);function t(r,n){var a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new Np(r,Ut),tc&&(a._globalHandlerScope=new Np(document,jf)),eD(a,a._localHandlerScope),a}return t.prototype.dispose=function(){ac(this._localHandlerScope),tc&&ac(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,tc&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?tD(this,n):ac(n)}},t}(Qt);const nD=rD;var N_=1;re.hasGlobalWindow&&(N_=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var il=N_,Xf=.4,Zf="#333",Kf="#ccc",aD="#eee",Dp=dd,Ap=5e-5;function bn(e){return e>Ap||e<-Ap}var Sn=[],da=[],ic=Ba(),oc=Math.abs,md=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return bn(this.rotation)||bn(this.x)||bn(this.y)||bn(this.scaleX-1)||bn(this.scaleY-1)||bn(this.skewX)||bn(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(Dp(n),this.invTransform=null);return}n=n||Ba(),r?this.getLocalTransform(n):Dp(n),t&&(r?Va(n,t,n):yN(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Sn);var n=Sn[0]<0?-1:1,a=Sn[1]<0?-1:1,i=((Sn[0]-n)*r+n)/Sn[0]||0,o=((Sn[1]-a)*r+a)/Sn[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Ba(),pd(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],a=Math.atan2(t[1],t[0]),i=Math.PI/2+a-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(i),r=Math.sqrt(r),this.skewX=i,this.skewY=0,this.rotation=-a,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Ba(),Va(da,t.invTransform,r),r=da);var n=this.originX,a=this.originY;(n||a)&&(ic[4]=n,ic[5]=a,Va(da,r,ic),da[4]-=n,da[5]-=a,r=da),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],a=this.invTransform;return a&&Vt(n,n,a),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],a=this.transform;return a&&Vt(n,n,a),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&oc(t[0]-1)>1e-10&&oc(t[3]-1)>1e-10?Math.sqrt(oc(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){iD(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,a=t.originY||0,i=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||a||s||l){var p=n+s,m=a+l;r[4]=-p*i-d*m*o,r[5]=-m*o-h*p*i}else r[4]=r[5]=0;return r[0]=i,r[3]=o,r[1]=h*i,r[2]=d*o,u&&vd(r,r,u),r[4]+=n+c,r[5]+=a+f,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),pr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function iD(e,t){for(var r=0;r<pr.length;r++){var n=pr[r];e[n]=t[n]}}var Mp={};function wt(e,t){t=t||jn;var r=Mp[t];r||(r=Mp[t]=new Lo(500));var n=r.get(e);return n==null&&(n=ti.measureText(e,t).width,r.put(e,n)),n}function kp(e,t,r,n){var a=wt(e,t),i=_d(t),o=Hi(0,a,r),s=Ma(0,i,n),l=new ye(o,s,a,i);return l}function yd(e,t,r,n){var a=((e||"")+"").split(`
15
+ `),i=a.length;if(i===1)return kp(a[0],t,r,n);for(var o=new ye(0,0,0,0),s=0;s<a.length;s++){var l=kp(a[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function Hi(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Ma(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function _d(e){return wt("国",e)}function hn(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function ol(e,t,r){var n=t.position||"inside",a=t.distance!=null?t.distance:5,i=r.height,o=r.width,s=i/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=hn(n[0],r.width),u+=hn(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=a,u+=s,c="right",f="middle";break;case"right":l+=a+o,u+=s,f="middle";break;case"top":l+=o/2,u-=a,c="center",f="bottom";break;case"bottom":l+=o/2,u+=i+a,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=a,u+=s,f="middle";break;case"insideRight":l+=o-a,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=a,c="center";break;case"insideBottom":l+=o/2,u+=i-a,c="center",f="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=o-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=i-a,f="bottom";break;case"insideBottomRight":l+=o-a,u+=i-a,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var sc="__zr_normal__",lc=pr.concat(["ignore"]),oD=Lr(pr,function(e,t){return e[t]=!0,e},{ignore:!1}),va={},sD=new ye(0,0,0,0),wd=function(){function e(t){this.id=i_(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var a=this.transform;a||(a=this.transform=[1,0,0,1,0,0]),a[4]+=t,a[5]+=r,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(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,a=n.local,i=r.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=a?this:null;var u=!1;if(i.copyTransform(r),n.position!=null){var c=sD;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(va,n,c):ol(va,n,c),i.x=va.x,i.y=va.y,o=va.align,s=va.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=hn(f[0],c.width),h=hn(f[1],c.height)),u=!0,i.originX=-i.x+d+(a?0:c.x),i.originY=-i.y+h+(a?0:c.y)}}n.rotation!=null&&(i.rotation=n.rotation);var p=n.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var m=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,w=void 0,_=void 0;m&&this.canBeInsideText()?(y=n.insideFill,w=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(w==null||w==="auto")&&(w=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,w=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(w==null||w==="auto")&&(w=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||w!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=w,g.autoStroke=_,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=_t,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Kf:Zf},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Mr(r);n||(n=[255,255,255,1]);for(var a=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*a+(i?0:255)*(1-a);return n[3]=1,ru(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},G(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(K(t))for(var n=t,a=_e(n),i=0;i<a.length;i++){var o=a[i];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var a=this.animators[n],i=a.__fromStateTransition;if(!(a.getLoop()||i&&i!==sc)){var o=a.targetName,s=o?r[o]:r;a.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,lc)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var a=0;a<n.length;a++){var i=n[a];t[i]!=null&&!(i in r)&&(r[i]=this[i])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(sc,!1,t)},e.prototype.useState=function(t,r,n,a){var i=t===sc,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(ce(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!i&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!i){on("State "+t+" not exists.");return}i||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||a);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,r,n,c),d&&d.useState(t,r,n,c),i?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~_t),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var a=[],i=this.currentStates,o=t.length,s=o===i.length;if(s){for(var l=0;l<o;l++)if(t[l]!==i[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&a.push(c)}var f=a[o-1],d=!!(f&&f.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(a),p=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!r&&!this.__inHover&&p&&p.duration>0,p);var m=this._textContent,g=this._textGuide;m&&m.useStates(t,r,d),g&&g.useStates(t,r,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~_t)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=ce(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var a=this.currentStates.slice(),i=ce(a,t),o=ce(a,r)>=0;i>=0?o?a.splice(i,1):a[i]=r:n&&!o&&a.push(r),this.useStates(a)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,a=0;a<t.length;a++){var i=t[a];G(r,i),i.textConfig&&(n=n||{},G(n,i.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,a,i,o){var s=!(r&&a);r&&r.textConfig?(this.textConfig=G({},a?this.textConfig:n.textConfig),G(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<lc.length;c++){var f=lc[c],d=i&&oD[f];r&&r[f]!=null?d?(u=!0,l[f]=r[f]):this[f]=r[f]:s&&n[f]!=null&&(d?(u=!0,l[f]=n[f]):this[f]=n[f])}if(!i)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],p=h.targetName;h.getLoop()||h.__changeFinalValue(p?(r||n)[p]:r||n)}u&&this._transitionState(t,l,o)},e.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(t===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;if(r!==t){if(r&&r!==t&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.innerTransformable=new md,this._attachComponent(t),this._textContent=t,this.markRedraw()}},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),G(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=_t;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var a=t?this[t]:this;if(process.env.NODE_ENV!=="production"&&!a){on('Property "'+t+'" is not existed in element '+this.id);return}var i=new gd(a,r,n);return t&&(i.targetName=t),this.addAnimator(i,t),i},e.prototype.addAnimator=function(t,r){var n=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(r)}).done(function(){var i=a.animators,o=ce(i,t);o>=0&&i.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,a=n.length,i=[],o=0;o<a;o++){var s=n[o];!t||t===s.scope?s.stop(r):i.push(s)}return this.animators=i,this},e.prototype.animateTo=function(t,r,n){uc(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){uc(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,a){for(var i=uc(this,r,n,a),o=0;o<i.length;o++)i[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=_t;var r={};function n(i,o,s){r[i+o+s]||(console.warn("DEPRECATED: '"+i+"' has been deprecated. use '"+o+"', '"+s+"' instead"),r[i+o+s]=!0)}function a(i,o,s,l){Object.defineProperty(t,i,{get:function(){if(process.env.NODE_ENV!=="production"&&n(i,s,l),!this[o]){var c=this[o]=[];u(this,c)}return this[o]},set:function(c){process.env.NODE_ENV!=="production"&&n(i,s,l),this[s]=c[0],this[l]=c[1],this[o]=c,u(this,c)}});function u(c,f){Object.defineProperty(f,0,{get:function(){return c[s]},set:function(d){c[s]=d}}),Object.defineProperty(f,1,{get:function(){return c[l]},set:function(d){c[l]=d}})}}Object.defineProperty&&(a("position","_legacyPos","x","y"),a("scale","_legacyScale","scaleX","scaleY"),a("origin","_legacyOrigin","originX","originY"))}(),e}();Jt(wd,Qt);Jt(wd,md);function uc(e,t,r,n,a){r=r||{};var i=[];D_(e,"",e,t,r,n,i,a);var o=i.length,s=!1,l=r.done,u=r.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),i.length>0&&r.during&&i[0].during(function(p,m){r.during(m)});for(var d=0;d<i.length;d++){var h=i[d];c&&h.done(c),f&&h.aborted(f),r.force&&h.duration(r.duration),h.start(r.easing)}return i}function cc(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function lD(e){return st(e[0])}function uD(e,t,r){if(st(t[r]))if(st(e[r])||(e[r]=[]),lt(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),cc(e[r],t[r],n))}else{var a=t[r],i=e[r],o=a.length;if(lD(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?cc(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else cc(i,a,o);i.length=a.length}else e[r]=t[r]}function cD(e,t){return e===t||st(e)&&st(t)&&fD(e,t)}function fD(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function D_(e,t,r,n,a,i,o,s){for(var l=_e(n),u=a.duration,c=a.delay,f=a.additive,d=a.setToFinal,h=!K(i),p=e.animators,m=[],g=0;g<l.length;g++){var y=l[g],w=n[y];if(w!=null&&r[y]!=null&&(h||i[y]))if(K(w)&&!st(w)&&!eu(w)){if(t){s||(r[y]=w,e.updateDuringAnimation(t));continue}D_(e,y,r[y],w,a,i&&i[y],o,s)}else m.push(y);else s||(r[y]=w,e.updateDuringAnimation(t),m.push(y))}var _=m.length;if(!f&&_)for(var S=0;S<p.length;S++){var x=p[S];if(x.targetName===t){var C=x.stopTracks(m);if(C){var T=ce(p,x);p.splice(T,1)}}}if(a.force||(m=qe(m,function(A){return!cD(n[A],r[A])}),_=m.length),_>0||a.force&&!o.length){var b=void 0,D=void 0,N=void 0;if(s){D={},d&&(b={});for(var S=0;S<_;S++){var y=m[S];D[y]=r[y],d?b[y]=n[y]:r[y]=n[y]}}else if(d){N={};for(var S=0;S<_;S++){var y=m[S];N[y]=eo(r[y]),uD(r,n,y)}}var x=new gd(r,!1,!1,f?qe(p,function(M){return M.targetName===t}):null);x.targetName=t,a.scope&&(x.scope=a.scope),d&&b&&x.whenWithKeys(0,b,m),N&&x.whenWithKeys(0,N,m),x.whenWithKeys(u??500,s?D:n,m).delay(c||0),e.addAnimator(x,t),o.push(x)}}const A_=wd;var Ie=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===r)return n[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){if(r&&(r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),process.env.NODE_ENV!=="production"&&r.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var a=ce(this._children,r);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(r,n){var a=this._children,i=a[n];if(r&&r!==this&&r.parent!==this&&r!==i){a[n]=r,i.parent=null;var o=this.__zr;o&&i.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,a=this._children,i=ce(a,r);return i<0?this:(a.splice(i,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,a=0;a<r.length;a++){var i=r[a];n&&i.removeSelfFromZr(n),i.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var a=this._children,i=0;i<a.length;i++){var o=a[i];r.call(n,o,i)}return this},t.prototype.traverse=function(r,n){for(var a=0;a<this._children.length;a++){var i=this._children[a],o=r.call(n,i);i.isGroup&&!o&&i.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var a=this._children[n];a.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new ye(0,0,0,0),a=r||this._children,i=[],o=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(i);c?(ye.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(A_);Ie.prototype.type="group";/*!
16
16
  * ZRender, a high performance 2d drawing library.
17
17
  *
18
18
  * Copyright (c) 2013, Baidu Inc.
@@ -20,17 +20,17 @@ PERFORMANCE OF THIS SOFTWARE.
20
20
  *
21
21
  * LICENSE
22
22
  * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
23
- */var Ui={},M_={};function hD(e){delete M_[e]}function dD(e){if(!e)return!1;if(typeof e=="string")return il(e,1)<Xf;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,a=0;a<n;a++)r+=il(t[a].color,1);return r/=n,r<Xf}return!1}var vD=function(){function e(t,r,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var i=new EN,o=n.renderer||"canvas";if(Ui[o]||(o=_e(Ui)[0]),process.env.NODE_ENV!=="production"&&!Ui[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Ui[o](r,i,n,t),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!re.node&&!re.worker&&!l?new nD(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?re.touchEventsSupported:!!c,d=44,h;f&&(h=ne(n.pointerSize,d)),this.handler=new DN(i,s,u,s.root,h),this.animation=new XN({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=dD(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var r,n=La();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var a=La();r?(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(t){this._sleepAfterStill=t},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._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.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(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof Ie&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,hD(this.id))},e}();function Ep(e,t){var r=new vD(i_(),e,t);return M_[r.id]=r,r}function pD(e,t){Ui[e]=t}var Pp=1e-4,k_=20;function gD(e){return e.replace(/^\s+|\s+$/g,"")}function We(e,t,r,n){var a=t[0],i=t[1],o=r[0],s=r[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=a)return o;if(e>=i)return s}else{if(e>=a)return o;if(e<=i)return s}else{if(e===a)return o;if(e===i)return s}return(e-a)/l*u+o}function Ce(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return j(e)?gD(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Re(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),k_),e=(+e).toFixed(t),r?e:+e}function Wi(e){return e.sort(function(t,r){return t-r}),e}function hr(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return Jf(e)}function Jf(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,a=r>0?r:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function E_(e,t){var r=Math.log,n=Math.LN10,a=Math.floor(r(e[1]-e[0])/n),i=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function mD(e,t){var r=Lr(e,function(h,p){return h+(isNaN(p)?0:p)},0);if(r===0)return[];for(var n=Math.pow(10,t),a=q(e,function(h){return(isNaN(h)?0:h)/r*n*100}),i=n*100,o=q(a,function(h){return Math.floor(h)}),s=Lr(o,function(h,p){return h+p},0),l=q(a,function(h,p){return h-o[p]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=l.length;f<d;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return q(o,function(h){return h/n})}function yD(e,t){var r=Math.max(hr(e),hr(t)),n=e+t;return r>k_?n:Re(n,r)}function P_(e){var t=Math.PI*2;return(e%t+t)%t}function ll(e){return e>-Pp&&e<Pp}var _D=/^(?:(\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 Or(e){if(e instanceof Date)return e;if(j(e)){var t=_D.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function wD(e){return Math.pow(10,nu(e))}function nu(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function I_(e,t){var r=nu(e),n=Math.pow(10,r),a=e/n,i;return t?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,e=i*n,r>=-20?+e.toFixed(r<0?-r:0):e}function ul(e){var t=parseFloat(e);return t==e&&(t!==0||!j(e)||e.indexOf("x")<=0)?t:NaN}function L_(e){return!isNaN(ul(e))}function O_(){return Math.round(Math.random()*9)}function R_(e,t){return t===0?e:R_(t,e%t)}function Ip(e,t){return e==null?t:t==null?e:e*t/R_(e,t)}var bD="[ECharts] ",Lp={},SD=typeof console<"u"&&console.warn&&console.log;function au(e,t,r){if(SD){if(r){if(Lp[t])return;Lp[t]=!0}console[e](bD+t)}}function CD(e,t){au("log",e,t)}function Fe(e,t){au("warn",e,t)}function et(e,t){au("error",e,t)}function jt(e){process.env.NODE_ENV!=="production"&&au("warn","DEPRECATED: "+e,!0)}function ze(e,t,r){process.env.NODE_ENV!=="production"&&jt((r?"["+r+"]":"")+(e+" is deprecated, use "+t+" instead."))}function cl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r="";if(process.env.NODE_ENV!=="production"){var n=function(a){return a===void 0?"undefined":a===1/0?"Infinity":a===-1/0?"-Infinity":ja(a)?"NaN":a instanceof Date?"Date("+a.toISOString()+")":ie(a)?"function () { ... }":jT(a)?a+"":null};r=q(e,function(a){if(j(a))return a;var i=n(a);if(i!=null)return i;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(a,function(o,s){var l=n(s);return l??s})}catch{return"?"}else return"?"}).join(" ")}return r}function it(e){throw new Error(e)}function Op(e,t,r){return(t-e)*r+e}var B_="series\0",xD="\0_ec_\0";function Ge(e){return e instanceof Array?e:e==null?[]:[e]}function fl(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,a=r.length;n<a;n++){var i=r[n];!e.emphasis[t].hasOwnProperty(i)&&e[t].hasOwnProperty(i)&&(e.emphasis[t][i]=e[t][i])}}}var Rp=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Ro(e){return K(e)&&!U(e)&&!(e instanceof Date)?e.value:e}function TD(e){return K(e)&&!(e instanceof Array)}function ND(e,t,r){var n=r==="normalMerge",a=r==="replaceMerge",i=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=ae();k(t,function(l,u){if(!K(l)){t[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!Vp(l.id)&&Bp(l.id),l.name!=null&&!Vp(l.name)&&Bp(l.name))});var s=DD(e,o,r);return(n||a)&&AD(s,e,o,t),n&&MD(s,t),n||a?kD(s,t,a):i&&ED(s,t),PD(s),s}function DD(e,t,r){var n=[];if(r==="replaceAll")return n;for(var a=0;a<e.length;a++){var i=e[a];i&&i.id!=null&&t.set(i.id,a),n.push({existing:r==="replaceMerge"||Za(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function AD(e,t,r,n){k(n,function(a,i){if(!(!a||a.id==null)){var o=to(a.id),s=r.get(o);if(s!=null){var l=e[s];ee(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],n[i]=null}}})}function MD(e,t){k(t,function(r,n){if(!(!r||r.name==null))for(var a=0;a<e.length;a++){var i=e[a].existing;if(!e[a].newOption&&i&&(i.id==null||r.id==null)&&!Za(r)&&!Za(i)&&V_("name",i,r)){e[a].newOption=r,t[n]=null;return}}})}function kD(e,t,r){k(t,function(n){if(n){for(var a,i=0;(a=e[i])&&(a.newOption||Za(a.existing)||a.existing&&n.id!=null&&!V_("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),i++}})}function ED(e,t){k(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function PD(e){var t=ae();k(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),k(e,function(r){var n=r.newOption;ee(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),k(e,function(r,n){var a=r.existing,i=r.newOption,o=r.keyInfo;if(K(i)){if(o.name=i.name!=null?to(i.name):a?a.name:B_+n,a)o.id=to(a.id);else if(i.id!=null)o.id=to(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function V_(e,t,r){var n=vr(t[e],null),a=vr(r[e],null);return n!=null&&a!=null&&n===a}function to(e){if(process.env.NODE_ENV!=="production"&&e==null)throw new Error;return vr(e,"")}function vr(e,t){return e==null?t:j(e)?e:xe(e)||el(e)?e+"":t}function Bp(e){process.env.NODE_ENV!=="production"&&Fe("`"+e+"` is invalid id or name. Must be a string or number.")}function Vp(e){return el(e)||L_(e)}function bd(e){var t=e.name;return!!(t&&t.indexOf(B_))}function Za(e){return e&&e.id!=null&&to(e.id).indexOf(xD)===0}function ID(e,t,r){k(e,function(n){var a=n.newOption;K(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=LD(t,a,n.existing,r))})}function LD(e,t,r,n){var a=t.type?t.type:r?r.subType:n.determineSubType(e,t);return a}function Xn(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return U(t.dataIndex)?q(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return U(t.name)?q(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Ne(){var e="__ec_inner_"+OD++;return function(t){return t[e]||(t[e]={})}}var OD=O_();function fc(e,t,r){var n=Sd(t,r),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,c){var f=Bo(e,c,u,{useDefault:l===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function Sd(e,t){var r;if(j(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var a=ae(),i={},o=!1;return k(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&ce(t.includeMainTypes,c)<0)){o=o||!!c;var d=a.get(c)||a.set(c,{});d[f]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var dt={useDefault:!0,enableAll:!1,enableNone:!1},RD={useDefault:!1,enableAll:!0,enableNone:!0};function Bo(e,t,r,n){n=n||dt;var a=r.index,i=r.id,o=r.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return a==="none"||a===!1?(ee(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(ee(n.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),s.models=e.queryComponents({mainType:t,index:a,id:i,name:o}),s)}function $_(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function BD(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function VD(e){return e==="auto"?re.domSupported?"html":"richText":e||"html"}function $D(e,t,r,n,a){var i=t==null||t==="auto";if(n==null)return n;if(xe(n)){var o=Op(r||0,n,a);return Re(o,i?Math.max(hr(r||0),hr(n)):t)}else{if(j(n))return a<1?r:n;for(var s=[],l=r,u=n,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=e.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(a<1&&l?l:u)[f];else{var h=l&&l[f]?l[f]:0,p=u[f],o=Op(h,p,a);s[f]=Re(o,i?Math.max(hr(h),hr(p)):t)}}return s}}var FD=".",Cn="___EC__COMPONENT__CONTAINER___",F_="___EC__EXTENDED_CLASS___";function dr(e){var t={main:"",sub:""};if(e){var r=e.split(FD);t.main=r[0]||"",t.sub=r[1]||""}return t}function zD(e){ee(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function GD(e){return!!(e&&e[F_])}function Cd(e,t){e.$constructor=e,e.extend=function(r){process.env.NODE_ENV!=="production"&&k(t,function(i){r[i]||console.warn("Method `"+i+"` should be implemented"+(r.type?" in "+r.type:"")+".")});var n=this,a;return HD(n)?a=function(i){H(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(r.$constructor||n).apply(this,arguments)},WT(a,this)),G(a.prototype,r),a[F_]=!0,a.extend=this.extend,a.superCall=YD,a.superApply=qD,a.superClass=n,a}}function HD(e){return ie(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function z_(e,t){e.extend=t.extend}var UD=Math.round(Math.random()*10);function WD(e){var t=["__\0is_clz",UD++].join("_");e.prototype[t]=!0,process.env.NODE_ENV!=="production"&&ee(!e.isInstance,'The method "is" can not be defined.'),e.isInstance=function(r){return!!(r&&r[t])}}function YD(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function qD(e,t,r){return this.superClass.prototype[t].apply(e,r)}function iu(e){var t={};e.registerClass=function(n){var a=n.type||n.prototype.type;if(a){zD(a),n.prototype.type=a;var i=dr(a);if(!i.sub)process.env.NODE_ENV!=="production"&&t[i.main]&&console.warn(i.main+" exists."),t[i.main]=n;else if(i.sub!==Cn){var o=r(i);o[i.sub]=n}}return n},e.getClass=function(n,a,i){var o=t[n];if(o&&o[Cn]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var a=dr(n),i=[],o=t[a.main];return o&&o[Cn]?k(o,function(s,l){l!==Cn&&i.push(s)}):i.push(o),i},e.hasClass=function(n){var a=dr(n);return!!t[a.main]},e.getAllClassMainTypes=function(){var n=[];return k(t,function(a,i){n.push(i)}),n},e.hasSubTypes=function(n){var a=dr(n),i=t[a.main];return i&&i[Cn]};function r(n){var a=t[n.main];return(!a||!a[Cn])&&(a=t[n.main]={},a[Cn]=!0),a}}function go(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,a,i){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(a&&ce(a,l)>=0||i&&ce(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var jD=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],XD=go(jD),ZD=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return XD(this,t,r)},e}(),Qf=new Oo(50);function KD(e){if(typeof e=="string"){var t=Qf.get(e);return t&&t.image}else return e}function G_(e,t,r,n,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var i=Qf.get(e),o={hostEl:r,cb:n,cbPayload:a};return i?(t=i.image,!ou(t)&&i.pending.push(o)):(t=ti.loadImage(e,$p,$p),t.__zrImageSrc=e,Qf.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function $p(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function ou(e){return e&&e.width&&e.height}var hc=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function JD(e,t,r,n,a){if(!t)return"";var i=(e+"").split(`
23
+ */var Ui={},M_={};function hD(e){delete M_[e]}function dD(e){if(!e)return!1;if(typeof e=="string")return al(e,1)<Xf;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,a=0;a<n;a++)r+=al(t[a].color,1);return r/=n,r<Xf}return!1}var vD=function(){function e(t,r,n){var a=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var i=new EN,o=n.renderer||"canvas";if(Ui[o]||(o=_e(Ui)[0]),process.env.NODE_ENV!=="production"&&!Ui[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Ui[o](r,i,n,t),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!re.node&&!re.worker&&!l?new nD(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?re.touchEventsSupported:!!c,d=44,h;f&&(h=ne(n.pointerSize,d)),this.handler=new DN(i,s,u,s.root,h),this.animation=new XN({stage:{update:l?null:function(){return a._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=dD(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var r,n=La();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var a=La();r?(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(t){this._sleepAfterStill=t},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._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.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(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof Ie&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,hD(this.id))},e}();function Ep(e,t){var r=new vD(i_(),e,t);return M_[r.id]=r,r}function pD(e,t){Ui[e]=t}var Pp=1e-4,k_=20;function gD(e){return e.replace(/^\s+|\s+$/g,"")}function We(e,t,r,n){var a=t[0],i=t[1],o=r[0],s=r[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=a)return o;if(e>=i)return s}else{if(e>=a)return o;if(e<=i)return s}else{if(e===a)return o;if(e===i)return s}return(e-a)/l*u+o}function Ce(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return j(e)?gD(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Re(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),k_),e=(+e).toFixed(t),r?e:+e}function Wi(e){return e.sort(function(t,r){return t-r}),e}function hr(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return Jf(e)}function Jf(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,a=r>0?r:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function E_(e,t){var r=Math.log,n=Math.LN10,a=Math.floor(r(e[1]-e[0])/n),i=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function mD(e,t){var r=Lr(e,function(h,p){return h+(isNaN(p)?0:p)},0);if(r===0)return[];for(var n=Math.pow(10,t),a=q(e,function(h){return(isNaN(h)?0:h)/r*n*100}),i=n*100,o=q(a,function(h){return Math.floor(h)}),s=Lr(o,function(h,p){return h+p},0),l=q(a,function(h,p){return h-o[p]});s<i;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=l.length;f<d;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return q(o,function(h){return h/n})}function yD(e,t){var r=Math.max(hr(e),hr(t)),n=e+t;return r>k_?n:Re(n,r)}function P_(e){var t=Math.PI*2;return(e%t+t)%t}function sl(e){return e>-Pp&&e<Pp}var _D=/^(?:(\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 Or(e){if(e instanceof Date)return e;if(j(e)){var t=_D.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function wD(e){return Math.pow(10,nu(e))}function nu(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function I_(e,t){var r=nu(e),n=Math.pow(10,r),a=e/n,i;return t?a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10:a<1?i=1:a<2?i=2:a<3?i=3:a<5?i=5:i=10,e=i*n,r>=-20?+e.toFixed(r<0?-r:0):e}function ll(e){var t=parseFloat(e);return t==e&&(t!==0||!j(e)||e.indexOf("x")<=0)?t:NaN}function L_(e){return!isNaN(ll(e))}function O_(){return Math.round(Math.random()*9)}function R_(e,t){return t===0?e:R_(t,e%t)}function Ip(e,t){return e==null?t:t==null?e:e*t/R_(e,t)}var bD="[ECharts] ",Lp={},SD=typeof console<"u"&&console.warn&&console.log;function au(e,t,r){if(SD){if(r){if(Lp[t])return;Lp[t]=!0}console[e](bD+t)}}function CD(e,t){au("log",e,t)}function Fe(e,t){au("warn",e,t)}function et(e,t){au("error",e,t)}function jt(e){process.env.NODE_ENV!=="production"&&au("warn","DEPRECATED: "+e,!0)}function ze(e,t,r){process.env.NODE_ENV!=="production"&&jt((r?"["+r+"]":"")+(e+" is deprecated, use "+t+" instead."))}function ul(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r="";if(process.env.NODE_ENV!=="production"){var n=function(a){return a===void 0?"undefined":a===1/0?"Infinity":a===-1/0?"-Infinity":ja(a)?"NaN":a instanceof Date?"Date("+a.toISOString()+")":ie(a)?"function () { ... }":jT(a)?a+"":null};r=q(e,function(a){if(j(a))return a;var i=n(a);if(i!=null)return i;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(a,function(o,s){var l=n(s);return l??s})}catch{return"?"}else return"?"}).join(" ")}return r}function it(e){throw new Error(e)}function Op(e,t,r){return(t-e)*r+e}var B_="series\0",xD="\0_ec_\0";function Ge(e){return e instanceof Array?e:e==null?[]:[e]}function cl(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,a=r.length;n<a;n++){var i=r[n];!e.emphasis[t].hasOwnProperty(i)&&e[t].hasOwnProperty(i)&&(e.emphasis[t][i]=e[t][i])}}}var Rp=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Oo(e){return K(e)&&!U(e)&&!(e instanceof Date)?e.value:e}function TD(e){return K(e)&&!(e instanceof Array)}function ND(e,t,r){var n=r==="normalMerge",a=r==="replaceMerge",i=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=ae();k(t,function(l,u){if(!K(l)){t[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!Vp(l.id)&&Bp(l.id),l.name!=null&&!Vp(l.name)&&Bp(l.name))});var s=DD(e,o,r);return(n||a)&&AD(s,e,o,t),n&&MD(s,t),n||a?kD(s,t,a):i&&ED(s,t),PD(s),s}function DD(e,t,r){var n=[];if(r==="replaceAll")return n;for(var a=0;a<e.length;a++){var i=e[a];i&&i.id!=null&&t.set(i.id,a),n.push({existing:r==="replaceMerge"||Za(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function AD(e,t,r,n){k(n,function(a,i){if(!(!a||a.id==null)){var o=to(a.id),s=r.get(o);if(s!=null){var l=e[s];ee(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],n[i]=null}}})}function MD(e,t){k(t,function(r,n){if(!(!r||r.name==null))for(var a=0;a<e.length;a++){var i=e[a].existing;if(!e[a].newOption&&i&&(i.id==null||r.id==null)&&!Za(r)&&!Za(i)&&V_("name",i,r)){e[a].newOption=r,t[n]=null;return}}})}function kD(e,t,r){k(t,function(n){if(n){for(var a,i=0;(a=e[i])&&(a.newOption||Za(a.existing)||a.existing&&n.id!=null&&!V_("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),i++}})}function ED(e,t){k(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function PD(e){var t=ae();k(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),k(e,function(r){var n=r.newOption;ee(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),k(e,function(r,n){var a=r.existing,i=r.newOption,o=r.keyInfo;if(K(i)){if(o.name=i.name!=null?to(i.name):a?a.name:B_+n,a)o.id=to(a.id);else if(i.id!=null)o.id=to(i.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function V_(e,t,r){var n=vr(t[e],null),a=vr(r[e],null);return n!=null&&a!=null&&n===a}function to(e){if(process.env.NODE_ENV!=="production"&&e==null)throw new Error;return vr(e,"")}function vr(e,t){return e==null?t:j(e)?e:xe(e)||Qs(e)?e+"":t}function Bp(e){process.env.NODE_ENV!=="production"&&Fe("`"+e+"` is invalid id or name. Must be a string or number.")}function Vp(e){return Qs(e)||L_(e)}function bd(e){var t=e.name;return!!(t&&t.indexOf(B_))}function Za(e){return e&&e.id!=null&&to(e.id).indexOf(xD)===0}function ID(e,t,r){k(e,function(n){var a=n.newOption;K(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=LD(t,a,n.existing,r))})}function LD(e,t,r,n){var a=t.type?t.type:r?r.subType:n.determineSubType(e,t);return a}function Xn(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return U(t.dataIndex)?q(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return U(t.name)?q(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Ne(){var e="__ec_inner_"+OD++;return function(t){return t[e]||(t[e]={})}}var OD=O_();function fc(e,t,r){var n=Sd(t,r),a=n.mainTypeSpecified,i=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!a&&l&&i.set(l,{}),i.each(function(u,c){var f=Ro(e,c,u,{useDefault:l===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function Sd(e,t){var r;if(j(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var a=ae(),i={},o=!1;return k(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){i[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&ce(t.includeMainTypes,c)<0)){o=o||!!c;var d=a.get(c)||a.set(c,{});d[f]=s}}),{mainTypeSpecified:o,queryOptionMap:a,others:i}}var dt={useDefault:!0,enableAll:!1,enableNone:!1},RD={useDefault:!1,enableAll:!0,enableNone:!0};function Ro(e,t,r,n){n=n||dt;var a=r.index,i=r.id,o=r.name,s={models:null,specified:a!=null||i!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return a==="none"||a===!1?(ee(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(ee(n.enableAll,'`"all"` is not a valid value on index option.'),a=i=o=null),s.models=e.queryComponents({mainType:t,index:a,id:i,name:o}),s)}function $_(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function BD(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function VD(e){return e==="auto"?re.domSupported?"html":"richText":e||"html"}function $D(e,t,r,n,a){var i=t==null||t==="auto";if(n==null)return n;if(xe(n)){var o=Op(r||0,n,a);return Re(o,i?Math.max(hr(r||0),hr(n)):t)}else{if(j(n))return a<1?r:n;for(var s=[],l=r,u=n,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=e.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(a<1&&l?l:u)[f];else{var h=l&&l[f]?l[f]:0,p=u[f],o=Op(h,p,a);s[f]=Re(o,i?Math.max(hr(h),hr(p)):t)}}return s}}var FD=".",Cn="___EC__COMPONENT__CONTAINER___",F_="___EC__EXTENDED_CLASS___";function dr(e){var t={main:"",sub:""};if(e){var r=e.split(FD);t.main=r[0]||"",t.sub=r[1]||""}return t}function zD(e){ee(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function GD(e){return!!(e&&e[F_])}function Cd(e,t){e.$constructor=e,e.extend=function(r){process.env.NODE_ENV!=="production"&&k(t,function(i){r[i]||console.warn("Method `"+i+"` should be implemented"+(r.type?" in "+r.type:"")+".")});var n=this,a;return HD(n)?a=function(i){H(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(r.$constructor||n).apply(this,arguments)},WT(a,this)),G(a.prototype,r),a[F_]=!0,a.extend=this.extend,a.superCall=YD,a.superApply=qD,a.superClass=n,a}}function HD(e){return ie(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function z_(e,t){e.extend=t.extend}var UD=Math.round(Math.random()*10);function WD(e){var t=["__\0is_clz",UD++].join("_");e.prototype[t]=!0,process.env.NODE_ENV!=="production"&&ee(!e.isInstance,'The method "is" can not be defined.'),e.isInstance=function(r){return!!(r&&r[t])}}function YD(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function qD(e,t,r){return this.superClass.prototype[t].apply(e,r)}function iu(e){var t={};e.registerClass=function(n){var a=n.type||n.prototype.type;if(a){zD(a),n.prototype.type=a;var i=dr(a);if(!i.sub)process.env.NODE_ENV!=="production"&&t[i.main]&&console.warn(i.main+" exists."),t[i.main]=n;else if(i.sub!==Cn){var o=r(i);o[i.sub]=n}}return n},e.getClass=function(n,a,i){var o=t[n];if(o&&o[Cn]&&(o=a?o[a]:null),i&&!o)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var a=dr(n),i=[],o=t[a.main];return o&&o[Cn]?k(o,function(s,l){l!==Cn&&i.push(s)}):i.push(o),i},e.hasClass=function(n){var a=dr(n);return!!t[a.main]},e.getAllClassMainTypes=function(){var n=[];return k(t,function(a,i){n.push(i)}),n},e.hasSubTypes=function(n){var a=dr(n),i=t[a.main];return i&&i[Cn]};function r(n){var a=t[n.main];return(!a||!a[Cn])&&(a=t[n.main]={},a[Cn]=!0),a}}function po(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,a,i){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(a&&ce(a,l)>=0||i&&ce(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var jD=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],XD=po(jD),ZD=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return XD(this,t,r)},e}(),Qf=new Lo(50);function KD(e){if(typeof e=="string"){var t=Qf.get(e);return t&&t.image}else return e}function G_(e,t,r,n,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var i=Qf.get(e),o={hostEl:r,cb:n,cbPayload:a};return i?(t=i.image,!ou(t)&&i.pending.push(o)):(t=ti.loadImage(e,$p,$p),t.__zrImageSrc=e,Qf.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function $p(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function ou(e){return e&&e.width&&e.height}var hc=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function JD(e,t,r,n,a){if(!t)return"";var i=(e+"").split(`
24
24
  `);a=H_(t,r,n,a);for(var o=0,s=i.length;o<s;o++)i[o]=U_(i[o],a);return i.join(`
25
25
  `)}function H_(e,t,r,n){n=n||{};var a=G({},n);a.font=t,r=ne(r,"..."),a.maxIterations=ne(n.maxIterations,2);var i=a.minChar=ne(n.minChar,0);a.cnCharWidth=wt("国",t);var o=a.ascCharWidth=wt("a",t);a.placeholder=ne(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<i&&s>=o;l++)s-=o;var u=wt(r,t);return u>s&&(r="",u=0),s=e-u,a.ellipsis=r,a.ellipsisWidth=u,a.contentWidth=s,a.containerWidth=e,a}function U_(e,t){var r=t.containerWidth,n=t.font,a=t.contentWidth;if(!r)return"";var i=wt(e,n);if(i<=r)return e;for(var o=0;;o++){if(i<=a||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?QD(e,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(e.length*a/i):0;e=e.substr(0,s),i=wt(e,n)}return e===""&&(e=t.placeholder),e}function QD(e,t,r,n){for(var a=0,i=0,o=e.length;i<o&&a<t;i++){var s=e.charCodeAt(i);a+=0<=s&&s<=127?r:n}return i}function eA(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,a=t.font,i=r==="truncate",o=_d(a),s=ne(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=t.width,f;c!=null&&(r==="break"||r==="breakAll")?f=e?W_(e,t.font,c,r==="breakAll",0).lines:[]:f=e?e.split(`
26
26
  `):[];var d=f.length*s,h=ne(t.height,d);if(d>h&&u){var p=Math.floor(h/s);f=f.slice(0,p)}if(e&&i&&c!=null)for(var m=H_(c,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<f.length;g++)f[g]=U_(f[g],m);for(var y=h,w=0,g=0;g<f.length;g++)w=Math.max(wt(f[g],a),w);c==null&&(c=w);var _=w;return n&&(y+=n[0]+n[2],_+=n[1]+n[3],c+=n[1]+n[3]),l&&(_=c),{lines:f,height:h,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:w,contentHeight:d,width:c}}var tA=function(){function e(){}return e}(),Fp=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),rA=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function nA(e,t){var r=new rA;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,a=t.height,i=t.overflow,o=(i==="break"||i==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:i==="breakAll"}:null,s=hc.lastIndex=0,l;(l=hc.exec(e))!=null;){var u=l.index;u>s&&dc(r,e.substring(s,u),t,o),dc(r,l[2],t,o,l[1]),s=hc.lastIndex}s<e.length&&dc(r,e.substring(s,e.length),t,o);var c=[],f=0,d=0,h=t.padding,p=i==="truncate",m=t.lineOverflow==="truncate";function g(R,V,z){R.width=V,R.lineHeight=z,f+=z,d=Math.max(d,V)}e:for(var y=0;y<r.lines.length;y++){for(var w=r.lines[y],_=0,S=0,x=0;x<w.tokens.length;x++){var C=w.tokens[x],T=C.styleName&&t.rich[C.styleName]||{},b=C.textPadding=T.padding,D=b?b[1]+b[3]:0,N=C.font=T.font||t.font;C.contentHeight=_d(N);var A=ne(T.height,C.contentHeight);if(C.innerHeight=A,b&&(A+=b[0]+b[2]),C.height=A,C.lineHeight=sn(T.lineHeight,t.lineHeight,A),C.align=T&&T.align||t.align,C.verticalAlign=T&&T.verticalAlign||"middle",m&&a!=null&&f+C.lineHeight>a){x>0?(w.tokens=w.tokens.slice(0,x),g(w,S,_),r.lines=r.lines.slice(0,y+1)):r.lines=r.lines.slice(0,y);break e}var M=T.width,I=M==null||M==="auto";if(typeof M=="string"&&M.charAt(M.length-1)==="%")C.percentWidth=M,c.push(C),C.contentWidth=wt(C.text,N);else{if(I){var P=T.backgroundColor,L=P&&P.image;L&&(L=KD(L),ou(L)&&(C.width=Math.max(C.width,L.width*A/L.height)))}var E=p&&n!=null?n-S:null;E!=null&&E<C.width?!I||E<D?(C.text="",C.width=C.contentWidth=0):(C.text=JD(C.text,E-D,N,t.ellipsis,{minChar:t.truncateMinChar}),C.width=C.contentWidth=wt(C.text,N)):C.contentWidth=wt(C.text,N)}C.width+=D,S+=C.width,T&&(_=Math.max(_,C.lineHeight))}g(w,S,_)}r.outerWidth=r.width=ne(n,d),r.outerHeight=r.height=ne(a,f),r.contentHeight=f,r.contentWidth=d,h&&(r.outerWidth+=h[1]+h[3],r.outerHeight+=h[0]+h[2]);for(var y=0;y<c.length;y++){var C=c[y],B=C.percentWidth;C.width=parseInt(B,10)/100*r.width}return r}function dc(e,t,r,n,a){var i=t==="",o=a&&r.rich[a]||{},s=e.lines,l=o.font||r.font,u=!1,c,f;if(n){var d=o.padding,h=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var p=hn(o.width,n.width)+h;s.length>0&&p+n.accumWidth>n.width&&(c=t.split(`
27
27
  `),u=!0),n.accumWidth=p}else{var m=W_(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=m.accumWidth+h,f=m.linesWidths,c=m.lines}}else c=t.split(`
28
28
  `);for(var g=0;g<c.length;g++){var y=c[g],w=new tA;if(w.styleName=a,w.text=y,w.isLineHolder=!y&&!i,typeof o.width=="number"?w.width=o.width:w.width=f?f[g]:wt(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new Fp)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=w:(y||!S||i)&&_.push(w)}else s.push(new Fp([w]))}}function aA(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var iA=Lr(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function oA(e){return aA(e)?!!iA[e]:!0}function W_(e,t,r,n,a){for(var i=[],o=[],s="",l="",u=0,c=0,f=0;f<e.length;f++){var d=e.charAt(f);if(d===`
29
- `){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var h=wt(d,t),p=n?!1:!oA(d);if(i.length?c+h>r:a+c+h>r){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=d,c=h)):p?(i.push(l),o.push(u),l=d,u=h):(i.push(d),o.push(h));continue}c+=h,p?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!i.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var eh="__zr_style_"+Math.round(Math.random()*10),Un={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},su={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Un[eh]=!0;var zp=["z","z2","invisible"],sA=["invisible"],lA=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=_e(r),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(r[i]):e.prototype.attrKV.call(this,i,r[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&uA(this,r,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new ye(0,0,0,0)),n?ye.applyTransform(r,a,n):r.copy(a),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new ye(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:G(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=zi,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&zi)},t.prototype.styleUpdated=function(){this.__dirty&=~zi},t.prototype.createStyle=function(r){return tu(Un,r)},t.prototype.useStyle=function(r){r[eh]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[eh]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,zp)},t.prototype._applyStateObj=function(r,n,a,i,o,s){e.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.style?o?i?u=n.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,n.style)):l&&(u=a.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=_e(c),d=0;d<f.length;d++){var h=f[d];h in u&&(u[h]=u[h],this.style[h]=c[h])}for(var p=_e(u),d=0;d<p.length;d++){var h=p[d];this.style[h]=this.style[h]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var m=this.__inHover?sA:zp,d=0;d<m.length;d++){var h=m[d];n&&n[h]!=null?this[h]=n[h]:l&&a[h]!=null&&(this[h]=a[h])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},t.prototype._mergeStyle=function(r,n){return G(r,n),r},t.prototype.getAnimationStyleProps=function(){return su},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=_t|zi}(),t}(A_),vc=new ye(0,0,0,0),pc=new ye(0,0,0,0);function uA(e,t,r){return vc.copy(e.getBoundingRect()),e.transform&&vc.applyTransform(e.transform),pc.width=t,pc.height=r,!vc.intersect(pc)}const ra=lA;var Lt=Math.min,Ot=Math.max,gc=Math.sin,mc=Math.cos,xn=Math.PI*2,rs=ni(),ns=ni(),as=ni();function Gp(e,t,r,n,a,i){a[0]=Lt(e,r),a[1]=Lt(t,n),i[0]=Ot(e,r),i[1]=Ot(t,n)}var Hp=[],Up=[];function cA(e,t,r,n,a,i,o,s,l,u){var c=__,f=$e,d=c(e,r,a,o,Hp);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var p=f(e,r,a,o,Hp[h]);l[0]=Lt(p,l[0]),u[0]=Ot(p,u[0])}d=c(t,n,i,s,Up);for(var h=0;h<d;h++){var m=f(t,n,i,s,Up[h]);l[1]=Lt(m,l[1]),u[1]=Ot(m,u[1])}l[0]=Lt(e,l[0]),u[0]=Ot(e,u[0]),l[0]=Lt(o,l[0]),u[0]=Ot(o,u[0]),l[1]=Lt(t,l[1]),u[1]=Ot(t,u[1]),l[1]=Lt(s,l[1]),u[1]=Ot(s,u[1])}function fA(e,t,r,n,a,i,o,s){var l=w_,u=Ke,c=Ot(Lt(l(e,r,a),1),0),f=Ot(Lt(l(t,n,i),1),0),d=u(e,r,a,c),h=u(t,n,i,f);o[0]=Lt(e,a,d),o[1]=Lt(t,i,h),s[0]=Ot(e,a,d),s[1]=Ot(t,i,h)}function hA(e,t,r,n,a,i,o,s,l){var u=Pa,c=Ia,f=Math.abs(a-i);if(f%xn<1e-4&&f>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(rs[0]=mc(a)*r+e,rs[1]=gc(a)*n+t,ns[0]=mc(i)*r+e,ns[1]=gc(i)*n+t,u(s,rs,ns),c(l,rs,ns),a=a%xn,a<0&&(a=a+xn),i=i%xn,i<0&&(i=i+xn),a>i&&!o?i+=xn:a<i&&o&&(a+=xn),o){var d=i;i=a,a=d}for(var h=0;h<i;h+=Math.PI/2)h>a&&(as[0]=mc(h)*r+e,as[1]=gc(h)*n+t,u(s,as,s),c(l,as,l))}var ge={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Tn=[],Nn=[],nr=[],zr=[],ar=[],ir=[],yc=Math.min,_c=Math.max,Dn=Math.cos,An=Math.sin,br=Math.abs,th=Math.PI,Zr=th*2,wc=typeof Float32Array<"u",Ci=[];function bc(e){var t=Math.round(e/th*1e8)/1e8;return t%2*th}function Y_(e,t){var r=bc(e[0]);r<0&&(r+=Zr);var n=r-e[0],a=e[1];a+=n,!t&&a-r>=Zr?a=r+Zr:t&&r-a>=Zr?a=r-Zr:!t&&r>a?a=r+(Zr-bc(r-a)):t&&r<a&&(a=r-(Zr-bc(a-r))),e[0]=r,e[1]=a}var Zn=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=br(n/ol/t)||0,this._uy=br(n/ol/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},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(t,r){return this._drawPendingPt(),this.addData(ge.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=br(t-this._xi),a=br(r-this._yi),i=n>this._ux||a>this._uy;if(this.addData(ge.L,t,r),this._ctx&&i&&this._ctx.lineTo(t,r),i)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,a,i,o){return this._drawPendingPt(),this.addData(ge.C,t,r,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,a,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,a){return this._drawPendingPt(),this.addData(ge.Q,t,r,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,a),this._xi=n,this._yi=a,this},e.prototype.arc=function(t,r,n,a,i,o){this._drawPendingPt(),Ci[0]=a,Ci[1]=i,Y_(Ci,o),a=Ci[0],i=Ci[1];var s=i-a;return this.addData(ge.A,t,r,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,a,i,o),this._xi=Dn(i)*n+t,this._yi=An(i)*n+r,this},e.prototype.arcTo=function(t,r,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,a,i),this},e.prototype.rect=function(t,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,a),this.addData(ge.R,t,r,n,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(ge.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&wc&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,a=this._len,i=0;i<r;i++)n+=t[i].len();wc&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+n));for(var i=0;i<r;i++)for(var o=t[i].data,s=0;s<o.length;s++)this.data[a++]=o[s];this._len=a},e.prototype.addData=function(t,r,n,a,i,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},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 t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,wc&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){nr[0]=nr[1]=ar[0]=ar[1]=Number.MAX_VALUE,zr[0]=zr[1]=ir[0]=ir[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],a=r,i=n),s){case ge.M:r=a=t[o++],n=i=t[o++],ar[0]=a,ar[1]=i,ir[0]=a,ir[1]=i;break;case ge.L:Gp(r,n,t[o],t[o+1],ar,ir),r=t[o++],n=t[o++];break;case ge.C:cA(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],ar,ir),r=t[o++],n=t[o++];break;case ge.Q:fA(r,n,t[o++],t[o++],t[o],t[o+1],ar,ir),r=t[o++],n=t[o++];break;case ge.A:var u=t[o++],c=t[o++],f=t[o++],d=t[o++],h=t[o++],p=t[o++]+h;o+=1;var m=!t[o++];l&&(a=Dn(h)*f+u,i=An(h)*d+c),hA(u,c,f,d,h,p,m,ar,ir),r=Dn(p)*f+u,n=An(p)*d+c;break;case ge.R:a=r=t[o++],i=n=t[o++];var g=t[o++],y=t[o++];Gp(a,i,a+g,i+y,ar,ir);break;case ge.Z:r=a,n=i;break}Pa(nr,nr,ar),Ia(zr,zr,ir)}return o===0&&(nr[0]=nr[1]=zr[0]=zr[1]=0),new ye(nr[0],nr[1],zr[0]-nr[0],zr[1]-nr[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<r;){var h=t[d++],p=d===1;p&&(i=t[d],o=t[d+1],s=i,l=o);var m=-1;switch(h){case ge.M:i=s=t[d++],o=l=t[d++];break;case ge.L:{var g=t[d++],y=t[d++],w=g-i,_=y-o;(br(w)>n||br(_)>a||d===r-1)&&(m=Math.sqrt(w*w+_*_),i=g,o=y);break}case ge.C:{var S=t[d++],x=t[d++],g=t[d++],y=t[d++],C=t[d++],T=t[d++];m=IN(i,o,S,x,g,y,C,T,10),i=C,o=T;break}case ge.Q:{var S=t[d++],x=t[d++],g=t[d++],y=t[d++];m=RN(i,o,S,x,g,y,10),i=g,o=y;break}case ge.A:var b=t[d++],D=t[d++],N=t[d++],A=t[d++],M=t[d++],I=t[d++],P=I+M;d+=1,p&&(s=Dn(M)*N+b,l=An(M)*A+D),m=_c(N,A)*yc(Zr,Math.abs(I)),i=Dn(P)*N+b,o=An(P)*A+D;break;case ge.R:{s=i=t[d++],l=o=t[d++];var L=t[d++],E=t[d++];m=L*2+E*2;break}case ge.Z:{var w=s-i,_=l-o;m=Math.sqrt(w*w+_*_),i=s,o=l;break}}m>=0&&(u[f++]=m,c+=m)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,f,d,h=r<1,p,m,g=0,y=0,w,_=0,S,x;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,w=r*m,!w)))e:for(var C=0;C<o;){var T=n[C++],b=C===1;switch(b&&(u=n[C],c=n[C+1],s=u,l=c),T!==ge.L&&_>0&&(t.lineTo(S,x),_=0),T){case ge.M:s=u=n[C++],l=c=n[C++],t.moveTo(u,c);break;case ge.L:{f=n[C++],d=n[C++];var D=br(f-u),N=br(d-c);if(D>a||N>i){if(h){var A=p[y++];if(g+A>w){var M=(w-g)/A;t.lineTo(u*(1-M)+f*M,c*(1-M)+d*M);break e}g+=A}t.lineTo(f,d),u=f,c=d,_=0}else{var I=D*D+N*N;I>_&&(S=f,x=d,_=I)}break}case ge.C:{var P=n[C++],L=n[C++],E=n[C++],B=n[C++],R=n[C++],V=n[C++];if(h){var A=p[y++];if(g+A>w){var M=(w-g)/A;nl(u,P,E,R,M,Tn),nl(c,L,B,V,M,Nn),t.bezierCurveTo(Tn[1],Nn[1],Tn[2],Nn[2],Tn[3],Nn[3]);break e}g+=A}t.bezierCurveTo(P,L,E,B,R,V),u=R,c=V;break}case ge.Q:{var P=n[C++],L=n[C++],E=n[C++],B=n[C++];if(h){var A=p[y++];if(g+A>w){var M=(w-g)/A;al(u,P,E,M,Tn),al(c,L,B,M,Nn),t.quadraticCurveTo(Tn[1],Nn[1],Tn[2],Nn[2]);break e}g+=A}t.quadraticCurveTo(P,L,E,B),u=E,c=B;break}case ge.A:var z=n[C++],Y=n[C++],Z=n[C++],F=n[C++],J=n[C++],Te=n[C++],fe=n[C++],Ve=!n[C++],je=Z>F?Z:F,Be=br(Z-F)>.001,Me=J+Te,te=!1;if(h){var A=p[y++];g+A>w&&(Me=J+Te*(w-g)/A,te=!0),g+=A}if(Be&&t.ellipse?t.ellipse(z,Y,Z,F,fe,J,Me,Ve):t.arc(z,Y,je,J,Me,Ve),te)break e;b&&(s=Dn(J)*Z+z,l=An(J)*F+Y),u=Dn(Me)*Z+z,c=An(Me)*F+Y;break;case ge.R:s=u=n[C],l=c=n[C+1],f=n[C++],d=n[C++];var le=n[C++],gt=n[C++];if(h){var A=p[y++];if(g+A>w){var Le=w-g;t.moveTo(f,d),t.lineTo(f+yc(Le,le),d),Le-=le,Le>0&&t.lineTo(f+le,d+yc(Le,gt)),Le-=gt,Le>0&&t.lineTo(f+_c(le-Le,0),d+gt),Le-=le,Le>0&&t.lineTo(f,d+_c(gt-Le,0));break e}g+=A}t.rect(f,d,le,gt);break;case ge.Z:if(h){var A=p[y++];if(g+A>w){var M=(w-g)/A;t.lineTo(u*(1-M)+s*M,c*(1-M)+l*M);break e}g+=A}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=ge,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function pa(e,t,r,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||i>e+s&&i>r+s||i<e-s&&i<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(i-e)<=s/2;var c=l*i-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function dA(e,t,r,n,a,i,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>t+f&&c>n+f&&c>i+f&&c>s+f||c<t-f&&c<n-f&&c<i-f&&c<s-f||u>e+f&&u>r+f&&u>a+f&&u>o+f||u<e-f&&u<r-f&&u<a-f&&u<o-f)return!1;var d=PN(e,t,r,n,a,i,o,s,u,c,null);return d<=f/2}function vA(e,t,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>i+u||l<t-u&&l<n-u&&l<i-u||s>e+u&&s>r+u&&s>a+u||s<e-u&&s<r-u&&s<a-u)return!1;var c=ON(e,t,r,n,a,i,s,l,null);return c<=u/2}var Wp=Math.PI*2;function is(e){return e%=Wp,e<0&&(e+=Wp),e}var xi=Math.PI*2;function pA(e,t,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>r||c+u<r)return!1;if(Math.abs(n-a)%xi<1e-4)return!0;if(i){var f=n;n=is(a),a=is(f)}else n=is(n),a=is(a);n>a&&(a+=xi);var d=Math.atan2(l,s);return d<0&&(d+=xi),d>=n&&d<=a||d+xi>=n&&d+xi<=a}function Mn(e,t,r,n,a,i){if(i>t&&i>n||i<t&&i<n||n===t)return 0;var o=(i-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===a?1/0:l>a?s:0}var Gr=Zn.CMD,kn=Math.PI*2,gA=1e-4;function mA(e,t){return Math.abs(e-t)<gA}var nt=[-1,-1,-1],kt=[-1,-1];function yA(){var e=kt[0];kt[0]=kt[1],kt[1]=e}function _A(e,t,r,n,a,i,o,s,l,u){if(u>t&&u>n&&u>i&&u>s||u<t&&u<n&&u<i&&u<s)return 0;var c=rl(t,n,i,s,u,nt);if(c===0)return 0;for(var f=0,d=-1,h=void 0,p=void 0,m=0;m<c;m++){var g=nt[m],y=g===0||g===1?.5:1,w=$e(e,r,a,o,g);w<l||(d<0&&(d=__(t,n,i,s,kt),kt[1]<kt[0]&&d>1&&yA(),h=$e(t,n,i,s,kt[0]),d>1&&(p=$e(t,n,i,s,kt[1]))),d===2?g<kt[0]?f+=h<t?y:-y:g<kt[1]?f+=p<h?y:-y:f+=s<p?y:-y:g<kt[0]?f+=h<t?y:-y:f+=s<h?y:-y)}return f}function wA(e,t,r,n,a,i,o,s){if(s>t&&s>n&&s>i||s<t&&s<n&&s<i)return 0;var l=LN(t,n,i,s,nt);if(l===0)return 0;var u=w_(t,n,i);if(u>=0&&u<=1){for(var c=0,f=Ke(t,n,i,u),d=0;d<l;d++){var h=nt[d]===0||nt[d]===1?.5:1,p=Ke(e,r,a,nt[d]);p<o||(nt[d]<u?c+=f<t?h:-h:c+=i<f?h:-h)}return c}else{var h=nt[0]===0||nt[0]===1?.5:1,p=Ke(e,r,a,nt[0]);return p<o?0:i<t?h:-h}}function bA(e,t,r,n,a,i,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);nt[0]=-l,nt[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=kn-1e-4){n=0,a=kn;var c=i?1:-1;return o>=nt[0]+e&&o<=nt[1]+e?c:0}if(n>a){var f=n;n=a,a=f}n<0&&(n+=kn,a+=kn);for(var d=0,h=0;h<2;h++){var p=nt[h];if(p+e>o){var m=Math.atan2(s,p),c=i?1:-1;m<0&&(m=kn+m),(m>=n&&m<=a||m+kn>=n&&m+kn<=a)&&(m>Math.PI/2&&m<Math.PI*1.5&&(c=-c),d+=c)}}return d}function q_(e,t,r,n,a){for(var i=e.data,o=e.len(),s=0,l=0,u=0,c=0,f=0,d,h,p=0;p<o;){var m=i[p++],g=p===1;switch(m===Gr.M&&p>1&&(r||(s+=Mn(l,u,c,f,n,a))),g&&(l=i[p],u=i[p+1],c=l,f=u),m){case Gr.M:c=i[p++],f=i[p++],l=c,u=f;break;case Gr.L:if(r){if(pa(l,u,i[p],i[p+1],t,n,a))return!0}else s+=Mn(l,u,i[p],i[p+1],n,a)||0;l=i[p++],u=i[p++];break;case Gr.C:if(r){if(dA(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],t,n,a))return!0}else s+=_A(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],n,a)||0;l=i[p++],u=i[p++];break;case Gr.Q:if(r){if(vA(l,u,i[p++],i[p++],i[p],i[p+1],t,n,a))return!0}else s+=wA(l,u,i[p++],i[p++],i[p],i[p+1],n,a)||0;l=i[p++],u=i[p++];break;case Gr.A:var y=i[p++],w=i[p++],_=i[p++],S=i[p++],x=i[p++],C=i[p++];p+=1;var T=!!(1-i[p++]);d=Math.cos(x)*_+y,h=Math.sin(x)*S+w,g?(c=d,f=h):s+=Mn(l,u,d,h,n,a);var b=(n-y)*S/_+y;if(r){if(pA(y,w,S,x,x+C,T,t,b,a))return!0}else s+=bA(y,w,S,x,x+C,T,b,a);l=Math.cos(x+C)*_+y,u=Math.sin(x+C)*S+w;break;case Gr.R:c=l=i[p++],f=u=i[p++];var D=i[p++],N=i[p++];if(d=c+D,h=f+N,r){if(pa(c,f,d,f,t,n,a)||pa(d,f,d,h,t,n,a)||pa(d,h,c,h,t,n,a)||pa(c,h,c,f,t,n,a))return!0}else s+=Mn(d,f,d,h,n,a),s+=Mn(c,h,c,f,n,a);break;case Gr.Z:if(r){if(pa(l,u,c,f,t,n,a))return!0}else s+=Mn(l,u,c,f,n,a);l=c,u=f;break}}return!r&&!mA(u,f)&&(s+=Mn(l,u,c,f,n,a)||0),s!==0}function SA(e,t,r){return q_(e,0,!1,t,r)}function CA(e,t,r,n){return q_(e,t,!0,r,n)}var j_=he({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Un),xA={style:he({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},su.style)},Sc=pr.concat(["invisible","culling","z","z2","zlevel","parent"]),TA=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){r.buildPath(l,r.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<Sc.length;++s)a[Sc[s]]=this[Sc[s]];a.__dirty|=_t}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=_e(r);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=r[o];o==="style"?this.style?G(this.style,s):this.useStyle(s):o==="shape"?G(this.shape,s):e.prototype.attrKV.call(this,o,s)}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 r=this.style.fill;if(r!=="none"){if(j(r)){var n=il(r,0);return n>.5?Zf:n>.2?aD:Kf}else if(r)return Kf}return Zf},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(j(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=il(r,0)<Xf;if(i===o)return n}},t.prototype.buildPath=function(r,n,a){},t.prototype.pathUpdated=function(){this.__dirty&=~Aa},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new Zn(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,a=!r;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Aa)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||a){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect(),o=this.style;if(r=a[0],n=a[1],i.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),CA(s,l/u,r,n)))return!0}if(this.hasFill())return SA(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Aa,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=n:G(a,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Aa)},t.prototype.createStyle=function(r){return tu(j_,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=G({},this.shape))},t.prototype._applyStateObj=function(r,n,a,i,o,s){e.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=G({},a.shape),G(u,n.shape)):(u=G({},i?this.shape:a.shape),G(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=G({},this.shape);for(var c={},f=_e(u),d=0;d<f.length;d++){var h=f[d];typeof u[h]=="object"?this.shape[h]=u[h]:c[h]=u[h]}this._transitionState(r,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},t.prototype.getAnimationStyleProps=function(){return xA},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(i){H(o,i);function o(s){var l=i.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return ue(r.style)},o.prototype.getDefaultShape=function(){return ue(r.shape)},o}(t);for(var a in r)typeof r[a]=="function"&&(n.prototype[a]=r[a]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=_t|zi|Aa}(),t}(ra);const pe=TA;var NA=he({strokeFirst:!0,font:jn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},j_),X_=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return tu(NA,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var a=yd(n,r.font,r.textAlign,r.textBaseline);if(a.x+=r.x||0,a.y+=r.y||0,this.hasStroke()){var i=r.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(ra);X_.prototype.type="tspan";const rh=X_;var DA=he({x:0,y:0},Un),AA={style:he({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},su.style)};function MA(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Z_=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return tu(DA,r)},t.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var i=MA(n.image)?n.image:this.__image;if(!i)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?i[r]:i[r]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return AA},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new ye(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ra);Z_.prototype.type="image";const gn=Z_;function kA(e,t){var r=t.x,n=t.y,a=t.width,i=t.height,o=t.r,s,l,u,c;a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>a&&(f=s+l,s*=a/f,l*=a/f),u+c>a&&(f=u+c,u*=a/f,c*=a/f),l+u>i&&(f=l+u,l*=i/f,u*=i/f),s+c>i&&(f=s+c,s*=i/f,c*=i/f),e.moveTo(r+s,n),e.lineTo(r+a-l,n),l!==0&&e.arc(r+a-l,n+l,l,-Math.PI/2,0),e.lineTo(r+a,n+i-u),u!==0&&e.arc(r+a-u,n+i-u,u,0,Math.PI/2),e.lineTo(r+c,n+i),c!==0&&e.arc(r+c,n+i-c,c,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Oa=Math.round;function K_(e,t,r){if(t){var n=t.x1,a=t.x2,i=t.y1,o=t.y2;e.x1=n,e.x2=a,e.y1=i,e.y2=o;var s=r&&r.lineWidth;return s&&(Oa(n*2)===Oa(a*2)&&(e.x1=e.x2=zn(n,s,!0)),Oa(i*2)===Oa(o*2)&&(e.y1=e.y2=zn(i,s,!0))),e}}function J_(e,t,r){if(t){var n=t.x,a=t.y,i=t.width,o=t.height;e.x=n,e.y=a,e.width=i,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=zn(n,s,!0),e.y=zn(a,s,!0),e.width=Math.max(zn(n+i,s,!1)-e.x,i===0?0:1),e.height=Math.max(zn(a+o,s,!1)-e.y,o===0?0:1)),e}}function zn(e,t,r){if(!t)return e;var n=Oa(e*2);return(n+Oa(t))%2===0?n/2:(n+(r?1:-1))/2}var EA=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),PA={},Q_=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new EA},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=J_(PA,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?kA(r,n):r.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(pe);Q_.prototype.type="rect";const ke=Q_;var Yp={fill:"#000"},qp=2,IA={style:he({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},su.style)},e1=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Yp,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];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 r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,VA(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);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 r=new ye(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(r.copy(l),r.applyTransform(u),i=i||r.clone(),i.union(r)):(i=i||l.clone(),i.union(l))}this._rect=i||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Yp},t.prototype.setTextContent=function(r){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(r,n){if(!n)return r;var a=n.rich,i=r.rich||a&&{};return G(r,n),a&&i?(this._mergeRich(i,a),r.rich=i):i&&(r.rich=i),r},t.prototype._mergeRich=function(r,n){for(var a=_e(n),i=0;i<a.length;i++){var o=a[i];r[o]=r[o]||{},G(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return IA},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||jn,a=r.padding,i=eg(r),o=eA(i,r),s=Cc(r),l=!!r.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,d=o.lines,h=o.lineHeight,p=this._defaultStyle,m=r.x||0,g=r.y||0,y=r.align||p.align||"left",w=r.verticalAlign||p.verticalAlign||"top",_=m,S=Ma(g,o.contentHeight,w);if(s||a){var x=Hi(m,c,y),C=Ma(g,u,w);s&&this._renderBackground(r,r,x,C,c,u)}S+=h/2,a&&(_=Qp(m,y,a),w==="top"?S+=a[0]:w==="bottom"&&(S-=a[2]));for(var T=0,b=!1,D=Jp("fill"in r?r.fill:(b=!0,p.fill)),N=Kp("stroke"in r?r.stroke:!l&&(!p.autoStroke||b)?(T=qp,p.stroke):null),A=r.textShadowBlur>0,M=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P<d.length;P++){var L=this._getOrCreateChild(rh),E=L.createStyle();L.useStyle(E),E.text=d[P],E.x=_,E.y=S,y&&(E.textAlign=y),E.textBaseline="middle",E.opacity=r.opacity,E.strokeFirst=!0,A&&(E.shadowBlur=r.textShadowBlur||0,E.shadowColor=r.textShadowColor||"transparent",E.shadowOffsetX=r.textShadowOffsetX||0,E.shadowOffsetY=r.textShadowOffsetY||0),E.stroke=N,E.fill=D,N&&(E.lineWidth=r.lineWidth||T,E.lineDash=r.lineDash,E.lineDashOffset=r.lineDashOffset||0),E.font=n,Xp(E,r),S+=h,M&&L.setBoundingRect(new ye(Hi(E.x,r.width,E.textAlign),Ma(E.y,I,E.textBaseline),f,I))}},t.prototype._updateRichTexts=function(){var r=this.style,n=eg(r),a=nA(n,r),i=a.width,o=a.outerWidth,s=a.outerHeight,l=r.padding,u=r.x||0,c=r.y||0,f=this._defaultStyle,d=r.align||f.align,h=r.verticalAlign||f.verticalAlign,p=Hi(u,o,d),m=Ma(c,s,h),g=p,y=m;l&&(g+=l[3],y+=l[0]);var w=g+i;Cc(r)&&this._renderBackground(r,r,p,m,o,s);for(var _=!!r.backgroundColor,S=0;S<a.lines.length;S++){for(var x=a.lines[S],C=x.tokens,T=C.length,b=x.lineHeight,D=x.width,N=0,A=g,M=w,I=T-1,P=void 0;N<T&&(P=C[N],!P.align||P.align==="left");)this._placeToken(P,r,b,y,A,"left",_),D-=P.width,A+=P.width,N++;for(;I>=0&&(P=C[I],P.align==="right");)this._placeToken(P,r,b,y,M,"right",_),D-=P.width,M-=P.width,I--;for(A+=(i-(A-g)-(w-M)-D)/2;N<=I;)P=C[N],this._placeToken(P,r,b,y,A+P.width/2,"center",_),A+=P.width,N++;y+=b}},t.prototype._placeToken=function(r,n,a,i,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=i+a/2;c==="top"?f=i+r.height/2:c==="bottom"&&(f=i+a-r.height/2);var d=!r.isLineHolder&&Cc(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var h=!!u.backgroundColor,p=r.textPadding;p&&(o=Qp(o,s,p),f-=r.height/2-p[0]-r.innerHeight/2);var m=this._getOrCreateChild(rh),g=m.createStyle();m.useStyle(g);var y=this._defaultStyle,w=!1,_=0,S=Jp("fill"in u?u.fill:"fill"in n?n.fill:(w=!0,y.fill)),x=Kp("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!y.autoStroke||w)?(_=qp,y.stroke):null),C=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=f,C&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||jn,g.opacity=sn(u.opacity,n.opacity,1),Xp(g,u),x&&(g.lineWidth=sn(u.lineWidth,n.lineWidth,_),g.lineDash=ne(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=x),S&&(g.fill=S);var T=r.contentWidth,b=r.contentHeight;m.setBoundingRect(new ye(Hi(g.x,T,g.textAlign),Ma(g.y,b,g.textBaseline),T,b))},t.prototype._renderBackground=function(r,n,a,i,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,d=l&&!f,h=r.borderRadius,p=this,m,g;if(d||r.lineHeight||u&&c){m=this._getOrCreateChild(ke),m.useStyle(m.createStyle()),m.style.fill=null;var y=m.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,m.dirtyShape()}if(d){var w=m.style;w.fill=l||null,w.fillOpacity=ne(r.fillOpacity,1)}else if(f){g=this._getOrCreateChild(gn),g.onload=function(){p.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var w=m.style;w.lineWidth=u,w.stroke=c,w.strokeOpacity=ne(r.strokeOpacity,1),w.lineDash=r.borderDash,w.lineDashOffset=r.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(w.strokeFirst=!0,w.lineWidth*=2)}var S=(m||g).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=sn(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return BA(r)&&(n=[r.fontStyle,r.fontWeight,RA(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&fr(n)||r.textFont||r.font},t}(ra),LA={left:!0,right:1,center:1},OA={top:1,bottom:1,middle:1},jp=["fontStyle","fontWeight","fontSize","fontFamily"];function RA(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?sd+"px":e+"px"}function Xp(e,t){for(var r=0;r<jp.length;r++){var n=jp[r],a=t[n];a!=null&&(e[n]=a)}}function BA(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function VA(e){return Zp(e),k(e.rich,Zp),e}function Zp(e){if(e){e.font=e1.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||LA[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||OA[r]?r:"top";var n=e.padding;n&&(e.padding=o_(e.padding))}}function Kp(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function Jp(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function Qp(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function eg(e){var t=e.text;return t!=null&&(t+=""),t}function Cc(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const He=e1;var de=Ne(),$A=function(e,t,r,n){if(n){var a=de(n);a.dataIndex=r,a.dataType=t,a.seriesIndex=e,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=de(i);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},tg=1,rg={},t1=Ne(),xd=Ne(),Td=0,lu=1,uu=2,vt=["emphasis","blur","select"],hl=["normal","emphasis","blur","select"],FA=10,zA=9,Wn="highlight",Hs="downplay",ro="select",Us="unselect",no="toggleSelect";function ga(e){return e!=null&&e!=="none"}function cu(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function r1(e){cu(e,"emphasis",uu)}function n1(e){e.hoverState===uu&&cu(e,"normal",Td)}function Nd(e){cu(e,"blur",lu)}function a1(e){e.hoverState===lu&&cu(e,"normal",Td)}function GA(e){e.selected=!0}function HA(e){e.selected=!1}function ng(e,t,r){t(e,r)}function Vr(e,t,r){ng(e,t,r),e.isGroup&&e.traverse(function(n){ng(n,t,r)})}function ag(e,t){switch(t){case"emphasis":e.hoverState=uu;break;case"normal":e.hoverState=Td;break;case"blur":e.hoverState=lu;break;case"select":e.selected=!0}}function UA(e,t,r,n){for(var a=e.style,i={},o=0;o<t.length;o++){var s=t[o],l=a[s];i[s]=l??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function WA(e,t,r,n){var a=r&&ce(r,"select")>=0,i=!1;if(e instanceof pe){var o=t1(e),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(ga(s)||ga(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=G({},n),u=G({},u),u.fill=s):!ga(u.fill)&&ga(s)?(i=!0,n=G({},n),u=G({},u),u.fill=wp(s)):!ga(u.stroke)&&ga(l)&&(i||(n=G({},n),u=G({},u)),u.stroke=wp(l)),n.style=u}}if(n&&n.z2==null){i||(n=G({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??FA)}return n}function YA(e,t,r){if(r&&r.z2==null){r=G({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??zA)}return r}function qA(e,t,r){var n=ce(e.currentStates,t)>=0,a=e.style.opacity,i=n?null:UA(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=G({},r),o=G({opacity:n?a:i.opacity*.1},o),r.style=o),r}function xc(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return WA(this,e,t,r);if(e==="blur")return qA(this,e,r);if(e==="select")return YA(this,e,r)}return r}function i1(e){e.stateProxy=xc;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=xc),r&&(r.stateProxy=xc)}function ig(e,t){!u1(e,t)&&!e.__highByOuter&&Vr(e,r1)}function og(e,t){!u1(e,t)&&!e.__highByOuter&&Vr(e,n1)}function mo(e,t){e.__highByOuter|=1<<(t||0),Vr(e,r1)}function yo(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Vr(e,n1)}function o1(e){Vr(e,Nd)}function Dd(e){Vr(e,a1)}function s1(e){Vr(e,GA)}function l1(e){Vr(e,HA)}function u1(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function c1(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(a,i){var o=xd(i),s=a==="series",l=s?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){a1(u)}),s&&r.push(i)),o.isBlured=!1}),k(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,t)})}function nh(e,t,r,n){var a=n.getModel();r=r||"coordinateSystem";function i(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&Dd(d)}}if(e!=null&&!(!t||t==="none")){var o=a.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!d||t==="series"&&c)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&c&&t==="self"||Nd(g)}),st(t))i(u.getData(),t);else if(K(t))for(var p=_e(t),m=0;m<p.length;m++)i(u.getData(p[m]),t[p[m]]);l.push(u),xd(u).isBlured=!0}}),a.eachComponent(function(u,c){if(u!=="series"){var f=n.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,a)}})}}function ah(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){xd(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){Nd(i)})}}}function jA(e,t,r){var n=e.seriesIndex,a=e.getData(t.dataType);if(!a){process.env.NODE_ENV!=="production"&&et("Unknown dataType "+t.dataType);return}var i=Xn(a,t);i=(U(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=de(o);nh(n,u.focus,u.blurScope,r)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&nh(n,c,f,r)}}function Ad(e,t,r,n){var a={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return a;var i=n.getModel().getComponent(e,t);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(process.env.NODE_ENV!=="production"&&!Ka(s[u])&&et("param should be highDownDispatcher"),de(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function XA(e,t,r){process.env.NODE_ENV!=="production"&&!Ka(e)&&et("param should be highDownDispatcher");var n=de(e),a=Ad(n.componentMainType,n.componentIndex,n.componentHighDownName,r),i=a.dispatchers,o=a.focusSelf;i?(o&&ah(n.componentMainType,n.componentIndex,r),k(i,function(s){return ig(s,t)})):(nh(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&ah(n.componentMainType,n.componentIndex,r),ig(e,t))}function ZA(e,t,r){process.env.NODE_ENV!=="production"&&!Ka(e)&&et("param should be highDownDispatcher"),c1(r);var n=de(e),a=Ad(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?k(a,function(i){return og(i,t)}):og(e,t)}function KA(e,t,r){if(ih(t)){var n=t.dataType,a=e.getData(n),i=Xn(a,t);U(i)||(i=[i]),e[t.type===no?"toggleSelect":t.type===ro?"select":"unselect"](i,n)}}function sg(e){var t=e.getAllData();k(t,function(r){var n=r.data,a=r.type;n.eachItemGraphicEl(function(i,o){e.isSelected(o,a)?s1(i):l1(i)})})}function JA(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();k(n,function(a){a.data;var i=a.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function dl(e,t,r){f1(e,!0),Vr(e,i1),eM(e,t,r)}function QA(e){f1(e,!1)}function Kn(e,t,r,n){n?QA(e):dl(e,t,r)}function eM(e,t,r){var n=de(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var lg=["emphasis","blur","select"],tM={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function vl(e,t,r,n){r=r||"itemStyle";for(var a=0;a<lg.length;a++){var i=lg[a],o=t.getModel([i,r]),s=e.ensureState(i);s.style=n?n(o):o[tM[r]]()}}function f1(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Ka(e){return!!(e&&e.__highDownDispatcher)}function rM(e){var t=rg[e];return t==null&&tg<=32&&(t=rg[e]=tg++),t}function ih(e){var t=e.type;return t===ro||t===Us||t===no}function ug(e){var t=e.type;return t===Wn||t===Hs}function nM(e){var t=t1(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var ma=Zn.CMD,aM=[[],[],[]],cg=Math.sqrt,iM=Math.atan2;function oM(e,t){if(t){var r=e.data,n=e.len(),a,i,o,s,l,u,c=ma.M,f=ma.C,d=ma.L,h=ma.R,p=ma.A,m=ma.Q;for(o=0,s=0;o<n;){switch(a=r[o++],s=o,i=0,a){case c:i=1;break;case d:i=1;break;case f:i=3;break;case m:i=2;break;case p:var g=t[4],y=t[5],w=cg(t[0]*t[0]+t[1]*t[1]),_=cg(t[2]*t[2]+t[3]*t[3]),S=iM(-t[1]/_,t[0]/w);r[o]*=w,r[o++]+=g,r[o]*=_,r[o++]+=y,r[o++]*=w,r[o++]*=_,r[o++]+=S,r[o++]+=S,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],Vt(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Vt(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<i;l++){var x=aM[l];x[0]=r[o++],x[1]=r[o++],Vt(x,x,t),r[s++]=x[0],r[s++]=x[1]}}e.increaseVersion()}}var Tc=Math.sqrt,os=Math.sin,ss=Math.cos,Ti=Math.PI;function fg(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function oh(e,t){return(e[0]*t[0]+e[1]*t[1])/(fg(e)*fg(t))}function hg(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(oh(e,t))}function dg(e,t,r,n,a,i,o,s,l,u,c){var f=l*(Ti/180),d=ss(f)*(e-r)/2+os(f)*(t-n)/2,h=-1*os(f)*(e-r)/2+ss(f)*(t-n)/2,p=d*d/(o*o)+h*h/(s*s);p>1&&(o*=Tc(p),s*=Tc(p));var m=(a===i?-1:1)*Tc((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=m*o*h/s,y=m*-s*d/o,w=(e+r)/2+ss(f)*g-os(f)*y,_=(t+n)/2+os(f)*g+ss(f)*y,S=hg([1,0],[(d-g)/o,(h-y)/s]),x=[(d-g)/o,(h-y)/s],C=[(-1*d-g)/o,(-1*h-y)/s],T=hg(x,C);if(oh(x,C)<=-1&&(T=Ti),oh(x,C)>=1&&(T=0),T<0){var b=Math.round(T/Ti*1e6)/1e6;T=Ti*2+b%2*Ti}c.addData(u,w,_,o,s,S,T,f,i)}var sM=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,lM=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function uM(e){var t=new Zn;if(!e)return t;var r=0,n=0,a=r,i=n,o,s=Zn.CMD,l=e.match(sM);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,h=c.match(lM)||[],p=h.length,m=0;m<p;m++)h[m]=parseFloat(h[m]);for(var g=0;g<p;){var y=void 0,w=void 0,_=void 0,S=void 0,x=void 0,C=void 0,T=void 0,b=r,D=n,N=void 0,A=void 0;switch(f){case"l":r+=h[g++],n+=h[g++],d=s.L,t.addData(d,r,n);break;case"L":r=h[g++],n=h[g++],d=s.L,t.addData(d,r,n);break;case"m":r+=h[g++],n+=h[g++],d=s.M,t.addData(d,r,n),a=r,i=n,f="l";break;case"M":r=h[g++],n=h[g++],d=s.M,t.addData(d,r,n),a=r,i=n,f="L";break;case"h":r+=h[g++],d=s.L,t.addData(d,r,n);break;case"H":r=h[g++],d=s.L,t.addData(d,r,n);break;case"v":n+=h[g++],d=s.L,t.addData(d,r,n);break;case"V":n=h[g++],d=s.L,t.addData(d,r,n);break;case"C":d=s.C,t.addData(d,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),r=h[g-2],n=h[g-1];break;case"c":d=s.C,t.addData(d,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n),r+=h[g-2],n+=h[g-1];break;case"S":y=r,w=n,N=t.len(),A=t.data,o===s.C&&(y+=r-A[N-4],w+=n-A[N-3]),d=s.C,b=h[g++],D=h[g++],r=h[g++],n=h[g++],t.addData(d,y,w,b,D,r,n);break;case"s":y=r,w=n,N=t.len(),A=t.data,o===s.C&&(y+=r-A[N-4],w+=n-A[N-3]),d=s.C,b=r+h[g++],D=n+h[g++],r+=h[g++],n+=h[g++],t.addData(d,y,w,b,D,r,n);break;case"Q":b=h[g++],D=h[g++],r=h[g++],n=h[g++],d=s.Q,t.addData(d,b,D,r,n);break;case"q":b=h[g++]+r,D=h[g++]+n,r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,b,D,r,n);break;case"T":y=r,w=n,N=t.len(),A=t.data,o===s.Q&&(y+=r-A[N-4],w+=n-A[N-3]),r=h[g++],n=h[g++],d=s.Q,t.addData(d,y,w,r,n);break;case"t":y=r,w=n,N=t.len(),A=t.data,o===s.Q&&(y+=r-A[N-4],w+=n-A[N-3]),r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,y,w,r,n);break;case"A":_=h[g++],S=h[g++],x=h[g++],C=h[g++],T=h[g++],b=r,D=n,r=h[g++],n=h[g++],d=s.A,dg(b,D,r,n,C,T,_,S,x,d,t);break;case"a":_=h[g++],S=h[g++],x=h[g++],C=h[g++],T=h[g++],b=r,D=n,r+=h[g++],n+=h[g++],d=s.A,dg(b,D,r,n,C,T,_,S,x,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),r=a,n=i),o=d}return t.toStatic(),t}var h1=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(pe);function d1(e){return e.setData!=null}function v1(e,t){var r=uM(e),n=G({},t);return n.buildPath=function(a){if(d1(a)){a.setData(r.data);var i=a.getContext();i&&a.rebuildPath(i,1)}else{var i=a;r.rebuildPath(i,1)}},n.applyTransform=function(a){oM(r,a),this.dirtyShape()},n}function cM(e,t){return new h1(v1(e,t))}function fM(e,t){var r=v1(e,t),n=function(a){H(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return i}(h1);return n}function hM(e,t){for(var r=[],n=e.length,a=0;a<n;a++){var i=e[a];r.push(i.getUpdatedPathProxy(!0))}var o=new pe(t);return o.createPathProxy(),o.buildPath=function(s){if(d1(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var dM=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),p1=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new dM},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(pe);p1.prototype.type="circle";const Md=p1;var vM=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),g1=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new vM},t.prototype.buildPath=function(r,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,c=l*a;r.moveTo(i-s,o),r.bezierCurveTo(i-s,o-c,i-u,o-l,i,o-l),r.bezierCurveTo(i+u,o-l,i+s,o-c,i+s,o),r.bezierCurveTo(i+s,o+c,i+u,o+l,i,o+l),r.bezierCurveTo(i-u,o+l,i-s,o+c,i-s,o),r.closePath()},t}(pe);g1.prototype.type="ellipse";const m1=g1;var y1=Math.PI,Nc=y1*2,En=Math.sin,ya=Math.cos,pM=Math.acos,Xe=Math.atan2,vg=Math.abs,ao=Math.sqrt,Yi=Math.max,or=Math.min,Ht=1e-4;function gM(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,c=o-a,f=s-i,d=f*l-c*u;if(!(d*d<Ht))return d=(c*(t-i)-f*(e-a))/d,[e+d*l,t+d*u]}function ls(e,t,r,n,a,i,o){var s=e-r,l=t-n,u=(o?i:-i)/ao(s*s+l*l),c=u*l,f=-u*s,d=e+c,h=t+f,p=r+c,m=n+f,g=(d+p)/2,y=(h+m)/2,w=p-d,_=m-h,S=w*w+_*_,x=a-i,C=d*m-p*h,T=(_<0?-1:1)*ao(Yi(0,x*x*S-C*C)),b=(C*_-w*T)/S,D=(-C*w-_*T)/S,N=(C*_+w*T)/S,A=(-C*w+_*T)/S,M=b-g,I=D-y,P=N-g,L=A-y;return M*M+I*I>P*P+L*L&&(b=N,D=A),{cx:b,cy:D,x0:-c,y0:-f,x1:b*(a/x-1),y1:D*(a/x-1)}}function mM(e){var t;if(U(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function yM(e,t){var r,n=Yi(t.r,0),a=Yi(t.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,h=vg(u-l),p=h>Nc&&h%Nc;if(p>Ht&&(h=p),!(n>Ht))e.moveTo(c,f);else if(h>Nc-Ht)e.moveTo(c+n*ya(l),f+n*En(l)),e.arc(c,f,n,l,u,!d),a>Ht&&(e.moveTo(c+a*ya(u),f+a*En(u)),e.arc(c,f,a,u,l,d));else{var m=void 0,g=void 0,y=void 0,w=void 0,_=void 0,S=void 0,x=void 0,C=void 0,T=void 0,b=void 0,D=void 0,N=void 0,A=void 0,M=void 0,I=void 0,P=void 0,L=n*ya(l),E=n*En(l),B=a*ya(u),R=a*En(u),V=h>Ht;if(V){var z=t.cornerRadius;z&&(r=mM(z),m=r[0],g=r[1],y=r[2],w=r[3]);var Y=vg(n-a)/2;if(_=or(Y,y),S=or(Y,w),x=or(Y,m),C=or(Y,g),D=T=Yi(_,S),N=b=Yi(x,C),(T>Ht||b>Ht)&&(A=n*ya(u),M=n*En(u),I=a*ya(l),P=a*En(l),h<y1)){var Z=gM(L,E,I,P,A,M,B,R);if(Z){var F=L-Z[0],J=E-Z[1],Te=A-Z[0],fe=M-Z[1],Ve=1/En(pM((F*Te+J*fe)/(ao(F*F+J*J)*ao(Te*Te+fe*fe)))/2),je=ao(Z[0]*Z[0]+Z[1]*Z[1]);D=or(T,(n-je)/(Ve+1)),N=or(b,(a-je)/(Ve-1))}}}if(!V)e.moveTo(c+L,f+E);else if(D>Ht){var Be=or(y,D),Me=or(w,D),te=ls(I,P,L,E,n,Be,d),le=ls(A,M,B,R,n,Me,d);e.moveTo(c+te.cx+te.x0,f+te.cy+te.y0),D<T&&Be===Me?e.arc(c+te.cx,f+te.cy,D,Xe(te.y0,te.x0),Xe(le.y0,le.x0),!d):(Be>0&&e.arc(c+te.cx,f+te.cy,Be,Xe(te.y0,te.x0),Xe(te.y1,te.x1),!d),e.arc(c,f,n,Xe(te.cy+te.y1,te.cx+te.x1),Xe(le.cy+le.y1,le.cx+le.x1),!d),Me>0&&e.arc(c+le.cx,f+le.cy,Me,Xe(le.y1,le.x1),Xe(le.y0,le.x0),!d))}else e.moveTo(c+L,f+E),e.arc(c,f,n,l,u,!d);if(!(a>Ht)||!V)e.lineTo(c+B,f+R);else if(N>Ht){var Be=or(m,N),Me=or(g,N),te=ls(B,R,A,M,a,-Me,d),le=ls(L,E,I,P,a,-Be,d);e.lineTo(c+te.cx+te.x0,f+te.cy+te.y0),N<b&&Be===Me?e.arc(c+te.cx,f+te.cy,N,Xe(te.y0,te.x0),Xe(le.y0,le.x0),!d):(Me>0&&e.arc(c+te.cx,f+te.cy,Me,Xe(te.y0,te.x0),Xe(te.y1,te.x1),!d),e.arc(c,f,a,Xe(te.cy+te.y1,te.cx+te.x1),Xe(le.cy+le.y1,le.cx+le.x1),d),Be>0&&e.arc(c+le.cx,f+le.cy,Be,Xe(le.y1,le.x1),Xe(le.y0,le.x0),!d))}else e.lineTo(c+B,f+R),e.arc(c,f,a,u,l,d)}e.closePath()}}}var _M=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),_1=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new _M},t.prototype.buildPath=function(r,n){yM(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(pe);_1.prototype.type="sector";const na=_1;var wM=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),w1=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new wM},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.PI*2;r.moveTo(a+n.r,i),r.arc(a,i,n.r,0,o,!1),r.moveTo(a+n.r0,i),r.arc(a,i,n.r0,0,o,!0)},t}(pe);w1.prototype.type="ring";const b1=w1;function bM(e,t,r,n){var a=[],i=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=e.length;d<h;d++)Pa(c,c,e[d]),Ia(f,f,e[d]);Pa(c,c,n[0]),Ia(f,f,n[1])}for(var d=0,h=e.length;d<h;d++){var p=e[d];if(r)l=e[d?d-1:h-1],u=e[(d+1)%h];else if(d===0||d===h-1){a.push(eN(e[d]));continue}else l=e[d-1],u=e[d+1];c_(i,u,l),Hu(i,i,t);var m=Of(p,l),g=Of(p,u),y=m+g;y!==0&&(m/=y,g/=y),Hu(o,i,-m),Hu(s,i,g);var w=rp([],p,o),_=rp([],p,s);n&&(Ia(w,w,c),Pa(w,w,f),Ia(_,_,c),Pa(_,_,f)),a.push(w),a.push(_)}return r&&a.push(a.shift()),a}function S1(e,t,r){var n=t.smooth,a=t.points;if(a&&a.length>=2){if(n){var i=bM(a,n,r,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(r?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var s=1,f=a.length;s<f;s++)e.lineTo(a[s][0],a[s][1])}r&&e.closePath()}}var SM=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),C1=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new SM},t.prototype.buildPath=function(r,n){S1(r,n,!0)},t}(pe);C1.prototype.type="polygon";const kd=C1;var CM=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),ai=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new CM},t.prototype.buildPath=function(r,n){S1(r,n,!1)},t}(pe);ai.prototype.type="polyline";var xM={},TM=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),x1=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new TM},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=K_(xM,n,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(pe);x1.prototype.type="line";const dn=x1;var ct=[],NM=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function pg(e,t,r){var n=e.cpx2,a=e.cpy2;return n!=null||a!=null?[(r?vp:$e)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?vp:$e)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?pp:Ke)(e.x1,e.cpx1,e.x2,t),(r?pp:Ke)(e.y1,e.cpy1,e.y2,t)]}var T1=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new NM},t.prototype.buildPath=function(r,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,f=n.cpy2,d=n.percent;d!==0&&(r.moveTo(a,i),c==null||f==null?(d<1&&(al(a,l,o,d,ct),l=ct[1],o=ct[2],al(i,u,s,d,ct),u=ct[1],s=ct[2]),r.quadraticCurveTo(l,u,o,s)):(d<1&&(nl(a,l,c,o,d,ct),l=ct[1],c=ct[2],o=ct[3],nl(i,u,f,s,d,ct),u=ct[1],f=ct[2],s=ct[3]),r.bezierCurveTo(l,u,c,f,o,s)))},t.prototype.pointAt=function(r){return pg(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=pg(this.shape,r,!0);return fd(n,n)},t}(pe);T1.prototype.type="bezier-curve";const Ed=T1;var DM=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),N1=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new DM},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),f=Math.sin(s);r.moveTo(c*o+a,f*o+i),r.arc(a,i,o,s,l,!u)},t}(pe);N1.prototype.type="arc";const Pd=N1;var AM=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),a=0;a<r.length;a++)n=n||r[a].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<r.length;a++)r[a].path||r[a].createPathProxy(),r[a].path.setScale(n[0],n[1],r[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(r,a[i].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),pe.prototype.getBoundingRect.call(this)},t}(pe);const MM=AM;var kM=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}();const D1=kM;var A1=function(e){H(t,e);function t(r,n,a,i,o,s){var l=e.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return t}(D1),EM=function(e){H(t,e);function t(r,n,a,i,o){var s=e.call(this,i)||this;return s.x=r??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return t}(D1);const PM=EM;var Pn=[0,0],In=[0,0],us=new se,cs=new se,IM=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new se;for(var n=0;n<2;n++)this._axes[n]=new se;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,a=this._axes,i=t.x,o=t.y,s=i+t.width,l=o+t.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),r)for(var u=0;u<4;u++)n[u].transform(r);se.sub(a[0],n[1],n[0]),se.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,a=!r;return us.set(1/0,1/0),cs.set(0,0),!this._intersectCheckOneSide(this,t,us,cs,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,us,cs,a,-1)&&(n=!1,a)||a||se.copy(r,n?us:cs),n},e.prototype._intersectCheckOneSide=function(t,r,n,a,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Pn),this._getProjMinMaxOnAxis(l,r._corners,In),Pn[1]<In[0]||Pn[0]>In[1]){if(s=!1,i)return s;var c=Math.abs(In[0]-Pn[1]),f=Math.abs(Pn[0]-In[1]);Math.min(c,f)>a.len()&&(c<f?se.scale(a,u,-c*o):se.scale(a,u,f*o))}else if(n){var c=Math.abs(In[0]-Pn[1]),f=Math.abs(Pn[0]-In[1]);Math.min(c,f)<n.len()&&(c<f?se.scale(n,u,c*o):se.scale(n,u,-f*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var a=this._axes[t],i=this._origin,o=r[0].dot(a)+i[t],s=o,l=o,u=1;u<r.length;u++){var c=r[u].dot(a)+i[t];s=Math.min(c,s),l=Math.max(c,l)}n[0]=s,n[1]=l},e}();const pl=IM;var LM=[],OM=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},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(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var a=0;a<r.length;a++)this.addDisplayable(r[a],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new ye(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(LM)),r.union(i)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t}(ra);const RM=OM;var BM=Ne();function Id(e,t,r,n,a){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,f=void 0;n?(u=ne(n.duration,200),c=ne(n.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(f=i.delay)),ie(f)&&(f=f(r,a)),ie(u)&&(u=u(r));var d={duration:u||0,delay:f,easing:c};return d}else return null}function Ld(e,t,r,n,a,i,o){var s=!1,l;ie(a)?(o=i,i=a,a=null):K(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=Id(e,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,a):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,h=c.easing,p={duration:f,delay:d||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,p):t.animateTo(r,p)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),i&&i()}function tt(e,t,r,n,a,i){Ld("update",e,t,r,n,a,i)}function bt(e,t,r,n,a,i){Ld("enter",e,t,r,n,a,i)}function io(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function gl(e,t,r,n,a,i){io(e)||Ld("leave",e,t,r,n,a,i)}function gg(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),gl(e,{style:{opacity:0}},t,r,n)}function ml(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(a){a.isGroup||gg(a,t,r,n)}):gg(e,t,r,n)}function Od(e){BM(e).oldStyle=e.style}var yl=Math.max,_l=Math.min,sh={};function VM(e){return pe.extend(e)}var $M=fM;function FM(e,t){return $M(e,t)}function er(e,t){sh[e]=t}function M1(e){if(sh.hasOwnProperty(e))return sh[e]}function fu(e,t,r,n){var a=cM(e,t);return r&&(n==="center"&&(r=E1(r,a.getBoundingRect())),P1(a,r)),a}function k1(e,t,r){var n=new gn({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(r==="center"){var i={width:a.width,height:a.height};n.setStyle(E1(t,i))}}});return n}function E1(e,t){var r=t.width/t.height,n=e.height*r,a;n<=e.width?a=e.height:(n=e.width,a=n/r);var i=e.x+e.width/2,o=e.y+e.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var zM=hM;function P1(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function _o(e,t){return K_(e,e,{lineWidth:t}),e}function GM(e){return J_(e.shape,e.shape,e.style),e}var HM=zn;function I1(e,t){for(var r=dd([]);e&&e!==t;)Va(r,e.getLocalTransform(),r),e=e.parent;return r}function wo(e,t,r){return t&&!st(t)&&(t=md.getLocalTransform(t)),r&&(t=pd([],t)),Vt([],e,t)}function L1(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),i=[e==="left"?-n:e==="right"?n:0,e==="top"?-a:e==="bottom"?a:0];return i=wo(i,t,r),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function mg(e){return!e.isGroup}function UM(e){return e.shape!=null}function O1(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){mg(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return UM(o)&&(s.shape=G({},o.shape)),s}var i=n(e);t.traverse(function(o){if(mg(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),tt(o,l,r,de(o).dataIndex)}}})}function WM(e,t){return q(e,function(r){var n=r[0];n=yl(n,t.x),n=_l(n,t.x+t.width);var a=r[1];return a=yl(a,t.y),a=_l(a,t.y+t.height),[n,a]})}function YM(e,t){var r=yl(e.x,t.x),n=_l(e.x+e.width,t.x+t.width),a=yl(e.y,t.y),i=_l(e.y+e.height,t.y+t.height);if(n>=r&&i>=a)return{x:r,y:a,width:n-r,height:i-a}}function Rd(e,t,r){var n=G({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),he(a,r),new gn(n)):fu(e.replace("path://",""),n,r,"center")}function qM(e,t,r,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(R1(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function R1(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,c=o-a,f=s-i,d=Dc(c,f,l,u);if(jM(d))return!1;var h=e-a,p=t-i,m=Dc(h,p,l,u)/d;if(m<0||m>1)return!1;var g=Dc(h,p,c,f)/d;return!(g<0||g>1)}function Dc(e,t,r,n){return e*n-r*t}function jM(e){return e<=1e-6&&e>=-1e-6}function Bd(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,a=j(t)?{formatter:t}:t,i=r.mainType,o=r.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=e.formatterParamsExtra;l&&k(_e(l),function(c){W(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=de(e.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:he({content:n,formatterParams:s},a)}}function yg(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function ii(e,t){if(e)if(U(e))for(var r=0;r<e.length;r++)yg(e[r],t);else yg(e,t)}er("circle",Md);er("ellipse",m1);er("sector",na);er("ring",b1);er("polygon",kd);er("polyline",ai);er("rect",ke);er("line",dn);er("bezierCurve",Ed);er("arc",Pd);const XM=Object.freeze(Object.defineProperty({__proto__:null,Arc:Pd,BezierCurve:Ed,BoundingRect:ye,Circle:Md,CompoundPath:MM,Ellipse:m1,Group:Ie,Image:gn,IncrementalDisplayable:RM,Line:dn,LinearGradient:A1,OrientedBoundingRect:pl,Path:pe,Point:se,Polygon:kd,Polyline:ai,RadialGradient:PM,Rect:ke,Ring:b1,Sector:na,Text:He,applyTransform:wo,clipPointsByRect:WM,clipRectByRect:YM,createIcon:Rd,extendPath:FM,extendShape:VM,getShapeClass:M1,getTransform:I1,groupTransition:O1,initProps:bt,isElementRemoved:io,lineLineIntersect:R1,linePolygonIntersect:qM,makeImage:k1,makePath:fu,mergePath:zM,registerShape:er,removeElement:gl,removeElementWithFadeOut:ml,resizePath:P1,setTooltipConfig:Bd,subPixelOptimize:HM,subPixelOptimizeLine:_o,subPixelOptimizeRect:GM,transformDirection:L1,traverseElements:ii,updateProps:tt},Symbol.toStringTag,{value:"Module"}));var hu={};function ZM(e,t){for(var r=0;r<vt.length;r++){var n=vt[r],a=t[n],i=e.ensureState(n);i.style=i.style||{},i.style.text=a}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function _g(e,t,r){var n=e.labelFetcher,a=e.labelDataIndex,i=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=ie(e.defaultText)?e.defaultText(a,e,r):e.defaultText);for(var l={normal:s},u=0;u<vt.length;u++){var c=vt[u],f=t[c];l[c]=ne(n?n.getFormattedLabel(a,c,null,i,f&&f.get("formatter")):null,s)}return l}function oi(e,t,r,n){r=r||hu;for(var a=e instanceof He,i=!1,o=0;o<hl.length;o++){var s=t[hl[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?e:e.getTextContent();if(i){a||(l||(l=new He,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=_g(r,t),c=t.normal,f=!!c.getShallow("show"),d=Xt(c,n&&n.normal,r,!1,!a);d.text=u.normal,a||e.setTextConfig(wl(c,r,!1));for(var o=0;o<vt.length;o++){var h=vt[o],s=t[h];if(s){var p=l.ensureState(h),m=!!ne(s.getShallow("show"),f);if(m!==f&&(p.ignore=!m),p.style=Xt(s,n&&n[h],r,!0,!a),p.style.text=u[h],!a){var g=e.ensureState(h);g.textConfig=wl(s,r,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!f,l.useStyle(d),l.dirty(),r.enableTextSetter&&(du(l).setLabelText=function(y){var w=_g(r,t,y);ZM(l,w)})}else l&&(l.ignore=!0);e.dirty()}function aa(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<vt.length;n++){var a=vt[n];r[a]=e.getModel([a,t])}return r}function Xt(e,t,r,n,a){var i={};return KM(i,e,r,n,a),t&&G(i,t),i}function wl(e,t,r){t=t||{};var n={},a,i=e.getShallow("rotate"),o=ne(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return a=e.getShallow("position")||(r?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function KM(e,t,r,n,a){r=r||hu;var i=t.ecModel,o=i&&i.option.textStyle,s=JM(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);Cg(l[u]={},c,o,r,n,a,!1,!0)}}l&&(e.rich=l);var f=t.get("overflow");f&&(e.overflow=f);var d=t.get("minMargin");d!=null&&(e.margin=d),Cg(e,t,o,r,n,a,!0,!1)}function JM(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||hu).rich;if(r){t=t||{};for(var n=_e(r),a=0;a<n.length;a++){var i=n[a];t[i]=1}}e=e.parentModel}return t}var wg=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],bg=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Sg=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Cg(e,t,r,n,a,i,o,s){r=!a&&r||hu;var l=n&&n.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=ne(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(process.env.NODE_ENV!=="production"&&u==="auto"&&ze("color: 'auto'","color: 'inherit'"),l?u=l:u=null),(c==="inherit"||c==="auto")&&(process.env.NODE_ENV!=="production"&&c==="auto"&&ze("color: 'auto'","color: 'inherit'"),l?c=l:c=null),i||(u=u||r.color,c=c||r.textBorderColor),u!=null&&(e.fill=u),c!=null&&(e.stroke=c);var d=ne(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var h=ne(t.getShallow("textBorderType"),r.textBorderType);h!=null&&(e.lineDash=h);var p=ne(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);p!=null&&(e.lineDashOffset=p),!a&&f==null&&!s&&(f=n&&n.defaultOpacity),f!=null&&(e.opacity=f),!a&&!i&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var m=0;m<wg.length;m++){var g=wg[m],y=ne(t.getShallow(g),r[g]);y!=null&&(e[g]=y)}for(var m=0;m<bg.length;m++){var g=bg[m],y=t.getShallow(g);y!=null&&(e[g]=y)}if(e.verticalAlign==null){var w=t.getShallow("baseline");w!=null&&(e.verticalAlign=w)}if(!o||!n.disableBox){for(var m=0;m<Sg.length;m++){var g=Sg[m],y=t.getShallow(g);y!=null&&(e[g]=y)}var _=t.getShallow("borderType");_!=null&&(e.borderDash=_),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&e.backgroundColor==="auto"&&ze("backgroundColor: 'auto'","backgroundColor: 'inherit'"),e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&e.borderColor==="auto"&&ze("borderColor: 'auto'","borderColor: 'inherit'"),e.borderColor=l)}}function B1(e,t){var r=t&&t.getModel("textStyle");return fr([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var du=Ne();function QM(e,t,r,n){if(e){var a=du(e);a.prevValue=a.value,a.value=r;var i=t.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=t)}}var ek=["textStyle","color"],Ac=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Mc=new He,tk=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(ek):null)},e.prototype.getFont=function(){return B1({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Ac.length;n++)r[Ac[n]]=this.getShallow(Ac[n]);return Mc.useStyle(r),Mc.update(),Mc.getBoundingRect()},e}();const rk=tk;var V1=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],nk=go(V1),ak=function(){function e(){}return e.prototype.getLineStyle=function(t){return nk(this,t)},e}(),$1=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],ik=go($1),ok=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return ik(this,t,r)},e}(),ia=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){ve(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,a=n==null?n:n[t];if(a==null&&!r){var i=this.parentModel;i&&(a=i.getShallow(t))}return a},e.prototype.getModel=function(t,r){var n=t!=null,a=n?this.parsePath(t):null,i=n?this._doGet(a):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new e(i,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(ue(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!re.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var a=0;a<t.length&&!(t[a]&&(n=n&&typeof n=="object"?n[t[a]]:null,n==null));a++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();Cd(ia);WD(ia);Jt(ia,ak);Jt(ia,ok);Jt(ia,ZD);Jt(ia,rk);const Qe=ia;var sk=Math.round(Math.random()*10);function vu(e){return[e||"",sk++].join("_")}function lk(e){var t={};e.registerSubTypeDefaulter=function(r,n){var a=dr(r);t[a.main]=n},e.determineSubType=function(r,n){var a=n.type;if(!a){var i=dr(r).main;e.hasSubTypes(r)&&t[i]&&(a=t[i](n))}return a}}function uk(e,t){e.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=r(o),c=u.graph,f=u.noEntryList,d={};for(k(i,function(w){d[w]=!0});f.length;){var h=f.pop(),p=c[h],m=!!d[h];m&&(s.call(l,h,p.originalDeps.slice()),delete d[h]),k(p.successor,m?y:g)}k(d,function(){var w="";throw process.env.NODE_ENV!=="production"&&(w=cl("Circular dependency may exists: ",d,i,o)),new Error(w)});function g(w){c[w].entryCount--,c[w].entryCount===0&&f.push(w)}function y(w){d[w]=!0,g(w)}};function r(i){var o={},s=[];return k(i,function(l){var u=n(o,l),c=u.originalDeps=t(l),f=a(c,i);u.entryCount=f.length,u.entryCount===0&&s.push(l),k(f,function(d){ce(u.predecessor,d)<0&&u.predecessor.push(d);var h=n(o,d);ce(h.successor,d)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return k(i,function(l){ce(o,l)>=0&&s.push(l)}),s}}function pu(e,t){return ve(ve({},e,!0),t,!0)}const ck={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:". "}}}},fk={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var bl="ZH",Vd="EN",Fa=Vd,Ws={},$d={},F1=re.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Fa).toUpperCase();return e.indexOf(bl)>-1?bl:Fa}():Fa;function z1(e,t){e=e.toUpperCase(),$d[e]=new Qe(t),Ws[e]=t}function hk(e){if(j(e)){var t=Ws[e.toUpperCase()]||{};return e===bl||e===Vd?ue(t):ve(ue(t),ue(Ws[Fa]),!1)}else return ve(ue(e),ue(Ws[Fa]),!1)}function dk(e){return $d[e]}function vk(){return $d[Fa]}z1(Vd,ck);z1(bl,fk);var Fd=1e3,zd=Fd*60,oo=zd*60,Bt=oo*24,xg=Bt*365,qi={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},fs="{yyyy}-{MM}-{dd}",Tg={year:"{yyyy}",month:"{yyyy}-{MM}",day:fs,hour:fs+" "+qi.hour,minute:fs+" "+qi.minute,second:fs+" "+qi.second,millisecond:qi.none},kc=["year","month","day","hour","minute","second","millisecond"],G1=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Hr(e,t){return e+="","0000".substr(0,t-e.length)+e}function za(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 pk(e){return e===za(e)}function gk(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function gu(e,t,r,n){var a=Or(e),i=a[Gd(r)](),o=a[Ga(r)]()+1,s=Math.floor((o-1)/3)+1,l=a[mu(r)](),u=a["get"+(r?"UTC":"")+"Day"](),c=a[bo(r)](),f=(c-1)%12+1,d=a[yu(r)](),h=a[_u(r)](),p=a[wu(r)](),m=n instanceof Qe?n:dk(n||F1)||vk(),g=m.getModel("time"),y=g.get("month"),w=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Hr(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,w[o-1]).replace(/{MM}/g,Hr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Hr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Hr(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Hr(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Hr(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Hr(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Hr(p,3)).replace(/{S}/g,p+"")}function mk(e,t,r,n,a){var i=null;if(j(r))i=r;else if(ie(r))i=r(e.value,t,{level:e.level});else{var o=G({},qi);if(e.level>0)for(var s=0;s<kc.length;++s)o[kc[s]]="{primary|"+o[kc[s]]+"}";var l=r?r.inherit===!1?r:he(r,o):o,u=H1(e.value,a);if(l[u])i=l[u];else if(l.inherit){for(var c=G1.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(U(i)){var f=e.level==null?0:e.level>=0?e.level:i.length+e.level;f=Math.min(f,i.length-1),i=i[f]}}return gu(new Date(e.value),i,a,n)}function H1(e,t){var r=Or(e),n=r[Ga(t)]()+1,a=r[mu(t)](),i=r[bo(t)](),o=r[yu(t)](),s=r[_u(t)](),l=r[wu(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&i===0,h=d&&a===1,p=h&&n===1;return p?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function Ng(e,t,r){var n=xe(e)?Or(e):e;switch(t=t||H1(e,r),t){case"year":return n[Gd(r)]();case"half-year":return n[Ga(r)]()>=6?1:0;case"quarter":return Math.floor((n[Ga(r)]()+1)/4);case"month":return n[Ga(r)]();case"day":return n[mu(r)]();case"half-day":return n[bo(r)]()/24;case"hour":return n[bo(r)]();case"minute":return n[yu(r)]();case"second":return n[_u(r)]();case"millisecond":return n[wu(r)]()}}function Gd(e){return e?"getUTCFullYear":"getFullYear"}function Ga(e){return e?"getUTCMonth":"getMonth"}function mu(e){return e?"getUTCDate":"getDate"}function bo(e){return e?"getUTCHours":"getHours"}function yu(e){return e?"getUTCMinutes":"getMinutes"}function _u(e){return e?"getUTCSeconds":"getSeconds"}function wu(e){return e?"getUTCMilliseconds":"getMilliseconds"}function yk(e){return e?"setUTCFullYear":"setFullYear"}function U1(e){return e?"setUTCMonth":"setMonth"}function W1(e){return e?"setUTCDate":"setDate"}function Y1(e){return e?"setUTCHours":"setHours"}function q1(e){return e?"setUTCMinutes":"setMinutes"}function j1(e){return e?"setUTCSeconds":"setSeconds"}function X1(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Z1(e){if(!L_(e))return j(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function K1(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var bu=o_;function lh(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&fr(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Or(e):e;if(isNaN(+l)){if(s)return"-"}else return gu(l,n,r)}if(t==="ordinal")return el(e)?a(e):xe(e)&&i(e)?e+"":"-";var u=ul(e);return i(u)?Z1(u):el(e)?a(e):typeof e=="boolean"?e+"":"-"}var Dg=["a","b","c","d","e","f","g"],Ec=function(e,t){return"{"+e+(t??"")+"}"};function J1(e,t,r){U(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var o=Dg[i];e=e.replace(Ec(o),Ec(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=t[s][a[l]];e=e.replace(Ec(Dg[l],s),r?Pt(u):u)}return e}function _k(e,t){var r=j(e)?{color:e,extraCssText:t}:e||{},n=r.color,a=r.type;t=r.extraCssText;var i=r.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Pt(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Pt(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Jn(e,t){return t=t||"transparent",j(e)?e:K(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Ag(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Ys=k,wk=["left","right","top","bottom","width","height"],hs=[["width","left","right"],["height","top","bottom"]];function Hd(e,t,r,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),h,p;if(e==="horizontal"){var m=c.width+(d?-d.x+c.x:0);h=i+m,h>n||l.newline?(i=0,h=m,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);p=o+g,p>a||l.newline?(i+=s+r,o=0,p=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),e==="horizontal"?i=h+r:o=p+r)})}var so=Hd;be(Hd,"vertical");be(Hd,"horizontal");function Qn(e,t,r){r=bu(r||0);var n=t.width,a=t.height,i=Ce(e.left,n),o=Ce(e.top,a),s=Ce(e.right,n),l=Ce(e.bottom,a),u=Ce(e.width,n),c=Ce(e.height,a),f=r[2]+r[0],d=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-d-i),isNaN(c)&&(c=a-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>n/a?u=n*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=n-s-u-d),isNaN(o)&&(o=a-l-c-f),e.left||e.right){case"center":i=n/2-u/2-r[3];break;case"right":i=n-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=a/2-c/2-r[0];break;case"bottom":o=a-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=n-d-i-(s||0)),isNaN(c)&&(c=a-f-o-(l||0));var p=new ye(i+r[3],o+r[0],u,c);return p.margin=r,p}function So(e){var t=e.layoutMode||e.constructor.layoutMode;return K(t)?t:t?{type:t}:null}function Ja(e,t,r){var n=r&&r.ignoreSize;!U(n)&&(n=[n,n]);var a=o(hs[0],0),i=o(hs[1],1);u(hs[0],e,a),u(hs[1],e,i);function o(c,f){var d={},h=0,p={},m=0,g=2;if(Ys(c,function(_){p[_]=e[_]}),Ys(c,function(_){s(t,_)&&(d[_]=p[_]=t[_]),l(d,_)&&h++,l(p,_)&&m++}),n[f])return l(t,c[1])?p[c[2]]=null:l(t,c[2])&&(p[c[1]]=null),p;if(m===g||!h)return p;if(h>=g)return d;for(var y=0;y<c.length;y++){var w=c[y];if(!s(d,w)&&s(e,w)){d[w]=e[w];break}}return d}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,d){Ys(c,function(h){f[h]=d[h]})}}function Vo(e){return bk({},e)}function bk(e,t){return t&&e&&Ys(wk,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var Sk=Ne(),si=function(e){H(t,e);function t(r,n,a){var i=e.call(this,r,n,a)||this;return i.uid=vu("ec_cpt_model"),i}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=So(this),i=a?Vo(r):{},o=n.getTheme();ve(r,o.get(this.mainType)),ve(r,this.getDefaultOption()),a&&Ja(r,i,a)},t.prototype.mergeOption=function(r,n){ve(this.option,r,!0);var a=So(this);a&&Ja(this.option,r,a)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!GD(r))return r.defaultOption;var n=Sk(this);if(!n.defaultOption){for(var a=[],i=r;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=ve(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var a=r+"Index",i=r+"Id";return Bo(this.ecModel,r,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(Qe);z_(si,Qe);iu(si);lk(si);uk(si,Ck);function Ck(e){var t=[];return k(si.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=q(t,function(r){return dr(r).main}),e!=="dataset"&&ce(t,"dataset")<=0&&t.unshift("dataset"),t}const Se=si;var Q1="";typeof navigator<"u"&&(Q1=navigator.platform||"");var _a="rgba(0, 0, 0, 0.2)";const xk={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:_a,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:_a,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:_a,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:_a,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:_a,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:_a,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Q1.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var uh=ae(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ft="original",pt="arrayRows",tr="objectRows",mr="keyedColumns",kr="typedArray",ew="unknown",Er="column",li="row",Ue={Must:1,Might:2,Not:3},tw=Ne();function Tk(e){tw(e).datasetMap=ae()}function Nk(e,t,r){var n={},a=Ud(t);if(!a||!e)return n;var i=[],o=[],s=t.ecModel,l=tw(s).datasetMap,u=a.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),k(e,function(m,g){var y=K(m)?m:e[g]={name:m};y.type==="ordinal"&&c==null&&(c=g,f=p(y)),n[y.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});k(e,function(m,g){var y=m.name,w=p(m);if(c==null){var _=d.valueWayDim;h(n[y],_,w),h(o,_,w),d.valueWayDim+=w}else if(c===g)h(n[y],0,w),h(i,0,w);else{var _=d.categoryWayDim;h(n[y],_,w),h(o,_,w),d.categoryWayDim+=w}});function h(m,g,y){for(var w=0;w<y;w++)m.push(g+w)}function p(m){var g=m.dimsDef;return g?g.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function Dk(e,t,r){var n={},a=Ud(e);if(!a)return n;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===tr||i===mr)&&k(o,function(c,f){(K(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],h=0,p=Math.min(5,r);h<p;h++){var m=nw(t.data,i,t.seriesLayoutBy,o,t.startIndex,h);d.push(m);var g=m===Ue.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&d[c.n]===Ue.Not)&&(c.n=h),y(c)&&d[c.n]!==Ue.Not)return c;g||(m===Ue.Might&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}function y(w){return w.v!=null&&w.n!=null}return y(c)?c:y(f)?f:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function Ud(e){var t=e.get("data",!0);if(!t)return Bo(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},dt).models[0]}function Ak(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Bo(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},dt).models}function rw(e,t){return nw(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function nw(e,t,r,n,a,i){var o,s=5;if(lt(e))return Ue.Not;var l,u;if(n){var c=n[i];K(c)?(l=c.name,u=c.type):j(c)&&(l=c)}if(u!=null)return u==="ordinal"?Ue.Must:Ue.Not;if(t===pt){var f=e;if(r===li){for(var d=f[i],h=0;h<(d||[]).length&&h<s;h++)if((o=S(d[a+h]))!=null)return o}else for(var h=0;h<f.length&&h<s;h++){var p=f[a+h];if(p&&(o=S(p[i]))!=null)return o}}else if(t===tr){var m=e;if(!l)return Ue.Not;for(var h=0;h<m.length&&h<s;h++){var g=m[h];if(g&&(o=S(g[l]))!=null)return o}}else if(t===mr){var y=e;if(!l)return Ue.Not;var d=y[l];if(!d||lt(d))return Ue.Not;for(var h=0;h<d.length&&h<s;h++)if((o=S(d[h]))!=null)return o}else if(t===Ft)for(var w=e,h=0;h<w.length&&h<s;h++){var g=w[h],_=Ro(g);if(!U(_))return Ue.Not;if((o=S(_[i]))!=null)return o}function S(x){var C=j(x);if(x!=null&&isFinite(x)&&x!=="")return C?Ue.Might:Ue.Not;if(C&&x!=="-")return Ue.Must}return Ue.Not}var Mk=ae();function kk(e,t,r){var n=Mk.get(t);if(!n)return r;var a=n(e);if(!a)return r;if(process.env.NODE_ENV!=="production")for(var i=0;i<a.length;i++)ee(Za(a[i]));return r.concat(a)}var Mg=Ne();Ne();var Wd=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var a=Ge(this.get("color",!0)),i=this.get("colorLayer",!0);return Pk(this,Mg,a,i,t,r,n)},e.prototype.clearColorPalette=function(){Ik(this,Mg)},e}();function Ek(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function Pk(e,t,r,n,a,i,o){i=i||e;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!n?r:Ek(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function Ik(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var ds,Ni,kg,Pc="\0_ec_inner",Eg=1,Lk={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},Ok={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},Sl={};function Rk(e){k(e,function(t,r){if(!Se.hasClass(r)){var n=Lk[r];n&&!Sl[n]&&(et("Component "+r+` is used but not imported.
29
+ `){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var h=wt(d,t),p=n?!1:!oA(d);if(i.length?c+h>r:a+c+h>r){c?(s||l)&&(p?(s||(s=l,l="",u=0,c=u),i.push(s),o.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(c),s=d,c=h)):p?(i.push(l),o.push(u),l=d,u=h):(i.push(d),o.push(h));continue}c+=h,p?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!i.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(c)),i.length===1&&(c+=a),{accumWidth:c,lines:i,linesWidths:o}}var eh="__zr_style_"+Math.round(Math.random()*10),Un={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},su={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Un[eh]=!0;var zp=["z","z2","invisible"],sA=["invisible"],lA=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=_e(r),a=0;a<n.length;a++){var i=n[a];i==="style"?this.useStyle(r[i]):e.prototype.attrKV.call(this,i,r[i])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,a,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&uA(this,r,n)||o&&!o[0]&&!o[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();return i.contain(a[0],a[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,a=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new ye(0,0,0,0)),n?ye.applyTransform(r,a,n):r.copy(a),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new ye(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:G(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=zi,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&zi)},t.prototype.styleUpdated=function(){this.__dirty&=~zi},t.prototype.createStyle=function(r){return tu(Un,r)},t.prototype.useStyle=function(r){r[eh]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[eh]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,zp)},t.prototype._applyStateObj=function(r,n,a,i,o,s){e.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.style?o?i?u=n.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:a.style),this._mergeStyle(u,n.style)):l&&(u=a.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=_e(c),d=0;d<f.length;d++){var h=f[d];h in u&&(u[h]=u[h],this.style[h]=c[h])}for(var p=_e(u),d=0;d<p.length;d++){var h=p[d];this.style[h]=this.style[h]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var m=this.__inHover?sA:zp,d=0;d<m.length;d++){var h=m[d];n&&n[h]!=null?this[h]=n[h]:l&&a[h]!=null&&(this[h]=a[h])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},t.prototype._mergeStyle=function(r,n){return G(r,n),r},t.prototype.getAnimationStyleProps=function(){return su},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=_t|zi}(),t}(A_),vc=new ye(0,0,0,0),pc=new ye(0,0,0,0);function uA(e,t,r){return vc.copy(e.getBoundingRect()),e.transform&&vc.applyTransform(e.transform),pc.width=t,pc.height=r,!vc.intersect(pc)}const ra=lA;var Lt=Math.min,Ot=Math.max,gc=Math.sin,mc=Math.cos,xn=Math.PI*2,ts=ni(),rs=ni(),ns=ni();function Gp(e,t,r,n,a,i){a[0]=Lt(e,r),a[1]=Lt(t,n),i[0]=Ot(e,r),i[1]=Ot(t,n)}var Hp=[],Up=[];function cA(e,t,r,n,a,i,o,s,l,u){var c=__,f=$e,d=c(e,r,a,o,Hp);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var p=f(e,r,a,o,Hp[h]);l[0]=Lt(p,l[0]),u[0]=Ot(p,u[0])}d=c(t,n,i,s,Up);for(var h=0;h<d;h++){var m=f(t,n,i,s,Up[h]);l[1]=Lt(m,l[1]),u[1]=Ot(m,u[1])}l[0]=Lt(e,l[0]),u[0]=Ot(e,u[0]),l[0]=Lt(o,l[0]),u[0]=Ot(o,u[0]),l[1]=Lt(t,l[1]),u[1]=Ot(t,u[1]),l[1]=Lt(s,l[1]),u[1]=Ot(s,u[1])}function fA(e,t,r,n,a,i,o,s){var l=w_,u=Ke,c=Ot(Lt(l(e,r,a),1),0),f=Ot(Lt(l(t,n,i),1),0),d=u(e,r,a,c),h=u(t,n,i,f);o[0]=Lt(e,a,d),o[1]=Lt(t,i,h),s[0]=Ot(e,a,d),s[1]=Ot(t,i,h)}function hA(e,t,r,n,a,i,o,s,l){var u=Pa,c=Ia,f=Math.abs(a-i);if(f%xn<1e-4&&f>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(ts[0]=mc(a)*r+e,ts[1]=gc(a)*n+t,rs[0]=mc(i)*r+e,rs[1]=gc(i)*n+t,u(s,ts,rs),c(l,ts,rs),a=a%xn,a<0&&(a=a+xn),i=i%xn,i<0&&(i=i+xn),a>i&&!o?i+=xn:a<i&&o&&(a+=xn),o){var d=i;i=a,a=d}for(var h=0;h<i;h+=Math.PI/2)h>a&&(ns[0]=mc(h)*r+e,ns[1]=gc(h)*n+t,u(s,ns,s),c(l,ns,l))}var ge={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Tn=[],Nn=[],nr=[],zr=[],ar=[],ir=[],yc=Math.min,_c=Math.max,Dn=Math.cos,An=Math.sin,br=Math.abs,th=Math.PI,Zr=th*2,wc=typeof Float32Array<"u",Ci=[];function bc(e){var t=Math.round(e/th*1e8)/1e8;return t%2*th}function Y_(e,t){var r=bc(e[0]);r<0&&(r+=Zr);var n=r-e[0],a=e[1];a+=n,!t&&a-r>=Zr?a=r+Zr:t&&r-a>=Zr?a=r-Zr:!t&&r>a?a=r+(Zr-bc(r-a)):t&&r<a&&(a=r-(Zr-bc(a-r))),e[0]=r,e[1]=a}var Zn=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=br(n/il/t)||0,this._uy=br(n/il/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},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(t,r){return this._drawPendingPt(),this.addData(ge.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=br(t-this._xi),a=br(r-this._yi),i=n>this._ux||a>this._uy;if(this.addData(ge.L,t,r),this._ctx&&i&&this._ctx.lineTo(t,r),i)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+a*a;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,a,i,o){return this._drawPendingPt(),this.addData(ge.C,t,r,n,a,i,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,a,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,a){return this._drawPendingPt(),this.addData(ge.Q,t,r,n,a),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,a),this._xi=n,this._yi=a,this},e.prototype.arc=function(t,r,n,a,i,o){this._drawPendingPt(),Ci[0]=a,Ci[1]=i,Y_(Ci,o),a=Ci[0],i=Ci[1];var s=i-a;return this.addData(ge.A,t,r,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,a,i,o),this._xi=Dn(i)*n+t,this._yi=An(i)*n+r,this},e.prototype.arcTo=function(t,r,n,a,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,a,i),this},e.prototype.rect=function(t,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,a),this.addData(ge.R,t,r,n,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(ge.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&wc&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,a=this._len,i=0;i<r;i++)n+=t[i].len();wc&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+n));for(var i=0;i<r;i++)for(var o=t[i].data,s=0;s<o.length;s++)this.data[a++]=o[s];this._len=a},e.prototype.addData=function(t,r,n,a,i,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},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 t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,wc&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){nr[0]=nr[1]=ar[0]=ar[1]=Number.MAX_VALUE,zr[0]=zr[1]=ir[0]=ir[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,a=0,i=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],a=r,i=n),s){case ge.M:r=a=t[o++],n=i=t[o++],ar[0]=a,ar[1]=i,ir[0]=a,ir[1]=i;break;case ge.L:Gp(r,n,t[o],t[o+1],ar,ir),r=t[o++],n=t[o++];break;case ge.C:cA(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],ar,ir),r=t[o++],n=t[o++];break;case ge.Q:fA(r,n,t[o++],t[o++],t[o],t[o+1],ar,ir),r=t[o++],n=t[o++];break;case ge.A:var u=t[o++],c=t[o++],f=t[o++],d=t[o++],h=t[o++],p=t[o++]+h;o+=1;var m=!t[o++];l&&(a=Dn(h)*f+u,i=An(h)*d+c),hA(u,c,f,d,h,p,m,ar,ir),r=Dn(p)*f+u,n=An(p)*d+c;break;case ge.R:a=r=t[o++],i=n=t[o++];var g=t[o++],y=t[o++];Gp(a,i,a+g,i+y,ar,ir);break;case ge.Z:r=a,n=i;break}Pa(nr,nr,ar),Ia(zr,zr,ir)}return o===0&&(nr[0]=nr[1]=zr[0]=zr[1]=0),new ye(nr[0],nr[1],zr[0]-nr[0],zr[1]-nr[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,a=this._uy,i=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<r;){var h=t[d++],p=d===1;p&&(i=t[d],o=t[d+1],s=i,l=o);var m=-1;switch(h){case ge.M:i=s=t[d++],o=l=t[d++];break;case ge.L:{var g=t[d++],y=t[d++],w=g-i,_=y-o;(br(w)>n||br(_)>a||d===r-1)&&(m=Math.sqrt(w*w+_*_),i=g,o=y);break}case ge.C:{var S=t[d++],x=t[d++],g=t[d++],y=t[d++],C=t[d++],T=t[d++];m=IN(i,o,S,x,g,y,C,T,10),i=C,o=T;break}case ge.Q:{var S=t[d++],x=t[d++],g=t[d++],y=t[d++];m=RN(i,o,S,x,g,y,10),i=g,o=y;break}case ge.A:var b=t[d++],D=t[d++],N=t[d++],A=t[d++],M=t[d++],I=t[d++],P=I+M;d+=1,p&&(s=Dn(M)*N+b,l=An(M)*A+D),m=_c(N,A)*yc(Zr,Math.abs(I)),i=Dn(P)*N+b,o=An(P)*A+D;break;case ge.R:{s=i=t[d++],l=o=t[d++];var L=t[d++],E=t[d++];m=L*2+E*2;break}case ge.Z:{var w=s-i,_=l-o;m=Math.sqrt(w*w+_*_),i=s,o=l;break}}m>=0&&(u[f++]=m,c+=m)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,a=this._ux,i=this._uy,o=this._len,s,l,u,c,f,d,h=r<1,p,m,g=0,y=0,w,_=0,S,x;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,w=r*m,!w)))e:for(var C=0;C<o;){var T=n[C++],b=C===1;switch(b&&(u=n[C],c=n[C+1],s=u,l=c),T!==ge.L&&_>0&&(t.lineTo(S,x),_=0),T){case ge.M:s=u=n[C++],l=c=n[C++],t.moveTo(u,c);break;case ge.L:{f=n[C++],d=n[C++];var D=br(f-u),N=br(d-c);if(D>a||N>i){if(h){var A=p[y++];if(g+A>w){var M=(w-g)/A;t.lineTo(u*(1-M)+f*M,c*(1-M)+d*M);break e}g+=A}t.lineTo(f,d),u=f,c=d,_=0}else{var I=D*D+N*N;I>_&&(S=f,x=d,_=I)}break}case ge.C:{var P=n[C++],L=n[C++],E=n[C++],B=n[C++],R=n[C++],V=n[C++];if(h){var A=p[y++];if(g+A>w){var M=(w-g)/A;rl(u,P,E,R,M,Tn),rl(c,L,B,V,M,Nn),t.bezierCurveTo(Tn[1],Nn[1],Tn[2],Nn[2],Tn[3],Nn[3]);break e}g+=A}t.bezierCurveTo(P,L,E,B,R,V),u=R,c=V;break}case ge.Q:{var P=n[C++],L=n[C++],E=n[C++],B=n[C++];if(h){var A=p[y++];if(g+A>w){var M=(w-g)/A;nl(u,P,E,M,Tn),nl(c,L,B,M,Nn),t.quadraticCurveTo(Tn[1],Nn[1],Tn[2],Nn[2]);break e}g+=A}t.quadraticCurveTo(P,L,E,B),u=E,c=B;break}case ge.A:var z=n[C++],Y=n[C++],Z=n[C++],F=n[C++],J=n[C++],Te=n[C++],fe=n[C++],Ve=!n[C++],je=Z>F?Z:F,Be=br(Z-F)>.001,Me=J+Te,te=!1;if(h){var A=p[y++];g+A>w&&(Me=J+Te*(w-g)/A,te=!0),g+=A}if(Be&&t.ellipse?t.ellipse(z,Y,Z,F,fe,J,Me,Ve):t.arc(z,Y,je,J,Me,Ve),te)break e;b&&(s=Dn(J)*Z+z,l=An(J)*F+Y),u=Dn(Me)*Z+z,c=An(Me)*F+Y;break;case ge.R:s=u=n[C],l=c=n[C+1],f=n[C++],d=n[C++];var le=n[C++],gt=n[C++];if(h){var A=p[y++];if(g+A>w){var Le=w-g;t.moveTo(f,d),t.lineTo(f+yc(Le,le),d),Le-=le,Le>0&&t.lineTo(f+le,d+yc(Le,gt)),Le-=gt,Le>0&&t.lineTo(f+_c(le-Le,0),d+gt),Le-=le,Le>0&&t.lineTo(f,d+_c(gt-Le,0));break e}g+=A}t.rect(f,d,le,gt);break;case ge.Z:if(h){var A=p[y++];if(g+A>w){var M=(w-g)/A;t.lineTo(u*(1-M)+s*M,c*(1-M)+l*M);break e}g+=A}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=ge,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function pa(e,t,r,n,a,i,o){if(a===0)return!1;var s=a,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||i>e+s&&i>r+s||i<e-s&&i<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(i-e)<=s/2;var c=l*i-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function dA(e,t,r,n,a,i,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>t+f&&c>n+f&&c>i+f&&c>s+f||c<t-f&&c<n-f&&c<i-f&&c<s-f||u>e+f&&u>r+f&&u>a+f&&u>o+f||u<e-f&&u<r-f&&u<a-f&&u<o-f)return!1;var d=PN(e,t,r,n,a,i,o,s,u,c,null);return d<=f/2}function vA(e,t,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>i+u||l<t-u&&l<n-u&&l<i-u||s>e+u&&s>r+u&&s>a+u||s<e-u&&s<r-u&&s<a-u)return!1;var c=ON(e,t,r,n,a,i,s,l,null);return c<=u/2}var Wp=Math.PI*2;function as(e){return e%=Wp,e<0&&(e+=Wp),e}var xi=Math.PI*2;function pA(e,t,r,n,a,i,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>r||c+u<r)return!1;if(Math.abs(n-a)%xi<1e-4)return!0;if(i){var f=n;n=as(a),a=as(f)}else n=as(n),a=as(a);n>a&&(a+=xi);var d=Math.atan2(l,s);return d<0&&(d+=xi),d>=n&&d<=a||d+xi>=n&&d+xi<=a}function Mn(e,t,r,n,a,i){if(i>t&&i>n||i<t&&i<n||n===t)return 0;var o=(i-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===a?1/0:l>a?s:0}var Gr=Zn.CMD,kn=Math.PI*2,gA=1e-4;function mA(e,t){return Math.abs(e-t)<gA}var nt=[-1,-1,-1],kt=[-1,-1];function yA(){var e=kt[0];kt[0]=kt[1],kt[1]=e}function _A(e,t,r,n,a,i,o,s,l,u){if(u>t&&u>n&&u>i&&u>s||u<t&&u<n&&u<i&&u<s)return 0;var c=tl(t,n,i,s,u,nt);if(c===0)return 0;for(var f=0,d=-1,h=void 0,p=void 0,m=0;m<c;m++){var g=nt[m],y=g===0||g===1?.5:1,w=$e(e,r,a,o,g);w<l||(d<0&&(d=__(t,n,i,s,kt),kt[1]<kt[0]&&d>1&&yA(),h=$e(t,n,i,s,kt[0]),d>1&&(p=$e(t,n,i,s,kt[1]))),d===2?g<kt[0]?f+=h<t?y:-y:g<kt[1]?f+=p<h?y:-y:f+=s<p?y:-y:g<kt[0]?f+=h<t?y:-y:f+=s<h?y:-y)}return f}function wA(e,t,r,n,a,i,o,s){if(s>t&&s>n&&s>i||s<t&&s<n&&s<i)return 0;var l=LN(t,n,i,s,nt);if(l===0)return 0;var u=w_(t,n,i);if(u>=0&&u<=1){for(var c=0,f=Ke(t,n,i,u),d=0;d<l;d++){var h=nt[d]===0||nt[d]===1?.5:1,p=Ke(e,r,a,nt[d]);p<o||(nt[d]<u?c+=f<t?h:-h:c+=i<f?h:-h)}return c}else{var h=nt[0]===0||nt[0]===1?.5:1,p=Ke(e,r,a,nt[0]);return p<o?0:i<t?h:-h}}function bA(e,t,r,n,a,i,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);nt[0]=-l,nt[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=kn-1e-4){n=0,a=kn;var c=i?1:-1;return o>=nt[0]+e&&o<=nt[1]+e?c:0}if(n>a){var f=n;n=a,a=f}n<0&&(n+=kn,a+=kn);for(var d=0,h=0;h<2;h++){var p=nt[h];if(p+e>o){var m=Math.atan2(s,p),c=i?1:-1;m<0&&(m=kn+m),(m>=n&&m<=a||m+kn>=n&&m+kn<=a)&&(m>Math.PI/2&&m<Math.PI*1.5&&(c=-c),d+=c)}}return d}function q_(e,t,r,n,a){for(var i=e.data,o=e.len(),s=0,l=0,u=0,c=0,f=0,d,h,p=0;p<o;){var m=i[p++],g=p===1;switch(m===Gr.M&&p>1&&(r||(s+=Mn(l,u,c,f,n,a))),g&&(l=i[p],u=i[p+1],c=l,f=u),m){case Gr.M:c=i[p++],f=i[p++],l=c,u=f;break;case Gr.L:if(r){if(pa(l,u,i[p],i[p+1],t,n,a))return!0}else s+=Mn(l,u,i[p],i[p+1],n,a)||0;l=i[p++],u=i[p++];break;case Gr.C:if(r){if(dA(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],t,n,a))return!0}else s+=_A(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],n,a)||0;l=i[p++],u=i[p++];break;case Gr.Q:if(r){if(vA(l,u,i[p++],i[p++],i[p],i[p+1],t,n,a))return!0}else s+=wA(l,u,i[p++],i[p++],i[p],i[p+1],n,a)||0;l=i[p++],u=i[p++];break;case Gr.A:var y=i[p++],w=i[p++],_=i[p++],S=i[p++],x=i[p++],C=i[p++];p+=1;var T=!!(1-i[p++]);d=Math.cos(x)*_+y,h=Math.sin(x)*S+w,g?(c=d,f=h):s+=Mn(l,u,d,h,n,a);var b=(n-y)*S/_+y;if(r){if(pA(y,w,S,x,x+C,T,t,b,a))return!0}else s+=bA(y,w,S,x,x+C,T,b,a);l=Math.cos(x+C)*_+y,u=Math.sin(x+C)*S+w;break;case Gr.R:c=l=i[p++],f=u=i[p++];var D=i[p++],N=i[p++];if(d=c+D,h=f+N,r){if(pa(c,f,d,f,t,n,a)||pa(d,f,d,h,t,n,a)||pa(d,h,c,h,t,n,a)||pa(c,h,c,f,t,n,a))return!0}else s+=Mn(d,f,d,h,n,a),s+=Mn(c,h,c,f,n,a);break;case Gr.Z:if(r){if(pa(l,u,c,f,t,n,a))return!0}else s+=Mn(l,u,c,f,n,a);l=c,u=f;break}}return!r&&!mA(u,f)&&(s+=Mn(l,u,c,f,n,a)||0),s!==0}function SA(e,t,r){return q_(e,0,!1,t,r)}function CA(e,t,r,n){return q_(e,t,!0,r,n)}var j_=he({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Un),xA={style:he({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},su.style)},Sc=pr.concat(["invisible","culling","z","z2","zlevel","parent"]),TA=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){r.buildPath(l,r.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<Sc.length;++s)a[Sc[s]]=this[Sc[s]];a.__dirty|=_t}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=_e(r);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=r[o];o==="style"?this.style?G(this.style,s):this.useStyle(s):o==="shape"?G(this.shape,s):e.prototype.attrKV.call(this,o,s)}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 r=this.style.fill;if(r!=="none"){if(j(r)){var n=al(r,0);return n>.5?Zf:n>.2?aD:Kf}else if(r)return Kf}return Zf},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(j(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=al(r,0)<Xf;if(i===o)return n}},t.prototype.buildPath=function(r,n,a){},t.prototype.pathUpdated=function(){this.__dirty&=~Aa},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new Zn(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,a=!r;if(a){var i=!1;this.path||(i=!0,this.createPathProxy());var o=this.path;(i||this.__dirty&Aa)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||a){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect(),o=this.style;if(r=a[0],n=a[1],i.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),CA(s,l/u,r,n)))return!0}if(this.hasFill())return SA(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Aa,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=n:G(a,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Aa)},t.prototype.createStyle=function(r){return tu(j_,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=G({},this.shape))},t.prototype._applyStateObj=function(r,n,a,i,o,s){e.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=G({},a.shape),G(u,n.shape)):(u=G({},i?this.shape:a.shape),G(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=G({},this.shape);for(var c={},f=_e(u),d=0;d<f.length;d++){var h=f[d];typeof u[h]=="object"?this.shape[h]=u[h]:c[h]=u[h]}this._transitionState(r,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.shape&&(a=a||{},this._mergeStyle(a,o.shape))}return a&&(n.shape=a),n},t.prototype.getAnimationStyleProps=function(){return xA},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(i){H(o,i);function o(s){var l=i.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return ue(r.style)},o.prototype.getDefaultShape=function(){return ue(r.shape)},o}(t);for(var a in r)typeof r[a]=="function"&&(n.prototype[a]=r[a]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=_t|zi|Aa}(),t}(ra);const pe=TA;var NA=he({strokeFirst:!0,font:jn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},j_),X_=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return tu(NA,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var a=yd(n,r.font,r.textAlign,r.textBaseline);if(a.x+=r.x||0,a.y+=r.y||0,this.hasStroke()){var i=r.lineWidth;a.x-=i/2,a.y-=i/2,a.width+=i,a.height+=i}this._rect=a}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(ra);X_.prototype.type="tspan";const rh=X_;var DA=he({x:0,y:0},Un),AA={style:he({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},su.style)};function MA(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Z_=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return tu(DA,r)},t.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var i=MA(n.image)?n.image:this.__image;if(!i)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?i[r]:i[r]/i[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return AA},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new ye(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ra);Z_.prototype.type="image";const gn=Z_;function kA(e,t){var r=t.x,n=t.y,a=t.width,i=t.height,o=t.r,s,l,u,c;a<0&&(r=r+a,a=-a),i<0&&(n=n+i,i=-i),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>a&&(f=s+l,s*=a/f,l*=a/f),u+c>a&&(f=u+c,u*=a/f,c*=a/f),l+u>i&&(f=l+u,l*=i/f,u*=i/f),s+c>i&&(f=s+c,s*=i/f,c*=i/f),e.moveTo(r+s,n),e.lineTo(r+a-l,n),l!==0&&e.arc(r+a-l,n+l,l,-Math.PI/2,0),e.lineTo(r+a,n+i-u),u!==0&&e.arc(r+a-u,n+i-u,u,0,Math.PI/2),e.lineTo(r+c,n+i),c!==0&&e.arc(r+c,n+i-c,c,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Oa=Math.round;function K_(e,t,r){if(t){var n=t.x1,a=t.x2,i=t.y1,o=t.y2;e.x1=n,e.x2=a,e.y1=i,e.y2=o;var s=r&&r.lineWidth;return s&&(Oa(n*2)===Oa(a*2)&&(e.x1=e.x2=zn(n,s,!0)),Oa(i*2)===Oa(o*2)&&(e.y1=e.y2=zn(i,s,!0))),e}}function J_(e,t,r){if(t){var n=t.x,a=t.y,i=t.width,o=t.height;e.x=n,e.y=a,e.width=i,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=zn(n,s,!0),e.y=zn(a,s,!0),e.width=Math.max(zn(n+i,s,!1)-e.x,i===0?0:1),e.height=Math.max(zn(a+o,s,!1)-e.y,o===0?0:1)),e}}function zn(e,t,r){if(!t)return e;var n=Oa(e*2);return(n+Oa(t))%2===0?n/2:(n+(r?1:-1))/2}var EA=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),PA={},Q_=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new EA},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=J_(PA,n,this.style);a=l.x,i=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,i=n.y,o=n.width,s=n.height;n.r?kA(r,n):r.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(pe);Q_.prototype.type="rect";const ke=Q_;var Yp={fill:"#000"},qp=2,IA={style:he({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},su.style)},e1=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Yp,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];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 r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,VA(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);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 r=new ye(0,0,0,0),n=this._children,a=[],i=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(r.copy(l),r.applyTransform(u),i=i||r.clone(),i.union(r)):(i=i||l.clone(),i.union(l))}this._rect=i||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Yp},t.prototype.setTextContent=function(r){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(r,n){if(!n)return r;var a=n.rich,i=r.rich||a&&{};return G(r,n),a&&i?(this._mergeRich(i,a),r.rich=i):i&&(r.rich=i),r},t.prototype._mergeRich=function(r,n){for(var a=_e(n),i=0;i<a.length;i++){var o=a[i];r[o]=r[o]||{},G(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return IA},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||jn,a=r.padding,i=eg(r),o=eA(i,r),s=Cc(r),l=!!r.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,d=o.lines,h=o.lineHeight,p=this._defaultStyle,m=r.x||0,g=r.y||0,y=r.align||p.align||"left",w=r.verticalAlign||p.verticalAlign||"top",_=m,S=Ma(g,o.contentHeight,w);if(s||a){var x=Hi(m,c,y),C=Ma(g,u,w);s&&this._renderBackground(r,r,x,C,c,u)}S+=h/2,a&&(_=Qp(m,y,a),w==="top"?S+=a[0]:w==="bottom"&&(S-=a[2]));for(var T=0,b=!1,D=Jp("fill"in r?r.fill:(b=!0,p.fill)),N=Kp("stroke"in r?r.stroke:!l&&(!p.autoStroke||b)?(T=qp,p.stroke):null),A=r.textShadowBlur>0,M=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),I=o.calculatedLineHeight,P=0;P<d.length;P++){var L=this._getOrCreateChild(rh),E=L.createStyle();L.useStyle(E),E.text=d[P],E.x=_,E.y=S,y&&(E.textAlign=y),E.textBaseline="middle",E.opacity=r.opacity,E.strokeFirst=!0,A&&(E.shadowBlur=r.textShadowBlur||0,E.shadowColor=r.textShadowColor||"transparent",E.shadowOffsetX=r.textShadowOffsetX||0,E.shadowOffsetY=r.textShadowOffsetY||0),E.stroke=N,E.fill=D,N&&(E.lineWidth=r.lineWidth||T,E.lineDash=r.lineDash,E.lineDashOffset=r.lineDashOffset||0),E.font=n,Xp(E,r),S+=h,M&&L.setBoundingRect(new ye(Hi(E.x,r.width,E.textAlign),Ma(E.y,I,E.textBaseline),f,I))}},t.prototype._updateRichTexts=function(){var r=this.style,n=eg(r),a=nA(n,r),i=a.width,o=a.outerWidth,s=a.outerHeight,l=r.padding,u=r.x||0,c=r.y||0,f=this._defaultStyle,d=r.align||f.align,h=r.verticalAlign||f.verticalAlign,p=Hi(u,o,d),m=Ma(c,s,h),g=p,y=m;l&&(g+=l[3],y+=l[0]);var w=g+i;Cc(r)&&this._renderBackground(r,r,p,m,o,s);for(var _=!!r.backgroundColor,S=0;S<a.lines.length;S++){for(var x=a.lines[S],C=x.tokens,T=C.length,b=x.lineHeight,D=x.width,N=0,A=g,M=w,I=T-1,P=void 0;N<T&&(P=C[N],!P.align||P.align==="left");)this._placeToken(P,r,b,y,A,"left",_),D-=P.width,A+=P.width,N++;for(;I>=0&&(P=C[I],P.align==="right");)this._placeToken(P,r,b,y,M,"right",_),D-=P.width,M-=P.width,I--;for(A+=(i-(A-g)-(w-M)-D)/2;N<=I;)P=C[N],this._placeToken(P,r,b,y,A+P.width/2,"center",_),A+=P.width,N++;y+=b}},t.prototype._placeToken=function(r,n,a,i,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=i+a/2;c==="top"?f=i+r.height/2:c==="bottom"&&(f=i+a-r.height/2);var d=!r.isLineHolder&&Cc(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var h=!!u.backgroundColor,p=r.textPadding;p&&(o=Qp(o,s,p),f-=r.height/2-p[0]-r.innerHeight/2);var m=this._getOrCreateChild(rh),g=m.createStyle();m.useStyle(g);var y=this._defaultStyle,w=!1,_=0,S=Jp("fill"in u?u.fill:"fill"in n?n.fill:(w=!0,y.fill)),x=Kp("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!y.autoStroke||w)?(_=qp,y.stroke):null),C=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=o,g.y=f,C&&(g.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,g.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",g.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,g.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),g.textAlign=s,g.textBaseline="middle",g.font=r.font||jn,g.opacity=sn(u.opacity,n.opacity,1),Xp(g,u),x&&(g.lineWidth=sn(u.lineWidth,n.lineWidth,_),g.lineDash=ne(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=x),S&&(g.fill=S);var T=r.contentWidth,b=r.contentHeight;m.setBoundingRect(new ye(Hi(g.x,T,g.textAlign),Ma(g.y,b,g.textBaseline),T,b))},t.prototype._renderBackground=function(r,n,a,i,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,d=l&&!f,h=r.borderRadius,p=this,m,g;if(d||r.lineHeight||u&&c){m=this._getOrCreateChild(ke),m.useStyle(m.createStyle()),m.style.fill=null;var y=m.shape;y.x=a,y.y=i,y.width=o,y.height=s,y.r=h,m.dirtyShape()}if(d){var w=m.style;w.fill=l||null,w.fillOpacity=ne(r.fillOpacity,1)}else if(f){g=this._getOrCreateChild(gn),g.onload=function(){p.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=i,_.width=o,_.height=s}if(u&&c){var w=m.style;w.lineWidth=u,w.stroke=c,w.strokeOpacity=ne(r.strokeOpacity,1),w.lineDash=r.borderDash,w.lineDashOffset=r.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(w.strokeFirst=!0,w.lineWidth*=2)}var S=(m||g).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=sn(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return BA(r)&&(n=[r.fontStyle,r.fontWeight,RA(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&fr(n)||r.textFont||r.font},t}(ra),LA={left:!0,right:1,center:1},OA={top:1,bottom:1,middle:1},jp=["fontStyle","fontWeight","fontSize","fontFamily"];function RA(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?sd+"px":e+"px"}function Xp(e,t){for(var r=0;r<jp.length;r++){var n=jp[r],a=t[n];a!=null&&(e[n]=a)}}function BA(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function VA(e){return Zp(e),k(e.rich,Zp),e}function Zp(e){if(e){e.font=e1.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||LA[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||OA[r]?r:"top";var n=e.padding;n&&(e.padding=o_(e.padding))}}function Kp(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function Jp(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function Qp(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function eg(e){var t=e.text;return t!=null&&(t+=""),t}function Cc(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const He=e1;var de=Ne(),$A=function(e,t,r,n){if(n){var a=de(n);a.dataIndex=r,a.dataType=t,a.seriesIndex=e,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=de(i);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},tg=1,rg={},t1=Ne(),xd=Ne(),Td=0,lu=1,uu=2,vt=["emphasis","blur","select"],fl=["normal","emphasis","blur","select"],FA=10,zA=9,Wn="highlight",Gs="downplay",ro="select",Hs="unselect",no="toggleSelect";function ga(e){return e!=null&&e!=="none"}function cu(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function r1(e){cu(e,"emphasis",uu)}function n1(e){e.hoverState===uu&&cu(e,"normal",Td)}function Nd(e){cu(e,"blur",lu)}function a1(e){e.hoverState===lu&&cu(e,"normal",Td)}function GA(e){e.selected=!0}function HA(e){e.selected=!1}function ng(e,t,r){t(e,r)}function Vr(e,t,r){ng(e,t,r),e.isGroup&&e.traverse(function(n){ng(n,t,r)})}function ag(e,t){switch(t){case"emphasis":e.hoverState=uu;break;case"normal":e.hoverState=Td;break;case"blur":e.hoverState=lu;break;case"select":e.selected=!0}}function UA(e,t,r,n){for(var a=e.style,i={},o=0;o<t.length;o++){var s=t[o],l=a[s];i[s]=l??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(i,t)}return i}function WA(e,t,r,n){var a=r&&ce(r,"select")>=0,i=!1;if(e instanceof pe){var o=t1(e),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(ga(s)||ga(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=G({},n),u=G({},u),u.fill=s):!ga(u.fill)&&ga(s)?(i=!0,n=G({},n),u=G({},u),u.fill=wp(s)):!ga(u.stroke)&&ga(l)&&(i||(n=G({},n),u=G({},u)),u.stroke=wp(l)),n.style=u}}if(n&&n.z2==null){i||(n=G({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??FA)}return n}function YA(e,t,r){if(r&&r.z2==null){r=G({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??zA)}return r}function qA(e,t,r){var n=ce(e.currentStates,t)>=0,a=e.style.opacity,i=n?null:UA(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=G({},r),o=G({opacity:n?a:i.opacity*.1},o),r.style=o),r}function xc(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return WA(this,e,t,r);if(e==="blur")return qA(this,e,r);if(e==="select")return YA(this,e,r)}return r}function i1(e){e.stateProxy=xc;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=xc),r&&(r.stateProxy=xc)}function ig(e,t){!u1(e,t)&&!e.__highByOuter&&Vr(e,r1)}function og(e,t){!u1(e,t)&&!e.__highByOuter&&Vr(e,n1)}function go(e,t){e.__highByOuter|=1<<(t||0),Vr(e,r1)}function mo(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Vr(e,n1)}function o1(e){Vr(e,Nd)}function Dd(e){Vr(e,a1)}function s1(e){Vr(e,GA)}function l1(e){Vr(e,HA)}function u1(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function c1(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(a,i){var o=xd(i),s=a==="series",l=s?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){a1(u)}),s&&r.push(i)),o.isBlured=!1}),k(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,t)})}function nh(e,t,r,n){var a=n.getModel();r=r||"coordinateSystem";function i(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&Dd(d)}}if(e!=null&&!(!t||t==="none")){var o=a.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!d||t==="series"&&c)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(g){g.__highByOuter&&c&&t==="self"||Nd(g)}),st(t))i(u.getData(),t);else if(K(t))for(var p=_e(t),m=0;m<p.length;m++)i(u.getData(p[m]),t[p[m]]);l.push(u),xd(u).isBlured=!0}}),a.eachComponent(function(u,c){if(u!=="series"){var f=n.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,a)}})}}function ah(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){xd(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){Nd(i)})}}}function jA(e,t,r){var n=e.seriesIndex,a=e.getData(t.dataType);if(!a){process.env.NODE_ENV!=="production"&&et("Unknown dataType "+t.dataType);return}var i=Xn(a,t);i=(U(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=de(o);nh(n,u.focus,u.blurScope,r)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&nh(n,c,f,r)}}function Ad(e,t,r,n){var a={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return a;var i=n.getModel().getComponent(e,t);if(!i)return a;var o=n.getViewOfComponentModel(i);if(!o||!o.findHighDownDispatchers)return a;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(process.env.NODE_ENV!=="production"&&!Ka(s[u])&&et("param should be highDownDispatcher"),de(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function XA(e,t,r){process.env.NODE_ENV!=="production"&&!Ka(e)&&et("param should be highDownDispatcher");var n=de(e),a=Ad(n.componentMainType,n.componentIndex,n.componentHighDownName,r),i=a.dispatchers,o=a.focusSelf;i?(o&&ah(n.componentMainType,n.componentIndex,r),k(i,function(s){return ig(s,t)})):(nh(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&ah(n.componentMainType,n.componentIndex,r),ig(e,t))}function ZA(e,t,r){process.env.NODE_ENV!=="production"&&!Ka(e)&&et("param should be highDownDispatcher"),c1(r);var n=de(e),a=Ad(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?k(a,function(i){return og(i,t)}):og(e,t)}function KA(e,t,r){if(ih(t)){var n=t.dataType,a=e.getData(n),i=Xn(a,t);U(i)||(i=[i]),e[t.type===no?"toggleSelect":t.type===ro?"select":"unselect"](i,n)}}function sg(e){var t=e.getAllData();k(t,function(r){var n=r.data,a=r.type;n.eachItemGraphicEl(function(i,o){e.isSelected(o,a)?s1(i):l1(i)})})}function JA(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();k(n,function(a){a.data;var i=a.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function hl(e,t,r){f1(e,!0),Vr(e,i1),eM(e,t,r)}function QA(e){f1(e,!1)}function Kn(e,t,r,n){n?QA(e):hl(e,t,r)}function eM(e,t,r){var n=de(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var lg=["emphasis","blur","select"],tM={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function dl(e,t,r,n){r=r||"itemStyle";for(var a=0;a<lg.length;a++){var i=lg[a],o=t.getModel([i,r]),s=e.ensureState(i);s.style=n?n(o):o[tM[r]]()}}function f1(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Ka(e){return!!(e&&e.__highDownDispatcher)}function rM(e){var t=rg[e];return t==null&&tg<=32&&(t=rg[e]=tg++),t}function ih(e){var t=e.type;return t===ro||t===Hs||t===no}function ug(e){var t=e.type;return t===Wn||t===Gs}function nM(e){var t=t1(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var ma=Zn.CMD,aM=[[],[],[]],cg=Math.sqrt,iM=Math.atan2;function oM(e,t){if(t){var r=e.data,n=e.len(),a,i,o,s,l,u,c=ma.M,f=ma.C,d=ma.L,h=ma.R,p=ma.A,m=ma.Q;for(o=0,s=0;o<n;){switch(a=r[o++],s=o,i=0,a){case c:i=1;break;case d:i=1;break;case f:i=3;break;case m:i=2;break;case p:var g=t[4],y=t[5],w=cg(t[0]*t[0]+t[1]*t[1]),_=cg(t[2]*t[2]+t[3]*t[3]),S=iM(-t[1]/_,t[0]/w);r[o]*=w,r[o++]+=g,r[o]*=_,r[o++]+=y,r[o++]*=w,r[o++]*=_,r[o++]+=S,r[o++]+=S,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],Vt(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Vt(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<i;l++){var x=aM[l];x[0]=r[o++],x[1]=r[o++],Vt(x,x,t),r[s++]=x[0],r[s++]=x[1]}}e.increaseVersion()}}var Tc=Math.sqrt,is=Math.sin,os=Math.cos,Ti=Math.PI;function fg(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function oh(e,t){return(e[0]*t[0]+e[1]*t[1])/(fg(e)*fg(t))}function hg(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(oh(e,t))}function dg(e,t,r,n,a,i,o,s,l,u,c){var f=l*(Ti/180),d=os(f)*(e-r)/2+is(f)*(t-n)/2,h=-1*is(f)*(e-r)/2+os(f)*(t-n)/2,p=d*d/(o*o)+h*h/(s*s);p>1&&(o*=Tc(p),s*=Tc(p));var m=(a===i?-1:1)*Tc((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,g=m*o*h/s,y=m*-s*d/o,w=(e+r)/2+os(f)*g-is(f)*y,_=(t+n)/2+is(f)*g+os(f)*y,S=hg([1,0],[(d-g)/o,(h-y)/s]),x=[(d-g)/o,(h-y)/s],C=[(-1*d-g)/o,(-1*h-y)/s],T=hg(x,C);if(oh(x,C)<=-1&&(T=Ti),oh(x,C)>=1&&(T=0),T<0){var b=Math.round(T/Ti*1e6)/1e6;T=Ti*2+b%2*Ti}c.addData(u,w,_,o,s,S,T,f,i)}var sM=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,lM=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function uM(e){var t=new Zn;if(!e)return t;var r=0,n=0,a=r,i=n,o,s=Zn.CMD,l=e.match(sM);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,h=c.match(lM)||[],p=h.length,m=0;m<p;m++)h[m]=parseFloat(h[m]);for(var g=0;g<p;){var y=void 0,w=void 0,_=void 0,S=void 0,x=void 0,C=void 0,T=void 0,b=r,D=n,N=void 0,A=void 0;switch(f){case"l":r+=h[g++],n+=h[g++],d=s.L,t.addData(d,r,n);break;case"L":r=h[g++],n=h[g++],d=s.L,t.addData(d,r,n);break;case"m":r+=h[g++],n+=h[g++],d=s.M,t.addData(d,r,n),a=r,i=n,f="l";break;case"M":r=h[g++],n=h[g++],d=s.M,t.addData(d,r,n),a=r,i=n,f="L";break;case"h":r+=h[g++],d=s.L,t.addData(d,r,n);break;case"H":r=h[g++],d=s.L,t.addData(d,r,n);break;case"v":n+=h[g++],d=s.L,t.addData(d,r,n);break;case"V":n=h[g++],d=s.L,t.addData(d,r,n);break;case"C":d=s.C,t.addData(d,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),r=h[g-2],n=h[g-1];break;case"c":d=s.C,t.addData(d,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n),r+=h[g-2],n+=h[g-1];break;case"S":y=r,w=n,N=t.len(),A=t.data,o===s.C&&(y+=r-A[N-4],w+=n-A[N-3]),d=s.C,b=h[g++],D=h[g++],r=h[g++],n=h[g++],t.addData(d,y,w,b,D,r,n);break;case"s":y=r,w=n,N=t.len(),A=t.data,o===s.C&&(y+=r-A[N-4],w+=n-A[N-3]),d=s.C,b=r+h[g++],D=n+h[g++],r+=h[g++],n+=h[g++],t.addData(d,y,w,b,D,r,n);break;case"Q":b=h[g++],D=h[g++],r=h[g++],n=h[g++],d=s.Q,t.addData(d,b,D,r,n);break;case"q":b=h[g++]+r,D=h[g++]+n,r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,b,D,r,n);break;case"T":y=r,w=n,N=t.len(),A=t.data,o===s.Q&&(y+=r-A[N-4],w+=n-A[N-3]),r=h[g++],n=h[g++],d=s.Q,t.addData(d,y,w,r,n);break;case"t":y=r,w=n,N=t.len(),A=t.data,o===s.Q&&(y+=r-A[N-4],w+=n-A[N-3]),r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,y,w,r,n);break;case"A":_=h[g++],S=h[g++],x=h[g++],C=h[g++],T=h[g++],b=r,D=n,r=h[g++],n=h[g++],d=s.A,dg(b,D,r,n,C,T,_,S,x,d,t);break;case"a":_=h[g++],S=h[g++],x=h[g++],C=h[g++],T=h[g++],b=r,D=n,r+=h[g++],n+=h[g++],d=s.A,dg(b,D,r,n,C,T,_,S,x,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),r=a,n=i),o=d}return t.toStatic(),t}var h1=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(pe);function d1(e){return e.setData!=null}function v1(e,t){var r=uM(e),n=G({},t);return n.buildPath=function(a){if(d1(a)){a.setData(r.data);var i=a.getContext();i&&a.rebuildPath(i,1)}else{var i=a;r.rebuildPath(i,1)}},n.applyTransform=function(a){oM(r,a),this.dirtyShape()},n}function cM(e,t){return new h1(v1(e,t))}function fM(e,t){var r=v1(e,t),n=function(a){H(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return i}(h1);return n}function hM(e,t){for(var r=[],n=e.length,a=0;a<n;a++){var i=e[a];r.push(i.getUpdatedPathProxy(!0))}var o=new pe(t);return o.createPathProxy(),o.buildPath=function(s){if(d1(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var dM=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),p1=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new dM},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(pe);p1.prototype.type="circle";const Md=p1;var vM=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),g1=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new vM},t.prototype.buildPath=function(r,n){var a=.5522848,i=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*a,c=l*a;r.moveTo(i-s,o),r.bezierCurveTo(i-s,o-c,i-u,o-l,i,o-l),r.bezierCurveTo(i+u,o-l,i+s,o-c,i+s,o),r.bezierCurveTo(i+s,o+c,i+u,o+l,i,o+l),r.bezierCurveTo(i-u,o+l,i-s,o+c,i-s,o),r.closePath()},t}(pe);g1.prototype.type="ellipse";const m1=g1;var y1=Math.PI,Nc=y1*2,En=Math.sin,ya=Math.cos,pM=Math.acos,Xe=Math.atan2,vg=Math.abs,ao=Math.sqrt,Yi=Math.max,or=Math.min,Ht=1e-4;function gM(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,c=o-a,f=s-i,d=f*l-c*u;if(!(d*d<Ht))return d=(c*(t-i)-f*(e-a))/d,[e+d*l,t+d*u]}function ss(e,t,r,n,a,i,o){var s=e-r,l=t-n,u=(o?i:-i)/ao(s*s+l*l),c=u*l,f=-u*s,d=e+c,h=t+f,p=r+c,m=n+f,g=(d+p)/2,y=(h+m)/2,w=p-d,_=m-h,S=w*w+_*_,x=a-i,C=d*m-p*h,T=(_<0?-1:1)*ao(Yi(0,x*x*S-C*C)),b=(C*_-w*T)/S,D=(-C*w-_*T)/S,N=(C*_+w*T)/S,A=(-C*w+_*T)/S,M=b-g,I=D-y,P=N-g,L=A-y;return M*M+I*I>P*P+L*L&&(b=N,D=A),{cx:b,cy:D,x0:-c,y0:-f,x1:b*(a/x-1),y1:D*(a/x-1)}}function mM(e){var t;if(U(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function yM(e,t){var r,n=Yi(t.r,0),a=Yi(t.r0||0,0),i=n>0,o=a>0;if(!(!i&&!o)){if(i||(n=a,a=0),a>n){var s=n;n=a,a=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,h=vg(u-l),p=h>Nc&&h%Nc;if(p>Ht&&(h=p),!(n>Ht))e.moveTo(c,f);else if(h>Nc-Ht)e.moveTo(c+n*ya(l),f+n*En(l)),e.arc(c,f,n,l,u,!d),a>Ht&&(e.moveTo(c+a*ya(u),f+a*En(u)),e.arc(c,f,a,u,l,d));else{var m=void 0,g=void 0,y=void 0,w=void 0,_=void 0,S=void 0,x=void 0,C=void 0,T=void 0,b=void 0,D=void 0,N=void 0,A=void 0,M=void 0,I=void 0,P=void 0,L=n*ya(l),E=n*En(l),B=a*ya(u),R=a*En(u),V=h>Ht;if(V){var z=t.cornerRadius;z&&(r=mM(z),m=r[0],g=r[1],y=r[2],w=r[3]);var Y=vg(n-a)/2;if(_=or(Y,y),S=or(Y,w),x=or(Y,m),C=or(Y,g),D=T=Yi(_,S),N=b=Yi(x,C),(T>Ht||b>Ht)&&(A=n*ya(u),M=n*En(u),I=a*ya(l),P=a*En(l),h<y1)){var Z=gM(L,E,I,P,A,M,B,R);if(Z){var F=L-Z[0],J=E-Z[1],Te=A-Z[0],fe=M-Z[1],Ve=1/En(pM((F*Te+J*fe)/(ao(F*F+J*J)*ao(Te*Te+fe*fe)))/2),je=ao(Z[0]*Z[0]+Z[1]*Z[1]);D=or(T,(n-je)/(Ve+1)),N=or(b,(a-je)/(Ve-1))}}}if(!V)e.moveTo(c+L,f+E);else if(D>Ht){var Be=or(y,D),Me=or(w,D),te=ss(I,P,L,E,n,Be,d),le=ss(A,M,B,R,n,Me,d);e.moveTo(c+te.cx+te.x0,f+te.cy+te.y0),D<T&&Be===Me?e.arc(c+te.cx,f+te.cy,D,Xe(te.y0,te.x0),Xe(le.y0,le.x0),!d):(Be>0&&e.arc(c+te.cx,f+te.cy,Be,Xe(te.y0,te.x0),Xe(te.y1,te.x1),!d),e.arc(c,f,n,Xe(te.cy+te.y1,te.cx+te.x1),Xe(le.cy+le.y1,le.cx+le.x1),!d),Me>0&&e.arc(c+le.cx,f+le.cy,Me,Xe(le.y1,le.x1),Xe(le.y0,le.x0),!d))}else e.moveTo(c+L,f+E),e.arc(c,f,n,l,u,!d);if(!(a>Ht)||!V)e.lineTo(c+B,f+R);else if(N>Ht){var Be=or(m,N),Me=or(g,N),te=ss(B,R,A,M,a,-Me,d),le=ss(L,E,I,P,a,-Be,d);e.lineTo(c+te.cx+te.x0,f+te.cy+te.y0),N<b&&Be===Me?e.arc(c+te.cx,f+te.cy,N,Xe(te.y0,te.x0),Xe(le.y0,le.x0),!d):(Me>0&&e.arc(c+te.cx,f+te.cy,Me,Xe(te.y0,te.x0),Xe(te.y1,te.x1),!d),e.arc(c,f,a,Xe(te.cy+te.y1,te.cx+te.x1),Xe(le.cy+le.y1,le.cx+le.x1),d),Be>0&&e.arc(c+le.cx,f+le.cy,Be,Xe(le.y1,le.x1),Xe(le.y0,le.x0),!d))}else e.lineTo(c+B,f+R),e.arc(c,f,a,u,l,d)}e.closePath()}}}var _M=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),_1=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new _M},t.prototype.buildPath=function(r,n){yM(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(pe);_1.prototype.type="sector";const na=_1;var wM=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),w1=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new wM},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.PI*2;r.moveTo(a+n.r,i),r.arc(a,i,n.r,0,o,!1),r.moveTo(a+n.r0,i),r.arc(a,i,n.r0,0,o,!0)},t}(pe);w1.prototype.type="ring";const b1=w1;function bM(e,t,r,n){var a=[],i=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=e.length;d<h;d++)Pa(c,c,e[d]),Ia(f,f,e[d]);Pa(c,c,n[0]),Ia(f,f,n[1])}for(var d=0,h=e.length;d<h;d++){var p=e[d];if(r)l=e[d?d-1:h-1],u=e[(d+1)%h];else if(d===0||d===h-1){a.push(eN(e[d]));continue}else l=e[d-1],u=e[d+1];c_(i,u,l),Hu(i,i,t);var m=Of(p,l),g=Of(p,u),y=m+g;y!==0&&(m/=y,g/=y),Hu(o,i,-m),Hu(s,i,g);var w=rp([],p,o),_=rp([],p,s);n&&(Ia(w,w,c),Pa(w,w,f),Ia(_,_,c),Pa(_,_,f)),a.push(w),a.push(_)}return r&&a.push(a.shift()),a}function S1(e,t,r){var n=t.smooth,a=t.points;if(a&&a.length>=2){if(n){var i=bM(a,n,r,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var o=a.length,s=0;s<(r?o:o-1);s++){var l=i[s*2],u=i[s*2+1],c=a[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var s=1,f=a.length;s<f;s++)e.lineTo(a[s][0],a[s][1])}r&&e.closePath()}}var SM=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),C1=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new SM},t.prototype.buildPath=function(r,n){S1(r,n,!0)},t}(pe);C1.prototype.type="polygon";const kd=C1;var CM=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),ai=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new CM},t.prototype.buildPath=function(r,n){S1(r,n,!1)},t}(pe);ai.prototype.type="polyline";var xM={},TM=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),x1=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new TM},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=K_(xM,n,this.style);a=l.x1,i=l.y1,o=l.x2,s=l.y2}else a=n.x1,i=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(a,i),u<1&&(o=a*(1-u)+o*u,s=i*(1-u)+s*u),r.lineTo(o,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(pe);x1.prototype.type="line";const dn=x1;var ct=[],NM=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function pg(e,t,r){var n=e.cpx2,a=e.cpy2;return n!=null||a!=null?[(r?vp:$e)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?vp:$e)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?pp:Ke)(e.x1,e.cpx1,e.x2,t),(r?pp:Ke)(e.y1,e.cpy1,e.y2,t)]}var T1=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new NM},t.prototype.buildPath=function(r,n){var a=n.x1,i=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,f=n.cpy2,d=n.percent;d!==0&&(r.moveTo(a,i),c==null||f==null?(d<1&&(nl(a,l,o,d,ct),l=ct[1],o=ct[2],nl(i,u,s,d,ct),u=ct[1],s=ct[2]),r.quadraticCurveTo(l,u,o,s)):(d<1&&(rl(a,l,c,o,d,ct),l=ct[1],c=ct[2],o=ct[3],rl(i,u,f,s,d,ct),u=ct[1],f=ct[2],s=ct[3]),r.bezierCurveTo(l,u,c,f,o,s)))},t.prototype.pointAt=function(r){return pg(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=pg(this.shape,r,!0);return fd(n,n)},t}(pe);T1.prototype.type="bezier-curve";const Ed=T1;var DM=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),N1=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new DM},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),f=Math.sin(s);r.moveTo(c*o+a,f*o+i),r.arc(a,i,o,s,l,!u)},t}(pe);N1.prototype.type="arc";const Pd=N1;var AM=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),a=0;a<r.length;a++)n=n||r[a].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<r.length;a++)r[a].path||r[a].createPathProxy(),r[a].path.setScale(n[0],n[1],r[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(r,a[i].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),pe.prototype.getBoundingRect.call(this)},t}(pe);const MM=AM;var kM=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}();const D1=kM;var A1=function(e){H(t,e);function t(r,n,a,i,o,s){var l=e.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return t}(D1),EM=function(e){H(t,e);function t(r,n,a,i,o){var s=e.call(this,i)||this;return s.x=r??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return t}(D1);const PM=EM;var Pn=[0,0],In=[0,0],ls=new se,us=new se,IM=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new se;for(var n=0;n<2;n++)this._axes[n]=new se;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,a=this._axes,i=t.x,o=t.y,s=i+t.width,l=o+t.height;if(n[0].set(i,o),n[1].set(s,o),n[2].set(s,l),n[3].set(i,l),r)for(var u=0;u<4;u++)n[u].transform(r);se.sub(a[0],n[1],n[0]),se.sub(a[1],n[3],n[0]),a[0].normalize(),a[1].normalize();for(var u=0;u<2;u++)this._origin[u]=a[u].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,a=!r;return ls.set(1/0,1/0),us.set(0,0),!this._intersectCheckOneSide(this,t,ls,us,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,ls,us,a,-1)&&(n=!1,a)||a||se.copy(r,n?ls:us),n},e.prototype._intersectCheckOneSide=function(t,r,n,a,i,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,Pn),this._getProjMinMaxOnAxis(l,r._corners,In),Pn[1]<In[0]||Pn[0]>In[1]){if(s=!1,i)return s;var c=Math.abs(In[0]-Pn[1]),f=Math.abs(Pn[0]-In[1]);Math.min(c,f)>a.len()&&(c<f?se.scale(a,u,-c*o):se.scale(a,u,f*o))}else if(n){var c=Math.abs(In[0]-Pn[1]),f=Math.abs(Pn[0]-In[1]);Math.min(c,f)<n.len()&&(c<f?se.scale(n,u,c*o):se.scale(n,u,-f*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var a=this._axes[t],i=this._origin,o=r[0].dot(a)+i[t],s=o,l=o,u=1;u<r.length;u++){var c=r[u].dot(a)+i[t];s=Math.min(c,s),l=Math.max(c,l)}n[0]=s,n[1]=l},e}();const vl=IM;var LM=[],OM=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},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(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var a=0;a<r.length;a++)this.addDisplayable(r[a],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new ye(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],i=a.getBoundingRect().clone();a.needLocalTransform()&&i.applyTransform(a.getLocalTransform(LM)),r.union(i)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),i=this.getBoundingRect();if(i.contain(a[0],a[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t}(ra);const RM=OM;var BM=Ne();function Id(e,t,r,n,a){var i;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();i=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,f=void 0;n?(u=ne(n.duration,200),c=ne(n.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(f=i.delay)),ie(f)&&(f=f(r,a)),ie(u)&&(u=u(r));var d={duration:u||0,delay:f,easing:c};return d}else return null}function Ld(e,t,r,n,a,i,o){var s=!1,l;ie(a)?(o=i,i=a,a=null):K(a)&&(i=a.cb,o=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=Id(e,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,a):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,h=c.easing,p={duration:f,delay:d||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,p):t.animateTo(r,p)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),i&&i()}function tt(e,t,r,n,a,i){Ld("update",e,t,r,n,a,i)}function bt(e,t,r,n,a,i){Ld("enter",e,t,r,n,a,i)}function io(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function pl(e,t,r,n,a,i){io(e)||Ld("leave",e,t,r,n,a,i)}function gg(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),pl(e,{style:{opacity:0}},t,r,n)}function gl(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(a){a.isGroup||gg(a,t,r,n)}):gg(e,t,r,n)}function Od(e){BM(e).oldStyle=e.style}var ml=Math.max,yl=Math.min,sh={};function VM(e){return pe.extend(e)}var $M=fM;function FM(e,t){return $M(e,t)}function er(e,t){sh[e]=t}function M1(e){if(sh.hasOwnProperty(e))return sh[e]}function fu(e,t,r,n){var a=cM(e,t);return r&&(n==="center"&&(r=E1(r,a.getBoundingRect())),P1(a,r)),a}function k1(e,t,r){var n=new gn({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(r==="center"){var i={width:a.width,height:a.height};n.setStyle(E1(t,i))}}});return n}function E1(e,t){var r=t.width/t.height,n=e.height*r,a;n<=e.width?a=e.height:(n=e.width,a=n/r);var i=e.x+e.width/2,o=e.y+e.height/2;return{x:i-n/2,y:o-a/2,width:n,height:a}}var zM=hM;function P1(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function yo(e,t){return K_(e,e,{lineWidth:t}),e}function GM(e){return J_(e.shape,e.shape,e.style),e}var HM=zn;function I1(e,t){for(var r=dd([]);e&&e!==t;)Va(r,e.getLocalTransform(),r),e=e.parent;return r}function _o(e,t,r){return t&&!st(t)&&(t=md.getLocalTransform(t)),r&&(t=pd([],t)),Vt([],e,t)}function L1(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),a=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),i=[e==="left"?-n:e==="right"?n:0,e==="top"?-a:e==="bottom"?a:0];return i=_o(i,t,r),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function mg(e){return!e.isGroup}function UM(e){return e.shape!=null}function O1(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){mg(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return UM(o)&&(s.shape=G({},o.shape)),s}var i=n(e);t.traverse(function(o){if(mg(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),tt(o,l,r,de(o).dataIndex)}}})}function WM(e,t){return q(e,function(r){var n=r[0];n=ml(n,t.x),n=yl(n,t.x+t.width);var a=r[1];return a=ml(a,t.y),a=yl(a,t.y+t.height),[n,a]})}function YM(e,t){var r=ml(e.x,t.x),n=yl(e.x+e.width,t.x+t.width),a=ml(e.y,t.y),i=yl(e.y+e.height,t.y+t.height);if(n>=r&&i>=a)return{x:r,y:a,width:n-r,height:i-a}}function Rd(e,t,r){var n=G({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),he(a,r),new gn(n)):fu(e.replace("path://",""),n,r,"center")}function qM(e,t,r,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(R1(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function R1(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,c=o-a,f=s-i,d=Dc(c,f,l,u);if(jM(d))return!1;var h=e-a,p=t-i,m=Dc(h,p,l,u)/d;if(m<0||m>1)return!1;var g=Dc(h,p,c,f)/d;return!(g<0||g>1)}function Dc(e,t,r,n){return e*n-r*t}function jM(e){return e<=1e-6&&e>=-1e-6}function Bd(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,a=j(t)?{formatter:t}:t,i=r.mainType,o=r.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=e.formatterParamsExtra;l&&k(_e(l),function(c){W(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=de(e.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:he({content:n,formatterParams:s},a)}}function yg(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function ii(e,t){if(e)if(U(e))for(var r=0;r<e.length;r++)yg(e[r],t);else yg(e,t)}er("circle",Md);er("ellipse",m1);er("sector",na);er("ring",b1);er("polygon",kd);er("polyline",ai);er("rect",ke);er("line",dn);er("bezierCurve",Ed);er("arc",Pd);const XM=Object.freeze(Object.defineProperty({__proto__:null,Arc:Pd,BezierCurve:Ed,BoundingRect:ye,Circle:Md,CompoundPath:MM,Ellipse:m1,Group:Ie,Image:gn,IncrementalDisplayable:RM,Line:dn,LinearGradient:A1,OrientedBoundingRect:vl,Path:pe,Point:se,Polygon:kd,Polyline:ai,RadialGradient:PM,Rect:ke,Ring:b1,Sector:na,Text:He,applyTransform:_o,clipPointsByRect:WM,clipRectByRect:YM,createIcon:Rd,extendPath:FM,extendShape:VM,getShapeClass:M1,getTransform:I1,groupTransition:O1,initProps:bt,isElementRemoved:io,lineLineIntersect:R1,linePolygonIntersect:qM,makeImage:k1,makePath:fu,mergePath:zM,registerShape:er,removeElement:pl,removeElementWithFadeOut:gl,resizePath:P1,setTooltipConfig:Bd,subPixelOptimize:HM,subPixelOptimizeLine:yo,subPixelOptimizeRect:GM,transformDirection:L1,traverseElements:ii,updateProps:tt},Symbol.toStringTag,{value:"Module"}));var hu={};function ZM(e,t){for(var r=0;r<vt.length;r++){var n=vt[r],a=t[n],i=e.ensureState(n);i.style=i.style||{},i.style.text=a}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function _g(e,t,r){var n=e.labelFetcher,a=e.labelDataIndex,i=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=ie(e.defaultText)?e.defaultText(a,e,r):e.defaultText);for(var l={normal:s},u=0;u<vt.length;u++){var c=vt[u],f=t[c];l[c]=ne(n?n.getFormattedLabel(a,c,null,i,f&&f.get("formatter")):null,s)}return l}function oi(e,t,r,n){r=r||hu;for(var a=e instanceof He,i=!1,o=0;o<fl.length;o++){var s=t[fl[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?e:e.getTextContent();if(i){a||(l||(l=new He,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=_g(r,t),c=t.normal,f=!!c.getShallow("show"),d=Xt(c,n&&n.normal,r,!1,!a);d.text=u.normal,a||e.setTextConfig(_l(c,r,!1));for(var o=0;o<vt.length;o++){var h=vt[o],s=t[h];if(s){var p=l.ensureState(h),m=!!ne(s.getShallow("show"),f);if(m!==f&&(p.ignore=!m),p.style=Xt(s,n&&n[h],r,!0,!a),p.style.text=u[h],!a){var g=e.ensureState(h);g.textConfig=_l(s,r,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!f,l.useStyle(d),l.dirty(),r.enableTextSetter&&(du(l).setLabelText=function(y){var w=_g(r,t,y);ZM(l,w)})}else l&&(l.ignore=!0);e.dirty()}function aa(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<vt.length;n++){var a=vt[n];r[a]=e.getModel([a,t])}return r}function Xt(e,t,r,n,a){var i={};return KM(i,e,r,n,a),t&&G(i,t),i}function _l(e,t,r){t=t||{};var n={},a,i=e.getShallow("rotate"),o=ne(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return a=e.getShallow("position")||(r?null:"inside"),a==="outside"&&(a=t.defaultOutsidePosition||"top"),a!=null&&(n.position=a),s!=null&&(n.offset=s),i!=null&&(i*=Math.PI/180,n.rotation=i),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function KM(e,t,r,n,a){r=r||hu;var i=t.ecModel,o=i&&i.option.textStyle,s=JM(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);Cg(l[u]={},c,o,r,n,a,!1,!0)}}l&&(e.rich=l);var f=t.get("overflow");f&&(e.overflow=f);var d=t.get("minMargin");d!=null&&(e.margin=d),Cg(e,t,o,r,n,a,!0,!1)}function JM(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||hu).rich;if(r){t=t||{};for(var n=_e(r),a=0;a<n.length;a++){var i=n[a];t[i]=1}}e=e.parentModel}return t}var wg=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],bg=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Sg=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Cg(e,t,r,n,a,i,o,s){r=!a&&r||hu;var l=n&&n.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=ne(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(process.env.NODE_ENV!=="production"&&u==="auto"&&ze("color: 'auto'","color: 'inherit'"),l?u=l:u=null),(c==="inherit"||c==="auto")&&(process.env.NODE_ENV!=="production"&&c==="auto"&&ze("color: 'auto'","color: 'inherit'"),l?c=l:c=null),i||(u=u||r.color,c=c||r.textBorderColor),u!=null&&(e.fill=u),c!=null&&(e.stroke=c);var d=ne(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var h=ne(t.getShallow("textBorderType"),r.textBorderType);h!=null&&(e.lineDash=h);var p=ne(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);p!=null&&(e.lineDashOffset=p),!a&&f==null&&!s&&(f=n&&n.defaultOpacity),f!=null&&(e.opacity=f),!a&&!i&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var m=0;m<wg.length;m++){var g=wg[m],y=ne(t.getShallow(g),r[g]);y!=null&&(e[g]=y)}for(var m=0;m<bg.length;m++){var g=bg[m],y=t.getShallow(g);y!=null&&(e[g]=y)}if(e.verticalAlign==null){var w=t.getShallow("baseline");w!=null&&(e.verticalAlign=w)}if(!o||!n.disableBox){for(var m=0;m<Sg.length;m++){var g=Sg[m],y=t.getShallow(g);y!=null&&(e[g]=y)}var _=t.getShallow("borderType");_!=null&&(e.borderDash=_),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&e.backgroundColor==="auto"&&ze("backgroundColor: 'auto'","backgroundColor: 'inherit'"),e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&e.borderColor==="auto"&&ze("borderColor: 'auto'","borderColor: 'inherit'"),e.borderColor=l)}}function B1(e,t){var r=t&&t.getModel("textStyle");return fr([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var du=Ne();function QM(e,t,r,n){if(e){var a=du(e);a.prevValue=a.value,a.value=r;var i=t.normal;a.valueAnimation=i.get("valueAnimation"),a.valueAnimation&&(a.precision=i.get("precision"),a.defaultInterpolatedText=n,a.statesModels=t)}}var ek=["textStyle","color"],Ac=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Mc=new He,tk=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(ek):null)},e.prototype.getFont=function(){return B1({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<Ac.length;n++)r[Ac[n]]=this.getShallow(Ac[n]);return Mc.useStyle(r),Mc.update(),Mc.getBoundingRect()},e}();const rk=tk;var V1=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],nk=po(V1),ak=function(){function e(){}return e.prototype.getLineStyle=function(t){return nk(this,t)},e}(),$1=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],ik=po($1),ok=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return ik(this,t,r)},e}(),ia=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){ve(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,a=n==null?n:n[t];if(a==null&&!r){var i=this.parentModel;i&&(a=i.getShallow(t))}return a},e.prototype.getModel=function(t,r){var n=t!=null,a=n?this.parsePath(t):null,i=n?this._doGet(a):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new e(i,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(ue(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!re.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var a=0;a<t.length&&!(t[a]&&(n=n&&typeof n=="object"?n[t[a]]:null,n==null));a++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();Cd(ia);WD(ia);Jt(ia,ak);Jt(ia,ok);Jt(ia,ZD);Jt(ia,rk);const Qe=ia;var sk=Math.round(Math.random()*10);function vu(e){return[e||"",sk++].join("_")}function lk(e){var t={};e.registerSubTypeDefaulter=function(r,n){var a=dr(r);t[a.main]=n},e.determineSubType=function(r,n){var a=n.type;if(!a){var i=dr(r).main;e.hasSubTypes(r)&&t[i]&&(a=t[i](n))}return a}}function uk(e,t){e.topologicalTravel=function(i,o,s,l){if(!i.length)return;var u=r(o),c=u.graph,f=u.noEntryList,d={};for(k(i,function(w){d[w]=!0});f.length;){var h=f.pop(),p=c[h],m=!!d[h];m&&(s.call(l,h,p.originalDeps.slice()),delete d[h]),k(p.successor,m?y:g)}k(d,function(){var w="";throw process.env.NODE_ENV!=="production"&&(w=ul("Circular dependency may exists: ",d,i,o)),new Error(w)});function g(w){c[w].entryCount--,c[w].entryCount===0&&f.push(w)}function y(w){d[w]=!0,g(w)}};function r(i){var o={},s=[];return k(i,function(l){var u=n(o,l),c=u.originalDeps=t(l),f=a(c,i);u.entryCount=f.length,u.entryCount===0&&s.push(l),k(f,function(d){ce(u.predecessor,d)<0&&u.predecessor.push(d);var h=n(o,d);ce(h.successor,d)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(i,o){return i[o]||(i[o]={predecessor:[],successor:[]}),i[o]}function a(i,o){var s=[];return k(i,function(l){ce(o,l)>=0&&s.push(l)}),s}}function pu(e,t){return ve(ve({},e,!0),t,!0)}const ck={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:". "}}}},fk={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var wl="ZH",Vd="EN",Fa=Vd,Us={},$d={},F1=re.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Fa).toUpperCase();return e.indexOf(wl)>-1?wl:Fa}():Fa;function z1(e,t){e=e.toUpperCase(),$d[e]=new Qe(t),Us[e]=t}function hk(e){if(j(e)){var t=Us[e.toUpperCase()]||{};return e===wl||e===Vd?ue(t):ve(ue(t),ue(Us[Fa]),!1)}else return ve(ue(e),ue(Us[Fa]),!1)}function dk(e){return $d[e]}function vk(){return $d[Fa]}z1(Vd,ck);z1(wl,fk);var Fd=1e3,zd=Fd*60,oo=zd*60,Bt=oo*24,xg=Bt*365,qi={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},cs="{yyyy}-{MM}-{dd}",Tg={year:"{yyyy}",month:"{yyyy}-{MM}",day:cs,hour:cs+" "+qi.hour,minute:cs+" "+qi.minute,second:cs+" "+qi.second,millisecond:qi.none},kc=["year","month","day","hour","minute","second","millisecond"],G1=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Hr(e,t){return e+="","0000".substr(0,t-e.length)+e}function za(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 pk(e){return e===za(e)}function gk(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function gu(e,t,r,n){var a=Or(e),i=a[Gd(r)](),o=a[Ga(r)]()+1,s=Math.floor((o-1)/3)+1,l=a[mu(r)](),u=a["get"+(r?"UTC":"")+"Day"](),c=a[wo(r)](),f=(c-1)%12+1,d=a[yu(r)](),h=a[_u(r)](),p=a[wu(r)](),m=n instanceof Qe?n:dk(n||F1)||vk(),g=m.getModel("time"),y=g.get("month"),w=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Hr(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,w[o-1]).replace(/{MM}/g,Hr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Hr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Hr(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Hr(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Hr(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Hr(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Hr(p,3)).replace(/{S}/g,p+"")}function mk(e,t,r,n,a){var i=null;if(j(r))i=r;else if(ie(r))i=r(e.value,t,{level:e.level});else{var o=G({},qi);if(e.level>0)for(var s=0;s<kc.length;++s)o[kc[s]]="{primary|"+o[kc[s]]+"}";var l=r?r.inherit===!1?r:he(r,o):o,u=H1(e.value,a);if(l[u])i=l[u];else if(l.inherit){for(var c=G1.indexOf(u),s=c-1;s>=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(U(i)){var f=e.level==null?0:e.level>=0?e.level:i.length+e.level;f=Math.min(f,i.length-1),i=i[f]}}return gu(new Date(e.value),i,a,n)}function H1(e,t){var r=Or(e),n=r[Ga(t)]()+1,a=r[mu(t)](),i=r[wo(t)](),o=r[yu(t)](),s=r[_u(t)](),l=r[wu(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&i===0,h=d&&a===1,p=h&&n===1;return p?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function Ng(e,t,r){var n=xe(e)?Or(e):e;switch(t=t||H1(e,r),t){case"year":return n[Gd(r)]();case"half-year":return n[Ga(r)]()>=6?1:0;case"quarter":return Math.floor((n[Ga(r)]()+1)/4);case"month":return n[Ga(r)]();case"day":return n[mu(r)]();case"half-day":return n[wo(r)]()/24;case"hour":return n[wo(r)]();case"minute":return n[yu(r)]();case"second":return n[_u(r)]();case"millisecond":return n[wu(r)]()}}function Gd(e){return e?"getUTCFullYear":"getFullYear"}function Ga(e){return e?"getUTCMonth":"getMonth"}function mu(e){return e?"getUTCDate":"getDate"}function wo(e){return e?"getUTCHours":"getHours"}function yu(e){return e?"getUTCMinutes":"getMinutes"}function _u(e){return e?"getUTCSeconds":"getSeconds"}function wu(e){return e?"getUTCMilliseconds":"getMilliseconds"}function yk(e){return e?"setUTCFullYear":"setFullYear"}function U1(e){return e?"setUTCMonth":"setMonth"}function W1(e){return e?"setUTCDate":"setDate"}function Y1(e){return e?"setUTCHours":"setHours"}function q1(e){return e?"setUTCMinutes":"setMinutes"}function j1(e){return e?"setUTCSeconds":"setSeconds"}function X1(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Z1(e){if(!L_(e))return j(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function K1(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var bu=o_;function lh(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&fr(c)?c:"-"}function i(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Or(e):e;if(isNaN(+l)){if(s)return"-"}else return gu(l,n,r)}if(t==="ordinal")return Qs(e)?a(e):xe(e)&&i(e)?e+"":"-";var u=ll(e);return i(u)?Z1(u):Qs(e)?a(e):typeof e=="boolean"?e+"":"-"}var Dg=["a","b","c","d","e","f","g"],Ec=function(e,t){return"{"+e+(t??"")+"}"};function J1(e,t,r){U(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i<a.length;i++){var o=Dg[i];e=e.replace(Ec(o),Ec(o,0))}for(var s=0;s<n;s++)for(var l=0;l<a.length;l++){var u=t[s][a[l]];e=e.replace(Ec(Dg[l],s),r?Pt(u):u)}return e}function _k(e,t){var r=j(e)?{color:e,extraCssText:t}:e||{},n=r.color,a=r.type;t=r.extraCssText;var i=r.renderMode||"html";if(!n)return"";if(i==="html")return a==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+Pt(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Pt(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Jn(e,t){return t=t||"transparent",j(e)?e:K(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Ag(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Ws=k,wk=["left","right","top","bottom","width","height"],fs=[["width","left","right"],["height","top","bottom"]];function Hd(e,t,r,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),h,p;if(e==="horizontal"){var m=c.width+(d?-d.x+c.x:0);h=i+m,h>n||l.newline?(i=0,h=m,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);p=o+g,p>a||l.newline?(i+=s+r,o=0,p=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),e==="horizontal"?i=h+r:o=p+r)})}var so=Hd;be(Hd,"vertical");be(Hd,"horizontal");function Qn(e,t,r){r=bu(r||0);var n=t.width,a=t.height,i=Ce(e.left,n),o=Ce(e.top,a),s=Ce(e.right,n),l=Ce(e.bottom,a),u=Ce(e.width,n),c=Ce(e.height,a),f=r[2]+r[0],d=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-d-i),isNaN(c)&&(c=a-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>n/a?u=n*.8:c=a*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(i)&&(i=n-s-u-d),isNaN(o)&&(o=a-l-c-f),e.left||e.right){case"center":i=n/2-u/2-r[3];break;case"right":i=n-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=a/2-c/2-r[0];break;case"bottom":o=a-c-f;break}i=i||0,o=o||0,isNaN(u)&&(u=n-d-i-(s||0)),isNaN(c)&&(c=a-f-o-(l||0));var p=new ye(i+r[3],o+r[0],u,c);return p.margin=r,p}function bo(e){var t=e.layoutMode||e.constructor.layoutMode;return K(t)?t:t?{type:t}:null}function Ja(e,t,r){var n=r&&r.ignoreSize;!U(n)&&(n=[n,n]);var a=o(fs[0],0),i=o(fs[1],1);u(fs[0],e,a),u(fs[1],e,i);function o(c,f){var d={},h=0,p={},m=0,g=2;if(Ws(c,function(_){p[_]=e[_]}),Ws(c,function(_){s(t,_)&&(d[_]=p[_]=t[_]),l(d,_)&&h++,l(p,_)&&m++}),n[f])return l(t,c[1])?p[c[2]]=null:l(t,c[2])&&(p[c[1]]=null),p;if(m===g||!h)return p;if(h>=g)return d;for(var y=0;y<c.length;y++){var w=c[y];if(!s(d,w)&&s(e,w)){d[w]=e[w];break}}return d}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,d){Ws(c,function(h){f[h]=d[h]})}}function Bo(e){return bk({},e)}function bk(e,t){return t&&e&&Ws(wk,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var Sk=Ne(),si=function(e){H(t,e);function t(r,n,a){var i=e.call(this,r,n,a)||this;return i.uid=vu("ec_cpt_model"),i}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=bo(this),i=a?Bo(r):{},o=n.getTheme();ve(r,o.get(this.mainType)),ve(r,this.getDefaultOption()),a&&Ja(r,i,a)},t.prototype.mergeOption=function(r,n){ve(this.option,r,!0);var a=bo(this);a&&Ja(this.option,r,a)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!GD(r))return r.defaultOption;var n=Sk(this);if(!n.defaultOption){for(var a=[],i=r;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=ve(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var a=r+"Index",i=r+"Id";return Ro(this.ecModel,r,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(Qe);z_(si,Qe);iu(si);lk(si);uk(si,Ck);function Ck(e){var t=[];return k(si.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=q(t,function(r){return dr(r).main}),e!=="dataset"&&ce(t,"dataset")<=0&&t.unshift("dataset"),t}const Se=si;var Q1="";typeof navigator<"u"&&(Q1=navigator.platform||"");var _a="rgba(0, 0, 0, 0.2)";const xk={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:_a,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:_a,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:_a,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:_a,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:_a,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:_a,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Q1.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var uh=ae(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ft="original",pt="arrayRows",tr="objectRows",mr="keyedColumns",kr="typedArray",ew="unknown",Er="column",li="row",Ue={Must:1,Might:2,Not:3},tw=Ne();function Tk(e){tw(e).datasetMap=ae()}function Nk(e,t,r){var n={},a=Ud(t);if(!a||!e)return n;var i=[],o=[],s=t.ecModel,l=tw(s).datasetMap,u=a.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),k(e,function(m,g){var y=K(m)?m:e[g]={name:m};y.type==="ordinal"&&c==null&&(c=g,f=p(y)),n[y.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});k(e,function(m,g){var y=m.name,w=p(m);if(c==null){var _=d.valueWayDim;h(n[y],_,w),h(o,_,w),d.valueWayDim+=w}else if(c===g)h(n[y],0,w),h(i,0,w);else{var _=d.categoryWayDim;h(n[y],_,w),h(o,_,w),d.categoryWayDim+=w}});function h(m,g,y){for(var w=0;w<y;w++)m.push(g+w)}function p(m){var g=m.dimsDef;return g?g.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function Dk(e,t,r){var n={},a=Ud(e);if(!a)return n;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===tr||i===mr)&&k(o,function(c,f){(K(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],h=0,p=Math.min(5,r);h<p;h++){var m=nw(t.data,i,t.seriesLayoutBy,o,t.startIndex,h);d.push(m);var g=m===Ue.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&d[c.n]===Ue.Not)&&(c.n=h),y(c)&&d[c.n]!==Ue.Not)return c;g||(m===Ue.Might&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}function y(w){return w.v!=null&&w.n!=null}return y(c)?c:y(f)?f:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function Ud(e){var t=e.get("data",!0);if(!t)return Ro(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},dt).models[0]}function Ak(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Ro(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},dt).models}function rw(e,t){return nw(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function nw(e,t,r,n,a,i){var o,s=5;if(lt(e))return Ue.Not;var l,u;if(n){var c=n[i];K(c)?(l=c.name,u=c.type):j(c)&&(l=c)}if(u!=null)return u==="ordinal"?Ue.Must:Ue.Not;if(t===pt){var f=e;if(r===li){for(var d=f[i],h=0;h<(d||[]).length&&h<s;h++)if((o=S(d[a+h]))!=null)return o}else for(var h=0;h<f.length&&h<s;h++){var p=f[a+h];if(p&&(o=S(p[i]))!=null)return o}}else if(t===tr){var m=e;if(!l)return Ue.Not;for(var h=0;h<m.length&&h<s;h++){var g=m[h];if(g&&(o=S(g[l]))!=null)return o}}else if(t===mr){var y=e;if(!l)return Ue.Not;var d=y[l];if(!d||lt(d))return Ue.Not;for(var h=0;h<d.length&&h<s;h++)if((o=S(d[h]))!=null)return o}else if(t===Ft)for(var w=e,h=0;h<w.length&&h<s;h++){var g=w[h],_=Oo(g);if(!U(_))return Ue.Not;if((o=S(_[i]))!=null)return o}function S(x){var C=j(x);if(x!=null&&isFinite(x)&&x!=="")return C?Ue.Might:Ue.Not;if(C&&x!=="-")return Ue.Must}return Ue.Not}var Mk=ae();function kk(e,t,r){var n=Mk.get(t);if(!n)return r;var a=n(e);if(!a)return r;if(process.env.NODE_ENV!=="production")for(var i=0;i<a.length;i++)ee(Za(a[i]));return r.concat(a)}var Mg=Ne();Ne();var Wd=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var a=Ge(this.get("color",!0)),i=this.get("colorLayer",!0);return Pk(this,Mg,a,i,t,r,n)},e.prototype.clearColorPalette=function(){Ik(this,Mg)},e}();function Ek(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function Pk(e,t,r,n,a,i,o){i=i||e;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var c=o==null||!n?r:Ek(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function Ik(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var hs,Ni,kg,Pc="\0_ec_inner",Eg=1,Lk={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},Ok={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},bl={};function Rk(e){k(e,function(t,r){if(!Se.hasClass(r)){var n=Lk[r];n&&!bl[n]&&(et("Component "+r+` is used but not imported.
30
30
  import { `+n+` } from 'echarts/components';
31
- echarts.use([`+n+"]);"),Sl[n]=!0)}})}var Yd=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Qe(i),this._locale=new Qe(o),this._optionManager=s},t.prototype.setOption=function(r,n,a){process.env.NODE_ENV!=="production"&&(ee(r!=null,"option is null/undefined"),ee(r[Pc]!==Eg,"please use chart.getOption()"));var i=Lg(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(r,n){return this._resetOption(r,Lg(n))},t.prototype._resetOption=function(r,n){var a=!1,i=this._optionManager;if(!r||r==="recreate"){var o=i.mountOption(r==="recreate");process.env.NODE_ENV!=="production"&&Rk(o),!this.option||r==="recreate"?kg(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=i.getMediaOption(this);l.length&&k(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ae(),u=n&&n.replaceMergeMainTypeMap;Tk(this),k(r,function(f,d){f!=null&&(Se.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?ue(f):ve(a[d],f,!0))}),u&&u.each(function(f,d){Se.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),Se.topologicalTravel(s,Se.getAllClassMainTypes(),c,this);function c(f){var d=kk(this,f,Ge(r[f])),h=i.get(f),p=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",m=ND(h,d,p);ID(m,f,Se),a[f]=null,i.set(f,null),o.set(f,0);var g=[],y=[],w=0,_,S;k(m,function(x,C){var T=x.existing,b=x.newOption;if(!b)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var D=f==="series",N=Se.getClass(f,x.keyInfo.subType,!D);if(!N){if(process.env.NODE_ENV!=="production"){var A=x.keyInfo.subType,M=Ok[A];Sl[A]||(Sl[A]=!0,et(M?"Series "+A+` is used but not imported.
31
+ echarts.use([`+n+"]);"),bl[n]=!0)}})}var Yd=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,a,i,o,s){i=i||{},this.option=null,this._theme=new Qe(i),this._locale=new Qe(o),this._optionManager=s},t.prototype.setOption=function(r,n,a){process.env.NODE_ENV!=="production"&&(ee(r!=null,"option is null/undefined"),ee(r[Pc]!==Eg,"please use chart.getOption()"));var i=Lg(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(r,n){return this._resetOption(r,Lg(n))},t.prototype._resetOption=function(r,n){var a=!1,i=this._optionManager;if(!r||r==="recreate"){var o=i.mountOption(r==="recreate");process.env.NODE_ENV!=="production"&&Rk(o),!this.option||r==="recreate"?kg(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=i.getMediaOption(this);l.length&&k(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=ae(),u=n&&n.replaceMergeMainTypeMap;Tk(this),k(r,function(f,d){f!=null&&(Se.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?ue(f):ve(a[d],f,!0))}),u&&u.each(function(f,d){Se.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),Se.topologicalTravel(s,Se.getAllClassMainTypes(),c,this);function c(f){var d=kk(this,f,Ge(r[f])),h=i.get(f),p=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",m=ND(h,d,p);ID(m,f,Se),a[f]=null,i.set(f,null),o.set(f,0);var g=[],y=[],w=0,_,S;k(m,function(x,C){var T=x.existing,b=x.newOption;if(!b)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var D=f==="series",N=Se.getClass(f,x.keyInfo.subType,!D);if(!N){if(process.env.NODE_ENV!=="production"){var A=x.keyInfo.subType,M=Ok[A];bl[A]||(bl[A]=!0,et(M?"Series "+A+` is used but not imported.
32
32
  import { `+M+` } from 'echarts/charts';
33
- echarts.use([`+M+"]);":"Unknown series "+A))}return}if(f==="tooltip"){if(_){process.env.NODE_ENV!=="production"&&(S||(Fe("Currently only one tooltip component is allowed."),S=!0));return}_=!0}if(T&&T.constructor===N)T.name=x.keyInfo.name,T.mergeOption(b,this),T.optionUpdated(b,!1);else{var I=G({componentIndex:C},x.keyInfo);T=new N(b,this,this,I),G(T,I),x.brandNew&&(T.__requireNewView=!0),T.init(b,this,this),T.optionUpdated(null,!0)}}T?(g.push(T.option),y.push(T),w++):(g.push(void 0),y.push(void 0))},this),a[f]=g,i.set(f,y),o.set(f,w),f==="series"&&ds(this)}this._seriesIndices||ds(this)},t.prototype.getOption=function(){var r=ue(this.option);return k(r,function(n,a){if(Se.hasClass(a)){for(var i=Ge(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Za(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,r[a]=i}}),delete r[Pc],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var a=this._componentsMap.get(r);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var a=r.index,i=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],k(Ge(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=Pg("id",i,s):o!=null?l=Pg("name",o,s):l=qe(s,function(u){return!!u}),Ig(l,r)},t.prototype.findComponents=function(r){var n=r.query,a=r.mainType,i=s(n),o=i?this.queryComponents(i):qe(this._componentsMap.get(a),function(u){return!!u});return l(Ig(o,r));function s(u){var c=a+"Index",f=a+"Id",d=a+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:a,index:u[c],id:u[f],name:u[d]}:null}function l(u){return r.filter?qe(u,r.filter):u}},t.prototype.eachComponent=function(r,n,a){var i=this._componentsMap;if(ie(r)){var o=n,s=r;i.each(function(f,d){for(var h=0;f&&h<f.length;h++){var p=f[h];p&&s.call(o,d,p,p.componentIndex)}})}else for(var l=j(r)?i.get(r):K(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(a,c,c.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=vr(r,null);return qe(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return qe(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return qe(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){Ni(this),k(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];r.call(n,i,a)},this)},t.prototype.eachRawSeries=function(r,n){k(this._componentsMap.get("series"),function(a){a&&r.call(n,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,a){Ni(this),k(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===r&&n.call(a,o,i)},this)},t.prototype.eachRawSeriesByType=function(r,n,a){return k(this.getSeriesByType(r),n,a)},t.prototype.isSeriesFiltered=function(r){return Ni(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){Ni(this);var a=[];k(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];r.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=ae(a)},t.prototype.restoreData=function(r){ds(this);var n=this._componentsMap,a=[];n.each(function(i,o){Se.hasClass(o)&&a.push(o)}),Se.topologicalTravel(a,Se.getAllClassMainTypes(),function(i){k(n.get(i),function(o){o&&(i!=="series"||!Bk(o,r))&&o.restoreData()})})},t.internalField=function(){ds=function(r){var n=r._seriesIndices=[];k(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=ae(n)},Ni=function(r){if(process.env.NODE_ENV!=="production"&&!r._seriesIndices)throw new Error("Option should contains series.")},kg=function(r,n){r.option={},r.option[Pc]=Eg,r._componentsMap=ae({series:[]}),r._componentsCount=ae();var a=n.aria;K(a)&&a.enabled==null&&(a.enabled=!0),Vk(n,r._theme.option),ve(n,xk,!1),r._mergeOption(n,null)}}(),t}(Qe);function Bk(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,a=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||a!=null&&e.name!==a}}function Vk(e,t){var r=e.color&&!e.colorLayer;k(t,function(n,a){a==="colorLayer"&&r||Se.hasClass(a)||(typeof n=="object"?e[a]=e[a]?ve(e[a],n,!1):ue(n):e[a]==null&&(e[a]=n))})}function Pg(e,t,r){if(U(t)){var n=ae();return k(t,function(i){if(i!=null){var o=vr(i,null);o!=null&&n.set(i,!0)}}),qe(r,function(i){return i&&n.get(i[e])})}else{var a=vr(t,null);return qe(r,function(i){return i&&a!=null&&i[e]===a})}}function Ig(e,t){return t.hasOwnProperty("subType")?qe(e,function(r){return r&&r.subType===t.subType}):e}function Lg(e){var t=ae();return e&&k(Ge(e.replaceMerge),function(r){process.env.NODE_ENV!=="production"&&ee(Se.hasClass(r),'"'+r+'" is not valid component main type in "replaceMerge"'),t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Jt(Yd,Wd);var $k=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Fk=function(){function e(t){k($k,function(r){this[r]=Q(t[r],t)},this)}return e}();const aw=Fk;var Ic={},qd=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];k(Ic,function(a,i){var o=a.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){k(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){Ic[t]=r},e.get=function(t){return Ic[t]},e}(),zk=/^(min|max)?(.+)$/,Gk=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(k(Ge(t.series),function(o){o&&o.data&&lt(o.data)&&Lf(o.data)}),k(Ge(t.dataset),function(o){o&&o.source&&lt(o.source)&&Lf(o.source)})),t=ue(t);var a=this._optionBackup,i=Hk(t,r,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],ue(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var a=t.getComponent("timeline");a&&(r=ue(n[a.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)Uk(a[l].query,r,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!Yk(o,this._currentMediaIndices)&&(s=q(o,function(c){return ue(c===-1?i.option:a[c].option)})),this._currentMediaIndices=o,s},e}();function Hk(e,t,r){var n=[],a,i,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((f||c)&&(e.options=e.media=null),i=e),c&&(U(u)?k(u,function(h){process.env.NODE_ENV!=="production"&&h&&!h.option&&K(h.query)&&K(h.query.option)&&et("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),h&&h.option&&(h.query?n.push(h):a||(a=h))}):process.env.NODE_ENV!=="production"&&et("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),d(i),k(l,function(h){return d(h)}),k(n,function(h){return d(h.option)});function d(h){k(t,function(p){p(h,r)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function Uk(e,t,r){var n={width:t,height:r,aspectratio:t/r},a=!0;return k(e,function(i,o){var s=o.match(zk);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();Wk(n[u],i,l)||(a=!1)}}),a}function Wk(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function Yk(e,t){return e.join(",")===t.join(",")}const qk=Gk;var Ct=k,Co=K,Og=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Lc(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=Og.length;r<n;r++){var a=Og[r],i=t.normal,o=t.emphasis;i&&i[a]&&(process.env.NODE_ENV!=="production"&&ze("itemStyle.normal."+a,a),e[a]=e[a]||{},e[a].normal?ve(e[a].normal,i[a]):e[a].normal=i[a],i[a]=null),o&&o[a]&&(process.env.NODE_ENV!=="production"&&ze("itemStyle.emphasis."+a,"emphasis."+a),e[a]=e[a]||{},e[a].emphasis?ve(e[a].emphasis,o[a]):e[a].emphasis=o[a],o[a]=null)}}function Je(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,a=e[t].emphasis;n&&(process.env.NODE_ENV!=="production"&&jt("'normal' hierarchy in "+t+" has been removed since 4.0. All style properties are configured in "+t+" directly now."),r?(e[t].normal=e[t].emphasis=null,he(e[t],n)):e[t]=n),a&&(process.env.NODE_ENV!=="production"&&jt(t+".emphasis has been changed to emphasis."+t+" since 4.0"),e.emphasis=e.emphasis||{},e.emphasis[t]=a,a.focus&&(e.emphasis.focus=a.focus),a.blurScope&&(e.emphasis.blurScope=a.blurScope))}}function ji(e){Je(e,"itemStyle"),Je(e,"lineStyle"),Je(e,"areaStyle"),Je(e,"label"),Je(e,"labelLine"),Je(e,"upperLabel"),Je(e,"edgeLabel")}function Oe(e,t){var r=Co(e)&&e[t],n=Co(r)&&r.textStyle;if(n){process.env.NODE_ENV!=="production"&&jt("textStyle hierarchy in "+t+" has been removed since 4.0. All textStyle properties are configured in "+t+" directly now.");for(var a=0,i=Rp.length;a<i;a++){var o=Rp[a];n.hasOwnProperty(o)&&(r[o]=n[o])}}}function Mt(e){e&&(ji(e),Oe(e,"label"),e.emphasis&&Oe(e.emphasis,"label"))}function jk(e){if(Co(e)){Lc(e),ji(e),Oe(e,"label"),Oe(e,"upperLabel"),Oe(e,"edgeLabel"),e.emphasis&&(Oe(e.emphasis,"label"),Oe(e.emphasis,"upperLabel"),Oe(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Lc(t),Mt(t));var r=e.markLine;r&&(Lc(r),Mt(r));var n=e.markArea;n&&Mt(n);var a=e.data;if(e.type==="graph"){a=a||e.nodes;var i=e.links||e.edges;if(i&&!lt(i))for(var o=0;o<i.length;o++)Mt(i[o]);k(e.categories,function(u){ji(u)})}if(a&&!lt(a))for(var o=0;o<a.length;o++)Mt(a[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Mt(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)U(l[o])?(Mt(l[o][0]),Mt(l[o][1])):Mt(l[o]);e.type==="gauge"?(Oe(e,"axisLabel"),Oe(e,"title"),Oe(e,"detail")):e.type==="treemap"?(Je(e.breadcrumb,"itemStyle"),k(e.levels,function(u){ji(u)})):e.type==="tree"&&ji(e.leaves)}}function Sr(e){return U(e)?e:e?[e]:[]}function Rg(e){return(U(e)?e[0]:e)||{}}function Xk(e,t){Ct(Sr(e.series),function(n){Co(n)&&jk(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ct(r,function(n){Ct(Sr(e[n]),function(a){a&&(Oe(a,"axisLabel"),Oe(a.axisPointer,"label"))})}),Ct(Sr(e.parallel),function(n){var a=n&&n.parallelAxisDefault;Oe(a,"axisLabel"),Oe(a&&a.axisPointer,"label")}),Ct(Sr(e.calendar),function(n){Je(n,"itemStyle"),Oe(n,"dayLabel"),Oe(n,"monthLabel"),Oe(n,"yearLabel")}),Ct(Sr(e.radar),function(n){Oe(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,process.env.NODE_ENV!=="production"&&jt("name property in radar component has been changed to axisName")),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap,process.env.NODE_ENV!=="production"&&jt("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&Ct(n.indicator,function(a){a.text&&ze("text","name","radar.indicator")})}),Ct(Sr(e.geo),function(n){Co(n)&&(Mt(n),Ct(Sr(n.regions),function(a){Mt(a)}))}),Ct(Sr(e.timeline),function(n){Mt(n),Je(n,"label"),Je(n,"itemStyle"),Je(n,"controlStyle",!0);var a=n.data;U(a)&&k(a,function(i){K(i)&&(Je(i,"label"),Je(i,"itemStyle"))})}),Ct(Sr(e.toolbox),function(n){Je(n,"iconStyle"),Ct(n.feature,function(a){Je(a,"iconStyle")})}),Oe(Rg(e.axisPointer),"label"),Oe(Rg(e.tooltip).axisPointer,"label")}function Zk(e,t){for(var r=t.split(","),n=e,a=0;a<r.length&&(n=n&&n[r[a]],n!=null);a++);return n}function Kk(e,t,r,n){for(var a=t.split(","),i=e,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];(n||i[a[s]]==null)&&(i[a[s]]=r)}function Bg(e){e&&k(Jk,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Jk=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Qk=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Oc=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Di(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<Oc.length;r++){var n=Oc[r][1],a=Oc[r][0];t[n]!=null&&(t[a]=t[n],process.env.NODE_ENV!=="production"&&ze(n,a))}}function Vg(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&ze("label.margin","label.edgeDistance","pie"),e.edgeDistance=e.margin)}function $g(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay,process.env.NODE_ENV!=="production"&&ze("downplay","blur","sunburst"))}function eE(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&ze("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),e.emphasis.focus="adjacency"))}function iw(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&iw(e[r].children,t)}function ow(e,t){Xk(e,t),e.series=Ge(e.series),k(e.series,function(r){if(K(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow,process.env.NODE_ENV!=="production"&&ze("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise,process.env.NODE_ENV!=="production"&&ze("clockWise","clockwise")),Vg(r.label);var a=r.data;if(a&&!lt(a))for(var i=0;i<a.length;i++)Vg(a[i]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&ze("hoverOffset","emphasis.scaleSize"),r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=Zk(r,"pointer.color");o!=null&&Kk(r,"itemStyle.color",o)}else if(n==="bar"){Di(r),Di(r.backgroundStyle),Di(r.emphasis);var a=r.data;if(a&&!lt(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(Di(a[i]),Di(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s,process.env.NODE_ENV!=="production"&&ze("highlightPolicy","emphasis.focus","sunburst"))),$g(r),iw(r.data,$g)}else n==="graph"||n==="sankey"?eE(r):n==="map"&&(r.mapType&&!r.map&&(process.env.NODE_ENV!=="production"&&ze("mapType","map","map"),r.map=r.mapType),r.mapLocation&&(process.env.NODE_ENV!=="production"&&jt("`mapLocation` is not used anymore."),he(r,r.mapLocation)));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&ze("hoverAnimation","emphasis.scale"),r.emphasis.scale=r.hoverAnimation)),Bg(r)}}),e.dataRange&&(e.visualMap=e.dataRange),k(Qk,function(r){var n=e[r];n&&(U(n)||(n=[n]),k(n,function(a){Bg(a)}))})}function tE(e){var t=ae();e.eachSeries(function(r){var n=r.get("stack");if(n){var a=t.get(n)||t.set(n,[]),i=r.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),t.each(rE)}function rE(e){k(e,function(t,r){var n=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,f){var d=o.get(t.stackedDimension,f);if(isNaN(d))return a;var h,p;s?p=o.getRawIndex(f):h=o.get(t.stackedByDimension,f);for(var m=NaN,g=r-1;g>=0;g--){var y=e[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var w=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&w>0||l==="negative"&&w<0||l==="samesign"&&d>=0&&w>0||l==="samesign"&&d<=0&&w<0){d=yD(d,w),m=w;break}}}return n[0]=d,n[1]=m,n})})}var Su=function(){function e(t){this.data=t.data||(t.sourceFormat===mr?{}:[]),this.sourceFormat=t.sourceFormat||ew,this.seriesLayoutBy=t.seriesLayoutBy||Er,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var a=r[n];a.type==null&&rw(this,n)===Ue.Must&&(a.type="ordinal")}}return e}();function jd(e){return e instanceof Su}function ch(e,t,r){r=r||sw(e);var n=t.seriesLayoutBy,a=aE(e,r,n,t.sourceHeader,t.dimensions),i=new Su({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:ue(t)});return i}function Xd(e){return new Su({data:e,sourceFormat:lt(e)?kr:Ft})}function nE(e){return new Su({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:ue(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function sw(e){var t=ew;if(lt(e))t=kr;else if(U(e)){e.length===0&&(t=pt);for(var r=0,n=e.length;r<n;r++){var a=e[r];if(a!=null){if(U(a)||lt(a)){t=pt;break}else if(K(a)){t=tr;break}}}}else if(K(e)){for(var i in e)if(W(e,i)&&st(e[i])){t=mr;break}}return t}function aE(e,t,r,n,a){var i,o;if(!e)return{dimensionsDefine:Fg(a),startIndex:o,dimensionsDetectedCount:i};if(t===pt){var s=e;n==="auto"||n==null?zg(function(u){u!=null&&u!=="-"&&(j(u)?o==null&&(o=1):o=0)},r,s,10):o=xe(n)?n:n?1:0,!a&&o===1&&(a=[],zg(function(u,c){a[c]=u!=null?u+"":""},r,s,1/0)),i=a?a.length:r===li?s.length:s[0]?s[0].length:null}else if(t===tr)a||(a=iE(e));else if(t===mr)a||(a=[],k(e,function(u,c){a.push(c)}));else if(t===Ft){var l=Ro(e[0]);i=U(l)&&l.length||1}else t===kr&&process.env.NODE_ENV!=="production"&&ee(!!a,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:Fg(a),dimensionsDetectedCount:i}}function iE(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return _e(r)}function Fg(e){if(e){var t=ae();return q(e,function(r,n){r=K(r)?r:{name:r};var a={name:r.name,displayName:r.displayName,type:r.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=t.get(a.name);return i?a.name+="-"+i.count++:t.set(a.name,{count:1}),a})}}function zg(e,t,r,n){if(t===li)for(var a=0;a<r.length&&a<n;a++)e(r[a]?r[a][0]:null,a);else for(var i=r[0]||[],a=0;a<i.length&&a<n;a++)e(i[a],a)}function lw(e){var t=e.sourceFormat;return t===tr||t===mr}var Ln,On,Rn,Gg,Hg,uw=function(){function e(t,r){var n=jd(t)?t:Xd(t);this._source=n;var a=this._data=n.data;if(n.sourceFormat===kr){if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=r,this._data=a}Hg(this,a,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;Hg=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=Gg[Zd(u,c)];if(process.env.NODE_ENV!=="production"&&ee(h,"Invalide sourceFormat: "+u),G(o,h),u===kr)o.getItem=r,o.count=a,o.fillStorage=n;else{var p=cw(u,c);o.getItem=Q(p,null,s,f,d);var m=fw(u,c);o.count=Q(m,null,s,f,d)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},n=function(o,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var h=u[d],p=h[0]==null?1/0:h[0],m=h[1]==null?-1/0:h[1],g=s-o,y=l[d],w=0;w<g;w++){var _=c[w*f+d];y[o+w]=_,_<p&&(p=_),_>m&&(m=_)}h[0]=p,h[1]=m}},a=function(){return this._data?this._data.length/this._dimSize:0};Gg=(t={},t[pt+"_"+Er]={pure:!0,appendData:i},t[pt+"_"+li]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[tr]={pure:!0,appendData:i},t[mr]={pure:!0,appendData:function(o){var s=this._data;k(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Ft]={appendData:i},t[kr]={persistent:!1,pure:!0,appendData:function(o){process.env.NODE_ENV!=="production"&&ee(lt(o),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),Ug=function(e,t,r,n){return e[n]},oE=(Ln={},Ln[pt+"_"+Er]=function(e,t,r,n){return e[n+t]},Ln[pt+"_"+li]=function(e,t,r,n,a){n+=t;for(var i=a||[],o=e,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},Ln[tr]=Ug,Ln[mr]=function(e,t,r,n,a){for(var i=a||[],o=0;o<r.length;o++){var s=r[o].name;if(process.env.NODE_ENV!=="production"&&s==null)throw new Error;var l=e[s];i[o]=l?l[n]:null}return i},Ln[Ft]=Ug,Ln);function cw(e,t){var r=oE[Zd(e,t)];return process.env.NODE_ENV!=="production"&&ee(r,'Do not support get item on "'+e+'", "'+t+'".'),r}var Wg=function(e,t,r){return e.length},sE=(On={},On[pt+"_"+Er]=function(e,t,r){return Math.max(0,e.length-t)},On[pt+"_"+li]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},On[tr]=Wg,On[mr]=function(e,t,r){var n=r[0].name;if(process.env.NODE_ENV!=="production"&&n==null)throw new Error;var a=e[n];return a?a.length:0},On[Ft]=Wg,On);function fw(e,t){var r=sE[Zd(e,t)];return process.env.NODE_ENV!=="production"&&ee(r,'Do not support count on "'+e+'", "'+t+'".'),r}var Rc=function(e,t,r){return e[t]},lE=(Rn={},Rn[pt]=Rc,Rn[tr]=function(e,t,r){return e[r]},Rn[mr]=Rc,Rn[Ft]=function(e,t,r){var n=Ro(e);return n instanceof Array?n[t]:n},Rn[kr]=Rc,Rn);function hw(e){var t=lE[e];return process.env.NODE_ENV!=="production"&&ee(t,'Do not support get value on "'+e+'".'),t}function Zd(e,t){return e===pt?e+"_"+t:e}function Qa(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var a=e.getStore(),i=a.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=a.getDimensionProperty(o);return hw(i)(n,o,s)}else{var l=n;return i===Ft&&(l=Ro(n)),l}}}}var uE=/\{@(.+?)\}/g,dw=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),a=this.getRawValue(t,r),i=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",h=n.userOutput&&n.userOutput.get();return{componentType:f,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:o,dataIndex:i,data:s,dataType:r,value:a,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,a,i,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),a!=null&&U(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(t);i=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(ie(i))return l.status=r,l.dimensionIndex=a,i(l);if(j(i)){var c=J1(i,l);return c.replace(uE,function(f,d){var h=d.length,p=d;p.charAt(0)==="["&&p.charAt(h-1)==="]"&&(p=+p.slice(1,h-1),process.env.NODE_ENV!=="production"&&isNaN(p)&&et("Invalide label formatter: @"+d+", only support @[0], @[1], @[2], ..."));var m=Qa(s,t,p);if(o&&U(o.interpolatedValue)){var g=s.getDimensionIndex(p);g>=0&&(m=o.interpolatedValue[g])}return m!=null?m+"":""})}},e.prototype.getRawValue=function(t,r){return Qa(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function Yg(e){var t,r;return K(e)?e.type?r=e:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+cl(e)):t=e,{text:t,frag:r}}function lo(e){return new cE(e)}var cE=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(w){return!(w>=1)&&(w=1),w}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(r?(process.env.NODE_ENV!=="production"&&ee(r._outputDueEnd!=null),this._dueEnd=r._outputDueEnd):(process.env.NODE_ENV!=="production"&&ee(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var h=this._dueIndex,p=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||h<p)){var m=this._progress;if(U(m))for(var g=0;g<m.length;g++)this._doProgress(m[g],h,p,l,u);else this._doProgress(m,h,p,l,u)}this._dueIndex=p;var y=this._settedOutputEnd!=null?this._settedOutputEnd:p;process.env.NODE_ENV!=="production"&&ee(y>=this._outputDueEnd),this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,a,i){qg.reset(r,n,a,i),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:qg.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),U(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){process.env.NODE_ENV!=="production"&&ee(t&&!t._disposed&&t!==this),(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),qg=function(){var e,t,r,n,a,i={reset:function(l,u,c,f){t=l,e=u,r=c,n=f,a=Math.ceil(n/r),i.next=r>1&&n>0?s:o}};return i;function o(){return t<e?t++:null}function s(){var l=t%a*r+Math.ceil(t/a),u=t>=e?null:l<n?l:t;return t++,u}}();function Ha(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!xe(e)&&e!=null&&e!=="-"&&(e=+Or(e)),e==null||e===""?NaN:+e)}ae({number:function(e){return parseFloat(e)},time:function(e){return+Or(e)},trim:function(e){return j(e)?fr(e):e}});var fE=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=xe(t)?t:ul(t),a=xe(r)?r:ul(r),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=j(t),l=j(r);s&&(n=l?t:0),l&&(a=s?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},e}(),hE=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Ha(t,r)},e}();function dE(e,t){var r=new hE,n=e.data,a=r.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==Er&&(process.env.NODE_ENV!=="production"&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),it(o));var s=[],l={},u=e.dimensionsDefine;if(u)k(u,function(m,g){var y=m.name,w={index:g,name:y,displayName:m.displayName};if(s.push(w),y!=null){var _="";W(l,y)&&(process.env.NODE_ENV!=="production"&&(_='dimension name "'+y+'" duplicated.'),it(_)),l[y]=w}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=cw(a,Er);t.__isBuiltIn&&(r.getRawDataItem=function(m){return f(n,i,s,m)},r.getRawData=Q(vE,null,e)),r.cloneRawData=Q(pE,null,e);var d=fw(a,Er);r.count=Q(d,null,n,i,s);var h=hw(a);r.retrieveValue=function(m,g){var y=f(n,i,s,m);return p(y,g)};var p=r.retrieveValueFromItem=function(m,g){if(m!=null){var y=s[g];if(y)return h(m,g,y.name)}};return r.getDimensionInfo=Q(gE,null,s,l),r.cloneAllDimensionInfo=Q(mE,null,s),r}function vE(e){var t=e.sourceFormat;if(!Kd(t)){var r="";process.env.NODE_ENV!=="production"&&(r="`getRawData` is not supported in source format "+t),it(r)}return e.data}function pE(e){var t=e.sourceFormat,r=e.data;if(!Kd(t)){var n="";process.env.NODE_ENV!=="production"&&(n="`cloneRawData` is not supported in source format "+t),it(n)}if(t===pt){for(var a=[],i=0,o=r.length;i<o;i++)a.push(r[i].slice());return a}else if(t===tr){for(var a=[],i=0,o=r.length;i<o;i++)a.push(G({},r[i]));return a}}function gE(e,t,r){if(r!=null){if(xe(r)||!isNaN(r)&&!W(t,r))return e[r];if(W(t,r))return t[r]}}function mE(e){return ue(e)}var vw=ae();function yE(e){e=ue(e);var t=e.type,r="";t||(process.env.NODE_ENV!=="production"&&(r="Must have a `type` when `registerTransform`."),it(r));var n=t.split(":");n.length!==2&&(process.env.NODE_ENV!=="production"&&(r='Name must include namespace like "ns:regression".'),it(r));var a=!1;n[0]==="echarts"&&(t=n[1],a=!0),e.__isBuiltIn=a,vw.set(t,e)}function _E(e,t,r){var n=Ge(e),a=n.length,i="";a||(process.env.NODE_ENV!=="production"&&(i="If `transform` declared, it should at least contain one transform."),it(i));for(var o=0,s=a;o<s;o++){var l=n[o];t=wE(l,t,r,a===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function wE(e,t,r,n){var a="";t.length||(process.env.NODE_ENV!=="production"&&(a="Must have at least one upstream dataset."),it(a)),K(e)||(process.env.NODE_ENV!=="production"&&(a="transform declaration must be an object rather than "+typeof e+"."),it(a));var i=e.type,o=vw.get(i);o||(process.env.NODE_ENV!=="production"&&(a='Can not find transform on type "'+i+'".'),it(a));var s=q(t,function(c){return dE(c,o)}),l=Ge(o.transform({upstream:s[0],upstreamList:s,config:ue(e.config)}));if(process.env.NODE_ENV!=="production"&&e.print){var u=q(l,function(c){var f=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+r.datasetIndex+f+" ===","- transform result data:",cl(c.data),"- transform result dimensions:",cl(c.dimensions)].join(`
33
+ echarts.use([`+M+"]);":"Unknown series "+A))}return}if(f==="tooltip"){if(_){process.env.NODE_ENV!=="production"&&(S||(Fe("Currently only one tooltip component is allowed."),S=!0));return}_=!0}if(T&&T.constructor===N)T.name=x.keyInfo.name,T.mergeOption(b,this),T.optionUpdated(b,!1);else{var I=G({componentIndex:C},x.keyInfo);T=new N(b,this,this,I),G(T,I),x.brandNew&&(T.__requireNewView=!0),T.init(b,this,this),T.optionUpdated(null,!0)}}T?(g.push(T.option),y.push(T),w++):(g.push(void 0),y.push(void 0))},this),a[f]=g,i.set(f,y),o.set(f,w),f==="series"&&hs(this)}this._seriesIndices||hs(this)},t.prototype.getOption=function(){var r=ue(this.option);return k(r,function(n,a){if(Se.hasClass(a)){for(var i=Ge(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Za(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,r[a]=i}}),delete r[Pc],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var a=this._componentsMap.get(r);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o<a.length;o++)if(a[o])return a[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var a=r.index,i=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],k(Ge(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=Pg("id",i,s):o!=null?l=Pg("name",o,s):l=qe(s,function(u){return!!u}),Ig(l,r)},t.prototype.findComponents=function(r){var n=r.query,a=r.mainType,i=s(n),o=i?this.queryComponents(i):qe(this._componentsMap.get(a),function(u){return!!u});return l(Ig(o,r));function s(u){var c=a+"Index",f=a+"Id",d=a+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:a,index:u[c],id:u[f],name:u[d]}:null}function l(u){return r.filter?qe(u,r.filter):u}},t.prototype.eachComponent=function(r,n,a){var i=this._componentsMap;if(ie(r)){var o=n,s=r;i.each(function(f,d){for(var h=0;f&&h<f.length;h++){var p=f[h];p&&s.call(o,d,p,p.componentIndex)}})}else for(var l=j(r)?i.get(r):K(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(a,c,c.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=vr(r,null);return qe(this._componentsMap.get("series"),function(a){return!!a&&n!=null&&a.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return qe(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return qe(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){Ni(this),k(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];r.call(n,i,a)},this)},t.prototype.eachRawSeries=function(r,n){k(this._componentsMap.get("series"),function(a){a&&r.call(n,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,a){Ni(this),k(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];o.subType===r&&n.call(a,o,i)},this)},t.prototype.eachRawSeriesByType=function(r,n,a){return k(this.getSeriesByType(r),n,a)},t.prototype.isSeriesFiltered=function(r){return Ni(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){Ni(this);var a=[];k(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];r.call(n,o,i)&&a.push(i)},this),this._seriesIndices=a,this._seriesIndicesMap=ae(a)},t.prototype.restoreData=function(r){hs(this);var n=this._componentsMap,a=[];n.each(function(i,o){Se.hasClass(o)&&a.push(o)}),Se.topologicalTravel(a,Se.getAllClassMainTypes(),function(i){k(n.get(i),function(o){o&&(i!=="series"||!Bk(o,r))&&o.restoreData()})})},t.internalField=function(){hs=function(r){var n=r._seriesIndices=[];k(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=ae(n)},Ni=function(r){if(process.env.NODE_ENV!=="production"&&!r._seriesIndices)throw new Error("Option should contains series.")},kg=function(r,n){r.option={},r.option[Pc]=Eg,r._componentsMap=ae({series:[]}),r._componentsCount=ae();var a=n.aria;K(a)&&a.enabled==null&&(a.enabled=!0),Vk(n,r._theme.option),ve(n,xk,!1),r._mergeOption(n,null)}}(),t}(Qe);function Bk(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,a=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||a!=null&&e.name!==a}}function Vk(e,t){var r=e.color&&!e.colorLayer;k(t,function(n,a){a==="colorLayer"&&r||Se.hasClass(a)||(typeof n=="object"?e[a]=e[a]?ve(e[a],n,!1):ue(n):e[a]==null&&(e[a]=n))})}function Pg(e,t,r){if(U(t)){var n=ae();return k(t,function(i){if(i!=null){var o=vr(i,null);o!=null&&n.set(i,!0)}}),qe(r,function(i){return i&&n.get(i[e])})}else{var a=vr(t,null);return qe(r,function(i){return i&&a!=null&&i[e]===a})}}function Ig(e,t){return t.hasOwnProperty("subType")?qe(e,function(r){return r&&r.subType===t.subType}):e}function Lg(e){var t=ae();return e&&k(Ge(e.replaceMerge),function(r){process.env.NODE_ENV!=="production"&&ee(Se.hasClass(r),'"'+r+'" is not valid component main type in "replaceMerge"'),t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Jt(Yd,Wd);var $k=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],Fk=function(){function e(t){k($k,function(r){this[r]=Q(t[r],t)},this)}return e}();const aw=Fk;var Ic={},qd=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];k(Ic,function(a,i){var o=a.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){k(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){Ic[t]=r},e.get=function(t){return Ic[t]},e}(),zk=/^(min|max)?(.+)$/,Gk=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(k(Ge(t.series),function(o){o&&o.data&&lt(o.data)&&Lf(o.data)}),k(Ge(t.dataset),function(o){o&&o.source&&lt(o.source)&&Lf(o.source)})),t=ue(t);var a=this._optionBackup,i=Hk(t,r,!a);this._newBaseOption=i.baseOption,a?(i.timelineOptions.length&&(a.timelineOptions=i.timelineOptions),i.mediaList.length&&(a.mediaList=i.mediaList),i.mediaDefault&&(a.mediaDefault=i.mediaDefault)):this._optionBackup=i},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],ue(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var a=t.getComponent("timeline");a&&(r=ue(n[a.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,i=this._mediaDefault,o=[],s=[];if(!a.length&&!i)return s;for(var l=0,u=a.length;l<u;l++)Uk(a[l].query,r,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!Yk(o,this._currentMediaIndices)&&(s=q(o,function(c){return ue(c===-1?i.option:a[c].option)})),this._currentMediaIndices=o,s},e}();function Hk(e,t,r){var n=[],a,i,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||o&&o.timeline);o?(i=o,i.timeline||(i.timeline=s)):((f||c)&&(e.options=e.media=null),i=e),c&&(U(u)?k(u,function(h){process.env.NODE_ENV!=="production"&&h&&!h.option&&K(h.query)&&K(h.query.option)&&et("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),h&&h.option&&(h.query?n.push(h):a||(a=h))}):process.env.NODE_ENV!=="production"&&et("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),d(i),k(l,function(h){return d(h)}),k(n,function(h){return d(h.option)});function d(h){k(t,function(p){p(h,r)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function Uk(e,t,r){var n={width:t,height:r,aspectratio:t/r},a=!0;return k(e,function(i,o){var s=o.match(zk);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();Wk(n[u],i,l)||(a=!1)}}),a}function Wk(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function Yk(e,t){return e.join(",")===t.join(",")}const qk=Gk;var Ct=k,So=K,Og=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Lc(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=Og.length;r<n;r++){var a=Og[r],i=t.normal,o=t.emphasis;i&&i[a]&&(process.env.NODE_ENV!=="production"&&ze("itemStyle.normal."+a,a),e[a]=e[a]||{},e[a].normal?ve(e[a].normal,i[a]):e[a].normal=i[a],i[a]=null),o&&o[a]&&(process.env.NODE_ENV!=="production"&&ze("itemStyle.emphasis."+a,"emphasis."+a),e[a]=e[a]||{},e[a].emphasis?ve(e[a].emphasis,o[a]):e[a].emphasis=o[a],o[a]=null)}}function Je(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,a=e[t].emphasis;n&&(process.env.NODE_ENV!=="production"&&jt("'normal' hierarchy in "+t+" has been removed since 4.0. All style properties are configured in "+t+" directly now."),r?(e[t].normal=e[t].emphasis=null,he(e[t],n)):e[t]=n),a&&(process.env.NODE_ENV!=="production"&&jt(t+".emphasis has been changed to emphasis."+t+" since 4.0"),e.emphasis=e.emphasis||{},e.emphasis[t]=a,a.focus&&(e.emphasis.focus=a.focus),a.blurScope&&(e.emphasis.blurScope=a.blurScope))}}function ji(e){Je(e,"itemStyle"),Je(e,"lineStyle"),Je(e,"areaStyle"),Je(e,"label"),Je(e,"labelLine"),Je(e,"upperLabel"),Je(e,"edgeLabel")}function Oe(e,t){var r=So(e)&&e[t],n=So(r)&&r.textStyle;if(n){process.env.NODE_ENV!=="production"&&jt("textStyle hierarchy in "+t+" has been removed since 4.0. All textStyle properties are configured in "+t+" directly now.");for(var a=0,i=Rp.length;a<i;a++){var o=Rp[a];n.hasOwnProperty(o)&&(r[o]=n[o])}}}function Mt(e){e&&(ji(e),Oe(e,"label"),e.emphasis&&Oe(e.emphasis,"label"))}function jk(e){if(So(e)){Lc(e),ji(e),Oe(e,"label"),Oe(e,"upperLabel"),Oe(e,"edgeLabel"),e.emphasis&&(Oe(e.emphasis,"label"),Oe(e.emphasis,"upperLabel"),Oe(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Lc(t),Mt(t));var r=e.markLine;r&&(Lc(r),Mt(r));var n=e.markArea;n&&Mt(n);var a=e.data;if(e.type==="graph"){a=a||e.nodes;var i=e.links||e.edges;if(i&&!lt(i))for(var o=0;o<i.length;o++)Mt(i[o]);k(e.categories,function(u){ji(u)})}if(a&&!lt(a))for(var o=0;o<a.length;o++)Mt(a[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Mt(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)U(l[o])?(Mt(l[o][0]),Mt(l[o][1])):Mt(l[o]);e.type==="gauge"?(Oe(e,"axisLabel"),Oe(e,"title"),Oe(e,"detail")):e.type==="treemap"?(Je(e.breadcrumb,"itemStyle"),k(e.levels,function(u){ji(u)})):e.type==="tree"&&ji(e.leaves)}}function Sr(e){return U(e)?e:e?[e]:[]}function Rg(e){return(U(e)?e[0]:e)||{}}function Xk(e,t){Ct(Sr(e.series),function(n){So(n)&&jk(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Ct(r,function(n){Ct(Sr(e[n]),function(a){a&&(Oe(a,"axisLabel"),Oe(a.axisPointer,"label"))})}),Ct(Sr(e.parallel),function(n){var a=n&&n.parallelAxisDefault;Oe(a,"axisLabel"),Oe(a&&a.axisPointer,"label")}),Ct(Sr(e.calendar),function(n){Je(n,"itemStyle"),Oe(n,"dayLabel"),Oe(n,"monthLabel"),Oe(n,"yearLabel")}),Ct(Sr(e.radar),function(n){Oe(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,process.env.NODE_ENV!=="production"&&jt("name property in radar component has been changed to axisName")),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap,process.env.NODE_ENV!=="production"&&jt("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&Ct(n.indicator,function(a){a.text&&ze("text","name","radar.indicator")})}),Ct(Sr(e.geo),function(n){So(n)&&(Mt(n),Ct(Sr(n.regions),function(a){Mt(a)}))}),Ct(Sr(e.timeline),function(n){Mt(n),Je(n,"label"),Je(n,"itemStyle"),Je(n,"controlStyle",!0);var a=n.data;U(a)&&k(a,function(i){K(i)&&(Je(i,"label"),Je(i,"itemStyle"))})}),Ct(Sr(e.toolbox),function(n){Je(n,"iconStyle"),Ct(n.feature,function(a){Je(a,"iconStyle")})}),Oe(Rg(e.axisPointer),"label"),Oe(Rg(e.tooltip).axisPointer,"label")}function Zk(e,t){for(var r=t.split(","),n=e,a=0;a<r.length&&(n=n&&n[r[a]],n!=null);a++);return n}function Kk(e,t,r,n){for(var a=t.split(","),i=e,o,s=0;s<a.length-1;s++)o=a[s],i[o]==null&&(i[o]={}),i=i[o];(n||i[a[s]]==null)&&(i[a[s]]=r)}function Bg(e){e&&k(Jk,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Jk=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Qk=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Oc=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Di(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<Oc.length;r++){var n=Oc[r][1],a=Oc[r][0];t[n]!=null&&(t[a]=t[n],process.env.NODE_ENV!=="production"&&ze(n,a))}}function Vg(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&ze("label.margin","label.edgeDistance","pie"),e.edgeDistance=e.margin)}function $g(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay,process.env.NODE_ENV!=="production"&&ze("downplay","blur","sunburst"))}function eE(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&ze("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),e.emphasis.focus="adjacency"))}function iw(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&iw(e[r].children,t)}function ow(e,t){Xk(e,t),e.series=Ge(e.series),k(e.series,function(r){if(K(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow,process.env.NODE_ENV!=="production"&&ze("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise,process.env.NODE_ENV!=="production"&&ze("clockWise","clockwise")),Vg(r.label);var a=r.data;if(a&&!lt(a))for(var i=0;i<a.length;i++)Vg(a[i]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&ze("hoverOffset","emphasis.scaleSize"),r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=Zk(r,"pointer.color");o!=null&&Kk(r,"itemStyle.color",o)}else if(n==="bar"){Di(r),Di(r.backgroundStyle),Di(r.emphasis);var a=r.data;if(a&&!lt(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(Di(a[i]),Di(a[i]&&a[i].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s,process.env.NODE_ENV!=="production"&&ze("highlightPolicy","emphasis.focus","sunburst"))),$g(r),iw(r.data,$g)}else n==="graph"||n==="sankey"?eE(r):n==="map"&&(r.mapType&&!r.map&&(process.env.NODE_ENV!=="production"&&ze("mapType","map","map"),r.map=r.mapType),r.mapLocation&&(process.env.NODE_ENV!=="production"&&jt("`mapLocation` is not used anymore."),he(r,r.mapLocation)));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&ze("hoverAnimation","emphasis.scale"),r.emphasis.scale=r.hoverAnimation)),Bg(r)}}),e.dataRange&&(e.visualMap=e.dataRange),k(Qk,function(r){var n=e[r];n&&(U(n)||(n=[n]),k(n,function(a){Bg(a)}))})}function tE(e){var t=ae();e.eachSeries(function(r){var n=r.get("stack");if(n){var a=t.get(n)||t.set(n,[]),i=r.getData(),o={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;a.length&&i.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(o)}}),t.each(rE)}function rE(e){k(e,function(t,r){var n=[],a=[NaN,NaN],i=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(i,function(u,c,f){var d=o.get(t.stackedDimension,f);if(isNaN(d))return a;var h,p;s?p=o.getRawIndex(f):h=o.get(t.stackedByDimension,f);for(var m=NaN,g=r-1;g>=0;g--){var y=e[g];if(s||(p=y.data.rawIndexOf(y.stackedByDimension,h)),p>=0){var w=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&w>0||l==="negative"&&w<0||l==="samesign"&&d>=0&&w>0||l==="samesign"&&d<=0&&w<0){d=yD(d,w),m=w;break}}}return n[0]=d,n[1]=m,n})})}var Su=function(){function e(t){this.data=t.data||(t.sourceFormat===mr?{}:[]),this.sourceFormat=t.sourceFormat||ew,this.seriesLayoutBy=t.seriesLayoutBy||Er,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var a=r[n];a.type==null&&rw(this,n)===Ue.Must&&(a.type="ordinal")}}return e}();function jd(e){return e instanceof Su}function ch(e,t,r){r=r||sw(e);var n=t.seriesLayoutBy,a=aE(e,r,n,t.sourceHeader,t.dimensions),i=new Su({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:ue(t)});return i}function Xd(e){return new Su({data:e,sourceFormat:lt(e)?kr:Ft})}function nE(e){return new Su({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:ue(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function sw(e){var t=ew;if(lt(e))t=kr;else if(U(e)){e.length===0&&(t=pt);for(var r=0,n=e.length;r<n;r++){var a=e[r];if(a!=null){if(U(a)||lt(a)){t=pt;break}else if(K(a)){t=tr;break}}}}else if(K(e)){for(var i in e)if(W(e,i)&&st(e[i])){t=mr;break}}return t}function aE(e,t,r,n,a){var i,o;if(!e)return{dimensionsDefine:Fg(a),startIndex:o,dimensionsDetectedCount:i};if(t===pt){var s=e;n==="auto"||n==null?zg(function(u){u!=null&&u!=="-"&&(j(u)?o==null&&(o=1):o=0)},r,s,10):o=xe(n)?n:n?1:0,!a&&o===1&&(a=[],zg(function(u,c){a[c]=u!=null?u+"":""},r,s,1/0)),i=a?a.length:r===li?s.length:s[0]?s[0].length:null}else if(t===tr)a||(a=iE(e));else if(t===mr)a||(a=[],k(e,function(u,c){a.push(c)}));else if(t===Ft){var l=Oo(e[0]);i=U(l)&&l.length||1}else t===kr&&process.env.NODE_ENV!=="production"&&ee(!!a,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:Fg(a),dimensionsDetectedCount:i}}function iE(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return _e(r)}function Fg(e){if(e){var t=ae();return q(e,function(r,n){r=K(r)?r:{name:r};var a={name:r.name,displayName:r.displayName,type:r.type};if(a.name==null)return a;a.name+="",a.displayName==null&&(a.displayName=a.name);var i=t.get(a.name);return i?a.name+="-"+i.count++:t.set(a.name,{count:1}),a})}}function zg(e,t,r,n){if(t===li)for(var a=0;a<r.length&&a<n;a++)e(r[a]?r[a][0]:null,a);else for(var i=r[0]||[],a=0;a<i.length&&a<n;a++)e(i[a],a)}function lw(e){var t=e.sourceFormat;return t===tr||t===mr}var Ln,On,Rn,Gg,Hg,uw=function(){function e(t,r){var n=jd(t)?t:Xd(t);this._source=n;var a=this._data=n.data;if(n.sourceFormat===kr){if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=r,this._data=a}Hg(this,a,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;Hg=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=Gg[Zd(u,c)];if(process.env.NODE_ENV!=="production"&&ee(h,"Invalide sourceFormat: "+u),G(o,h),u===kr)o.getItem=r,o.count=a,o.fillStorage=n;else{var p=cw(u,c);o.getItem=Q(p,null,s,f,d);var m=fw(u,c);o.count=Q(m,null,s,f,d)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},n=function(o,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var h=u[d],p=h[0]==null?1/0:h[0],m=h[1]==null?-1/0:h[1],g=s-o,y=l[d],w=0;w<g;w++){var _=c[w*f+d];y[o+w]=_,_<p&&(p=_),_>m&&(m=_)}h[0]=p,h[1]=m}},a=function(){return this._data?this._data.length/this._dimSize:0};Gg=(t={},t[pt+"_"+Er]={pure:!0,appendData:i},t[pt+"_"+li]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[tr]={pure:!0,appendData:i},t[mr]={pure:!0,appendData:function(o){var s=this._data;k(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Ft]={appendData:i},t[kr]={persistent:!1,pure:!0,appendData:function(o){process.env.NODE_ENV!=="production"&&ee(lt(o),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),Ug=function(e,t,r,n){return e[n]},oE=(Ln={},Ln[pt+"_"+Er]=function(e,t,r,n){return e[n+t]},Ln[pt+"_"+li]=function(e,t,r,n,a){n+=t;for(var i=a||[],o=e,s=0;s<o.length;s++){var l=o[s];i[s]=l?l[n]:null}return i},Ln[tr]=Ug,Ln[mr]=function(e,t,r,n,a){for(var i=a||[],o=0;o<r.length;o++){var s=r[o].name;if(process.env.NODE_ENV!=="production"&&s==null)throw new Error;var l=e[s];i[o]=l?l[n]:null}return i},Ln[Ft]=Ug,Ln);function cw(e,t){var r=oE[Zd(e,t)];return process.env.NODE_ENV!=="production"&&ee(r,'Do not support get item on "'+e+'", "'+t+'".'),r}var Wg=function(e,t,r){return e.length},sE=(On={},On[pt+"_"+Er]=function(e,t,r){return Math.max(0,e.length-t)},On[pt+"_"+li]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},On[tr]=Wg,On[mr]=function(e,t,r){var n=r[0].name;if(process.env.NODE_ENV!=="production"&&n==null)throw new Error;var a=e[n];return a?a.length:0},On[Ft]=Wg,On);function fw(e,t){var r=sE[Zd(e,t)];return process.env.NODE_ENV!=="production"&&ee(r,'Do not support count on "'+e+'", "'+t+'".'),r}var Rc=function(e,t,r){return e[t]},lE=(Rn={},Rn[pt]=Rc,Rn[tr]=function(e,t,r){return e[r]},Rn[mr]=Rc,Rn[Ft]=function(e,t,r){var n=Oo(e);return n instanceof Array?n[t]:n},Rn[kr]=Rc,Rn);function hw(e){var t=lE[e];return process.env.NODE_ENV!=="production"&&ee(t,'Do not support get value on "'+e+'".'),t}function Zd(e,t){return e===pt?e+"_"+t:e}function Qa(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var a=e.getStore(),i=a.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=a.getDimensionProperty(o);return hw(i)(n,o,s)}else{var l=n;return i===Ft&&(l=Oo(n)),l}}}}var uE=/\{@(.+?)\}/g,dw=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),a=this.getRawValue(t,r),i=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",h=n.userOutput&&n.userOutput.get();return{componentType:f,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:o,dataIndex:i,data:s,dataType:r,value:a,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,a,i,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),a!=null&&U(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(t);i=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(ie(i))return l.status=r,l.dimensionIndex=a,i(l);if(j(i)){var c=J1(i,l);return c.replace(uE,function(f,d){var h=d.length,p=d;p.charAt(0)==="["&&p.charAt(h-1)==="]"&&(p=+p.slice(1,h-1),process.env.NODE_ENV!=="production"&&isNaN(p)&&et("Invalide label formatter: @"+d+", only support @[0], @[1], @[2], ..."));var m=Qa(s,t,p);if(o&&U(o.interpolatedValue)){var g=s.getDimensionIndex(p);g>=0&&(m=o.interpolatedValue[g])}return m!=null?m+"":""})}},e.prototype.getRawValue=function(t,r){return Qa(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function Yg(e){var t,r;return K(e)?e.type?r=e:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+ul(e)):t=e,{text:t,frag:r}}function lo(e){return new cE(e)}var cE=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var a=this.context;a.data=a.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function c(w){return!(w>=1)&&(w=1),w}var f;(this._dirty||i==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(r?(process.env.NODE_ENV!=="production"&&ee(r._outputDueEnd!=null),this._dueEnd=r._outputDueEnd):(process.env.NODE_ENV!=="production"&&ee(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var h=this._dueIndex,p=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||h<p)){var m=this._progress;if(U(m))for(var g=0;g<m.length;g++)this._doProgress(m[g],h,p,l,u);else this._doProgress(m,h,p,l,u)}this._dueIndex=p;var y=this._settedOutputEnd!=null?this._settedOutputEnd:p;process.env.NODE_ENV!=="production"&&ee(y>=this._outputDueEnd),this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,a,i){qg.reset(r,n,a,i),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:qg.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),U(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var a=this._downstream;return a&&a.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){process.env.NODE_ENV!=="production"&&ee(t&&!t._disposed&&t!==this),(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),qg=function(){var e,t,r,n,a,i={reset:function(l,u,c,f){t=l,e=u,r=c,n=f,a=Math.ceil(n/r),i.next=r>1&&n>0?s:o}};return i;function o(){return t<e?t++:null}function s(){var l=t%a*r+Math.ceil(t/a),u=t>=e?null:l<n?l:t;return t++,u}}();function Ha(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!xe(e)&&e!=null&&e!=="-"&&(e=+Or(e)),e==null||e===""?NaN:+e)}ae({number:function(e){return parseFloat(e)},time:function(e){return+Or(e)},trim:function(e){return j(e)?fr(e):e}});var fE=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=xe(t)?t:ll(t),a=xe(r)?r:ll(r),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=j(t),l=j(r);s&&(n=l?t:0),l&&(a=s?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},e}(),hE=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return Ha(t,r)},e}();function dE(e,t){var r=new hE,n=e.data,a=r.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==Er&&(process.env.NODE_ENV!=="production"&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),it(o));var s=[],l={},u=e.dimensionsDefine;if(u)k(u,function(m,g){var y=m.name,w={index:g,name:y,displayName:m.displayName};if(s.push(w),y!=null){var _="";W(l,y)&&(process.env.NODE_ENV!=="production"&&(_='dimension name "'+y+'" duplicated.'),it(_)),l[y]=w}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=cw(a,Er);t.__isBuiltIn&&(r.getRawDataItem=function(m){return f(n,i,s,m)},r.getRawData=Q(vE,null,e)),r.cloneRawData=Q(pE,null,e);var d=fw(a,Er);r.count=Q(d,null,n,i,s);var h=hw(a);r.retrieveValue=function(m,g){var y=f(n,i,s,m);return p(y,g)};var p=r.retrieveValueFromItem=function(m,g){if(m!=null){var y=s[g];if(y)return h(m,g,y.name)}};return r.getDimensionInfo=Q(gE,null,s,l),r.cloneAllDimensionInfo=Q(mE,null,s),r}function vE(e){var t=e.sourceFormat;if(!Kd(t)){var r="";process.env.NODE_ENV!=="production"&&(r="`getRawData` is not supported in source format "+t),it(r)}return e.data}function pE(e){var t=e.sourceFormat,r=e.data;if(!Kd(t)){var n="";process.env.NODE_ENV!=="production"&&(n="`cloneRawData` is not supported in source format "+t),it(n)}if(t===pt){for(var a=[],i=0,o=r.length;i<o;i++)a.push(r[i].slice());return a}else if(t===tr){for(var a=[],i=0,o=r.length;i<o;i++)a.push(G({},r[i]));return a}}function gE(e,t,r){if(r!=null){if(xe(r)||!isNaN(r)&&!W(t,r))return e[r];if(W(t,r))return t[r]}}function mE(e){return ue(e)}var vw=ae();function yE(e){e=ue(e);var t=e.type,r="";t||(process.env.NODE_ENV!=="production"&&(r="Must have a `type` when `registerTransform`."),it(r));var n=t.split(":");n.length!==2&&(process.env.NODE_ENV!=="production"&&(r='Name must include namespace like "ns:regression".'),it(r));var a=!1;n[0]==="echarts"&&(t=n[1],a=!0),e.__isBuiltIn=a,vw.set(t,e)}function _E(e,t,r){var n=Ge(e),a=n.length,i="";a||(process.env.NODE_ENV!=="production"&&(i="If `transform` declared, it should at least contain one transform."),it(i));for(var o=0,s=a;o<s;o++){var l=n[o];t=wE(l,t,r,a===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function wE(e,t,r,n){var a="";t.length||(process.env.NODE_ENV!=="production"&&(a="Must have at least one upstream dataset."),it(a)),K(e)||(process.env.NODE_ENV!=="production"&&(a="transform declaration must be an object rather than "+typeof e+"."),it(a));var i=e.type,o=vw.get(i);o||(process.env.NODE_ENV!=="production"&&(a='Can not find transform on type "'+i+'".'),it(a));var s=q(t,function(c){return dE(c,o)}),l=Ge(o.transform({upstream:s[0],upstreamList:s,config:ue(e.config)}));if(process.env.NODE_ENV!=="production"&&e.print){var u=q(l,function(c){var f=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+r.datasetIndex+f+" ===","- transform result data:",ul(c.data),"- transform result dimensions:",ul(c.dimensions)].join(`
34
34
  `)}).join(`
35
35
  `);CD(u)}return q(l,function(c,f){var d="";K(c)||(process.env.NODE_ENV!=="production"&&(d="A transform should not return some empty results."),it(d)),c.data||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be not be null or undefined"),it(d));var h=sw(c.data);Kd(h)||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be array rows or object rows."),it(d));var p,m=t[0];if(m&&f===0&&!c.dimensions){var g=m.startIndex;g&&(c.data=m.data.slice(0,g).concat(c.data)),p={seriesLayoutBy:Er,sourceHeader:g,dimensions:m.metaRawOption.dimensions}}else p={seriesLayoutBy:Er,sourceHeader:0,dimensions:c.dimensions};return ch(c.data,p,null)})}function Kd(e){return e===pt||e===tr}var Cu="undefined",bE=typeof Uint32Array===Cu?Array:Uint32Array,SE=typeof Uint16Array===Cu?Array:Uint16Array,pw=typeof Int32Array===Cu?Array:Int32Array,jg=typeof Float64Array===Cu?Array:Float64Array,gw={float:jg,int:pw,ordinal:Array,number:Array,time:jg},Bc;function Ai(e){return e>65535?bE:SE}function wa(){return[1/0,-1/0]}function CE(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Xg(e,t,r,n,a){var i=gw[r||"float"];if(a){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new i(n)}var fh=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ae()}return e.prototype.initData=function(t,r,n){process.env.NODE_ENV!=="production"&&ee(ie(t.getItem)&&ie(t.count),"Invalid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),i=this.defaultDimValueGetter=Bc[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];var o=lw(a);this._dimensions=q(r,function(s){return process.env.NODE_ENV!=="production"&&o&&ee(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,a=this._dimensions,i=n.get(t);if(i!=null){if(a[i].type===r)return i}else i=a.length;return a[i]={type:r},n.set(t,i),this._chunks[i]=new gw[r||"float"](this._rawCount),this._rawExtent[i]=wa(),i},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],a=this._dimensions[t],i=this._rawExtent,o=a.ordinalOffset||0,s=n.length;o===0&&(i[t]=wa());for(var l=i[t],u=o;u<s;u++){var c=n[u]=r.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,l[1]))}a.ordinalMeta=r,a.ordinalOffset=s,a.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){process.env.NODE_ENV!=="production"&&ee(!this._indices,"appendData can only be called on raw data.");var r=this._provider,n=this.count();r.appendData(t);var a=r.count();return r.persistent||(a+=n),n<a&&this._initDataFromProvider(n,a,!0),[n,a]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,a=this._dimensions,i=a.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<i;u++){var c=a[u];Xg(n,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var h=d-s,p=0;p<i;p++){var c=a[p],m=Bc.arrayRows.call(this,t[h]||f,c.property,h,p);n[p][d]=m;var g=o[p];m<g[0]&&(g[0]=m),m>g[1]&&(g[1]=m)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=q(o,function(w){return w.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=wa()),Xg(i,c,f.type,r,n)}if(a.fillStorage)a.fillStorage(t,r,i,l);else for(var d=[],h=t;h<r;h++){d=a.getItem(h,d);for(var p=0;p<s;p++){var m=i[p],g=this._dimValueGetter(d,u[p],h,p);m[h]=g;var y=l[p];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],a=[];if(r==null){r=t,t=[];for(var i=0;i<this._dimensions.length;i++)a.push(i)}else a=t;for(var i=0,o=a.length;i<o;i++)n.push(this.get(a[i],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var a=0,i=this.count();a<i;a++){var o=this.get(t,a);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(i){isNaN(i)||r.push(i)});var n=r.sort(function(i,o){return i-o}),a=this.count();return a===0?0:a%2===1?n[(a-1)/2]:(n[a/2]+n[a/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var a=0,i=this._count-1;a<=i;){var o=(a+i)/2|0;if(r[o]<t)a=o+1;else if(r[o]>t)i=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var a=this._chunks,i=a[t],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c<f;c++){var d=this.getRawIndex(c),h=r-i[d],p=Math.abs(h);p<=n&&((p<s||p===s&&h>=0&&l<0)&&(s=p,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i<a;i++)t[i]=r[i]}else t=new n(r.buffer,0,a)}else{var n=Ai(this._rawCount);t=new n(this.count());for(var i=0;i<t.length;i++)t[i]=i}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),a=n.count(),i=Ai(n._rawCount),o=new i(a),s=[],l=t.length,u=0,c=t[0],f=n._chunks,d=0;d<a;d++){var h=void 0,p=n.getRawIndex(d);if(l===0)h=r(d);else if(l===1){var m=f[c][p];h=r(m,d)}else{for(var g=0;g<l;g++)s[g]=f[t[g]][p];s[g]=d,h=r.apply(null,s)}h&&(o[u++]=p)}return u<a&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var a=_e(t),i=a.length;if(!i)return this;var o=r.count(),s=Ai(r._rawCount),l=new s(o),u=0,c=a[0],f=t[c][0],d=t[c][1],h=r._chunks,p=!1;if(!r._indices){var m=0;if(i===1){for(var g=h[a[0]],y=0;y<n;y++){var w=g[y];(w>=f&&w<=d||isNaN(w))&&(l[u++]=m),m++}p=!0}else if(i===2){for(var g=h[a[0]],_=h[a[1]],S=t[a[1]][0],x=t[a[1]][1],y=0;y<n;y++){var w=g[y],C=_[y];(w>=f&&w<=d||isNaN(w))&&(C>=S&&C<=x||isNaN(C))&&(l[u++]=m),m++}p=!0}}if(!p)if(i===1)for(var y=0;y<o;y++){var T=r.getRawIndex(y),w=h[a[0]][T];(w>=f&&w<=d||isNaN(w))&&(l[u++]=T)}else for(var y=0;y<o;y++){for(var b=!0,T=r.getRawIndex(y),D=0;D<i;D++){var N=a[D],w=h[N][T];(w<t[N][0]||w>t[N][1])&&(b=!1)}b&&(l[u++]=r.getRawIndex(y))}return u<o&&(r._indices=l),r._count=u,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var a=t._chunks,i=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<r.length;c++)u[r[c]]=wa();for(var f=0;f<s;f++){for(var d=t.getRawIndex(f),h=0;h<o;h++)l[h]=a[r[h]][d];l[o]=f;var p=n&&n.apply(null,l);if(p!=null){typeof p!="object"&&(i[0]=p,p=i);for(var c=0;c<p.length;c++){var m=r[c],g=p[c],y=u[m],w=a[m];w&&(w[d]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),a=n._chunks,i=a[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,d,h=new(Ai(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var p=1;p<o-1;p+=l){for(var m=Math.min(p+l,o-1),g=Math.min(p+l*2,o),y=(g+m)/2,w=0,_=m;_<g;_++){var S=this.getRawIndex(_),x=i[S];isNaN(x)||(w+=x)}w/=g-m;var C=p,T=Math.min(p+l,o),b=p-1,D=i[u];c=-1,d=C;for(var N=-1,A=0,_=C;_<T;_++){var S=this.getRawIndex(_),x=i[S];if(isNaN(x)){A++,N<0&&(N=S);continue}f=Math.abs((b-y)*(x-D)-(b-_)*(w-D)),f>c&&(c=f,d=S)}A>0&&A<T-C&&(h[s++]=Math.min(N,d),d=Math.max(N,d)),h[s++]=d,u=d}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,a){for(var i=this.clone([t],!0),o=i._chunks,s=[],l=Math.floor(1/r),u=o[t],c=this.count(),f=i._rawExtent[t]=wa(),d=new(Ai(this._rawCount))(Math.ceil(c/l)),h=0,p=0;p<c;p+=l){l>c-p&&(l=c-p,s.length=l);for(var m=0;m<l;m++){var g=this.getRawIndex(p+m);s[m]=u[g]}var y=n(s),w=this.getRawIndex(Math.min(p+a(s,y)||0,c-1));u[w]=y,y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y),d[h++]=w}return i._count=h,i._indices=d,i._updateGetRawIdx(),i},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,a=this._chunks,i=0,o=this.count();i<o;i++){var s=this.getRawIndex(i);switch(n){case 0:r(i);break;case 1:r(a[t[0]][s],i);break;case 2:r(a[t[0]][s],a[t[1]][s],i);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[t[l]][s];u[l]=i,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=wa();if(!r)return n;var a=this.count(),i=!this._indices,o;if(i)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<a;u++){var c=this.getRawIndex(u),f=r[c];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],a=this._chunks,i=0;i<a.length;i++)n.push(a[i][r]);return n},e.prototype.clone=function(t,r){var n=new e,a=this._chunks,i=t&&Lr(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?CE(a[o]):a[o];else n._chunks=a;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=ue(this._extent),t._rawExtent=ue(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var a=0;a<n;a++)r[a]=this._indices[a]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,a,i){return Ha(r[i],this._dimensions[i])}Bc={arrayRows:t,objectRows:function(r,n,a,i){return Ha(r[n],this._dimensions[i])},keyedColumns:t,original:function(r,n,a,i){var o=r&&(r.value==null?r:r.value);return Ha(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(r,n,a,i){return r[i]}}}(),e}(),xE=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,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 t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,a,i;if(Mi(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,i=[c._getVersionSign()]}else s=o.get("data",!0),l=lt(s)?kr:Ft,i=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=ne(f.seriesLayoutBy,d.seriesLayoutBy)||null,p=ne(f.sourceHeader,d.sourceHeader),m=ne(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!p!=!!d.sourceHeader||m;a=g?[ch(s,{seriesLayoutBy:h,sourceHeader:p,dimensions:m},l)]:[]}else{var y=t;if(n){var w=this._applyTransform(r);a=w.sourceList,i=w.upstreamSignList}else{var _=y.get("source",!0);a=[ch(_,this._getSourceMetaRawOption(),null)],i=[]}}process.env.NODE_ENV!=="production"&&ee(a&&i),this._setLocalSource(a,i)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),a=r.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&ee(a!=null||n!=null),a!=null){var i="";t.length!==1&&(process.env.NODE_ENV!=="production"&&(i="When using `fromTransformResult`, there should be only one upstream dataset"),Zg(i))}var o,s=[],l=[];return k(t,function(u){u.prepareSource();var c=u.getSource(a||0),f="";a!=null&&!c&&(process.env.NODE_ENV!=="production"&&(f="Can not retrieve result by `fromTransformResult`: "+a),Zg(f)),s.push(c),l.push(u._getVersionSign())}),n?o=_E(n,s,{datasetIndex:r.componentIndex}):a!=null&&(o=[nE(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){process.env.NODE_ENV!=="production"&&ee(Mi(this._sourceHost),"Can only call getDataStore on series source manager.");var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var a=0,i=this._storeList,o=i[a];o||(o=i[a]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Mi(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new fh,s.initData(new uw(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Mi(t)){var r=Ud(t);return r?[r.getSourceManager()]:[]}else return q(Ak(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,a;if(Mi(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var i=t;r=i.get("seriesLayoutBy",!0),n=i.get("sourceHeader",!0),a=i.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:a}},e}();function Mi(e){return e.mainType==="series"}function Zg(e){throw new Error(e)}var mw="line-height:1";function yw(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,a=e.fontWeight||"400",i=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Pt(n+"")+"px;color:"+Pt(r)+";font-weight:"+Pt(a+""),valueStyle:"font-size:"+Pt(o+"")+"px;color:"+Pt(i)+";font-weight:"+Pt(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var TE=[0,10,20,30],NE=["",`
36
36
  `,`
@@ -38,8 +38,8 @@ echarts.use([`+M+"]);":"Unknown series "+A))}return}if(f==="tooltip"){if(_){proc
38
38
  `,`
39
39
 
40
40
 
41
- `];function ea(e,t){return t.type=e,t}function hh(e){return e.type==="section"}function _w(e){return hh(e)?DE:AE}function ww(e){if(hh(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return k(e.blocks,function(a){var i=ww(a);i>=t&&(t=i+ +(n&&(!i||hh(a)&&!a.noHeader)))}),t}return 0}function DE(e,t,r,n){var a=t.noHeader,i=ME(ww(t)),o=[],s=t.blocks||[];ee(!s||U(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(W(u,l)){var c=new fE(u[l],null);s.sort(function(p,m){return c.evaluate(p.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}k(s,function(p,m){var g=t.valueFormatter,y=_w(p)(g?G(G({},e),{valueFormatter:g}):e,p,m>0?i.html:0,n);y!=null&&o.push(y)});var f=e.renderMode==="richText"?o.join(i.richText):dh(o.join(""),a?r:i.html);if(a)return f;var d=lh(t.header,"ordinal",e.useUTC),h=yw(n,e.renderMode).nameStyle;return e.renderMode==="richText"?bw(e,d,h)+i.richText+f:dh('<div style="'+h+";"+mw+';">'+Pt(d)+"</div>"+f,r)}function AE(e,t,r,n){var a=e.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(S){return S=U(S)?S:[S],q(S,function(x,C){return lh(x,U(h)?h[C]:h,u)})};if(!(i&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),d=i?"":lh(l,"ordinal",u),h=t.valueType,p=o?[]:c(t.value,t.dataIndex),m=!s||!i,g=!s&&i,y=yw(n,a),w=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":f)+(i?"":bw(e,d,w))+(o?"":PE(e,p,m,g,_)):dh((s?"":f)+(i?"":kE(d,!s,w))+(o?"":EE(p,m,g,_)),r)}}function Kg(e,t,r,n,a,i){if(e){var o=_w(e),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function ME(e){return{html:TE[e],richText:NE[e]}}function dh(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+mw+';">'+e+r+"</div>"}function kE(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Pt(e)+"</span>"}function EE(e,t,r,n){var a=r?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return e=U(e)?e:[e],'<span style="'+i+";"+n+'">'+q(e,function(o){return Pt(o)}).join("&nbsp;&nbsp;")+"</span>"}function bw(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function PE(e,t,r,n,a){var i=[a],o=n?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(U(t)?t.join(" "):t,i)}function IE(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Jn(n)}function Sw(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Vc=function(){function e(){this.richTextStyles={},this._nextStyleNameId=O_()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var a=n==="richText"?this._generateStyleName():null,i=_k({color:r,type:t,renderMode:n,markerId:a});return j(i)?i:(process.env.NODE_ENV!=="production"&&ee(a),this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};U(r)?k(r,function(i){return G(n,i)}):G(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},e}();function LE(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(r),l=U(s),u=IE(t,r),c,f,d,h;if(o>1||l&&!o){var p=OE(s,t,r,i,u);c=p.inlineValues,f=p.inlineValueTypes,d=p.blocks,h=p.inlineValues[0]}else if(o){var m=a.getDimensionInfo(i[0]);h=c=Qa(a,r,i[0]),f=m.type}else h=c=l?s[0]:s;var g=bd(t),y=g&&t.name||"",w=a.getName(r),_=n?y:w;return ea("section",{header:y,noHeader:n||!g,sortParam:h,blocks:[ea("nameValue",{markerType:"item",markerColor:u,name:_,noName:!fr(_),value:c,valueType:f,dataIndex:r})].concat(d||[])})}function OE(e,t,r,n,a){var i=t.getData(),o=Lr(e,function(f,d,h){var p=i.getDimensionInfo(h);return f=f||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];n.length?k(n,function(f){c(Qa(i,r,f),f)}):k(e,c);function c(f,d){var h=i.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(ea("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ur=Ne();function vs(e,t){return e.getName(t)||e.getId(t)}var RE="__universalTransitionEnabled",xu=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=lo({count:VE,reset:$E}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var i=Ur(this).sourceManager=new xE(this);i.prepareSource();var o=this.getInitialData(r,a);Qg(o,this),this.dataTask.context.data=o,process.env.NODE_ENV!=="production"&&ee(o,"getInitialData returned invalid data."),Ur(this).dataBeforeProcessed=o,Jg(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=So(this),i=a?Vo(r):{},o=this.subType;Se.hasClass(o)&&(o+="Series"),ve(r,n.getTheme().get(this.subType)),ve(r,this.getDefaultOption()),fl(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&Ja(r,i,a)},t.prototype.mergeOption=function(r,n){r=ve(this.option,r,!0),this.fillDataTextStyle(r.data);var a=So(this);a&&Ja(this.option,r,a);var i=Ur(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);Qg(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ur(this).dataBeforeProcessed=o,Jg(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!lt(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&fl(r[a],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=vh(this);if(n){var a=n.context.data;return r==null?a:a.getLinkedData(r)}else return Ur(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=vh(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}Ur(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return ae(r)},t.prototype.getSourceManager=function(){return Ur(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Ur(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,a){return LE({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(re.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,a){var i=this.ecModel,o=Wd.prototype.getColorFromPalette.call(this,r,n,a);return o||(o=i.getColorFromPalette(r,n,a)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=vs(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var a=[],i=0;i<r.length;i++)a[0]=r[i],this.isSelected(r[i],n)?this.unselect(a,n):this.select(a,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=_e(r),a=[],i=0;i<n.length;i++){var o=r[n[i]];o>=0&&a.push(o)}return a},t.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[vs(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[RE])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){K(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=n[c],d=vs(r,f);u[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(f)}}else if(s==="single"||s===!0){var h=n[l-1],d=vs(r,h);o.selectedMap=(a={},a[d]=!0,a),this._selectedDataIndicesMap=(i={},i[d]=r.getRawIndex(h),i)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(a){var i=r.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return Se.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(Se);Jt(xu,dw);Jt(xu,Wd);z_(xu,Se);function Jg(e){var t=e.name;bd(e)||(e.name=BE(e)||t)}function BE(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return k(r,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function VE(e){return e.model.getRawData().count()}function $E(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),FE}function FE(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Qg(e,t){k(JT(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,be(zE,t))})}function zE(e,t){var r=vh(e);return r&&r.setOutputEnd((t||this).count()),t}function vh(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(e.uid))}return n}}const Rr=xu;var Jd=function(){function e(){this.group=new Ie,this.uid=vu("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){},e.prototype.updateLayout=function(t,r,n,a){},e.prototype.updateVisual=function(t,r,n,a){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();Cd(Jd);iu(Jd);const Zt=Jd;function Qd(){var e=Ne();return function(t){var r=e(t),n=t.pipelineContext,a=!!r.large,i=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Cw=Ne(),GE=Qd(),ev=function(){function e(){this.group=new Ie,this.uid=vu("viewChart"),this.renderTask=lo({plan:HE,reset:UE}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},e.prototype.highlight=function(t,r,n,a){var i=t.getData(a&&a.dataType);if(!i){process.env.NODE_ENV!=="production"&&et("Unknown dataType "+a.dataType);return}tm(i,a,"emphasis")},e.prototype.downplay=function(t,r,n,a){var i=t.getData(a&&a.dataType);if(!i){process.env.NODE_ENV!=="production"&&et("Unknown dataType "+a.dataType);return}tm(i,a,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateLayout=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateVisual=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.eachRendered=function(t){ii(this.group,t)},e.markUpdateMethod=function(t,r){Cw(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function em(e,t,r){e&&Ka(e)&&(t==="emphasis"?mo:yo)(e,r)}function tm(e,t,r){var n=Xn(e,t),a=t&&t.highlightKey!=null?rM(t.highlightKey):null;n!=null?k(Ge(n),function(i){em(e.getItemGraphicEl(i),r,a)}):e.eachItemGraphicEl(function(i){em(i,r,a)})}Cd(ev,["dispose"]);iu(ev);function HE(e){return GE(e.model)}function UE(e){var t=e.model,r=e.ecModel,n=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&Cw(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,a),WE[l]}var WE={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)}}};const qt=ev;var Cl="\0__throttleOriginMethod",rm="\0__throttleRate",nm="\0__throttleType";function tv(e,t,r){var n,a=0,i=0,o=null,s,l,u,c;t=t||0;function f(){i=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];n=new Date().getTime(),l=this,u=h;var m=c||t,g=c||r;c=null,s=n-(g?a:i)-m,clearTimeout(o),g?o=setTimeout(f,m):s>=0?f():o=setTimeout(f,-s),a=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function Tu(e,t,r,n){var a=e[t];if(a){var i=a[Cl]||a,o=a[nm],s=a[rm];if(s!==r||o!==n){if(r==null||!n)return e[t]=i;a=e[t]=tv(i,r,n==="debounce"),a[Cl]=i,a[nm]=n,a[rm]=r}return a}}function xl(e,t){var r=e[t];r&&r[Cl]&&(r.clear&&r.clear(),e[t]=r[Cl])}var am=Ne(),im={itemStyle:go($1,!0),lineStyle:go(V1,!0)},YE={lineStyle:"stroke",itemStyle:"fill"};function xw(e,t){var r=e.visualStyleMapper||im[t];return r||(console.warn("Unknown style type '"+t+"'."),im.itemStyle)}function Tw(e,t){var r=e.visualDrawType||YE[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var qE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=e.getModel(n),i=xw(e,n),o=i(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Tw(e,n),u=o[l],c=ie(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ie(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||ie(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var m=e.getDataParams(p),g=G({},o);g[l]=c(m),h.setItemVisual(p,"style",g)}}}},ki=new Qe,jE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=xw(e,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){ki.option=l[n];var u=a(ki),c=o.ensureUniqueItemVisual(s,"style");G(c,u),ki.option.decal&&(o.setItemVisual(s,"decal",ki.option.decal),ki.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},XE={performRawSeries:!0,overallReset:function(e){var t=ae();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var a=r.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),am(r).scope=i}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),a={},i=r.getData(),o=am(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Tw(r,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),n.each(function(u){var c=a[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var d=i.ensureUniqueItemVisual(c,"style"),h=n.getName(u)||u+"",p=n.count();d[l]=r.getColorFromPalette(h,o,p)}})}})}},ps=Math.PI;function ZE(e,t){t=t||{},he(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Ie,n=new ke({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var a=new He({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new ke({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(i);var o;return t.showSpinner&&(o=new Pd({shape:{startAngle:-ps/2,endAngle:-ps/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:ps*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:ps*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var Nw=function(){function e(t,r,n,a){this._stageTaskMap=ae(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=ae();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),r._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;k(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";process.env.NODE_ENV!=="production"&&(o='"reset" and "overallReset" must not be both specified.'),ee(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,r,n),a.overallReset&&this._createOverallStageTask(a,i,r,n)},this)},e.prototype.prepareView=function(t,r,n,a){var i=t.renderTask,o=i.context;o.model=r,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(r,i)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,a){a=a||{};var i=!1,o=this;k(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,p=d.agentStubMap;p.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,n);var m=o.getPerformArgs(d,a.block);p.each(function(g){g.perform(m)}),d.perform(m)&&(i=!0)}else f&&f.each(function(g,y){s(a,g)&&g.dirty();var w=o.getPerformArgs(g,a.block);w.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(w)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,a){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ae(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,a).each(c);function c(f){var d=f.uid,h=s.set(d,o&&o.get(d)||lo({plan:t5,reset:r5,count:a5}));h.context={model:f,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,r,n,a){var i=this,o=r.overallTask=r.overallTask||lo({reset:KE});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ae(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";process.env.NODE_ENV!=="production"&&(h='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),ee(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,p):c?c(n,a).each(p):(f=!1,k(n.getSeries(),p));function p(m){var g=m.uid,y=l.set(g,s&&s.get(g)||(d=!0,lo({reset:JE,onDirty:e5})));y.context={model:m,overallProgress:f},y.agent=o,y.__block=f,i._pipe(m,y)}d&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},e.wrapStageHandler=function(t,r){return ie(t)&&(t={overallReset:t,seriesType:i5(t)}),t.uid=vu("stageHandler"),r&&(t.visualType=r),t},e}();function KE(e){e.overallReset(e.ecModel,e.api,e.payload)}function JE(e){return e.overallProgress&&QE}function QE(){this.agent.dirty(),this.getDownstream().dirty()}function e5(){this.agent&&this.agent.dirty()}function t5(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function r5(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Ge(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?q(t,function(r,n){return Dw(n)}):n5}var n5=Dw(0);function Dw(e){return function(t,r){var n=r.data,a=r.resetDefines[e];if(a&&a.dataEach)for(var i=t.start;i<t.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(t,n)}}function a5(e){return e.data.count()}function i5(e){Tl=null;try{e(xo,Aw)}catch{}return Tl}var xo={},Aw={},Tl;Mw(xo,Yd);Mw(Aw,aw);xo.eachSeriesByType=xo.eachRawSeriesByType=function(e){Tl=e};xo.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Tl=e.subType)};function Mw(e,t){for(var r in t.prototype)e[r]=ot}var om=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const o5={color:om,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],om]};var rt="#B9B8CE",sm="#100C2A",gs=function(){return{axisLine:{lineStyle:{color:rt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},lm=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],kw={darkMode:!0,color:lm,backgroundColor:sm,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:rt}},textStyle:{color:rt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:rt}},dataZoom:{borderColor:"#71708A",textStyle:{color:rt},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:rt}},timeline:{lineStyle:{color:rt},label:{color:rt},controlStyle:{color:rt,borderColor:rt}},calendar:{itemStyle:{color:sm},dayLabel:{color:rt},monthLabel:{color:rt},yearLabel:{color:rt}},timeAxis:gs(),logAxis:gs(),valueAxis:gs(),categoryAxis:gs(),line:{symbol:"circle"},graph:{color:lm},gauge:{title:{color:rt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:rt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};kw.categoryAxis.splitLine.show=!1;const s5=kw;var l5=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},a={};if(j(t)){var i=dr(t);r.mainType=i.main||null,r.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};k(t,function(l,u){for(var c=!1,f=0;f<o.length;f++){var d=o[f],h=u.lastIndexOf(d);if(h>0&&h===u.length-d.length){var p=u.slice(0,h);p!=="data"&&(r.mainType=p,r[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,a,i));function c(f,d,h,p){return f[h]==null||d[p||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),ph=["symbol","symbolSize","symbolRotate","symbolOffset"],um=ph.concat(["symbolKeepAspect"]),u5={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<ph.length;o++){var s=ph[o],l=e.get(s);ie(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(G({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=_e(a);function c(f,d){for(var h=e.getRawValue(d),p=e.getDataParams(d),m=0;m<u.length;m++){var g=u[m];f.setItemVisual(d,g,a[g](h,p))}}return{dataEach:i?c:null}}},c5={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<um.length;s++){var l=um[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function f5(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+r)}}function Ew(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function h5(e,t){function r(n,a){var i=[];return n.eachComponent({mainType:"series",subType:e,query:a},function(o){i.push(o.seriesIndex)}),i}k([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(a,i,o){a=G({},a),process.env.NODE_ENV!=="production"&&ze(a.type,n[1]),o.dispatchAction(G(a,{type:n[1],seriesIndex:r(i,a)}))})})}function ba(e,t,r,n,a){var i=e+t;r.isSilent(i)||(process.env.NODE_ENV!=="production"&&jt("event "+i+" is deprecated."),n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),d=Xn(f,a.fromActionPayload);r.trigger(i,{type:i,seriesId:o.id,name:U(d)?f.getName(d[0]):f.getName(d),selected:j(l)?l:G({},l)})}}))}function d5(e,t,r){e.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(ba("map","selectchanged",t,a,n),ba("pie","selectchanged",t,a,n)):n.fromAction==="select"?(ba("map","selected",t,a,n),ba("pie","selected",t,a,n)):n.fromAction==="unselect"&&(ba("map","unselected",t,a,n),ba("pie","unselected",t,a,n))})}function Xi(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var v5=Math.round(Math.random()*9),p5=typeof Object.defineProperty=="function",g5=function(){function e(){this._id="__ec_inner_"+v5++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return p5?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}(),m5=pe.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,i=t.height/2;e.moveTo(r,n-i),e.lineTo(r+a,n+i),e.lineTo(r-a,n+i),e.closePath()}}),y5=pe.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,i=t.height/2;e.moveTo(r,n-i),e.lineTo(r+a,n),e.lineTo(r,n+i),e.lineTo(r-a,n),e.closePath()}}),_5=pe.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,a=t.width/5*3,i=Math.max(a,t.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),d=Math.cos(u),h=o*.6,p=o*.7;e.moveTo(r-c,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+c-f*h,l+s+d*h,r,n-p,r,n),e.bezierCurveTo(r,n-p,r-c+f*h,l+s+d*h,r-c,l+s),e.closePath()}}),w5=pe.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,a=t.x,i=t.y,o=n/3*2;e.moveTo(a,i),e.lineTo(a+o,i+r),e.lineTo(a,i+r/4*3),e.lineTo(a-o,i+r),e.lineTo(a,i),e.closePath()}}),b5={line:dn,rect:ke,roundRect:ke,square:ke,circle:Md,diamond:y5,pin:_5,arrow:w5,triangle:m5},S5={line:function(e,t,r,n,a){a.x1=e,a.y1=t+n/2,a.x2=e+r,a.y2=t+n/2},rect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n},roundRect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n,a.r=Math.min(r,n)/4},square:function(e,t,r,n,a){var i=Math.min(r,n);a.x=e,a.y=t,a.width=i,a.height=i},circle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.r=Math.min(r,n)/2},diamond:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n},pin:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},arrow:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},triangle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n}},Nl={};k(b5,function(e,t){Nl[t]=new e});var C5=pe.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=sl(e,t,r),a=this.shape;return a&&a.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var a=Nl[n];a||(n="rect",a=Nl[n]),S5[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,r)}}});function x5(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function Br(e,t,r,n,a,i,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=k1(e.slice(8),new ye(t,r,n,a),o?"center":"cover"):e.indexOf("path://")===0?l=fu(e.slice(7),{},new ye(t,r,n,a),o?"center":"cover"):l=new C5({shape:{symbolType:e,x:t,y:r,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=x5,i&&l.setColor(i),l}function rv(e){return U(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Nu(e,t){if(e!=null)return U(e)||(e=[e,e]),[Ce(e[0],t[0])||0,Ce(ne(e[1],e[0]),t[1])||0]}function Gn(e){return isFinite(e)}function T5(e,t,r){var n=t.x==null?0:t.x,a=t.x2==null?1:t.x2,i=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,a=a*r.width+r.x,i=i*r.height+r.y,o=o*r.height+r.y),n=Gn(n)?n:0,a=Gn(a)?a:1,i=Gn(i)?i:0,o=Gn(o)?o:0;var s=e.createLinearGradient(n,i,a,o);return s}function N5(e,t,r){var n=r.width,a=r.height,i=Math.min(n,a),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*a+r.y,l=l*i),o=Gn(o)?o:.5,s=Gn(s)?s:.5,l=l>=0&&Gn(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function gh(e,t,r){for(var n=t.type==="radial"?N5(e,t,r):T5(e,t,r),a=t.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function D5(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function ms(e){return parseInt(e,10)}function ys(e,t,r){var n=["width","height"][t],a=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[a]||ms(s[n])||ms(e.style[n]))-(ms(s[i])||0)-(ms(s[o])||0)|0}function A5(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:xe(e)?[e]:U(e)?e:null}function Pw(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&A5(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(r=q(r,function(i){return i/a}),n/=a)}return[r,n]}var M5=new Zn(!0);function Dl(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function cm(e){return typeof e=="string"&&e!=="none"}function Al(e){var t=e.fill;return t!=null&&t!=="none"}function fm(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function hm(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function mh(e,t,r){var n=G_(t.image,t.__image,r);if(ou(n)){var a=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*QT),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function k5(e,t,r,n){var a,i=Dl(r),o=Al(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||M5,f=t.__dirty;if(!n){var d=r.fill,h=r.stroke,p=o&&!!d.colorStops,m=i&&!!h.colorStops,g=o&&!!d.image,y=i&&!!h.image,w=void 0,_=void 0,S=void 0,x=void 0,C=void 0;(p||m)&&(C=t.getBoundingRect()),p&&(w=f?gh(e,d,C):t.__canvasFillGradient,t.__canvasFillGradient=w),m&&(_=f?gh(e,h,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=f||!t.__canvasFillPattern?mh(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(x=f||!t.__canvasStrokePattern?mh(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),p?e.fillStyle=w:g&&(S?e.fillStyle=S:o=!1),m?e.strokeStyle=_:y&&(x?e.strokeStyle=x:i=!1)}var T=t.getGlobalScale();c.setScale(T[0],T[1],t.segmentIgnoreThreshold);var b,D;e.setLineDash&&r.lineDash&&(a=Pw(t),b=a[0],D=a[1]);var N=!0;(u||f&Aa)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),N=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),N&&c.rebuildPath(e,l?s:1),b&&(e.setLineDash(b),e.lineDashOffset=D),n||(r.strokeFirst?(i&&hm(e,r),o&&fm(e,r)):(o&&fm(e,r),i&&hm(e,r))),b&&e.setLineDash([])}function E5(e,t,r){var n=t.__image=G_(r.image,t.__image,t,t.onload);if(!(!n||!ou(n))){var a=r.x||0,i=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,a,i,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,d=s-c;e.drawImage(n,u,c,f,d,a,i,o,s)}else e.drawImage(n,a,i,o,s)}}function P5(e,t,r){var n,a=r.text;if(a!=null&&(a+=""),a){e.font=r.font||jn,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var i=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=Pw(t),i=n[0],o=n[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),r.strokeFirst?(Dl(r)&&e.strokeText(a,r.x,r.y),Al(r)&&e.fillText(a,r.x,r.y)):(Al(r)&&e.fillText(a,r.x,r.y),Dl(r)&&e.strokeText(a,r.x,r.y)),i&&e.setLineDash([])}}var dm=["shadowBlur","shadowOffsetX","shadowOffsetY"],vm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Iw(e,t,r,n,a){var i=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){ht(e,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Un.opacity:o}(n||t.blend!==r.blend)&&(i||(ht(e,a),i=!0),e.globalCompositeOperation=t.blend||Un.blend);for(var s=0;s<dm.length;s++){var l=dm[s];(n||t[l]!==r[l])&&(i||(ht(e,a),i=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(i||(ht(e,a),i=!0),e.shadowColor=t.shadowColor||Un.shadowColor),i}function pm(e,t,r,n,a){var i=To(t,a.inHover),o=n?null:r&&To(r,a.inHover)||{};if(i===o)return!1;var s=Iw(e,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(ht(e,a),s=!0),cm(i.fill)&&(e.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(ht(e,a),s=!0),cm(i.stroke)&&(e.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(ht(e,a),s=!0),e.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(ht(e,a),s=!0),e.lineWidth=u)}for(var c=0;c<vm.length;c++){var f=vm[c],d=f[0];(n||i[d]!==o[d])&&(s||(ht(e,a),s=!0),e[d]=i[d]||f[1])}return s}function I5(e,t,r,n,a){return Iw(e,To(t,a.inHover),r&&To(r,a.inHover),n,a)}function Lw(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function L5(e,t,r){for(var n=!1,a=0;a<e.length;a++){var i=e[a];n=n||i.isZeroArea(),Lw(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}r.allClipped=n}function O5(e,t){return e&&t?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&&!t)}var gm=1,mm=2,ym=3,_m=4;function R5(e){var t=Al(e),r=Dl(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function ht(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function To(e,t){return t&&e.__hoverStyle||e.style}function Ow(e,t){Hn(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Hn(e,t,r,n){var a=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~_t,t.__isRendered=!1;return}var i=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||D5(i,o))&&(o&&o.length&&(ht(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(ht(e,r),e.save(),L5(i,e,r),s=!0),r.prevElClipPaths=i),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var c=t instanceof pe&&t.autoBatch&&R5(t.style);s||O5(a,u.transform)?(ht(e,r),Lw(e,t)):c||ht(e,r);var f=To(t,r.inHover);t instanceof pe?(r.lastDrawType!==gm&&(l=!0,r.lastDrawType=gm),pm(e,t,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&e.beginPath(),k5(e,t,f,c),c&&(r.batchFill=f.fill||"",r.batchStroke=f.stroke||"")):t instanceof rh?(r.lastDrawType!==ym&&(l=!0,r.lastDrawType=ym),pm(e,t,u,l,r),P5(e,t,f)):t instanceof gn?(r.lastDrawType!==mm&&(l=!0,r.lastDrawType=mm),I5(e,t,u,l,r),E5(e,t,f)):t.getTemporalDisplayables&&(r.lastDrawType!==_m&&(l=!0,r.lastDrawType=_m),B5(e,t,r)),c&&n&&ht(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function B5(e,t,r){var n=t.getDisplayables(),a=t.getTemporalDisplayables();e.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Hn(e,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,c=a.length;u<c;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Hn(e,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var $c=new g5,wm=new Oo(100),bm=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Ml(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";e.dirty&&$c.delete(e);var i=$c.get(e);if(i)return i;var o=he(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 l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/r,$c.set(e,s),e.dirty=!1,s;function l(u){for(var c=[r],f=!0,d=0;d<bm.length;++d){var h=o[bm[d]];if(h!=null&&!U(h)&&!j(h)&&!xe(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var p;if(f){p=c.join(",")+(a?"-svg":"");var m=wm.get(p);m&&(a?u.svgElement=m:u.image=m)}var g=Bw(o.dashArrayX),y=V5(o.dashArrayY),w=Rw(o.symbol),_=$5(g),S=Vw(y),x=!a&&ti.createCanvas(),C=a&&{tag:"g",attrs:{},key:"dcl",children:[]},T=D(),b;x&&(x.width=T.width*r,x.height=T.height*r,b=x.getContext("2d")),N(),f&&wm.put(p,x||C),u.image=x,u.svgElement=C,u.svgWidth=T.width,u.svgHeight=T.height;function D(){for(var A=1,M=0,I=_.length;M<I;++M)A=Ip(A,_[M]);for(var P=1,M=0,I=w.length;M<I;++M)P=Ip(P,w[M].length);A*=P;var L=S*_.length*w.length;if(process.env.NODE_ENV!=="production"){var E=function(B){console.warn("Calculated decal size is greater than "+B+" due to decal option settings so "+B+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+B+" to be larger to avoid incontinuity.")};A>o.maxTileWidth&&E("maxTileWidth"),L>o.maxTileHeight&&E("maxTileHeight")}return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(L,o.maxTileHeight))}}function N(){b&&(b.clearRect(0,0,x.width,x.height),o.backgroundColor&&(b.fillStyle=o.backgroundColor,b.fillRect(0,0,x.width,x.height)));for(var A=0,M=0;M<y.length;++M)A+=y[M];if(A<=0)return;for(var I=-S,P=0,L=0,E=0;I<T.height;){if(P%2===0){for(var B=L/2%w.length,R=0,V=0,z=0;R<T.width*2;){for(var Y=0,M=0;M<g[E].length;++M)Y+=g[E][M];if(Y<=0)break;if(V%2===0){var Z=(1-o.symbolSize)*.5,F=R+g[E][V]*Z,J=I+y[P]*Z,Te=g[E][V]*o.symbolSize,fe=y[P]*o.symbolSize,Ve=z/2%w[B].length;je(F,J,Te,fe,w[B][Ve])}R+=g[E][V],++z,++V,V===g[E].length&&(V=0)}++E,E===g.length&&(E=0)}I+=y[P],++L,++P,P===y.length&&(P=0)}function je(Be,Me,te,le,gt){var Le=a?1:r,zt=Br(gt,Be*Le,Me*Le,te*Le,le*Le,o.color,o.symbolKeepAspect);if(a){var St=n.painter.renderOneToVNode(zt);St&&C.children.push(St)}else Ow(b,zt)}}}}function Rw(e){if(!e||e.length===0)return[["rect"]];if(j(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!j(e[r])){t=!1;break}if(t)return Rw([e]);for(var n=[],r=0;r<e.length;++r)j(e[r])?n.push([e[r]]):n.push(e[r]);return n}function Bw(e){if(!e||e.length===0)return[[0,0]];if(xe(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!xe(e[n])){r=!1;break}if(r)return Bw([e]);for(var a=[],n=0;n<e.length;++n)if(xe(e[n])){var t=Math.ceil(e[n]);a.push([t,t])}else{var t=q(e[n],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function V5(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(xe(e)){var t=Math.ceil(e);return[t,t]}var r=q(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function $5(e){return q(e,function(t){return Vw(t)})}function Vw(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function F5(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Ml(s,t)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=Ml(a,t)}}})}var Wt=new Qt,kl={};function z5(e,t){process.env.NODE_ENV!=="production"&&kl[e]&&et("Already has an implementation of "+e+"."),kl[e]=t}function G5(e){return process.env.NODE_ENV!=="production"&&(kl[e]||et("Implementation of "+e+" doesn't exists.")),kl[e]}var H5=1,U5=800,W5=900,Y5=1e3,q5=2e3,j5=5e3,$w=1e3,X5=1100,nv=2e3,Fw=3e3,Z5=4e3,Du=4500,K5=4600,J5=5e3,Q5=6e3,zw=7e3,eP={PROCESSOR:{FILTER:Y5,SERIES_FILTER:U5,STATISTIC:j5},VISUAL:{LAYOUT:$w,PROGRESSIVE_LAYOUT:X5,GLOBAL:nv,CHART:Fw,POST_CHART_LAYOUT:K5,COMPONENT:Z5,BRUSH:J5,CHART_ITEM:Du,ARIA:Q5,DECAL:zw}},Ze="__flagInMainProcess",ft="__pendingUpdate",Fc="__needsUpdateStatus",Sm=/^[a-zA-Z0-9_]+$/,zc="__connectUpdateStatus",Cm=0,tP=1,rP=2;function Gw(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){mt(this.id);return}return Uw(this,e,t)}}function Hw(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Uw(this,e,t)}}function Uw(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Qt.prototype[t].apply(e,r)}var Ww=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Qt),Yw=Ww.prototype;Yw.on=Hw("on");Yw.off=Hw("off");var Sa,Gc,_s,Wr,Hc,Uc,Wc,Ei,Pi,xm,Tm,Yc,Nm,ws,Dm,qw,xt,Am,jw=function(e){H(t,e);function t(r,n,a){var i=e.call(this,new l5)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},j(n)&&(n=Xw[n]),i._dom=r;var o="canvas",s="auto",l=!1;if(process.env.NODE_ENV!=="production"){var u=re.hasGlobalWindow?window:global;u&&(o=ne(u.__ECHARTS__DEFAULT__RENDERER__,o),s=ne(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=ne(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l))}a.ssr;var c=i._zr=Ep(r,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:ne(a.useDirtyRect,l),useCoarsePointer:ne(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=tv(Q(c.flush,c),17),n=ue(n),n&&ow(n,!0),i._theme=n,i._locale=hk(a.locale||F1),i._coordSysMgr=new qd;var f=i._api=Dm(i);function d(h,p){return h.__prio-p.__prio}return $s(Pl,d),$s(yh,d),i._scheduler=new Nw(i,f,yh,Pl),i._messageCenter=new Ww,i._initEvents(),i.resize=Q(i.resize,i),c.animation.on("frame",i._onframe,i),xm(c,i),Tm(c,i),Lf(i),i}return t.prototype._onframe=function(){if(!this._disposed){Am(this);var r=this._scheduler;if(this[ft]){var n=this[ft].silent;this[Ze]=!0;try{Sa(this),Wr.update.call(this,null,this[ft].updateParams)}catch(l){throw this[Ze]=!1,this[ft]=null,l}this._zr.flush(),this[Ze]=!1,this[ft]=null,Ei.call(this,n),Pi.call(this,n)}else if(r.unfinished){var a=H5,i=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(i),r.performDataProcessorTasks(i),Uc(this,i),r.performVisualTasks(i),ws(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&r.unfinished);r.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(r,n,a){if(this[Ze]){process.env.NODE_ENV!=="production"&&et("`setOption` should not be called during main process.");return}if(this._disposed){mt(this.id);return}var i,o,s;if(K(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ze]=!0,!this._model||n){var l=new qk(this._api),u=this._theme,c=this._model=new Yd;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},_h);var f={seriesTransition:s,optionChanged:!0};if(a)this[ft]={silent:i,updateParams:f},this[Ze]=!1,this.getZr().wakeUp();else{try{Sa(this),Wr.update.call(this,null,f)}catch(d){throw this[ft]=null,this[Ze]=!1,d}this._ssr||this._zr.flush(),this[ft]=null,this[Ze]=!1,Ei.call(this,i),Pi.call(this,i)}},t.prototype.setTheme=function(){jt("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},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||re.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return process.env.NODE_ENV!=="production"&&ze("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(re.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return k(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){mt(this.id);return}r=r||{};var n=r.excludeComponents,a=this._model,i=[],o=this;k(n,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return k(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){mt(this.id);return}var n=r.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Mm[a]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();k(co,function(_,S){if(_.group===a){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ue(r)),C=_.getDom().getBoundingClientRect();l=i(C.left,l),u=i(C.top,u),c=o(C.right,c),f=o(C.bottom,f),d.push({dom:x,left:C.left,top:C.top})}}),l*=h,u*=h,c*=h,f*=h;var p=c-l,m=f-u,g=ti.createCanvas(),y=Ep(g,{renderer:n?"svg":"canvas"});if(y.resize({width:p,height:m}),n){var w="";return k(d,function(_){var S=_.left-l,x=_.top-u;w+='<g transform="translate('+S+","+x+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=w,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new ke({shape:{x:0,y:0,width:p,height:m},style:{fill:r.connectedBackgroundColor}})),k(d,function(_){var S=new gn({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return Hc(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Hc(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){mt(this.id);return}var a=this._model,i,o=fc(a,r);return k(o,function(s,l){l.indexOf("Models")>=0&&k(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint?i=i||f.containPoint(n,u):process.env.NODE_ENV!=="production"&&Fe(l+": "+(f?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&Fe(l+": containPoint is not supported")},this)},this),!!i},t.prototype.getVisual=function(r,n){var a=this._model,i=fc(a,r,{defaultMainType:"series"}),o=i.seriesModel;process.env.NODE_ENV!=="production"&&(o||Fe("There is no specified series model"));var s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?f5(s,l,n):Ew(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;k(nP,function(n){var a=function(i){var o=r.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&Xi(s,function(p){var m=de(p);if(m&&m.dataIndex!=null){var g=m.dataModel||o.getSeriesByIndex(m.seriesIndex);return l=g&&g.getDataParams(m.dataIndex,m.dataType,s)||{},!0}else if(m.eventData)return l=G({},m.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),h=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];process.env.NODE_ENV!=="production"&&!u&&!(d&&h)&&Fe("model or view can not be found by params"),l.event=i,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},r.trigger(n,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)}),k(uo,function(n,a){r._messageCenter.on(a,function(i){this.trigger(a,i)},r)}),k(["selectchanged"],function(n){r._messageCenter.on(n,function(a){this.trigger(n,a)},r)}),d5(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){mt(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){mt(this.id);return}this._disposed=!0;var r=this.getDom();r&&$_(this.getDom(),iv,"");var n=this,a=n._api,i=n._model;k(n._componentsViews,function(o){o.dispose(i,a)}),k(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete co[n.id]},t.prototype.resize=function(r){if(this[Ze]){process.env.NODE_ENV!=="production"&&et("`resize` should not be called during main process.");return}if(this._disposed){mt(this.id);return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=r&&r.silent;this[ft]&&(i==null&&(i=this[ft].silent),a=!0,this[ft]=null),this[Ze]=!0;try{a&&Sa(this),Wr.update.call(this,{type:"resize",animation:G({duration:0},r&&r.animation)})}catch(o){throw this[Ze]=!1,o}this[Ze]=!1,Ei.call(this,i),Pi.call(this,i)}},t.prototype.showLoading=function(r,n){if(this._disposed){mt(this.id);return}if(K(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!wh[r]){process.env.NODE_ENV!=="production"&&Fe("Loading effects "+r+" not exists.");return}var a=wh[r](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)},t.prototype.hideLoading=function(){if(this._disposed){mt(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=G({},r);return n.type=uo[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){mt(this.id);return}if(K(n)||(n={silent:!!n}),!!El[r.type]&&this._model){if(this[Ze]){this._pendingActions.push(r);return}var a=n.silent;Wc.call(this,r,a);var i=n.flush;i?this._zr.flush():i!==!1&&re.browser.weChat&&this._throttledZrFlush(),Ei.call(this,a),Pi.call(this,a)}},t.prototype.updateLabelLayout=function(){Wt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){mt(this.id);return}var n=r.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);process.env.NODE_ENV!=="production"&&ee(r.data&&i),i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Sa=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),Gc(f,!0),Gc(f,!1),d.plan()},Gc=function(f,d){for(var h=f._model,p=f._scheduler,m=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,y=f._zr,w=f._api,_=0;_<m.length;_++)m[_].__alive=!1;d?h.eachComponent(function(C,T){C!=="series"&&S(T)}):h.eachSeries(S);function S(C){var T=C.__requireNewView;C.__requireNewView=!1;var b="_ec_"+C.id+"_"+C.type,D=!T&&g[b];if(!D){var N=dr(C.type),A=d?Zt.getClass(N.main,N.sub):qt.getClass(N.sub);process.env.NODE_ENV!=="production"&&ee(A,N.sub+" does not exist."),D=new A,D.init(h,w),g[b]=D,m.push(D),y.add(D.group)}C.__viewId=D.__id=b,D.__alive=!0,D.__model=C,D.group.__ecComponentInfo={mainType:C.mainType,index:C.componentIndex},!d&&p.prepareView(D,C,h,w)}for(var _=0;_<m.length;){var x=m[_];x.__alive?_++:(!d&&x.renderTask.dispose(),y.remove(x.group),x.dispose(h,w),m.splice(_,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},_s=function(f,d,h,p,m){var g=f._model;if(g.setUpdatePayload(h),!p){k([].concat(f._componentsViews).concat(f._chartsViews),x);return}var y={};y[p+"Id"]=h[p+"Id"],y[p+"Index"]=h[p+"Index"],y[p+"Name"]=h[p+"Name"];var w={mainType:p,query:y};m&&(w.subType=m);var _=h.excludeSeriesId,S;_!=null&&(S=ae(),k(Ge(_),function(C){var T=vr(C,null);T!=null&&S.set(T,!0)})),g&&g.eachComponent(w,function(C){var T=S&&S.get(C.id)!=null;if(!T)if(ug(h))if(C instanceof Rr)h.type===Wn&&!h.notBlur&&!C.get(["emphasis","disabled"])&&jA(C,h,f._api);else{var b=Ad(C.mainType,C.componentIndex,h.name,f._api),D=b.focusSelf,N=b.dispatchers;h.type===Wn&&D&&!h.notBlur&&ah(C.mainType,C.componentIndex,f._api),N&&k(N,function(A){h.type===Wn?mo(A):yo(A)})}else ih(h)&&C instanceof Rr&&(KA(C,h,f._api),sg(C),xt(f))},f),g&&g.eachComponent(w,function(C){var T=S&&S.get(C.id)!=null;T||x(f[p==="series"?"_chartsMap":"_componentsMap"][C.__viewId])},f);function x(C){C&&C.__alive&&C[d]&&C[d](C.__model,g,f._api,h)}},Wr={prepareAndUpdate:function(f){Sa(this),Wr.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var h=this._model,p=this._api,m=this._zr,g=this._coordSysMgr,y=this._scheduler;if(h){h.setUpdatePayload(f),y.restoreData(h,f),y.performSeriesTasks(h),g.create(h,p),y.performDataProcessorTasks(h,f),Uc(this,h),g.update(h,p),r(h),y.performVisualTasks(h,f),Yc(this,h,p,f,d);var w=h.get("backgroundColor")||"transparent",_=h.get("darkMode");m.setBackgroundColor(w),_!=null&&_!=="auto"&&m.setDarkMode(_),Wt.trigger("afterupdate",h,p)}},updateTransform:function(f){var d=this,h=this._model,p=this._api;if(h){h.setUpdatePayload(f);var m=[];h.eachComponent(function(y,w){if(y!=="series"){var _=d.getViewOfComponentModel(w);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(w,h,p,f);S&&S.update&&m.push(_)}else m.push(_)}});var g=ae();h.eachSeries(function(y){var w=d._chartsMap[y.__viewId];if(w.updateTransform){var _=w.updateTransform(y,h,p,f);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),r(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:g}),ws(this,h,p,f,{},g),Wt.trigger("afterupdate",h,p)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),qt.markUpdateMethod(f,"updateView"),r(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),Yc(this,d,this._api,f,{}),Wt.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(p){p.getData().clearAllVisual()}),qt.markUpdateMethod(f,"updateVisual"),r(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(p,m){if(p!=="series"){var g=d.getViewOfComponentModel(m);g&&g.__alive&&g.updateVisual(m,h,d._api,f)}}),h.eachSeries(function(p){var m=d._chartsMap[p.__viewId];m.updateVisual(p,h,d._api,f)}),Wt.trigger("afterupdate",h,this._api))},updateLayout:function(f){Wr.update.call(this,f)}},Hc=function(f,d,h,p){if(f._disposed){mt(f.id);return}for(var m=f._model,g=f._coordSysMgr.getCoordinateSystems(),y,w=fc(m,h),_=0;_<g.length;_++){var S=g[_];if(S[d]&&(y=S[d](m,w,p))!=null)return y}process.env.NODE_ENV!=="production"&&Fe("No coordinate system that supports "+d+" found by the given finder.")},Uc=function(f,d){var h=f._chartsMap,p=f._scheduler;d.eachSeries(function(m){p.updateStreamModes(m,h[m.__viewId])})},Wc=function(f,d){var h=this,p=this.getModel(),m=f.type,g=f.escapeConnect,y=El[m],w=y.actionInfo,_=(w.update||"update").split(":"),S=_.pop(),x=_[0]!=null&&dr(_[0]);this[Ze]=!0;var C=[f],T=!1;f.batch&&(T=!0,C=q(f.batch,function(P){return P=he(G({},P),f),P.batch=null,P}));var b=[],D,N=ih(f),A=ug(f);if(A&&c1(this._api),k(C,function(P){if(D=y.action(P,h._model,h._api),D=D||G({},P),D.type=w.event||D.type,b.push(D),A){var L=Sd(f),E=L.queryOptionMap,B=L.mainTypeSpecified,R=B?E.keys()[0]:"series";_s(h,S,P,R),xt(h)}else N?(_s(h,S,P,"series"),xt(h)):x&&_s(h,S,P,x.main,x.sub)}),S!=="none"&&!A&&!N&&!x)try{this[ft]?(Sa(this),Wr.update.call(this,f),this[ft]=null):Wr[S].call(this,f)}catch(P){throw this[Ze]=!1,P}if(T?D={type:w.event||m,escapeConnect:g,batch:b}:D=b[0],this[Ze]=!1,!d){var M=this._messageCenter;if(M.trigger(D.type,D),N){var I={type:"selectchanged",escapeConnect:g,selected:JA(p),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};M.trigger(I.type,I)}}},Ei=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();Wc.call(this,h,f)}},Pi=function(f){!f&&this.trigger("updated")},xm=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[ft]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},Tm=function(f,d){f.on("mouseover",function(h){var p=h.target,m=Xi(p,Ka);m&&(XA(m,h,d._api),xt(d))}).on("mouseout",function(h){var p=h.target,m=Xi(p,Ka);m&&(ZA(m,h,d._api),xt(d))}).on("click",function(h){var p=h.target,m=Xi(p,function(w){return de(w).dataIndex!=null},!0);if(m){var g=m.selected?"unselect":"select",y=de(m);d._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function r(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function n(f){var d=[],h=[],p=!1;if(f.eachComponent(function(w,_){var S=_.get("zlevel")||0,x=_.get("z")||0,C=_.getZLevelKey();p=p||!!C,(w==="series"?h:d).push({zlevel:S,z:x,idx:_.componentIndex,type:w,key:C})}),p){var m=d.concat(h),g,y;$s(m,function(w,_){return w.zlevel===_.zlevel?w.z-_.z:w.zlevel-_.zlevel}),k(m,function(w){var _=f.getComponent(w.type,w.idx),S=w.zlevel,x=w.key;g!=null&&(S=Math.max(g,S)),x?(S===g&&x!==y&&S++,y=x):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}Yc=function(f,d,h,p,m){n(d),Nm(f,d,h,p,m),k(f._chartsViews,function(g){g.__alive=!1}),ws(f,d,h,p,m),k(f._chartsViews,function(g){g.__alive||g.remove(d,h)})},Nm=function(f,d,h,p,m,g){k(g||f._componentsViews,function(y){var w=y.__model;u(w,y),y.render(w,d,h,p),s(w,y),c(w,y)})},ws=function(f,d,h,p,m,g){var y=f._scheduler;m=G(m||{},{updatedSeries:d.getSeries()}),Wt.trigger("series:beforeupdate",d,h,m);var w=!1;d.eachSeries(function(_){var S=f._chartsMap[_.__viewId];S.__alive=!0;var x=S.renderTask;y.updatePayload(x,p),u(_,S),g&&g.get(_.uid)&&x.dirty(),x.perform(y.getPerformArgs(x))&&(w=!0),S.group.silent=!!_.get("silent"),o(_,S),sg(_)}),y.unfinished=w||y.unfinished,Wt.trigger("series:layoutlabels",d,h,m),Wt.trigger("series:transition",d,h,m),d.eachSeries(function(_){var S=f._chartsMap[_.__viewId];s(_,S),c(_,S)}),i(f,d),Wt.trigger("series:afterupdate",d,h,m)},xt=function(f){f[Fc]=!0,f.getZr().wakeUp()},Am=function(f){f[Fc]&&(f.getZr().storage.traverse(function(d){io(d)||a(d)}),f[Fc]=!1)};function a(f){for(var d=[],h=f.currentStates,p=0;p<h.length;p++){var m=h[p];m==="emphasis"||m==="blur"||m==="select"||d.push(m)}f.selected&&f.states.select&&d.push("select"),f.hoverState===uu&&f.states.emphasis?d.push("emphasis"):f.hoverState===lu&&f.states.blur&&d.push("blur"),f.useStates(d)}function i(f,d){var h=f._zr,p=h.storage,m=0;p.traverse(function(g){g.isGroup||m++}),m>d.get("hoverLayerThreshold")&&!re.node&&!re.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=f._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(w){w.states.emphasis&&(w.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,p=f.get("zlevel")||0;d.eachRendered(function(m){return l(m,h,p,-1/0),!0})}}function l(f,d,h,p){var m=f.getTextContent(),g=f.getTextGuideLine(),y=f.isGroup;if(y)for(var w=f.childrenRef(),_=0;_<w.length;_++)p=Math.max(l(w[_],d,h,p),p);else f.z=d,f.zlevel=h,p=Math.max(f.z2,p);if(m&&(m.z=d,m.zlevel=h,isFinite(p)&&(m.z2=p+2)),g){var S=f.textGuideLineConfig;g.z=d,g.zlevel=h,isFinite(p)&&(g.z2=p+(S&&S.showAbove?1:-1))}return p}function u(f,d){d.eachRendered(function(h){if(!io(h)){var p=h.getTextContent(),m=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(f,d){var h=f.getModel("stateAnimation"),p=f.isAnimationEnabled(),m=h.get("duration"),g=m>0?{duration:m,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(y){if(y.states&&y.states.emphasis){if(io(y))return;if(y instanceof pe&&nM(y),y.__dirty){var w=y.prevStates;w&&y.useStates(w)}if(p){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&a(y)}})}Dm=function(f){return new(function(d){H(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var m=p.__ecComponentInfo;if(m!=null)return f._model.getComponent(m.mainType,m.index);p=p.parent}},h.prototype.enterEmphasis=function(p,m){mo(p,m),xt(f)},h.prototype.leaveEmphasis=function(p,m){yo(p,m),xt(f)},h.prototype.enterBlur=function(p){o1(p),xt(f)},h.prototype.leaveBlur=function(p){Dd(p),xt(f)},h.prototype.enterSelect=function(p){s1(p),xt(f)},h.prototype.leaveSelect=function(p){l1(p),xt(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(p){return f.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return f.getViewOfSeriesModel(p)},h}(aw))(f)},qw=function(f){function d(h,p){for(var m=0;m<h.length;m++){var g=h[m];g[zc]=p}}k(uo,function(h,p){f._messageCenter.on(p,function(m){if(Mm[f.group]&&f[zc]!==Cm){if(m&&m.escapeConnect)return;var g=f.makeActionFromEvent(m),y=[];k(co,function(w){w!==f&&w.group===f.group&&y.push(w)}),d(y,Cm),k(y,function(w){w[zc]!==tP&&w.dispatchAction(g)}),d(y,rP)}})})}}(),t}(Qt),av=jw.prototype;av.on=Gw("on");av.off=Gw("off");av.one=function(e,t,r){var n=this;jt("ECharts#one is deprecated.");function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),n.off(e,a)}this.on.call(this,e,a,r)};var nP=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function mt(e){process.env.NODE_ENV!=="production"&&Fe("Instance "+e+" has been disposed")}var El={},uo={},yh=[],_h=[],Pl=[],Xw={},wh={},co={},Mm={},aP=+new Date-0,iv="_echarts_instance_";function iP(e,t,r){var n=!(r&&r.ssr);if(n){if(process.env.NODE_ENV!=="production"&&!e)throw new Error("Initialize failed: invalid dom.");var a=oP(e);if(a)return process.env.NODE_ENV!=="production"&&Fe("There is a chart instance already initialized on the dom."),a;process.env.NODE_ENV!=="production"&&qa(e)&&e.nodeName.toUpperCase()!=="CANVAS"&&(!e.clientWidth&&(!r||r.width==null)||!e.clientHeight&&(!r||r.height==null))&&Fe("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var i=new jw(e,t,r);return i.id="ec_"+aP++,co[i.id]=i,n&&$_(e,iv,i.id),qw(i),Wt.trigger("afterinit",i),i}function oP(e){return co[BD(e,iv)]}function Au(e,t){Xw[e]=t}function Zw(e){ce(_h,e)<0&&_h.push(e)}function Kw(e,t){sv(yh,e,t,q5)}function sP(e){ov("afterinit",e)}function lP(e){ov("afterupdate",e)}function ov(e,t){Wt.on(e,t)}function oa(e,t,r){ie(t)&&(r=t,t="");var n=K(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!uo[t]&&(ee(Sm.test(n)&&Sm.test(t)),El[n]||(El[n]={action:r,actionInfo:e}),uo[t]=n)}function uP(e,t){qd.register(e,t)}function cP(e,t){sv(Pl,e,t,$w,"layout")}function sa(e,t){sv(Pl,e,t,Fw,"visual")}var km=[];function sv(e,t,r,n,a){if((ie(t)||K(t))&&(r=t,t=n),process.env.NODE_ENV!=="production"){if(isNaN(t)||t==null)throw new Error("Illegal priority");k(e,function(o){ee(o.__raw!==r)})}if(!(ce(km,r)>=0)){km.push(r);var i=Nw.wrapStageHandler(r,a);i.__prio=t,i.__raw=r,e.push(i)}}function Jw(e,t){wh[e]=t}function fP(e,t,r){var n=G5("registerMap");n&&n(e,t,r)}var hP=yE;sa(nv,qE);sa(Du,jE);sa(Du,XE);sa(nv,u5);sa(Du,c5);sa(zw,F5);Zw(ow);Kw(W5,tE);Jw("default",ZE);oa({type:Wn,event:Wn,update:Wn},ot);oa({type:Hs,event:Hs,update:Hs},ot);oa({type:ro,event:ro,update:ro},ot);oa({type:Us,event:Us,update:Us},ot);oa({type:no,event:no,update:no},ot);Au("light",o5);Au("dark",s5);function Ii(e){return e==null?0:e.length||1}function Em(e){return e}var dP=function(){function e(t,r,n,a,i,o){this._old=t,this._new=r,this._oldKeyGetter=n||Em,this._newKeyGetter=a||Em,this.context=i,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},a=new Array(t.length),i=new Array(r.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=a[o],l=n[s],u=Ii(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(r,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],c=a[l],f=Ii(u),d=Ii(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(f>1)for(var h=0;h<f;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var a=t[n],i=r[a],o=Ii(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);r[a]=null}},e.prototype._initIndexMap=function(t,r,n,a){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[a](t[o],o);if(i||(n[o]=s),!!r){var l=r[s],u=Ii(l);u===0?(r[s]=o,i&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}();const Qw=dP;var vP=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function pP(e,t){var r={},n=r.encode={},a=ae(),i=[],o=[],s={};k(e.dimensions,function(d){var h=e.getDimensionInfo(d),p=h.coordDim;if(p){process.env.NODE_ENV!=="production"&&ee(uh.get(p)==null);var m=h.coordDimIndex;qc(n,p)[m]=d,h.isExtraCoord||(a.set(p,1),mP(h.type)&&(i[0]=d),qc(s,p)[m]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}uh.each(function(g,y){var w=qc(n,y),_=h.otherDims[y];_!=null&&_!==!1&&(w[_]=h.name)})});var l=[],u={};a.each(function(d,h){var p=n[h];u[h]=p[0],l=l.concat(p)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=q(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),r.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(i=c.slice());var f=n.tooltip;return f&&f.length?o=f.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,r.userOutput=new vP(s,t),r}function qc(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function gP(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function mP(e){return!(e==="ordinal"||e==="time")}var qs=function(){function e(t){this.otherDims={},t!=null&&G(this,t)}return e}(),yP=Ne(),_P={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},eb=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=nb(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return ne(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=lw(this.source),n=!ab(t),a="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=r?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=r?d.name:null,u=d.type)}i.push({property:l,type:u,ordinalMeta:c}),r&&l!=null&&(!f||!f.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=_P[u]||"f",c&&(a+=c.uid),a+="$"}var h=this.source,p=[h.seriesLayoutBy,h.startIndex,a].join("$$");return{dimensions:i,hash:p}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===r)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(r);o&&(a=o.name)}t.push(a)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function tb(e){return e instanceof eb}function rb(e){for(var t=ae(),r=0;r<(e||[]).length;r++){var n=e[r],a=K(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,r)}return t}function nb(e){var t=yP(e);return t.dimNameMap||(t.dimNameMap=rb(e.dimensionsDefine))}function ab(e){return e>30}var Li=K,Yr=q,wP=typeof Int32Array>"u"?Array:Int32Array,bP="e\0\0",Pm=-1,SP=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],CP=["_approximateExtent"],Im,bs,Oi,Ca,jc,Ss,Xc,fo=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;tb(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c<n.length;c++){var f=n[c],d=j(f)?new qs({name:f}):f instanceof qs?f:new qs(f),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};o.push(h),i[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),p.itemName===0&&(this._nameDimIdx=c),p.itemId===0&&(this._idDimIdx=c),process.env.NODE_ENV!=="production"&&ee(a||d.storeDimIndex>=0),a&&(d.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var m=this._dimIdxToName=ae();k(o,function(g){m.set(i[g].storeDimIndex,g)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var a=this._schema.getSourceDimension(r);if(a)return a.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(xe(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Unknown dimension "+t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var a=n.encode[t];return a?a[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var a=this,i;if(t instanceof fh&&(i=t),!i){var o=this.dimensions,s=jd(t)||st(t)?new uw(t,o.length):t;i=new fh;var l=Yr(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=pP(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=r[l],o&&Xc(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var a=this._dimInfos[r[n]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==kr&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Ft;if(l&&!a.pure)for(var u=[],c=t;c<r;c++){var f=a.getItem(c,u);if(!this.hasItemOption&&TD(f)&&(this.hasItemOption=!0),f){var d=f.name;i[c]==null&&d!=null&&(i[c]=vr(d,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=vr(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<r;c++)Xc(this,c);Im(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){Li(t)?G(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Oi(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),a=this._store.getOrdinalMeta(t);return a?a.categories[n]:n},e.prototype.getId=function(t){return bs(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.get(a.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.getByRawIndex(a.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,a=this._store;return U(t)?a.getValues(Yr(t,function(i){return n._getStoreDimIndex(i)}),r):a.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,a=r.length;n<a;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t];if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Do not supported yet");var a=n[r];return a==null||isNaN(a)?Pm:a},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){ie(t)&&(n=r,r=t,t=[]);var a=n||this,i=Yr(Ca(t),this._getStoreDimIndex,this);this._store.each(i,a?Q(r,a):r)},e.prototype.filterSelf=function(t,r,n){ie(t)&&(n=r,r=t,t=[]);var a=n||this,i=Yr(Ca(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?Q(r,a):r),this},e.prototype.selectRange=function(t){var r=this,n={},a=_e(t);return k(a,function(i){var o=r._getStoreDimIndex(i);n[o]=t[i]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){ie(t)&&(n=r,r=t,t=[]),n=n||this;var a=[];return this.each(t,function(){a.push(r&&r.apply(this,arguments))},n),a},e.prototype.map=function(t,r,n,a){var i=n||a||this,o=Yr(Ca(t),this._getStoreDimIndex,this),s=Ss(this);return s._store=this._store.map(o,i?Q(r,i):r),s},e.prototype.modify=function(t,r,n,a){var i=this,o=n||a||this;process.env.NODE_ENV!=="production"&&k(Ca(t),function(l){var u=i.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=Yr(Ca(t),this._getStoreDimIndex,this);this._store.modify(s,o?Q(r,o):r)},e.prototype.downSample=function(t,r,n,a){var i=Ss(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),r,n,a),i},e.prototype.lttbDownSample=function(t,r){var n=Ss(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new Qe(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new Qw(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return bs(t,n)},function(n){return bs(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},Li(t)?G(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],a=n&&n[r];return a??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[r];return i==null&&(i=this.getVisual(r),U(i)?i=i.slice():Li(i)&&(i=G({},i)),a[r]=i),i},e.prototype.setItemVisual=function(t,r,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Li(r)?G(a,r):a[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Li(t)?G(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?G(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;$A(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){k(this._graphicEls,function(n,a){n&&t&&t.call(r,n,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Yr(this.dimensions,this._getDimInfo,this),this.hostModel)),jc(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];ie(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(cd(arguments)))})},e.internalField=function(){Im=function(t){var r=t._invertedIndicesMap;k(r,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=r[a]=new wP(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Pm;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},Oi=function(t,r,n){return vr(t._getCategory(r,n),null)},bs=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Oi(t,t._idDimIdx,r)),n==null&&(n=bP+r),n},Ca=function(t){return U(t)||(t=t!=null?[t]:[]),t},Ss=function(t){var r=new e(t._schema?t._schema:Yr(t.dimensions,t._getDimInfo,t),t.hostModel);return jc(r,t),r},jc=function(t,r){k(SP.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,k(CP,function(n){t[n]=ue(r[n])}),t._calculationInfo=G({},r._calculationInfo)},Xc=function(t,r){var n=t._nameList,a=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=a[r];if(s==null&&i!=null&&(n[r]=s=Oi(t,i,r)),l==null&&o!=null&&(a[r]=l=Oi(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),a[r]=l}}}(),e}();function ib(e,t){jd(e)||(e=Xd(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],a=ae(),i=[],o=TP(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&ab(o),l=n===e.dimensionsDefine,u=l?nb(e):rb(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=ae(c),d=new pw(o),h=0;h<d.length;h++)d[h]=-1;function p(D){var N=d[D];if(N<0){var A=n[D],M=K(A)?A:{name:A},I=new qs,P=M.name;P!=null&&u.get(P)!=null&&(I.name=I.displayName=P),M.type!=null&&(I.type=M.type),M.displayName!=null&&(I.displayName=M.displayName);var L=i.length;return d[D]=L,I.storeDimIndex=D,i.push(I),I}return i[N]}if(!s)for(var h=0;h<o;h++)p(h);f.each(function(D,N){var A=Ge(D).slice();if(A.length===1&&!j(A[0])&&A[0]<0){f.set(N,!1);return}var M=f.set(N,[]);k(A,function(I,P){var L=j(I)?u.get(I):I;L!=null&&L<o&&(M[P]=L,g(p(L),N,P))})});var m=0;k(r,function(D){var N,A,M,I;if(j(D))N=D,I={};else{I=D,N=I.name;var P=I.ordinalMeta;I.ordinalMeta=null,I=G({},I),I.ordinalMeta=P,A=I.dimsDef,M=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var L=f.get(N);if(L!==!1){if(L=Ge(L),!L.length)for(var E=0;E<(A&&A.length||1);E++){for(;m<o&&p(m).coordDim!=null;)m++;m<o&&L.push(m++)}k(L,function(B,R){var V=p(B);if(l&&I.type!=null&&(V.type=I.type),g(he(V,I),N,R),V.name==null&&A){var z=A[R];!K(z)&&(z={name:z}),V.name=V.displayName=z.name,V.defaultTooltip=z.defaultTooltip}M&&he(V.otherDims,M)})}});function g(D,N,A){uh.get(N)!=null?D.otherDims[N]=A:(D.coordDim=N,D.coordDimIndex=A,a.set(N,!0))}var y=t.generateCoord,w=t.generateCoordCount,_=w!=null;w=y?w||1:0;var S=y||"value";function x(D){D.name==null&&(D.name=D.coordDim)}if(s)k(i,function(D){x(D)}),i.sort(function(D,N){return D.storeDimIndex-N.storeDimIndex});else for(var C=0;C<o;C++){var T=p(C),b=T.coordDim;b==null&&(T.coordDim=NP(S,a,_),T.coordDimIndex=0,(!y||w<=0)&&(T.isExtraCoord=!0),w--),x(T),T.type==null&&(rw(e,C)===Ue.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return xP(i),new eb({source:e,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function xP(e){for(var t=ae(),r=0;r<e.length;r++){var n=e[r],a=n.name,i=t.get(a)||0;i>0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function TP(e,t,r,n){var a=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return k(t,function(i){var o;K(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function NP(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var DP=function(){function e(t){this.coordSysDims=[],this.axisMap=ae(),this.categoryAxisMap=ae(),this.coordSysName=t}return e}();function AP(e){var t=e.get("coordinateSystem"),r=new DP(t),n=MP[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var MP={cartesian2d:function(e,t,r,n){var a=e.getReferringComponents("xAxis",dt).models[0],i=e.getReferringComponents("yAxis",dt).models[0];if(process.env.NODE_ENV!=="production"){if(!a)throw new Error('xAxis "'+fn(e.get("xAxisIndex"),e.get("xAxisId"),0)+'" not found');if(!i)throw new Error('yAxis "'+fn(e.get("xAxisIndex"),e.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],r.set("x",a),r.set("y",i),xa(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),xa(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var a=e.getReferringComponents("singleAxis",dt).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],r.set("single",a),xa(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var a=e.getReferringComponents("polar",dt).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!o)throw new Error("angleAxis option not found");if(!i)throw new Error("radiusAxis option not found")}t.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",o),xa(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),xa(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var a=e.ecModel,i=a.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();k(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];r.set(c,u),xa(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function xa(e){return e.get("type")==="category"}function kP(e,t,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,i,o,s;EP(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(k(i,function(w,_){j(w)&&(i[_]=w={name:w}),l&&!w.isExtraCoord&&(!n&&!u&&w.ordinalMeta&&(u=w),!c&&w.type!=="ordinal"&&w.type!=="time"&&(!a||a===w.coordDim)&&(c=w))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,m=0;k(i,function(w){w.coordDim===h&&m++});var g={name:f,coordDim:h,coordDimIndex:m,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:d,coordDim:d,coordDimIndex:m+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,p),y.storeDimIndex=s.ensureCalculationDimension(f,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function EP(e){return!tb(e.schema)}function ta(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function ob(e,t){return ta(e,t)?e.getCalculationInfo("stackResultDimension"):t}function PP(e,t){var r=e.get("coordinateSystem"),n=qd.get(r),a;return t&&t.coordSysDims&&(a=q(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=gP(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function IP(e,t,r){var n,a;return r&&k(e,function(i,o){var s=i.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(e[n].otherDims.itemName=0),n}function Mu(e,t,r){r=r||{};var n=t.getSourceManager(),a,i=!1;e?(i=!0,a=Xd(e)):(a=n.getSource(),i=a.sourceFormat===Ft);var o=AP(t),s=PP(t,o),l=r.useEncodeDefaulter,u=ie(l)?l:l?be(Nk,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=ib(a,c),d=IP(f.dimensions,r.createInvertedIndices,o),h=i?null:n.getSharedDataStore(f),p=kP(t,{schema:f,store:h}),m=new fo(f,t);m.setCalculationInfo(p);var g=d!=null&&LP(a)?function(y,w,_,S){return S===d?_:this.defaultDimValueGetter(y,w,_,S)}:null;return m.hasItemOption=!1,m.initData(i?a:h,null,g),m}function LP(e){if(e.sourceFormat===Ft){var t=OP(e.data||[]);return!U(Ro(t))}}function OP(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var yr=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();iu(yr);var RP=0,bh=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++RP}return e.createByAxisModel=function(t){var r=t.option,n=r.data,a=n&&q(n,BP);return new e({categories:a,needCollect:!a,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!j(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var a=this._getOrCreateMap();return r=a.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,a.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=ae(this.categories))},e}();function BP(e){return K(e)&&e.value!=null?e.value:e+""}function VP(e){var t=Math.pow(10,nu(Math.abs(e))),r=Math.abs(e/t);return r===0||r===1||r===2||r===3||r===5}function Sh(e){return e.type==="interval"||e.type==="log"}function $P(e,t,r,n){var a={},i=e[1]-e[0],o=a.interval=I_(i/t,!0);r!=null&&o<r&&(o=a.interval=r),n!=null&&o>n&&(o=a.interval=n);var s=a.intervalPrecision=sb(o),l=a.niceTickExtent=[Re(Math.ceil(e[0]/o)*o,s),Re(Math.floor(e[1]/o)*o,s)];return FP(l,e),a}function Zc(e){var t=Math.pow(10,nu(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Re(r*t)}function sb(e){return hr(e)+2}function Lm(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function FP(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Lm(e,0,t),Lm(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function ku(e,t){return e>=t[0]&&e<=t[1]}function Eu(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Pu(e,t){return e*(t[1]-t[0])+t[0]}var lb=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new bh({})),U(a)&&(a=new bh({categories:q(a,function(i){return K(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:j(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),ku(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Eu(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(Pu(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,a=n[0];a<=n[1];)r.push({value:a}),a++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];a[o]=u,i[u]=o}for(var c=0;o<s;++o){for(;i[c]!=null;)c++;a.push(c),i[c]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(yr);yr.registerClass(lb);const ub=lb;var Bn=Re,cb=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return ku(r,this._extent)},t.prototype.normalize=function(r){return Eu(r,this._extent)},t.prototype.scale=function(r){return Pu(r,this._extent)},t.prototype.setExtent=function(r,n){var a=this._extent;isNaN(r)||(a[0]=parseFloat(r)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=sb(r)},t.prototype.getTicks=function(r){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]<i[0]&&(r?s.push({value:Bn(i[0]-n,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=Bn(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(r?s.push({value:Bn(c+n,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,c=[],f=s.value-l.value,d=f/r;u<r-1;){var h=Bn(l.value+(u+1)*d);h>i[0]&&h<i[1]&&c.push(h),u++}a.push(c)}return a},t.prototype.getLabel=function(r,n){if(r==null)return"";var a=n&&n.precision;a==null?a=hr(r.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=Bn(r.value,a,!0);return Z1(i)},t.prototype.calcNiceTicks=function(r,n,a){r=r||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=$P(i,r,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);r.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var i=n[1]-n[0];isFinite(i)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=Bn(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=Bn(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(yr);yr.registerClass(cb);const $o=cb;var fb=typeof Float32Array<"u",zP=fb?Float32Array:Array;function Dr(e){return U(e)?fb?new Float32Array(e):e:new zP(e)}var Ch="__ec_stack_";function lv(e){return e.get("stack")||Ch+e.seriesIndex}function uv(e){return e.dim+e.index}function GP(e){var t=[],r=e.axis,n="axis0";if(r.type==="category"){for(var a=r.getBandWidth(),i=0;i<e.count;i++)t.push(he({bandWidth:a,axisKey:n,stackId:Ch+i},e));for(var o=vb(t),s=[],i=0;i<e.count;i++){var l=o[n][Ch+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function hb(e,t){var r=[];return t.eachSeriesByType(e,function(n){pb(n)&&r.push(n)}),r}function HP(e){var t={};k(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,h=f.getDimensionIndex(f.mapDimension(c.dim)),p=f.getStore(),m=0,g=p.count();m<g;++m){var y=p.get(h,m);t[d]?t[d].push(y):t[d]=[y]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];if(a){a.sort(function(l,u){return l-u});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}r[n]=i}}return r}function db(e){var t=HP(e),r=[];return k(e,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=Ce(n.get("barWidth"),s),m=Ce(n.get("barMaxWidth"),s),g=Ce(n.get("barMinWidth")||(gb(n)?.5:1),s),y=n.get("barGap"),w=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:p,barMaxWidth:m,barMinWidth:g,barGap:y,barCategoryGap:w,axisKey:uv(i),stackId:lv(n)})}),vb(r)}function vb(e){var t={};k(e,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var d=n.barMinWidth;d&&(l[u].minWidth=d);var h=n.barGap;h!=null&&(s.gap=h);var p=n.barCategoryGap;p!=null&&(s.categoryGap=p)});var r={};return k(t,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=_e(i).length;s=Math.max(35-l*4,15)+"%"}var u=Ce(s,o),c=Ce(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),k(i,function(y){var w=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;w&&(S=Math.min(S,w)),_&&(S=Math.max(S,_)),y.width=S,f-=S+c*S,d--}else{var S=h;w&&w<S&&(S=Math.min(w,f)),_&&_>S&&(S=_),S!==h&&(y.width=S,f-=S+c*S,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var p=0,m;k(i,function(y,w){y.width||(y.width=h),m=y,p+=y.width*(1+c)}),m&&(p-=m.width*c);var g=-p/2;k(i,function(y,w){r[a][w]=r[a][w]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+c)})}),r}function UP(e,t,r){if(e&&t){var n=e[uv(t)];return n!=null&&r!=null?n[lv(r)]:n}}function WP(e,t){var r=hb(e,t),n=db(r);k(r,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=lv(a),u=n[uv(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function YP(e){return{seriesType:e,plan:Qd(),reset:function(t){if(pb(t)){var r=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getDimensionIndex(r.mapDimension(a.dim)),l=t.get("showBackground",!0),u=r.mapDimension(i.dim),c=r.getCalculationInfo("stackResultDimension"),f=ta(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),h=qP(a,i),p=gb(t),m=t.get("barMinHeight")||0,g=c&&r.getDimensionIndex(c),y=r.getLayout("size"),w=r.getLayout("offset");return{progress:function(_,S){for(var x=_.count,C=p&&Dr(x*3),T=p&&l&&Dr(x*3),b=p&&Dr(x),D=n.master.getRect(),N=d?D.width:D.height,A,M=S.getStore(),I=0;(A=_.next())!=null;){var P=M.get(f?g:o,A),L=M.get(s,A),E=h,B=void 0;f&&(B=+P-M.get(o,A));var R=void 0,V=void 0,z=void 0,Y=void 0;if(d){var Z=n.dataToPoint([P,L]);if(f){var F=n.dataToPoint([B,L]);E=F[0]}R=E,V=Z[1]+w,z=Z[0]-E,Y=y,Math.abs(z)<m&&(z=(z<0?-1:1)*m)}else{var Z=n.dataToPoint([L,P]);if(f){var F=n.dataToPoint([L,B]);E=F[1]}R=Z[0]+w,V=E,z=y,Y=Z[1]-E,Math.abs(Y)<m&&(Y=(Y<=0?-1:1)*m)}p?(C[I]=R,C[I+1]=V,C[I+2]=d?z:Y,T&&(T[I]=d?D.x:R,T[I+1]=d?V:D.y,T[I+2]=N),b[A]=A):S.setItemLayout(A,{x:R,y:V,width:z,height:Y}),I+=3}p&&S.setLayout({largePoints:C,largeDataIndices:b,largeBackgroundPoints:T,valueAxisHorizontal:d})}}}}}}function pb(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function gb(e){return e.pipelineContext&&e.pipelineContext.large}function qP(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var jP=function(e,t,r,n){for(;r<n;){var a=r+n>>>1;e[a][1]<t?r=a+1:n=a}return r},mb=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return gu(r.value,Tg[gk(za(this._minLevelUnit))]||Tg.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return mk(r,n,a,o,i)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,a=[];if(!r)return a;a.push({value:n[0],level:0});var i=this.getSetting("useUTC"),o=tI(this._minLevelUnit,this._approxInterval,i,n);return a=a.concat(o),a.push({value:n[1],level:0}),a},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Bt,n[1]+=Bt),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-Bt}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,a){r=r||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=Cs.length,l=Math.min(jP(Cs,this._approxInterval,0,s),s-1);this._interval=Cs[l][1],this._minLevelUnit=Cs[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return xe(r)?r:+Or(r)},t.prototype.contain=function(r){return ku(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Eu(this.parse(r),this._extent)},t.prototype.scale=function(r){return Pu(r,this._extent)},t.type="time",t}($o),Cs=[["second",Fd],["minute",zd],["hour",oo],["quarter-day",oo*6],["half-day",oo*12],["day",Bt*1.2],["half-week",Bt*3.5],["week",Bt*7],["month",Bt*31],["quarter",Bt*95],["half-year",xg/2],["year",xg]];function XP(e,t,r,n){var a=Or(t),i=Or(r),o=function(p){return Ng(a,p,n)===Ng(i,p,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},h=function(){return d()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return h()}}function ZP(e,t){return e/=Bt,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function KP(e){var t=30*Bt;return e/=t,e>6?6:e>3?3:e>2?2:1}function JP(e){return e/=oo,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Om(e,t){return e/=t?zd:Fd,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function QP(e){return I_(e,!0)}function eI(e,t,r){var n=new Date(e);switch(za(t)){case"year":case"month":n[U1(r)](0);case"day":n[W1(r)](1);case"hour":n[Y1(r)](0);case"minute":n[q1(r)](0);case"second":n[j1(r)](0),n[X1(r)](0)}return n.getTime()}function tI(e,t,r,n){var a=1e4,i=G1,o=0;function s(N,A,M,I,P,L,E){for(var B=new Date(A),R=A,V=B[I]();R<M&&R<=n[1];)E.push({value:R}),V+=N,B[P](V),R=B.getTime();E.push({value:R,notAdd:!0})}function l(N,A,M){var I=[],P=!A.length;if(!XP(za(N),n[0],n[1],r)){P&&(A=[{value:eI(new Date(n[0]),N,r)},{value:n[1]}]);for(var L=0;L<A.length-1;L++){var E=A[L].value,B=A[L+1].value;if(E!==B){var R=void 0,V=void 0,z=void 0,Y=!1;switch(N){case"year":R=Math.max(1,Math.round(t/Bt/365)),V=Gd(r),z=yk(r);break;case"half-year":case"quarter":case"month":R=KP(t),V=Ga(r),z=U1(r);break;case"week":case"half-week":case"day":R=ZP(t),V=mu(r),z=W1(r),Y=!0;break;case"half-day":case"quarter-day":case"hour":R=JP(t),V=bo(r),z=Y1(r);break;case"minute":R=Om(t,!0),V=yu(r),z=q1(r);break;case"second":R=Om(t,!1),V=_u(r),z=j1(r);break;case"millisecond":R=QP(t),V=wu(r),z=X1(r);break}s(R,E,B,V,z,Y,I),N==="year"&&M.length>1&&L===0&&M.unshift({value:M[0].value-R})}}for(var L=0;L<I.length;L++)M.push(I[L]);return I}}for(var u=[],c=[],f=0,d=0,h=0;h<i.length&&o++<a;++h){var p=za(i[h]);if(pk(i[h])){l(i[h],u[u.length-1]||[],c);var m=i[h+1]?za(i[h+1]):null;if(p!==m){if(c.length){d=f,c.sort(function(N,A){return N.value-A.value});for(var g=[],y=0;y<c.length;++y){var w=c[y].value;(y===0||c[y-1].value!==w)&&(g.push(c[y]),w>=n[0]&&w<=n[1]&&f++)}var _=(n[1]-n[0])/t;if(f>_*1.5&&d>_/1.5||(u.push(g),f>_||e===i[h]))break}c=[]}}}process.env.NODE_ENV!=="production"&&o>=a&&Fe("Exceed safe limit.");for(var S=qe(q(u,function(N){return qe(N,function(A){return A.value>=n[0]&&A.value<=n[1]&&!A.notAdd})}),function(N){return N.length>0}),x=[],C=S.length-1,h=0;h<S.length;++h)for(var T=S[h],b=0;b<T.length;++b)x.push({value:T[b].value,level:C-h});x.sort(function(N,A){return N.value-A.value});for(var D=[],h=0;h<x.length;++h)(h===0||x[h].value!==x[h-1].value)&&D.push(x[h]);return D}yr.registerClass(mb);const rI=mb;var Rm=yr.prototype,ho=$o.prototype,nI=Re,aI=Math.floor,iI=Math.ceil,xs=Math.pow,Gt=Math.log,cv=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new $o,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,a=this._extent,i=n.getExtent(),o=ho.getTicks.call(this,r);return q(o,function(s){var l=s.value,u=Re(xs(this.base,l));return u=l===a[0]&&this._fixMin?Ts(u,i[0]):u,u=l===a[1]&&this._fixMax?Ts(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var a=Gt(this.base);r=Gt(Math.max(0,r))/a,n=Gt(Math.max(0,n))/a,ho.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=Rm.getExtent.call(this);n[0]=xs(r,n[0]),n[1]=xs(r,n[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(n[0]=Ts(n[0],i[0])),this._fixMax&&(n[1]=Ts(n[1],i[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=Gt(r[0])/Gt(n),r[1]=Gt(r[1])/Gt(n),Rm.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,a=n[1]-n[0];if(!(a===1/0||a<=0)){var i=wD(a),o=r/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Re(iI(n[0]/i)*i),Re(aI(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){ho.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=Gt(r)/Gt(this.base),ku(r,this._extent)},t.prototype.normalize=function(r){return r=Gt(r)/Gt(this.base),Eu(r,this._extent)},t.prototype.scale=function(r){return r=Pu(r,this._extent),xs(this.base,r)},t.type="log",t}(yr),yb=cv.prototype;yb.getMinorTicks=ho.getMinorTicks;yb.getLabel=ho.getLabel;function Ts(e,t){return nI(e,hr(t))}yr.registerClass(cv);const oI=cv;var sI=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var i=this._modelMinRaw=r.get("min",!0);ie(i)?this._modelMinNum=Ns(t,i({min:n[0],max:n[1]})):i!=="dataMin"&&(this._modelMinNum=Ns(t,i));var o=this._modelMaxRaw=r.get("max",!0);if(ie(o)?this._modelMaxNum=Ns(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=Ns(t,o)),a)this._axisDataLen=r.getCategories().length;else{var s=r.get("boundaryGap"),l=U(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?(process.env.NODE_ENV!=="production"&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[hn(l[0],1),hn(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?a?0:NaN:r-i[0]*o),l==null&&(l=t?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=ja(s)||ja(l)||t&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){process.env.NODE_ENV!=="production"&&ee(!this.frozen),this[uI[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=lI[t];process.env.NODE_ENV!=="production"&&ee(!this.frozen&&this[n]==null),this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),lI={min:"_determinedMin",max:"_determinedMax"},uI={min:"_dataMin",max:"_dataMax"};function _b(e,t,r){var n=e.rawExtentInfo;return n||(n=new sI(e,t,r),e.rawExtentInfo=n,n)}function Ns(e,t){return t==null?null:ja(t)?NaN:e.parse(t)}function wb(e,t){var r=e.type,n=_b(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&r==="time"){var s=hb("bar",o),l=!1;if(k(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=db(s),c=cI(a,i,t,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function cI(e,t,r,n){var a=r.axis.getExtent(),i=a[1]-a[0],o=UP(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;k(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;k(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/i,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function Bm(e,t){var r=t,n=wb(e,r),a=n.extent,i=r.get("splitNumber");e instanceof oI&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(a[0],a[1]),e.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function fI(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new ub({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new rI({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(yr.getClass(t)||$o)}}function hI(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Fo(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(a,i){return e.scale.getFormattedLabel(a,i,n)}}(t):j(t)?function(n){return function(a){var i=e.scale.getLabel(a),o=n.replace("{value}",i??"");return o}}(t):ie(t)?function(n){return function(a,i){return r!=null&&(i=a.value-r),n(fv(e,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function fv(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function dI(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,a,i=r.getExtent();r instanceof ub?a=r.count():(n=r.getTicks(),a=n.length);var o=e.getLabelModel(),s=Fo(e),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;c<a;c+=u){var f=n?n[c]:{value:i[0]+c},d=s(f,c),h=o.getTextRect(d),p=vI(h,o.get("rotate")||0);l?l.union(p):l=p}return l}}function vI(e,t){var r=t*Math.PI/180,n=e.width,a=e.height,i=n*Math.abs(Math.cos(r))+Math.abs(a*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(a*Math.cos(r)),s=new ye(e.x,e.y,i,o);return s}function hv(e){var t=e.get("interval");return t??"auto"}function bb(e){return e.type==="category"&&hv(e.getLabelModel())===0}function Sb(e,t){var r={};return k(e.mapDimensionsAll(t),function(n){r[ob(e,n)]=!0}),_e(r)}function pI(e,t,r){t&&k(Sb(t,r),function(n){var a=t.getApproximateExtent(n);a[0]<e[0]&&(e[0]=a[0]),a[1]>e[1]&&(e[1]=a[1])})}var gI=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),Vm=[],mI={registerPreprocessor:Zw,registerProcessor:Kw,registerPostInit:sP,registerPostUpdate:lP,registerUpdateLifecycle:ov,registerAction:oa,registerCoordinateSystem:uP,registerLayout:cP,registerVisual:sa,registerTransform:hP,registerLoading:Jw,registerMap:fP,registerImpl:z5,PRIORITY:eP,ComponentModel:Se,ComponentView:Zt,SeriesModel:Rr,ChartView:qt,registerComponentModel:function(e){Se.registerClass(e)},registerComponentView:function(e){Zt.registerClass(e)},registerSeriesModel:function(e){Rr.registerClass(e)},registerChartView:function(e){qt.registerClass(e)},registerSubTypeDefaulter:function(e,t){Se.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){pD(e,t)}};function gr(e){if(U(e)){k(e,function(t){gr(t)});return}ce(Vm,e)>=0||(Vm.push(e),ie(e)&&(e={install:e}),e.install(mI))}var No=Ne();function yI(e){return e.type==="category"?wI(e):SI(e)}function _I(e,t){return e.type==="category"?bI(e,t):{ticks:q(e.scale.getTicks(),function(r){return r.value})}}function wI(e){var t=e.getLabelModel(),r=Cb(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function Cb(e,t){var r=xb(e,"labels"),n=hv(t),a=Tb(r,n);if(a)return a;var i,o;return ie(n)?i=Ab(e,n):(o=n==="auto"?CI(e):n,i=Db(e,o)),Nb(r,n,{labels:i,labelCategoryInterval:o})}function bI(e,t){var r=xb(e,"ticks"),n=hv(t),a=Tb(r,n);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),ie(n))i=Ab(e,n,!0);else if(n==="auto"){var s=Cb(e,e.getLabelModel());o=s.labelCategoryInterval,i=q(s.labels,function(l){return l.tickValue})}else o=n,i=Db(e,o,!0);return Nb(r,n,{ticks:i,tickCategoryInterval:o})}function SI(e){var t=e.scale.getTicks(),r=Fo(e);return{labels:q(t,function(n,a){return{level:n.level,formattedLabel:r(n,a),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function xb(e,t){return No(e)[t]||(No(e)[t]=[])}function Tb(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function Nb(e,t,r){return e.push({key:t,value:r}),r}function CI(e){var t=No(e).autoInterval;return t??(No(e).autoInterval=e.calculateCategoryInterval())}function xI(e){var t=TI(e),r=Fo(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,a=e.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),d=0,h=0;l<=i[1];l+=s){var p=0,m=0,g=yd(r({value:l}),t.font,"center","top");p=g.width*1.3,m=g.height*1.3,d=Math.max(d,p,7),h=Math.max(h,m,7)}var y=d/c,w=h/f;isNaN(y)&&(y=1/0),isNaN(w)&&(w=1/0);var _=Math.max(0,Math.floor(Math.min(y,w))),S=No(e.model),x=e.getExtent(),C=S.lastAutoInterval,T=S.lastTickCount;return C!=null&&T!=null&&Math.abs(C-_)<=1&&Math.abs(T-o)<=1&&C>_&&S.axisExtent0===x[0]&&S.axisExtent1===x[1]?_=C:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=x[0],S.axisExtent1=x[1]),_}function TI(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Db(e,t,r){var n=Fo(e),a=e.scale,i=a.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=bb(e),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&u!==i[0]&&m(i[0]);for(var p=u;p<=i[1];p+=l)m(p);h&&p-l!==i[1]&&m(i[1]);function m(g){var y={value:g};s.push(r?g:{formattedLabel:n(y),rawLabel:a.getLabel(y),tickValue:g})}return s}function Ab(e,t,r){var n=e.scale,a=Fo(e),i=[];return k(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(r?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var $m=[0,1],NI=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return t>=n&&t<=a},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return E_(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),Fm(n,a.count())),We(t,$m,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),Fm(n,a.count()));var i=We(t,n,$m,r);return this.scale.scale(i)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=_I(this,r),a=n.ticks,i=q(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return DI(this,i,o,t.clamp),i},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),a=q(n,function(i){return q(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},e.prototype.getViewLabels=function(){return yI(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},e.prototype.calculateCategoryInterval=function(){return xI(this)},e}();function Fm(e,t){var r=e[1]-e[0],n=t,a=r/n/2;e[0]+=a,e[1]-=a}function DI(e,t,r,n){var a=t.length;if(!e.onBand||r||!a)return;var i=e.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;k(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var f=i[0]>i[1];d(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&d(i[0],t[0].coord)&&t.unshift({coord:i[0]}),d(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&d(o.coord,i[1])&&t.push({coord:i[1]});function d(h,p){return h=Re(h),p=Re(p),f?h>p:h<p}}const AI=NI;function Mb(e,t,r,n,a,i,o,s){var l=a-e,u=i-t,c=r-e,f=n-t,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var h=l*c+u*f,p=h/d;s&&(p=Math.min(Math.max(p,0),1)),p*=d;var m=o[0]=e+p*c,g=o[1]=t+p*f;return Math.sqrt((m-a)*(m-a)+(g-i)*(g-i))}var en=new se,Pe=new se,Ye=new se,tn=new se,cr=new se,Il=[],at=new se;function MI(e,t){if(t<=180&&t>0){t=t/180*Math.PI,en.fromArray(e[0]),Pe.fromArray(e[1]),Ye.fromArray(e[2]),se.sub(tn,en,Pe),se.sub(cr,Ye,Pe);var r=tn.len(),n=cr.len();if(!(r<.001||n<.001)){tn.scale(1/r),cr.scale(1/n);var a=tn.dot(cr),i=Math.cos(t);if(i<a){var o=Mb(Pe.x,Pe.y,Ye.x,Ye.y,en.x,en.y,Il,!1);at.fromArray(Il),at.scaleAndAdd(cr,o/Math.tan(Math.PI-t));var s=Ye.x!==Pe.x?(at.x-Pe.x)/(Ye.x-Pe.x):(at.y-Pe.y)/(Ye.y-Pe.y);if(isNaN(s))return;s<0?se.copy(at,Pe):s>1&&se.copy(at,Ye),at.toArray(e[1])}}}}function kI(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,en.fromArray(e[0]),Pe.fromArray(e[1]),Ye.fromArray(e[2]),se.sub(tn,Pe,en),se.sub(cr,Ye,Pe);var n=tn.len(),a=cr.len();if(!(n<.001||a<.001)){tn.scale(1/n),cr.scale(1/a);var i=tn.dot(t),o=Math.cos(r);if(i<o){var s=Mb(Pe.x,Pe.y,Ye.x,Ye.y,en.x,en.y,Il,!1);at.fromArray(Il);var l=Math.PI/2,u=Math.acos(cr.dot(t)),c=l+u-r;if(c>=l)se.copy(at,Ye);else{at.scaleAndAdd(cr,s/Math.tan(Math.PI/2-c));var f=Ye.x!==Pe.x?(at.x-Pe.x)/(Ye.x-Pe.x):(at.y-Pe.y)/(Ye.y-Pe.y);if(isNaN(f))return;f<0?se.copy(at,Pe):f>1&&se.copy(at,Ye)}at.toArray(e[1])}}}}function Kc(e,t,r,n){var a=r==="normal",i=a?e:e.ensureState(r);i.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?e.useStyle(s):i.style=s}function EI(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var a=Rf(n[0],n[1]),i=Rf(n[1],n[2]);if(!a||!i){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*r,s=Uu([],n[1],n[0],o/a),l=Uu([],n[1],n[2],o/i),u=Uu([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)e.lineTo(n[c][0],n[c][1])}function PI(e,t,r){var n=e.getTextGuideLine(),a=e.getTextContent();if(!a){n&&e.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=a.ignore,l=0;l<hl.length;l++){var u=hl[l],c=t[u],f=u==="normal";if(c){var d=c.get("show"),h=f?s:ne(a.states[u]&&a.states[u].ignore,s);if(h||!ne(d,o)){var p=f?n:n&&n.states[u];p&&(p.ignore=!0),n&&Kc(n,!0,u,c);continue}n||(n=new ai,e.setTextGuideLine(n),!f&&(s||!o)&&Kc(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),Kc(n,!1,u,c)}}if(n){he(n.style,r),n.style.fill=null;var m=i.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=m||!1,n.buildPath=EI}}function II(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<vt.length;n++){var a=vt[n];r[a]=e.getModel([a,t])}return r}function LI(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var a=n.label,i=a.getComputedTransform(),o=a.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=a.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new pl(o,i):null;t.push({label:a,labelLine:n.labelLine,rect:u,localRect:o,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:i})}}return t}function OI(e,t,r,n,a,i){var o=e.length;if(o<2)return;e.sort(function(b,D){return b.rect[t]-D.rect[t]});for(var s=0,l,u=!1,c=0,f=0;f<o;f++){var d=e[f],h=d.rect;l=h[t]-s,l<0&&(h[t]-=l,d.label[t]-=l,u=!0);var p=Math.max(-l,0);c+=p,s=h[t]+h[r]}c>0&&i&&x(-c/o,0,o);var m=e[0],g=e[o-1],y,w;_(),y<0&&C(-y,.8),w<0&&C(w,.8),_(),S(y,w,1),S(w,y,-1),_(),y<0&&T(-y),w<0&&T(w);function _(){y=m.rect[t]-n,w=a-g.rect[t]-g.rect[r]}function S(b,D,N){if(b<0){var A=Math.min(D,-b);if(A>0){x(A*N,0,o);var M=A+b;M<0&&C(-M*N,1)}else C(-b*N,1)}}function x(b,D,N){b!==0&&(u=!0);for(var A=D;A<N;A++){var M=e[A],I=M.rect;I[t]+=b,M.label[t]+=b}}function C(b,D){for(var N=[],A=0,M=1;M<o;M++){var I=e[M-1].rect,P=Math.max(e[M].rect[t]-I[t]-I[r],0);N.push(P),A+=P}if(A){var L=Math.min(Math.abs(b)/A,D);if(b>0)for(var M=0;M<o-1;M++){var E=N[M]*L;x(E,0,M+1)}else for(var M=o-1;M>0;M--){var E=N[M-1]*L;x(-E,M,o)}}}function T(b){var D=b<0?-1:1;b=Math.abs(b);for(var N=Math.ceil(b/(o-1)),A=0;A<o-1;A++)if(D>0?x(N,0,A+1):x(-N,o-A-1,o),b-=N,b<=0)return}return u}function RI(e,t,r,n){return OI(e,"y","height",t,r,n)}function BI(e){var t=[];e.sort(function(m,g){return g.priority-m.priority});var r=new ye(0,0,0,0);function n(m){if(!m.ignore){var g=m.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}m.ignore=!0}for(var a=0;a<e.length;a++){var i=e[a],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,c=i.labelLine;r.copy(i.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var f=i.obb,d=!1,h=0;h<t.length;h++){var p=t[h];if(r.intersect(p.rect)){if(o&&p.axisAligned){d=!0;break}if(p.obb||(p.obb=new pl(p.localRect,p.transform)),f||(f=new pl(s,l)),f.intersect(p.obb)){d=!0;break}}}d?(n(u),c&&n(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}var VI=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){if(process.env.NODE_ENV!=="production"){var n=r.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return Mu(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new Ie,a=Br("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(a),a.setStyle(r.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=r.itemHeight*.8,u=Br(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var c=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Rr);const $I=VI;function Do(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var a=Qa(e,t,r[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<r.length;o++)i.push(Qa(e,t,r[o]));return i.join(" ")}}function kb(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!U(t))return t+"";for(var n=[],a=0;a<r.length;a++){var i=e.getDimensionIndex(r[a]);i>=0&&n.push(t[i])}return n.join(" ")}var dv=function(e){H(t,e);function t(r,n,a,i){var o=e.call(this)||this;return o.updateData(r,n,a,i),o}return t.prototype._createSymbol=function(r,n,a,i,o){this.removeAll();var s=Br(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=FI,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){mo(this.childAt(0))},t.prototype.downplay=function(){yo(this.childAt(0))},t.prototype.setZ=function(r,n){var a=this.childAt(0);a.zlevel=r,a.z=n},t.prototype.setDraggable=function(r,n){var a=this.childAt(0);a.draggable=r,a.cursor=!n&&r?"move":a.cursor},t.prototype.updateData=function(r,n,a,i){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,f)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(h):tt(d,h,s,n),Od(d)}if(this._updateCommon(r,n,l,a,i),u){var d=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,bt(d,h,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,a,i,o){var s=this.childAt(0),l=r.hostModel,u,c,f,d,h,p,m,g,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,d=i.focus,h=i.blurScope,m=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||r.hasItemOption){var w=i&&i.itemModel?i.itemModel:r.getItemModel(n),_=w.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=w.getModel(["select","itemStyle"]).getItemStyle(),c=w.getModel(["blur","itemStyle"]).getItemStyle(),d=_.get("focus"),h=_.get("blurScope"),p=_.get("disabled"),m=aa(w),g=_.getShallow("scale"),y=w.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var x=Nu(r.getItemVisual(n,"symbolOffset"),a);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var C=r.getItemVisual(n,"style"),T=C.fill;if(s instanceof gn){var b=s.style;s.useStyle(G({image:b.image,x:b.x,y:b.y,width:b.width,height:b.height},C))}else s.__isEmptyBrush?s.useStyle(G({},C)):s.useStyle(C),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=r.getItemVisual(n,"liftZ"),N=this._z2;D!=null?N==null&&(this._z2=s.z2,s.z2+=D):N!=null&&(s.z2=N,this._z2=null);var A=o&&o.useNameLabel;oi(s,m,{labelFetcher:l,labelDataIndex:n,defaultText:M,inheritColor:T,defaultOpacity:C.opacity});function M(L){return A?r.getName(L):Do(r,L)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),Kn(this,d,h,p)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,a){var i=this.childAt(0),o=de(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&gl(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();gl(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return rv(r.getItemVisual(n,"symbolSize"))},t}(Ie);function FI(e,t){this.parent.drift(e,t)}function Jc(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function zm(e){return e!=null&&!K(e)&&(e={isIgnore:e}),e||{}}function Gm(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:aa(t),cursorStyle:t.get("cursor")}}var zI=function(){function e(t){this.group=new Ie,this._SymbolCtor=t||dv}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=zm(r);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=Gm(t),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return t.getItemLayout(f)};i||n.removeAll(),t.diff(i).add(function(f){var d=c(f);if(Jc(t,d,f,r)){var h=new o(t,f,l,u);h.setPosition(d),t.setItemGraphicEl(f,h),n.add(h)}}).update(function(f,d){var h=i.getItemGraphicEl(d),p=c(f);if(!Jc(t,p,f,r)){n.remove(h);return}var m=t.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==m)n.remove(h),h=new o(t,f,l,u),h.setPosition(p);else{h.updateData(t,f,l,u);var y={x:p[0],y:p[1]};s?h.attr(y):tt(h,y,a)}n.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var d=i.getItemGraphicEl(f);d&&d.fadeOut(function(){n.remove(d)},a)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Gm(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=zm(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=r.getItemLayout(i);if(Jc(r,o,i,n)){var s=new this._SymbolCtor(r,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){ii(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(a){a.fadeOut(function(){r.remove(a)},n.hostModel)}):r.removeAll()},e}();function Eb(e,t,r){var n=e.getBaseAxis(),a=e.getOtherAxis(n),i=GI(a,r),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=q(e.dimensions,function(p){return t.mapDimension(p)}),d=!1,h=t.getCalculationInfo("stackResultDimension");return ta(t,f[0])&&(d=!0,f[0]=h),ta(t,f[1])&&(d=!0,f[1]=h),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function GI(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:xe(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function Pb(e,t,r,n){var a=NaN;e.stacked&&(a=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=e.valueStart);var i=e.baseDataOffset,o=[];return o[i]=r.get(e.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function HI(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,a){r.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function UI(e,t,r,n,a,i,o,s){for(var l=HI(e,t),u=[],c=[],f=[],d=[],h=[],p=[],m=[],g=Eb(a,t,o),y=e.getLayout("points")||[],w=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],x=!0,C=void 0,T=void 0;switch(S.cmd){case"=":C=S.idx*2,T=S.idx1*2;var b=y[C],D=y[C+1],N=w[T],A=w[T+1];(isNaN(b)||isNaN(D))&&(b=N,D=A),u.push(b,D),c.push(N,A),f.push(r[C],r[C+1]),d.push(n[T],n[T+1]),m.push(t.getRawIndex(S.idx1));break;case"+":var M=S.idx,I=g.dataDimsForPoint,P=a.dataToPoint([t.get(I[0],M),t.get(I[1],M)]);T=M*2,u.push(P[0],P[1]),c.push(w[T],w[T+1]);var L=Pb(g,a,t,M);f.push(L[0],L[1]),d.push(n[T],n[T+1]),m.push(t.getRawIndex(M));break;case"-":x=!1}x&&(h.push(S),p.push(p.length))}p.sort(function(Te,fe){return m[Te]-m[fe]});for(var E=u.length,B=Dr(E),R=Dr(E),V=Dr(E),z=Dr(E),Y=[],_=0;_<p.length;_++){var Z=p[_],F=_*2,J=Z*2;B[F]=u[J],B[F+1]=u[J+1],R[F]=c[J],R[F+1]=c[J+1],V[F]=f[J],V[F+1]=f[J+1],z[F]=d[J],z[F+1]=d[J+1],Y[_]=h[Z]}return{current:B,next:R,stackedOnCurrent:V,stackedOnNext:z,status:Y}}var qr=Math.min,jr=Math.max;function Yn(e,t){return isNaN(e)||isNaN(t)}function xh(e,t,r,n,a,i,o,s,l){for(var u,c,f,d,h,p,m=r,g=0;g<n;g++){var y=t[m*2],w=t[m*2+1];if(m>=a||m<0)break;if(Yn(y,w)){if(l){m+=i;continue}break}if(m===r)e[i>0?"moveTo":"lineTo"](y,w),f=y,d=w;else{var _=y-u,S=w-c;if(_*_+S*S<.5){m+=i;continue}if(o>0){for(var x=m+i,C=t[x*2],T=t[x*2+1];C===y&&T===w&&g<n;)g++,x+=i,m+=i,C=t[x*2],T=t[x*2+1],y=t[m*2],w=t[m*2+1],_=y-u,S=w-c;var b=g+1;if(l)for(;Yn(C,T)&&b<n;)b++,x+=i,C=t[x*2],T=t[x*2+1];var D=.5,N=0,A=0,M=void 0,I=void 0;if(b>=n||Yn(C,T))h=y,p=w;else{N=C-u,A=T-c;var P=y-u,L=C-y,E=w-c,B=T-w,R=void 0,V=void 0;if(s==="x"){R=Math.abs(P),V=Math.abs(L);var z=N>0?1:-1;h=y-z*R*o,p=w,M=y+z*V*o,I=w}else if(s==="y"){R=Math.abs(E),V=Math.abs(B);var Y=A>0?1:-1;h=y,p=w-Y*R*o,M=y,I=w+Y*V*o}else R=Math.sqrt(P*P+E*E),V=Math.sqrt(L*L+B*B),D=V/(V+R),h=y-N*o*(1-D),p=w-A*o*(1-D),M=y+N*o*D,I=w+A*o*D,M=qr(M,jr(C,y)),I=qr(I,jr(T,w)),M=jr(M,qr(C,y)),I=jr(I,qr(T,w)),N=M-y,A=I-w,h=y-N*R/V,p=w-A*R/V,h=qr(h,jr(u,y)),p=qr(p,jr(c,w)),h=jr(h,qr(u,y)),p=jr(p,qr(c,w)),N=y-h,A=w-p,M=y+N*V/R,I=w+A*V/R}e.bezierCurveTo(f,d,h,p,y,w),f=M,d=I}else e.lineTo(y,w)}u=y,c=w,m+=i}return g}var Ib=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),WI=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ib},t.prototype.buildPath=function(r,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Yn(a[o*2-2],a[o*2-1]);o--);for(;i<o&&Yn(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=xh(r,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=Zn.CMD,s,l,u=n==="x",c=[],f=0;f<i.length;){var d=i[f++],h=void 0,p=void 0,m=void 0,g=void 0,y=void 0,w=void 0,_=void 0;switch(d){case o.M:s=i[f++],l=i[f++];break;case o.L:if(h=i[f++],p=i[f++],_=u?(r-s)/(h-s):(r-l)/(p-l),_<=1&&_>=0){var S=u?(p-l)*_+l:(h-s)*_+s;return u?[r,S]:[S,r]}s=h,l=p;break;case o.C:h=i[f++],p=i[f++],m=i[f++],g=i[f++],y=i[f++],w=i[f++];var x=u?rl(s,h,m,y,r,c):rl(l,p,g,w,r,c);if(x>0)for(var C=0;C<x;C++){var T=c[C];if(T<=1&&T>=0){var S=u?$e(l,p,g,w,T):$e(s,h,m,y,T);return u?[r,S]:[S,r]}}s=y,l=w;break}}},t}(pe),YI=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Ib),qI=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new YI},t.prototype.buildPath=function(r,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Yn(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Yn(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=xh(r,a,o,s,s,1,n.smooth,l,n.connectNulls);xh(r,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t}(pe);function Lb(e,t,r,n,a){var i=e.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=r.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var f=new ke({shape:{x:o,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),p=d.inverse;h?(p&&(f.shape.x+=l),f.shape.width=0):(p||(f.shape.y+=u),f.shape.height=0);var m=ie(a)?function(g){a(g,f)}:null;bt(f,{shape:{width:l,height:u,x:o,y:s}},r,null,n,m)}return f}function Ob(e,t,r){var n=e.getArea(),a=Re(n.r0,1),i=Re(n.r,1),o=new na({shape:{cx:Re(e.cx,1),cy:Re(e.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,bt(o,{shape:{endAngle:n.endAngle,r:i}},r)}return o}function Rb(e,t,r,n,a){if(e){if(e.type==="polar")return Ob(e,t,r);if(e.type==="cartesian2d")return Lb(e,t,r,n,a)}else return null;return null}function Iu(e,t){return e.type===t}function Hm(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function Um(e){for(var t=1/0,r=1/0,n=-1/0,a=-1/0,i=0;i<e.length;){var o=e[i++],s=e[i++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),a=Math.max(s,a))}return[[t,r],[n,a]]}function Wm(e,t){var r=Um(e),n=r[0],a=r[1],i=Um(t),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function Ym(e){return xe(e)?e:e?.5:0}function jI(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),a=Dr(n*2),i=0;i<n;i++){var o=Pb(r,e,t,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Xr(e,t,r,n){var a=t.getBaseAxis(),i=a.dim==="x"||a.dim==="radius"?0:1,o=[],s=0,l=[],u=[],c=[],f=[];if(n){for(s=0;s<e.length;s+=2)!isNaN(e[s])&&!isNaN(e[s+1])&&f.push(e[s],e[s+1]);e=f}for(s=0;s<e.length-2;s+=2)switch(c[0]=e[s+2],c[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],o.push(u[0],u[1]),r){case"end":l[i]=c[i],l[1-i]=u[1-i],o.push(l[0],l[1]);break;case"middle":var d=(u[i]+c[i])/2,h=[];l[i]=h[i]=d,l[1-i]=u[1-i],h[1-i]=c[1-i],o.push(l[0],l[1]),o.push(h[0],h[1]);break;default:l[i]=u[i],l[1-i]=c[1-i],o.push(l[0],l[1])}return o.push(e[s++],e[s++]),o}function XI(e,t){var r=[],n=e.length,a,i;function o(c,f,d){var h=c.coord,p=(d-h)/(f.coord-h),m=zN(p,[c.color,f.color]);return{coord:d,color:m}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)a=l;else if(u>t){i?r.push(o(i,l,t)):a&&r.push(o(a,l,0),o(a,l,t));break}else a&&(r.push(o(a,l,0)),a=null),r.push(l),i=l}return r}function ZI(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())){if(t.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var a,i,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(!i){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var l=t.getAxis(a),u=q(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=XI(u,a==="x"?r.getWidth():r.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var p=10,m=d[0].coord-p,g=d[h-1].coord+p,y=g-m;if(y<.001)return"transparent";k(d,function(_){_.offset=(_.coord-m)/y}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var w=new A1(0,0,0,0,d,!0);return w[a]=m,w[a+"2"]=g,w}}function KI(e,t,r){var n=e.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=r.getAxesByScale("ordinal")[0];if(i&&!(a&&JI(i,t))){var o=t.mapDimension(i.dim),s={};return k(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function JI(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(dv.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function QI(e,t){return isNaN(e)||isNaN(t)}function eL(e){for(var t=e.length/2;t>0&&QI(e[t*2-2],e[t*2-1]);t--);return t-1}function qm(e,t){return[e[t*2],e[t*2+1]]}function tL(e,t,r){for(var n=e.length/2,a=r==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=e[u*2+a],!(isNaN(o)||isNaN(e[u*2+1-a]))){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function Bb(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<vt.length;t++)if(e.get([vt[t],"endLabel","show"]))return!0;return!1}function Qc(e,t,r,n){if(Iu(t,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=Bb(n)?function(h,p){e._endLabelOnDuring(h,p,o,s,i,a,t)}:null,u=t.getBaseAxis().isHorizontal(),c=Lb(t,r,n,function(){var h=e._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var f=c.shape,d=Math.max(f.width,f.height);u?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return l&&l(1,c),c}else return process.env.NODE_ENV!=="production"&&n.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),Ob(t,r,n)}function rL(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),a=r.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:e.get("align")||i,verticalAlign:e.get("verticalAlign")||o}}}var nL=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new Ie,n=new zI;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r},t.prototype.render=function(r,n,a){var i=this,o=r.coordinateSystem,s=this.group,l=r.getData(),u=r.getModel("lineStyle"),c=r.getModel("areaStyle"),f=l.getLayout("points")||[],d=o.type==="polar",h=this._coordSys,p=this._symbolDraw,m=this._polyline,g=this._polygon,y=this._lineGroup,w=!n.ssr&&r.get("animation"),_=!c.isEmpty(),S=c.get("origin"),x=Eb(o,l,S),C=_&&jI(o,l,x),T=r.get("showSymbol"),b=r.get("connectNulls"),D=T&&!d&&KI(r,l,o),N=this._data;N&&N.eachItemGraphicEl(function(fe,Ve){fe.__temp&&(s.remove(fe),N.setItemGraphicEl(Ve,null))}),T||p.remove(),s.add(y);var A=d?!1:r.get("step"),M;o&&o.getArea&&r.get("clip",!0)&&(M=o.getArea(),M.width!=null?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var I=ZI(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(m&&h.type===o.type&&A===this._step))T&&p.updateData(l,{isIgnore:D,clipShape:M,disableAnimation:!0,getSymbolPoint:function(fe){return[f[fe*2],f[fe*2+1]]}}),w&&this._initSymbolLabelAnimation(l,o,M),A&&(f=Xr(f,o,A,b),C&&(C=Xr(C,o,A,b))),m=this._newPolyline(f),_?g=this._newPolygon(f,C):g&&(y.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(r,o,Jn(I)),y.setClipPath(Qc(this,o,!0,r));else{_&&!g?g=this._newPolygon(f,C):g&&!_&&(y.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(r,o,Jn(I));var P=y.getClipPath();if(P){var L=Qc(this,o,!1,r);bt(P,{shape:L.shape},r)}else y.setClipPath(Qc(this,o,!0,r));T&&p.updateData(l,{isIgnore:D,clipShape:M,disableAnimation:!0,getSymbolPoint:function(fe){return[f[fe*2],f[fe*2+1]]}}),(!Hm(this._stackedOnPoints,C)||!Hm(this._points,f))&&(w?this._doUpdateAnimation(l,C,o,a,A,S,b):(A&&(f=Xr(f,o,A,b),C&&(C=Xr(C,o,A,b))),m.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:C})))}var E=r.getModel("emphasis"),B=E.get("focus"),R=E.get("blurScope"),V=E.get("disabled");if(m.useStyle(he(u.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),vl(m,r,"lineStyle"),m.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var z=m.getState("emphasis").style;z.lineWidth=+m.style.lineWidth+1}de(m).seriesIndex=r.seriesIndex,Kn(m,B,R,V);var Y=Ym(r.get("smooth")),Z=r.get("smoothMonotone");if(m.setShape({smooth:Y,smoothMonotone:Z,connectNulls:b}),g){var F=l.getCalculationInfo("stackedOnSeries"),J=0;g.useStyle(he(c.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),F&&(J=Ym(F.get("smooth"))),g.setShape({smooth:Y,stackedOnSmooth:J,smoothMonotone:Z,connectNulls:b}),vl(g,r,"areaStyle"),de(g).seriesIndex=r.seriesIndex,Kn(g,B,R,V)}var Te=function(fe){i._changePolyState(fe)};l.eachItemGraphicEl(function(fe){fe&&(fe.onHoverStateChange=Te)}),this._polyline.onHoverStateChange=Te,this._data=l,this._coordSys=o,this._stackedOnPoints=C,this._points=f,this._step=A,this._valueOrigin=S,r.get("triggerLineEvent")&&(this.packEventData(r,m),g&&this.packEventData(r,g))},t.prototype.packEventData=function(r,n){de(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,a,i){var o=r.getData(),s=Xn(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=r.get("zlevel")||0,h=r.get("z")||0;u=new dv(o,s),u.x=c,u.y=f,u.setZ(d,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=d,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else qt.prototype.highlight.call(this,r,n,a,i)},t.prototype.downplay=function(r,n,a,i){var o=r.getData(),s=Xn(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else qt.prototype.downplay.call(this,r,n,a,i)},t.prototype._changePolyState=function(r){var n=this._polygon;ag(this._polyline,r),n&&ag(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new WI({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new qI({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(r,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");ie(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=ie(f)?f(null):f;r.eachItemGraphicEl(function(h,p){var m=h;if(m){var g=[h.x,h.y],y=void 0,w=void 0,_=void 0;if(a)if(o){var S=a,x=n.pointToCoord(g);i?(y=S.startAngle,w=S.endAngle,_=-x[1]/180*Math.PI):(y=S.r0,w=S.r,_=x[0])}else{var C=a;i?(y=C.x,w=C.x+C.width,_=h.x):(y=C.y+C.height,w=C.y,_=h.y)}var T=w===y?0:(_-y)/(w-y);l&&(T=1-T);var b=ie(f)?f(p):c*T+d,D=m.getSymbolPath(),N=D.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),N&&N.animateFrom({style:{opacity:0}},{duration:300,delay:b}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,a){var i=r.getModel("endLabel");if(Bb(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new He({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=eL(l);c>=0&&(oi(s,aa(r,"endLabel"),{inheritColor:a,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?kb(o,h):Do(o,f)},enableTextSetter:!0},rL(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=a.getLayout("points"),d=a.hostModel,h=d.get("connectNulls"),p=s.get("precision"),m=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),w=g.inverse,_=n.shape,S=w?y?_.x:_.y+_.height:y?_.x+_.width:_.y,x=(y?m:0)*(w?-1:1),C=(y?0:-m)*(w?-1:1),T=y?"x":"y",b=tL(f,S,T),D=b.range,N=D[1]-D[0],A=void 0;if(N>=1){if(N>1&&!h){var M=qm(f,D[0]);u.attr({x:M[0]+x,y:M[1]+C}),o&&(A=d.getRawValue(D[0]))}else{var M=c.getPointOn(S,T);M&&u.attr({x:M[0]+x,y:M[1]+C});var I=d.getRawValue(D[0]),P=d.getRawValue(D[1]);o&&(A=$D(a,p,I,P,b.t))}i.lastFrameIndex=D[0]}else{var L=r===1||i.lastFrameIndex>0?D[0]:0,M=qm(f,L);o&&(A=d.getRawValue(L)),u.attr({x:M[0]+x,y:M[1]+C})}if(o){var E=du(u);typeof E.setLabelText=="function"&&E.setLabelText(A)}}},t.prototype._doUpdateAnimation=function(r,n,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,d=UI(this._data,r,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),h=d.current,p=d.stackedOnCurrent,m=d.next,g=d.stackedOnNext;if(o&&(h=Xr(d.current,a,o,l),p=Xr(d.stackedOnCurrent,a,o,l),m=Xr(d.next,a,o,l),g=Xr(d.stackedOnNext,a,o,l)),Wm(h,m)>3e3||c&&Wm(p,g)>3e3){u.stopAnimation(),u.setShape({points:m}),c&&(c.stopAnimation(),c.setShape({points:m,stackedOnPoints:g}));return}u.shape.__points=d.current,u.shape.points=h;var y={shape:{points:m}};d.current!==h&&(y.shape.__points=d.next),u.stopAnimation(),tt(u,y,f),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),tt(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var w=[],_=d.status,S=0;S<_.length;S++){var x=_[S].cmd;if(x==="="){var C=r.getItemGraphicEl(_[S].idx1);C&&w.push({el:C,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,b=0;b<w.length;b++){var D=w[b].el,N=w[b].ptIdx*2;D.x=T[N],D.y=T[N+1],D.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(qt);const aL=nL;function iL(e,t){return{seriesType:e,plan:Qd(),reset:function(r){var n=r.getData(),a=r.coordinateSystem,i=r.pipelineContext,o=t||i.large;if(a){var s=q(a.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");ta(n,s[0])&&(s[0]=u),ta(n,s[1])&&(s[1]=u);var c=n.getStore(),f=n.getDimensionIndex(s[0]),d=n.getDimensionIndex(s[1]);return l&&{progress:function(h,p){for(var m=h.end-h.start,g=o&&Dr(m*l),y=[],w=[],_=h.start,S=0;_<h.end;_++){var x=void 0;if(l===1){var C=c.get(f,_);x=a.dataToPoint(C,null,w)}else y[0]=c.get(f,_),y[1]=c.get(d,_),x=a.dataToPoint(y,null,w);o?(g[S++]=x[0],g[S++]=x[1]):p.setItemLayout(_,x.slice())}o&&p.setLayout("points",g)}}}}}}var oL={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},minmax:function(e){for(var t=-1/0,r=-1/0,n=0;n<e.length;n++){var a=e[n],i=Math.abs(a);i>t&&(t=i,r=a)}return isFinite(r)?r:NaN},nearest:function(e){return e[0]}},sL=function(e){return Math.round(e.length/2)};function Vb(e){return{seriesType:e,reset:function(t,r,n){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var p=void 0;j(i)?p=oL[i]:ie(i)&&(p=i),p&&t.setData(a.downSample(a.mapDimension(u.dim),1/h,p,sL))}}}}}function lL(e){e.registerChartView(aL),e.registerSeriesModel($I),e.registerLayout(iL("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Vb("line"))}var Th=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return Mu(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(r),s=i.dataToPoint(o);if(a)k(i.getAxes(),function(d,h){if(d.type==="category"&&n!=null){var p=d.getTicksCoords(),m=d.getTickModel().get("alignWithLabel"),g=o[h],y=n[h]==="x1"||n[h]==="y1";if(y&&!m&&(g+=1),p.length<2)return;if(p.length===2){s[h]=d.toGlobalCoord(d.getExtent()[y?1:0]);return}for(var w=void 0,_=void 0,S=1,x=0;x<p.length;x++){var C=p[x].coord,T=x===p.length-1?p[x-1].tickValue+S:p[x].tickValue;if(T===g){_=C;break}else if(T<g)w=C;else if(w!=null&&T>g){_=(C+w)/2;break}x===1&&(S=T-p[0].tickValue)}_==null&&(w?w&&(_=p[p.length-1].coord):_=p[0].coord),s[h]=d.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Rr);Rr.registerClass(Th);var uL=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return Mu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,a){return a.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=pu(Th.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Th);const cL=uL;var fL=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),jm=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new fL},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,h=Math.PI*2,p=d?f-c<h:c-f<h;p||(c=f-(d?h:-h));var m=Math.cos(c),g=Math.sin(c),y=Math.cos(f),w=Math.sin(f);p?(r.moveTo(m*o+a,g*o+i),r.arc(m*u+a,g*u+i,l,-Math.PI+c,c,!d)):r.moveTo(m*s+a,g*s+i),r.arc(a,i,s,c,f,!d),r.arc(y*u+a,w*u+i,l,f-Math.PI*2,f-Math.PI,!d),o!==0&&r.arc(a,i,o,f,c,d)},t}(pe);function hL(e,t){t=t||{};var r=t.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return sl(n,a,i);var s=e(o),l=a.distance!=null?a.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,h=u.r0,p=(d+h)/2,m=u.startAngle,g=u.endAngle,y=(m+g)/2,w=r?Math.abs(d-h)/2:0,_=Math.cos,S=Math.sin,x=c+d*_(m),C=f+d*S(m),T="left",b="top";switch(s){case"startArc":x=c+(h-l)*_(y),C=f+(h-l)*S(y),T="center",b="top";break;case"insideStartArc":x=c+(h+l)*_(y),C=f+(h+l)*S(y),T="center",b="bottom";break;case"startAngle":x=c+p*_(m)+Ds(m,l+w,!1),C=f+p*S(m)+As(m,l+w,!1),T="right",b="middle";break;case"insideStartAngle":x=c+p*_(m)+Ds(m,-l+w,!1),C=f+p*S(m)+As(m,-l+w,!1),T="left",b="middle";break;case"middle":x=c+p*_(y),C=f+p*S(y),T="center",b="middle";break;case"endArc":x=c+(d+l)*_(y),C=f+(d+l)*S(y),T="center",b="bottom";break;case"insideEndArc":x=c+(d-l)*_(y),C=f+(d-l)*S(y),T="center",b="top";break;case"endAngle":x=c+p*_(g)+Ds(g,l+w,!0),C=f+p*S(g)+As(g,l+w,!0),T="left",b="middle";break;case"insideEndAngle":x=c+p*_(g)+Ds(g,-l+w,!0),C=f+p*S(g)+As(g,-l+w,!0),T="right",b="middle";break;default:return sl(n,a,i)}return n=n||{},n.x=x,n.y=C,n.align=T,n.verticalAlign=b,n}}function dL(e,t,r,n){if(xe(n)){e.setTextConfig({rotation:n});return}else if(U(t)){e.setTextConfig({rotation:0});return}var a=e.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),e.setTextConfig({rotation:c})}function Ds(e,t,r){return t*Math.sin(e)*(r?-1:1)}function As(e,t,r){return t*Math.cos(e)*(r?1:-1)}function Zi(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;U(n)||(n=[n,n,n,n]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:q(n,function(i){return hn(i,a)})}}var ef=Math.max,tf=Math.min;function vL(e,t){var r=e.getArea&&e.getArea();if(Iu(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=a,r.width+=a*2):(r.y-=a,r.height+=a*2)}}return r}var pL=function(e){H(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,a,i){this._model=r,this._removeOnRenderedListener(a),this._updateDrawMode(r);var o=r.get("coordinateSystem");o==="cartesian2d"||o==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,a):this._renderNormal(r,n,a,i)):process.env.NODE_ENV!=="production"&&Fe("Only cartesian2d and polar supported for bar.")},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){ii(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,a,i){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var d=r.isAnimationEnabled()?r:null,h=gL(r,u);h&&this._enableRealtimeSort(h,s,a);var p=r.get("clip",!0)||h,m=vL(u,s);o.removeClipPath();var g=r.get("roundCap",!0),y=r.get("showBackground",!0),w=r.getModel("backgroundStyle"),_=w.get("borderRadius")||0,S=[],x=this._backgroundEls,C=i&&i.isInitSort,T=i&&i.type==="changeAxisOrder";function b(A){var M=Ms[u.type](s,A),I=CL(u,f,M);return I.useStyle(w.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),S[A]=I,I}s.diff(l).add(function(A){var M=s.getItemModel(A),I=Ms[u.type](s,A,M);if(y&&b(A),!(!s.hasValue(A)||!Qm[u.type](I))){var P=!1;p&&(P=Xm[u.type](m,I));var L=Zm[u.type](r,s,A,I,f,d,c.model,!1,g);h&&(L.forceLabelAnimation=!0),ey(L,s,A,M,I,r,f,u.type==="polar"),C?L.attr({shape:I}):h?Km(h,d,L,I,A,f,!1,!1):bt(L,{shape:I},r,A),s.setItemGraphicEl(A,L),o.add(L),L.ignore=P}}).update(function(A,M){var I=s.getItemModel(A),P=Ms[u.type](s,A,I);if(y){var L=void 0;x.length===0?L=b(M):(L=x[M],L.useStyle(w.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[A]=L);var E=Ms[u.type](s,A),B=Fb(f,E,u);tt(L,{shape:B},d,A)}var R=l.getItemGraphicEl(M);if(!s.hasValue(A)||!Qm[u.type](P)){o.remove(R);return}var V=!1;if(p&&(V=Xm[u.type](m,P),V&&o.remove(R)),R?Od(R):R=Zm[u.type](r,s,A,P,f,d,c.model,!!R,g),h&&(R.forceLabelAnimation=!0),T){var z=R.getTextContent();if(z){var Y=du(z);Y.prevValue!=null&&(Y.prevValue=Y.value)}}else ey(R,s,A,I,P,r,f,u.type==="polar");C?R.attr({shape:P}):h?Km(h,d,R,P,A,f,!0,T):tt(R,{shape:P},r,A,null),s.setItemGraphicEl(A,R),R.ignore=V,o.add(R)}).remove(function(A){var M=l.getItemGraphicEl(A);M&&ml(M,r,A)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new Ie);D.removeAll();for(var N=0;N<S.length;++N)D.add(S[N]);o.add(D),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(r,n,a){this._clear(),ry(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),ry(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&Rb(r.coordinateSystem,!1,r),a=this.group;n?a.setClipPath(n):a.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,a){var i=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,a){var i=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:q(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,a){for(var i=a.scale,o=r.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var c=r.rawIndexOf(o,i.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:n(r.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,a,i){if(this._isOrderChangedWithinSameData(r,n,a)){var o=this._dataSort(r,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,a){var i=n.baseAxis,o=this._dataSort(r,i,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,a=this._data;r&&r.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){ml(i,r,de(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(qt),Xm={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=e.x+e.width,i=e.y+e.height,o=ef(t.x,e.x),s=tf(t.x+t.width,a),l=ef(t.y,e.y),u=tf(t.y+t.height,i),c=s<o,f=u<l;return t.x=c&&o>a?s:o,t.y=f&&l>i?u:l,t.width=c?0:s-o,t.height=f?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var a=tf(t.r,e.r),i=ef(t.r0,e.r0);t.r=a,t.r0=i;var o=a-i<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},Zm={cartesian2d:function(e,t,r,n,a,i,o,s,l){var u=new ke({shape:G({},n),z2:1});if(u.__dataIndex=r,u.name="item",i){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,a,i,o,s,l){var u=!a&&l?jm:na,c=new u({shape:n,z2:1});c.name="item";var f=$b(a);if(c.calculateTextPosition=hL(f,{isRoundCap:u===jm}),i){var d=c.shape,h=a?"r":"endAngle",p={};d[h]=a?n.r0:n.startAngle,p[h]=n[h],(s?tt:bt)(c,{shape:p},i)}return c}};function gL(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(process.env.NODE_ENV!=="production"&&r&&(n.type!=="category"&&Fe("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!=="cartesian2d"&&Fe("`realtimeSort` will not work because this bar series is not on cartesian2d.")),r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function Km(e,t,r,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?tt:bt)(r,{shape:l},t,a,null);var c=t?e.baseAxis.model:null;(o?tt:bt)(r,{shape:u},c,a)}function Jm(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var mL=["x","y","width","height"],yL=["cx","cy","r","startAngle","endAngle"],Qm={cartesian2d:function(e){return!Jm(e,mL)},polar:function(e){return!Jm(e,yL)}},Ms={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),a=r?wL(r,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function _L(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function $b(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function ey(e,t,r,n,a,i,o,s){var l=t.getItemVisual(r,"style");if(s){if(!i.get("roundCap")){var c=e.shape,f=Zi(n.getModel("itemStyle"),c,!0);G(c,f),e.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=n.getShallow("cursor");d&&e.attr("cursor",d);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=aa(n);oi(e,p,{labelFetcher:i,labelDataIndex:r,defaultText:Do(i.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var m=e.getTextContent();if(s&&m){var g=n.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,dL(e,g==="outside"?h:g,$b(o),n.get(["label","rotate"]))}QM(m,p,i.getRawValue(r),function(w){return kb(t,w)});var y=n.getModel(["emphasis"]);Kn(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),vl(e,n),_L(a)&&(e.style.fill="none",e.style.stroke="none",k(e.states,function(w){w.style&&(w.style.fill=w.style.stroke="none")}))}function wL(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var bL=function(){function e(){}return e}(),ty=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new bL},t.prototype.buildPath=function(r,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<a.length;c+=3)l[i]=u,l[o]=a[c+2],s[i]=a[c+i],s[o]=a[c+o],r.rect(s[0],s[1],l[0],l[1])},t}(pe);function ry(e,t,r,n){var a=e.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=e.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var c=new ty({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),r&&r.push(c)}var f=new ty({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(a.getVisual("style")),de(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",ny),f.on("mousemove",ny)),r&&r.push(f)}var ny=tv(function(e){var t=this,r=SL(t,e.offsetX,e.offsetY);de(t).dataIndex=r>=0?r:null},30,!1);function SL(e,t,r){for(var n=e.baseDimIdx,a=1-n,i=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=i.length/3;c<f;c++){var d=c*3;if(l[n]=u,l[a]=i[d+2],s[n]=i[d+n],s[a]=i[d+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function Fb(e,t,r){if(Iu(r,"cartesian2d")){var n=t,a=r.getArea();return{x:e?n.x:a.x,y:e?a.y:n.y,width:e?n.width:a.width,height:e?a.height:n.height}}else{var a=r.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:e?a.r0:i.r0,r:e?a.r:i.r,startAngle:e?i.startAngle:0,endAngle:e?i.endAngle:Math.PI*2}}}function CL(e,t,r){var n=e.type==="polar"?na:ke;return new n({shape:Fb(t,r,e),silent:!0,z2:0})}const xL=pL;function TL(e){e.registerChartView(xL),e.registerSeriesModel(cL),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,be(WP,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,YP("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Vb("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var ay=Math.PI*2,ks=Math.PI/180;function zb(e,t){return Qn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Gb(e,t){var r=zb(e,t),n=e.get("center"),a=e.get("radius");U(a)||(a=[0,a]);var i=Ce(r.width,t.getWidth()),o=Ce(r.height,t.getHeight()),s=Math.min(i,o),l=Ce(a[0],s/2),u=Ce(a[1],s/2),c,f,d=e.coordinateSystem;if(d){var h=d.dataToPoint(n);c=h[0]||0,f=h[1]||0}else U(n)||(n=[n,n]),c=Ce(n[0],i)+r.x,f=Ce(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function NL(e,t,r){t.eachSeriesByType(e,function(n){var a=n.getData(),i=a.mapDimension("value"),o=zb(n,r),s=Gb(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*ks,h=n.get("endAngle"),p=n.get("padAngle")*ks;h=h==="auto"?d-ay:-h*ks;var m=n.get("minAngle")*ks,g=m+p,y=0;a.each(i,function(E){!isNaN(E)&&y++});var w=a.getSum(i),_=Math.PI/(w||y)*2,S=n.get("clockwise"),x=n.get("roseType"),C=n.get("stillShowZeroSum"),T=a.getDataExtent(i);T[0]=0;var b=S?1:-1,D=[d,h],N=b*p/2;Y_(D,!S),d=D[0],h=D[1];var A=Math.abs(h-d),M=A,I=0,P=d;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(E,B){var R;if(isNaN(E)){a.setItemLayout(B,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:f,r:x?NaN:c});return}x!=="area"?R=w===0&&C?_:E*_:R=A/y,R<g?(R=g,M-=g):I+=E;var V=P+b*R,z=0,Y=0;p>R?(z=P+b*R/2,Y=z):(z=P+N,Y=V-N),a.setItemLayout(B,{angle:R,startAngle:z,endAngle:Y,clockwise:S,cx:l,cy:u,r0:f,r:x?We(E,T,[f,c]):c}),P=V}),M<ay&&y)if(M<=.001){var L=A/y;a.each(i,function(E,B){if(!isNaN(E)){var R=a.getItemLayout(B);R.angle=L;var V=0,z=0;L<p?(V=d+b*(B+1/2)*L,z=V):(V=d+b*B*L+N,z=d+b*(B+1)*L-N),R.startAngle=V,R.endAngle=z}})}else _=M/I,P=d,a.each(i,function(E,B){if(!isNaN(E)){var R=a.getItemLayout(B),V=R.angle===g?g:E*_,z=0,Y=0;V<p?(z=P+b*V/2,Y=z):(z=P+N,Y=P+b*V-N),R.startAngle=z,R.endAngle=Y,P+=b*V}})})}function DL(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=t.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var AL=Math.PI/180;function iy(e,t,r,n,a,i,o,s,l,u){if(e.length<2)return;function c(m){for(var g=m.rB,y=g*g,w=0;w<m.list.length;w++){var _=m.list[w],S=Math.abs(_.label.y-r),x=n+_.len,C=x*x,T=Math.sqrt((1-Math.abs(S*S/y))*C),b=t+(T+_.len2)*a,D=b-_.label.x,N=_.targetTextWidth-D*a;Hb(_,N,!0),_.label.x=b}}function f(m){for(var g={list:[],maxY:0},y={list:[],maxY:0},w=0;w<m.length;w++)if(m[w].labelAlignTo==="none"){var _=m[w],S=_.label.y>r?y:g,x=Math.abs(_.label.y-r);if(x>=S.maxY){var C=_.label.x-t-_.len2*a,T=n+_.len,b=Math.abs(C)<T?Math.sqrt(x*x/(1-C*C/T/T)):T;S.rB=b,S.maxY=x}S.list.push(_)}c(g),c(y)}for(var d=e.length,h=0;h<d;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var p=e[h].label.x-u;e[h].linePoints[1][0]+=p,e[h].label.x=u}RI(e,l,l+o)&&f(e)}function ML(e,t,r,n,a,i,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<e.length;d++){var h=e[d].label;rf(e[d])||(h.x<t?(c=Math.min(c,h.x),l.push(e[d])):(f=Math.max(f,h.x),u.push(e[d])))}for(var d=0;d<e.length;d++){var p=e[d];if(!rf(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var h=p.label,m=p.linePoints,g=void 0;p.labelAlignTo==="edge"?h.x<t?g=m[2][0]-p.labelDistance-o-p.edgeDistance:g=o+a-p.edgeDistance-m[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?h.x<t?g=c-o-p.bleedMargin:g=o+a-f-p.bleedMargin:h.x<t?g=h.x-o-p.bleedMargin:g=o+a-h.x-p.bleedMargin,p.targetTextWidth=g,Hb(p,g)}}iy(u,t,r,n,1,a,i,o,s,f),iy(l,t,r,n,-1,a,i,o,s,c);for(var d=0;d<e.length;d++){var p=e[d];if(!rf(p)&&p.linePoints){var h=p.label,m=p.linePoints,y=p.labelAlignTo==="edge",w=h.style.padding,_=w?w[1]+w[3]:0,S=h.style.backgroundColor?0:_,x=p.rect.width+S,C=m[1][0]-m[2][0];y?h.x<t?m[2][0]=o+p.edgeDistance+x+p.labelDistance:m[2][0]=o+a-p.edgeDistance-x-p.labelDistance:(h.x<t?m[2][0]=h.x+p.labelDistance:m[2][0]=h.x-p.labelDistance,m[1][0]=m[2][0]+C),m[1][1]=m[2][1]=h.y}}}function Hb(e,t,r){if(r===void 0&&(r=!1),e.labelStyleWidth==null){var n=e.label,a=n.style,i=e.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,c=i.width+(o?0:l);if(t<c||r){var f=i.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var d=n.getBoundingRect();n.setStyle("width",Math.ceil(d.width)),n.setStyle("backgroundColor",o)}else{var h=t-l,p=t<c?h:r?h>e.unconstrainedWidth?null:h:null;n.setStyle("width",p)}var m=n.getBoundingRect();i.width=m.width;var g=(n.style.margin||0)+2.1;i.height=m.height+g,i.y-=(i.height-f)/2}}}function rf(e){return e.position==="center"}function kL(e){var t=e.getData(),r=[],n,a,i=!1,o=(e.get("minShowLabelAngle")||0)*AL,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(C){C.ignore=!0}function p(C){if(!C.ignore)return!0;for(var T in C.states)if(C.states[T].ignore===!1)return!0;return!1}t.each(function(C){var T=t.getItemGraphicEl(C),b=T.shape,D=T.getTextContent(),N=T.getTextGuideLine(),A=t.getItemModel(C),M=A.getModel("label"),I=M.get("position")||A.get(["emphasis","label","position"]),P=M.get("distanceToLabelLine"),L=M.get("alignTo"),E=Ce(M.get("edgeDistance"),u),B=M.get("bleedMargin"),R=A.getModel("labelLine"),V=R.get("length");V=Ce(V,u);var z=R.get("length2");if(z=Ce(z,u),Math.abs(b.endAngle-b.startAngle)<o){k(D.states,h),D.ignore=!0,N&&(k(N.states,h),N.ignore=!0);return}if(p(D)){var Y=(b.startAngle+b.endAngle)/2,Z=Math.cos(Y),F=Math.sin(Y),J,Te,fe,Ve;n=b.cx,a=b.cy;var je=I==="inside"||I==="inner";if(I==="center")J=b.cx,Te=b.cy,Ve="center";else{var Be=(je?(b.r+b.r0)/2*Z:b.r*Z)+n,Me=(je?(b.r+b.r0)/2*F:b.r*F)+a;if(J=Be+Z*3,Te=Me+F*3,!je){var te=Be+Z*(V+l-b.r),le=Me+F*(V+l-b.r),gt=te+(Z<0?-1:1)*z,Le=le;L==="edge"?J=Z<0?c+E:c+u-E:J=gt+(Z<0?-P:P),Te=Le,fe=[[Be,Me],[te,le],[gt,Le]]}Ve=je?"center":L==="edge"?Z>0?"right":"left":Z>0?"left":"right"}var zt=Math.PI,St=0,$r=M.get("rotate");if(xe($r))St=$r*(zt/180);else if(I==="center")St=0;else if($r==="radial"||$r===!0){var Go=Z<0?-Y+zt:-Y;St=Go}else if($r==="tangential"&&I!=="outside"&&I!=="outer"){var _r=Math.atan2(Z,F);_r<0&&(_r=zt*2+_r);var Ho=F>0;Ho&&(_r=zt+_r),St=_r-zt}if(i=!!St,D.x=J,D.y=Te,D.rotation=St,D.setStyle({verticalAlign:"middle"}),je){D.setStyle({align:Ve});var ca=D.states.select;ca&&(ca.x+=D.x,ca.y+=D.y)}else{var Fr=D.getBoundingRect().clone();Fr.applyTransform(D.getComputedTransform());var gi=(D.style.margin||0)+2.1;Fr.y-=gi/2,Fr.height+=gi,r.push({label:D,labelLine:N,position:I,len:V,len2:z,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new se(Z,F),linePoints:fe,textAlign:Ve,labelDistance:P,labelAlignTo:L,edgeDistance:E,bleedMargin:B,rect:Fr,unconstrainedWidth:Fr.width,labelStyleWidth:D.style.width})}T.setTextConfig({inside:je})}}),!i&&e.get("avoidLabelOverlap")&&ML(r,n,a,l,u,d,c,f);for(var m=0;m<r.length;m++){var g=r[m],y=g.label,w=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(k(y.states,h),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(w){var x=g.linePoints;_||!x?(k(w.states,h),w.ignore=!0):(MI(x,g.minTurnAngle),kI(x,g.surfaceNormal,g.maxSurfaceAngle),w.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new se(x[0][0],x[0][1])})}}}var EL=function(e){H(t,e);function t(r,n,a){var i=e.call(this)||this;i.z2=2;var o=new He;return i.setTextContent(o),i.updateData(r,n,a,!0),i}return t.prototype.updateData=function(r,n,a,i){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),c=r.getItemLayout(n),f=G(Zi(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(i){o.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?(bt(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):d==="scale"?(o.shape.r=c.r0,bt(o,{shape:{r:c.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),bt(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,tt(o,{shape:{endAngle:c.endAngle}},s,n))}else Od(o),tt(o,{shape:f},s,n);o.useStyle(r.getItemVisual(n,"style")),vl(o,l);var h=(c.startAngle+c.endAngle)/2,p=s.get("selectedOffset"),m=Math.cos(h)*p,g=Math.sin(h)*p,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=G({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Zi(u.getModel("itemStyle"),c)),G(o.ensureState("select"),{x:m,y:g,shape:Zi(l.getModel(["select","itemStyle"]),c)}),G(o.ensureState("blur"),{shape:Zi(l.getModel(["blur","itemStyle"]),c)});var w=o.getTextGuideLine(),_=o.getTextContent();w&&G(w.ensureState("select"),{x:m,y:g}),G(_.ensureState("select"),{x:m,y:g}),Kn(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,c=l&&l.opacity;oi(i,aa(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:c,defaultText:r.getFormattedLabel(a,"normal")||n.getName(a)});var f=i.getTextContent();i.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=r.get(["label","position"]);if(d!=="outside"&&d!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new ai,this.setTextGuideLine(h)),PI(this,II(o),{stroke:u,opacity:sn(s.get(["lineStyle","opacity"]),c,1)})}},t}(na),PL=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,a,i){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var d=new na({shape:Gb(r,a)});d.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add(function(h){var p=new EL(o,h,u);o.setItemGraphicEl(h,p),l.add(p)}).update(function(h,p){var m=s.getItemGraphicEl(p);m.updateData(o,h,u),m.off("click"),l.add(m),o.setItemGraphicEl(h,m)}).remove(function(h){var p=s.getItemGraphicEl(h);ml(p,r,h)}).execute(),kL(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=r[0]-i.cx,s=r[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t}(qt);const IL=PL;function LL(e,t,r){t=U(t)&&{coordDimensions:t}||G({encodeDefine:e.getEncode()},t);var n=e.getSource(),a=ib(n,t).dimensions,i=new fo(a,e);return i.initData(n,r),i}var OL=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}();const RL=OL;var BL=Ne(),VL=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new RL(Q(this.getData,this),Q(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return LL(this,{coordDimensions:["value"],encodeDefaulter:be(Dk,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),a=BL(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=mD(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=i[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){fl(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Rr);const $L=VL;function FL(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(xe(o)&&!isNaN(o)&&o<0)})}}}function zL(e){e.registerChartView(IL),e.registerSeriesModel($L),h5("pie",e.registerAction),e.registerLayout(be(NL,"pie")),e.registerProcessor(DL("pie")),e.registerProcessor(FL("pie"))}var GL=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Se);const HL=GL;var Nh=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",dt).models[0]},t.type="cartesian2dAxis",t}(Se);Jt(Nh,gI);var Ub={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},UL=ve({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Ub),vv=ve({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Ub),WL=ve({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},vv),YL=he({logBase:10},vv);const qL={category:UL,value:vv,time:WL,log:YL};var jL={value:1,category:1,time:1,log:1};function oy(e,t,r,n){k(jL,function(a,i){var o=ve(ve({},qL[i],!0),n,!0),s=function(l){H(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=So(this),h=d?Vo(c):{},p=f.getTheme();ve(c,p.get(i+"Axis")),ve(c,this.getDefaultOption()),c.type=sy(c),d&&Ja(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=bh.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",sy)}function sy(e){return e.type||(e.data?"category":"value")}var XL=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return q(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),qe(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}();const ZL=XL;var Dh=["x","y"];function ly(e){return e.type==="interval"||e.type==="time"}var KL=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=Dh,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!ly(r)||!ly(n))){var a=r.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-a[0]*c,h=o[1]-i[0]*f,p=this._transform=[c,0,0,f,d,h];this._invTransform=pd([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&a.contain(a.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var a=this.dataToPoint(r),i=this.dataToPoint(n),o=this.getArea(),s=new ye(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,a){a=a||[];var i=r[0],o=r[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Vt(a,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(r,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(r[0]),u=i.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var a=[];if(this._invTransform)return Vt(a,r,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(r[0]),n),a[1]=o.coordToData(o.toLocalCoord(r[1]),n),a},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-r,o=Math.min(a[0],a[1])-r,s=Math.max(n[0],n[1])-i+r,l=Math.max(a[0],a[1])-o+r;return new ye(i,o,s,l)},t}(ZL),JL=function(e){H(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(AI);const QL=JL;function Ah(e,t,r){r=r||{};var n=e.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,p=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var m=o.toGlobalCoord(o.dataToCoord(0));p[d.onZero]=Math.max(Math.min(m,p[1]),p[0])}i.position=[u==="y"?p[d[l]]:f[0],u==="x"?p[d[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?p[d[s]]-p[d.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),fn(r.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function uy(e){return e.get("coordinateSystem")==="cartesian2d"}function cy(e){var t={xAxisModel:null,yAxisModel:null};return k(t,function(r,n){var a=n.replace(/Model$/,""),i=e.getReferringComponents(a,dt).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error(a+' "'+sn(e.get(a+"Index"),e.get(a+"Id"),0)+'" not found');t[n]=i}),t}var nf=Math.log;function eO(e,t,r){var n=$o.prototype,a=n.getTicks.call(r),i=n.getTicks.call(r,!0),o=a.length-1,s=n.getInterval.call(r),l=wb(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=nf(e.base);u=[nf(u[0])/d,nf(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var h=n.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var p=n.getInterval.call(e),m=u[0],g=u[1];if(c&&f)p=(g-m)/o;else if(c)for(g=u[0]+p*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)p=Zc(p),g=u[0]+p*o;else if(f)for(m=u[1]-p*o;m>u[0]&&isFinite(m)&&isFinite(u[0]);)p=Zc(p),m=u[1]-p*o;else{var y=e.getTicks().length-1;y>o&&(p=Zc(p));var w=p*o;g=Math.ceil(u[1]/p)*p,m=Re(g-w),m<0&&u[0]>=0?(m=0,g=Re(w)):g>0&&u[1]<=0&&(g=0,m=-Re(w))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;if(n.setExtent.call(e,m+p*_,g+p*S),n.setInterval.call(e,p),(_||S)&&n.setNiceExtent.call(e,m+p,g-p),process.env.NODE_ENV!=="production"){var x=n.getTicks.call(e);x[1]&&(!VP(p)||Jf(x[1].value)>Jf(p))&&Fe("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}}var tO=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Dh,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=_e(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],p=h.model,m=h.scale;Sh(m)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(Bm(m,p),Sh(m)&&(s=h))}c.length&&(s||(s=c.pop(),Bm(s.scale,s.model)),k(c,function(g){eO(g.scale,g.model,s.scale)}))}}a(n.x),a(n.y);var i={};k(n.x,function(o){fy(n,"y",o,i)}),k(n.y,function(o){fy(n,"x",o,i)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=Qn(a,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(k(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=dI(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),k(this._coordsList,function(u){u.calcAffineTransform()});function l(){k(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),rO(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}K(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===t||i[a].getAxis("y").index===r)return i[a]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",dt).models[0],a=t.yAxisModel||r&&r.getReferringComponents("yAxis",dt).models[0],i=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,ce(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,k(s.x,function(c,f){k(s.y,function(d,h){var p="x"+f+"y"+h,m=new KL(p);m.master=a,m.model=t,a._coordsMap[p]=m,a._coordsList.push(m),m.addAxis(c),m.addAxis(d)})});function u(c){return function(f,d){if(af(f,t)){var h=f.get("position");c==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var p=new QL(c,fI(f),[0,0],f.get("type"),h),m=p.type==="category";p.onBand=m&&f.get("boundaryGap"),p.inverse=f.get("inverse"),f.axis=p,p.model=f,p.grid=i,p.index=d,i._axesList.push(p),s[c][d]=p,l[c]++}}}},e.prototype._updateScale=function(t,r){k(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),t.eachSeries(function(a){if(uy(a)){var i=cy(a),o=i.xAxisModel,s=i.yAxisModel;if(!af(o,r)||!af(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),c=l.getAxis("x"),f=l.getAxis("y");n(u,c),n(u,f)}},this);function n(a,i){k(Sb(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return k(this.getCartesians(),function(a){var i=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(i);ce(r,i)<0&&r.push(i),ce(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(a,i){var o=new e(a,t,r);o.name="grid_"+i,o.resize(a,r,!0),a.coordinateSystem=o,n.push(o)}),t.eachSeries(function(a){if(uy(a)){var i=cy(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!l)throw new Error('Grid "'+sn(o.get("gridIndex"),o.get("gridId"),0)+'" not found');if(o.getCoordSysModel()!==s.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=Dh,e}();function af(e,t){return e.getCoordSysModel()===t}function fy(e,t,r,n){r.getAxesOnZeroOf=function(){return i?[i]:[]};var a=e[t],i,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)hy(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&hy(a[u])&&!n[c(a[u])]){i=a[u];break}i&&(n[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function hy(e){return e&&e.type!=="category"&&e.type!=="time"&&hI(e)}function rO(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(a){return a+t}:function(a){return n-a+t},e.toLocalCoord=e.dim==="x"?function(a){return a-t}:function(a){return n-a+t}}const nO=tO;var rn=Math.PI,qn=function(){function e(t,r){this.group=new Ie,this.opt=r,this.axisModel=t,he(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Ie({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!dy[t]},e.prototype.add=function(t){dy[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var a=P_(r-t),i,o;return ll(a)?(o=n>0?"top":"bottom",i="center"):ll(a-rn)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<rn?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),dy={axisLine:function(e,t,r,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&e.handleAutoShown&&(a=e.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Vt(s,s,o),Vt(l,l,o));var c=G({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new dn({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});_o(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);j(d)&&(d=[d,d]),(j(h)||xe(h))&&(h=[h,h]);var p=Nu(t.get(["axisLine","symbolOffset"])||0,h),m=h[0],g=h[1];k([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0},{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,w){if(d[w]!=="none"&&d[w]!=null){var _=Br(d[w],-m/2,-g/2,m,g,c.stroke,!0),S=y.r+y.offset,x=u?l:s;_.attr({rotation:y.rotate,x:x[0]+S*Math.cos(e.rotation),y:x[1]-S*Math.sin(e.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(e,t,r,n){var a=oO(r,n,t,e),i=lO(r,n,t,e);if(iO(t,i,a),sO(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=LI(q(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));BI(o)}},axisName:function(e,t,r,n){var a=fn(e.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,py(i)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*rn/180);var p;py(i)?d=qn.innerTextLayout(e.rotation,h??e.rotation,o):(d=aO(e.rotation,i,h||0,u),p=e.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(d.rotation)),!isFinite(p)&&(p=null)));var m=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,w=fn(e.nameTruncateMaxWidth,g.maxWidth,p),_=new He({x:f[0],y:f[1],rotation:d.rotation,silent:qn.isLabelSilent(t),style:Xt(s,{text:a,font:m,overflow:"truncate",width:w,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(Bd({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=qn.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,de(_).eventData=S}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function aO(e,t,r,n){var a=P_(r-e),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return ll(a-rn/2)?(o=l?"bottom":"top",i="center"):ll(a-rn*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<rn*1.5&&a>rn/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function iO(e,t,r){if(!bb(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),a=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],f=r[r.length-1],d=r[r.length-2];n===!1?(Tt(i),Tt(u)):vy(i,o)&&(n?(Tt(o),Tt(c)):(Tt(i),Tt(u))),a===!1?(Tt(s),Tt(f)):vy(l,s)&&(a?(Tt(l),Tt(d)):(Tt(s),Tt(f)))}}function Tt(e){e&&(e.ignore=!0)}function vy(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var a=dd([]);return vd(a,a,-e.rotation),r.applyTransform(Va([],a,e.getLocalTransform())),n.applyTransform(Va([],a,t.getLocalTransform())),r.intersect(n)}}function py(e){return e==="middle"||e==="center"}function Wb(e,t,r,n,a){for(var i=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(Vt(o,o,t),Vt(s,s,t));var c=new dn({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});_o(c.shape,c.style.lineWidth),c.anid=a+"_"+e[l].tickValue,i.push(c)}return i}function oO(e,t,r,n){var a=r.axis,i=r.getModel("axisTick"),o=i.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=n.tickDirection*i.get("length"),u=a.getTicksCoords(),c=Wb(u,t.transform,l,he(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function sO(e,t,r,n){var a=r.axis,i=r.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=n*i.get("length"),u=he(s.getLineStyle(),he(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=Wb(o[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function lO(e,t,r,n){var a=r.axis,i=fn(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(fn(n.labelRotate,o.get("rotate"))||0)*rn/180,c=qn.innerTextLayout(n.rotation,u,n.labelDirection),f=r.getCategories&&r.getCategories(!0),d=[],h=qn.isLabelSilent(r),p=r.get("triggerEvent");return k(l,function(m,g){var y=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(m.tickValue):m.tickValue,w=m.formattedLabel,_=m.rawLabel,S=o;if(f&&f[y]){var x=f[y];K(x)&&x.textStyle&&(S=new Qe(x.textStyle,o,r.ecModel))}var C=S.getTextColor()||r.get(["axisLine","lineStyle","color"]),T=a.dataToCoord(y),b=S.getShallow("align",!0)||c.textAlign,D=ne(S.getShallow("alignMinLabel",!0),b),N=ne(S.getShallow("alignMaxLabel",!0),b),A=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||c.textVerticalAlign,M=ne(S.getShallow("verticalAlignMinLabel",!0),A),I=ne(S.getShallow("verticalAlignMaxLabel",!0),A),P=new He({x:T,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(m.level||0),style:Xt(S,{text:w,align:g===0?D:g===l.length-1?N:b,verticalAlign:g===0?M:g===l.length-1?I:A,fill:ie(C)?C(a.type==="category"?_:a.type==="value"?y+"":y,g):C})});if(P.anid="label_"+y,p){var L=qn.makeAxisEventDataBase(r);L.targetType="axisLabel",L.value=_,L.tickIndex=g,a.type==="category"&&(L.dataIndex=y),de(P).eventData=L}t.add(P),P.updateTransform(),d.push(P),e.add(P),P.decomposeTransform()}),d}}const Yb=qn;function uO(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return cO(r,e,t),r.seriesInvolved&&hO(r,e),r}function cO(e,t,r){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];k(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Ao(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(k(s.getAxes(),be(m,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&k(p.baseAxes,be(m,h?"cross":!0,d)),h&&k(p.otherAxes,be(m,"cross",!1))}function m(g,y,w){var _=w.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Mh(_))){y==null&&(y=_.get("triggerTooltip")),_=g?fO(w,f,a,t,g,y):_;var x=_.get("snap"),C=_.get("triggerEmphasis"),T=Ao(w.model),b=y||x||w.type==="category",D=e.axesInfo[T]={key:T,axis:w,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:C,involveSeries:b,snap:x,useHandle:Mh(_),seriesModels:[],linkGroup:null};u[T]=D,e.seriesInvolved=e.seriesInvolved||b;var N=dO(i,w);if(N!=null){var A=o[N]||(o[N]={axesInfo:{}});A.axesInfo[T]=D,A.mapper=i[N].mapper,D.linkGroup=A}}}})}function fO(e,t,r,n,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};k(s,function(d){l[d]=ue(o.get(d))}),l.snap=e.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!i){var f=l.lineStyle=o.get("crossStyle");f&&he(u,f.textStyle)}}return e.model.getModel("axisPointer",new Qe(l,r,n))}function hO(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,a=r.get(["tooltip","trigger"],!0),i=r.get(["tooltip","show"],!0);!n||a==="none"||a===!1||a==="item"||i===!1||r.get(["axisPointer","show"],!0)===!1||k(e.coordSysAxesInfo[Ao(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function dO(e,t){for(var r=t.model,n=t.dim,a=0;a<e.length;a++){var i=e[a]||{};if(of(i[n+"AxisId"],r.id)||of(i[n+"AxisIndex"],r.componentIndex)||of(i[n+"AxisName"],r.name))return a}}function of(e,t){return e==="all"||U(e)&&ce(e,t)>=0||e===t}function vO(e){var t=pv(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,a=r.option,i=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Mh(r);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function pv(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Ao(e)]}function pO(e){var t=pv(e);return t&&t.axisPointerModel}function Mh(e){return!!e.get(["handle","show"])}function Ao(e){return e.type+"||"+e.id}var sf={},qb=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this.axisPointerClass&&vO(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,a,!0)},t.prototype.updateAxisPointer=function(r,n,a,i){this._doUpdateAxisPointerClass(r,a,!1)},t.prototype.remove=function(r,n){var a=this._axisPointer;a&&a.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,a){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=pO(r);o?(this._axisPointer||(this._axisPointer=new i)).render(r,o,n,a):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){if(process.env.NODE_ENV!=="production"&&sf[r])throw new Error("axisPointer "+r+" exists");sf[r]=n},t.getAxisPointerClass=function(r){return r&&sf[r]},t.type="axis",t}(Zt),kh=Ne();function gO(e,t,r,n){var a=r.axis;if(!a.scale.isBlank()){var i=r.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var c=s.length,f=kh(e).splitAreaColors,d=ae(),h=0;if(f)for(var p=0;p<u.length;p++){var m=f.get(u[p].tickValue);if(m!=null){h=(m+(c-1)*p)%c;break}}var g=a.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=U(s)?s:[s];for(var p=1;p<u.length;p++){var w=a.toGlobalCoord(u[p].coord),_=void 0,S=void 0,x=void 0,C=void 0;a.isHorizontal()?(_=g,S=l.y,x=w-_,C=l.height,g=_+x):(_=l.x,S=g,x=l.width,C=w-S,g=S+C);var T=u[p-1].tickValue;T!=null&&d.set(T,h),t.add(new ke({anid:T!=null?"area_"+T:null,shape:{x:_,y:S,width:x,height:C},style:he({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%c}kh(e).splitAreaColors=d}}}function mO(e){kh(e).splitAreaColors=null}var yO=["axisLine","axisTickLabel","axisName"],_O=["splitArea","splitLine","minorSplitLine"],jb=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ie,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=Ah(s,r),u=new Yb(r,G({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(Sh(d[h].getOtherAxis(r.axis).scale))return!0;return!1}},l));k(yO,u.add,u),this._axisGroup.add(u.getGroup()),k(_O,function(f){r.get([f,"show"])&&wO[f](this,this._axisGroup,r,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||O1(o,this._axisGroup,r),e.prototype.render.call(this,r,n,a,i)}},t.prototype.remove=function(){mO(this)},t.type="cartesianAxis",t}(qb),wO={splitLine:function(e,t,r,n){var a=r.axis;if(!a.scale.isBlank()){var i=r.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=U(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=a.isHorizontal(),c=0,f=a.getTicksCoords({tickModel:i}),d=[],h=[],p=o.getLineStyle(),m=0;m<f.length;m++){var g=a.toGlobalCoord(f[m].coord);u?(d[0]=g,d[1]=l.y,h[0]=g,h[1]=l.y+l.height):(d[0]=l.x,d[1]=g,h[0]=l.x+l.width,h[1]=g);var y=c++%s.length,w=f[m].tickValue,_=new dn({anid:w!=null?"line_"+f[m].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:he({stroke:s[y]},p),silent:!0});_o(_.shape,p.lineWidth),t.add(_)}}},minorSplitLine:function(e,t,r,n){var a=r.axis,i=r.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=o.getLineStyle(),h=0;h<u.length;h++)for(var p=0;p<u[h].length;p++){var m=a.toGlobalCoord(u[h][p].coord);l?(c[0]=m,c[1]=s.y,f[0]=m,f[1]=s.y+s.height):(c[0]=s.x,c[1]=m,f[0]=s.x+s.width,f[1]=m);var g=new dn({anid:"minor_line_"+u[h][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});_o(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,r,n){gO(e,t,r,n)}},Xb=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(jb),bO=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Xb.type,r}return t.type="yAxis",t}(jb),SO=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new ke({shape:r.coordinateSystem.getRect(),style:he({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Zt),gy={offset:0};function CO(e){e.registerComponentView(SO),e.registerComponentModel(HL),e.registerCoordinateSystem("cartesian2d",nO),oy(e,"x",Nh,gy),oy(e,"y",Nh,gy),e.registerComponentView(Xb),e.registerComponentView(bO),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var my="\0_ec_interaction_mutex";function yy(e,t){return!!xO(e)[t]}function xO(e){return e[my]||(e[my]={})}oa({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},ot);var TO=function(e){H(t,e);function t(r){var n=e.call(this)||this;n._zr=r;var a=Q(n._mousedownHandler,n),i=Q(n._mousemoveHandler,n),o=Q(n._mouseupHandler,n),s=Q(n._mousewheelHandler,n),l=Q(n._pinchHandler,n);return n.enable=function(u,c){this.disable(),this._opt=he(ue(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(r.on("mousedown",a),r.on("mousemove",i),r.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(r.on("mousewheel",s),r.on("pinch",l))},n.disable=function(){r.off("mousedown",a),r.off("mousemove",i),r.off("mouseup",o),r.off("mousewheel",s),r.off("pinch",l)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(r){this.pointerChecker=r},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(r){if(!op(r)){for(var n=r.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=r.offsetX,i=r.offsetY;this.pointerChecker&&this.pointerChecker(r,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(r){if(!(!this._dragging||!js("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||yy(this._zr,"globalPan"))){var n=r.offsetX,a=r.offsetY,i=this._x,o=this._y,s=n-i,l=a-o;this._x=n,this._y=a,this._opt.preventDefaultMouseMove&&Xa(r.event),Zb(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:i,oldY:o,newX:n,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){op(r)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(r){var n=js("zoomOnMouseWheel",r,this._opt),a=js("moveOnMouseWheel",r,this._opt),i=r.wheelDelta,o=Math.abs(i),s=r.offsetX,l=r.offsetY;if(!(i===0||!n&&!a)){if(n){var u=o>3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;lf(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var f=Math.abs(i),d=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);lf(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!yy(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;lf(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Qt);function lf(e,t,r,n,a){e.pointerChecker&&e.pointerChecker(n,a.originX,a.originY)&&(Xa(n.event),Zb(e,t,r,n,a))}function Zb(e,t,r,n,a){a.isAvailableBehavior=Q(js,null,r,n),e.trigger(t,a)}function js(e,t,r){var n=r[e];return!e||n&&(!j(n)||t.event[n+"Key"])}const NO=TO;var _y=dn.prototype,uf=Ed.prototype,Kb=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Kb);function cf(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var DO=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Kb},t.prototype.buildPath=function(r,n){cf(n)?_y.buildPath.call(this,r,n):uf.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return cf(this.shape)?_y.pointAt.call(this,r):uf.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,a=cf(n)?[n.x2-n.x1,n.y2-n.y1]:uf.tangentAt.call(this,r);return fd(a,a)},t}(pe),ff=["fromSymbol","toSymbol"];function wy(e){return"_"+e+"Type"}function by(e,t,r){var n=t.getItemVisual(r,e);if(!n||n==="none")return n;var a=t.getItemVisual(r,e+"Size"),i=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=rv(a),u=Nu(o||0,l);return n+l+u+(i||"")+(s||"")}function Sy(e,t,r){var n=t.getItemVisual(r,e);if(!(!n||n==="none")){var a=t.getItemVisual(r,e+"Size"),i=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=rv(a),u=Nu(o||0,l),c=Br(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,c.name=e,c}}function AO(e){var t=new DO({name:"line",subPixelOptimize:!0});return Eh(t.shape,e),t}function Eh(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var r=t[2];r?(e.cpx1=r[0],e.cpy1=r[1]):(e.cpx1=NaN,e.cpy1=NaN)}var MO=function(e){H(t,e);function t(r,n,a){var i=e.call(this)||this;return i._createLine(r,n,a),i}return t.prototype._createLine=function(r,n,a){var i=r.hostModel,o=r.getItemLayout(n),s=AO(o);s.shape.percent=0,bt(s,{shape:{percent:1}},i,n),this.add(s),k(ff,function(l){var u=Sy(l,r,n);this.add(u),this[wy(l)]=by(l,r,n)},this),this._updateCommonStl(r,n,a)},t.prototype.updateData=function(r,n,a){var i=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};Eh(l.shape,s),tt(o,l,i,n),k(ff,function(u){var c=by(u,r,n),f=wy(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=Sy(u,r,n);this.add(d)}this[f]=c},this),this._updateCommonStl(r,n,a)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(r,n,a){var i=r.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,c=a&&a.labelStatesModels,f=a&&a.emphasisDisabled,d=a&&a.focus,h=a&&a.blurScope;if(!a||r.hasItemOption){var p=r.getItemModel(n),m=p.getModel("emphasis");s=m.getModel("lineStyle").getLineStyle(),l=p.getModel(["blur","lineStyle"]).getLineStyle(),u=p.getModel(["select","lineStyle"]).getLineStyle(),f=m.get("disabled"),d=m.get("focus"),h=m.get("blurScope"),c=aa(p)}var g=r.getItemVisual(n,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,k(ff,function(C){var T=this.childOfName(C);if(T){T.setColor(y),T.style.opacity=g.opacity;for(var b=0;b<vt.length;b++){var D=vt[b],N=o.getState(D);if(N){var A=N.style||{},M=T.ensureState(D),I=M.style||(M.style={});A.stroke!=null&&(I[T.__isEmptyBrush?"stroke":"fill"]=A.stroke),A.opacity!=null&&(I.opacity=A.opacity)}}T.markRedraw()}},this);var w=i.getRawValue(n);oi(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(C,T){return i.getFormattedLabel(C,T,r.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(w==null?r.getName(n):isFinite(w)?Re(w):w)+""});var _=this.getTextContent();if(_){var S=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var x=S.get("distance");U(x)||(x=[x,x]),_.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),Kn(this,d,h,f)},t.prototype.highlight=function(){mo(this)},t.prototype.downplay=function(){yo(this)},t.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},t.prototype.setLinePoints=function(r){var n=this.childOfName("line");Eh(n.shape,r),n.dirty()},t.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),a=r.childOfName("toSymbol"),i=r.getTextContent();if(!n&&!a&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),d=c_([],f,c);fd(d,d);function h(N,A){var M=N.__specifiedRotation;if(M==null){var I=l.tangentAt(A);N.attr("rotation",(A===1?-1:1)*Math.PI/2-Math.atan2(I[1],I[0]))}else N.attr("rotation",M)}if(n&&(n.setPosition(c),h(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&(a.setPosition(f),h(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var p=void 0,m=void 0,g=i.__labelDistance,y=g[0]*o,w=g[1]*o,_=u/2,S=l.tangentAt(_),x=[S[1],-S[0]],C=l.pointAt(_);x[1]>0&&(x[0]=-x[0],x[1]=-x[1]);var T=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var b=-Math.atan2(S[1],S[0]);f[0]<c[0]&&(b=Math.PI+b),i.rotation=b}var D=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":D=-w,m="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":D=w,m="top";break;default:D=0,m="middle"}switch(i.__position){case"end":i.x=d[0]*y+f[0],i.y=d[1]*w+f[1],p=d[0]>.8?"left":d[0]<-.8?"right":"center",m=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":i.x=-d[0]*y+c[0],i.y=-d[1]*w+c[1],p=d[0]>.8?"right":d[0]<-.8?"left":"center",m=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*T+c[0],i.y=c[1]+D,p=S[0]<0?"right":"left",i.originX=-y*T,i.originY=-D;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=C[0],i.y=C[1]+D,p="center",i.originY=-D;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*T+f[0],i.y=f[1]+D,p=S[0]>=0?"right":"left",i.originX=y*T,i.originY=-D;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||m,align:i.__align||p})}},t}(Ie);const kO=MO;var EO=function(){function e(t){this.group=new Ie,this._LineCtor=t||kO}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=t,i||a.removeAll();var o=Cy(t);t.diff(i).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(i,t,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Cy(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!PO(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var i=r.getItemLayout(a);if(hf(i)){var o=new this._LineCtor(r,a,this._seriesScope);o.traverse(n),this.group.add(o),r.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){ii(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var a=t.getItemLayout(r);if(hf(a)){var i=new this._LineCtor(t,r,n);t.setItemGraphicEl(r,i),this.group.add(i)}},e.prototype._doUpdate=function(t,r,n,a,i){var o=t.getItemGraphicEl(n);if(!hf(r.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(r,a,i):o=new this._LineCtor(r,a,i),r.setItemGraphicEl(a,o),this.group.add(o)},e}();function PO(e){return e.animators&&e.animators.length>0}function Cy(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:aa(t)}}function xy(e){return isNaN(e[0])||isNaN(e[1])}function hf(e){return e&&!xy(e[0])&&!xy(e[1])}const IO=EO;function Lu(e,t,r,n,a,i){e=e||0;var o=r[1]-r[0];if(a!=null&&(a=Ta(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Ta(s,[0,o]),a=i=Ta(s,[a,i]),n=0}t[0]=Ta(t[0],r),t[1]=Ta(t[1],r);var l=df(t,n);t[n]+=e;var u=a||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=Ta(t[n],c);var f;return f=df(t,n),a!=null&&(f.sign!==l.sign||f.span<a)&&(t[1-n]=t[n]+l.sign*a),f=df(t,n),i!=null&&f.span>i&&(t[1-n]=t[n]+f.sign*i),t}function df(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function Ta(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var Ty={color:"fill",borderColor:"stroke"},LO={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Pr=Ne(),OO=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return Mu(null,this)},t.prototype.getDataParams=function(r,n,a){var i=e.prototype.getDataParams.call(this,r,n);return a&&(i.info=Pr(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Rr);const RO=OO;function BO(e,t){return t=t||[0,0],q(["x","y"],function(r,n){var a=this.getAxis(r),i=t[n],o=e[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function VO(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:Q(BO,e)}}}function $O(e,t){return t=t||[0,0],q([0,1],function(r){var n=t[r],a=e[r]/2,i=[],o=[];return i[r]=n-a,o[r]=n+a,i[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(i)[r]-this.dataToPoint(o)[r])},this)}function FO(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(r){return e.dataToPoint(r)},size:Q($O,e)}}}function zO(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,a=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-a)-r.dataToCoord(n+a))}function GO(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:Q(zO,e)}}}function HO(e,t){return t=t||[0,0],q(["Radius","Angle"],function(r,n){var a="get"+r+"Axis",i=this[a](),o=t[n],s=e[n]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function UO(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=t.dataToRadius(a[0]),o=r.dataToAngle(a[1]),s=e.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:Q(HO,e)}}}function WO(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,a){return e.dataToPoint(n,a)}}}}var Ny={};function YO(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||W(e,"text")))}function qO(e,t,r){var n=e,a,i,o;if(t==="text")o=n;else{o={},W(n,"text")&&(o.text=n.text),W(n,"rich")&&(o.rich=n.rich),W(n,"textFill")&&(o.fill=n.textFill),W(n,"textStroke")&&(o.stroke=n.textStroke),W(n,"fontFamily")&&(o.fontFamily=n.fontFamily),W(n,"fontSize")&&(o.fontSize=n.fontSize),W(n,"fontStyle")&&(o.fontStyle=n.fontStyle),W(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=W(n,"textPosition");r?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),W(n,"textPosition")&&(a.position=n.textPosition),W(n,"textOffset")&&(a.offset=n.textOffset),W(n,"textRotation")&&(a.rotation=n.textRotation),W(n,"textDistance")&&(a.distance=n.textDistance)}return Dy(o,e),k(o.rich,function(l){Dy(l,l)}),{textConfig:a,textContent:i}}function Dy(e,t){t&&(t.font=t.textFont||t.font,W(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),W(t,"textAlign")&&(e.align=t.textAlign),W(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),W(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),W(t,"textWidth")&&(e.width=t.textWidth),W(t,"textHeight")&&(e.height=t.textHeight),W(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),W(t,"textPadding")&&(e.padding=t.textPadding),W(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),W(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),W(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),W(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),W(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),W(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),W(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function Ay(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var a=n.textPosition.indexOf("inside")>=0,i=e.fill||"#000";My(n,t);var o=n.textFill==null;return a?o&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=e.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,k(t.rich,function(s){My(s,s)}),n}function My(e,t){t&&(W(t,"fill")&&(e.textFill=t.fill),W(t,"stroke")&&(e.textStroke=t.fill),W(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),W(t,"font")&&(e.font=t.font),W(t,"fontStyle")&&(e.fontStyle=t.fontStyle),W(t,"fontWeight")&&(e.fontWeight=t.fontWeight),W(t,"fontSize")&&(e.fontSize=t.fontSize),W(t,"fontFamily")&&(e.fontFamily=t.fontFamily),W(t,"align")&&(e.textAlign=t.align),W(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),W(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),W(t,"width")&&(e.textWidth=t.width),W(t,"height")&&(e.textHeight=t.height),W(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),W(t,"padding")&&(e.textPadding=t.padding),W(t,"borderColor")&&(e.textBorderColor=t.borderColor),W(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),W(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),W(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),W(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),W(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),W(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),W(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),W(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),W(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),W(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}function ky(e,t){if(process.env.NODE_ENV!=="production"){var r=e+"^_^"+t;Ny[r]||(console.warn('[ECharts] DEPRECATED: "'+e+'" has been deprecated. '+t),Ny[r]=!0)}}var Jb={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Ey=_e(Jb),Ll=Lr(pr,function(e,t){return e[t]=1,e},{}),Py=pr.join(", "),Ol=["","style","shape","extra"],ei=Ne();function gv(e,t,r,n,a){var i=e+"Animation",o=Id(e,n,a)||{},s=ei(t).userDuring;return o.duration>0&&(o.during=s?Q(eR,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),G(o,r[i]),o}function jO(e,t,r,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=ei(e),u=t.style;l.userDuring=t.during;var c={},f={};if(rR(e,t,f),Ly("shape",t,f),Ly("extra",t,f),!i&&s&&(tR(e,t,c),Iy("shape",e,t,c),Iy("extra",e,t,c),nR(e,t,u,c)),f.style=u,ZO(e,f,o),JO(e,t),s)if(i){var d={};k(Ol,function(p){var m=p?t[p]:t;m&&m.enterFrom&&(p&&(d[p]=d[p]||{}),G(p?d[p]:d,m.enterFrom))});var h=gv("enter",e,t,r,a);h.duration>0&&e.animateFrom(d,h)}else KO(e,t,a||0,r,c);XO(e,t),u?e.dirty():e.markRedraw()}function XO(e,t){for(var r=ei(e).leaveToProps,n=0;n<Ol.length;n++){var a=Ol[n],i=a?t[a]:t;i&&i.leaveTo&&(r||(r=ei(e).leaveToProps={}),a&&(r[a]=r[a]||{}),G(a?r[a]:r,i.leaveTo))}}function mv(e,t,r,n){if(e){var a=e.parent,i=ei(e).leaveToProps;if(i){var o=gv("update",e,t,r,0);o.done=function(){a.remove(e),n&&n()},e.animateTo(i,o)}else a.remove(e),n&&n()}}function Ua(e){return e==="all"}function ZO(e,t,r){var n=t.style;if(!e.isGroup&&n){if(r){e.useStyle({});for(var a=e.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(e.style)}}e.setStyle(n)}t&&(t.style=null,t&&e.attr(t),t.style=n)}function KO(e,t,r,n,a){if(a){var i=gv("update",e,t,n,r);i.duration>0&&e.animateFrom(a,i)}}function JO(e,t){W(t,"silent")&&(e.silent=t.silent),W(t,"ignore")&&(e.ignore=t.ignore),e instanceof ra&&W(t,"invisible")&&(e.invisible=t.invisible),e instanceof pe&&W(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var lr={},QO={setTransform:function(e,t){return process.env.NODE_ENV!=="production"&&ee(W(Ll,e),"Only "+Py+" available in `setTransform`."),lr.el[e]=t,this},getTransform:function(e){return process.env.NODE_ENV!=="production"&&ee(W(Ll,e),"Only "+Py+" available in `getTransform`."),lr.el[e]},setShape:function(e,t){process.env.NODE_ENV!=="production"&&Na(e);var r=lr.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){process.env.NODE_ENV!=="production"&&Na(e);var t=lr.el.shape;if(t)return t[e]},setStyle:function(e,t){process.env.NODE_ENV!=="production"&&Na(e);var r=lr.el,n=r.style;return n&&(process.env.NODE_ENV!=="production"&&ja(t)&&Fe("style."+e+" must not be assigned with NaN."),n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){process.env.NODE_ENV!=="production"&&Na(e);var t=lr.el.style;if(t)return t[e]},setExtra:function(e,t){process.env.NODE_ENV!=="production"&&Na(e);var r=lr.el.extra||(lr.el.extra={});return r[e]=t,this},getExtra:function(e){process.env.NODE_ENV!=="production"&&Na(e);var t=lr.el.extra;if(t)return t[e]}};function Na(e){if(process.env.NODE_ENV!=="production"&&(e==="transition"||e==="enterFrom"||e==="leaveTo"))throw new Error('key must not be "'+e+'"')}function eR(){var e=this,t=e.el;if(t){var r=ei(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}lr.el=t,n(QO)}}function Iy(e,t,r,n){var a=r[e];if(a){var i=t[e],o;if(i){var s=r.transition,l=a.transition;if(l)if(!o&&(o=n[e]={}),Ua(l))G(o,i);else for(var u=Ge(l),c=0;c<u.length;c++){var f=u[c],d=i[f];o[f]=d}else if(Ua(s)||ce(s,e)>=0){!o&&(o=n[e]={});for(var h=_e(i),c=0;c<h.length;c++){var f=h[c],d=i[f];aR(a[f],d)&&(o[f]=d)}}}}}function Ly(e,t,r){var n=t[e];if(n)for(var a=r[e]={},i=_e(n),o=0;o<i.length;o++){var s=i[o];a[s]=eo(n[s])}}function tR(e,t,r){for(var n=t.transition,a=Ua(n)?pr:Ge(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=e[o];process.env.NODE_ENV!=="production"&&Qb(o,"el.transition"),r[o]=s}}}function rR(e,t,r){for(var n=0;n<Ey.length;n++){var a=Ey[n],i=Jb[a],o=t[a];o&&(r[i[0]]=o[0],r[i[1]]=o[1])}for(var n=0;n<pr.length;n++){var s=pr[n];t[s]!=null&&(r[s]=t[s])}}function nR(e,t,r,n){if(r){var a=e.style,i;if(a){var o=r.transition,s=t.transition;if(o&&!Ua(o)){var l=Ge(o);!i&&(i=n.style={});for(var u=0;u<l.length;u++){var c=l[u],f=a[c];i[c]=f}}else if(e.getAnimationStyleProps&&(Ua(s)||Ua(o)||ce(s,"style")>=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!i&&(i=n.style={});for(var p=_e(r),u=0;u<p.length;u++){var c=p[u];if(h[c]){var f=a[c];i[c]=f}}}}}}}function aR(e,t){return st(e)?e!==t:e!=null&&isFinite(e)}var Qb;process.env.NODE_ENV!=="production"&&(Qb=function(e,t){W(Ll,e)||Fe("Prop `"+e+"` is not a permitted in `"+t+"`. Only `"+_e(Ll).join("`, `")+"` are permitted.")});var eS=Ne(),iR=["percent","easing","shape","style","extra"];function oR(e){e.stopAnimation("keyframe"),e.attr(eS(e))}function tS(e,t,r){if(!(!r.isAnimationEnabled()||!t)){if(U(t)){k(t,function(s){tS(e,s,r)});return}var n=t.keyframes,a=t.duration;if(r&&a==null){var i=Id("enter",r,0);a=i&&i.duration}if(!(!n||!a)){var o=eS(e);k(Ol,function(s){if(!(s&&!e[s])){var l,u=!1;n.sort(function(c,f){return c.percent-f.percent}),k(n,function(c){var f=e.animators,d=s?c[s]:c;if(process.env.NODE_ENV!=="production"&&c.percent>=1&&(u=!0),!!d){var h=_e(d);if(s||(h=qe(h,function(g){return ce(iR,g)<0})),!!h.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var p=0;p<f.length;p++)f[p]!==l&&f[p].targetName===l.targetName&&f[p].stopTracks(h);s&&(o[s]=o[s]||{});var m=s?o[s]:o;k(h,function(g){m[g]=((s?e[s]:e)||{})[g]}),l.whenWithKeys(a*c.percent,d,h,c.easing)}}}),l&&(process.env.NODE_ENV!=="production"&&(u||Fe("End frame with percent: 1 is missing in the keyframeAnimation.",!0)),l.delay(t.delay||0).duration(a).start(t.easing))}})}}}var Ir="emphasis",nn="normal",yv="blur",_v="select",vn=[nn,Ir,yv,_v],vf={normal:["itemStyle"],emphasis:[Ir,"itemStyle"],blur:[yv,"itemStyle"],select:[_v,"itemStyle"]},pf={normal:["label"],emphasis:[Ir,"label"],blur:[yv,"label"],select:[_v,"label"]},sR=["x","y"],lR="e\0\0",Nt={normal:{},emphasis:{},blur:{},select:{}},Oy={cartesian2d:VO,geo:FO,single:GO,polar:UO,calendar:WO};function Rl(e){return e instanceof pe}function Ph(e){return e instanceof ra}function uR(e,t){t.copyTransform(e),Ph(t)&&Ph(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,Rl(t)&&Rl(e)&&t.setShape(e.shape))}var cR=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this._progressiveEls=null;var o=this._data,s=r.getData(),l=this.group,u=Ry(r,s,n,a);o||l.removeAll(),s.diff(o).add(function(f){gf(a,null,f,u(f,i),r,l,s)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&mv(d,Pr(d).option,r)}).update(function(f,d){var h=o.getItemGraphicEl(d);gf(a,h,f,u(f,i),r,l,s)}).execute();var c=r.get("clip",!0)?Rb(r.coordinateSystem,!1,r):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(r,n,a){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(r,n,a,i,o){var s=n.getData(),l=Ry(n,s,a,i),u=this._progressiveEls=[];function c(h){h.isGroup||(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}for(var f=r.start;f<r.end;f++){var d=gf(null,null,f,l(f,o),n,this.group,s);d&&(d.traverse(c),u.push(d))}},t.prototype.eachRendered=function(r){ii(this._progressiveEls||this.group,r)},t.prototype.filterForExposedEvent=function(r,n,a,i){var o=n.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},t.type="custom",t}(qt);const fR=cR;function wv(e){var t=e.type,r;if(t==="path"){var n=e.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=aS(n);r=fu(i,null,a,n.layout||"center"),Pr(r).customPathData=i}else if(t==="image")r=new gn({}),Pr(r).customImagePath=e.style.image;else if(t==="text")r=new He({});else if(t==="group")r=new Ie;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=M1(t);if(!o){var s="";process.env.NODE_ENV!=="production"&&(s='graphic type "'+t+'" can not be found.'),it(s)}r=new o}return Pr(r).customGraphicType=t,r.name=e.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function bv(e,t,r,n,a,i,o){oR(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=sR);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;W(u,"textFill")&&(u.fill=u.textFill),W(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=Rl(t)?l.decal:null;e&&f&&(f.dirty=!0,c=Ml(f,e)),l.__decalPattern=c}if(Ph(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}jO(t,n,i,{dataIndex:r,isInit:o,clearStyle:!0}),tS(t,n.keyframeAnimation,i)}function rS(e,t,r,n,a){var i=t.isGroup?null:t,o=a&&a[e].cfg;if(i){var s=i.ensureState(e);if(n===!1){var l=i.getState(e);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),i1(i)}}function hR(e,t,r){if(!e.isGroup){var n=e,a=r.currentZ,i=r.currentZLevel;n.z=a,n.zlevel=i;var o=t.z2;o!=null&&(n.z2=o||0);for(var s=0;s<vn.length;s++)dR(n,t,vn[s])}}function dR(e,t,r){var n=r===nn,a=n?t:Bl(t,r),i=a?a.z2:null,o;i!=null&&(o=n?e:e.ensureState(r),o.z2=i||0)}function Ry(e,t,r,n){var a=e.get("renderItem"),i=e.coordinateSystem,o={};i&&(process.env.NODE_ENV!=="production"&&(ee(a,"series.render is required."),ee(i.prepareCustoms||Oy[i.type],"This coordSys does not support custom series.")),o=i.prepareCustoms?i.prepareCustoms(i):Oy[i.type](i));for(var s=he({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:S,style:C,ordinalRawValue:x,styleEmphasis:T,visual:N,barLayout:A,currentSeriesIndices:M,font:I},o.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:vR(e.getData())},u,c,f={},d={},h={},p={},m=0;m<vn.length;m++){var g=vn[m];h[g]=e.getModel(vf[g]),p[g]=e.getModel(pf[g])}function y(P){return P===u?c||(c=t.getItemModel(P)):t.getItemModel(P)}function w(P,L){return t.hasItemOption?P===u?f[L]||(f[L]=y(P).getModel(vf[L])):y(P).getModel(vf[L]):h[L]}function _(P,L){return t.hasItemOption?P===u?d[L]||(d[L]=y(P).getModel(pf[L])):y(P).getModel(pf[L]):p[L]}return function(P,L){return u=P,c=null,f={},d={},a&&a(he({dataIndexInside:P,dataIndex:t.getRawIndex(P),actionType:L?L.type:null},l),s)};function S(P,L){return L==null&&(L=u),t.getStore().get(t.getDimensionIndex(P||0),L)}function x(P,L){L==null&&(L=u),P=P||0;var E=t.getDimensionInfo(P);if(!E){var B=t.getDimensionIndex(P);return B>=0?t.getStore().get(B,L):void 0}var R=t.get(E.name,L),V=E&&E.ordinalMeta;return V?V.categories[R]:R}function C(P,L){process.env.NODE_ENV!=="production"&&ky("api.style","Please write literal style directly instead."),L==null&&(L=u);var E=t.getItemVisual(L,"style"),B=E&&E.fill,R=E&&E.opacity,V=w(L,nn).getItemStyle();B!=null&&(V.fill=B),R!=null&&(V.opacity=R);var z={inheritColor:j(B)?B:"#000"},Y=_(L,nn),Z=Xt(Y,null,z,!1,!0);Z.text=Y.getShallow("show")?ne(e.getFormattedLabel(L,nn),Do(t,L)):null;var F=wl(Y,z,!1);return D(P,V),V=Ay(V,Z,F),P&&b(V,P),V.legacy=!0,V}function T(P,L){process.env.NODE_ENV!=="production"&&ky("api.styleEmphasis","Please write literal style directly instead."),L==null&&(L=u);var E=w(L,Ir).getItemStyle(),B=_(L,Ir),R=Xt(B,null,null,!0,!0);R.text=B.getShallow("show")?sn(e.getFormattedLabel(L,Ir),e.getFormattedLabel(L,nn),Do(t,L)):null;var V=wl(B,null,!0);return D(P,E),E=Ay(E,R,V),P&&b(E,P),E.legacy=!0,E}function b(P,L){for(var E in L)W(L,E)&&(P[E]=L[E])}function D(P,L){P&&(P.textFill&&(L.textFill=P.textFill),P.textPosition&&(L.textPosition=P.textPosition))}function N(P,L){if(L==null&&(L=u),W(Ty,P)){var E=t.getItemVisual(L,"style");return E?E[Ty[P]]:null}if(W(LO,P))return t.getItemVisual(L,P)}function A(P){if(i.type==="cartesian2d"){var L=i.getBaseAxis();return GP(he({axis:L},P))}}function M(){return r.getCurrentSeriesIndices()}function I(P){return B1(P,r)}}function vR(e){var t={};return k(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var a=n.coordDim,i=t[a]=t[a]||[];i[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function gf(e,t,r,n,a,i,o){if(!n){i.remove(t);return}var s=Sv(e,t,r,n,a,i);return s&&o.setItemGraphicEl(r,s),s&&Kn(s,n.focus,n.blurScope,n.emphasisDisabled),s}function Sv(e,t,r,n,a,i){process.env.NODE_ENV!=="production"&&ee(n,"should not have an null/undefined element setting");var o=-1,s=t;t&&nS(t,n,a)&&(o=ce(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=wv(n),s&&uR(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Nt.normal.cfg=Nt.normal.conOpt=Nt.emphasis.cfg=Nt.emphasis.conOpt=Nt.blur.cfg=Nt.blur.conOpt=Nt.select.cfg=Nt.select.conOpt=null,Nt.isLegacy=!1,gR(u,r,n,a,l,Nt),pR(u,r,n,a,l),bv(e,u,r,n,Nt,a,l),W(n,"info")&&(Pr(u).info=n.info);for(var c=0;c<vn.length;c++){var f=vn[c];if(f!==nn){var d=Bl(n,f),h=Cv(n,d,f);rS(f,u,d,h,Nt)}}return hR(u,n,a),n.type==="group"&&mR(e,u,r,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function nS(e,t,r){var n=Pr(e),a=t.type,i=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&bR(i)&&aS(i)!==n.customPathData||a==="image"&&W(o,"image")&&o.image!==n.customImagePath}function pR(e,t,r,n,a){var i=r.clipPath;if(i===!1)e&&e.getClipPath()&&e.removeClipPath();else if(i){var o=e.getClipPath();o&&nS(o,i,n)&&(o=null),o||(o=wv(i),process.env.NODE_ENV!=="production"&&ee(Rl(o),"Only any type of `path` can be used in `clipPath`, rather than "+o.type+"."),e.setClipPath(o)),bv(null,o,t,i,null,n,a)}}function gR(e,t,r,n,a,i){if(!e.isGroup){By(r,null,i),By(r,Ir,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=wv(o),e.setTextContent(c)),bv(null,c,t,o,null,n,a);for(var f=o&&o.style,d=0;d<vn.length;d++){var h=vn[d];if(h!==nn){var p=i[h].conOpt;rS(h,c,p,Cv(o,p,h),null)}}f?c.dirty():c.markRedraw()}}}}function By(e,t,r){var n=t?Bl(e,t):e,a=t?Cv(e,n,Ir):e.style,i=e.type,o=n?n.textConfig:null,s=e.textContent,l=s?t?Bl(s,t):s:null;if(a&&(r.isLegacy||YO(a,i,!!o,!!l))){r.isLegacy=!0;var u=qO(a,i,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text"),process.env.NODE_ENV!=="production"&&ee(c.type==="text",'textContent.type must be "text"')}var f=t?r[t]:r.normal;f.cfg=o,f.conOpt=l}function Bl(e,t){return t?e?e[t]:null:e}function Cv(e,t,r){var n=t&&t.style;return n==null&&r===Ir&&e&&(n=e.styleEmphasis),n}function mR(e,t,r,n,a){var i=n.children,o=i?i.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){_R({api:e,oldChildren:t.children()||[],newChildren:i||[],dataIndex:r,seriesModel:a,group:t});return}u&&t.removeAll();for(var c=0;c<o;c++){var f=i[c],d=t.childAt(c);f?(f.ignore==null&&(f.ignore=!1),Sv(e,d,r,f,a,t)):(process.env.NODE_ENV!=="production"&&ee(d,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),d.ignore=!0)}for(var h=t.childCount()-1;h>=c;h--){var p=t.childAt(h);yR(t,p,a)}}}function yR(e,t,r){t&&mv(t,Pr(e).option,r)}function _R(e){new Qw(e.oldChildren,e.newChildren,Vy,Vy,e).add($y).update($y).remove(wR).execute()}function Vy(e,t){var r=e&&e.name;return r??lR+t}function $y(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,a=t!=null?r.oldChildren[t]:null;Sv(r.api,a,r.dataIndex,n,r.seriesModel,r.group)}function wR(e){var t=this.context,r=t.oldChildren[e];r&&mv(r,Pr(r).option,t.seriesModel)}function aS(e){return e&&(e.pathData||e.d)}function bR(e){return e&&(W(e,"pathData")||W(e,"d"))}function SR(e){e.registerChartView(fR),e.registerSeriesModel(RO)}var Fn=Ne(),Fy=ue,mf=Q,CR=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,a){var i=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Ie,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=be(zy,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}Hy(s,r,!0),this._renderHandle(i)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),a=t.axis,i=a.type==="category",o=r.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=pv(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,a,i){},e.prototype.createPointerEl=function(t,r,n,a){var i=r.pointer;if(i){var o=Fn(t).pointerEl=new XM[i.type](Fy(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,a){if(r.label){var i=Fn(t).labelEl=new He(Fy(r.label));t.add(i),Gy(i,a)}},e.prototype.updatePointerEl=function(t,r,n){var a=Fn(t).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),n(a,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,a){var i=Fn(t).labelEl;i&&(i.setStyle(r.label.style),n(i,{x:r.label.x,y:r.label.y}),Gy(i,a))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=r.getModel("handle"),o=r.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Rd(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Xa(u.event)},onmousedown:mf(this._onHandleDragMove,this,0,0),drift:mf(this._onHandleDragMove,this),ondragend:mf(this._onHandleDragEnd,this)}),n.add(a)),Hy(a,r,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");U(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Tu(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){zy(this._axisPointerModel,!r&&this._moveAnimation,this._handle,yf(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(yf(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(yf(a)),Fn(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,a=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),a&&r.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),xl(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function zy(e,t,r,n){iS(Fn(r).lastProp,n)||(Fn(r).lastProp=n,t?tt(r,n,e):(r.stopAnimation(),r.attr(n)))}function iS(e,t){if(K(e)&&K(t)){var r=!0;return k(t,function(n,a){r=r&&iS(e[a],n)}),!!r}else return e===t}function Gy(e,t){e[t.get(["label","show"])?"show":"hide"]()}function yf(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Hy(e,t,r){var n=t.get("z"),a=t.get("zlevel");e&&e.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=r)})}const xR=CR;function TR(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function NR(e,t,r,n,a){var i=r.get("value"),o=oS(i,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=bu(s.get("padding")||0),u=s.getFont(),c=yd(o,u),f=a.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=a.align;p==="right"&&(f[0]-=d),p==="center"&&(f[0]-=d/2);var m=a.verticalAlign;m==="bottom"&&(f[1]-=h),m==="middle"&&(f[1]-=h/2),DR(f,d,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:Xt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function DR(e,t,r,n){var a=n.getWidth(),i=n.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+r,i)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function oS(e,t,r,n,a){e=t.scale.parse(e);var i=t.scale.getLabel({value:e},{precision:a.precision}),o=a.formatter;if(o){var s={value:fv(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};k(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),j(o)?i=o.replace("{value}",i):ie(o)&&(i=o(s))}return i}function sS(e,t,r){var n=Ba();return vd(n,n,r.rotation),Ff(n,n,r.position),wo([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function AR(e,t,r,n,a,i){var o=Yb.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),NR(t,n,a,i,{position:sS(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function MR(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function kR(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var ER=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=Uy(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=TR(i),h=PR[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=Ah(l.model,a);AR(n,r,p,a,i,o)},t.prototype.getHandleTransform=function(r,n,a){var i=Ah(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=sS(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Uy(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:h,tooltipOption:p[c]}},t}(xR);function Uy(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var PR={line:function(e,t,r){var n=MR([t,r[0]],[t,r[1]],Wy(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),a=r[1]-r[0];return{type:"Rect",shape:kR([t-n/2,r[0]],[n,a],Wy(e))}}};function Wy(e){return e.dim==="x"?0:1}const IR=ER;var LR=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Se);const OR=LR;var Ar=Ne(),RR=k;function lS(e,t,r){if(!re.node){var n=t.getZr();Ar(n).records||(Ar(n).records={}),BR(n,t);var a=Ar(n).records[e]||(Ar(n).records[e]={});a.handler=r}}function BR(e,t){if(Ar(e).initialized)return;Ar(e).initialized=!0,r("click",be(Yy,"click")),r("mousemove",be(Yy,"mousemove")),r("globalout",$R);function r(n,a){e.on(n,function(i){var o=FR(t);RR(Ar(e).records,function(s){s&&a(s,i,o.dispatchAction)}),VR(o.pendings,t)})}}function VR(e,t){var r=e.showTip.length,n=e.hideTip.length,a;r?a=e.showTip[r-1]:n&&(a=e.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function $R(e,t,r){e.handler("leave",null,r)}function Yy(e,t,r,n){t.handler(e,r,n)}function FR(e){var t={showTip:[],hideTip:[]},r=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function Ih(e,t){if(!re.node){var r=t.getZr(),n=(Ar(r).records||{})[e];n&&(Ar(r).records[e]=null)}}var zR=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=n.getComponent("tooltip"),o=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";lS("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){Ih("axisPointer",n)},t.prototype.dispose=function(r,n){Ih("axisPointer",n)},t.type="axisPointer",t}(Zt);const GR=zR;function uS(e,t){var r=[],n=e.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=Xn(i,e);if(o==null||o<0||U(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,p=i.mapDimension(d),m=[];m[h]=i.get(p,o),m[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(m)||[]}else r=l.dataToPoint(i.getValues(q(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var qy=Ne();function HR(e,t,r){var n=e.currTrigger,a=[e.x,e.y],i=e,o=e.dispatchAction||Q(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Xs(a)&&(a=uS({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=Xs(a),u=i.axesInfo,c=s.axesInfo,f=n==="leave"||Xs(a),d={},h={},p={list:[],map:{}},m={showPointer:be(WR,h),showTooltip:be(YR,p)};k(s.coordSysMap,function(y,w){var _=l||y.containPoint(a);k(s.coordSysAxesInfo[w],function(S,x){var C=S.axis,T=ZR(u,S);if(!f&&_&&(!u||T)){var b=T&&T.value;b==null&&!l&&(b=C.pointToData(a)),b!=null&&jy(S,b,m,!1,d)}})});var g={};return k(c,function(y,w){var _=y.linkGroup;_&&!h[w]&&k(_.axesInfo,function(S,x){var C=h[x];if(S!==y&&C){var T=C.value;_.mapper&&(T=y.axis.scale.parse(_.mapper(T,Xy(S),Xy(y)))),g[y.key]=T}})}),k(g,function(y,w){jy(c[w],y,m,!0,d)}),qR(h,c,d),jR(p,a,e,o),XR(c,o,r),d}}function jy(e,t,r,n,a){var i=e.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=UR(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&G(a,s[0]),!n&&e.snap&&i.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function UR(e,t){var r=t.axis,n=r.dim,a=e,i=[],o=Number.MAX_VALUE,s=-1;return k(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,r);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var p=e-f,m=Math.abs(p);m<=o&&((m<o||p>=0&&s<0)&&(o=m,s=p,a=f,i.length=0),k(d,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function WR(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function YR(e,t,r,n){var a=r.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=Ao(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function qR(e,t,r){var n=r.axesInfo=[];k(t,function(a,i){var o=a.axisPointerModel.option,s=e[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function jR(e,t,r,n){if(Xs(t)||!e.list.length){n({type:"hideTip"});return}var a=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:e.list})}function XR(e,t,r){var n=r.getZr(),a="axisPointerLastHighlights",i=qy(n)[a]||{},o=qy(n)[a]={};k(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&k(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];k(i,function(u,c){!o[c]&&l.push(u)}),k(o,function(u,c){!i[c]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function ZR(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Xy(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function Xs(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function cS(e){qb.registerAxisPointerClass("CartesianAxisPointer",IR),e.registerComponentModel(OR),e.registerComponentView(GR),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!U(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=uO(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},HR)}function KR(e){gr(CO),gr(cS)}var Zy=["x","y","radius","angle","single"],JR=["cartesian2d","polar","singleAxis"];function QR(e){var t=e.get("coordinateSystem");return ce(JR,t)>=0}function an(e){return process.env.NODE_ENV!=="production"&&ee(e),e+"Axis"}function eB(e,t){var r=ae(),n=[],a=ae();e.eachComponent({mainType:"dataZoom",query:t},function(c){a.get(c.uid)||s(c)});var i;do i=!1,e.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,h){var p=r.get(d);p&&p[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(r.get(f)||r.set(f,[]))[d]=!0})}return n}function fS(e){var t=e.ecModel,r={infoList:[],infoMap:ae()};return e.eachTargetAxis(function(n,a){var i=t.getComponent(an(n),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(i)}}}),r}var _f=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),Vl=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,a){var i=Ky(r);this.settledOption=i,this.mergeDefaultAndTheme(r,a),this._doInit(i)},t.prototype.mergeOption=function(r){var n=Ky(r);ve(this.option,r,!0),ve(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var a=this.settledOption;k([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=ae(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return k(Zy,function(a){var i=this.getReferringComponents(an(a),RD);if(i.specified){n=!0;var o=new _f;k(i.models,function(s){o.add(s.componentIndex)}),r.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new _f;if(d.add(f.componentIndex),r.set(c,d),i=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",dt).models[0];h&&k(u,function(p){f.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",dt).models[0]&&d.add(p.componentIndex)})}}}i&&k(Zy,function(u){if(i){var c=a.findComponents({mainType:an(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new _f;f.add(c[0].componentIndex),r.set(u,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,a=this.get("rangeMode");k([["start","startValue"],["end","endValue"]],function(i,o){var s=r[i[0]]!=null,l=r[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,a){r==null&&(r=this.ecModel.getComponent(an(n),a))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(a,i){k(a.indexList,function(o){r.call(n,i,o)})})},t.prototype.getAxisProxy=function(r,n){var a=this.getAxisModel(r,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){process.env.NODE_ENV!=="production"&&ee(r&&n!=null);var a=this._targetAxisInfoMap.get(r);if(a&&a.indexMap[n])return this.ecModel.getComponent(an(r),n)},t.prototype.setRawRange=function(r){var n=this.option,a=this.settledOption;k([["start","startValue"],["end","endValue"]],function(i){(r[i[0]]!=null||r[i[1]]!=null)&&(n[i[0]]=a[i[0]]=r[i[0]],n[i[1]]=a[i[1]]=r[i[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;k(["start","startValue","end","endValue"],function(a){n[a]=r[a]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return process.env.NODE_ENV!=="production"&&ee(this._orient),this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(Se);function Ky(e){var t={};return k(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var tB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this.dataZoomModel=r,this.ecModel=n,this.api=a},t.type="dataZoom",t}(Zt);const hS=tB;var ka=k,Jy=Wi,rB=function(){function e(t,r,n,a){this._dimName=t,this._axisIndex=r,this.ecModel=a,this._dataZoomModel=n}return e.prototype.hostedBy=function(t){return this._dataZoomModel===t},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(r){if(QR(r)){var n=an(this._dimName),a=r.getReferringComponents(n,dt).models[0];a&&this._axisIndex===a.componentIndex&&t.push(r)}},this),t},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return ue(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var r=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;ka(["start","end"],function(d,h){var p=t[d],m=t[d+"Value"];i[h]==="percent"?(p==null&&(p=o[h]),m=a.parse(We(p,o,r))):(u=!0,m=m==null?r[h]:a.parse(m),p=We(m,r,o)),l[h]=m==null||isNaN(m)?r[h]:m,s[h]=p==null||isNaN(p)?o[h]:p}),Jy(l),Jy(s);var c=this._minMaxSpan;u?f(l,s,r,o,!1):f(s,l,o,r,!0);function f(d,h,p,m,g){var y=g?"Span":"ValueSpan";Lu(0,d,p,"all",c["min"+y],c["max"+y]);for(var w=0;w<2;w++)h[w]=We(d[w],p,m,!0),g&&(h[w]=a.parse(h[w]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=nB(this,this._dimName,r),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(t,r){if(t!==this._dataZoomModel)return;var n=this._dimName,a=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;ka(a,function(l){var u=l.getData(),c=u.mapDimensionsAll(n);if(c.length){if(i==="weakFilter"){var f=u.getStore(),d=q(c,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var p,m,g,y=0;y<c.length;y++){var w=f.get(d[y],h),_=!isNaN(w),S=w<o[0],x=w>o[1];if(_&&!S&&!x)return!0;_&&(g=!0),S&&(p=!0),x&&(m=!0)}return g&&p&&m})}else ka(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(m){return s(m)?m:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});ka(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;ka(["min","max"],function(a){var i=r.get(a+"Span"),o=r.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=We(n[0]+o,n,[0,100],!0):i!=null&&(o=We(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var a=E_(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;r[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),r[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},e}();function nB(e,t,r){var n=[1/0,-1/0];ka(r,function(o){pI(n,o.getData(),t)});var a=e.getAxisModel(),i=_b(a.axis.scale,a,n).calculate();return[i.min,i.max]}var aB={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=e.getComponent(an(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var r=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new rB(a,i,s,e),r.push(o.__dzAxisProxy))});var n=ae();return k(r,function(a){k(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).reset(r)}),r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();r.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const iB=aB;function oB(e){e.registerAction("dataZoom",function(t,r){var n=eB(r,t);k(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Qy=!1;function dS(e){Qy||(Qy=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,iB),oB(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function sB(e,t){var r=bu(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new ke({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var lB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Se);const uB=lB;function vS(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function pS(e){if(re.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var gS=pS(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),cB=pS(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function mS(e,t){if(!e)return t;t=K1(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function fB(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?t?r[t]:r:null}var hB=mS(cB,"transition"),xv=mS(gS,"transform"),dB="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(re.transform3dSupported?"will-change:transform;":"");function vB(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function pB(e,t,r){if(!j(r)||r==="inside")return"";var n=e.get("backgroundColor"),a=e.get("borderWidth");t=Jn(t);var i=vB(r),o=Math.max(Math.round(a)*1.5,6),s="",l=xv+":",u;ce(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+a,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*a)/2+Math.SQRT2*a-(d-f)/2)*100)/100;s+=";"+i+":-"+h+"px";var p=t+" solid "+a+"px;",m=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+n+";"];return'<div style="'+m.join("")+'"></div>'}function gB(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,a="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,a+=re.transformSupported?","+xv+n:",left"+n+",top"+n),hB+":"+a}function e0(e,t,r){var n=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!re.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=re.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return r?"top:0;left:0;"+xv+":"+o+";":[["top",0],["left",0],[gS,o]]}function mB(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var a=e.get("textShadowColor"),i=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),k(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function yB(e,t,r){var n=[],a=e.get("transitionDuration"),i=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=Sw(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&a&&n.push(gB(a,r)),i&&n.push("background-color:"+i),k(["width","color","radius"],function(h){var p="border-"+h,m=K1(p),g=e.get(m);g!=null&&n.push(p+":"+g+(h==="color"?"":"px"))}),n.push(mB(c)),f!=null&&n.push("padding:"+bu(f).join("px ")+"px"),n.join(";")+";"}function t0(e,t,r,n,a){var i=t&&t.painter;if(r){var o=i&&i.getViewportRoot();o&&oN(e,o,r,n,a)}else{e[0]=n,e[1]=a;var s=i&&i.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var _B=function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,re.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=r.appendTo,o=i&&(j(i)?document.querySelector(i):qa(i)?i:ie(i)&&i(t.getDom()));t0(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();At(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=fB(r,"position"),a=r.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=dB+yB(t,!this._firstShow,this._longHide)+e0(i[0],i[1],!0)+("border-color:"+Jn(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(j(i)&&n.get("trigger")==="item"&&!vS(n)&&(s=pB(n,a,i)),j(t))o.innerHTML=t+s;else if(t){o.innerHTML="",U(t)||(t=[t]);for(var l=0;l<t.length;l++)qa(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},e.prototype.moveTo=function(t,r){var n=this._styleCoord;if(t0(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var a=this.el.style,i=e0(n[0],n[1]);k(i,function(o){a[o[0]]=o[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",re.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Q(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},e}();const wB=_B;var bB=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),n0(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,a,i){var o=this;K(t)&&it(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new He({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Sw(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),k(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),k(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=r0(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var a=this._styleCoord;n0(a,this._zr,t,r),t=a[0],r=a[1];var i=n.style,o=Kr(i.borderWidth||0),s=r0(i);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Q(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Kr(e){return Math.max(0,e)}function r0(e){var t=Kr(e.shadowBlur||0),r=Kr(e.shadowOffsetX||0),n=Kr(e.shadowOffsetY||0);return{left:Kr(t-r),right:Kr(t+r),top:Kr(t-n),bottom:Kr(t+n)}}function n0(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var SB=new ke({shape:{x:-1,y:-1,width:2,height:2}}),CB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(re.node||!n.getDom())){var a=r.getComponent("tooltip"),i=this._renderMode=VD(a.get("renderMode"));this._tooltipContent=i==="richText"?new bB(n):new wB(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},t.prototype.render=function(r,n,a){if(!(re.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(r),i.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Tu(this,"_updatePosition",50,"fixRate"):xl(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");lS("itemTooltip",this._api,Q(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,a=this._api,i=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(r,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,a,i){if(!(i.from===this.uid||re.node||!a.getDom())){var o=a0(i,a);this._ticket="";var s=i.dataByCoordSys,l=DB(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=SB;c.x=i.x,c.y=i.y,c.update(),de(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,a,i))return;var f=uS(i,n),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(a0(i,a))},t.prototype._manuallyAxisShowTip=function(r,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=Ri([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(r,n){var a=r.target,i=this._tooltipModel;if(i){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(a){var s=de(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Xi(a,function(c){if(de(c).dataIndex!=null)return l=c,!0;if(de(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var a=r.get("showDelay");n=Q(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Ri([n.tooltipOption],i),l=this._renderMode,u=[],c=ea("section",{blocks:[],noHeader:!0}),f=[],d=new Vc;k(r,function(w){k(w.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!S||x==null)){var C=oS(x,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=ea("section",{header:C,noHeader:!fr(C),sortBlocks:!0,blocks:[]});c.blocks.push(T),k(_.seriesDataIndices,function(b){var D=a.getSeriesByIndex(b.seriesIndex),N=b.dataIndexInside,A=D.getDataParams(N);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=fv(S.axis,{value:x}),A.axisValueLabel=C,A.marker=d.makeTooltipMarker("item",Jn(A.color),l);var M=Yg(D.formatTooltip(N,!0,null)),I=M.frag;if(I){var P=Ri([D],i).get("valueFormatter");T.blocks.push(P?G({valueFormatter:P},I):I)}M.text&&f.push(M.text),u.push(A)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,p=s.get("order"),m=Kg(c,d,l,p,a.get("useUTC"),s.get("textStyle"));m&&f.unshift(m);var g=l==="richText"?`
41
+ `];function ea(e,t){return t.type=e,t}function hh(e){return e.type==="section"}function _w(e){return hh(e)?DE:AE}function ww(e){if(hh(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return k(e.blocks,function(a){var i=ww(a);i>=t&&(t=i+ +(n&&(!i||hh(a)&&!a.noHeader)))}),t}return 0}function DE(e,t,r,n){var a=t.noHeader,i=ME(ww(t)),o=[],s=t.blocks||[];ee(!s||U(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(W(u,l)){var c=new fE(u[l],null);s.sort(function(p,m){return c.evaluate(p.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}k(s,function(p,m){var g=t.valueFormatter,y=_w(p)(g?G(G({},e),{valueFormatter:g}):e,p,m>0?i.html:0,n);y!=null&&o.push(y)});var f=e.renderMode==="richText"?o.join(i.richText):dh(o.join(""),a?r:i.html);if(a)return f;var d=lh(t.header,"ordinal",e.useUTC),h=yw(n,e.renderMode).nameStyle;return e.renderMode==="richText"?bw(e,d,h)+i.richText+f:dh('<div style="'+h+";"+mw+';">'+Pt(d)+"</div>"+f,r)}function AE(e,t,r,n){var a=e.renderMode,i=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(S){return S=U(S)?S:[S],q(S,function(x,C){return lh(x,U(h)?h[C]:h,u)})};if(!(i&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),d=i?"":lh(l,"ordinal",u),h=t.valueType,p=o?[]:c(t.value,t.dataIndex),m=!s||!i,g=!s&&i,y=yw(n,a),w=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":f)+(i?"":bw(e,d,w))+(o?"":PE(e,p,m,g,_)):dh((s?"":f)+(i?"":kE(d,!s,w))+(o?"":EE(p,m,g,_)),r)}}function Kg(e,t,r,n,a,i){if(e){var o=_w(e),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function ME(e){return{html:TE[e],richText:NE[e]}}function dh(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+mw+';">'+e+r+"</div>"}function kE(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Pt(e)+"</span>"}function EE(e,t,r,n){var a=r?"10px":"20px",i=t?"float:right;margin-left:"+a:"";return e=U(e)?e:[e],'<span style="'+i+";"+n+'">'+q(e,function(o){return Pt(o)}).join("&nbsp;&nbsp;")+"</span>"}function bw(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function PE(e,t,r,n,a){var i=[a],o=n?10:20;return r&&i.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(U(t)?t.join(" "):t,i)}function IE(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Jn(n)}function Sw(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Vc=function(){function e(){this.richTextStyles={},this._nextStyleNameId=O_()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var a=n==="richText"?this._generateStyleName():null,i=_k({color:r,type:t,renderMode:n,markerId:a});return j(i)?i:(process.env.NODE_ENV!=="production"&&ee(a),this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};U(r)?k(r,function(i){return G(n,i)}):G(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},e}();function LE(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(r),l=U(s),u=IE(t,r),c,f,d,h;if(o>1||l&&!o){var p=OE(s,t,r,i,u);c=p.inlineValues,f=p.inlineValueTypes,d=p.blocks,h=p.inlineValues[0]}else if(o){var m=a.getDimensionInfo(i[0]);h=c=Qa(a,r,i[0]),f=m.type}else h=c=l?s[0]:s;var g=bd(t),y=g&&t.name||"",w=a.getName(r),_=n?y:w;return ea("section",{header:y,noHeader:n||!g,sortParam:h,blocks:[ea("nameValue",{markerType:"item",markerColor:u,name:_,noName:!fr(_),value:c,valueType:f,dataIndex:r})].concat(d||[])})}function OE(e,t,r,n,a){var i=t.getData(),o=Lr(e,function(f,d,h){var p=i.getDimensionInfo(h);return f=f||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];n.length?k(n,function(f){c(Qa(i,r,f),f)}):k(e,c);function c(f,d){var h=i.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(ea("nameValue",{markerType:"subItem",markerColor:a,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ur=Ne();function ds(e,t){return e.getName(t)||e.getId(t)}var RE="__universalTransitionEnabled",xu=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=lo({count:VE,reset:$E}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var i=Ur(this).sourceManager=new xE(this);i.prepareSource();var o=this.getInitialData(r,a);Qg(o,this),this.dataTask.context.data=o,process.env.NODE_ENV!=="production"&&ee(o,"getInitialData returned invalid data."),Ur(this).dataBeforeProcessed=o,Jg(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=bo(this),i=a?Bo(r):{},o=this.subType;Se.hasClass(o)&&(o+="Series"),ve(r,n.getTheme().get(this.subType)),ve(r,this.getDefaultOption()),cl(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&Ja(r,i,a)},t.prototype.mergeOption=function(r,n){r=ve(this.option,r,!0),this.fillDataTextStyle(r.data);var a=bo(this);a&&Ja(this.option,r,a);var i=Ur(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);Qg(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Ur(this).dataBeforeProcessed=o,Jg(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!lt(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&cl(r[a],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=vh(this);if(n){var a=n.context.data;return r==null?a:a.getLinkedData(r)}else return Ur(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=vh(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}Ur(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return ae(r)},t.prototype.getSourceManager=function(){return Ur(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Ur(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,a){return LE({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(re.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,a){var i=this.ecModel,o=Wd.prototype.getColorFromPalette.call(this,r,n,a);return o||(o=i.getColorFromPalette(r,n,a)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var a=this.option.selectedMap;if(a){var i=this.option.selectedMode,o=this.getData(n);if(i==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=ds(o,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var a=[],i=0;i<r.length;i++)a[0]=r[i],this.isSelected(r[i],n)?this.unselect(a,n):this.select(a,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=_e(r),a=[],i=0;i<n.length;i++){var o=r[n[i]];o>=0&&a.push(o)}return a},t.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var i=this.getData(n);return(a==="all"||a[ds(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[RE])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var a,i,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){K(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=n[c],d=ds(r,f);u[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(f)}}else if(s==="single"||s===!0){var h=n[l-1],d=ds(r,h);o.selectedMap=(a={},a[d]=!0,a),this._selectedDataIndicesMap=(i={},i[d]=r.getRawIndex(h),i)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(a){var i=r.getRawDataItem(a);i&&i.selected&&n.push(a)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return Se.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(Se);Jt(xu,dw);Jt(xu,Wd);z_(xu,Se);function Jg(e){var t=e.name;bd(e)||(e.name=BE(e)||t)}function BE(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return k(r,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function VE(e){return e.model.getRawData().count()}function $E(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),FE}function FE(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Qg(e,t){k(JT(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,be(zE,t))})}function zE(e,t){var r=vh(e);return r&&r.setOutputEnd((t||this).count()),t}function vh(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var a=n.agentStubMap;a&&(n=a.get(e.uid))}return n}}const Rr=xu;var Jd=function(){function e(){this.group=new Ie,this.uid=vu("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){},e.prototype.updateLayout=function(t,r,n,a){},e.prototype.updateVisual=function(t,r,n,a){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();Cd(Jd);iu(Jd);const Zt=Jd;function Qd(){var e=Ne();return function(t){var r=e(t),n=t.pipelineContext,a=!!r.large,i=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(a!==o||i!==s)&&"reset"}}var Cw=Ne(),GE=Qd(),ev=function(){function e(){this.group=new Ie,this.uid=vu("viewChart"),this.renderTask=lo({plan:HE,reset:UE}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,a){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},e.prototype.highlight=function(t,r,n,a){var i=t.getData(a&&a.dataType);if(!i){process.env.NODE_ENV!=="production"&&et("Unknown dataType "+a.dataType);return}tm(i,a,"emphasis")},e.prototype.downplay=function(t,r,n,a){var i=t.getData(a&&a.dataType);if(!i){process.env.NODE_ENV!=="production"&&et("Unknown dataType "+a.dataType);return}tm(i,a,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateLayout=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.updateVisual=function(t,r,n,a){this.render(t,r,n,a)},e.prototype.eachRendered=function(t){ii(this.group,t)},e.markUpdateMethod=function(t,r){Cw(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function em(e,t,r){e&&Ka(e)&&(t==="emphasis"?go:mo)(e,r)}function tm(e,t,r){var n=Xn(e,t),a=t&&t.highlightKey!=null?rM(t.highlightKey):null;n!=null?k(Ge(n),function(i){em(e.getItemGraphicEl(i),r,a)}):e.eachItemGraphicEl(function(i){em(i,r,a)})}Cd(ev,["dispose"]);iu(ev);function HE(e){return GE(e.model)}function UE(e){var t=e.model,r=e.ecModel,n=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&Cw(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,a),WE[l]}var WE={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)}}};const qt=ev;var Sl="\0__throttleOriginMethod",rm="\0__throttleRate",nm="\0__throttleType";function tv(e,t,r){var n,a=0,i=0,o=null,s,l,u,c;t=t||0;function f(){i=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var h=[],p=0;p<arguments.length;p++)h[p]=arguments[p];n=new Date().getTime(),l=this,u=h;var m=c||t,g=c||r;c=null,s=n-(g?a:i)-m,clearTimeout(o),g?o=setTimeout(f,m):s>=0?f():o=setTimeout(f,-s),a=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function Tu(e,t,r,n){var a=e[t];if(a){var i=a[Sl]||a,o=a[nm],s=a[rm];if(s!==r||o!==n){if(r==null||!n)return e[t]=i;a=e[t]=tv(i,r,n==="debounce"),a[Sl]=i,a[nm]=n,a[rm]=r}return a}}function Cl(e,t){var r=e[t];r&&r[Sl]&&(r.clear&&r.clear(),e[t]=r[Sl])}var am=Ne(),im={itemStyle:po($1,!0),lineStyle:po(V1,!0)},YE={lineStyle:"stroke",itemStyle:"fill"};function xw(e,t){var r=e.visualStyleMapper||im[t];return r||(console.warn("Unknown style type '"+t+"'."),im.itemStyle)}function Tw(e,t){var r=e.visualDrawType||YE[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var qE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=e.getModel(n),i=xw(e,n),o=i(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Tw(e,n),u=o[l],c=ie(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ie(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||ie(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,p){var m=e.getDataParams(p),g=G({},o);g[l]=c(m),h.setItemVisual(p,"style",g)}}}},ki=new Qe,jE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=xw(e,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){ki.option=l[n];var u=a(ki),c=o.ensureUniqueItemVisual(s,"style");G(c,u),ki.option.decal&&(o.setItemVisual(s,"decal",ki.option.decal),ki.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},XE={performRawSeries:!0,overallReset:function(e){var t=ae();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var a=r.type+"-"+n,i=t.get(a);i||(i={},t.set(a,i)),am(r).scope=i}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),a={},i=r.getData(),o=am(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Tw(r,s);i.each(function(u){var c=i.getRawIndex(u);a[c]=u}),n.each(function(u){var c=a[u],f=i.getItemVisual(c,"colorFromPalette");if(f){var d=i.ensureUniqueItemVisual(c,"style"),h=n.getName(u)||u+"",p=n.count();d[l]=r.getColorFromPalette(h,o,p)}})}})}},vs=Math.PI;function ZE(e,t){t=t||{},he(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new Ie,n=new ke({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var a=new He({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),i=new ke({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(i);var o;return t.showSpinner&&(o=new Pd({shape:{startAngle:-vs/2,endAngle:-vs/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:vs*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:vs*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=a.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),i.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var Nw=function(){function e(t,r,n,a){this._stageTaskMap=ae(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),a=this._visualHandlers=a.slice(),this._allHandlers=n.concat(a)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var a=n.overallTask;a&&a.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),a=n.context,i=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=i?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),a=t.getData(),i=a.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&i>=n.threshold,s=t.get("large")&&i>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?i:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=ae();t.eachSeries(function(a){var i=a.getProgressive(),o=a.uid;n.set(o,{id:o,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:i&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),r._pipe(a,a.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;k(this._allHandlers,function(a){var i=t.get(a.uid)||t.set(a.uid,{}),o="";process.env.NODE_ENV!=="production"&&(o='"reset" and "overallReset" must not be both specified.'),ee(!(a.reset&&a.overallReset),o),a.reset&&this._createSeriesStageTask(a,i,r,n),a.overallReset&&this._createOverallStageTask(a,i,r,n)},this)},e.prototype.prepareView=function(t,r,n,a){var i=t.renderTask,o=i.context;o.model=r,o.ecModel=n,o.api=a,i.__block=!t.incrementalPrepareRender,this._pipe(r,i)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,a){a=a||{};var i=!1,o=this;k(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,p=d.agentStubMap;p.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,n);var m=o.getPerformArgs(d,a.block);p.each(function(g){g.perform(m)}),d.perform(m)&&(i=!0)}else f&&f.each(function(g,y){s(a,g)&&g.dirty();var w=o.getPerformArgs(g,a.block);w.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(w)&&(i=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=i||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,a){var i=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ae(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,a).each(c);function c(f){var d=f.uid,h=s.set(d,o&&o.get(d)||lo({plan:t5,reset:r5,count:a5}));h.context={model:f,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,r,n,a){var i=this,o=r.overallTask=r.overallTask||lo({reset:KE});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=ae(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";process.env.NODE_ENV!=="production"&&(h='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),ee(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,p):c?c(n,a).each(p):(f=!1,k(n.getSeries(),p));function p(m){var g=m.uid,y=l.set(g,s&&s.get(g)||(d=!0,lo({reset:JE,onDirty:e5})));y.context={model:m,overallProgress:f},y.agent=o,y.__block=f,i._pipe(m,y)}d&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},e.wrapStageHandler=function(t,r){return ie(t)&&(t={overallReset:t,seriesType:i5(t)}),t.uid=vu("stageHandler"),r&&(t.visualType=r),t},e}();function KE(e){e.overallReset(e.ecModel,e.api,e.payload)}function JE(e){return e.overallProgress&&QE}function QE(){this.agent.dirty(),this.getDownstream().dirty()}function e5(){this.agent&&this.agent.dirty()}function t5(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function r5(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Ge(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?q(t,function(r,n){return Dw(n)}):n5}var n5=Dw(0);function Dw(e){return function(t,r){var n=r.data,a=r.resetDefines[e];if(a&&a.dataEach)for(var i=t.start;i<t.end;i++)a.dataEach(n,i);else a&&a.progress&&a.progress(t,n)}}function a5(e){return e.data.count()}function i5(e){xl=null;try{e(Co,Aw)}catch{}return xl}var Co={},Aw={},xl;Mw(Co,Yd);Mw(Aw,aw);Co.eachSeriesByType=Co.eachRawSeriesByType=function(e){xl=e};Co.eachComponent=function(e){e.mainType==="series"&&e.subType&&(xl=e.subType)};function Mw(e,t){for(var r in t.prototype)e[r]=ot}var om=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const o5={color:om,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],om]};var rt="#B9B8CE",sm="#100C2A",ps=function(){return{axisLine:{lineStyle:{color:rt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},lm=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],kw={darkMode:!0,color:lm,backgroundColor:sm,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:rt}},textStyle:{color:rt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:rt}},dataZoom:{borderColor:"#71708A",textStyle:{color:rt},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:rt}},timeline:{lineStyle:{color:rt},label:{color:rt},controlStyle:{color:rt,borderColor:rt}},calendar:{itemStyle:{color:sm},dayLabel:{color:rt},monthLabel:{color:rt},yearLabel:{color:rt}},timeAxis:ps(),logAxis:ps(),valueAxis:ps(),categoryAxis:ps(),line:{symbol:"circle"},graph:{color:lm},gauge:{title:{color:rt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:rt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};kw.categoryAxis.splitLine.show=!1;const s5=kw;var l5=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},a={};if(j(t)){var i=dr(t);r.mainType=i.main||null,r.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};k(t,function(l,u){for(var c=!1,f=0;f<o.length;f++){var d=o[f],h=u.lastIndexOf(d);if(h>0&&h===u.length-d.length){var p=u.slice(0,h);p!=="data"&&(r.mainType=p,r[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(a[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:a}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var a=n.targetEl,i=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,i,"name")&&c(u,i,"dataIndex")&&c(u,i,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,a,i));function c(f,d,h,p){return f[h]==null||d[p||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),ph=["symbol","symbolSize","symbolRotate","symbolOffset"],um=ph.concat(["symbolKeepAspect"]),u5={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},a={},i=!1,o=0;o<ph.length;o++){var s=ph[o],l=e.get(s);ie(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(G({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=_e(a);function c(f,d){for(var h=e.getRawValue(d),p=e.getDataParams(d),m=0;m<u.length;m++){var g=u[m];f.setItemVisual(d,g,a[g](h,p))}}return{dataEach:i?c:null}}},c5={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(a,i){for(var o=a.getItemModel(i),s=0;s<um.length;s++){var l=um[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function f5(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+r)}}function Ew(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+t)}}function h5(e,t){function r(n,a){var i=[];return n.eachComponent({mainType:"series",subType:e,query:a},function(o){i.push(o.seriesIndex)}),i}k([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(a,i,o){a=G({},a),process.env.NODE_ENV!=="production"&&ze(a.type,n[1]),o.dispatchAction(G(a,{type:n[1],seriesIndex:r(i,a)}))})})}function ba(e,t,r,n,a){var i=e+t;r.isSilent(i)||(process.env.NODE_ENV!=="production"&&jt("event "+i+" is deprecated."),n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=a.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),d=Xn(f,a.fromActionPayload);r.trigger(i,{type:i,seriesId:o.id,name:U(d)?f.getName(d[0]):f.getName(d),selected:j(l)?l:G({},l)})}}))}function d5(e,t,r){e.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(ba("map","selectchanged",t,a,n),ba("pie","selectchanged",t,a,n)):n.fromAction==="select"?(ba("map","selected",t,a,n),ba("pie","selected",t,a,n)):n.fromAction==="unselect"&&(ba("map","unselected",t,a,n),ba("pie","unselected",t,a,n))})}function Xi(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var v5=Math.round(Math.random()*9),p5=typeof Object.defineProperty=="function",g5=function(){function e(){this._id="__ec_inner_"+v5++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return p5?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}(),m5=pe.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,i=t.height/2;e.moveTo(r,n-i),e.lineTo(r+a,n+i),e.lineTo(r-a,n+i),e.closePath()}}),y5=pe.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,a=t.width/2,i=t.height/2;e.moveTo(r,n-i),e.lineTo(r+a,n),e.lineTo(r,n+i),e.lineTo(r-a,n),e.closePath()}}),_5=pe.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,a=t.width/5*3,i=Math.max(a,t.height),o=a/2,s=o*o/(i-o),l=n-i+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),d=Math.cos(u),h=o*.6,p=o*.7;e.moveTo(r-c,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+c-f*h,l+s+d*h,r,n-p,r,n),e.bezierCurveTo(r,n-p,r-c+f*h,l+s+d*h,r-c,l+s),e.closePath()}}),w5=pe.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,a=t.x,i=t.y,o=n/3*2;e.moveTo(a,i),e.lineTo(a+o,i+r),e.lineTo(a,i+r/4*3),e.lineTo(a-o,i+r),e.lineTo(a,i),e.closePath()}}),b5={line:dn,rect:ke,roundRect:ke,square:ke,circle:Md,diamond:y5,pin:_5,arrow:w5,triangle:m5},S5={line:function(e,t,r,n,a){a.x1=e,a.y1=t+n/2,a.x2=e+r,a.y2=t+n/2},rect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n},roundRect:function(e,t,r,n,a){a.x=e,a.y=t,a.width=r,a.height=n,a.r=Math.min(r,n)/4},square:function(e,t,r,n,a){var i=Math.min(r,n);a.x=e,a.y=t,a.width=i,a.height=i},circle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.r=Math.min(r,n)/2},diamond:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n},pin:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},arrow:function(e,t,r,n,a){a.x=e+r/2,a.y=t+n/2,a.width=r,a.height=n},triangle:function(e,t,r,n,a){a.cx=e+r/2,a.cy=t+n/2,a.width=r,a.height=n}},Tl={};k(b5,function(e,t){Tl[t]=new e});var C5=pe.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=ol(e,t,r),a=this.shape;return a&&a.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var a=Tl[n];a||(n="rect",a=Tl[n]),S5[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,r)}}});function x5(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function Br(e,t,r,n,a,i,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=k1(e.slice(8),new ye(t,r,n,a),o?"center":"cover"):e.indexOf("path://")===0?l=fu(e.slice(7),{},new ye(t,r,n,a),o?"center":"cover"):l=new C5({shape:{symbolType:e,x:t,y:r,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=x5,i&&l.setColor(i),l}function rv(e){return U(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Nu(e,t){if(e!=null)return U(e)||(e=[e,e]),[Ce(e[0],t[0])||0,Ce(ne(e[1],e[0]),t[1])||0]}function Gn(e){return isFinite(e)}function T5(e,t,r){var n=t.x==null?0:t.x,a=t.x2==null?1:t.x2,i=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,a=a*r.width+r.x,i=i*r.height+r.y,o=o*r.height+r.y),n=Gn(n)?n:0,a=Gn(a)?a:1,i=Gn(i)?i:0,o=Gn(o)?o:0;var s=e.createLinearGradient(n,i,a,o);return s}function N5(e,t,r){var n=r.width,a=r.height,i=Math.min(n,a),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*a+r.y,l=l*i),o=Gn(o)?o:.5,s=Gn(s)?s:.5,l=l>=0&&Gn(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function gh(e,t,r){for(var n=t.type==="radial"?N5(e,t,r):T5(e,t,r),a=t.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function D5(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function gs(e){return parseInt(e,10)}function ms(e,t,r){var n=["width","height"][t],a=["clientWidth","clientHeight"][t],i=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[a]||gs(s[n])||gs(e.style[n]))-(gs(s[i])||0)-(gs(s[o])||0)|0}function A5(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:xe(e)?[e]:U(e)?e:null}function Pw(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&A5(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(r=q(r,function(i){return i/a}),n/=a)}return[r,n]}var M5=new Zn(!0);function Nl(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function cm(e){return typeof e=="string"&&e!=="none"}function Dl(e){var t=e.fill;return t!=null&&t!=="none"}function fm(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function hm(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function mh(e,t,r){var n=G_(t.image,t.__image,r);if(ou(n)){var a=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var i=new DOMMatrix;i.translateSelf(t.x||0,t.y||0),i.rotateSelf(0,0,(t.rotation||0)*QT),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function k5(e,t,r,n){var a,i=Nl(r),o=Dl(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||M5,f=t.__dirty;if(!n){var d=r.fill,h=r.stroke,p=o&&!!d.colorStops,m=i&&!!h.colorStops,g=o&&!!d.image,y=i&&!!h.image,w=void 0,_=void 0,S=void 0,x=void 0,C=void 0;(p||m)&&(C=t.getBoundingRect()),p&&(w=f?gh(e,d,C):t.__canvasFillGradient,t.__canvasFillGradient=w),m&&(_=f?gh(e,h,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=f||!t.__canvasFillPattern?mh(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(x=f||!t.__canvasStrokePattern?mh(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),p?e.fillStyle=w:g&&(S?e.fillStyle=S:o=!1),m?e.strokeStyle=_:y&&(x?e.strokeStyle=x:i=!1)}var T=t.getGlobalScale();c.setScale(T[0],T[1],t.segmentIgnoreThreshold);var b,D;e.setLineDash&&r.lineDash&&(a=Pw(t),b=a[0],D=a[1]);var N=!0;(u||f&Aa)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),N=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),N&&c.rebuildPath(e,l?s:1),b&&(e.setLineDash(b),e.lineDashOffset=D),n||(r.strokeFirst?(i&&hm(e,r),o&&fm(e,r)):(o&&fm(e,r),i&&hm(e,r))),b&&e.setLineDash([])}function E5(e,t,r){var n=t.__image=G_(r.image,t.__image,t,t.onload);if(!(!n||!ou(n))){var a=r.x||0,i=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,a,i,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,d=s-c;e.drawImage(n,u,c,f,d,a,i,o,s)}else e.drawImage(n,a,i,o,s)}}function P5(e,t,r){var n,a=r.text;if(a!=null&&(a+=""),a){e.font=r.font||jn,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var i=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=Pw(t),i=n[0],o=n[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),r.strokeFirst?(Nl(r)&&e.strokeText(a,r.x,r.y),Dl(r)&&e.fillText(a,r.x,r.y)):(Dl(r)&&e.fillText(a,r.x,r.y),Nl(r)&&e.strokeText(a,r.x,r.y)),i&&e.setLineDash([])}}var dm=["shadowBlur","shadowOffsetX","shadowOffsetY"],vm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Iw(e,t,r,n,a){var i=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){ht(e,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Un.opacity:o}(n||t.blend!==r.blend)&&(i||(ht(e,a),i=!0),e.globalCompositeOperation=t.blend||Un.blend);for(var s=0;s<dm.length;s++){var l=dm[s];(n||t[l]!==r[l])&&(i||(ht(e,a),i=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(i||(ht(e,a),i=!0),e.shadowColor=t.shadowColor||Un.shadowColor),i}function pm(e,t,r,n,a){var i=xo(t,a.inHover),o=n?null:r&&xo(r,a.inHover)||{};if(i===o)return!1;var s=Iw(e,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(ht(e,a),s=!0),cm(i.fill)&&(e.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(ht(e,a),s=!0),cm(i.stroke)&&(e.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(ht(e,a),s=!0),e.globalAlpha=i.opacity==null?1:i.opacity),t.hasStroke()){var l=i.lineWidth,u=l/(i.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(ht(e,a),s=!0),e.lineWidth=u)}for(var c=0;c<vm.length;c++){var f=vm[c],d=f[0];(n||i[d]!==o[d])&&(s||(ht(e,a),s=!0),e[d]=i[d]||f[1])}return s}function I5(e,t,r,n,a){return Iw(e,xo(t,a.inHover),r&&xo(r,a.inHover),n,a)}function Lw(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function L5(e,t,r){for(var n=!1,a=0;a<e.length;a++){var i=e[a];n=n||i.isZeroArea(),Lw(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}r.allClipped=n}function O5(e,t){return e&&t?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&&!t)}var gm=1,mm=2,ym=3,_m=4;function R5(e){var t=Dl(e),r=Nl(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function ht(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function xo(e,t){return t&&e.__hoverStyle||e.style}function Ow(e,t){Hn(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Hn(e,t,r,n){var a=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~_t,t.__isRendered=!1;return}var i=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||D5(i,o))&&(o&&o.length&&(ht(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(ht(e,r),e.save(),L5(i,e,r),s=!0),r.prevElClipPaths=i),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var c=t instanceof pe&&t.autoBatch&&R5(t.style);s||O5(a,u.transform)?(ht(e,r),Lw(e,t)):c||ht(e,r);var f=xo(t,r.inHover);t instanceof pe?(r.lastDrawType!==gm&&(l=!0,r.lastDrawType=gm),pm(e,t,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&e.beginPath(),k5(e,t,f,c),c&&(r.batchFill=f.fill||"",r.batchStroke=f.stroke||"")):t instanceof rh?(r.lastDrawType!==ym&&(l=!0,r.lastDrawType=ym),pm(e,t,u,l,r),P5(e,t,f)):t instanceof gn?(r.lastDrawType!==mm&&(l=!0,r.lastDrawType=mm),I5(e,t,u,l,r),E5(e,t,f)):t.getTemporalDisplayables&&(r.lastDrawType!==_m&&(l=!0,r.lastDrawType=_m),B5(e,t,r)),c&&n&&ht(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function B5(e,t,r){var n=t.getDisplayables(),a=t.getTemporalDisplayables();e.save();var i={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Hn(e,l,i,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}for(var u=0,c=a.length;u<c;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Hn(e,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var $c=new g5,wm=new Lo(100),bm=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Al(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";e.dirty&&$c.delete(e);var i=$c.get(e);if(i)return i;var o=he(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 l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=a?1:1/r,$c.set(e,s),e.dirty=!1,s;function l(u){for(var c=[r],f=!0,d=0;d<bm.length;++d){var h=o[bm[d]];if(h!=null&&!U(h)&&!j(h)&&!xe(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var p;if(f){p=c.join(",")+(a?"-svg":"");var m=wm.get(p);m&&(a?u.svgElement=m:u.image=m)}var g=Bw(o.dashArrayX),y=V5(o.dashArrayY),w=Rw(o.symbol),_=$5(g),S=Vw(y),x=!a&&ti.createCanvas(),C=a&&{tag:"g",attrs:{},key:"dcl",children:[]},T=D(),b;x&&(x.width=T.width*r,x.height=T.height*r,b=x.getContext("2d")),N(),f&&wm.put(p,x||C),u.image=x,u.svgElement=C,u.svgWidth=T.width,u.svgHeight=T.height;function D(){for(var A=1,M=0,I=_.length;M<I;++M)A=Ip(A,_[M]);for(var P=1,M=0,I=w.length;M<I;++M)P=Ip(P,w[M].length);A*=P;var L=S*_.length*w.length;if(process.env.NODE_ENV!=="production"){var E=function(B){console.warn("Calculated decal size is greater than "+B+" due to decal option settings so "+B+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+B+" to be larger to avoid incontinuity.")};A>o.maxTileWidth&&E("maxTileWidth"),L>o.maxTileHeight&&E("maxTileHeight")}return{width:Math.max(1,Math.min(A,o.maxTileWidth)),height:Math.max(1,Math.min(L,o.maxTileHeight))}}function N(){b&&(b.clearRect(0,0,x.width,x.height),o.backgroundColor&&(b.fillStyle=o.backgroundColor,b.fillRect(0,0,x.width,x.height)));for(var A=0,M=0;M<y.length;++M)A+=y[M];if(A<=0)return;for(var I=-S,P=0,L=0,E=0;I<T.height;){if(P%2===0){for(var B=L/2%w.length,R=0,V=0,z=0;R<T.width*2;){for(var Y=0,M=0;M<g[E].length;++M)Y+=g[E][M];if(Y<=0)break;if(V%2===0){var Z=(1-o.symbolSize)*.5,F=R+g[E][V]*Z,J=I+y[P]*Z,Te=g[E][V]*o.symbolSize,fe=y[P]*o.symbolSize,Ve=z/2%w[B].length;je(F,J,Te,fe,w[B][Ve])}R+=g[E][V],++z,++V,V===g[E].length&&(V=0)}++E,E===g.length&&(E=0)}I+=y[P],++L,++P,P===y.length&&(P=0)}function je(Be,Me,te,le,gt){var Le=a?1:r,zt=Br(gt,Be*Le,Me*Le,te*Le,le*Le,o.color,o.symbolKeepAspect);if(a){var St=n.painter.renderOneToVNode(zt);St&&C.children.push(St)}else Ow(b,zt)}}}}function Rw(e){if(!e||e.length===0)return[["rect"]];if(j(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!j(e[r])){t=!1;break}if(t)return Rw([e]);for(var n=[],r=0;r<e.length;++r)j(e[r])?n.push([e[r]]):n.push(e[r]);return n}function Bw(e){if(!e||e.length===0)return[[0,0]];if(xe(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!xe(e[n])){r=!1;break}if(r)return Bw([e]);for(var a=[],n=0;n<e.length;++n)if(xe(e[n])){var t=Math.ceil(e[n]);a.push([t,t])}else{var t=q(e[n],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function V5(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(xe(e)){var t=Math.ceil(e);return[t,t]}var r=q(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function $5(e){return q(e,function(t){return Vw(t)})}function Vw(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function F5(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Al(s,t)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=Al(a,t)}}})}var Wt=new Qt,Ml={};function z5(e,t){process.env.NODE_ENV!=="production"&&Ml[e]&&et("Already has an implementation of "+e+"."),Ml[e]=t}function G5(e){return process.env.NODE_ENV!=="production"&&(Ml[e]||et("Implementation of "+e+" doesn't exists.")),Ml[e]}var H5=1,U5=800,W5=900,Y5=1e3,q5=2e3,j5=5e3,$w=1e3,X5=1100,nv=2e3,Fw=3e3,Z5=4e3,Du=4500,K5=4600,J5=5e3,Q5=6e3,zw=7e3,eP={PROCESSOR:{FILTER:Y5,SERIES_FILTER:U5,STATISTIC:j5},VISUAL:{LAYOUT:$w,PROGRESSIVE_LAYOUT:X5,GLOBAL:nv,CHART:Fw,POST_CHART_LAYOUT:K5,COMPONENT:Z5,BRUSH:J5,CHART_ITEM:Du,ARIA:Q5,DECAL:zw}},Ze="__flagInMainProcess",ft="__pendingUpdate",Fc="__needsUpdateStatus",Sm=/^[a-zA-Z0-9_]+$/,zc="__connectUpdateStatus",Cm=0,tP=1,rP=2;function Gw(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){mt(this.id);return}return Uw(this,e,t)}}function Hw(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Uw(this,e,t)}}function Uw(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Qt.prototype[t].apply(e,r)}var Ww=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Qt),Yw=Ww.prototype;Yw.on=Hw("on");Yw.off=Hw("off");var Sa,Gc,ys,Wr,Hc,Uc,Wc,Ei,Pi,xm,Tm,Yc,Nm,_s,Dm,qw,xt,Am,jw=function(e){H(t,e);function t(r,n,a){var i=e.call(this,new l5)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},j(n)&&(n=Xw[n]),i._dom=r;var o="canvas",s="auto",l=!1;if(process.env.NODE_ENV!=="production"){var u=re.hasGlobalWindow?window:global;u&&(o=ne(u.__ECHARTS__DEFAULT__RENDERER__,o),s=ne(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=ne(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l))}a.ssr;var c=i._zr=Ep(r,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:ne(a.useDirtyRect,l),useCoarsePointer:ne(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=tv(Q(c.flush,c),17),n=ue(n),n&&ow(n,!0),i._theme=n,i._locale=hk(a.locale||F1),i._coordSysMgr=new qd;var f=i._api=Dm(i);function d(h,p){return h.__prio-p.__prio}return Vs(El,d),Vs(yh,d),i._scheduler=new Nw(i,f,yh,El),i._messageCenter=new Ww,i._initEvents(),i.resize=Q(i.resize,i),c.animation.on("frame",i._onframe,i),xm(c,i),Tm(c,i),Lf(i),i}return t.prototype._onframe=function(){if(!this._disposed){Am(this);var r=this._scheduler;if(this[ft]){var n=this[ft].silent;this[Ze]=!0;try{Sa(this),Wr.update.call(this,null,this[ft].updateParams)}catch(l){throw this[Ze]=!1,this[ft]=null,l}this._zr.flush(),this[Ze]=!1,this[ft]=null,Ei.call(this,n),Pi.call(this,n)}else if(r.unfinished){var a=H5,i=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(i),r.performDataProcessorTasks(i),Uc(this,i),r.performVisualTasks(i),_s(this,this._model,o,"remain",{}),a-=+new Date-s}while(a>0&&r.unfinished);r.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(r,n,a){if(this[Ze]){process.env.NODE_ENV!=="production"&&et("`setOption` should not be called during main process.");return}if(this._disposed){mt(this.id);return}var i,o,s;if(K(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ze]=!0,!this._model||n){var l=new qk(this._api),u=this._theme,c=this._model=new Yd;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},_h);var f={seriesTransition:s,optionChanged:!0};if(a)this[ft]={silent:i,updateParams:f},this[Ze]=!1,this.getZr().wakeUp();else{try{Sa(this),Wr.update.call(this,null,f)}catch(d){throw this[ft]=null,this[Ze]=!1,d}this._ssr||this._zr.flush(),this[ft]=null,this[Ze]=!1,Ei.call(this,i),Pi.call(this,i)}},t.prototype.setTheme=function(){jt("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},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||re.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return process.env.NODE_ENV!=="production"&&ze("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;if(process.env.NODE_ENV!=="production"&&n.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(re.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return k(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){mt(this.id);return}r=r||{};var n=r.excludeComponents,a=this._model,i=[],o=this;k(n,function(l){a.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(i.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return k(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){mt(this.id);return}var n=r.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(Mm[a]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();k(co,function(_,S){if(_.group===a){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(ue(r)),C=_.getDom().getBoundingClientRect();l=i(C.left,l),u=i(C.top,u),c=o(C.right,c),f=o(C.bottom,f),d.push({dom:x,left:C.left,top:C.top})}}),l*=h,u*=h,c*=h,f*=h;var p=c-l,m=f-u,g=ti.createCanvas(),y=Ep(g,{renderer:n?"svg":"canvas"});if(y.resize({width:p,height:m}),n){var w="";return k(d,function(_){var S=_.left-l,x=_.top-u;w+='<g transform="translate('+S+","+x+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=w,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new ke({shape:{x:0,y:0,width:p,height:m},style:{fill:r.connectedBackgroundColor}})),k(d,function(_){var S=new gn({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return Hc(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Hc(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){mt(this.id);return}var a=this._model,i,o=fc(a,r);return k(o,function(s,l){l.indexOf("Models")>=0&&k(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)i=i||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint?i=i||f.containPoint(n,u):process.env.NODE_ENV!=="production"&&Fe(l+": "+(f?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&Fe(l+": containPoint is not supported")},this)},this),!!i},t.prototype.getVisual=function(r,n){var a=this._model,i=fc(a,r,{defaultMainType:"series"}),o=i.seriesModel;process.env.NODE_ENV!=="production"&&(o||Fe("There is no specified series model"));var s=o.getData(),l=i.hasOwnProperty("dataIndexInside")?i.dataIndexInside:i.hasOwnProperty("dataIndex")?s.indexOfRawIndex(i.dataIndex):null;return l!=null?f5(s,l,n):Ew(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;k(nP,function(n){var a=function(i){var o=r.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&Xi(s,function(p){var m=de(p);if(m&&m.dataIndex!=null){var g=m.dataModel||o.getSeriesByIndex(m.seriesIndex);return l=g&&g.getDataParams(m.dataIndex,m.dataType,s)||{},!0}else if(m.eventData)return l=G({},m.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),h=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];process.env.NODE_ENV!=="production"&&!u&&!(d&&h)&&Fe("model or view can not be found by params"),l.event=i,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},r.trigger(n,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)}),k(uo,function(n,a){r._messageCenter.on(a,function(i){this.trigger(a,i)},r)}),k(["selectchanged"],function(n){r._messageCenter.on(n,function(a){this.trigger(n,a)},r)}),d5(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){mt(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){mt(this.id);return}this._disposed=!0;var r=this.getDom();r&&$_(this.getDom(),iv,"");var n=this,a=n._api,i=n._model;k(n._componentsViews,function(o){o.dispose(i,a)}),k(n._chartsViews,function(o){o.dispose(i,a)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete co[n.id]},t.prototype.resize=function(r){if(this[Ze]){process.env.NODE_ENV!=="production"&&et("`resize` should not be called during main process.");return}if(this._disposed){mt(this.id);return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),i=r&&r.silent;this[ft]&&(i==null&&(i=this[ft].silent),a=!0,this[ft]=null),this[Ze]=!0;try{a&&Sa(this),Wr.update.call(this,{type:"resize",animation:G({duration:0},r&&r.animation)})}catch(o){throw this[Ze]=!1,o}this[Ze]=!1,Ei.call(this,i),Pi.call(this,i)}},t.prototype.showLoading=function(r,n){if(this._disposed){mt(this.id);return}if(K(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!wh[r]){process.env.NODE_ENV!=="production"&&Fe("Loading effects "+r+" not exists.");return}var a=wh[r](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)},t.prototype.hideLoading=function(){if(this._disposed){mt(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=G({},r);return n.type=uo[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){mt(this.id);return}if(K(n)||(n={silent:!!n}),!!kl[r.type]&&this._model){if(this[Ze]){this._pendingActions.push(r);return}var a=n.silent;Wc.call(this,r,a);var i=n.flush;i?this._zr.flush():i!==!1&&re.browser.weChat&&this._throttledZrFlush(),Ei.call(this,a),Pi.call(this,a)}},t.prototype.updateLabelLayout=function(){Wt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){mt(this.id);return}var n=r.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);process.env.NODE_ENV!=="production"&&ee(r.data&&i),i.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Sa=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),Gc(f,!0),Gc(f,!1),d.plan()},Gc=function(f,d){for(var h=f._model,p=f._scheduler,m=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,y=f._zr,w=f._api,_=0;_<m.length;_++)m[_].__alive=!1;d?h.eachComponent(function(C,T){C!=="series"&&S(T)}):h.eachSeries(S);function S(C){var T=C.__requireNewView;C.__requireNewView=!1;var b="_ec_"+C.id+"_"+C.type,D=!T&&g[b];if(!D){var N=dr(C.type),A=d?Zt.getClass(N.main,N.sub):qt.getClass(N.sub);process.env.NODE_ENV!=="production"&&ee(A,N.sub+" does not exist."),D=new A,D.init(h,w),g[b]=D,m.push(D),y.add(D.group)}C.__viewId=D.__id=b,D.__alive=!0,D.__model=C,D.group.__ecComponentInfo={mainType:C.mainType,index:C.componentIndex},!d&&p.prepareView(D,C,h,w)}for(var _=0;_<m.length;){var x=m[_];x.__alive?_++:(!d&&x.renderTask.dispose(),y.remove(x.group),x.dispose(h,w),m.splice(_,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},ys=function(f,d,h,p,m){var g=f._model;if(g.setUpdatePayload(h),!p){k([].concat(f._componentsViews).concat(f._chartsViews),x);return}var y={};y[p+"Id"]=h[p+"Id"],y[p+"Index"]=h[p+"Index"],y[p+"Name"]=h[p+"Name"];var w={mainType:p,query:y};m&&(w.subType=m);var _=h.excludeSeriesId,S;_!=null&&(S=ae(),k(Ge(_),function(C){var T=vr(C,null);T!=null&&S.set(T,!0)})),g&&g.eachComponent(w,function(C){var T=S&&S.get(C.id)!=null;if(!T)if(ug(h))if(C instanceof Rr)h.type===Wn&&!h.notBlur&&!C.get(["emphasis","disabled"])&&jA(C,h,f._api);else{var b=Ad(C.mainType,C.componentIndex,h.name,f._api),D=b.focusSelf,N=b.dispatchers;h.type===Wn&&D&&!h.notBlur&&ah(C.mainType,C.componentIndex,f._api),N&&k(N,function(A){h.type===Wn?go(A):mo(A)})}else ih(h)&&C instanceof Rr&&(KA(C,h,f._api),sg(C),xt(f))},f),g&&g.eachComponent(w,function(C){var T=S&&S.get(C.id)!=null;T||x(f[p==="series"?"_chartsMap":"_componentsMap"][C.__viewId])},f);function x(C){C&&C.__alive&&C[d]&&C[d](C.__model,g,f._api,h)}},Wr={prepareAndUpdate:function(f){Sa(this),Wr.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var h=this._model,p=this._api,m=this._zr,g=this._coordSysMgr,y=this._scheduler;if(h){h.setUpdatePayload(f),y.restoreData(h,f),y.performSeriesTasks(h),g.create(h,p),y.performDataProcessorTasks(h,f),Uc(this,h),g.update(h,p),r(h),y.performVisualTasks(h,f),Yc(this,h,p,f,d);var w=h.get("backgroundColor")||"transparent",_=h.get("darkMode");m.setBackgroundColor(w),_!=null&&_!=="auto"&&m.setDarkMode(_),Wt.trigger("afterupdate",h,p)}},updateTransform:function(f){var d=this,h=this._model,p=this._api;if(h){h.setUpdatePayload(f);var m=[];h.eachComponent(function(y,w){if(y!=="series"){var _=d.getViewOfComponentModel(w);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(w,h,p,f);S&&S.update&&m.push(_)}else m.push(_)}});var g=ae();h.eachSeries(function(y){var w=d._chartsMap[y.__viewId];if(w.updateTransform){var _=w.updateTransform(y,h,p,f);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),r(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:g}),_s(this,h,p,f,{},g),Wt.trigger("afterupdate",h,p)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),qt.markUpdateMethod(f,"updateView"),r(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),Yc(this,d,this._api,f,{}),Wt.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(p){p.getData().clearAllVisual()}),qt.markUpdateMethod(f,"updateVisual"),r(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(p,m){if(p!=="series"){var g=d.getViewOfComponentModel(m);g&&g.__alive&&g.updateVisual(m,h,d._api,f)}}),h.eachSeries(function(p){var m=d._chartsMap[p.__viewId];m.updateVisual(p,h,d._api,f)}),Wt.trigger("afterupdate",h,this._api))},updateLayout:function(f){Wr.update.call(this,f)}},Hc=function(f,d,h,p){if(f._disposed){mt(f.id);return}for(var m=f._model,g=f._coordSysMgr.getCoordinateSystems(),y,w=fc(m,h),_=0;_<g.length;_++){var S=g[_];if(S[d]&&(y=S[d](m,w,p))!=null)return y}process.env.NODE_ENV!=="production"&&Fe("No coordinate system that supports "+d+" found by the given finder.")},Uc=function(f,d){var h=f._chartsMap,p=f._scheduler;d.eachSeries(function(m){p.updateStreamModes(m,h[m.__viewId])})},Wc=function(f,d){var h=this,p=this.getModel(),m=f.type,g=f.escapeConnect,y=kl[m],w=y.actionInfo,_=(w.update||"update").split(":"),S=_.pop(),x=_[0]!=null&&dr(_[0]);this[Ze]=!0;var C=[f],T=!1;f.batch&&(T=!0,C=q(f.batch,function(P){return P=he(G({},P),f),P.batch=null,P}));var b=[],D,N=ih(f),A=ug(f);if(A&&c1(this._api),k(C,function(P){if(D=y.action(P,h._model,h._api),D=D||G({},P),D.type=w.event||D.type,b.push(D),A){var L=Sd(f),E=L.queryOptionMap,B=L.mainTypeSpecified,R=B?E.keys()[0]:"series";ys(h,S,P,R),xt(h)}else N?(ys(h,S,P,"series"),xt(h)):x&&ys(h,S,P,x.main,x.sub)}),S!=="none"&&!A&&!N&&!x)try{this[ft]?(Sa(this),Wr.update.call(this,f),this[ft]=null):Wr[S].call(this,f)}catch(P){throw this[Ze]=!1,P}if(T?D={type:w.event||m,escapeConnect:g,batch:b}:D=b[0],this[Ze]=!1,!d){var M=this._messageCenter;if(M.trigger(D.type,D),N){var I={type:"selectchanged",escapeConnect:g,selected:JA(p),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};M.trigger(I.type,I)}}},Ei=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();Wc.call(this,h,f)}},Pi=function(f){!f&&this.trigger("updated")},xm=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[ft]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},Tm=function(f,d){f.on("mouseover",function(h){var p=h.target,m=Xi(p,Ka);m&&(XA(m,h,d._api),xt(d))}).on("mouseout",function(h){var p=h.target,m=Xi(p,Ka);m&&(ZA(m,h,d._api),xt(d))}).on("click",function(h){var p=h.target,m=Xi(p,function(w){return de(w).dataIndex!=null},!0);if(m){var g=m.selected?"unselect":"select",y=de(m);d._api.dispatchAction({type:g,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function r(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function n(f){var d=[],h=[],p=!1;if(f.eachComponent(function(w,_){var S=_.get("zlevel")||0,x=_.get("z")||0,C=_.getZLevelKey();p=p||!!C,(w==="series"?h:d).push({zlevel:S,z:x,idx:_.componentIndex,type:w,key:C})}),p){var m=d.concat(h),g,y;Vs(m,function(w,_){return w.zlevel===_.zlevel?w.z-_.z:w.zlevel-_.zlevel}),k(m,function(w){var _=f.getComponent(w.type,w.idx),S=w.zlevel,x=w.key;g!=null&&(S=Math.max(g,S)),x?(S===g&&x!==y&&S++,y=x):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}Yc=function(f,d,h,p,m){n(d),Nm(f,d,h,p,m),k(f._chartsViews,function(g){g.__alive=!1}),_s(f,d,h,p,m),k(f._chartsViews,function(g){g.__alive||g.remove(d,h)})},Nm=function(f,d,h,p,m,g){k(g||f._componentsViews,function(y){var w=y.__model;u(w,y),y.render(w,d,h,p),s(w,y),c(w,y)})},_s=function(f,d,h,p,m,g){var y=f._scheduler;m=G(m||{},{updatedSeries:d.getSeries()}),Wt.trigger("series:beforeupdate",d,h,m);var w=!1;d.eachSeries(function(_){var S=f._chartsMap[_.__viewId];S.__alive=!0;var x=S.renderTask;y.updatePayload(x,p),u(_,S),g&&g.get(_.uid)&&x.dirty(),x.perform(y.getPerformArgs(x))&&(w=!0),S.group.silent=!!_.get("silent"),o(_,S),sg(_)}),y.unfinished=w||y.unfinished,Wt.trigger("series:layoutlabels",d,h,m),Wt.trigger("series:transition",d,h,m),d.eachSeries(function(_){var S=f._chartsMap[_.__viewId];s(_,S),c(_,S)}),i(f,d),Wt.trigger("series:afterupdate",d,h,m)},xt=function(f){f[Fc]=!0,f.getZr().wakeUp()},Am=function(f){f[Fc]&&(f.getZr().storage.traverse(function(d){io(d)||a(d)}),f[Fc]=!1)};function a(f){for(var d=[],h=f.currentStates,p=0;p<h.length;p++){var m=h[p];m==="emphasis"||m==="blur"||m==="select"||d.push(m)}f.selected&&f.states.select&&d.push("select"),f.hoverState===uu&&f.states.emphasis?d.push("emphasis"):f.hoverState===lu&&f.states.blur&&d.push("blur"),f.useStates(d)}function i(f,d){var h=f._zr,p=h.storage,m=0;p.traverse(function(g){g.isGroup||m++}),m>d.get("hoverLayerThreshold")&&!re.node&&!re.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=f._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(w){w.states.emphasis&&(w.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(p){p.isGroup||(p.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,p=f.get("zlevel")||0;d.eachRendered(function(m){return l(m,h,p,-1/0),!0})}}function l(f,d,h,p){var m=f.getTextContent(),g=f.getTextGuideLine(),y=f.isGroup;if(y)for(var w=f.childrenRef(),_=0;_<w.length;_++)p=Math.max(l(w[_],d,h,p),p);else f.z=d,f.zlevel=h,p=Math.max(f.z2,p);if(m&&(m.z=d,m.zlevel=h,isFinite(p)&&(m.z2=p+2)),g){var S=f.textGuideLineConfig;g.z=d,g.zlevel=h,isFinite(p)&&(g.z2=p+(S&&S.showAbove?1:-1))}return p}function u(f,d){d.eachRendered(function(h){if(!io(h)){var p=h.getTextContent(),m=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),p&&p.stateTransition&&(p.stateTransition=null),m&&m.stateTransition&&(m.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(f,d){var h=f.getModel("stateAnimation"),p=f.isAnimationEnabled(),m=h.get("duration"),g=m>0?{duration:m,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(y){if(y.states&&y.states.emphasis){if(io(y))return;if(y instanceof pe&&nM(y),y.__dirty){var w=y.prevStates;w&&y.useStates(w)}if(p){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&a(y)}})}Dm=function(f){return new(function(d){H(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(p){for(;p;){var m=p.__ecComponentInfo;if(m!=null)return f._model.getComponent(m.mainType,m.index);p=p.parent}},h.prototype.enterEmphasis=function(p,m){go(p,m),xt(f)},h.prototype.leaveEmphasis=function(p,m){mo(p,m),xt(f)},h.prototype.enterBlur=function(p){o1(p),xt(f)},h.prototype.leaveBlur=function(p){Dd(p),xt(f)},h.prototype.enterSelect=function(p){s1(p),xt(f)},h.prototype.leaveSelect=function(p){l1(p),xt(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(p){return f.getViewOfComponentModel(p)},h.prototype.getViewOfSeriesModel=function(p){return f.getViewOfSeriesModel(p)},h}(aw))(f)},qw=function(f){function d(h,p){for(var m=0;m<h.length;m++){var g=h[m];g[zc]=p}}k(uo,function(h,p){f._messageCenter.on(p,function(m){if(Mm[f.group]&&f[zc]!==Cm){if(m&&m.escapeConnect)return;var g=f.makeActionFromEvent(m),y=[];k(co,function(w){w!==f&&w.group===f.group&&y.push(w)}),d(y,Cm),k(y,function(w){w[zc]!==tP&&w.dispatchAction(g)}),d(y,rP)}})})}}(),t}(Qt),av=jw.prototype;av.on=Gw("on");av.off=Gw("off");av.one=function(e,t,r){var n=this;jt("ECharts#one is deprecated.");function a(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];t&&t.apply&&t.apply(this,i),n.off(e,a)}this.on.call(this,e,a,r)};var nP=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function mt(e){process.env.NODE_ENV!=="production"&&Fe("Instance "+e+" has been disposed")}var kl={},uo={},yh=[],_h=[],El=[],Xw={},wh={},co={},Mm={},aP=+new Date-0,iv="_echarts_instance_";function iP(e,t,r){var n=!(r&&r.ssr);if(n){if(process.env.NODE_ENV!=="production"&&!e)throw new Error("Initialize failed: invalid dom.");var a=oP(e);if(a)return process.env.NODE_ENV!=="production"&&Fe("There is a chart instance already initialized on the dom."),a;process.env.NODE_ENV!=="production"&&qa(e)&&e.nodeName.toUpperCase()!=="CANVAS"&&(!e.clientWidth&&(!r||r.width==null)||!e.clientHeight&&(!r||r.height==null))&&Fe("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var i=new jw(e,t,r);return i.id="ec_"+aP++,co[i.id]=i,n&&$_(e,iv,i.id),qw(i),Wt.trigger("afterinit",i),i}function oP(e){return co[BD(e,iv)]}function Au(e,t){Xw[e]=t}function Zw(e){ce(_h,e)<0&&_h.push(e)}function Kw(e,t){sv(yh,e,t,q5)}function sP(e){ov("afterinit",e)}function lP(e){ov("afterupdate",e)}function ov(e,t){Wt.on(e,t)}function oa(e,t,r){ie(t)&&(r=t,t="");var n=K(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!uo[t]&&(ee(Sm.test(n)&&Sm.test(t)),kl[n]||(kl[n]={action:r,actionInfo:e}),uo[t]=n)}function uP(e,t){qd.register(e,t)}function cP(e,t){sv(El,e,t,$w,"layout")}function sa(e,t){sv(El,e,t,Fw,"visual")}var km=[];function sv(e,t,r,n,a){if((ie(t)||K(t))&&(r=t,t=n),process.env.NODE_ENV!=="production"){if(isNaN(t)||t==null)throw new Error("Illegal priority");k(e,function(o){ee(o.__raw!==r)})}if(!(ce(km,r)>=0)){km.push(r);var i=Nw.wrapStageHandler(r,a);i.__prio=t,i.__raw=r,e.push(i)}}function Jw(e,t){wh[e]=t}function fP(e,t,r){var n=G5("registerMap");n&&n(e,t,r)}var hP=yE;sa(nv,qE);sa(Du,jE);sa(Du,XE);sa(nv,u5);sa(Du,c5);sa(zw,F5);Zw(ow);Kw(W5,tE);Jw("default",ZE);oa({type:Wn,event:Wn,update:Wn},ot);oa({type:Gs,event:Gs,update:Gs},ot);oa({type:ro,event:ro,update:ro},ot);oa({type:Hs,event:Hs,update:Hs},ot);oa({type:no,event:no,update:no},ot);Au("light",o5);Au("dark",s5);function Ii(e){return e==null?0:e.length||1}function Em(e){return e}var dP=function(){function e(t,r,n,a,i,o){this._old=t,this._new=r,this._oldKeyGetter=n||Em,this._newKeyGetter=a||Em,this.context=i,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},a=new Array(t.length),i=new Array(r.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,i,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=a[o],l=n[s],u=Ii(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(i,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},a={},i=[],o=[];this._initIndexMap(t,n,i,"_oldKeyGetter"),this._initIndexMap(r,a,o,"_newKeyGetter");for(var s=0;s<i.length;s++){var l=i[s],u=n[l],c=a[l],f=Ii(u),d=Ii(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),a[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),a[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),a[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),a[l]=null;else if(f>1)for(var h=0;h<f;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,a)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var a=t[n],i=r[a],o=Ii(i);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(i[s]);else o===1&&this._add&&this._add(i);r[a]=null}},e.prototype._initIndexMap=function(t,r,n,a){for(var i=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[a](t[o],o);if(i||(n[o]=s),!!r){var l=r[s],u=Ii(l);u===0?(r[s]=o,i&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}();const Qw=dP;var vP=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function pP(e,t){var r={},n=r.encode={},a=ae(),i=[],o=[],s={};k(e.dimensions,function(d){var h=e.getDimensionInfo(d),p=h.coordDim;if(p){process.env.NODE_ENV!=="production"&&ee(uh.get(p)==null);var m=h.coordDimIndex;qc(n,p)[m]=d,h.isExtraCoord||(a.set(p,1),mP(h.type)&&(i[0]=d),qc(s,p)[m]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}uh.each(function(g,y){var w=qc(n,y),_=h.otherDims[y];_!=null&&_!==!1&&(w[_]=h.name)})});var l=[],u={};a.each(function(d,h){var p=n[h];u[h]=p[0],l=l.concat(p)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=q(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),r.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(i=c.slice());var f=n.tooltip;return f&&f.length?o=f.slice():o.length||(o=i.slice()),n.defaultedLabel=i,n.defaultedTooltip=o,r.userOutput=new vP(s,t),r}function qc(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function gP(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function mP(e){return!(e==="ordinal"||e==="time")}var Ys=function(){function e(t){this.otherDims={},t!=null&&G(this,t)}return e}(),yP=Ne(),_P={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},eb=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=nb(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return ne(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=lw(this.source),n=!ab(t),a="",i=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=r?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=r?d.name:null,u=d.type)}i.push({property:l,type:u,ordinalMeta:c}),r&&l!=null&&(!f||!f.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=_P[u]||"f",c&&(a+=c.uid),a+="$"}var h=this.source,p=[h.seriesLayoutBy,h.startIndex,a].join("$$");return{dimensions:i,hash:p}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var a=void 0,i=this.dimensions[n];if(i&&i.storeDimIndex===r)i.isCalculationCoord||(a=i.name),n++;else{var o=this.getSourceDimension(r);o&&(a=o.name)}t.push(a)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function tb(e){return e instanceof eb}function rb(e){for(var t=ae(),r=0;r<(e||[]).length;r++){var n=e[r],a=K(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,r)}return t}function nb(e){var t=yP(e);return t.dimNameMap||(t.dimNameMap=rb(e.dimensionsDefine))}function ab(e){return e>30}var Li=K,Yr=q,wP=typeof Int32Array>"u"?Array:Int32Array,bP="e\0\0",Pm=-1,SP=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],CP=["_approximateExtent"],Im,ws,Oi,Ca,jc,bs,Xc,fo=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,a=!1;tb(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var i={},o=[],s={},l=!1,u={},c=0;c<n.length;c++){var f=n[c],d=j(f)?new Ys({name:f}):f instanceof Ys?f:new Ys(f),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var p=d.otherDims=d.otherDims||{};o.push(h),i[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),p.itemName===0&&(this._nameDimIdx=c),p.itemId===0&&(this._idDimIdx=c),process.env.NODE_ENV!=="production"&&ee(a||d.storeDimIndex>=0),a&&(d.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=i,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var m=this._dimIdxToName=ae();k(o,function(g){m.set(i[g].storeDimIndex,g)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var a=this._schema.getSourceDimension(r);if(a)return a.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(xe(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Unknown dimension "+t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var a=n.encode[t];return a?a[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var a=this,i;if(t instanceof fh&&(i=t),!i){var o=this.dimensions,s=jd(t)||st(t)?new uw(t,o.length):t;i=new fh;var l=Yr(o,function(u){return{type:a._dimInfos[u].type,property:u}});i.initData(s,l,n)}this._store=i,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,i.count()),this._dimSummary=pP(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r.length),a=n.start,i=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=a;s<i;s++){var l=s-a;this._nameList[s]=r[l],o&&Xc(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var a=this._dimInfos[r[n]];a.ordinalMeta&&t.collectOrdinalMeta(a.storeDimIndex,a.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==kr&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var i=this._nameList,o=this._idList,s=a.getSource().sourceFormat,l=s===Ft;if(l&&!a.pure)for(var u=[],c=t;c<r;c++){var f=a.getItem(c,u);if(!this.hasItemOption&&TD(f)&&(this.hasItemOption=!0),f){var d=f.name;i[c]==null&&d!=null&&(i[c]=vr(d,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=vr(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<r;c++)Xc(this,c);Im(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){Li(t)?G(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Oi(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),a=this._store.getOrdinalMeta(t);return a?a.categories[n]:n},e.prototype.getId=function(t){return ws(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.get(a.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,a=this._dimInfos[t];if(a)return n.getByRawIndex(a.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,a=this._store;return U(t)?a.getValues(Yr(t,function(i){return n._getStoreDimIndex(i)}),r):a.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,a=r.length;n<a;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t];if(process.env.NODE_ENV!=="production"&&!n)throw new Error("Do not supported yet");var a=n[r];return a==null||isNaN(a)?Pm:a},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){ie(t)&&(n=r,r=t,t=[]);var a=n||this,i=Yr(Ca(t),this._getStoreDimIndex,this);this._store.each(i,a?Q(r,a):r)},e.prototype.filterSelf=function(t,r,n){ie(t)&&(n=r,r=t,t=[]);var a=n||this,i=Yr(Ca(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?Q(r,a):r),this},e.prototype.selectRange=function(t){var r=this,n={},a=_e(t);return k(a,function(i){var o=r._getStoreDimIndex(i);n[o]=t[i]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){ie(t)&&(n=r,r=t,t=[]),n=n||this;var a=[];return this.each(t,function(){a.push(r&&r.apply(this,arguments))},n),a},e.prototype.map=function(t,r,n,a){var i=n||a||this,o=Yr(Ca(t),this._getStoreDimIndex,this),s=bs(this);return s._store=this._store.map(o,i?Q(r,i):r),s},e.prototype.modify=function(t,r,n,a){var i=this,o=n||a||this;process.env.NODE_ENV!=="production"&&k(Ca(t),function(l){var u=i.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=Yr(Ca(t),this._getStoreDimIndex,this);this._store.modify(s,o?Q(r,o):r)},e.prototype.downSample=function(t,r,n,a){var i=bs(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),r,n,a),i},e.prototype.lttbDownSample=function(t,r){var n=bs(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new Qe(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new Qw(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return ws(t,n)},function(n){return ws(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},Li(t)?G(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],a=n&&n[r];return a??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[r];return i==null&&(i=this.getVisual(r),U(i)?i=i.slice():Li(i)&&(i=G({},i)),a[r]=i),i},e.prototype.setItemVisual=function(t,r,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Li(r)?G(a,r):a[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Li(t)?G(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?G(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;$A(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){k(this._graphicEls,function(n,a){n&&t&&t.call(r,n,a)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Yr(this.dimensions,this._getDimInfo,this),this.hostModel)),jc(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];ie(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(cd(arguments)))})},e.internalField=function(){Im=function(t){var r=t._invertedIndicesMap;k(r,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=r[a]=new wP(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Pm;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},Oi=function(t,r,n){return vr(t._getCategory(r,n),null)},ws=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Oi(t,t._idDimIdx,r)),n==null&&(n=bP+r),n},Ca=function(t){return U(t)||(t=t!=null?[t]:[]),t},bs=function(t){var r=new e(t._schema?t._schema:Yr(t.dimensions,t._getDimInfo,t),t.hostModel);return jc(r,t),r},jc=function(t,r){k(SP.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,k(CP,function(n){t[n]=ue(r[n])}),t._calculationInfo=G({},r._calculationInfo)},Xc=function(t,r){var n=t._nameList,a=t._idList,i=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=a[r];if(s==null&&i!=null&&(n[r]=s=Oi(t,i,r)),l==null&&o!=null&&(a[r]=l=Oi(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),a[r]=l}}}(),e}();function ib(e,t){jd(e)||(e=Xd(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],a=ae(),i=[],o=TP(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&ab(o),l=n===e.dimensionsDefine,u=l?nb(e):rb(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=ae(c),d=new pw(o),h=0;h<d.length;h++)d[h]=-1;function p(D){var N=d[D];if(N<0){var A=n[D],M=K(A)?A:{name:A},I=new Ys,P=M.name;P!=null&&u.get(P)!=null&&(I.name=I.displayName=P),M.type!=null&&(I.type=M.type),M.displayName!=null&&(I.displayName=M.displayName);var L=i.length;return d[D]=L,I.storeDimIndex=D,i.push(I),I}return i[N]}if(!s)for(var h=0;h<o;h++)p(h);f.each(function(D,N){var A=Ge(D).slice();if(A.length===1&&!j(A[0])&&A[0]<0){f.set(N,!1);return}var M=f.set(N,[]);k(A,function(I,P){var L=j(I)?u.get(I):I;L!=null&&L<o&&(M[P]=L,g(p(L),N,P))})});var m=0;k(r,function(D){var N,A,M,I;if(j(D))N=D,I={};else{I=D,N=I.name;var P=I.ordinalMeta;I.ordinalMeta=null,I=G({},I),I.ordinalMeta=P,A=I.dimsDef,M=I.otherDims,I.name=I.coordDim=I.coordDimIndex=I.dimsDef=I.otherDims=null}var L=f.get(N);if(L!==!1){if(L=Ge(L),!L.length)for(var E=0;E<(A&&A.length||1);E++){for(;m<o&&p(m).coordDim!=null;)m++;m<o&&L.push(m++)}k(L,function(B,R){var V=p(B);if(l&&I.type!=null&&(V.type=I.type),g(he(V,I),N,R),V.name==null&&A){var z=A[R];!K(z)&&(z={name:z}),V.name=V.displayName=z.name,V.defaultTooltip=z.defaultTooltip}M&&he(V.otherDims,M)})}});function g(D,N,A){uh.get(N)!=null?D.otherDims[N]=A:(D.coordDim=N,D.coordDimIndex=A,a.set(N,!0))}var y=t.generateCoord,w=t.generateCoordCount,_=w!=null;w=y?w||1:0;var S=y||"value";function x(D){D.name==null&&(D.name=D.coordDim)}if(s)k(i,function(D){x(D)}),i.sort(function(D,N){return D.storeDimIndex-N.storeDimIndex});else for(var C=0;C<o;C++){var T=p(C),b=T.coordDim;b==null&&(T.coordDim=NP(S,a,_),T.coordDimIndex=0,(!y||w<=0)&&(T.isExtraCoord=!0),w--),x(T),T.type==null&&(rw(e,C)===Ue.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return xP(i),new eb({source:e,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function xP(e){for(var t=ae(),r=0;r<e.length;r++){var n=e[r],a=n.name,i=t.get(a)||0;i>0&&(n.name=a+(i-1)),i++,t.set(a,i)}}function TP(e,t,r,n){var a=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return k(t,function(i){var o;K(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function NP(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var DP=function(){function e(t){this.coordSysDims=[],this.axisMap=ae(),this.categoryAxisMap=ae(),this.coordSysName=t}return e}();function AP(e){var t=e.get("coordinateSystem"),r=new DP(t),n=MP[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var MP={cartesian2d:function(e,t,r,n){var a=e.getReferringComponents("xAxis",dt).models[0],i=e.getReferringComponents("yAxis",dt).models[0];if(process.env.NODE_ENV!=="production"){if(!a)throw new Error('xAxis "'+fn(e.get("xAxisIndex"),e.get("xAxisId"),0)+'" not found');if(!i)throw new Error('yAxis "'+fn(e.get("xAxisIndex"),e.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],r.set("x",a),r.set("y",i),xa(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),xa(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var a=e.getReferringComponents("singleAxis",dt).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],r.set("single",a),xa(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var a=e.getReferringComponents("polar",dt).models[0],i=a.findAxisModel("radiusAxis"),o=a.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!o)throw new Error("angleAxis option not found");if(!i)throw new Error("radiusAxis option not found")}t.coordSysDims=["radius","angle"],r.set("radius",i),r.set("angle",o),xa(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),xa(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var a=e.ecModel,i=a.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=i.dimensions.slice();k(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];r.set(c,u),xa(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function xa(e){return e.get("type")==="category"}function kP(e,t,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,i,o,s;EP(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(k(i,function(w,_){j(w)&&(i[_]=w={name:w}),l&&!w.isExtraCoord&&(!n&&!u&&w.ordinalMeta&&(u=w),!c&&w.type!=="ordinal"&&w.type!=="time"&&(!a||a===w.coordDim)&&(c=w))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,p=c.type,m=0;k(i,function(w){w.coordDim===h&&m++});var g={name:f,coordDim:h,coordDimIndex:m,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:d,coordDim:d,coordDimIndex:m+1,type:p,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,p),y.storeDimIndex=s.ensureCalculationDimension(f,p)),o.appendCalculationDimension(g),o.appendCalculationDimension(y)):(i.push(g),i.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function EP(e){return!tb(e.schema)}function ta(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function ob(e,t){return ta(e,t)?e.getCalculationInfo("stackResultDimension"):t}function PP(e,t){var r=e.get("coordinateSystem"),n=qd.get(r),a;return t&&t.coordSysDims&&(a=q(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=gP(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function IP(e,t,r){var n,a;return r&&k(e,function(i,o){var s=i.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),i.ordinalMeta=l.getOrdinalMeta(),t&&(i.createInvertedIndices=!0)),i.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(e[n].otherDims.itemName=0),n}function Mu(e,t,r){r=r||{};var n=t.getSourceManager(),a,i=!1;e?(i=!0,a=Xd(e)):(a=n.getSource(),i=a.sourceFormat===Ft);var o=AP(t),s=PP(t,o),l=r.useEncodeDefaulter,u=ie(l)?l:l?be(Nk,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=ib(a,c),d=IP(f.dimensions,r.createInvertedIndices,o),h=i?null:n.getSharedDataStore(f),p=kP(t,{schema:f,store:h}),m=new fo(f,t);m.setCalculationInfo(p);var g=d!=null&&LP(a)?function(y,w,_,S){return S===d?_:this.defaultDimValueGetter(y,w,_,S)}:null;return m.hasItemOption=!1,m.initData(i?a:h,null,g),m}function LP(e){if(e.sourceFormat===Ft){var t=OP(e.data||[]);return!U(Oo(t))}}function OP(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var yr=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();iu(yr);var RP=0,bh=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++RP}return e.createByAxisModel=function(t){var r=t.option,n=r.data,a=n&&q(n,BP);return new e({categories:a,needCollect:!a,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!j(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var a=this._getOrCreateMap();return r=a.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,a.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=ae(this.categories))},e}();function BP(e){return K(e)&&e.value!=null?e.value:e+""}function VP(e){var t=Math.pow(10,nu(Math.abs(e))),r=Math.abs(e/t);return r===0||r===1||r===2||r===3||r===5}function Sh(e){return e.type==="interval"||e.type==="log"}function $P(e,t,r,n){var a={},i=e[1]-e[0],o=a.interval=I_(i/t,!0);r!=null&&o<r&&(o=a.interval=r),n!=null&&o>n&&(o=a.interval=n);var s=a.intervalPrecision=sb(o),l=a.niceTickExtent=[Re(Math.ceil(e[0]/o)*o,s),Re(Math.floor(e[1]/o)*o,s)];return FP(l,e),a}function Zc(e){var t=Math.pow(10,nu(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Re(r*t)}function sb(e){return hr(e)+2}function Lm(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function FP(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Lm(e,0,t),Lm(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function ku(e,t){return e>=t[0]&&e<=t[1]}function Eu(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Pu(e,t){return e*(t[1]-t[0])+t[0]}var lb=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new bh({})),U(a)&&(a=new bh({categories:q(a,function(i){return K(i)?i.value:i})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:j(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),ku(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Eu(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(Pu(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,a=n[0];a<=n[1];)r.push({value:a}),a++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,a=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];a[o]=u,i[u]=o}for(var c=0;o<s;++o){for(;i[c]!=null;)c++;a.push(c),i[c]=o}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),a=this._ordinalMeta.categories[n];return a==null?"":a+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(yr);yr.registerClass(lb);const ub=lb;var Bn=Re,cb=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return ku(r,this._extent)},t.prototype.normalize=function(r){return Eu(r,this._extent)},t.prototype.scale=function(r){return Pu(r,this._extent)},t.prototype.setExtent=function(r,n){var a=this._extent;isNaN(r)||(a[0]=parseFloat(r)),isNaN(n)||(a[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=sb(r)},t.prototype.getTicks=function(r){var n=this._interval,a=this._extent,i=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]<i[0]&&(r?s.push({value:Bn(i[0]-n,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=Bn(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:i[1];return a[1]>c&&(r?s.push({value:Bn(c+n,o)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),a=[],i=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,c=[],f=s.value-l.value,d=f/r;u<r-1;){var h=Bn(l.value+(u+1)*d);h>i[0]&&h<i[1]&&c.push(h),u++}a.push(c)}return a},t.prototype.getLabel=function(r,n){if(r==null)return"";var a=n&&n.precision;a==null?a=hr(r.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=Bn(r.value,a,!0);return Z1(i)},t.prototype.calcNiceTicks=function(r,n,a){r=r||5;var i=this._extent,o=i[1]-i[0];if(isFinite(o)){o<0&&(o=-o,i.reverse());var s=$P(i,r,n,a);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var a=Math.abs(n[0]);r.fixMax||(n[1]+=a/2),n[0]-=a/2}else n[1]=1;var i=n[1]-n[0];isFinite(i)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=Bn(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=Bn(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(yr);yr.registerClass(cb);const Vo=cb;var fb=typeof Float32Array<"u",zP=fb?Float32Array:Array;function Dr(e){return U(e)?fb?new Float32Array(e):e:new zP(e)}var Ch="__ec_stack_";function lv(e){return e.get("stack")||Ch+e.seriesIndex}function uv(e){return e.dim+e.index}function GP(e){var t=[],r=e.axis,n="axis0";if(r.type==="category"){for(var a=r.getBandWidth(),i=0;i<e.count;i++)t.push(he({bandWidth:a,axisKey:n,stackId:Ch+i},e));for(var o=vb(t),s=[],i=0;i<e.count;i++){var l=o[n][Ch+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function hb(e,t){var r=[];return t.eachSeriesByType(e,function(n){pb(n)&&r.push(n)}),r}function HP(e){var t={};k(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,h=f.getDimensionIndex(f.mapDimension(c.dim)),p=f.getStore(),m=0,g=p.count();m<g;++m){var y=p.get(h,m);t[d]?t[d].push(y):t[d]=[y]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];if(a){a.sort(function(l,u){return l-u});for(var i=null,o=1;o<a.length;++o){var s=a[o]-a[o-1];s>0&&(i=i===null?s:Math.min(i,s))}r[n]=i}}return r}function db(e){var t=HP(e),r=[];return k(e,function(n){var a=n.coordinateSystem,i=a.getBaseAxis(),o=i.getExtent(),s;if(i.type==="category")s=i.getBandWidth();else if(i.type==="value"||i.type==="time"){var l=i.dim+"_"+i.index,u=t[l],c=Math.abs(o[1]-o[0]),f=i.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var p=Ce(n.get("barWidth"),s),m=Ce(n.get("barMaxWidth"),s),g=Ce(n.get("barMinWidth")||(gb(n)?.5:1),s),y=n.get("barGap"),w=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:p,barMaxWidth:m,barMinWidth:g,barGap:y,barCategoryGap:w,axisKey:uv(i),stackId:lv(n)})}),vb(r)}function vb(e){var t={};k(e,function(n,a){var i=n.axisKey,o=n.bandWidth,s=t[i]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[i]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var d=n.barMinWidth;d&&(l[u].minWidth=d);var h=n.barGap;h!=null&&(s.gap=h);var p=n.barCategoryGap;p!=null&&(s.categoryGap=p)});var r={};return k(t,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=_e(i).length;s=Math.max(35-l*4,15)+"%"}var u=Ce(s,o),c=Ce(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),k(i,function(y){var w=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;w&&(S=Math.min(S,w)),_&&(S=Math.max(S,_)),y.width=S,f-=S+c*S,d--}else{var S=h;w&&w<S&&(S=Math.min(w,f)),_&&_>S&&(S=_),S!==h&&(y.width=S,f-=S+c*S,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var p=0,m;k(i,function(y,w){y.width||(y.width=h),m=y,p+=y.width*(1+c)}),m&&(p-=m.width*c);var g=-p/2;k(i,function(y,w){r[a][w]=r[a][w]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+c)})}),r}function UP(e,t,r){if(e&&t){var n=e[uv(t)];return n!=null&&r!=null?n[lv(r)]:n}}function WP(e,t){var r=hb(e,t),n=db(r);k(r,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=lv(a),u=n[uv(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function YP(e){return{seriesType:e,plan:Qd(),reset:function(t){if(pb(t)){var r=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),i=n.getOtherAxis(a),o=r.getDimensionIndex(r.mapDimension(i.dim)),s=r.getDimensionIndex(r.mapDimension(a.dim)),l=t.get("showBackground",!0),u=r.mapDimension(i.dim),c=r.getCalculationInfo("stackResultDimension"),f=ta(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),h=qP(a,i),p=gb(t),m=t.get("barMinHeight")||0,g=c&&r.getDimensionIndex(c),y=r.getLayout("size"),w=r.getLayout("offset");return{progress:function(_,S){for(var x=_.count,C=p&&Dr(x*3),T=p&&l&&Dr(x*3),b=p&&Dr(x),D=n.master.getRect(),N=d?D.width:D.height,A,M=S.getStore(),I=0;(A=_.next())!=null;){var P=M.get(f?g:o,A),L=M.get(s,A),E=h,B=void 0;f&&(B=+P-M.get(o,A));var R=void 0,V=void 0,z=void 0,Y=void 0;if(d){var Z=n.dataToPoint([P,L]);if(f){var F=n.dataToPoint([B,L]);E=F[0]}R=E,V=Z[1]+w,z=Z[0]-E,Y=y,Math.abs(z)<m&&(z=(z<0?-1:1)*m)}else{var Z=n.dataToPoint([L,P]);if(f){var F=n.dataToPoint([L,B]);E=F[1]}R=Z[0]+w,V=E,z=y,Y=Z[1]-E,Math.abs(Y)<m&&(Y=(Y<=0?-1:1)*m)}p?(C[I]=R,C[I+1]=V,C[I+2]=d?z:Y,T&&(T[I]=d?D.x:R,T[I+1]=d?V:D.y,T[I+2]=N),b[A]=A):S.setItemLayout(A,{x:R,y:V,width:z,height:Y}),I+=3}p&&S.setLayout({largePoints:C,largeDataIndices:b,largeBackgroundPoints:T,valueAxisHorizontal:d})}}}}}}function pb(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function gb(e){return e.pipelineContext&&e.pipelineContext.large}function qP(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var jP=function(e,t,r,n){for(;r<n;){var a=r+n>>>1;e[a][1]<t?r=a+1:n=a}return r},mb=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return gu(r.value,Tg[gk(za(this._minLevelUnit))]||Tg.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return mk(r,n,a,o,i)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,a=[];if(!r)return a;a.push({value:n[0],level:0});var i=this.getSetting("useUTC"),o=tI(this._minLevelUnit,this._approxInterval,i,n);return a=a.concat(o),a.push({value:n[1],level:0}),a},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Bt,n[1]+=Bt),n[1]===-1/0&&n[0]===1/0){var a=new Date;n[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),n[0]=n[1]-Bt}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,a){r=r||10;var i=this._extent,o=i[1]-i[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=Ss.length,l=Math.min(jP(Ss,this._approxInterval,0,s),s-1);this._interval=Ss[l][1],this._minLevelUnit=Ss[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return xe(r)?r:+Or(r)},t.prototype.contain=function(r){return ku(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Eu(this.parse(r),this._extent)},t.prototype.scale=function(r){return Pu(r,this._extent)},t.type="time",t}(Vo),Ss=[["second",Fd],["minute",zd],["hour",oo],["quarter-day",oo*6],["half-day",oo*12],["day",Bt*1.2],["half-week",Bt*3.5],["week",Bt*7],["month",Bt*31],["quarter",Bt*95],["half-year",xg/2],["year",xg]];function XP(e,t,r,n){var a=Or(t),i=Or(r),o=function(p){return Ng(a,p,n)===Ng(i,p,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},h=function(){return d()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return h()}}function ZP(e,t){return e/=Bt,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function KP(e){var t=30*Bt;return e/=t,e>6?6:e>3?3:e>2?2:1}function JP(e){return e/=oo,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Om(e,t){return e/=t?zd:Fd,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function QP(e){return I_(e,!0)}function eI(e,t,r){var n=new Date(e);switch(za(t)){case"year":case"month":n[U1(r)](0);case"day":n[W1(r)](1);case"hour":n[Y1(r)](0);case"minute":n[q1(r)](0);case"second":n[j1(r)](0),n[X1(r)](0)}return n.getTime()}function tI(e,t,r,n){var a=1e4,i=G1,o=0;function s(N,A,M,I,P,L,E){for(var B=new Date(A),R=A,V=B[I]();R<M&&R<=n[1];)E.push({value:R}),V+=N,B[P](V),R=B.getTime();E.push({value:R,notAdd:!0})}function l(N,A,M){var I=[],P=!A.length;if(!XP(za(N),n[0],n[1],r)){P&&(A=[{value:eI(new Date(n[0]),N,r)},{value:n[1]}]);for(var L=0;L<A.length-1;L++){var E=A[L].value,B=A[L+1].value;if(E!==B){var R=void 0,V=void 0,z=void 0,Y=!1;switch(N){case"year":R=Math.max(1,Math.round(t/Bt/365)),V=Gd(r),z=yk(r);break;case"half-year":case"quarter":case"month":R=KP(t),V=Ga(r),z=U1(r);break;case"week":case"half-week":case"day":R=ZP(t),V=mu(r),z=W1(r),Y=!0;break;case"half-day":case"quarter-day":case"hour":R=JP(t),V=wo(r),z=Y1(r);break;case"minute":R=Om(t,!0),V=yu(r),z=q1(r);break;case"second":R=Om(t,!1),V=_u(r),z=j1(r);break;case"millisecond":R=QP(t),V=wu(r),z=X1(r);break}s(R,E,B,V,z,Y,I),N==="year"&&M.length>1&&L===0&&M.unshift({value:M[0].value-R})}}for(var L=0;L<I.length;L++)M.push(I[L]);return I}}for(var u=[],c=[],f=0,d=0,h=0;h<i.length&&o++<a;++h){var p=za(i[h]);if(pk(i[h])){l(i[h],u[u.length-1]||[],c);var m=i[h+1]?za(i[h+1]):null;if(p!==m){if(c.length){d=f,c.sort(function(N,A){return N.value-A.value});for(var g=[],y=0;y<c.length;++y){var w=c[y].value;(y===0||c[y-1].value!==w)&&(g.push(c[y]),w>=n[0]&&w<=n[1]&&f++)}var _=(n[1]-n[0])/t;if(f>_*1.5&&d>_/1.5||(u.push(g),f>_||e===i[h]))break}c=[]}}}process.env.NODE_ENV!=="production"&&o>=a&&Fe("Exceed safe limit.");for(var S=qe(q(u,function(N){return qe(N,function(A){return A.value>=n[0]&&A.value<=n[1]&&!A.notAdd})}),function(N){return N.length>0}),x=[],C=S.length-1,h=0;h<S.length;++h)for(var T=S[h],b=0;b<T.length;++b)x.push({value:T[b].value,level:C-h});x.sort(function(N,A){return N.value-A.value});for(var D=[],h=0;h<x.length;++h)(h===0||x[h].value!==x[h-1].value)&&D.push(x[h]);return D}yr.registerClass(mb);const rI=mb;var Rm=yr.prototype,ho=Vo.prototype,nI=Re,aI=Math.floor,iI=Math.ceil,Cs=Math.pow,Gt=Math.log,cv=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Vo,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,a=this._extent,i=n.getExtent(),o=ho.getTicks.call(this,r);return q(o,function(s){var l=s.value,u=Re(Cs(this.base,l));return u=l===a[0]&&this._fixMin?xs(u,i[0]):u,u=l===a[1]&&this._fixMax?xs(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var a=Gt(this.base);r=Gt(Math.max(0,r))/a,n=Gt(Math.max(0,n))/a,ho.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=Rm.getExtent.call(this);n[0]=Cs(r,n[0]),n[1]=Cs(r,n[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(n[0]=xs(n[0],i[0])),this._fixMax&&(n[1]=xs(n[1],i[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=Gt(r[0])/Gt(n),r[1]=Gt(r[1])/Gt(n),Rm.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,a=n[1]-n[0];if(!(a===1/0||a<=0)){var i=wD(a),o=r/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Re(iI(n[0]/i)*i),Re(aI(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){ho.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=Gt(r)/Gt(this.base),ku(r,this._extent)},t.prototype.normalize=function(r){return r=Gt(r)/Gt(this.base),Eu(r,this._extent)},t.prototype.scale=function(r){return r=Pu(r,this._extent),Cs(this.base,r)},t.type="log",t}(yr),yb=cv.prototype;yb.getMinorTicks=ho.getMinorTicks;yb.getLabel=ho.getLabel;function xs(e,t){return nI(e,hr(t))}yr.registerClass(cv);const oI=cv;var sI=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var i=this._modelMinRaw=r.get("min",!0);ie(i)?this._modelMinNum=Ts(t,i({min:n[0],max:n[1]})):i!=="dataMin"&&(this._modelMinNum=Ts(t,i));var o=this._modelMaxRaw=r.get("max",!0);if(ie(o)?this._modelMaxNum=Ts(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=Ts(t,o)),a)this._axisDataLen=r.getCategories().length;else{var s=r.get("boundaryGap"),l=U(s)?s:[s||0,s||0];typeof l[0]=="boolean"||typeof l[1]=="boolean"?(process.env.NODE_ENV!=="production"&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[hn(l[0],1),hn(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,a=this._axisDataLen,i=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?a?0:NaN:r-i[0]*o),l==null&&(l=t?a?a-1:NaN:n+i[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=ja(s)||ja(l)||t&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){process.env.NODE_ENV!=="production"&&ee(!this.frozen),this[uI[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=lI[t];process.env.NODE_ENV!=="production"&&ee(!this.frozen&&this[n]==null),this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),lI={min:"_determinedMin",max:"_determinedMax"},uI={min:"_dataMin",max:"_dataMax"};function _b(e,t,r){var n=e.rawExtentInfo;return n||(n=new sI(e,t,r),e.rawExtentInfo=n,n)}function Ts(e,t){return t==null?null:ja(t)?NaN:e.parse(t)}function wb(e,t){var r=e.type,n=_b(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var a=n.min,i=n.max,o=t.ecModel;if(o&&r==="time"){var s=hb("bar",o),l=!1;if(k(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=db(s),c=cI(a,i,t,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function cI(e,t,r,n){var a=r.axis.getExtent(),i=a[1]-a[0],o=UP(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;k(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;k(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/i,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function Bm(e,t){var r=t,n=wb(e,r),a=n.extent,i=r.get("splitNumber");e instanceof oI&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(a[0],a[1]),e.calcNiceExtent({splitNumber:i,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function fI(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new ub({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new rI({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(yr.getClass(t)||Vo)}}function hI(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function $o(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(a,i){return e.scale.getFormattedLabel(a,i,n)}}(t):j(t)?function(n){return function(a){var i=e.scale.getLabel(a),o=n.replace("{value}",i??"");return o}}(t):ie(t)?function(n){return function(a,i){return r!=null&&(i=a.value-r),n(fv(e,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function fv(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function dI(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,a,i=r.getExtent();r instanceof ub?a=r.count():(n=r.getTicks(),a=n.length);var o=e.getLabelModel(),s=$o(e),l,u=1;a>40&&(u=Math.ceil(a/40));for(var c=0;c<a;c+=u){var f=n?n[c]:{value:i[0]+c},d=s(f,c),h=o.getTextRect(d),p=vI(h,o.get("rotate")||0);l?l.union(p):l=p}return l}}function vI(e,t){var r=t*Math.PI/180,n=e.width,a=e.height,i=n*Math.abs(Math.cos(r))+Math.abs(a*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(a*Math.cos(r)),s=new ye(e.x,e.y,i,o);return s}function hv(e){var t=e.get("interval");return t??"auto"}function bb(e){return e.type==="category"&&hv(e.getLabelModel())===0}function Sb(e,t){var r={};return k(e.mapDimensionsAll(t),function(n){r[ob(e,n)]=!0}),_e(r)}function pI(e,t,r){t&&k(Sb(t,r),function(n){var a=t.getApproximateExtent(n);a[0]<e[0]&&(e[0]=a[0]),a[1]>e[1]&&(e[1]=a[1])})}var gI=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),Vm=[],mI={registerPreprocessor:Zw,registerProcessor:Kw,registerPostInit:sP,registerPostUpdate:lP,registerUpdateLifecycle:ov,registerAction:oa,registerCoordinateSystem:uP,registerLayout:cP,registerVisual:sa,registerTransform:hP,registerLoading:Jw,registerMap:fP,registerImpl:z5,PRIORITY:eP,ComponentModel:Se,ComponentView:Zt,SeriesModel:Rr,ChartView:qt,registerComponentModel:function(e){Se.registerClass(e)},registerComponentView:function(e){Zt.registerClass(e)},registerSeriesModel:function(e){Rr.registerClass(e)},registerChartView:function(e){qt.registerClass(e)},registerSubTypeDefaulter:function(e,t){Se.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){pD(e,t)}};function gr(e){if(U(e)){k(e,function(t){gr(t)});return}ce(Vm,e)>=0||(Vm.push(e),ie(e)&&(e={install:e}),e.install(mI))}var To=Ne();function yI(e){return e.type==="category"?wI(e):SI(e)}function _I(e,t){return e.type==="category"?bI(e,t):{ticks:q(e.scale.getTicks(),function(r){return r.value})}}function wI(e){var t=e.getLabelModel(),r=Cb(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function Cb(e,t){var r=xb(e,"labels"),n=hv(t),a=Tb(r,n);if(a)return a;var i,o;return ie(n)?i=Ab(e,n):(o=n==="auto"?CI(e):n,i=Db(e,o)),Nb(r,n,{labels:i,labelCategoryInterval:o})}function bI(e,t){var r=xb(e,"ticks"),n=hv(t),a=Tb(r,n);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),ie(n))i=Ab(e,n,!0);else if(n==="auto"){var s=Cb(e,e.getLabelModel());o=s.labelCategoryInterval,i=q(s.labels,function(l){return l.tickValue})}else o=n,i=Db(e,o,!0);return Nb(r,n,{ticks:i,tickCategoryInterval:o})}function SI(e){var t=e.scale.getTicks(),r=$o(e);return{labels:q(t,function(n,a){return{level:n.level,formattedLabel:r(n,a),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function xb(e,t){return To(e)[t]||(To(e)[t]=[])}function Tb(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function Nb(e,t,r){return e.push({key:t,value:r}),r}function CI(e){var t=To(e).autoInterval;return t??(To(e).autoInterval=e.calculateCategoryInterval())}function xI(e){var t=TI(e),r=$o(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,a=e.scale,i=a.getExtent(),o=a.count();if(i[1]-i[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=i[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),d=0,h=0;l<=i[1];l+=s){var p=0,m=0,g=yd(r({value:l}),t.font,"center","top");p=g.width*1.3,m=g.height*1.3,d=Math.max(d,p,7),h=Math.max(h,m,7)}var y=d/c,w=h/f;isNaN(y)&&(y=1/0),isNaN(w)&&(w=1/0);var _=Math.max(0,Math.floor(Math.min(y,w))),S=To(e.model),x=e.getExtent(),C=S.lastAutoInterval,T=S.lastTickCount;return C!=null&&T!=null&&Math.abs(C-_)<=1&&Math.abs(T-o)<=1&&C>_&&S.axisExtent0===x[0]&&S.axisExtent1===x[1]?_=C:(S.lastTickCount=o,S.lastAutoInterval=_,S.axisExtent0=x[0],S.axisExtent1=x[1]),_}function TI(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function Db(e,t,r){var n=$o(e),a=e.scale,i=a.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=i[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=bb(e),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&u!==i[0]&&m(i[0]);for(var p=u;p<=i[1];p+=l)m(p);h&&p-l!==i[1]&&m(i[1]);function m(g){var y={value:g};s.push(r?g:{formattedLabel:n(y),rawLabel:a.getLabel(y),tickValue:g})}return s}function Ab(e,t,r){var n=e.scale,a=$o(e),i=[];return k(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&i.push(r?l:{formattedLabel:a(o),rawLabel:s,tickValue:l})}),i}var $m=[0,1],NI=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return t>=n&&t<=a},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return E_(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,a=this.scale;return t=a.normalize(t),this.onBand&&a.type==="ordinal"&&(n=n.slice(),Fm(n,a.count())),We(t,$m,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),Fm(n,a.count()));var i=We(t,n,$m,r);return this.scale.scale(i)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=_I(this,r),a=n.ticks,i=q(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return DI(this,i,o,t.clamp),i},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),a=q(n,function(i){return q(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},e.prototype.getViewLabels=function(){return yI(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var a=Math.abs(t[1]-t[0]);return Math.abs(a)/n},e.prototype.calculateCategoryInterval=function(){return xI(this)},e}();function Fm(e,t){var r=e[1]-e[0],n=t,a=r/n/2;e[0]+=a,e[1]-=a}function DI(e,t,r,n){var a=t.length;if(!e.onBand||r||!a)return;var i=e.getExtent(),o,s;if(a===1)t[0].coord=i[0],o=t[1]={coord:i[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;k(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[a-1].tickValue,o={coord:t[a-1].coord+u*s},t.push(o)}var f=i[0]>i[1];d(t[0].coord,i[0])&&(n?t[0].coord=i[0]:t.shift()),n&&d(i[0],t[0].coord)&&t.unshift({coord:i[0]}),d(i[1],o.coord)&&(n?o.coord=i[1]:t.pop()),n&&d(o.coord,i[1])&&t.push({coord:i[1]});function d(h,p){return h=Re(h),p=Re(p),f?h>p:h<p}}const AI=NI;function Mb(e,t,r,n,a,i,o,s){var l=a-e,u=i-t,c=r-e,f=n-t,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var h=l*c+u*f,p=h/d;s&&(p=Math.min(Math.max(p,0),1)),p*=d;var m=o[0]=e+p*c,g=o[1]=t+p*f;return Math.sqrt((m-a)*(m-a)+(g-i)*(g-i))}var en=new se,Pe=new se,Ye=new se,tn=new se,cr=new se,Pl=[],at=new se;function MI(e,t){if(t<=180&&t>0){t=t/180*Math.PI,en.fromArray(e[0]),Pe.fromArray(e[1]),Ye.fromArray(e[2]),se.sub(tn,en,Pe),se.sub(cr,Ye,Pe);var r=tn.len(),n=cr.len();if(!(r<.001||n<.001)){tn.scale(1/r),cr.scale(1/n);var a=tn.dot(cr),i=Math.cos(t);if(i<a){var o=Mb(Pe.x,Pe.y,Ye.x,Ye.y,en.x,en.y,Pl,!1);at.fromArray(Pl),at.scaleAndAdd(cr,o/Math.tan(Math.PI-t));var s=Ye.x!==Pe.x?(at.x-Pe.x)/(Ye.x-Pe.x):(at.y-Pe.y)/(Ye.y-Pe.y);if(isNaN(s))return;s<0?se.copy(at,Pe):s>1&&se.copy(at,Ye),at.toArray(e[1])}}}}function kI(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,en.fromArray(e[0]),Pe.fromArray(e[1]),Ye.fromArray(e[2]),se.sub(tn,Pe,en),se.sub(cr,Ye,Pe);var n=tn.len(),a=cr.len();if(!(n<.001||a<.001)){tn.scale(1/n),cr.scale(1/a);var i=tn.dot(t),o=Math.cos(r);if(i<o){var s=Mb(Pe.x,Pe.y,Ye.x,Ye.y,en.x,en.y,Pl,!1);at.fromArray(Pl);var l=Math.PI/2,u=Math.acos(cr.dot(t)),c=l+u-r;if(c>=l)se.copy(at,Ye);else{at.scaleAndAdd(cr,s/Math.tan(Math.PI/2-c));var f=Ye.x!==Pe.x?(at.x-Pe.x)/(Ye.x-Pe.x):(at.y-Pe.y)/(Ye.y-Pe.y);if(isNaN(f))return;f<0?se.copy(at,Pe):f>1&&se.copy(at,Ye)}at.toArray(e[1])}}}}function Kc(e,t,r,n){var a=r==="normal",i=a?e:e.ensureState(r);i.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),i.shape=i.shape||{},o>0&&(i.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();a?e.useStyle(s):i.style=s}function EI(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var a=Rf(n[0],n[1]),i=Rf(n[1],n[2]);if(!a||!i){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(a,i)*r,s=Uu([],n[1],n[0],o/a),l=Uu([],n[1],n[2],o/i),u=Uu([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)e.lineTo(n[c][0],n[c][1])}function PI(e,t,r){var n=e.getTextGuideLine(),a=e.getTextContent();if(!a){n&&e.removeTextGuideLine();return}for(var i=t.normal,o=i.get("show"),s=a.ignore,l=0;l<fl.length;l++){var u=fl[l],c=t[u],f=u==="normal";if(c){var d=c.get("show"),h=f?s:ne(a.states[u]&&a.states[u].ignore,s);if(h||!ne(d,o)){var p=f?n:n&&n.states[u];p&&(p.ignore=!0),n&&Kc(n,!0,u,c);continue}n||(n=new ai,e.setTextGuideLine(n),!f&&(s||!o)&&Kc(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),Kc(n,!1,u,c)}}if(n){he(n.style,r),n.style.fill=null;var m=i.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=m||!1,n.buildPath=EI}}function II(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<vt.length;n++){var a=vt[n];r[a]=e.getModel([a,t])}return r}function LI(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var a=n.label,i=a.getComputedTransform(),o=a.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=a.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new vl(o,i):null;t.push({label:a,labelLine:n.labelLine,rect:u,localRect:o,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:i})}}return t}function OI(e,t,r,n,a,i){var o=e.length;if(o<2)return;e.sort(function(b,D){return b.rect[t]-D.rect[t]});for(var s=0,l,u=!1,c=0,f=0;f<o;f++){var d=e[f],h=d.rect;l=h[t]-s,l<0&&(h[t]-=l,d.label[t]-=l,u=!0);var p=Math.max(-l,0);c+=p,s=h[t]+h[r]}c>0&&i&&x(-c/o,0,o);var m=e[0],g=e[o-1],y,w;_(),y<0&&C(-y,.8),w<0&&C(w,.8),_(),S(y,w,1),S(w,y,-1),_(),y<0&&T(-y),w<0&&T(w);function _(){y=m.rect[t]-n,w=a-g.rect[t]-g.rect[r]}function S(b,D,N){if(b<0){var A=Math.min(D,-b);if(A>0){x(A*N,0,o);var M=A+b;M<0&&C(-M*N,1)}else C(-b*N,1)}}function x(b,D,N){b!==0&&(u=!0);for(var A=D;A<N;A++){var M=e[A],I=M.rect;I[t]+=b,M.label[t]+=b}}function C(b,D){for(var N=[],A=0,M=1;M<o;M++){var I=e[M-1].rect,P=Math.max(e[M].rect[t]-I[t]-I[r],0);N.push(P),A+=P}if(A){var L=Math.min(Math.abs(b)/A,D);if(b>0)for(var M=0;M<o-1;M++){var E=N[M]*L;x(E,0,M+1)}else for(var M=o-1;M>0;M--){var E=N[M-1]*L;x(-E,M,o)}}}function T(b){var D=b<0?-1:1;b=Math.abs(b);for(var N=Math.ceil(b/(o-1)),A=0;A<o-1;A++)if(D>0?x(N,0,A+1):x(-N,o-A-1,o),b-=N,b<=0)return}return u}function RI(e,t,r,n){return OI(e,"y","height",t,r,n)}function BI(e){var t=[];e.sort(function(m,g){return g.priority-m.priority});var r=new ye(0,0,0,0);function n(m){if(!m.ignore){var g=m.ensureState("emphasis");g.ignore==null&&(g.ignore=!1)}m.ignore=!0}for(var a=0;a<e.length;a++){var i=e[a],o=i.axisAligned,s=i.localRect,l=i.transform,u=i.label,c=i.labelLine;r.copy(i.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var f=i.obb,d=!1,h=0;h<t.length;h++){var p=t[h];if(r.intersect(p.rect)){if(o&&p.axisAligned){d=!0;break}if(p.obb||(p.obb=new vl(p.localRect,p.transform)),f||(f=new vl(s,l)),f.intersect(p.obb)){d=!0;break}}}d?(n(u),c&&n(c)):(u.attr("ignore",i.defaultAttr.ignore),c&&c.attr("ignore",i.defaultAttr.labelGuideIgnore),t.push(i))}}var VI=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){if(process.env.NODE_ENV!=="production"){var n=r.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return Mu(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new Ie,a=Br("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(a),a.setStyle(r.lineStyle);var i=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=i==="none"?"circle":i,l=r.itemHeight*.8,u=Br(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var c=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Rr);const $I=VI;function No(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var a=Qa(e,t,r[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<r.length;o++)i.push(Qa(e,t,r[o]));return i.join(" ")}}function kb(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!U(t))return t+"";for(var n=[],a=0;a<r.length;a++){var i=e.getDimensionIndex(r[a]);i>=0&&n.push(t[i])}return n.join(" ")}var dv=function(e){H(t,e);function t(r,n,a,i){var o=e.call(this)||this;return o.updateData(r,n,a,i),o}return t.prototype._createSymbol=function(r,n,a,i,o){this.removeAll();var s=Br(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=FI,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){go(this.childAt(0))},t.prototype.downplay=function(){mo(this.childAt(0))},t.prototype.setZ=function(r,n){var a=this.childAt(0);a.zlevel=r,a.z=n},t.prototype.setDraggable=function(r,n){var a=this.childAt(0);a.draggable=r,a.cursor=!n&&r?"move":a.cursor},t.prototype.updateData=function(r,n,a,i){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,c=i&&i.disableAnimation;if(u){var f=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,f)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(h):tt(d,h,s,n),Od(d)}if(this._updateCommon(r,n,l,a,i),u){var d=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,bt(d,h,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,a,i,o){var s=this.childAt(0),l=r.hostModel,u,c,f,d,h,p,m,g,y;if(i&&(u=i.emphasisItemStyle,c=i.blurItemStyle,f=i.selectItemStyle,d=i.focus,h=i.blurScope,m=i.labelStatesModels,g=i.hoverScale,y=i.cursorStyle,p=i.emphasisDisabled),!i||r.hasItemOption){var w=i&&i.itemModel?i.itemModel:r.getItemModel(n),_=w.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=w.getModel(["select","itemStyle"]).getItemStyle(),c=w.getModel(["blur","itemStyle"]).getItemStyle(),d=_.get("focus"),h=_.get("blurScope"),p=_.get("disabled"),m=aa(w),g=_.getShallow("scale"),y=w.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var x=Nu(r.getItemVisual(n,"symbolOffset"),a);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var C=r.getItemVisual(n,"style"),T=C.fill;if(s instanceof gn){var b=s.style;s.useStyle(G({image:b.image,x:b.x,y:b.y,width:b.width,height:b.height},C))}else s.__isEmptyBrush?s.useStyle(G({},C)):s.useStyle(C),s.style.decal=null,s.setColor(T,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var D=r.getItemVisual(n,"liftZ"),N=this._z2;D!=null?N==null&&(this._z2=s.z2,s.z2+=D):N!=null&&(s.z2=N,this._z2=null);var A=o&&o.useNameLabel;oi(s,m,{labelFetcher:l,labelDataIndex:n,defaultText:M,inheritColor:T,defaultOpacity:C.opacity});function M(L){return A?r.getName(L):No(r,L)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var I=s.ensureState("emphasis");I.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var P=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;I.scaleX=this._sizeX*P,I.scaleY=this._sizeY*P,this.setSymbolScale(1),Kn(this,d,h,p)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,a){var i=this.childAt(0),o=de(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&pl(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();pl(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return rv(r.getItemVisual(n,"symbolSize"))},t}(Ie);function FI(e,t){this.parent.drift(e,t)}function Jc(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function zm(e){return e!=null&&!K(e)&&(e={isIgnore:e}),e||{}}function Gm(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:aa(t),cursorStyle:t.get("cursor")}}var zI=function(){function e(t){this.group=new Ie,this._SymbolCtor=t||dv}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=zm(r);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=Gm(t),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return t.getItemLayout(f)};i||n.removeAll(),t.diff(i).add(function(f){var d=c(f);if(Jc(t,d,f,r)){var h=new o(t,f,l,u);h.setPosition(d),t.setItemGraphicEl(f,h),n.add(h)}}).update(function(f,d){var h=i.getItemGraphicEl(d),p=c(f);if(!Jc(t,p,f,r)){n.remove(h);return}var m=t.getItemVisual(f,"symbol")||"circle",g=h&&h.getSymbolType&&h.getSymbolType();if(!h||g&&g!==m)n.remove(h),h=new o(t,f,l,u),h.setPosition(p);else{h.updateData(t,f,l,u);var y={x:p[0],y:p[1]};s?h.attr(y):tt(h,y,a)}n.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var d=i.getItemGraphicEl(f);d&&d.fadeOut(function(){n.remove(d)},a)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,a){var i=t._getSymbolPoint(a);n.setPosition(i),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Gm(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=zm(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var o=r.getItemLayout(i);if(Jc(r,o,i,n)){var s=new this._SymbolCtor(r,i,this._seriesScope);s.traverse(a),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(i,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){ii(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(a){a.fadeOut(function(){r.remove(a)},n.hostModel)}):r.removeAll()},e}();function Eb(e,t,r){var n=e.getBaseAxis(),a=e.getOtherAxis(n),i=GI(a,r),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=q(e.dimensions,function(p){return t.mapDimension(p)}),d=!1,h=t.getCalculationInfo("stackResultDimension");return ta(t,f[0])&&(d=!0,f[0]=h),ta(t,f[1])&&(d=!0,f[1]=h),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function GI(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:xe(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function Pb(e,t,r,n){var a=NaN;e.stacked&&(a=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=e.valueStart);var i=e.baseDataOffset,o=[];return o[i]=r.get(e.baseDim,n),o[1-i]=a,t.dataToPoint(o)}function HI(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,a){r.push({cmd:"=",idx:a,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function UI(e,t,r,n,a,i,o,s){for(var l=HI(e,t),u=[],c=[],f=[],d=[],h=[],p=[],m=[],g=Eb(a,t,o),y=e.getLayout("points")||[],w=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],x=!0,C=void 0,T=void 0;switch(S.cmd){case"=":C=S.idx*2,T=S.idx1*2;var b=y[C],D=y[C+1],N=w[T],A=w[T+1];(isNaN(b)||isNaN(D))&&(b=N,D=A),u.push(b,D),c.push(N,A),f.push(r[C],r[C+1]),d.push(n[T],n[T+1]),m.push(t.getRawIndex(S.idx1));break;case"+":var M=S.idx,I=g.dataDimsForPoint,P=a.dataToPoint([t.get(I[0],M),t.get(I[1],M)]);T=M*2,u.push(P[0],P[1]),c.push(w[T],w[T+1]);var L=Pb(g,a,t,M);f.push(L[0],L[1]),d.push(n[T],n[T+1]),m.push(t.getRawIndex(M));break;case"-":x=!1}x&&(h.push(S),p.push(p.length))}p.sort(function(Te,fe){return m[Te]-m[fe]});for(var E=u.length,B=Dr(E),R=Dr(E),V=Dr(E),z=Dr(E),Y=[],_=0;_<p.length;_++){var Z=p[_],F=_*2,J=Z*2;B[F]=u[J],B[F+1]=u[J+1],R[F]=c[J],R[F+1]=c[J+1],V[F]=f[J],V[F+1]=f[J+1],z[F]=d[J],z[F+1]=d[J+1],Y[_]=h[Z]}return{current:B,next:R,stackedOnCurrent:V,stackedOnNext:z,status:Y}}var qr=Math.min,jr=Math.max;function Yn(e,t){return isNaN(e)||isNaN(t)}function xh(e,t,r,n,a,i,o,s,l){for(var u,c,f,d,h,p,m=r,g=0;g<n;g++){var y=t[m*2],w=t[m*2+1];if(m>=a||m<0)break;if(Yn(y,w)){if(l){m+=i;continue}break}if(m===r)e[i>0?"moveTo":"lineTo"](y,w),f=y,d=w;else{var _=y-u,S=w-c;if(_*_+S*S<.5){m+=i;continue}if(o>0){for(var x=m+i,C=t[x*2],T=t[x*2+1];C===y&&T===w&&g<n;)g++,x+=i,m+=i,C=t[x*2],T=t[x*2+1],y=t[m*2],w=t[m*2+1],_=y-u,S=w-c;var b=g+1;if(l)for(;Yn(C,T)&&b<n;)b++,x+=i,C=t[x*2],T=t[x*2+1];var D=.5,N=0,A=0,M=void 0,I=void 0;if(b>=n||Yn(C,T))h=y,p=w;else{N=C-u,A=T-c;var P=y-u,L=C-y,E=w-c,B=T-w,R=void 0,V=void 0;if(s==="x"){R=Math.abs(P),V=Math.abs(L);var z=N>0?1:-1;h=y-z*R*o,p=w,M=y+z*V*o,I=w}else if(s==="y"){R=Math.abs(E),V=Math.abs(B);var Y=A>0?1:-1;h=y,p=w-Y*R*o,M=y,I=w+Y*V*o}else R=Math.sqrt(P*P+E*E),V=Math.sqrt(L*L+B*B),D=V/(V+R),h=y-N*o*(1-D),p=w-A*o*(1-D),M=y+N*o*D,I=w+A*o*D,M=qr(M,jr(C,y)),I=qr(I,jr(T,w)),M=jr(M,qr(C,y)),I=jr(I,qr(T,w)),N=M-y,A=I-w,h=y-N*R/V,p=w-A*R/V,h=qr(h,jr(u,y)),p=qr(p,jr(c,w)),h=jr(h,qr(u,y)),p=jr(p,qr(c,w)),N=y-h,A=w-p,M=y+N*V/R,I=w+A*V/R}e.bezierCurveTo(f,d,h,p,y,w),f=M,d=I}else e.lineTo(y,w)}u=y,c=w,m+=i}return g}var Ib=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),WI=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Ib},t.prototype.buildPath=function(r,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&Yn(a[o*2-2],a[o*2-1]);o--);for(;i<o&&Yn(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=xh(r,a,i,o,o,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var a=this.path,i=a.data,o=Zn.CMD,s,l,u=n==="x",c=[],f=0;f<i.length;){var d=i[f++],h=void 0,p=void 0,m=void 0,g=void 0,y=void 0,w=void 0,_=void 0;switch(d){case o.M:s=i[f++],l=i[f++];break;case o.L:if(h=i[f++],p=i[f++],_=u?(r-s)/(h-s):(r-l)/(p-l),_<=1&&_>=0){var S=u?(p-l)*_+l:(h-s)*_+s;return u?[r,S]:[S,r]}s=h,l=p;break;case o.C:h=i[f++],p=i[f++],m=i[f++],g=i[f++],y=i[f++],w=i[f++];var x=u?tl(s,h,m,y,r,c):tl(l,p,g,w,r,c);if(x>0)for(var C=0;C<x;C++){var T=c[C];if(T<=1&&T>=0){var S=u?$e(l,p,g,w,T):$e(s,h,m,y,T);return u?[r,S]:[S,r]}}s=y,l=w;break}}},t}(pe),YI=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Ib),qI=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new YI},t.prototype.buildPath=function(r,n){var a=n.points,i=n.stackedOnPoints,o=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Yn(a[s*2-2],a[s*2-1]);s--);for(;o<s&&Yn(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=xh(r,a,o,s,s,1,n.smooth,l,n.connectNulls);xh(r,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t}(pe);function Lb(e,t,r,n,a){var i=e.getArea(),o=i.x,s=i.y,l=i.width,u=i.height,c=r.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var f=new ke({shape:{x:o,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),p=d.inverse;h?(p&&(f.shape.x+=l),f.shape.width=0):(p||(f.shape.y+=u),f.shape.height=0);var m=ie(a)?function(g){a(g,f)}:null;bt(f,{shape:{width:l,height:u,x:o,y:s}},r,null,n,m)}return f}function Ob(e,t,r){var n=e.getArea(),a=Re(n.r0,1),i=Re(n.r,1),o=new na({shape:{cx:Re(e.cx,1),cy:Re(e.cy,1),r0:a,r:i,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=a,bt(o,{shape:{endAngle:n.endAngle,r:i}},r)}return o}function Rb(e,t,r,n,a){if(e){if(e.type==="polar")return Ob(e,t,r);if(e.type==="cartesian2d")return Lb(e,t,r,n,a)}else return null;return null}function Iu(e,t){return e.type===t}function Hm(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function Um(e){for(var t=1/0,r=1/0,n=-1/0,a=-1/0,i=0;i<e.length;){var o=e[i++],s=e[i++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),a=Math.max(s,a))}return[[t,r],[n,a]]}function Wm(e,t){var r=Um(e),n=r[0],a=r[1],i=Um(t),o=i[0],s=i[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function Ym(e){return xe(e)?e:e?.5:0}function jI(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),a=Dr(n*2),i=0;i<n;i++){var o=Pb(r,e,t,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function Xr(e,t,r,n){var a=t.getBaseAxis(),i=a.dim==="x"||a.dim==="radius"?0:1,o=[],s=0,l=[],u=[],c=[],f=[];if(n){for(s=0;s<e.length;s+=2)!isNaN(e[s])&&!isNaN(e[s+1])&&f.push(e[s],e[s+1]);e=f}for(s=0;s<e.length-2;s+=2)switch(c[0]=e[s+2],c[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],o.push(u[0],u[1]),r){case"end":l[i]=c[i],l[1-i]=u[1-i],o.push(l[0],l[1]);break;case"middle":var d=(u[i]+c[i])/2,h=[];l[i]=h[i]=d,l[1-i]=u[1-i],h[1-i]=c[1-i],o.push(l[0],l[1]),o.push(h[0],h[1]);break;default:l[i]=u[i],l[1-i]=c[1-i],o.push(l[0],l[1])}return o.push(e[s++],e[s++]),o}function XI(e,t){var r=[],n=e.length,a,i;function o(c,f,d){var h=c.coord,p=(d-h)/(f.coord-h),m=zN(p,[c.color,f.color]);return{coord:d,color:m}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)a=l;else if(u>t){i?r.push(o(i,l,t)):a&&r.push(o(a,l,0),o(a,l,t));break}else a&&(r.push(o(a,l,0)),a=null),r.push(l),i=l}return r}function ZI(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())){if(t.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var a,i,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){i=n[o];break}}if(!i){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var l=t.getAxis(a),u=q(i.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=XI(u,a==="x"?r.getWidth():r.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var p=10,m=d[0].coord-p,g=d[h-1].coord+p,y=g-m;if(y<.001)return"transparent";k(d,function(_){_.offset=(_.coord-m)/y}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var w=new A1(0,0,0,0,d,!0);return w[a]=m,w[a+"2"]=g,w}}function KI(e,t,r){var n=e.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=r.getAxesByScale("ordinal")[0];if(i&&!(a&&JI(i,t))){var o=t.mapDimension(i.dim),s={};return k(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function JI(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var a=t.count(),i=Math.max(1,Math.round(a/5)),o=0;o<a;o+=i)if(dv.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function QI(e,t){return isNaN(e)||isNaN(t)}function eL(e){for(var t=e.length/2;t>0&&QI(e[t*2-2],e[t*2-1]);t--);return t-1}function qm(e,t){return[e[t*2],e[t*2+1]]}function tL(e,t,r){for(var n=e.length/2,a=r==="x"?0:1,i,o,s=0,l=-1,u=0;u<n;u++)if(o=e[u*2+a],!(isNaN(o)||isNaN(e[u*2+1-a]))){if(u===0){i=o;continue}if(i<=t&&o>=t||i>=t&&o<=t){l=u;break}s=u,i=o}return{range:[s,l],t:(t-i)/(o-i)}}function Bb(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<vt.length;t++)if(e.get([vt[t],"endLabel","show"]))return!0;return!1}function Qc(e,t,r,n){if(Iu(t,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=Bb(n)?function(h,p){e._endLabelOnDuring(h,p,o,s,i,a,t)}:null,u=t.getBaseAxis().isHorizontal(),c=Lb(t,r,n,function(){var h=e._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var f=c.shape,d=Math.max(f.width,f.height);u?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return l&&l(1,c),c}else return process.env.NODE_ENV!=="production"&&n.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),Ob(t,r,n)}function rL(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),a=r.inverse,i=n?a?"right":"left":"center",o=n?"middle":a?"top":"bottom";return{normal:{align:e.get("align")||i,verticalAlign:e.get("verticalAlign")||o}}}var nL=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new Ie,n=new zI;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r},t.prototype.render=function(r,n,a){var i=this,o=r.coordinateSystem,s=this.group,l=r.getData(),u=r.getModel("lineStyle"),c=r.getModel("areaStyle"),f=l.getLayout("points")||[],d=o.type==="polar",h=this._coordSys,p=this._symbolDraw,m=this._polyline,g=this._polygon,y=this._lineGroup,w=!n.ssr&&r.get("animation"),_=!c.isEmpty(),S=c.get("origin"),x=Eb(o,l,S),C=_&&jI(o,l,x),T=r.get("showSymbol"),b=r.get("connectNulls"),D=T&&!d&&KI(r,l,o),N=this._data;N&&N.eachItemGraphicEl(function(fe,Ve){fe.__temp&&(s.remove(fe),N.setItemGraphicEl(Ve,null))}),T||p.remove(),s.add(y);var A=d?!1:r.get("step"),M;o&&o.getArea&&r.get("clip",!0)&&(M=o.getArea(),M.width!=null?(M.x-=.1,M.y-=.1,M.width+=.2,M.height+=.2):M.r0&&(M.r0-=.5,M.r+=.5)),this._clipShapeForSymbol=M;var I=ZI(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(m&&h.type===o.type&&A===this._step))T&&p.updateData(l,{isIgnore:D,clipShape:M,disableAnimation:!0,getSymbolPoint:function(fe){return[f[fe*2],f[fe*2+1]]}}),w&&this._initSymbolLabelAnimation(l,o,M),A&&(f=Xr(f,o,A,b),C&&(C=Xr(C,o,A,b))),m=this._newPolyline(f),_?g=this._newPolygon(f,C):g&&(y.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(r,o,Jn(I)),y.setClipPath(Qc(this,o,!0,r));else{_&&!g?g=this._newPolygon(f,C):g&&!_&&(y.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(r,o,Jn(I));var P=y.getClipPath();if(P){var L=Qc(this,o,!1,r);bt(P,{shape:L.shape},r)}else y.setClipPath(Qc(this,o,!0,r));T&&p.updateData(l,{isIgnore:D,clipShape:M,disableAnimation:!0,getSymbolPoint:function(fe){return[f[fe*2],f[fe*2+1]]}}),(!Hm(this._stackedOnPoints,C)||!Hm(this._points,f))&&(w?this._doUpdateAnimation(l,C,o,a,A,S,b):(A&&(f=Xr(f,o,A,b),C&&(C=Xr(C,o,A,b))),m.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:C})))}var E=r.getModel("emphasis"),B=E.get("focus"),R=E.get("blurScope"),V=E.get("disabled");if(m.useStyle(he(u.getLineStyle(),{fill:"none",stroke:I,lineJoin:"bevel"})),dl(m,r,"lineStyle"),m.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var z=m.getState("emphasis").style;z.lineWidth=+m.style.lineWidth+1}de(m).seriesIndex=r.seriesIndex,Kn(m,B,R,V);var Y=Ym(r.get("smooth")),Z=r.get("smoothMonotone");if(m.setShape({smooth:Y,smoothMonotone:Z,connectNulls:b}),g){var F=l.getCalculationInfo("stackedOnSeries"),J=0;g.useStyle(he(c.getAreaStyle(),{fill:I,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),F&&(J=Ym(F.get("smooth"))),g.setShape({smooth:Y,stackedOnSmooth:J,smoothMonotone:Z,connectNulls:b}),dl(g,r,"areaStyle"),de(g).seriesIndex=r.seriesIndex,Kn(g,B,R,V)}var Te=function(fe){i._changePolyState(fe)};l.eachItemGraphicEl(function(fe){fe&&(fe.onHoverStateChange=Te)}),this._polyline.onHoverStateChange=Te,this._data=l,this._coordSys=o,this._stackedOnPoints=C,this._points=f,this._step=A,this._valueOrigin=S,r.get("triggerLineEvent")&&(this.packEventData(r,m),g&&this.packEventData(r,g))},t.prototype.packEventData=function(r,n){de(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,a,i){var o=r.getData(),s=Xn(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=r.get("zlevel")||0,h=r.get("z")||0;u=new dv(o,s),u.x=c,u.y=f,u.setZ(d,h);var p=u.getSymbolPath().getTextContent();p&&(p.zlevel=d,p.z=h,p.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else qt.prototype.highlight.call(this,r,n,a,i)},t.prototype.downplay=function(r,n,a,i){var o=r.getData(),s=Xn(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else qt.prototype.downplay.call(this,r,n,a,i)},t.prototype._changePolyState=function(r){var n=this._polygon;ag(this._polyline,r),n&&ag(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new WI({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var a=this._polygon;return a&&this._lineGroup.remove(a),a=new qI({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(r,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");ie(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=ie(f)?f(null):f;r.eachItemGraphicEl(function(h,p){var m=h;if(m){var g=[h.x,h.y],y=void 0,w=void 0,_=void 0;if(a)if(o){var S=a,x=n.pointToCoord(g);i?(y=S.startAngle,w=S.endAngle,_=-x[1]/180*Math.PI):(y=S.r0,w=S.r,_=x[0])}else{var C=a;i?(y=C.x,w=C.x+C.width,_=h.x):(y=C.y+C.height,w=C.y,_=h.y)}var T=w===y?0:(_-y)/(w-y);l&&(T=1-T);var b=ie(f)?f(p):c*T+d,D=m.getSymbolPath(),N=D.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),N&&N.animateFrom({style:{opacity:0}},{duration:300,delay:b}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,a){var i=r.getModel("endLabel");if(Bb(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new He({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=eL(l);c>=0&&(oi(s,aa(r,"endLabel"),{inheritColor:a,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?kb(o,h):No(o,f)},enableTextSetter:!0},rL(i,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,a,i,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&i.originalX==null&&(i.originalX=u.x,i.originalY=u.y);var f=a.getLayout("points"),d=a.hostModel,h=d.get("connectNulls"),p=s.get("precision"),m=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),w=g.inverse,_=n.shape,S=w?y?_.x:_.y+_.height:y?_.x+_.width:_.y,x=(y?m:0)*(w?-1:1),C=(y?0:-m)*(w?-1:1),T=y?"x":"y",b=tL(f,S,T),D=b.range,N=D[1]-D[0],A=void 0;if(N>=1){if(N>1&&!h){var M=qm(f,D[0]);u.attr({x:M[0]+x,y:M[1]+C}),o&&(A=d.getRawValue(D[0]))}else{var M=c.getPointOn(S,T);M&&u.attr({x:M[0]+x,y:M[1]+C});var I=d.getRawValue(D[0]),P=d.getRawValue(D[1]);o&&(A=$D(a,p,I,P,b.t))}i.lastFrameIndex=D[0]}else{var L=r===1||i.lastFrameIndex>0?D[0]:0,M=qm(f,L);o&&(A=d.getRawValue(L)),u.attr({x:M[0]+x,y:M[1]+C})}if(o){var E=du(u);typeof E.setLabelText=="function"&&E.setLabelText(A)}}},t.prototype._doUpdateAnimation=function(r,n,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,d=UI(this._data,r,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),h=d.current,p=d.stackedOnCurrent,m=d.next,g=d.stackedOnNext;if(o&&(h=Xr(d.current,a,o,l),p=Xr(d.stackedOnCurrent,a,o,l),m=Xr(d.next,a,o,l),g=Xr(d.stackedOnNext,a,o,l)),Wm(h,m)>3e3||c&&Wm(p,g)>3e3){u.stopAnimation(),u.setShape({points:m}),c&&(c.stopAnimation(),c.setShape({points:m,stackedOnPoints:g}));return}u.shape.__points=d.current,u.shape.points=h;var y={shape:{points:m}};d.current!==h&&(y.shape.__points=d.next),u.stopAnimation(),tt(u,y,f),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),tt(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var w=[],_=d.status,S=0;S<_.length;S++){var x=_[S].cmd;if(x==="="){var C=r.getItemGraphicEl(_[S].idx1);C&&w.push({el:C,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,b=0;b<w.length;b++){var D=w[b].el,N=w[b].ptIdx*2;D.x=T[N],D.y=T[N+1],D.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(qt);const aL=nL;function iL(e,t){return{seriesType:e,plan:Qd(),reset:function(r){var n=r.getData(),a=r.coordinateSystem,i=r.pipelineContext,o=t||i.large;if(a){var s=q(a.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");ta(n,s[0])&&(s[0]=u),ta(n,s[1])&&(s[1]=u);var c=n.getStore(),f=n.getDimensionIndex(s[0]),d=n.getDimensionIndex(s[1]);return l&&{progress:function(h,p){for(var m=h.end-h.start,g=o&&Dr(m*l),y=[],w=[],_=h.start,S=0;_<h.end;_++){var x=void 0;if(l===1){var C=c.get(f,_);x=a.dataToPoint(C,null,w)}else y[0]=c.get(f,_),y[1]=c.get(d,_),x=a.dataToPoint(y,null,w);o?(g[S++]=x[0],g[S++]=x[1]):p.setItemLayout(_,x.slice())}o&&p.setLayout("points",g)}}}}}}var oL={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},minmax:function(e){for(var t=-1/0,r=-1/0,n=0;n<e.length;n++){var a=e[n],i=Math.abs(a);i>t&&(t=i,r=a)}return isFinite(r)?r:NaN},nearest:function(e){return e[0]}},sL=function(e){return Math.round(e.length/2)};function Vb(e){return{seriesType:e,reset:function(t,r,n){var a=t.getData(),i=t.get("sampling"),o=t.coordinateSystem,s=a.count();if(s>10&&o.type==="cartesian2d"&&i){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){i==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var p=void 0;j(i)?p=oL[i]:ie(i)&&(p=i),p&&t.setData(a.downSample(a.mapDimension(u.dim),1/h,p,sL))}}}}}function lL(e){e.registerChartView(aL),e.registerSeriesModel($I),e.registerLayout(iL("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Vb("line"))}var Th=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return Mu(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,a){var i=this.coordinateSystem;if(i&&i.clampData){var o=i.clampData(r),s=i.dataToPoint(o);if(a)k(i.getAxes(),function(d,h){if(d.type==="category"&&n!=null){var p=d.getTicksCoords(),m=d.getTickModel().get("alignWithLabel"),g=o[h],y=n[h]==="x1"||n[h]==="y1";if(y&&!m&&(g+=1),p.length<2)return;if(p.length===2){s[h]=d.toGlobalCoord(d.getExtent()[y?1:0]);return}for(var w=void 0,_=void 0,S=1,x=0;x<p.length;x++){var C=p[x].coord,T=x===p.length-1?p[x-1].tickValue+S:p[x].tickValue;if(T===g){_=C;break}else if(T<g)w=C;else if(w!=null&&T>g){_=(C+w)/2;break}x===1&&(S=T-p[0].tickValue)}_==null&&(w?w&&(_=p[p.length-1].coord):_=p[0].coord),s[h]=d.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=i.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Rr);Rr.registerClass(Th);var uL=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return Mu(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,a){return a.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=pu(Th.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(Th);const cL=uL;var fL=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),jm=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new fL},t.prototype.buildPath=function(r,n){var a=n.cx,i=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,h=Math.PI*2,p=d?f-c<h:c-f<h;p||(c=f-(d?h:-h));var m=Math.cos(c),g=Math.sin(c),y=Math.cos(f),w=Math.sin(f);p?(r.moveTo(m*o+a,g*o+i),r.arc(m*u+a,g*u+i,l,-Math.PI+c,c,!d)):r.moveTo(m*s+a,g*s+i),r.arc(a,i,s,c,f,!d),r.arc(y*u+a,w*u+i,l,f-Math.PI*2,f-Math.PI,!d),o!==0&&r.arc(a,i,o,f,c,d)},t}(pe);function hL(e,t){t=t||{};var r=t.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return ol(n,a,i);var s=e(o),l=a.distance!=null?a.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,h=u.r0,p=(d+h)/2,m=u.startAngle,g=u.endAngle,y=(m+g)/2,w=r?Math.abs(d-h)/2:0,_=Math.cos,S=Math.sin,x=c+d*_(m),C=f+d*S(m),T="left",b="top";switch(s){case"startArc":x=c+(h-l)*_(y),C=f+(h-l)*S(y),T="center",b="top";break;case"insideStartArc":x=c+(h+l)*_(y),C=f+(h+l)*S(y),T="center",b="bottom";break;case"startAngle":x=c+p*_(m)+Ns(m,l+w,!1),C=f+p*S(m)+Ds(m,l+w,!1),T="right",b="middle";break;case"insideStartAngle":x=c+p*_(m)+Ns(m,-l+w,!1),C=f+p*S(m)+Ds(m,-l+w,!1),T="left",b="middle";break;case"middle":x=c+p*_(y),C=f+p*S(y),T="center",b="middle";break;case"endArc":x=c+(d+l)*_(y),C=f+(d+l)*S(y),T="center",b="bottom";break;case"insideEndArc":x=c+(d-l)*_(y),C=f+(d-l)*S(y),T="center",b="top";break;case"endAngle":x=c+p*_(g)+Ns(g,l+w,!0),C=f+p*S(g)+Ds(g,l+w,!0),T="left",b="middle";break;case"insideEndAngle":x=c+p*_(g)+Ns(g,-l+w,!0),C=f+p*S(g)+Ds(g,-l+w,!0),T="right",b="middle";break;default:return ol(n,a,i)}return n=n||{},n.x=x,n.y=C,n.align=T,n.verticalAlign=b,n}}function dL(e,t,r,n){if(xe(n)){e.setTextConfig({rotation:n});return}else if(U(t)){e.setTextConfig({rotation:0});return}var a=e.shape,i=a.clockwise?a.startAngle:a.endAngle,o=a.clockwise?a.endAngle:a.startAngle,s=(i+o)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=i;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),e.setTextConfig({rotation:c})}function Ns(e,t,r){return t*Math.sin(e)*(r?-1:1)}function Ds(e,t,r){return t*Math.cos(e)*(r?1:-1)}function Zi(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;U(n)||(n=[n,n,n,n]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:q(n,function(i){return hn(i,a)})}}var ef=Math.max,tf=Math.min;function vL(e,t){var r=e.getArea&&e.getArea();if(Iu(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=a,r.width+=a*2):(r.y-=a,r.height+=a*2)}}return r}var pL=function(e){H(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,a,i){this._model=r,this._removeOnRenderedListener(a),this._updateDrawMode(r);var o=r.get("coordinateSystem");o==="cartesian2d"||o==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,a):this._renderNormal(r,n,a,i)):process.env.NODE_ENV!=="production"&&Fe("Only cartesian2d and polar supported for bar.")},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){ii(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,a,i){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var d=r.isAnimationEnabled()?r:null,h=gL(r,u);h&&this._enableRealtimeSort(h,s,a);var p=r.get("clip",!0)||h,m=vL(u,s);o.removeClipPath();var g=r.get("roundCap",!0),y=r.get("showBackground",!0),w=r.getModel("backgroundStyle"),_=w.get("borderRadius")||0,S=[],x=this._backgroundEls,C=i&&i.isInitSort,T=i&&i.type==="changeAxisOrder";function b(A){var M=As[u.type](s,A),I=CL(u,f,M);return I.useStyle(w.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),S[A]=I,I}s.diff(l).add(function(A){var M=s.getItemModel(A),I=As[u.type](s,A,M);if(y&&b(A),!(!s.hasValue(A)||!Qm[u.type](I))){var P=!1;p&&(P=Xm[u.type](m,I));var L=Zm[u.type](r,s,A,I,f,d,c.model,!1,g);h&&(L.forceLabelAnimation=!0),ey(L,s,A,M,I,r,f,u.type==="polar"),C?L.attr({shape:I}):h?Km(h,d,L,I,A,f,!1,!1):bt(L,{shape:I},r,A),s.setItemGraphicEl(A,L),o.add(L),L.ignore=P}}).update(function(A,M){var I=s.getItemModel(A),P=As[u.type](s,A,I);if(y){var L=void 0;x.length===0?L=b(M):(L=x[M],L.useStyle(w.getItemStyle()),u.type==="cartesian2d"?L.setShape("r",_):L.setShape("cornerRadius",_),S[A]=L);var E=As[u.type](s,A),B=Fb(f,E,u);tt(L,{shape:B},d,A)}var R=l.getItemGraphicEl(M);if(!s.hasValue(A)||!Qm[u.type](P)){o.remove(R);return}var V=!1;if(p&&(V=Xm[u.type](m,P),V&&o.remove(R)),R?Od(R):R=Zm[u.type](r,s,A,P,f,d,c.model,!!R,g),h&&(R.forceLabelAnimation=!0),T){var z=R.getTextContent();if(z){var Y=du(z);Y.prevValue!=null&&(Y.prevValue=Y.value)}}else ey(R,s,A,I,P,r,f,u.type==="polar");C?R.attr({shape:P}):h?Km(h,d,R,P,A,f,!0,T):tt(R,{shape:P},r,A,null),s.setItemGraphicEl(A,R),R.ignore=V,o.add(R)}).remove(function(A){var M=l.getItemGraphicEl(A);M&&gl(M,r,A)}).execute();var D=this._backgroundGroup||(this._backgroundGroup=new Ie);D.removeAll();for(var N=0;N<S.length;++N)D.add(S[N]);o.add(D),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(r,n,a){this._clear(),ry(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),ry(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&Rb(r.coordinateSystem,!1,r),a=this.group;n?a.setClipPath(n):a.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,a){var i=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){i._updateSortWithinSameData(n,s,o,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,a){var i=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=a(s);l=l??NaN,i.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),i.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:q(i,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,a){for(var i=a.scale,o=r.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=i.getOrdinalMeta().categories.length;l<u;++l){var c=r.rawIndexOf(o,i.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:n(r.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var a=n.scale,i=a.getExtent(),o=Math.max(0,i[0]),s=Math.min(i[1],a.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==a.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,a,i){if(this._isOrderChangedWithinSameData(r,n,a)){var o=this._dataSort(r,a,n);this._isOrderDifferentInView(o,a)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,a){var i=n.baseAxis,o=this._dataSort(r,i,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,a=this._data;r&&r.isAnimationEnabled()&&a&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],a.eachItemGraphicEl(function(i){gl(i,r,de(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(qt),Xm={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var a=e.x+e.width,i=e.y+e.height,o=ef(t.x,e.x),s=tf(t.x+t.width,a),l=ef(t.y,e.y),u=tf(t.y+t.height,i),c=s<o,f=u<l;return t.x=c&&o>a?s:o,t.y=f&&l>i?u:l,t.width=c?0:s-o,t.height=f?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var a=tf(t.r,e.r),i=ef(t.r0,e.r0);t.r=a,t.r0=i;var o=a-i<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},Zm={cartesian2d:function(e,t,r,n,a,i,o,s,l){var u=new ke({shape:G({},n),z2:1});if(u.__dataIndex=r,u.name="item",i){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,a,i,o,s,l){var u=!a&&l?jm:na,c=new u({shape:n,z2:1});c.name="item";var f=$b(a);if(c.calculateTextPosition=hL(f,{isRoundCap:u===jm}),i){var d=c.shape,h=a?"r":"endAngle",p={};d[h]=a?n.r0:n.startAngle,p[h]=n[h],(s?tt:bt)(c,{shape:p},i)}return c}};function gL(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(process.env.NODE_ENV!=="production"&&r&&(n.type!=="category"&&Fe("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!=="cartesian2d"&&Fe("`realtimeSort` will not work because this bar series is not on cartesian2d.")),r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function Km(e,t,r,n,a,i,o,s){var l,u;i?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?tt:bt)(r,{shape:l},t,a,null);var c=t?e.baseAxis.model:null;(o?tt:bt)(r,{shape:u},c,a)}function Jm(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var mL=["x","y","width","height"],yL=["cx","cy","r","startAngle","endAngle"],Qm={cartesian2d:function(e){return!Jm(e,mL)},polar:function(e){return!Jm(e,yL)}},As={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),a=r?wL(r,n):0,i=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+i*a/2,y:n.y+o*a/2,width:n.width-i*a,height:n.height-o*a}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function _L(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function $b(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function ey(e,t,r,n,a,i,o,s){var l=t.getItemVisual(r,"style");if(s){if(!i.get("roundCap")){var c=e.shape,f=Zi(n.getModel("itemStyle"),c,!0);G(c,f),e.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=n.getShallow("cursor");d&&e.attr("cursor",d);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",p=aa(n);oi(e,p,{labelFetcher:i,labelDataIndex:r,defaultText:No(i.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var m=e.getTextContent();if(s&&m){var g=n.get(["label","position"]);e.textConfig.inside=g==="middle"?!0:null,dL(e,g==="outside"?h:g,$b(o),n.get(["label","rotate"]))}QM(m,p,i.getRawValue(r),function(w){return kb(t,w)});var y=n.getModel(["emphasis"]);Kn(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),dl(e,n),_L(a)&&(e.style.fill="none",e.style.stroke="none",k(e.states,function(w){w.style&&(w.style.fill=w.style.stroke="none")}))}function wL(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,a=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),i=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,i)}var bL=function(){function e(){}return e}(),ty=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new bL},t.prototype.buildPath=function(r,n){for(var a=n.points,i=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<a.length;c+=3)l[i]=u,l[o]=a[c+2],s[i]=a[c+i],s[o]=a[c+o],r.rect(s[0],s[1],l[0],l[1])},t}(pe);function ry(e,t,r,n){var a=e.getData(),i=a.getLayout("valueAxisHorizontal")?1:0,o=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=e.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var c=new ty({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=i,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),r&&r.push(c)}var f=new ty({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=i,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(a.getVisual("style")),de(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",ny),f.on("mousemove",ny)),r&&r.push(f)}var ny=tv(function(e){var t=this,r=SL(t,e.offsetX,e.offsetY);de(t).dataIndex=r>=0?r:null},30,!1);function SL(e,t,r){for(var n=e.baseDimIdx,a=1-n,i=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=i.length/3;c<f;c++){var d=c*3;if(l[n]=u,l[a]=i[d+2],s[n]=i[d+n],s[a]=i[d+a],l[a]<0&&(s[a]+=l[a],l[a]=-l[a]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function Fb(e,t,r){if(Iu(r,"cartesian2d")){var n=t,a=r.getArea();return{x:e?n.x:a.x,y:e?a.y:n.y,width:e?n.width:a.width,height:e?a.height:n.height}}else{var a=r.getArea(),i=t;return{cx:a.cx,cy:a.cy,r0:e?a.r0:i.r0,r:e?a.r:i.r,startAngle:e?i.startAngle:0,endAngle:e?i.endAngle:Math.PI*2}}}function CL(e,t,r){var n=e.type==="polar"?na:ke;return new n({shape:Fb(t,r,e),silent:!0,z2:0})}const xL=pL;function TL(e){e.registerChartView(xL),e.registerSeriesModel(cL),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,be(WP,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,YP("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Vb("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(a){t.sortInfo&&a.axis.setCategorySortInfo(t.sortInfo)})})}var ay=Math.PI*2,Ms=Math.PI/180;function zb(e,t){return Qn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function Gb(e,t){var r=zb(e,t),n=e.get("center"),a=e.get("radius");U(a)||(a=[0,a]);var i=Ce(r.width,t.getWidth()),o=Ce(r.height,t.getHeight()),s=Math.min(i,o),l=Ce(a[0],s/2),u=Ce(a[1],s/2),c,f,d=e.coordinateSystem;if(d){var h=d.dataToPoint(n);c=h[0]||0,f=h[1]||0}else U(n)||(n=[n,n]),c=Ce(n[0],i)+r.x,f=Ce(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function NL(e,t,r){t.eachSeriesByType(e,function(n){var a=n.getData(),i=a.mapDimension("value"),o=zb(n,r),s=Gb(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*Ms,h=n.get("endAngle"),p=n.get("padAngle")*Ms;h=h==="auto"?d-ay:-h*Ms;var m=n.get("minAngle")*Ms,g=m+p,y=0;a.each(i,function(E){!isNaN(E)&&y++});var w=a.getSum(i),_=Math.PI/(w||y)*2,S=n.get("clockwise"),x=n.get("roseType"),C=n.get("stillShowZeroSum"),T=a.getDataExtent(i);T[0]=0;var b=S?1:-1,D=[d,h],N=b*p/2;Y_(D,!S),d=D[0],h=D[1];var A=Math.abs(h-d),M=A,I=0,P=d;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(E,B){var R;if(isNaN(E)){a.setItemLayout(B,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:f,r:x?NaN:c});return}x!=="area"?R=w===0&&C?_:E*_:R=A/y,R<g?(R=g,M-=g):I+=E;var V=P+b*R,z=0,Y=0;p>R?(z=P+b*R/2,Y=z):(z=P+N,Y=V-N),a.setItemLayout(B,{angle:R,startAngle:z,endAngle:Y,clockwise:S,cx:l,cy:u,r0:f,r:x?We(E,T,[f,c]):c}),P=V}),M<ay&&y)if(M<=.001){var L=A/y;a.each(i,function(E,B){if(!isNaN(E)){var R=a.getItemLayout(B);R.angle=L;var V=0,z=0;L<p?(V=d+b*(B+1/2)*L,z=V):(V=d+b*B*L+N,z=d+b*(B+1)*L-N),R.startAngle=V,R.endAngle=z}})}else _=M/I,P=d,a.each(i,function(E,B){if(!isNaN(E)){var R=a.getItemLayout(B),V=R.angle===g?g:E*_,z=0,Y=0;V<p?(z=P+b*V/2,Y=z):(z=P+N,Y=P+b*V-N),R.startAngle=z,R.endAngle=Y,P+=b*V}})})}function DL(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var a=t.getData();a.filterSelf(function(i){for(var o=a.getName(i),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var AL=Math.PI/180;function iy(e,t,r,n,a,i,o,s,l,u){if(e.length<2)return;function c(m){for(var g=m.rB,y=g*g,w=0;w<m.list.length;w++){var _=m.list[w],S=Math.abs(_.label.y-r),x=n+_.len,C=x*x,T=Math.sqrt((1-Math.abs(S*S/y))*C),b=t+(T+_.len2)*a,D=b-_.label.x,N=_.targetTextWidth-D*a;Hb(_,N,!0),_.label.x=b}}function f(m){for(var g={list:[],maxY:0},y={list:[],maxY:0},w=0;w<m.length;w++)if(m[w].labelAlignTo==="none"){var _=m[w],S=_.label.y>r?y:g,x=Math.abs(_.label.y-r);if(x>=S.maxY){var C=_.label.x-t-_.len2*a,T=n+_.len,b=Math.abs(C)<T?Math.sqrt(x*x/(1-C*C/T/T)):T;S.rB=b,S.maxY=x}S.list.push(_)}c(g),c(y)}for(var d=e.length,h=0;h<d;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var p=e[h].label.x-u;e[h].linePoints[1][0]+=p,e[h].label.x=u}RI(e,l,l+o)&&f(e)}function ML(e,t,r,n,a,i,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<e.length;d++){var h=e[d].label;rf(e[d])||(h.x<t?(c=Math.min(c,h.x),l.push(e[d])):(f=Math.max(f,h.x),u.push(e[d])))}for(var d=0;d<e.length;d++){var p=e[d];if(!rf(p)&&p.linePoints){if(p.labelStyleWidth!=null)continue;var h=p.label,m=p.linePoints,g=void 0;p.labelAlignTo==="edge"?h.x<t?g=m[2][0]-p.labelDistance-o-p.edgeDistance:g=o+a-p.edgeDistance-m[2][0]-p.labelDistance:p.labelAlignTo==="labelLine"?h.x<t?g=c-o-p.bleedMargin:g=o+a-f-p.bleedMargin:h.x<t?g=h.x-o-p.bleedMargin:g=o+a-h.x-p.bleedMargin,p.targetTextWidth=g,Hb(p,g)}}iy(u,t,r,n,1,a,i,o,s,f),iy(l,t,r,n,-1,a,i,o,s,c);for(var d=0;d<e.length;d++){var p=e[d];if(!rf(p)&&p.linePoints){var h=p.label,m=p.linePoints,y=p.labelAlignTo==="edge",w=h.style.padding,_=w?w[1]+w[3]:0,S=h.style.backgroundColor?0:_,x=p.rect.width+S,C=m[1][0]-m[2][0];y?h.x<t?m[2][0]=o+p.edgeDistance+x+p.labelDistance:m[2][0]=o+a-p.edgeDistance-x-p.labelDistance:(h.x<t?m[2][0]=h.x+p.labelDistance:m[2][0]=h.x-p.labelDistance,m[1][0]=m[2][0]+C),m[1][1]=m[2][1]=h.y}}}function Hb(e,t,r){if(r===void 0&&(r=!1),e.labelStyleWidth==null){var n=e.label,a=n.style,i=e.rect,o=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,c=i.width+(o?0:l);if(t<c||r){var f=i.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var d=n.getBoundingRect();n.setStyle("width",Math.ceil(d.width)),n.setStyle("backgroundColor",o)}else{var h=t-l,p=t<c?h:r?h>e.unconstrainedWidth?null:h:null;n.setStyle("width",p)}var m=n.getBoundingRect();i.width=m.width;var g=(n.style.margin||0)+2.1;i.height=m.height+g,i.y-=(i.height-f)/2}}}function rf(e){return e.position==="center"}function kL(e){var t=e.getData(),r=[],n,a,i=!1,o=(e.get("minShowLabelAngle")||0)*AL,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(C){C.ignore=!0}function p(C){if(!C.ignore)return!0;for(var T in C.states)if(C.states[T].ignore===!1)return!0;return!1}t.each(function(C){var T=t.getItemGraphicEl(C),b=T.shape,D=T.getTextContent(),N=T.getTextGuideLine(),A=t.getItemModel(C),M=A.getModel("label"),I=M.get("position")||A.get(["emphasis","label","position"]),P=M.get("distanceToLabelLine"),L=M.get("alignTo"),E=Ce(M.get("edgeDistance"),u),B=M.get("bleedMargin"),R=A.getModel("labelLine"),V=R.get("length");V=Ce(V,u);var z=R.get("length2");if(z=Ce(z,u),Math.abs(b.endAngle-b.startAngle)<o){k(D.states,h),D.ignore=!0,N&&(k(N.states,h),N.ignore=!0);return}if(p(D)){var Y=(b.startAngle+b.endAngle)/2,Z=Math.cos(Y),F=Math.sin(Y),J,Te,fe,Ve;n=b.cx,a=b.cy;var je=I==="inside"||I==="inner";if(I==="center")J=b.cx,Te=b.cy,Ve="center";else{var Be=(je?(b.r+b.r0)/2*Z:b.r*Z)+n,Me=(je?(b.r+b.r0)/2*F:b.r*F)+a;if(J=Be+Z*3,Te=Me+F*3,!je){var te=Be+Z*(V+l-b.r),le=Me+F*(V+l-b.r),gt=te+(Z<0?-1:1)*z,Le=le;L==="edge"?J=Z<0?c+E:c+u-E:J=gt+(Z<0?-P:P),Te=Le,fe=[[Be,Me],[te,le],[gt,Le]]}Ve=je?"center":L==="edge"?Z>0?"right":"left":Z>0?"left":"right"}var zt=Math.PI,St=0,$r=M.get("rotate");if(xe($r))St=$r*(zt/180);else if(I==="center")St=0;else if($r==="radial"||$r===!0){var zo=Z<0?-Y+zt:-Y;St=zo}else if($r==="tangential"&&I!=="outside"&&I!=="outer"){var _r=Math.atan2(Z,F);_r<0&&(_r=zt*2+_r);var Go=F>0;Go&&(_r=zt+_r),St=_r-zt}if(i=!!St,D.x=J,D.y=Te,D.rotation=St,D.setStyle({verticalAlign:"middle"}),je){D.setStyle({align:Ve});var ca=D.states.select;ca&&(ca.x+=D.x,ca.y+=D.y)}else{var Fr=D.getBoundingRect().clone();Fr.applyTransform(D.getComputedTransform());var gi=(D.style.margin||0)+2.1;Fr.y-=gi/2,Fr.height+=gi,r.push({label:D,labelLine:N,position:I,len:V,len2:z,minTurnAngle:R.get("minTurnAngle"),maxSurfaceAngle:R.get("maxSurfaceAngle"),surfaceNormal:new se(Z,F),linePoints:fe,textAlign:Ve,labelDistance:P,labelAlignTo:L,edgeDistance:E,bleedMargin:B,rect:Fr,unconstrainedWidth:Fr.width,labelStyleWidth:D.style.width})}T.setTextConfig({inside:je})}}),!i&&e.get("avoidLabelOverlap")&&ML(r,n,a,l,u,d,c,f);for(var m=0;m<r.length;m++){var g=r[m],y=g.label,w=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(k(y.states,h),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(w){var x=g.linePoints;_||!x?(k(w.states,h),w.ignore=!0):(MI(x,g.minTurnAngle),kI(x,g.surfaceNormal,g.maxSurfaceAngle),w.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new se(x[0][0],x[0][1])})}}}var EL=function(e){H(t,e);function t(r,n,a){var i=e.call(this)||this;i.z2=2;var o=new He;return i.setTextContent(o),i.updateData(r,n,a,!0),i}return t.prototype.updateData=function(r,n,a,i){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),c=r.getItemLayout(n),f=G(Zi(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(i){o.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?(bt(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):d==="scale"?(o.shape.r=c.r0,bt(o,{shape:{r:c.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),bt(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,tt(o,{shape:{endAngle:c.endAngle}},s,n))}else Od(o),tt(o,{shape:f},s,n);o.useStyle(r.getItemVisual(n,"style")),dl(o,l);var h=(c.startAngle+c.endAngle)/2,p=s.get("selectedOffset"),m=Math.cos(h)*p,g=Math.sin(h)*p,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=G({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Zi(u.getModel("itemStyle"),c)),G(o.ensureState("select"),{x:m,y:g,shape:Zi(l.getModel(["select","itemStyle"]),c)}),G(o.ensureState("blur"),{shape:Zi(l.getModel(["blur","itemStyle"]),c)});var w=o.getTextGuideLine(),_=o.getTextContent();w&&G(w.ensureState("select"),{x:m,y:g}),G(_.ensureState("select"),{x:m,y:g}),Kn(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,a){var i=this,o=n.getItemModel(a),s=o.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,c=l&&l.opacity;oi(i,aa(o),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:c,defaultText:r.getFormattedLabel(a,"normal")||n.getName(a)});var f=i.getTextContent();i.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=r.get(["label","position"]);if(d!=="outside"&&d!=="outer")i.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new ai,this.setTextGuideLine(h)),PI(this,II(o),{stroke:u,opacity:sn(s.get(["lineStyle","opacity"]),c,1)})}},t}(na),PL=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,a,i){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var d=new na({shape:Gb(r,a)});d.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add(function(h){var p=new EL(o,h,u);o.setItemGraphicEl(h,p),l.add(p)}).update(function(h,p){var m=s.getItemGraphicEl(p);m.updateData(o,h,u),m.off("click"),l.add(m),o.setItemGraphicEl(h,m)}).remove(function(h){var p=s.getItemGraphicEl(h);gl(p,r,h)}).execute(),kL(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=r[0]-i.cx,s=r[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t}(qt);const IL=PL;function LL(e,t,r){t=U(t)&&{coordDimensions:t}||G({encodeDefine:e.getEncode()},t);var n=e.getSource(),a=ib(n,t).dimensions,i=new fo(a,e);return i.initData(n,r),i}var OL=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}();const RL=OL;var BL=Ne(),VL=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new RL(Q(this.getData,this),Q(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return LL(this,{coordDimensions:["value"],encodeDefaulter:be(Dk,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),a=BL(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=mD(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=i[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){cl(r,"labelLine",["show"]);var n=r.labelLine,a=r.emphasis.labelLine;n.show=n.show&&r.label.show,a.show=a.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(Rr);const $L=VL;function FL(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(a){var i=n.mapDimension("value"),o=n.get(i,a);return!(xe(o)&&!isNaN(o)&&o<0)})}}}function zL(e){e.registerChartView(IL),e.registerSeriesModel($L),h5("pie",e.registerAction),e.registerLayout(be(NL,"pie")),e.registerProcessor(DL("pie")),e.registerProcessor(FL("pie"))}var GL=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Se);const HL=GL;var Nh=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",dt).models[0]},t.type="cartesian2dAxis",t}(Se);Jt(Nh,gI);var Ub={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},UL=ve({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Ub),vv=ve({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},Ub),WL=ve({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},vv),YL=he({logBase:10},vv);const qL={category:UL,value:vv,time:WL,log:YL};var jL={value:1,category:1,time:1,log:1};function oy(e,t,r,n){k(jL,function(a,i){var o=ve(ve({},qL[i],!0),n,!0),s=function(l){H(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=bo(this),h=d?Bo(c):{},p=f.getTheme();ve(c,p.get(i+"Axis")),ve(c,this.getDefaultOption()),c.type=sy(c),d&&Ja(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=bh.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+i,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",sy)}function sy(e){return e.type||(e.data?"category":"value")}var XL=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return q(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),qe(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}();const ZL=XL;var Dh=["x","y"];function ly(e){return e.type==="interval"||e.type==="time"}var KL=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=Dh,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!ly(r)||!ly(n))){var a=r.getExtent(),i=n.getExtent(),o=this.dataToPoint([a[0],i[0]]),s=this.dataToPoint([a[1],i[1]]),l=a[1]-a[0],u=i[1]-i[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-a[0]*c,h=o[1]-i[0]*f,p=this._transform=[c,0,0,f,d,h];this._invTransform=pd([],p)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),a=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&a.contain(a.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var a=this.dataToPoint(r),i=this.dataToPoint(n),o=this.getArea(),s=new ye(a[0],a[1],i[0]-a[0],i[1]-a[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,a){a=a||[];var i=r[0],o=r[1];if(this._transform&&i!=null&&isFinite(i)&&o!=null&&isFinite(o))return Vt(a,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(i,n)),a[1]=l.toGlobalCoord(l.dataToCoord(o,n)),a},t.prototype.clampData=function(r,n){var a=this.getAxis("x").scale,i=this.getAxis("y").scale,o=a.getExtent(),s=i.getExtent(),l=a.parse(r[0]),u=i.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var a=[];if(this._invTransform)return Vt(a,r,this._invTransform);var i=this.getAxis("x"),o=this.getAxis("y");return a[0]=i.coordToData(i.toLocalCoord(r[0]),n),a[1]=o.coordToData(o.toLocalCoord(r[1]),n),a},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),a=this.getAxis("y").getGlobalExtent(),i=Math.min(n[0],n[1])-r,o=Math.min(a[0],a[1])-r,s=Math.max(n[0],n[1])-i+r,l=Math.max(a[0],a[1])-o+r;return new ye(i,o,s,l)},t}(ZL),JL=function(e){H(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(AI);const QL=JL;function Ah(e,t,r){r=r||{};var n=e.coordinateSystem,a=t.axis,i={},o=a.getAxesOnZeroOf()[0],s=a.position,l=o?"onZero":s,u=a.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,p=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var m=o.toGlobalCoord(o.dataToCoord(0));p[d.onZero]=Math.max(Math.min(m,p[1]),p[0])}i.position=[u==="y"?p[d[l]]:f[0],u==="x"?p[d[l]]:f[3]],i.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=g[s],i.labelOffset=o?p[d[s]]-p[d.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),fn(r.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var y=t.get(["axisLabel","rotate"]);return i.labelRotate=l==="top"?-y:y,i.z2=1,i}function uy(e){return e.get("coordinateSystem")==="cartesian2d"}function cy(e){var t={xAxisModel:null,yAxisModel:null};return k(t,function(r,n){var a=n.replace(/Model$/,""),i=e.getReferringComponents(a,dt).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error(a+' "'+sn(e.get(a+"Index"),e.get(a+"Id"),0)+'" not found');t[n]=i}),t}var nf=Math.log;function eO(e,t,r){var n=Vo.prototype,a=n.getTicks.call(r),i=n.getTicks.call(r,!0),o=a.length-1,s=n.getInterval.call(r),l=wb(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=nf(e.base);u=[nf(u[0])/d,nf(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var h=n.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var p=n.getInterval.call(e),m=u[0],g=u[1];if(c&&f)p=(g-m)/o;else if(c)for(g=u[0]+p*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)p=Zc(p),g=u[0]+p*o;else if(f)for(m=u[1]-p*o;m>u[0]&&isFinite(m)&&isFinite(u[0]);)p=Zc(p),m=u[1]-p*o;else{var y=e.getTicks().length-1;y>o&&(p=Zc(p));var w=p*o;g=Math.ceil(u[1]/p)*p,m=Re(g-w),m<0&&u[0]>=0?(m=0,g=Re(w)):g>0&&u[1]<=0&&(g=0,m=-Re(w))}var _=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;if(n.setExtent.call(e,m+p*_,g+p*S),n.setInterval.call(e,p),(_||S)&&n.setNiceExtent.call(e,m+p,g-p),process.env.NODE_ENV!=="production"){var x=n.getTicks.call(e);x[1]&&(!VP(p)||Jf(x[1].value)>Jf(p))&&Fe("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}}var tO=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Dh,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function a(o){var s,l=_e(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],p=h.model,m=h.scale;Sh(m)&&p.get("alignTicks")&&p.get("interval")==null?c.push(h):(Bm(m,p),Sh(m)&&(s=h))}c.length&&(s||(s=c.pop(),Bm(s.scale,s.model)),k(c,function(g){eO(g.scale,g.model,s.scale)}))}}a(n.x),a(n.y);var i={};k(n.x,function(o){fy(n,"y",o,i)}),k(n.y,function(o){fy(n,"x",o,i)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var a=t.getBoxLayoutParams(),i=!n&&t.get("containLabel"),o=Qn(a,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(k(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=dI(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),k(this._coordsList,function(u){u.calcAffineTransform()});function l(){k(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),rO(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}K(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,i=this._coordsList;a<i.length;a++)if(i[a].getAxis("x").index===t||i[a].getAxis("y").index===r)return i[a]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.dataToPoint(n):a.axis?a.axis.toGlobalCoord(a.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var a=this._findConvertTarget(r);return a.cartesian?a.cartesian.pointToData(n):a.axis?a.axis.coordToData(a.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",dt).models[0],a=t.yAxisModel||r&&r.getReferringComponents("yAxis",dt).models[0],i=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,ce(o,s)<0&&(s=null);else if(n&&a)s=this.getCartesian(n.componentIndex,a.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(a)l=this.getAxis("y",a.componentIndex);else if(i){var u=i.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var a=this,i=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,k(s.x,function(c,f){k(s.y,function(d,h){var p="x"+f+"y"+h,m=new KL(p);m.master=a,m.model=t,a._coordsMap[p]=m,a._coordsList.push(m),m.addAxis(c),m.addAxis(d)})});function u(c){return function(f,d){if(af(f,t)){var h=f.get("position");c==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var p=new QL(c,fI(f),[0,0],f.get("type"),h),m=p.type==="category";p.onBand=m&&f.get("boundaryGap"),p.inverse=f.get("inverse"),f.axis=p,p.model=f,p.grid=i,p.index=d,i._axesList.push(p),s[c][d]=p,l[c]++}}}},e.prototype._updateScale=function(t,r){k(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var i=a.model.get("categorySortInfo");a.scale.setSortInfo(i)}}),t.eachSeries(function(a){if(uy(a)){var i=cy(a),o=i.xAxisModel,s=i.yAxisModel;if(!af(o,r)||!af(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=a.getData(),c=l.getAxis("x"),f=l.getAxis("y");n(u,c),n(u,f)}},this);function n(a,i){k(Sb(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return k(this.getCartesians(),function(a){var i=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),o=a.getOtherAxis(i);ce(r,i)<0&&r.push(i),ce(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(a,i){var o=new e(a,t,r);o.name="grid_"+i,o.resize(a,r,!0),a.coordinateSystem=o,n.push(o)}),t.eachSeries(function(a){if(uy(a)){var i=cy(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!l)throw new Error('Grid "'+sn(o.get("gridIndex"),o.get("gridId"),0)+'" not found');if(o.getCoordSysModel()!==s.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=Dh,e}();function af(e,t){return e.getCoordSysModel()===t}function fy(e,t,r,n){r.getAxesOnZeroOf=function(){return i?[i]:[]};var a=e[t],i,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)hy(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&hy(a[u])&&!n[c(a[u])]){i=a[u];break}i&&(n[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function hy(e){return e&&e.type!=="category"&&e.type!=="time"&&hI(e)}function rO(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(a){return a+t}:function(a){return n-a+t},e.toLocalCoord=e.dim==="x"?function(a){return a-t}:function(a){return n-a+t}}const nO=tO;var rn=Math.PI,qn=function(){function e(t,r){this.group=new Ie,this.opt=r,this.axisModel=t,he(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Ie({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!dy[t]},e.prototype.add=function(t){dy[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var a=P_(r-t),i,o;return sl(a)?(o=n>0?"top":"bottom",i="center"):sl(a-rn)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<rn?i=n>0?"right":"left":i=n>0?"left":"right"),{rotation:a,textAlign:i,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),dy={axisLine:function(e,t,r,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&e.handleAutoShown&&(a=e.handleAutoShown("axisLine")),!!a){var i=t.axis.getExtent(),o=n.transform,s=[i[0],0],l=[i[1],0],u=s[0]>l[0];o&&(Vt(s,s,o),Vt(l,l,o));var c=G({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new dn({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});yo(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);j(d)&&(d=[d,d]),(j(h)||xe(h))&&(h=[h,h]);var p=Nu(t.get(["axisLine","symbolOffset"])||0,h),m=h[0],g=h[1];k([{rotate:e.rotation+Math.PI/2,offset:p[0],r:0},{rotate:e.rotation-Math.PI/2,offset:p[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,w){if(d[w]!=="none"&&d[w]!=null){var _=Br(d[w],-m/2,-g/2,m,g,c.stroke,!0),S=y.r+y.offset,x=u?l:s;_.attr({rotation:y.rotate,x:x[0]+S*Math.cos(e.rotation),y:x[1]-S*Math.sin(e.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(e,t,r,n){var a=oO(r,n,t,e),i=lO(r,n,t,e);if(iO(t,i,a),sO(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=LI(q(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));BI(o)}},axisName:function(e,t,r,n){var a=fn(e.axisName,t.get("name"));if(a){var i=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[i==="start"?u[0]-c*l:i==="end"?u[1]+c*l:(u[0]+u[1])/2,py(i)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*rn/180);var p;py(i)?d=qn.innerTextLayout(e.rotation,h??e.rotation,o):(d=aO(e.rotation,i,h||0,u),p=e.axisNameAvailableWidth,p!=null&&(p=Math.abs(p/Math.sin(d.rotation)),!isFinite(p)&&(p=null)));var m=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,w=fn(e.nameTruncateMaxWidth,g.maxWidth,p),_=new He({x:f[0],y:f[1],rotation:d.rotation,silent:qn.isLabelSilent(t),style:Xt(s,{text:a,font:m,overflow:"truncate",width:w,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(Bd({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=qn.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,de(_).eventData=S}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function aO(e,t,r,n){var a=P_(r-e),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return sl(a-rn/2)?(o=l?"bottom":"top",i="center"):sl(a-rn*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<rn*1.5&&a>rn/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function iO(e,t,r){if(!bb(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),a=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var i=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],f=r[r.length-1],d=r[r.length-2];n===!1?(Tt(i),Tt(u)):vy(i,o)&&(n?(Tt(o),Tt(c)):(Tt(i),Tt(u))),a===!1?(Tt(s),Tt(f)):vy(l,s)&&(a?(Tt(l),Tt(d)):(Tt(s),Tt(f)))}}function Tt(e){e&&(e.ignore=!0)}function vy(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var a=dd([]);return vd(a,a,-e.rotation),r.applyTransform(Va([],a,e.getLocalTransform())),n.applyTransform(Va([],a,t.getLocalTransform())),r.intersect(n)}}function py(e){return e==="middle"||e==="center"}function Wb(e,t,r,n,a){for(var i=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(Vt(o,o,t),Vt(s,s,t));var c=new dn({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});yo(c.shape,c.style.lineWidth),c.anid=a+"_"+e[l].tickValue,i.push(c)}return i}function oO(e,t,r,n){var a=r.axis,i=r.getModel("axisTick"),o=i.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||a.scale.isBlank())){for(var s=i.getModel("lineStyle"),l=n.tickDirection*i.get("length"),u=a.getTicksCoords(),c=Wb(u,t.transform,l,he(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function sO(e,t,r,n){var a=r.axis,i=r.getModel("minorTick");if(!(!i.get("show")||a.scale.isBlank())){var o=a.getMinorTicksCoords();if(o.length)for(var s=i.getModel("lineStyle"),l=n*i.get("length"),u=he(s.getLineStyle(),he(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=Wb(o[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function lO(e,t,r,n){var a=r.axis,i=fn(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(fn(n.labelRotate,o.get("rotate"))||0)*rn/180,c=qn.innerTextLayout(n.rotation,u,n.labelDirection),f=r.getCategories&&r.getCategories(!0),d=[],h=qn.isLabelSilent(r),p=r.get("triggerEvent");return k(l,function(m,g){var y=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(m.tickValue):m.tickValue,w=m.formattedLabel,_=m.rawLabel,S=o;if(f&&f[y]){var x=f[y];K(x)&&x.textStyle&&(S=new Qe(x.textStyle,o,r.ecModel))}var C=S.getTextColor()||r.get(["axisLine","lineStyle","color"]),T=a.dataToCoord(y),b=S.getShallow("align",!0)||c.textAlign,D=ne(S.getShallow("alignMinLabel",!0),b),N=ne(S.getShallow("alignMaxLabel",!0),b),A=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||c.textVerticalAlign,M=ne(S.getShallow("verticalAlignMinLabel",!0),A),I=ne(S.getShallow("verticalAlignMaxLabel",!0),A),P=new He({x:T,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(m.level||0),style:Xt(S,{text:w,align:g===0?D:g===l.length-1?N:b,verticalAlign:g===0?M:g===l.length-1?I:A,fill:ie(C)?C(a.type==="category"?_:a.type==="value"?y+"":y,g):C})});if(P.anid="label_"+y,p){var L=qn.makeAxisEventDataBase(r);L.targetType="axisLabel",L.value=_,L.tickIndex=g,a.type==="category"&&(L.dataIndex=y),de(P).eventData=L}t.add(P),P.updateTransform(),d.push(P),e.add(P),P.decomposeTransform()}),d}}const Yb=qn;function uO(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return cO(r,e,t),r.seriesInvolved&&hO(r,e),r}function cO(e,t,r){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];k(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Do(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(k(s.getAxes(),be(m,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",p=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&k(p.baseAxes,be(m,h?"cross":!0,d)),h&&k(p.otherAxes,be(m,"cross",!1))}function m(g,y,w){var _=w.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Mh(_))){y==null&&(y=_.get("triggerTooltip")),_=g?fO(w,f,a,t,g,y):_;var x=_.get("snap"),C=_.get("triggerEmphasis"),T=Do(w.model),b=y||x||w.type==="category",D=e.axesInfo[T]={key:T,axis:w,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:C,involveSeries:b,snap:x,useHandle:Mh(_),seriesModels:[],linkGroup:null};u[T]=D,e.seriesInvolved=e.seriesInvolved||b;var N=dO(i,w);if(N!=null){var A=o[N]||(o[N]={axesInfo:{}});A.axesInfo[T]=D,A.mapper=i[N].mapper,D.linkGroup=A}}}})}function fO(e,t,r,n,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};k(s,function(d){l[d]=ue(o.get(d))}),l.snap=e.type!=="category"&&!!i,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!i){var f=l.lineStyle=o.get("crossStyle");f&&he(u,f.textStyle)}}return e.model.getModel("axisPointer",new Qe(l,r,n))}function hO(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,a=r.get(["tooltip","trigger"],!0),i=r.get(["tooltip","show"],!0);!n||a==="none"||a===!1||a==="item"||i===!1||r.get(["axisPointer","show"],!0)===!1||k(e.coordSysAxesInfo[Do(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function dO(e,t){for(var r=t.model,n=t.dim,a=0;a<e.length;a++){var i=e[a]||{};if(of(i[n+"AxisId"],r.id)||of(i[n+"AxisIndex"],r.componentIndex)||of(i[n+"AxisName"],r.name))return a}}function of(e,t){return e==="all"||U(e)&&ce(e,t)>=0||e===t}function vO(e){var t=pv(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,a=r.option,i=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Mh(r);i==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),a.value=o,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function pv(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Do(e)]}function pO(e){var t=pv(e);return t&&t.axisPointerModel}function Mh(e){return!!e.get(["handle","show"])}function Do(e){return e.type+"||"+e.id}var sf={},qb=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this.axisPointerClass&&vO(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,a,!0)},t.prototype.updateAxisPointer=function(r,n,a,i){this._doUpdateAxisPointerClass(r,a,!1)},t.prototype.remove=function(r,n){var a=this._axisPointer;a&&a.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,a){var i=t.getAxisPointerClass(this.axisPointerClass);if(i){var o=pO(r);o?(this._axisPointer||(this._axisPointer=new i)).render(r,o,n,a):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){if(process.env.NODE_ENV!=="production"&&sf[r])throw new Error("axisPointer "+r+" exists");sf[r]=n},t.getAxisPointerClass=function(r){return r&&sf[r]},t.type="axis",t}(Zt),kh=Ne();function gO(e,t,r,n){var a=r.axis;if(!a.scale.isBlank()){var i=r.getModel("splitArea"),o=i.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:i,clamp:!0});if(u.length){var c=s.length,f=kh(e).splitAreaColors,d=ae(),h=0;if(f)for(var p=0;p<u.length;p++){var m=f.get(u[p].tickValue);if(m!=null){h=(m+(c-1)*p)%c;break}}var g=a.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=U(s)?s:[s];for(var p=1;p<u.length;p++){var w=a.toGlobalCoord(u[p].coord),_=void 0,S=void 0,x=void 0,C=void 0;a.isHorizontal()?(_=g,S=l.y,x=w-_,C=l.height,g=_+x):(_=l.x,S=g,x=l.width,C=w-S,g=S+C);var T=u[p-1].tickValue;T!=null&&d.set(T,h),t.add(new ke({anid:T!=null?"area_"+T:null,shape:{x:_,y:S,width:x,height:C},style:he({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%c}kh(e).splitAreaColors=d}}}function mO(e){kh(e).splitAreaColors=null}var yO=["axisLine","axisTickLabel","axisName"],_O=["splitArea","splitLine","minorSplitLine"],jb=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Ie,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=Ah(s,r),u=new Yb(r,G({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(Sh(d[h].getOtherAxis(r.axis).scale))return!0;return!1}},l));k(yO,u.add,u),this._axisGroup.add(u.getGroup()),k(_O,function(f){r.get([f,"show"])&&wO[f](this,this._axisGroup,r,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||O1(o,this._axisGroup,r),e.prototype.render.call(this,r,n,a,i)}},t.prototype.remove=function(){mO(this)},t.type="cartesianAxis",t}(qb),wO={splitLine:function(e,t,r,n){var a=r.axis;if(!a.scale.isBlank()){var i=r.getModel("splitLine"),o=i.getModel("lineStyle"),s=o.get("color");s=U(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=a.isHorizontal(),c=0,f=a.getTicksCoords({tickModel:i}),d=[],h=[],p=o.getLineStyle(),m=0;m<f.length;m++){var g=a.toGlobalCoord(f[m].coord);u?(d[0]=g,d[1]=l.y,h[0]=g,h[1]=l.y+l.height):(d[0]=l.x,d[1]=g,h[0]=l.x+l.width,h[1]=g);var y=c++%s.length,w=f[m].tickValue,_=new dn({anid:w!=null?"line_"+f[m].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:he({stroke:s[y]},p),silent:!0});yo(_.shape,p.lineWidth),t.add(_)}}},minorSplitLine:function(e,t,r,n){var a=r.axis,i=r.getModel("minorSplitLine"),o=i.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=o.getLineStyle(),h=0;h<u.length;h++)for(var p=0;p<u[h].length;p++){var m=a.toGlobalCoord(u[h][p].coord);l?(c[0]=m,c[1]=s.y,f[0]=m,f[1]=s.y+s.height):(c[0]=s.x,c[1]=m,f[0]=s.x+s.width,f[1]=m);var g=new dn({anid:"minor_line_"+u[h][p].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});yo(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,r,n){gO(e,t,r,n)}},Xb=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(jb),bO=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=Xb.type,r}return t.type="yAxis",t}(jb),SO=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new ke({shape:r.coordinateSystem.getRect(),style:he({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Zt),gy={offset:0};function CO(e){e.registerComponentView(SO),e.registerComponentModel(HL),e.registerCoordinateSystem("cartesian2d",nO),oy(e,"x",Nh,gy),oy(e,"y",Nh,gy),e.registerComponentView(Xb),e.registerComponentView(bO),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var my="\0_ec_interaction_mutex";function yy(e,t){return!!xO(e)[t]}function xO(e){return e[my]||(e[my]={})}oa({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},ot);var TO=function(e){H(t,e);function t(r){var n=e.call(this)||this;n._zr=r;var a=Q(n._mousedownHandler,n),i=Q(n._mousemoveHandler,n),o=Q(n._mouseupHandler,n),s=Q(n._mousewheelHandler,n),l=Q(n._pinchHandler,n);return n.enable=function(u,c){this.disable(),this._opt=he(ue(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(r.on("mousedown",a),r.on("mousemove",i),r.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(r.on("mousewheel",s),r.on("pinch",l))},n.disable=function(){r.off("mousedown",a),r.off("mousemove",i),r.off("mouseup",o),r.off("mousewheel",s),r.off("pinch",l)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(r){this.pointerChecker=r},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(r){if(!op(r)){for(var n=r.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=r.offsetX,i=r.offsetY;this.pointerChecker&&this.pointerChecker(r,a,i)&&(this._x=a,this._y=i,this._dragging=!0)}},t.prototype._mousemoveHandler=function(r){if(!(!this._dragging||!qs("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||yy(this._zr,"globalPan"))){var n=r.offsetX,a=r.offsetY,i=this._x,o=this._y,s=n-i,l=a-o;this._x=n,this._y=a,this._opt.preventDefaultMouseMove&&Xa(r.event),Zb(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:i,oldY:o,newX:n,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){op(r)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(r){var n=qs("zoomOnMouseWheel",r,this._opt),a=qs("moveOnMouseWheel",r,this._opt),i=r.wheelDelta,o=Math.abs(i),s=r.offsetX,l=r.offsetY;if(!(i===0||!n&&!a)){if(n){var u=o>3?1.4:o>1?1.2:1.1,c=i>0?u:1/u;lf(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var f=Math.abs(i),d=(i>0?1:-1)*(f>3?.4:f>1?.15:.05);lf(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!yy(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;lf(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Qt);function lf(e,t,r,n,a){e.pointerChecker&&e.pointerChecker(n,a.originX,a.originY)&&(Xa(n.event),Zb(e,t,r,n,a))}function Zb(e,t,r,n,a){a.isAvailableBehavior=Q(qs,null,r,n),e.trigger(t,a)}function qs(e,t,r){var n=r[e];return!e||n&&(!j(n)||t.event[n+"Key"])}const NO=TO;var _y=dn.prototype,uf=Ed.prototype,Kb=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Kb);function cf(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var DO=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Kb},t.prototype.buildPath=function(r,n){cf(n)?_y.buildPath.call(this,r,n):uf.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return cf(this.shape)?_y.pointAt.call(this,r):uf.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,a=cf(n)?[n.x2-n.x1,n.y2-n.y1]:uf.tangentAt.call(this,r);return fd(a,a)},t}(pe),ff=["fromSymbol","toSymbol"];function wy(e){return"_"+e+"Type"}function by(e,t,r){var n=t.getItemVisual(r,e);if(!n||n==="none")return n;var a=t.getItemVisual(r,e+"Size"),i=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=rv(a),u=Nu(o||0,l);return n+l+u+(i||"")+(s||"")}function Sy(e,t,r){var n=t.getItemVisual(r,e);if(!(!n||n==="none")){var a=t.getItemVisual(r,e+"Size"),i=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=rv(a),u=Nu(o||0,l),c=Br(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=i==null||isNaN(i)?void 0:+i*Math.PI/180||0,c.name=e,c}}function AO(e){var t=new DO({name:"line",subPixelOptimize:!0});return Eh(t.shape,e),t}function Eh(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var r=t[2];r?(e.cpx1=r[0],e.cpy1=r[1]):(e.cpx1=NaN,e.cpy1=NaN)}var MO=function(e){H(t,e);function t(r,n,a){var i=e.call(this)||this;return i._createLine(r,n,a),i}return t.prototype._createLine=function(r,n,a){var i=r.hostModel,o=r.getItemLayout(n),s=AO(o);s.shape.percent=0,bt(s,{shape:{percent:1}},i,n),this.add(s),k(ff,function(l){var u=Sy(l,r,n);this.add(u),this[wy(l)]=by(l,r,n)},this),this._updateCommonStl(r,n,a)},t.prototype.updateData=function(r,n,a){var i=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};Eh(l.shape,s),tt(o,l,i,n),k(ff,function(u){var c=by(u,r,n),f=wy(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=Sy(u,r,n);this.add(d)}this[f]=c},this),this._updateCommonStl(r,n,a)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(r,n,a){var i=r.hostModel,o=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,c=a&&a.labelStatesModels,f=a&&a.emphasisDisabled,d=a&&a.focus,h=a&&a.blurScope;if(!a||r.hasItemOption){var p=r.getItemModel(n),m=p.getModel("emphasis");s=m.getModel("lineStyle").getLineStyle(),l=p.getModel(["blur","lineStyle"]).getLineStyle(),u=p.getModel(["select","lineStyle"]).getLineStyle(),f=m.get("disabled"),d=m.get("focus"),h=m.get("blurScope"),c=aa(p)}var g=r.getItemVisual(n,"style"),y=g.stroke;o.useStyle(g),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,k(ff,function(C){var T=this.childOfName(C);if(T){T.setColor(y),T.style.opacity=g.opacity;for(var b=0;b<vt.length;b++){var D=vt[b],N=o.getState(D);if(N){var A=N.style||{},M=T.ensureState(D),I=M.style||(M.style={});A.stroke!=null&&(I[T.__isEmptyBrush?"stroke":"fill"]=A.stroke),A.opacity!=null&&(I.opacity=A.opacity)}}T.markRedraw()}},this);var w=i.getRawValue(n);oi(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(C,T){return i.getFormattedLabel(C,T,r.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(w==null?r.getName(n):isFinite(w)?Re(w):w)+""});var _=this.getTextContent();if(_){var S=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var x=S.get("distance");U(x)||(x=[x,x]),_.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),Kn(this,d,h,f)},t.prototype.highlight=function(){go(this)},t.prototype.downplay=function(){mo(this)},t.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},t.prototype.setLinePoints=function(r){var n=this.childOfName("line");Eh(n.shape,r),n.dirty()},t.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),a=r.childOfName("toSymbol"),i=r.getTextContent();if(!n&&!a&&(!i||i.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),d=c_([],f,c);fd(d,d);function h(N,A){var M=N.__specifiedRotation;if(M==null){var I=l.tangentAt(A);N.attr("rotation",(A===1?-1:1)*Math.PI/2-Math.atan2(I[1],I[0]))}else N.attr("rotation",M)}if(n&&(n.setPosition(c),h(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),a&&(a.setPosition(f),h(a,1),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&!i.ignore){i.x=i.y=0,i.originX=i.originY=0;var p=void 0,m=void 0,g=i.__labelDistance,y=g[0]*o,w=g[1]*o,_=u/2,S=l.tangentAt(_),x=[S[1],-S[0]],C=l.pointAt(_);x[1]>0&&(x[0]=-x[0],x[1]=-x[1]);var T=S[0]<0?-1:1;if(i.__position!=="start"&&i.__position!=="end"){var b=-Math.atan2(S[1],S[0]);f[0]<c[0]&&(b=Math.PI+b),i.rotation=b}var D=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":D=-w,m="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":D=w,m="top";break;default:D=0,m="middle"}switch(i.__position){case"end":i.x=d[0]*y+f[0],i.y=d[1]*w+f[1],p=d[0]>.8?"left":d[0]<-.8?"right":"center",m=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":i.x=-d[0]*y+c[0],i.y=-d[1]*w+c[1],p=d[0]>.8?"right":d[0]<-.8?"left":"center",m=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=y*T+c[0],i.y=c[1]+D,p=S[0]<0?"right":"left",i.originX=-y*T,i.originY=-D;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=C[0],i.y=C[1]+D,p="center",i.originY=-D;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*T+f[0],i.y=f[1]+D,p=S[0]>=0?"right":"left",i.originX=y*T,i.originY=-D;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||m,align:i.__align||p})}},t}(Ie);const kO=MO;var EO=function(){function e(t){this.group=new Ie,this._LineCtor=t||kO}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,a=n.group,i=n._lineData;n._lineData=t,i||a.removeAll();var o=Cy(t);t.diff(i).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(i,t,l,s,o)}).remove(function(s){a.remove(i.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Cy(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!PO(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var i=r.getItemLayout(a);if(hf(i)){var o=new this._LineCtor(r,a,this._seriesScope);o.traverse(n),this.group.add(o),r.setItemGraphicEl(a,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){ii(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var a=t.getItemLayout(r);if(hf(a)){var i=new this._LineCtor(t,r,n);t.setItemGraphicEl(r,i),this.group.add(i)}},e.prototype._doUpdate=function(t,r,n,a,i){var o=t.getItemGraphicEl(n);if(!hf(r.getItemLayout(a))){this.group.remove(o);return}o?o.updateData(r,a,i):o=new this._LineCtor(r,a,i),r.setItemGraphicEl(a,o),this.group.add(o)},e}();function PO(e){return e.animators&&e.animators.length>0}function Cy(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:aa(t)}}function xy(e){return isNaN(e[0])||isNaN(e[1])}function hf(e){return e&&!xy(e[0])&&!xy(e[1])}const IO=EO;function Lu(e,t,r,n,a,i){e=e||0;var o=r[1]-r[0];if(a!=null&&(a=Ta(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=Ta(s,[0,o]),a=i=Ta(s,[a,i]),n=0}t[0]=Ta(t[0],r),t[1]=Ta(t[1],r);var l=df(t,n);t[n]+=e;var u=a||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=Ta(t[n],c);var f;return f=df(t,n),a!=null&&(f.sign!==l.sign||f.span<a)&&(t[1-n]=t[n]+l.sign*a),f=df(t,n),i!=null&&f.span>i&&(t[1-n]=t[n]+f.sign*i),t}function df(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function Ta(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var Ty={color:"fill",borderColor:"stroke"},LO={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Pr=Ne(),OO=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return Mu(null,this)},t.prototype.getDataParams=function(r,n,a){var i=e.prototype.getDataParams.call(this,r,n);return a&&(i.info=Pr(a).info),i},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Rr);const RO=OO;function BO(e,t){return t=t||[0,0],q(["x","y"],function(r,n){var a=this.getAxis(r),i=t[n],o=e[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(i-o)-a.dataToCoord(i+o))},this)}function VO(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:Q(BO,e)}}}function $O(e,t){return t=t||[0,0],q([0,1],function(r){var n=t[r],a=e[r]/2,i=[],o=[];return i[r]=n-a,o[r]=n+a,i[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(i)[r]-this.dataToPoint(o)[r])},this)}function FO(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(r){return e.dataToPoint(r)},size:Q($O,e)}}}function zO(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,a=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-a)-r.dataToCoord(n+a))}function GO(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:Q(zO,e)}}}function HO(e,t){return t=t||[0,0],q(["Radius","Angle"],function(r,n){var a="get"+r+"Axis",i=this[a](),o=t[n],s=e[n]/2,l=i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-s)-i.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function UO(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(a){var i=t.dataToRadius(a[0]),o=r.dataToAngle(a[1]),s=e.coordToPoint([i,o]);return s.push(i,o*Math.PI/180),s},size:Q(HO,e)}}}function WO(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,a){return e.dataToPoint(n,a)}}}}var Ny={};function YO(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||W(e,"text")))}function qO(e,t,r){var n=e,a,i,o;if(t==="text")o=n;else{o={},W(n,"text")&&(o.text=n.text),W(n,"rich")&&(o.rich=n.rich),W(n,"textFill")&&(o.fill=n.textFill),W(n,"textStroke")&&(o.stroke=n.textStroke),W(n,"fontFamily")&&(o.fontFamily=n.fontFamily),W(n,"fontSize")&&(o.fontSize=n.fontSize),W(n,"fontStyle")&&(o.fontStyle=n.fontStyle),W(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=W(n,"textPosition");r?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),W(n,"textPosition")&&(a.position=n.textPosition),W(n,"textOffset")&&(a.offset=n.textOffset),W(n,"textRotation")&&(a.rotation=n.textRotation),W(n,"textDistance")&&(a.distance=n.textDistance)}return Dy(o,e),k(o.rich,function(l){Dy(l,l)}),{textConfig:a,textContent:i}}function Dy(e,t){t&&(t.font=t.textFont||t.font,W(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),W(t,"textAlign")&&(e.align=t.textAlign),W(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),W(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),W(t,"textWidth")&&(e.width=t.textWidth),W(t,"textHeight")&&(e.height=t.textHeight),W(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),W(t,"textPadding")&&(e.padding=t.textPadding),W(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),W(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),W(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),W(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),W(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),W(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),W(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function Ay(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var a=n.textPosition.indexOf("inside")>=0,i=e.fill||"#000";My(n,t);var o=n.textFill==null;return a?o&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=i),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=e.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,k(t.rich,function(s){My(s,s)}),n}function My(e,t){t&&(W(t,"fill")&&(e.textFill=t.fill),W(t,"stroke")&&(e.textStroke=t.fill),W(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),W(t,"font")&&(e.font=t.font),W(t,"fontStyle")&&(e.fontStyle=t.fontStyle),W(t,"fontWeight")&&(e.fontWeight=t.fontWeight),W(t,"fontSize")&&(e.fontSize=t.fontSize),W(t,"fontFamily")&&(e.fontFamily=t.fontFamily),W(t,"align")&&(e.textAlign=t.align),W(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),W(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),W(t,"width")&&(e.textWidth=t.width),W(t,"height")&&(e.textHeight=t.height),W(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),W(t,"padding")&&(e.textPadding=t.padding),W(t,"borderColor")&&(e.textBorderColor=t.borderColor),W(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),W(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),W(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),W(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),W(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),W(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),W(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),W(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),W(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),W(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}function ky(e,t){if(process.env.NODE_ENV!=="production"){var r=e+"^_^"+t;Ny[r]||(console.warn('[ECharts] DEPRECATED: "'+e+'" has been deprecated. '+t),Ny[r]=!0)}}var Jb={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Ey=_e(Jb),Il=Lr(pr,function(e,t){return e[t]=1,e},{}),Py=pr.join(", "),Ll=["","style","shape","extra"],ei=Ne();function gv(e,t,r,n,a){var i=e+"Animation",o=Id(e,n,a)||{},s=ei(t).userDuring;return o.duration>0&&(o.during=s?Q(eR,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),G(o,r[i]),o}function jO(e,t,r,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=ei(e),u=t.style;l.userDuring=t.during;var c={},f={};if(rR(e,t,f),Ly("shape",t,f),Ly("extra",t,f),!i&&s&&(tR(e,t,c),Iy("shape",e,t,c),Iy("extra",e,t,c),nR(e,t,u,c)),f.style=u,ZO(e,f,o),JO(e,t),s)if(i){var d={};k(Ll,function(p){var m=p?t[p]:t;m&&m.enterFrom&&(p&&(d[p]=d[p]||{}),G(p?d[p]:d,m.enterFrom))});var h=gv("enter",e,t,r,a);h.duration>0&&e.animateFrom(d,h)}else KO(e,t,a||0,r,c);XO(e,t),u?e.dirty():e.markRedraw()}function XO(e,t){for(var r=ei(e).leaveToProps,n=0;n<Ll.length;n++){var a=Ll[n],i=a?t[a]:t;i&&i.leaveTo&&(r||(r=ei(e).leaveToProps={}),a&&(r[a]=r[a]||{}),G(a?r[a]:r,i.leaveTo))}}function mv(e,t,r,n){if(e){var a=e.parent,i=ei(e).leaveToProps;if(i){var o=gv("update",e,t,r,0);o.done=function(){a.remove(e),n&&n()},e.animateTo(i,o)}else a.remove(e),n&&n()}}function Ua(e){return e==="all"}function ZO(e,t,r){var n=t.style;if(!e.isGroup&&n){if(r){e.useStyle({});for(var a=e.animators,i=0;i<a.length;i++){var o=a[i];o.targetName==="style"&&o.changeTarget(e.style)}}e.setStyle(n)}t&&(t.style=null,t&&e.attr(t),t.style=n)}function KO(e,t,r,n,a){if(a){var i=gv("update",e,t,n,r);i.duration>0&&e.animateFrom(a,i)}}function JO(e,t){W(t,"silent")&&(e.silent=t.silent),W(t,"ignore")&&(e.ignore=t.ignore),e instanceof ra&&W(t,"invisible")&&(e.invisible=t.invisible),e instanceof pe&&W(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var lr={},QO={setTransform:function(e,t){return process.env.NODE_ENV!=="production"&&ee(W(Il,e),"Only "+Py+" available in `setTransform`."),lr.el[e]=t,this},getTransform:function(e){return process.env.NODE_ENV!=="production"&&ee(W(Il,e),"Only "+Py+" available in `getTransform`."),lr.el[e]},setShape:function(e,t){process.env.NODE_ENV!=="production"&&Na(e);var r=lr.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){process.env.NODE_ENV!=="production"&&Na(e);var t=lr.el.shape;if(t)return t[e]},setStyle:function(e,t){process.env.NODE_ENV!=="production"&&Na(e);var r=lr.el,n=r.style;return n&&(process.env.NODE_ENV!=="production"&&ja(t)&&Fe("style."+e+" must not be assigned with NaN."),n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){process.env.NODE_ENV!=="production"&&Na(e);var t=lr.el.style;if(t)return t[e]},setExtra:function(e,t){process.env.NODE_ENV!=="production"&&Na(e);var r=lr.el.extra||(lr.el.extra={});return r[e]=t,this},getExtra:function(e){process.env.NODE_ENV!=="production"&&Na(e);var t=lr.el.extra;if(t)return t[e]}};function Na(e){if(process.env.NODE_ENV!=="production"&&(e==="transition"||e==="enterFrom"||e==="leaveTo"))throw new Error('key must not be "'+e+'"')}function eR(){var e=this,t=e.el;if(t){var r=ei(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}lr.el=t,n(QO)}}function Iy(e,t,r,n){var a=r[e];if(a){var i=t[e],o;if(i){var s=r.transition,l=a.transition;if(l)if(!o&&(o=n[e]={}),Ua(l))G(o,i);else for(var u=Ge(l),c=0;c<u.length;c++){var f=u[c],d=i[f];o[f]=d}else if(Ua(s)||ce(s,e)>=0){!o&&(o=n[e]={});for(var h=_e(i),c=0;c<h.length;c++){var f=h[c],d=i[f];aR(a[f],d)&&(o[f]=d)}}}}}function Ly(e,t,r){var n=t[e];if(n)for(var a=r[e]={},i=_e(n),o=0;o<i.length;o++){var s=i[o];a[s]=eo(n[s])}}function tR(e,t,r){for(var n=t.transition,a=Ua(n)?pr:Ge(n||[]),i=0;i<a.length;i++){var o=a[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=e[o];process.env.NODE_ENV!=="production"&&Qb(o,"el.transition"),r[o]=s}}}function rR(e,t,r){for(var n=0;n<Ey.length;n++){var a=Ey[n],i=Jb[a],o=t[a];o&&(r[i[0]]=o[0],r[i[1]]=o[1])}for(var n=0;n<pr.length;n++){var s=pr[n];t[s]!=null&&(r[s]=t[s])}}function nR(e,t,r,n){if(r){var a=e.style,i;if(a){var o=r.transition,s=t.transition;if(o&&!Ua(o)){var l=Ge(o);!i&&(i=n.style={});for(var u=0;u<l.length;u++){var c=l[u],f=a[c];i[c]=f}}else if(e.getAnimationStyleProps&&(Ua(s)||Ua(o)||ce(s,"style")>=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!i&&(i=n.style={});for(var p=_e(r),u=0;u<p.length;u++){var c=p[u];if(h[c]){var f=a[c];i[c]=f}}}}}}}function aR(e,t){return st(e)?e!==t:e!=null&&isFinite(e)}var Qb;process.env.NODE_ENV!=="production"&&(Qb=function(e,t){W(Il,e)||Fe("Prop `"+e+"` is not a permitted in `"+t+"`. Only `"+_e(Il).join("`, `")+"` are permitted.")});var eS=Ne(),iR=["percent","easing","shape","style","extra"];function oR(e){e.stopAnimation("keyframe"),e.attr(eS(e))}function tS(e,t,r){if(!(!r.isAnimationEnabled()||!t)){if(U(t)){k(t,function(s){tS(e,s,r)});return}var n=t.keyframes,a=t.duration;if(r&&a==null){var i=Id("enter",r,0);a=i&&i.duration}if(!(!n||!a)){var o=eS(e);k(Ll,function(s){if(!(s&&!e[s])){var l,u=!1;n.sort(function(c,f){return c.percent-f.percent}),k(n,function(c){var f=e.animators,d=s?c[s]:c;if(process.env.NODE_ENV!=="production"&&c.percent>=1&&(u=!0),!!d){var h=_e(d);if(s||(h=qe(h,function(g){return ce(iR,g)<0})),!!h.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var p=0;p<f.length;p++)f[p]!==l&&f[p].targetName===l.targetName&&f[p].stopTracks(h);s&&(o[s]=o[s]||{});var m=s?o[s]:o;k(h,function(g){m[g]=((s?e[s]:e)||{})[g]}),l.whenWithKeys(a*c.percent,d,h,c.easing)}}}),l&&(process.env.NODE_ENV!=="production"&&(u||Fe("End frame with percent: 1 is missing in the keyframeAnimation.",!0)),l.delay(t.delay||0).duration(a).start(t.easing))}})}}}var Ir="emphasis",nn="normal",yv="blur",_v="select",vn=[nn,Ir,yv,_v],vf={normal:["itemStyle"],emphasis:[Ir,"itemStyle"],blur:[yv,"itemStyle"],select:[_v,"itemStyle"]},pf={normal:["label"],emphasis:[Ir,"label"],blur:[yv,"label"],select:[_v,"label"]},sR=["x","y"],lR="e\0\0",Nt={normal:{},emphasis:{},blur:{},select:{}},Oy={cartesian2d:VO,geo:FO,single:GO,polar:UO,calendar:WO};function Ol(e){return e instanceof pe}function Ph(e){return e instanceof ra}function uR(e,t){t.copyTransform(e),Ph(t)&&Ph(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,Ol(t)&&Ol(e)&&t.setShape(e.shape))}var cR=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this._progressiveEls=null;var o=this._data,s=r.getData(),l=this.group,u=Ry(r,s,n,a);o||l.removeAll(),s.diff(o).add(function(f){gf(a,null,f,u(f,i),r,l,s)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&mv(d,Pr(d).option,r)}).update(function(f,d){var h=o.getItemGraphicEl(d);gf(a,h,f,u(f,i),r,l,s)}).execute();var c=r.get("clip",!0)?Rb(r.coordinateSystem,!1,r):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(r,n,a){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(r,n,a,i,o){var s=n.getData(),l=Ry(n,s,a,i),u=this._progressiveEls=[];function c(h){h.isGroup||(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}for(var f=r.start;f<r.end;f++){var d=gf(null,null,f,l(f,o),n,this.group,s);d&&(d.traverse(c),u.push(d))}},t.prototype.eachRendered=function(r){ii(this._progressiveEls||this.group,r)},t.prototype.filterForExposedEvent=function(r,n,a,i){var o=n.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},t.type="custom",t}(qt);const fR=cR;function wv(e){var t=e.type,r;if(t==="path"){var n=e.shape,a=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,i=aS(n);r=fu(i,null,a,n.layout||"center"),Pr(r).customPathData=i}else if(t==="image")r=new gn({}),Pr(r).customImagePath=e.style.image;else if(t==="text")r=new He({});else if(t==="group")r=new Ie;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=M1(t);if(!o){var s="";process.env.NODE_ENV!=="production"&&(s='graphic type "'+t+'" can not be found.'),it(s)}r=new o}return Pr(r).customGraphicType=t,r.name=e.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function bv(e,t,r,n,a,i,o){oR(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=sR);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;W(u,"textFill")&&(u.fill=u.textFill),W(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=Ol(t)?l.decal:null;e&&f&&(f.dirty=!0,c=Al(f,e)),l.__decalPattern=c}if(Ph(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}jO(t,n,i,{dataIndex:r,isInit:o,clearStyle:!0}),tS(t,n.keyframeAnimation,i)}function rS(e,t,r,n,a){var i=t.isGroup?null:t,o=a&&a[e].cfg;if(i){var s=i.ensureState(e);if(n===!1){var l=i.getState(e);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),i1(i)}}function hR(e,t,r){if(!e.isGroup){var n=e,a=r.currentZ,i=r.currentZLevel;n.z=a,n.zlevel=i;var o=t.z2;o!=null&&(n.z2=o||0);for(var s=0;s<vn.length;s++)dR(n,t,vn[s])}}function dR(e,t,r){var n=r===nn,a=n?t:Rl(t,r),i=a?a.z2:null,o;i!=null&&(o=n?e:e.ensureState(r),o.z2=i||0)}function Ry(e,t,r,n){var a=e.get("renderItem"),i=e.coordinateSystem,o={};i&&(process.env.NODE_ENV!=="production"&&(ee(a,"series.render is required."),ee(i.prepareCustoms||Oy[i.type],"This coordSys does not support custom series.")),o=i.prepareCustoms?i.prepareCustoms(i):Oy[i.type](i));for(var s=he({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:S,style:C,ordinalRawValue:x,styleEmphasis:T,visual:N,barLayout:A,currentSeriesIndices:M,font:I},o.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:vR(e.getData())},u,c,f={},d={},h={},p={},m=0;m<vn.length;m++){var g=vn[m];h[g]=e.getModel(vf[g]),p[g]=e.getModel(pf[g])}function y(P){return P===u?c||(c=t.getItemModel(P)):t.getItemModel(P)}function w(P,L){return t.hasItemOption?P===u?f[L]||(f[L]=y(P).getModel(vf[L])):y(P).getModel(vf[L]):h[L]}function _(P,L){return t.hasItemOption?P===u?d[L]||(d[L]=y(P).getModel(pf[L])):y(P).getModel(pf[L]):p[L]}return function(P,L){return u=P,c=null,f={},d={},a&&a(he({dataIndexInside:P,dataIndex:t.getRawIndex(P),actionType:L?L.type:null},l),s)};function S(P,L){return L==null&&(L=u),t.getStore().get(t.getDimensionIndex(P||0),L)}function x(P,L){L==null&&(L=u),P=P||0;var E=t.getDimensionInfo(P);if(!E){var B=t.getDimensionIndex(P);return B>=0?t.getStore().get(B,L):void 0}var R=t.get(E.name,L),V=E&&E.ordinalMeta;return V?V.categories[R]:R}function C(P,L){process.env.NODE_ENV!=="production"&&ky("api.style","Please write literal style directly instead."),L==null&&(L=u);var E=t.getItemVisual(L,"style"),B=E&&E.fill,R=E&&E.opacity,V=w(L,nn).getItemStyle();B!=null&&(V.fill=B),R!=null&&(V.opacity=R);var z={inheritColor:j(B)?B:"#000"},Y=_(L,nn),Z=Xt(Y,null,z,!1,!0);Z.text=Y.getShallow("show")?ne(e.getFormattedLabel(L,nn),No(t,L)):null;var F=_l(Y,z,!1);return D(P,V),V=Ay(V,Z,F),P&&b(V,P),V.legacy=!0,V}function T(P,L){process.env.NODE_ENV!=="production"&&ky("api.styleEmphasis","Please write literal style directly instead."),L==null&&(L=u);var E=w(L,Ir).getItemStyle(),B=_(L,Ir),R=Xt(B,null,null,!0,!0);R.text=B.getShallow("show")?sn(e.getFormattedLabel(L,Ir),e.getFormattedLabel(L,nn),No(t,L)):null;var V=_l(B,null,!0);return D(P,E),E=Ay(E,R,V),P&&b(E,P),E.legacy=!0,E}function b(P,L){for(var E in L)W(L,E)&&(P[E]=L[E])}function D(P,L){P&&(P.textFill&&(L.textFill=P.textFill),P.textPosition&&(L.textPosition=P.textPosition))}function N(P,L){if(L==null&&(L=u),W(Ty,P)){var E=t.getItemVisual(L,"style");return E?E[Ty[P]]:null}if(W(LO,P))return t.getItemVisual(L,P)}function A(P){if(i.type==="cartesian2d"){var L=i.getBaseAxis();return GP(he({axis:L},P))}}function M(){return r.getCurrentSeriesIndices()}function I(P){return B1(P,r)}}function vR(e){var t={};return k(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var a=n.coordDim,i=t[a]=t[a]||[];i[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function gf(e,t,r,n,a,i,o){if(!n){i.remove(t);return}var s=Sv(e,t,r,n,a,i);return s&&o.setItemGraphicEl(r,s),s&&Kn(s,n.focus,n.blurScope,n.emphasisDisabled),s}function Sv(e,t,r,n,a,i){process.env.NODE_ENV!=="production"&&ee(n,"should not have an null/undefined element setting");var o=-1,s=t;t&&nS(t,n,a)&&(o=ce(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=wv(n),s&&uR(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Nt.normal.cfg=Nt.normal.conOpt=Nt.emphasis.cfg=Nt.emphasis.conOpt=Nt.blur.cfg=Nt.blur.conOpt=Nt.select.cfg=Nt.select.conOpt=null,Nt.isLegacy=!1,gR(u,r,n,a,l,Nt),pR(u,r,n,a,l),bv(e,u,r,n,Nt,a,l),W(n,"info")&&(Pr(u).info=n.info);for(var c=0;c<vn.length;c++){var f=vn[c];if(f!==nn){var d=Rl(n,f),h=Cv(n,d,f);rS(f,u,d,h,Nt)}}return hR(u,n,a),n.type==="group"&&mR(e,u,r,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function nS(e,t,r){var n=Pr(e),a=t.type,i=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&bR(i)&&aS(i)!==n.customPathData||a==="image"&&W(o,"image")&&o.image!==n.customImagePath}function pR(e,t,r,n,a){var i=r.clipPath;if(i===!1)e&&e.getClipPath()&&e.removeClipPath();else if(i){var o=e.getClipPath();o&&nS(o,i,n)&&(o=null),o||(o=wv(i),process.env.NODE_ENV!=="production"&&ee(Ol(o),"Only any type of `path` can be used in `clipPath`, rather than "+o.type+"."),e.setClipPath(o)),bv(null,o,t,i,null,n,a)}}function gR(e,t,r,n,a,i){if(!e.isGroup){By(r,null,i),By(r,Ir,i);var o=i.normal.conOpt,s=i.emphasis.conOpt,l=i.blur.conOpt,u=i.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=i.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=wv(o),e.setTextContent(c)),bv(null,c,t,o,null,n,a);for(var f=o&&o.style,d=0;d<vn.length;d++){var h=vn[d];if(h!==nn){var p=i[h].conOpt;rS(h,c,p,Cv(o,p,h),null)}}f?c.dirty():c.markRedraw()}}}}function By(e,t,r){var n=t?Rl(e,t):e,a=t?Cv(e,n,Ir):e.style,i=e.type,o=n?n.textConfig:null,s=e.textContent,l=s?t?Rl(s,t):s:null;if(a&&(r.isLegacy||YO(a,i,!!o,!!l))){r.isLegacy=!0;var u=qO(a,i,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text"),process.env.NODE_ENV!=="production"&&ee(c.type==="text",'textContent.type must be "text"')}var f=t?r[t]:r.normal;f.cfg=o,f.conOpt=l}function Rl(e,t){return t?e?e[t]:null:e}function Cv(e,t,r){var n=t&&t.style;return n==null&&r===Ir&&e&&(n=e.styleEmphasis),n}function mR(e,t,r,n,a){var i=n.children,o=i?i.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){_R({api:e,oldChildren:t.children()||[],newChildren:i||[],dataIndex:r,seriesModel:a,group:t});return}u&&t.removeAll();for(var c=0;c<o;c++){var f=i[c],d=t.childAt(c);f?(f.ignore==null&&(f.ignore=!1),Sv(e,d,r,f,a,t)):(process.env.NODE_ENV!=="production"&&ee(d,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),d.ignore=!0)}for(var h=t.childCount()-1;h>=c;h--){var p=t.childAt(h);yR(t,p,a)}}}function yR(e,t,r){t&&mv(t,Pr(e).option,r)}function _R(e){new Qw(e.oldChildren,e.newChildren,Vy,Vy,e).add($y).update($y).remove(wR).execute()}function Vy(e,t){var r=e&&e.name;return r??lR+t}function $y(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,a=t!=null?r.oldChildren[t]:null;Sv(r.api,a,r.dataIndex,n,r.seriesModel,r.group)}function wR(e){var t=this.context,r=t.oldChildren[e];r&&mv(r,Pr(r).option,t.seriesModel)}function aS(e){return e&&(e.pathData||e.d)}function bR(e){return e&&(W(e,"pathData")||W(e,"d"))}function SR(e){e.registerChartView(fR),e.registerSeriesModel(RO)}var Fn=Ne(),Fy=ue,mf=Q,CR=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,a){var i=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!a&&this._lastValue===i&&this._lastStatus===o)){this._lastValue=i,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,i,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Ie,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=be(zy,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}Hy(s,r,!0),this._renderHandle(i)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),a=t.axis,i=a.type==="category",o=r.get("snap");if(!o&&!i)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(i&&a.getBandWidth()>s)return!0;if(o){var l=pv(t).seriesDataCount,u=a.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,a,i){},e.prototype.createPointerEl=function(t,r,n,a){var i=r.pointer;if(i){var o=Fn(t).pointerEl=new XM[i.type](Fy(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,a){if(r.label){var i=Fn(t).labelEl=new He(Fy(r.label));t.add(i),Gy(i,a)}},e.prototype.updatePointerEl=function(t,r,n){var a=Fn(t).pointerEl;a&&r.pointer&&(a.setStyle(r.pointer.style),n(a,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,a){var i=Fn(t).labelEl;i&&(i.setStyle(r.label.style),n(i,{x:r.label.x,y:r.label.y}),Gy(i,a))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),a=this._handle,i=r.getModel("handle"),o=r.get("status");if(!i.get("show")||!o||o==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=Rd(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Xa(u.event)},onmousedown:mf(this._onHandleDragMove,this,0,0),drift:mf(this._onHandleDragMove,this),ondragend:mf(this._onHandleDragEnd,this)}),n.add(a)),Hy(a,r,!1),a.setStyle(i.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=i.get("size");U(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Tu(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){zy(this._axisPointerModel,!r&&this._moveAnimation,this._handle,yf(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var a=this.updateHandleTransform(yf(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(yf(a)),Fn(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,a=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),a&&r.remove(a),this._group=null,this._handle=null,this._payloadInfo=null),Cl(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function zy(e,t,r,n){iS(Fn(r).lastProp,n)||(Fn(r).lastProp=n,t?tt(r,n,e):(r.stopAnimation(),r.attr(n)))}function iS(e,t){if(K(e)&&K(t)){var r=!0;return k(t,function(n,a){r=r&&iS(e[a],n)}),!!r}else return e===t}function Gy(e,t){e[t.get(["label","show"])?"show":"hide"]()}function yf(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Hy(e,t,r){var n=t.get("z"),a=t.get("zlevel");e&&e.traverse(function(i){i.type!=="group"&&(n!=null&&(i.z=n),a!=null&&(i.zlevel=a),i.silent=r)})}const xR=CR;function TR(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function NR(e,t,r,n,a){var i=r.get("value"),o=oS(i,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=bu(s.get("padding")||0),u=s.getFont(),c=yd(o,u),f=a.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],p=a.align;p==="right"&&(f[0]-=d),p==="center"&&(f[0]-=d/2);var m=a.verticalAlign;m==="bottom"&&(f[1]-=h),m==="middle"&&(f[1]-=h/2),DR(f,d,h,n);var g=s.get("backgroundColor");(!g||g==="auto")&&(g=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:Xt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function DR(e,t,r,n){var a=n.getWidth(),i=n.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+r,i)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function oS(e,t,r,n,a){e=t.scale.parse(e);var i=t.scale.getLabel({value:e},{precision:a.precision}),o=a.formatter;if(o){var s={value:fv(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};k(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),j(o)?i=o.replace("{value}",i):ie(o)&&(i=o(s))}return i}function sS(e,t,r){var n=Ba();return vd(n,n,r.rotation),Ff(n,n,r.position),_o([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function AR(e,t,r,n,a,i){var o=Yb.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),NR(t,n,a,i,{position:sS(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function MR(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function kR(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var ER=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=Uy(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=TR(i),h=PR[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=Ah(l.model,a);AR(n,r,p,a,i,o)},t.prototype.getHandleTransform=function(r,n,a){var i=Ah(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=sS(n.axis,r,i);return{x:o[0],y:o[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,a,i){var o=a.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Uy(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var p=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:h,tooltipOption:p[c]}},t}(xR);function Uy(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var PR={line:function(e,t,r){var n=MR([t,r[0]],[t,r[1]],Wy(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),a=r[1]-r[0];return{type:"Rect",shape:kR([t-n/2,r[0]],[n,a],Wy(e))}}};function Wy(e){return e.dim==="x"?0:1}const IR=ER;var LR=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Se);const OR=LR;var Ar=Ne(),RR=k;function lS(e,t,r){if(!re.node){var n=t.getZr();Ar(n).records||(Ar(n).records={}),BR(n,t);var a=Ar(n).records[e]||(Ar(n).records[e]={});a.handler=r}}function BR(e,t){if(Ar(e).initialized)return;Ar(e).initialized=!0,r("click",be(Yy,"click")),r("mousemove",be(Yy,"mousemove")),r("globalout",$R);function r(n,a){e.on(n,function(i){var o=FR(t);RR(Ar(e).records,function(s){s&&a(s,i,o.dispatchAction)}),VR(o.pendings,t)})}}function VR(e,t){var r=e.showTip.length,n=e.hideTip.length,a;r?a=e.showTip[r-1]:n&&(a=e.hideTip[n-1]),a&&(a.dispatchAction=null,t.dispatchAction(a))}function $R(e,t,r){e.handler("leave",null,r)}function Yy(e,t,r,n){t.handler(e,r,n)}function FR(e){var t={showTip:[],hideTip:[]},r=function(n){var a=t[n.type];a?a.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function Ih(e,t){if(!re.node){var r=t.getZr(),n=(Ar(r).records||{})[e];n&&(Ar(r).records[e]=null)}}var zR=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=n.getComponent("tooltip"),o=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";lS("axisPointer",a,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){Ih("axisPointer",n)},t.prototype.dispose=function(r,n){Ih("axisPointer",n)},t.type="axisPointer",t}(Zt);const GR=zR;function uS(e,t){var r=[],n=e.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=Xn(i,e);if(o==null||o<0||U(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,p=i.mapDimension(d),m=[];m[h]=i.get(p,o),m[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(m)||[]}else r=l.dataToPoint(i.getValues(q(l.dimensions,function(y){return i.mapDimension(y)}),o))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),r=[g.x+g.width/2,g.y+g.height/2]}return{point:r,el:s}}var qy=Ne();function HR(e,t,r){var n=e.currTrigger,a=[e.x,e.y],i=e,o=e.dispatchAction||Q(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){js(a)&&(a=uS({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=js(a),u=i.axesInfo,c=s.axesInfo,f=n==="leave"||js(a),d={},h={},p={list:[],map:{}},m={showPointer:be(WR,h),showTooltip:be(YR,p)};k(s.coordSysMap,function(y,w){var _=l||y.containPoint(a);k(s.coordSysAxesInfo[w],function(S,x){var C=S.axis,T=ZR(u,S);if(!f&&_&&(!u||T)){var b=T&&T.value;b==null&&!l&&(b=C.pointToData(a)),b!=null&&jy(S,b,m,!1,d)}})});var g={};return k(c,function(y,w){var _=y.linkGroup;_&&!h[w]&&k(_.axesInfo,function(S,x){var C=h[x];if(S!==y&&C){var T=C.value;_.mapper&&(T=y.axis.scale.parse(_.mapper(T,Xy(S),Xy(y)))),g[y.key]=T}})}),k(g,function(y,w){jy(c[w],y,m,!0,d)}),qR(h,c,d),jR(p,a,e,o),XR(c,o,r),d}}function jy(e,t,r,n,a){var i=e.axis;if(!(i.scale.isBlank()||!i.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=UR(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&G(a,s[0]),!n&&e.snap&&i.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function UR(e,t){var r=t.axis,n=r.dim,a=e,i=[],o=Number.MAX_VALUE,s=-1;return k(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,r);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var p=e-f,m=Math.abs(p);m<=o&&((m<o||p>=0&&s<0)&&(o=m,s=p,a=f,i.length=0),k(d,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function WR(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function YR(e,t,r,n){var a=r.payloadBatch,i=t.axis,o=i.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=Do(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:i.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function qR(e,t,r){var n=r.axesInfo=[];k(t,function(a,i){var o=a.axisPointerModel.option,s=e[i];s?(!a.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:o.value})})}function jR(e,t,r,n){if(js(t)||!e.list.length){n({type:"hideTip"});return}var a=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:a.dataIndexInside,dataIndex:a.dataIndex,seriesIndex:a.seriesIndex,dataByCoordSys:e.list})}function XR(e,t,r){var n=r.getZr(),a="axisPointerLastHighlights",i=qy(n)[a]||{},o=qy(n)[a]={};k(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&k(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];k(i,function(u,c){!o[c]&&l.push(u)}),k(o,function(u,c){!i[c]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function ZR(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function Xy(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function js(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function cS(e){qb.registerAxisPointerClass("CartesianAxisPointer",IR),e.registerComponentModel(OR),e.registerComponentView(GR),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!U(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=uO(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},HR)}function KR(e){gr(CO),gr(cS)}var Zy=["x","y","radius","angle","single"],JR=["cartesian2d","polar","singleAxis"];function QR(e){var t=e.get("coordinateSystem");return ce(JR,t)>=0}function an(e){return process.env.NODE_ENV!=="production"&&ee(e),e+"Axis"}function eB(e,t){var r=ae(),n=[],a=ae();e.eachComponent({mainType:"dataZoom",query:t},function(c){a.get(c.uid)||s(c)});var i;do i=!1,e.eachComponent("dataZoom",o);while(i);function o(c){!a.get(c.uid)&&l(c)&&(s(c),i=!0)}function s(c){a.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,h){var p=r.get(d);p&&p[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(r.get(f)||r.set(f,[]))[d]=!0})}return n}function fS(e){var t=e.ecModel,r={infoList:[],infoMap:ae()};return e.eachTargetAxis(function(n,a){var i=t.getComponent(an(n),a);if(i){var o=i.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(i)}}}),r}var _f=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),Bl=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,a){var i=Ky(r);this.settledOption=i,this.mergeDefaultAndTheme(r,a),this._doInit(i)},t.prototype.mergeOption=function(r){var n=Ky(r);ve(this.option,r,!0),ve(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var a=this.settledOption;k([["start","startValue"],["end","endValue"]],function(i,o){this._rangePropMode[o]==="value"&&(n[i[0]]=a[i[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=ae(),a=this._fillSpecifiedTargetAxis(n);a?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(i){i.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return k(Zy,function(a){var i=this.getReferringComponents(an(a),RD);if(i.specified){n=!0;var o=new _f;k(i.models,function(s){o.add(s.componentIndex)}),r.set(a,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var a=this.ecModel,i=!0;if(i){var o=n==="vertical"?"y":"x",s=a.findComponents({mainType:o+"Axis"});l(s,o)}if(i){var s=a.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new _f;if(d.add(f.componentIndex),r.set(c,d),i=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",dt).models[0];h&&k(u,function(p){f.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",dt).models[0]&&d.add(p.componentIndex)})}}}i&&k(Zy,function(u){if(i){var c=a.findComponents({mainType:an(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new _f;f.add(c[0].componentIndex),r.set(u,f),i=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,a=this.get("rangeMode");k([["start","startValue"],["end","endValue"]],function(i,o){var s=r[i[0]]!=null,l=r[i[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":a?n[o]=a[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,a){r==null&&(r=this.ecModel.getComponent(an(n),a))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(a,i){k(a.indexList,function(o){r.call(n,i,o)})})},t.prototype.getAxisProxy=function(r,n){var a=this.getAxisModel(r,n);if(a)return a.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){process.env.NODE_ENV!=="production"&&ee(r&&n!=null);var a=this._targetAxisInfoMap.get(r);if(a&&a.indexMap[n])return this.ecModel.getComponent(an(r),n)},t.prototype.setRawRange=function(r){var n=this.option,a=this.settledOption;k([["start","startValue"],["end","endValue"]],function(i){(r[i[0]]!=null||r[i[1]]!=null)&&(n[i[0]]=a[i[0]]=r[i[0]],n[i[1]]=a[i[1]]=r[i[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;k(["start","startValue","end","endValue"],function(a){n[a]=r[a]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var a=this.findRepresentativeAxisProxy();if(a)return a.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,a=this._targetAxisInfoMap.keys(),i=0;i<a.length;i++)for(var o=a[i],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return process.env.NODE_ENV!=="production"&&ee(this._orient),this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(Se);function Ky(e){var t={};return k(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var tB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this.dataZoomModel=r,this.ecModel=n,this.api=a},t.type="dataZoom",t}(Zt);const hS=tB;var ka=k,Jy=Wi,rB=function(){function e(t,r,n,a){this._dimName=t,this._axisIndex=r,this.ecModel=a,this._dataZoomModel=n}return e.prototype.hostedBy=function(t){return this._dataZoomModel===t},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(r){if(QR(r)){var n=an(this._dimName),a=r.getReferringComponents(n,dt).models[0];a&&this._axisIndex===a.componentIndex&&t.push(r)}},this),t},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return ue(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var r=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,i=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;ka(["start","end"],function(d,h){var p=t[d],m=t[d+"Value"];i[h]==="percent"?(p==null&&(p=o[h]),m=a.parse(We(p,o,r))):(u=!0,m=m==null?r[h]:a.parse(m),p=We(m,r,o)),l[h]=m==null||isNaN(m)?r[h]:m,s[h]=p==null||isNaN(p)?o[h]:p}),Jy(l),Jy(s);var c=this._minMaxSpan;u?f(l,s,r,o,!1):f(s,l,o,r,!0);function f(d,h,p,m,g){var y=g?"Span":"ValueSpan";Lu(0,d,p,"all",c["min"+y],c["max"+y]);for(var w=0;w<2;w++)h[w]=We(d[w],p,m,!0),g&&(h[w]=a.parse(h[w]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=nB(this,this._dimName,r),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(t,r){if(t!==this._dataZoomModel)return;var n=this._dimName,a=this.getTargetSeriesModels(),i=t.get("filterMode"),o=this._valueWindow;if(i==="none")return;ka(a,function(l){var u=l.getData(),c=u.mapDimensionsAll(n);if(c.length){if(i==="weakFilter"){var f=u.getStore(),d=q(c,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var p,m,g,y=0;y<c.length;y++){var w=f.get(d[y],h),_=!isNaN(w),S=w<o[0],x=w>o[1];if(_&&!S&&!x)return!0;_&&(g=!0),S&&(p=!0),x&&(m=!0)}return g&&p&&m})}else ka(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(m){return s(m)?m:NaN}));else{var p={};p[h]=o,u.selectRange(p)}});ka(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;ka(["min","max"],function(a){var i=r.get(a+"Span"),o=r.get(a+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?i=We(n[0]+o,n,[0,100],!0):i!=null&&(o=We(i,[0,100],n,!0)-n[0]),t[a+"Span"]=i,t[a+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var a=E_(n,[0,500]);a=Math.min(a,20);var i=t.axis.scale.rawExtentInfo;r[0]!==0&&i.setDeterminedMinMax("min",+n[0].toFixed(a)),r[1]!==100&&i.setDeterminedMinMax("max",+n[1].toFixed(a)),i.freeze()}},e}();function nB(e,t,r){var n=[1/0,-1/0];ka(r,function(o){pI(n,o.getData(),t)});var a=e.getAxisModel(),i=_b(a.axis.scale,a,n).calculate();return[i.min,i.max]}var aB={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=e.getComponent(an(o),s);a(o,s,l,i)})})}t(function(a,i,o,s){o.__dzAxisProxy=null});var r=[];t(function(a,i,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new rB(a,i,s,e),r.push(o.__dzAxisProxy))});var n=ae();return k(r,function(a){k(a.getTargetSeriesModels(),function(i){n.set(i.uid,i)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).reset(r)}),r.eachTargetAxis(function(n,a){r.getAxisProxy(n,a).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var a=n.getDataPercentWindow(),i=n.getDataValueWindow();r.setCalculatedRange({start:a[0],end:a[1],startValue:i[0],endValue:i[1]})}})}};const iB=aB;function oB(e){e.registerAction("dataZoom",function(t,r){var n=eB(r,t);k(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Qy=!1;function dS(e){Qy||(Qy=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,iB),oB(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function sB(e,t){var r=bu(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new ke({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var lB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Se);const uB=lB;function vS(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function pS(e){if(re.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var gS=pS(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),cB=pS(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function mS(e,t){if(!e)return t;t=K1(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function fB(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?t?r[t]:r:null}var hB=mS(cB,"transition"),xv=mS(gS,"transform"),dB="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(re.transform3dSupported?"will-change:transform;":"");function vB(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function pB(e,t,r){if(!j(r)||r==="inside")return"";var n=e.get("backgroundColor"),a=e.get("borderWidth");t=Jn(t);var i=vB(r),o=Math.max(Math.round(a)*1.5,6),s="",l=xv+":",u;ce(["left","right"],i)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=i==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=i==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+a,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*a)/2+Math.SQRT2*a-(d-f)/2)*100)/100;s+=";"+i+":-"+h+"px";var p=t+" solid "+a+"px;",m=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+p,"border-right:"+p,"background-color:"+n+";"];return'<div style="'+m.join("")+'"></div>'}function gB(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,a="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,a+=re.transformSupported?","+xv+n:",left"+n+",top"+n),hB+":"+a}function e0(e,t,r){var n=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!re.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=re.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return r?"top:0;left:0;"+xv+":"+o+";":[["top",0],["left",0],[gS,o]]}function mB(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var a=e.get("textShadowColor"),i=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return a&&i&&t.push("text-shadow:"+o+"px "+s+"px "+i+"px "+a),k(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function yB(e,t,r){var n=[],a=e.get("transitionDuration"),i=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=Sw(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&a&&n.push(gB(a,r)),i&&n.push("background-color:"+i),k(["width","color","radius"],function(h){var p="border-"+h,m=K1(p),g=e.get(m);g!=null&&n.push(p+":"+g+(h==="color"?"":"px"))}),n.push(mB(c)),f!=null&&n.push("padding:"+bu(f).join("px ")+"px"),n.join(";")+";"}function t0(e,t,r,n,a){var i=t&&t.painter;if(r){var o=i&&i.getViewportRoot();o&&oN(e,o,r,n,a)}else{e[0]=n,e[1]=a;var s=i&&i.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var _B=function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,re.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),i=r.appendTo,o=i&&(j(i)?document.querySelector(i):qa(i)?i:ie(i)&&i(t.getDom()));t0(this._styleCoord,a,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=a.handler,c=a.painter.getViewportRoot();At(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=fB(r,"position"),a=r.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var i=t.get("alwaysShowContent");i&&this._moveIfResized(),this._alwaysShowContent=i,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,a=n.style,i=this._styleCoord;n.innerHTML?a.cssText=dB+yB(t,!this._firstShow,this._longHide)+e0(i[0],i[1],!0)+("border-color:"+Jn(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):a.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,a,i){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(j(i)&&n.get("trigger")==="item"&&!vS(n)&&(s=pB(n,a,i)),j(t))o.innerHTML=t+s;else if(t){o.innerHTML="",U(t)||(t=[t]);for(var l=0;l<t.length;l++)qa(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},e.prototype.moveTo=function(t,r){var n=this._styleCoord;if(t0(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var a=this.el.style,i=e0(n[0],n[1]);k(i,function(o){a[o[0]]=o[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",re.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Q(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},e}();const wB=_B;var bB=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),n0(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,a,i){var o=this;K(t)&&it(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new He({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Sw(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),k(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),k(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=r0(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var a=this._styleCoord;n0(a,this._zr,t,r),t=a[0],r=a[1];var i=n.style,o=Kr(i.borderWidth||0),s=r0(i);n.x=t+o+s.left,n.y=r+o+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(Q(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Kr(e){return Math.max(0,e)}function r0(e){var t=Kr(e.shadowBlur||0),r=Kr(e.shadowOffsetX||0),n=Kr(e.shadowOffsetY||0);return{left:Kr(t-r),right:Kr(t+r),top:Kr(t-n),bottom:Kr(t+n)}}function n0(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var SB=new ke({shape:{x:-1,y:-1,width:2,height:2}}),CB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(re.node||!n.getDom())){var a=r.getComponent("tooltip"),i=this._renderMode=VD(a.get("renderMode"));this._tooltipContent=i==="richText"?new bB(n):new wB(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},t.prototype.render=function(r,n,a){if(!(re.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=a;var i=this._tooltipContent;i.update(r),i.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Tu(this,"_updatePosition",50,"fixRate"):Cl(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");lS("itemTooltip",this._api,Q(function(a,i,o){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(i,o):a==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,a=this._api,i=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&i!=="none"&&i!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&o.manuallyShowTip(r,n,a,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,a,i){if(!(i.from===this.uid||re.node||!a.getDom())){var o=a0(i,a);this._ticket="";var s=i.dataByCoordSys,l=DB(i,n,a);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:i.position,positionDefault:"bottom"},o)}else if(i.tooltip&&i.x!=null&&i.y!=null){var c=SB;c.x=i.x,c.y=i.y,c.update(),de(c).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:c},o)}else if(s)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:s,tooltipOption:i.tooltipOption},o);else if(i.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,a,i))return;var f=uS(i,n),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.el,position:i.position,positionDefault:"bottom"},o)}else i.x!=null&&i.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:a.getZr().findHover(i.x,i.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,a,i){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(a0(i,a))},t.prototype._manuallyAxisShowTip=function(r,n,a,i){var o=i.seriesIndex,s=i.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=Ri([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:i.position}),!0}}},t.prototype._tryShow=function(r,n){var a=r.target,i=this._tooltipModel;if(i){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(a){var s=de(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Xi(a,function(c){if(de(c).dataIndex!=null)return l=c,!0;if(de(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var a=r.get("showDelay");n=Q(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,i=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Ri([n.tooltipOption],i),l=this._renderMode,u=[],c=ea("section",{blocks:[],noHeader:!0}),f=[],d=new Vc;k(r,function(w){k(w.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!S||x==null)){var C=oS(x,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),T=ea("section",{header:C,noHeader:!fr(C),sortBlocks:!0,blocks:[]});c.blocks.push(T),k(_.seriesDataIndices,function(b){var D=a.getSeriesByIndex(b.seriesIndex),N=b.dataIndexInside,A=D.getDataParams(N);if(!(A.dataIndex<0)){A.axisDim=_.axisDim,A.axisIndex=_.axisIndex,A.axisType=_.axisType,A.axisId=_.axisId,A.axisValue=fv(S.axis,{value:x}),A.axisValueLabel=C,A.marker=d.makeTooltipMarker("item",Jn(A.color),l);var M=Yg(D.formatTooltip(N,!0,null)),I=M.frag;if(I){var P=Ri([D],i).get("valueFormatter");T.blocks.push(P?G({valueFormatter:P},I):I)}M.text&&f.push(M.text),u.push(A)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,p=s.get("order"),m=Kg(c,d,l,p,a.get("useUTC"),s.get("textStyle"));m&&f.unshift(m);var g=l==="richText"?`
42
42
 
43
- `:"<br/>",y=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,a){var i=this._ecModel,o=de(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,p=r.positionDefault,m=Ri([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=m.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(c,f),w=new Vc;y.marker=w.makeTooltipMarker("item",Jn(y.color),h);var _=Yg(u.formatTooltip(c,!1,f)),S=m.get("order"),x=m.get("valueFormatter"),C=_.frag,T=C?Kg(x?G({valueFormatter:x},C):C,w,h,S,i.get("useUTC"),m.get("textStyle")):_.text,b="item_"+u.name+"_"+c;this._showOrMove(m,function(){this._showTooltipContent(m,T,y,b,r.offsetX,r.offsetY,r.position,r.target,w)}),a({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,a){var i=de(n),o=i.tooltipConfig,s=o.option||{};if(j(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=r.positionDefault,d=Ri(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),p=Math.random()+"",m=new Vc;this._showOrMove(d,function(){var g=ue(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,p,r.offsetX,r.offsetY,r.position,n,m)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,a,i,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var h=n,p=this._getNearestPoint([o,s],a,r.get("trigger"),r.get("borderColor")),m=p.color;if(d)if(j(d)){var g=r.ecModel.get("useUTC"),y=U(a)?a[0]:a,w=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=d,w&&(h=gu(y.axisValue,h,g)),h=J1(h,a,!0)}else if(ie(d)){var _=Q(function(S,x){S===this._ticket&&(f.setContent(x,c,r,m,l),this._updatePosition(r,l,o,s,f,a,u))},this);this._ticket=i,h=d(a,i,_)}else h=d;f.setContent(h,c,r,m,l),f.show(r,m),this._updatePosition(r,l,o,s,f,a,u)}},t.prototype._getNearestPoint=function(r,n,a,i){if(a==="axis"||U(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!U(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),d=r.get("align"),h=r.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),ie(n)&&(n=n([a,i],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),U(n))a=Ce(n[0],u),i=Ce(n[1],c);else if(K(n)){var m=n;m.width=f[0],m.height=f[1];var g=Qn(m,{width:u,height:c});a=g.x,i=g.y,d=null,h=null}else if(j(n)&&l){var y=NB(n,p,f,r.get("borderWidth"));a=y[0],i=y[1]}else{var y=xB(a,i,o,u,c,d?null:20,h?null:20);a=y[0],i=y[1]}if(d&&(a-=i0(d)?f[0]/2:d==="right"?f[0]:0),h&&(i-=i0(h)?f[1]/2:h==="bottom"?f[1]:0),vS(r)){var y=TB(a,i,o,u,c);a=y[0],i=y[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===r.length;return o&&k(a,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&k(u,function(d,h){var p=f[h]||{},m=d.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&d.value===p.value&&d.axisType===p.axisType&&d.axisId===p.axisId&&m.length===g.length,o&&k(m,function(y,w){var _=g[w];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&k(d.seriesDataIndices,function(y){var w=y.seriesIndex,_=n[w],S=i[w];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){re.node||!n.getDom()||(xl(this,"_updatePosition"),this._tooltipContent.dispose(),Ih("itemTooltip",n))},t.type="tooltip",t}(Zt);function Ri(e,t,r){var n=t.ecModel,a;r?(a=new Qe(r,n,n),a=new Qe(t.option,a,n)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof Qe&&(o=o.get("tooltip",!0)),j(o)&&(o={formatter:o}),o&&(a=new Qe(o,a,n)))}return a}function a0(e,t){return e.dispatchAction||Q(t.dispatchAction,t)}function xB(e,t,r,n,a,i,o){var s=r.getSize(),l=s[0],u=s[1];return i!=null&&(e+l+i+2>n?e-=l+i:e+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[e,t]}function TB(e,t,r,n,a){var i=r.getSize(),o=i[0],s=i[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,a)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function NB(e,t,r,n){var a=r[0],i=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-a/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+c+o;break;case"left":s=t.x-a-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function i0(e){return e==="center"||e==="middle"}function DB(e,t,r){var n=Sd(e).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Bo(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=de(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const AB=CB;function MB(e){gr(cS),e.registerComponentModel(uB),e.registerComponentView(AB),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ot),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ot)}var kB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Se),EB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){if(this.group.removeAll(),!!r.get("show")){var i=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=ne(r.get("textBaseline"),r.get("textVerticalAlign")),c=new He({style:Xt(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),h=new He({style:Xt(s,{text:d,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=r.get("link"),m=r.get("sublink"),g=r.get("triggerEvent",!0);c.silent=!p&&!g,h.silent=!m&&!g,p&&c.on("click",function(){Ag(p,"_"+r.get("target"))}),m&&h.on("click",function(){Ag(m,"_"+r.get("subtarget"))}),de(c).eventData=de(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,i.add(c),d&&i.add(h);var y=i.getBoundingRect(),w=r.getBoxLayoutParams();w.width=y.width,w.height=y.height;var _=Qn(w,{width:a.getWidth(),height:a.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),y=i.getBoundingRect();var x=_.margin,C=r.getItemStyle(["color","opacity"]);C.fill=r.get("backgroundColor");var T=new ke({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:r.get("borderRadius")},style:C,subPixelOptimize:!0,silent:!0});i.add(T)}},t.type="title",t}(Zt);function PB(e){e.registerComponentModel(kB),e.registerComponentView(EB)}function IB(e,t){if(!e)return!1;for(var r=U(e)?e:[e],n=0;n<r.length;n++)if(r[n]&&r[n][t])return!0;return!1}function Es(e){fl(e,"label",["show"])}var Ps=Ne(),yS=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.createdBySelf=!1,r}return t.prototype.init=function(r,n,a){if(process.env.NODE_ENV!=="production"&&this.type==="marker")throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(r,a),this._mergeOption(r,a,!1,!0)},t.prototype.isAnimationEnabled=function(){if(re.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},t.prototype.mergeOption=function(r,n){this._mergeOption(r,n,!1,!1)},t.prototype._mergeOption=function(r,n,a,i){var o=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Ps(s)[o];if(!l||!l.data){Ps(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&Es(l),k(l.data,function(c){c instanceof Array?(Es(c[0]),Es(c[1])):Es(c)}),u=this.createMarkerModelFromSeries(l,this,n),G(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Ps(s)[o]=u},this)},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r);return ea("section",{header:this.name,blocks:[ea("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(r){this._data=r},t.getMarkerModelFromSeries=function(r,n){return Ps(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Se);Jt(yS,dw.prototype);const $l=yS;function LB(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function OB(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function Is(e,t,r,n,a,i){var o=[],s=ta(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=Tv(t,l,e),c=t.indicesOfNearest(l,u)[0];o[a]=t.get(r,c),o[i]=t.get(l,c);var f=t.get(n,c),d=hr(t.get(n,c));return d=Math.min(d,20),d>=0&&(o[i]=+o[i].toFixed(d)),[o,f]}var wf={min:be(Is,"min"),max:be(Is,"max"),average:be(Is,"average"),median:be(Is,"median")};function o0(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,a=n&&n.dimensions;if(!OB(t)&&!U(t.coord)&&U(a)){var i=_S(t,r,n,e);if(t=ue(t),t.type&&wf[t.type]&&i.baseAxis&&i.valueAxis){var o=ce(a,i.baseAxis.dim),s=ce(a,i.valueAxis.dim),l=wf[t.type](r,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!U(a))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)wf[u[c]]&&(u[c]=Tv(r,r.mapDimension(a[c]),u[c]));return t}}function _S(e,t,r,n){var a={};return e.valueIndex!=null||e.valueDim!=null?(a.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=r.getAxis(RB(n,a.valueDataDim)),a.baseAxis=r.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=r.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function RB(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function s0(e,t){return e&&e.containData&&t.coord&&!LB(t)?e.containData(t.coord):!0}function BB(e,t){return e?function(r,n,a,i){var o=i<2?r.coord&&r.coord[i]:r.value;return Ha(o,t[i])}:function(r,n,a,i){return Ha(r.value,t[i])}}function Tv(e,t,r){if(r==="average"){var n=0,a=0;return e.each(t,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var bf=Ne(),VB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=ae()},t.prototype.render=function(r,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){bf(s).keep=!1}),n.eachSeries(function(s){var l=$l.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!bf(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(r){bf(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var a=this;k(r,function(i){var o=$l.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?o1(l):Dd(l))})}})},t.type="marker",t}(Zt);const $B=VB;var FB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}($l);const zB=FB;var Ls=Ne(),GB=function(e,t,r,n){var a=e.getData(),i;if(U(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=fn(n.yAxis,n.xAxis);else{var u=_S(n,a,t,e);s=u.valueAxis;var c=ob(a,u.valueDataDim);l=Tv(a,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=ue(n),p={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,p.coord[d]=1/0;var m=r.get("precision");m>=0&&xe(l)&&(l=+l.toFixed(Math.min(m,20))),h.coord[f]=p.coord[f]=l,i=[h,p,{type:o,valueIndex:n.valueIndex,value:l}]}else process.env.NODE_ENV!=="production"&&on("Invalid markLine data."),i=[]}var g=[o0(e,i[0]),o0(e,i[1]),G({},i[2])];return g[2].type=g[2].type||null,ve(g[2],g[0]),ve(g[2],g[1]),g};function Fl(e){return!isNaN(e)&&!isFinite(e)}function l0(e,t,r,n){var a=1-e,i=n.dimensions[e];return Fl(t[a])&&Fl(r[a])&&t[e]===r[e]&&n.getAxis(i).containData(t[e])}function HB(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(l0(1,r,n,e)||l0(0,r,n,e)))return!0}return s0(e,t[0])&&s0(e,t[1])}function Sf(e,t,r,n,a){var i=n.coordinateSystem,o=e.getItemModel(t),s,l=Ce(o.get("x"),a.getWidth()),u=Ce(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=i.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=i.dataToPoint([f,d])}if(Iu(i,"cartesian2d")){var h=i.getAxis("x"),p=i.getAxis("y"),c=i.dimensions;Fl(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):Fl(e.get(c[1],t))&&(s[1]=p.toGlobalCoord(p.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var UB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=$l.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Ls(o).from,u=Ls(o).to;l.each(function(c){Sf(l,c,!0,i,a),Sf(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new IO);this.group.add(c.group);var f=WB(o,r,n),d=f.from,h=f.to,p=f.line;Ls(n).from=d,Ls(n).to=h,n.setData(p);var m=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),w=n.get("symbolOffset");U(m)||(m=[m,m]),U(g)||(g=[g,g]),U(y)||(y=[y,y]),U(w)||(w=[w,w]),f.from.each(function(S){_(d,S,!0),_(h,S,!1)}),p.each(function(S){var x=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[d.getItemLayout(S),h.getItemLayout(S)]),x.stroke==null&&(x.stroke=d.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:d.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(S,"symbolOffset"),fromSymbolRotate:d.getItemVisual(S,"symbolRotate"),fromSymbolSize:d.getItemVisual(S,"symbolSize"),fromSymbol:d.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:x})}),c.updateData(p),f.line.eachItemGraphicEl(function(S){de(S).dataModel=n,S.traverse(function(x){de(x).dataModel=n})});function _(S,x,C){var T=S.getItemModel(x);Sf(S,x,C,r,i);var b=T.getModel("itemStyle").getItemStyle();b.fill==null&&(b.fill=Ew(l,"color")),S.setItemVisual(x,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:ne(T.get("symbolOffset",!0),w[C?0:1]),symbolRotate:ne(T.get("symbolRotate",!0),y[C?0:1]),symbolSize:ne(T.get("symbolSize"),g[C?0:1]),symbol:ne(T.get("symbol",!0),m[C?0:1]),style:b})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}($B);function WB(e,t,r){var n;e?n=q(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return G(G({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new fo(n,r),i=new fo(n,r),o=new fo([],r),s=q(r.get("data"),be(GB,t,e,r));e&&(s=qe(s,be(HB,e)));var l=BB(!!e,n);return a.initData(q(s,function(u){return u[0]}),null,l),i.initData(q(s,function(u){return u[1]}),null,l),o.initData(q(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const YB=UB;function qB(e){e.registerComponentModel(zB),e.registerComponentView(YB),e.registerPreprocessor(function(t){IB(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var jB=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},XB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,a=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),U(n)&&k(n,function(i,o){j(i)&&(i={type:i}),n[o]=ve(i,jB(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<r.length;a++){var i=r[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],a=[];r.eachRawSeries(function(l){var u=l.name;a.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();r.isSeriesFiltered(l)||(a=a.concat(d)),d.length?n=n.concat(d):c=!0}else c=!0;c&&bd(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=ae(),s=q(i,function(l){return(j(l)||xe(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Qe(l,this,this.ecModel))},this);this._data=qe(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;k(i,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;k(r,function(a){n[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;k(r,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&ce(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(Se);const Lh=XB;var Da=be,Oh=k,Os=Ie,ZB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new Os),this.group.add(this._selectorGroup=new Os),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,a,l,s,u);var c=r.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},d=r.get("padding"),h=Qn(c,f,d),p=this.layoutInner(r,o,h,i,l,u),m=Qn(he({width:p.width,height:p.height},c),f,d);this.group.x=m.x-p.x,this.group.y=m.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=sB(p,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this.getContentGroup(),c=ae(),f=n.get("selectedMode"),d=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),Oh(n.getData(),function(h,p){var m=h.get("name");if(!this.newlineDisabled&&(m===""||m===`
44
- `)){var g=new Os;g.newline=!0,u.add(g);return}var y=a.getSeriesByName(m)[0];if(!c.get(m)){if(y){var w=y.getData(),_=w.getVisual("legendLineStyle")||{},S=w.getVisual("legendIcon"),x=w.getVisual("style"),C=this._createItem(y,m,p,h,n,r,_,x,S,f,i);C.on("click",Da(u0,m,null,i,d)).on("mouseover",Da(Rh,y.name,null,i,d)).on("mouseout",Da(Bh,y.name,null,i,d)),a.ssr&&C.eachChild(function(T){var b=de(T);b.seriesIndex=y.seriesIndex,b.dataIndex=p,b.ssrType="legend"}),c.set(m,!0)}else a.eachRawSeries(function(T){if(!c.get(m)&&T.legendVisualProvider){var b=T.legendVisualProvider;if(!b.containName(m))return;var D=b.indexOfName(m),N=b.getItemVisual(D,"style"),A=b.getItemVisual(D,"legendIcon"),M=Mr(N.fill);M&&M[3]===0&&(M[3]=.2,N=G(G({},N),{fill:ru(M,"rgba")}));var I=this._createItem(T,m,p,h,n,r,{},N,A,f,i);I.on("click",Da(u0,null,m,i,d)).on("mouseover",Da(Rh,null,m,i,d)).on("mouseout",Da(Bh,null,m,i,d)),a.ssr&&I.eachChild(function(P){var L=de(P);L.seriesIndex=T.seriesIndex,L.dataIndex=p,L.ssrType="legend"}),c.set(m,!0)}},this);process.env.NODE_ENV!=="production"&&(c.get(m)||console.warn(m+" series not exists. Legend data should be same with series name or data name."))}},this),o&&this._createSelector(o,n,i,s,l)},t.prototype._createSelector=function(r,n,a,i,o){var s=this.getSelectorGroup();Oh(r,function(u){var c=u.type,f=new He({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);oi(f,{normal:d,emphasis:h},{defaultText:u.title}),dl(f)})},t.prototype._createItem=function(r,n,a,i,o,s,l,u,c,f,d){var h=r.visualDrawType,p=o.get("itemWidth"),m=o.get("itemHeight"),g=o.isSelected(n),y=i.get("symbolRotate"),w=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var S=KB(c,i,l,u,h,g,d),x=new Os,C=i.getModel("textStyle");if(ie(r.getLegendIcon)&&(!_||_==="inherit"))x.add(r.getLegendIcon({itemWidth:p,itemHeight:m,icon:c,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:w}));else{var T=_==="inherit"&&r.getData().getVisual("symbol")?y==="inherit"?r.getData().getVisual("symbolRotate"):y:0;x.add(JB({itemWidth:p,itemHeight:m,icon:c,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:w}))}var b=s==="left"?p+5:-5,D=s,N=o.get("formatter"),A=n;j(N)&&N?A=N.replace("{name}",n??""):ie(N)&&(A=N(n));var M=g?C.getTextColor():i.get("inactiveColor");x.add(new He({style:Xt(C,{text:A,x:b,y:m/2,fill:M,align:D,verticalAlign:"middle"},{inheritColor:M})}));var I=new ke({shape:x.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&Bd({el:I,componentModel:o,itemName:n,itemTooltipOption:P.option}),x.add(I),x.eachChild(function(L){L.silent=!0}),I.silent=!f,this.getContentGroup().add(x),dl(x),x.__legendDataIndex=a,x},t.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();so(r.get("orient"),l,r.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){so("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],p=r.get("selectorButtonGap",!0),m=r.getOrient().index,g=m===0?"width":"height",y=m===0?"height":"width",w=m===0?"y":"x";s==="end"?h[m]+=c[g]+p:f[m]+=d[g]+p,h[1-m]+=c[y]/2-d[y]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+p+d[g],_[y]=Math.max(c[y],d[y]),_[w]=Math.min(0,d[w]+h[1-m]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Zt);function KB(e,t,r,n,a,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Oh(g,function(w,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:Ml(f,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!i){var p=t.get("inactiveBorderWidth"),m=u[c];u.lineWidth=p==="auto"?n.lineWidth>0&&m?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function JB(e){var t=e.icon||"roundRect",r=Br(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function u0(e,t,r,n){Bh(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),Rh(e,t,r,n)}function wS(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,a=t.length;n<a&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function Rh(e,t,r,n){wS(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function Bh(e,t,r,n){wS(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}const bS=ZB;function QB(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function Bi(e,t,r){var n={},a=e==="toggleSelected",i;return r.eachComponent("legend",function(o){a&&i!=null?o[i?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),i=o.isSelected(t.name));var s=o.getData();k(s,function(l){var u=l.get("name");if(!(u===`
45
- `||u==="")){var c=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&c:n[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function eV(e){e.registerAction("legendToggleSelect","legendselectchanged",be(Bi,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",be(Bi,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",be(Bi,"inverseSelect")),e.registerAction("legendSelect","legendselected",be(Bi,"select")),e.registerAction("legendUnSelect","legendunselected",be(Bi,"unSelect"))}function SS(e){e.registerComponentModel(Lh),e.registerComponentView(bS),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,QB),e.registerSubTypeDefaulter("legend",function(){return"plain"}),eV(e)}var tV=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,a){var i=Vo(r);e.prototype.init.call(this,r,n,a),c0(this,r,i)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),c0(this,this.option,r)},t.type="legend.scroll",t.defaultOption=pu(Lh.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(Lh);function c0(e,t,r){var n=e.getOrient(),a=[1,1];a[n.index]=0,Ja(t,r,{type:"box",ignoreSize:!!a})}const rV=tV;var f0=Ie,Cf=["width","height"],xf=["x","y"],nV=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new f0),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new f0)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,a,i,o,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),d=U(f)?f:[f,f];p("pagePrev",0);var h=n.getModel("pageTextStyle");c.add(new He({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(m,g){var y=m+"DataIndex",w=Rd(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:Q(u._pageGo,u,y,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});w.name=m,c.add(w)}},t.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=Cf[u],f=xf[u],d=Cf[1-u],h=xf[1-u];o&&so("horizontal",l,r.get("selectorItemGap",!0));var p=r.get("selectorButtonGap",!0),m=l.getBoundingRect(),g=[-m.x,-m.y],y=ue(a);o&&(y[c]=a[c]-m[c]-p);var w=this._layoutContentAndController(r,i,y,u,c,d,h,f);if(o){if(s==="end")g[u]+=w[c]+p;else{var _=m[c]+p;g[u]-=_,w[f]-=_}w[c]+=m[c]+p,g[1-u]+=w[h]+w[d]/2-m[d]/2,w[d]=Math.max(w[d],m[d]),w[h]=Math.min(w[h],m[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return w},t.prototype._layoutContentAndController=function(r,n,a,i,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;so(r.get("orient"),c,r.get("itemGap"),i?a.width:null,i?null:a.height),so("horizontal",d,r.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),p=d.getBoundingRect(),m=this._showController=h[o]>a[o],g=[-h.x,-h.y];n||(g[i]=c[u]);var y=[0,0],w=[-p.x,-p.y],_=ne(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(m){var S=r.get("pageButtonPosition",!0);S==="end"?w[i]+=a[o]-p[o]:y[i]+=p[o]+_}w[1-i]+=h[s]/2-p[s]/2,c.setPosition(g),f.setPosition(y),d.setPosition(w);var x={x:0,y:0};if(x[o]=m?a[o]:h[o],x[s]=Math.max(h[s],p[s]),x[l]=Math.min(0,p[l]+w[1-i]),f.__rectSize=a[o],m){var C={x:0,y:0};C[o]=Math.max(a[o]-p[o]-_,0),C[s]=x[s],f.setClipPath(new ke({shape:C})),f.__rectSize=C[o]}else d.eachChild(function(b){b.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&tt(c,{x:T.contentPosition[0],y:T.contentPosition[1]},m?r:null),this._updatePageInfoView(r,T),x},t.prototype._pageGo=function(r,n,a){var i=this._getPageInfo(n)[r];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var a=this._controllerGroup;k(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var i=a.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",j(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=r.getOrient().index,s=Cf[o],l=xf[o],u=this._findTargetItemIndex(n),c=a.children(),f=c[u],d=c.length,h=d?1:0,p={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var m=S(f);p.contentPosition[o]=-m.s;for(var g=u+1,y=m,w=m,_=null;g<=d;++g)_=S(c[g]),(!_&&w.e>y.s+i||_&&!x(_,y.s))&&(w.i>y.i?y=w:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),w=_;for(var g=u-1,y=m,w=m,_=null;g>=-1;--g)_=S(c[g]),(!_||!x(w,_.s))&&y.i<w.i&&(w=y,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=_;return p;function S(C){if(C){var T=C.getBoundingRect(),b=T[l]+C[l];return{s:b,e:b+T[s],i:C.__legendDataIndex}}}function x(C,T){return C.e>=T&&C.s<=T+i}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===r&&(n=s)}),n??i},t.type="legend.scroll",t}(bS);const aV=nV;function iV(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function oV(e){gr(SS),e.registerComponentModel(rV),e.registerComponentView(aV),iV(e)}function sV(e){gr(SS),gr(oV)}var lV=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=pu(Vl.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Vl);const uV=lV;var Nv=Ne();function cV(e,t,r){Nv(e).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=r)})}function fV(e,t){for(var r=Nv(e).coordSysRecordMap,n=r.keys(),a=0;a<n.length;a++){var i=n[a],o=r.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||CS(r,o))}}}function CS(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function hV(e,t){var r={model:t,containsPoint:be(vV,t),dispatchAction:be(dV,e),dataZoomInfoMap:null,controller:null},n=r.controller=new NO(e.getZr());return k(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];r.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&r.dispatchAction(o)})}),r}function dV(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function vV(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function pV(e){var t,r="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return e.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[r+s]>n[r+t]&&(t=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function gV(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=Nv(r),a=n.coordSysRecordMap||(n.coordSysRecordMap=ae());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=fS(i);k(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,hV(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ae());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){CS(a,i);return}var c=pV(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),Tu(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var mV=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,a){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),cV(a,r,{pan:Q(Tf.pan,this),zoom:Q(Tf.zoom,this),scrollMove:Q(Tf.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){fV(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(hS),Tf={zoom:function(e,t,r,n){var a=this.range,i=a.slice(),o=e.axisModels[0];if(o){var s=Nf[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Lu(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:h0(function(e,t,r,n,a,i){var o=Nf[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:h0(function(e,t,r,n,a,i){var o=Nf[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,r);return o.signal*(e[1]-e[0])*i.scrollDelta})};function h0(e){return function(t,r,n,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,a);if(Lu(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Nf={grid:function(e,t,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],i.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(e,t,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(e,t,r,n,a){var i=r.axis,o=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const yV=mV;function _V(e){dS(e),e.registerComponentModel(uV),e.registerComponentView(yV),gV(e)}var wV=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=pu(Vl.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Vl);const bV=wV;var Vi=ke,d0=7,SV=1,Df=30,CV=7,$i="horizontal",v0="vertical",xV=5,TV=["line","bar","candlestick","scatter"],NV={easing:"cubicOut",duration:100,delay:0},DV=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=Q(this._onBrush,this),this._onBrushEnd=Q(this._onBrushEnd,this)},t.prototype.render=function(r,n,a,i){if(e.prototype.render.apply(this,arguments),Tu(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){xl(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Ie;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,a=r.get("brushSelect"),i=a?CV:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===$i?{right:s.width-o.x-o.width,top:s.height-Df-d0-i,width:o.width,height:Df}:{right:d0,top:o.y,width:Df,height:o.height},u=Vo(r.option);k(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=Qn(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===v0&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===$i&&!o?{scaleY:l?1:-1,scaleX:1}:a===$i&&o?{scaleY:l?1:-1,scaleX:-1}:a===v0&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=r.get("brushSelect");a.add(new Vi({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Vi({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:Q(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,a=this._shadowSize||[],i=r.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,n[1]],p=[0,n[0]],m=[[n[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),w=0,_=Math.round(o.count()/n[0]),S;o.each([l],function(D,N){if(_>0&&N%_){w+=y;return}var A=D==null||isNaN(D)||D==="",M=A?0:We(D,f,h,!0);A&&!S&&N?(m.push([m[m.length-1][0],0]),g.push([g[g.length-1][0],0])):!A&&S&&(m.push([w,0]),g.push([w,0])),m.push([w,M]),g.push([w,M]),w+=y,S=A}),u=this._shadowPolygonPts=m,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var x=this.dataZoomModel;function C(D){var N=x.getModel(D?"selectedDataBackground":"dataBackground"),A=new Ie,M=new kd({shape:{points:u},segmentIgnoreThreshold:1,style:N.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new ai({shape:{points:c},segmentIgnoreThreshold:1,style:N.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return A.add(M),A.add(I),A}for(var T=0;T<3;T++){var b=C(T===1);this._displayables.sliderGroup.add(b),this._displayables.dataShadowSegs.push(b)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();k(l,function(u){if(!a&&!(n!==!0&&ce(TV,u.get("type"))<0)){var c=i.getComponent(an(o),s).axis,f=AV(o),d,h=u.coordinateSystem;f!=null&&h.getOtherAxis&&(d=h.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),a={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),a}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=n.filler=new Vi({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Vi({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:SV,fill:"rgba(0,0,0,0)"}})),k([0,1],function(_){var S=l.get("handleIcon");!Nl[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S,process.env.NODE_ENV!=="production"&&jt("handleIcon now needs 'path://' prefix when using a path string"));var x=Br(S,-1,0,2,2,null,!0);x.attr({cursor:p0(this._orient),draggable:!0,drift:Q(this._onDragMove,this,_),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1),z2:5});var C=x.getBoundingRect(),T=l.get("handleSize");this._handleHeight=Ce(T,this._size[1]),this._handleWidth=C.width/C.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),dl(x);var b=l.get("handleColor");b!=null&&(x.style.fill=b),o.add(a[_]=x);var D=l.getModel("textStyle");r.add(i[_]=new He({silent:!0,invisible:!0,style:Xt(D,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:D.getTextColor(),font:D.getFont()}),z2:10}))},this);var h=d;if(f){var p=Ce(l.get("moveHandleSize"),s[1]),m=n.moveHandle=new ke({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=n.moveHandleIcon=Br(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,m.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var w=Math.min(s[1]/2,Math.max(p,10));h=n.moveZone=new ke({invisible:!0,shape:{y:s[1]-w,height:p+w}}),h.on("mouseover",function(){u.enterEmphasis(m)}).on("mouseout",function(){u.leaveEmphasis(m)}),o.add(m),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:p0(this._orient),drift:Q(this._onDragMove,this,"all"),ondragstart:Q(this._showDataInfo,this,!0),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[We(r[0],[0,100],n,!0),We(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Lu(n,i,o,a.get("zoomLock")?"all":r,s.minSpan!=null?We(s.minSpan,l,o,!0):null,s.maxSpan!=null?We(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Wi([We(i[0],o,l,!0),We(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,a=this._handleEnds,i=Wi(a.slice()),o=this._size;k([0,1],function(h){var p=n.handles[h],m=this._handleHeight;p.attr({scaleX:m/2,scaleY:m/2,x:a[h]+(h?-1:1),y:o[1]/2-m/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new ke,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(r)},t.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=r?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var d=Wi(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(p){var m=I1(a.handles[p].parent,this.group),g=L1(p===0?"right":"left",m),y=this._handleWidth/2+xV,w=wo([d[p]+(p===0?-y:y),this._size[1]/2],m);i[p].setStyle({x:w[0],y:w[1],verticalAlign:o===$i?"middle":g,align:o===$i?g:"center",text:s[p]})}},t.prototype._formatLabel=function(r,n){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=r==null||isNaN(r)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(r)}):r.toFixed(Math.min(o,20));return ie(i)?i(r,s):j(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(r){r=this._dragging||r;var n=this._displayables,a=n.handleLabels;a[0].attr("invisible",!r),a[1].attr("invisible",!r),n.moveHandle&&this.api[r?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},t.prototype._onDragMove=function(r,n,a,i){this._dragging=!0,Xa(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=wo([n,a],o,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(r){var n=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(a[0]<0||a[0]>n[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,a=r.offsetY;this._brushStart=new se(n,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Wi([We(a.x,o,s,!0),We(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(Xa(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Vi({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?NV:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=fS(this.dataZoomModel).infoList;if(!r&&n.length){var a=n[0].model.coordinateSystem;r=a.getRect&&a.getRect()}if(!r){var i=this.api.getWidth(),o=this.api.getHeight();r={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(hS);function AV(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function p0(e){return e==="vertical"?"ns-resize":"ew-resize"}const MV=DV;function kV(e){e.registerComponentModel(bV),e.registerComponentView(MV),dS(e)}function EV(e){gr(_V),gr(kV)}function g0(e,t,r){var n=ti.createCanvas(),a=t.getWidth(),i=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",e)),n.width=a*r,n.height=i*r,n}var PV=function(e){H(t,e);function t(r,n,a){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||ol,typeof r=="string"?o=g0(r,n,a):K(r)&&(o=r,r=o.id),i.id=r,i.dom=o;var s=o.style;return s&&(u_(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=g0("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new ye(0,0,0,0);function c(w){if(!(!w.isFinite()||w.isZero()))if(o.length===0){var _=new ye(0,0,0,0);_.copy(w),o.push(_)}else{for(var S=!1,x=1/0,C=0,T=0;T<o.length;++T){var b=o[T];if(b.intersect(w)){var D=new ye(0,0,0,0);D.copy(b),D.union(w),o[T]=D,S=!0;break}else if(l){u.copy(w),u.union(b);var N=w.width*w.height,A=b.width*b.height,M=u.width*u.height,I=M-N-A;I<x&&(x=I,C=T)}}if(l&&(o[C].union(w),S=!0),!S){var _=new ye(0,0,0,0);_.copy(w),o.push(_)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=r[f];if(d){var h=d.shouldBePainted(a,i,!0,!0),p=d.__isRendered&&(d.__dirty&_t||!h)?d.getPrevPaintRect():null;p&&c(p);var m=h&&(d.__dirty&_t||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=n[f],h=d&&d.shouldBePainted(a,i,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var y=f+1;y<o.length;)o[f].intersect(o[y])?(g=!0,o[f].union(o[y]),o.splice(y,1)):y++;f++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),i.width=r*a,i.height=n*a,s&&(s.width=r*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},t.prototype.clear=function(r,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;n=n||this.clearColor;var u=this.motionBlur&&!r,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/f,l/f));var h=this.domBack;function p(m,g,y,w){if(o.clearRect(m,g,y,w),n&&n!=="transparent"){var _=void 0;if(eu(n)){var S=n.global||n.__width===y&&n.__height===w;_=S&&n.__canvasGradient||gh(o,n,{x:0,y:0,width:y,height:w}),n.__canvasGradient=_,n.__width=y,n.__height=w}else qT(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,_=mh(o,n,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(m,g,y,w),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(h,m,g,y,w),o.restore())}!a||u?p(0,0,s,l):a.length&&k(a,function(m){p(m.x*f,m.y*f,m.width*f,m.height*f)})},t}(Qt);const Af=PV;var m0=1e5,Vn=314159,Rs=.01,IV=.001;function LV(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function OV(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var RV=function(){function e(t,r,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=G({},n||{}),this.dpr=n.devicePixelRatio||ol,this._singleCanvas=i,this.root=t;var o=t.style;o&&(u_(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var c=t,f=c.width,d=c.height;n.width!=null&&(f=n.width),n.height!=null&&(d=n.height),this.dpr=n.devicePixelRatio||1,c.width=f*this.dpr,c.height=d*this.dpr,this._width=f,this._height=d;var h=new Af(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[Vn]=h,h.zlevel=Vn,s.push(Vn),this._domRoot=t}else{this._width=ys(t,0,n),this._height=ys(t,1,n);var u=this._domRoot=OV(this._width,this._height);t.appendChild(u)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(m0)),i||(i=n.ctx,i.save()),Hn(i,s,a,o===r-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(m0)},e.prototype.paintOne=function(t,r){Ow(t,r)},e.prototype._paintList=function(t,r,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,r,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;zf(function(){l._paintList(t,r,n,a)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(Vn).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(a){a.virtual&&t.drawImage(a.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var a=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&i.push(u)}for(var c=!0,f=!1,d=function(m){var g=i[m],y=g.ctx,w=o&&g.createRepaintRects(t,r,h._width,h._height),_=n?g.__startIndex:g.__drawIndex,S=!n&&g.incremental&&Date.now,x=S&&Date.now(),C=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,C,w);else if(_===g.__startIndex){var T=t[_];(!T.incremental||!T.notClear||n)&&g.clear(!1,C,w)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var b,D=function(I){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(b=_;b<g.__endIndex;b++){var L=t[b];if(L.__inHover&&(f=!0),a._doPaintEl(L,g,o,I,P,b===g.__endIndex-1),S){var E=Date.now()-x;if(E>15)break}}P.prevElClipPaths&&y.restore()};if(w)if(w.length===0)b=g.__endIndex;else for(var N=h.dpr,A=0;A<w.length;++A){var M=w[A];y.save(),y.beginPath(),y.rect(M.x*N,M.y*N,M.width*N,M.height*N),y.clip(),D(M),y.restore()}else y.save(),D(),y.restore();g.__drawIndex=b,g.__drawIndex<g.__endIndex&&(c=!1)},h=this,p=0;p<i.length;p++)d(p);return re.wxa&&k(this._layers,function(m){m&&m.ctx&&m.ctx.draw&&m.ctx.draw()}),{finished:c,needsRefreshHover:f}},e.prototype._doPaintEl=function(t,r,n,a,i,o){var s=r.ctx;if(n){var l=t.getPaintRect();(!a||l&&l.intersect(a))&&(Hn(s,t,i,o),t.setPrevPaintRect(l))}else Hn(s,t,i,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Vn);var n=this._layers[t];return n||(n=new Af("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?ve(n,this._layerConfig[t],!0):this._layerConfig[t-Rs]&&ve(n,this._layerConfig[t-Rs],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,l=-1;if(n[t]){process.env.NODE_ENV!=="production"&&on("ZLevel "+t+" has been used already");return}if(!LV(r)){process.env.NODE_ENV!=="production"&&on("Layer of zlevel "+t+" is not valid");return}if(i>0&&t>a[0]){for(l=0;l<i-1&&!(a[l]<t&&a[l+1]>t);l++);s=n[a[l]]}if(a.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a];t.call(r,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&t.call(r,o,i)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||t.call(r,o,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(f,d){f.__dirty=f.__used=!1});function r(f){i&&(i.__endIndex!==f&&(i.__dirty=!0),i.__endIndex=f)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var a=t[n];if(a.zlevel!==t[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<t.length;l++){var a=t[l],u=a.zlevel,c=void 0;s!==u&&(s=u,o=0),a.incremental?(c=this.getLayer(u+IV,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?Rs:0),this._needsManuallyCompositing),c.__builtin__||on("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),i=c),a.__dirty&_t&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,k(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?ve(n[t],r,!0):n[t]=r;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===t||i===t+Rs){var o=this._layers[i];ve(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,a=r[t];a&&(a.dom.parentNode.removeChild(a.dom),delete r[t],n.splice(ce(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;if(t!=null&&(a.width=t),r!=null&&(a.height=r),t=ys(i,0,a),r=ys(i,1,a),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(Vn).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Vn].dom;var r=new Af("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var a=r.dom.width,i=r.dom.height;this.eachLayer(function(f){f.__builtin__?n.drawImage(f.dom,0,0,a,i):f.renderToCanvas&&(n.save(),f.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Hn(n,c,o,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const BV=RV;function VV(e){e.registerPainter("canvas",BV)}const $V={color:["#8e54c8","#fe9546","#4895ef","#56bd0d","#ffd500","#cc3195","#086470","#f0d22b","#7eb7ca","#ff90b3","#b571fb","#ffba7a","#4cc9f0","#68de14","#ffee32","#f72585","#1594a5","#f2d740","#78fecf","#ffadcf"],backgroundColor:"transparent",textStyle:{fontFamily:"JetBrains"},title:{textStyle:{color:"#333333",fontWeight:"normal"},subtextStyle:{color:"#eeeeee"}},line:{itemStyle:{borderWidth:0},lineStyle:{width:2,shadowColor:"rgba(0,0,0,0.3)",shadowBlur:3,shadowOffsetY:3},label:{color:"#333333",textBorderColor:"rgba(255, 255, 255, 1)",textBorderWidth:4},symbolSize:2,symbol:"circle",smooth:!0},bar:{barWidth:20,showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.1)",borderRadius:[16]},itemStyle:{shadowColor:"rgba(0,0,0,0.3)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:3,borderRadius:[16],barBorderWidth:0,barBorderColor:"#ccc"}},pie:{itemStyle:{borderRadius:10,borderWidth:2,borderColor:"#fff"}},categoryAxis:{axisLine:{show:!1,lineStyle:{color:"#008acd"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!1,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},valueAxis:{axisLine:{show:!1,lineStyle:{color:"#008acd"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{type:[5,10],dashOffset:10,color:["#ddd"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},logAxis:{axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},timeAxis:{axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{type:[5,10],dashOffset:10,color:["#ddd"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},toolbox:{iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},legend:{textStyle:{color:"#333333"}},tooltip:{axisPointer:{label:{color:"#fff",backgroundColor:"#8e54c8"},lineStyle:{color:"rgba(180, 180, 180, 0.1)",width:1},crossStyle:{type:"solid",color:"rgba(180, 180, 180, 0.1)",width:3}}},timeline:{lineStyle:{color:"#008acd",width:1},itemStyle:{color:"#008acd",borderWidth:1},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},checkpointStyle:{color:"#2ec7c9",borderColor:"#2ec7c9"},label:{color:"#8e54c8"},emphasis:{itemStyle:{color:"#a9334c"},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},label:{color:"#008acd"}}},visualMap:{color:["#5ab1ef","#e0ffff"]},dataZoom:{brushSelect:!0,borderColor:"rgba(93, 174, 87, 0.6)",backgroundColor:"rgba(93, 174, 87, 0.1)",fillerColor:"rgba(93, 174, 87, 0.3)",handleColor:"rgba(93, 174, 87, 1)",handleStyle:{borderWidth:1,borderColor:"rgba(93, 174, 87, 0.6)"},textStyle:{color:"#333"}},markPoint:{label:{color:"#eeeeee"},emphasis:{label:{color:"#eeeeee"}}}},FV={color:["#8e54c8","#fe9546","#4895ef","#56bd0d","#ffd500","#cc3195","#086470","#f0d22b","#7eb7ca","#ff90b3","#b571fb","#ffba7a","#4cc9f0","#68de14","#ffee32","#f72585","#1594a5","#f2d740","#78fecf","#ffadcf"],backgroundColor:"transparent",textStyle:{fontFamily:"JetBrains"},title:{textStyle:{color:"#ffffff",fontWeight:"normal"},subtextStyle:{color:"#cccccc"}},line:{itemStyle:{borderWidth:0},lineStyle:{width:2,shadowBlur:3,shadowOffsetY:3},label:{color:"#ffffff",textBorderColor:"rgba(0, 0, 0, 1)",textBorderWidth:2},symbolSize:2,symbol:"circle",smooth:!0},bar:{barWidth:20,showBackground:!0,backgroundStyle:{color:"rgba(142, 84, 200, 0.03)",borderRadius:[16]},label:{show:!0,color:"#fff"},itemStyle:{shadowBlur:3,shadowOffsetX:0,shadowOffsetY:3,borderRadius:[16],barBorderWidth:0,barBorderColor:"#ccc"}},pie:{label:{color:"#fff"},itemStyle:{borderRadius:10,borderWidth:2,borderColor:"#2d2d31"}},categoryAxis:{axisLine:{show:!1,lineStyle:{color:"#cccccc"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#fff"},splitLine:{show:!1,lineStyle:{color:["#363636"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},valueAxis:{axisLine:{show:!1,lineStyle:{color:"#fff"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#fff"},splitLine:{show:!0,lineStyle:{type:[5,10],dashOffset:10,color:["rgba(255, 255, 255, 0.1)"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},logAxis:{axisLine:{show:!0,lineStyle:{color:"#cccccc"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#cccccc"},splitLine:{show:!0,lineStyle:{color:["#363636"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},timeAxis:{axisLine:{show:!0,lineStyle:{color:"rgba(255, 255, 255, 0.1)"}},axisTick:{show:!0,lineStyle:{color:"rgba(255, 255, 255, 0.1)"}},axisLabel:{show:!0,color:"#fff"},splitLine:{show:!0,lineStyle:{type:[5,10],dashOffset:10,color:["rgba(255, 255, 255, 0.1)"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},toolbox:{iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},legend:{textStyle:{color:"#cccccc"}},tooltip:{axisPointer:{label:{color:"#fff",backgroundColor:"rgb(45, 45, 49)"},lineStyle:{color:"rgba(180, 180, 180, 0.1)",width:1},crossStyle:{type:"solid",color:"rgba(180, 180, 180, 0.1)",width:3}}},timeline:{lineStyle:{color:"#8fd3e8",width:1},itemStyle:{color:"#8fd3e8",borderWidth:1},controlStyle:{color:"#8fd3e8",borderColor:"#8fd3e8",borderWidth:.5},checkpointStyle:{color:"#8fd3e8",borderColor:"#8a7ca8"},label:{color:"#8fd3e8"},emphasis:{itemStyle:{color:"#8fd3e8"},controlStyle:{color:"#8fd3e8",borderColor:"#8fd3e8",borderWidth:.5},label:{color:"#8fd3e8"}}},visualMap:{color:["#8a7ca8","#e098c7","#cceffa"]},dataZoom:{brushSelect:!1,borderColor:"rgba(93, 174, 87, 0.6)",backgroundColor:"rgba(93, 174, 87, 0.1)",fillerColor:"rgba(93, 174, 87, 0.3)",handleColor:"rgba(93, 174, 87, 1)",handleStyle:{borderWidth:1,borderColor:"rgba(93, 174, 87, 0.6)"},textStyle:{color:"#fff"}},markPoint:{label:{color:"#eeeeee"},emphasis:{label:{color:"#eeeeee"}}}};Au("white",$V);Au("dark",FV);gr([TL,lL,zL,SR,PB,MB,KR,VV,sV,EV,qB]);const zV={display:"flex",flexDirection:"column",width:"100%",height:"100%"},sr=new WeakMap,xS=v.defineComponent({name:"OcEcharts",props:{options:{type:Object,required:!0},renderer:{type:String,default:()=>"canvas"},style:{type:Object,default:()=>null},notMerge:{type:Boolean,default:()=>!1},ariaShow:{type:Boolean,default:()=>!1},lazyUpdate:{type:Boolean,default:()=>!1},silent:{type:Boolean,default:()=>!1},resizeAble:{type:Boolean,default:()=>!0},events:{type:Object,default:()=>({})},theme:{type:String,default:void 0}},watch:{options:{deep:!0,handler(e){e&&this.setOption()}}},beforeUnmount(){this.dispose()},mounted(){this.$watch(()=>oe.theme,()=>{this.dispose(),this.init()}),this.init()},created(){window.onload=()=>{sr.set(this,null)}},methods:{init(){this.initChart(this.$el).then(e=>{this.setOption(),this.bindEvents(e,this.events),this.resizeAble&&window.addEventListener("resize",this.resizeChart)})},initChart(e){const t=this.renderer||"canvas";return new Promise(r=>{this.$nextTick(()=>{const n=this.theme?this.theme:oe.theme?"dark":"white",a=iP(e,n,{renderer:t,devicePixelRatio:window.devicePixelRatio});sr.set(this,a),r(sr.get(this))})})},setOption(){if(!sr.get(this))return;const e=this.notMerge,t=this.lazyUpdate,r=this.silent,n=this.options,a=sr.get(this);a==null||a.setOption(n,{notMerge:e,lazyUpdate:t,silent:r})},resizeChart(){this.$nextTick(()=>{var e;(e=sr.get(this))==null||e.resize()})},getInstance(){return sr.get(this)},dispose(){var e;this.resizeAble&&window.removeEventListener("resize",this.resizeChart),(e=sr.get(this))==null||e.dispose(),sr.set(this,null),sr.delete(this)},bindEvents(e,t){const r=(n,a)=>{typeof n=="string"&&typeof a=="function"&&e.on(n,i=>{a(i,e)})};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&r(n,t[n])}},render(){const{style:e}=this,t=Object.assign({},zV,e||{});return v.h("div",{style:t})}}),xr=$t.createRouter({history:$t.createWebHistory(),routes:[],scrollBehavior:()=>({left:0,top:0})}),Mf=document.querySelector("html");xr.beforeEach(()=>{Mf==null||Mf.removeAttribute("style")});const GV=v.defineComponent({name:"OcError",components:{NButton:O.NButton},props:{type:{type:String,default:"404"}},setup(e){const t={404:{img:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/404.jpg",txt:"404",title:"404 页面走丢了",title2:"Something's missing."},500:{img:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/500.png",txt:"500",title:"服务暂时中断,请稍后重试.",title2:"Oops! No Internet connection found."}},r=v.ref({img:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/404.jpg",txt:"404",title:"404 页面走丢了",title2:"Something's missing."}),n=()=>{xr.push(oe.platformUrl)},a=v.ref();return v.onMounted(()=>{r.value=t[e.type],a.value=setInterval(()=>{xr.push(oe.platformUrl)},3e3)}),v.onBeforeUnmount(()=>{clearInterval(a.value)}),{goBack:n,content:r}}}),HV={class:"com-card flex-center oc-error"},UV=["src","alt"],WV={class:"oc-miss-txt"},YV={class:"oc-miss-title"},qV={class:"oc-miss-title2"};function jV(e,t,r,n,a,i){const o=v.resolveComponent("NButton");return v.openBlock(),v.createElementBlock("div",HV,[v.createElementVNode("img",{src:e.content.img,alt:e.content.txt,width:"360"},null,8,UV),v.createElementVNode("div",WV,v.toDisplayString(e.content.txt),1),v.createElementVNode("p",YV,v.toDisplayString(e.content.title),1),v.createElementVNode("p",qV,v.toDisplayString(e.content.title2),1),v.createVNode(o,{tertiary:"",onClick:e.goBack},{default:v.withCtx(()=>[v.createTextVNode("返回首页")]),_:1},8,["onClick"])])}const TS=X(GV,[["render",jV]]),XV=v.defineComponent({name:"OcFooter",props:{version:{type:String,default:""}}}),ZV={class:"oc-footer"},KV=v.createElementVNode("span",{style:{"font-family":"Arial, Helvetica, sans-serif"}},"©",-1),JV=v.createElementVNode("a",{href:"https://beian.miit.gov.cn/",target:"_blank",class:"oc-footer-record"}," 沪ICP备 18025935号-3 ",-1);function QV(e,t,r,n,a,i){return v.openBlock(),v.createElementBlock("footer",ZV,[v.createTextVNode(" Copyright "),KV,v.createTextVNode(" 2020-2024 "+v.toDisplayString(e.$t("Common.title"))+" ",1),e.version?(v.openBlock(),v.createElementBlock(v.Fragment,{key:0},[v.createTextVNode("v"+v.toDisplayString(e.version)+" ",1)],64)):v.createCommentVNode("",!0),JV])}const NS=X(XV,[["render",QV]]);var Bs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function DS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function e3(){this.__data__=[],this.size=0}var t3=e3;function r3(e,t){return e===t||e!==e&&t!==t}var AS=r3,n3=AS;function a3(e,t){for(var r=e.length;r--;)if(n3(e[r][0],t))return r;return-1}var Ou=a3,i3=Ou,o3=Array.prototype,s3=o3.splice;function l3(e){var t=this.__data__,r=i3(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():s3.call(t,r,1),--this.size,!0}var u3=l3,c3=Ou;function f3(e){var t=this.__data__,r=c3(t,e);return r<0?void 0:t[r][1]}var h3=f3,d3=Ou;function v3(e){return d3(this.__data__,e)>-1}var p3=v3,g3=Ou;function m3(e,t){var r=this.__data__,n=g3(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var y3=m3,_3=t3,w3=u3,b3=h3,S3=p3,C3=y3;function ui(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ui.prototype.clear=_3;ui.prototype.delete=w3;ui.prototype.get=b3;ui.prototype.has=S3;ui.prototype.set=C3;var Ru=ui,x3=Ru;function T3(){this.__data__=new x3,this.size=0}var N3=T3;function D3(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var A3=D3;function M3(e){return this.__data__.get(e)}var k3=M3;function E3(e){return this.__data__.has(e)}var P3=E3,I3=typeof Bs=="object"&&Bs&&Bs.Object===Object&&Bs,MS=I3,L3=MS,O3=typeof self=="object"&&self&&self.Object===Object&&self,R3=L3||O3||Function("return this")(),rr=R3,B3=rr,V3=B3.Symbol,Dv=V3,y0=Dv,kS=Object.prototype,$3=kS.hasOwnProperty,F3=kS.toString,Fi=y0?y0.toStringTag:void 0;function z3(e){var t=$3.call(e,Fi),r=e[Fi];try{e[Fi]=void 0;var n=!0}catch{}var a=F3.call(e);return n&&(t?e[Fi]=r:delete e[Fi]),a}var G3=z3,H3=Object.prototype,U3=H3.toString;function W3(e){return U3.call(e)}var Y3=W3,_0=Dv,q3=G3,j3=Y3,X3="[object Null]",Z3="[object Undefined]",w0=_0?_0.toStringTag:void 0;function K3(e){return e==null?e===void 0?Z3:X3:w0&&w0 in Object(e)?q3(e):j3(e)}var zo=K3;function J3(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var la=J3,Q3=zo,e$=la,t$="[object AsyncFunction]",r$="[object Function]",n$="[object GeneratorFunction]",a$="[object Proxy]";function i$(e){if(!e$(e))return!1;var t=Q3(e);return t==r$||t==n$||t==t$||t==a$}var ES=i$,o$=rr,s$=o$["__core-js_shared__"],l$=s$,kf=l$,b0=function(){var e=/[^.]+$/.exec(kf&&kf.keys&&kf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function u$(e){return!!b0&&b0 in e}var c$=u$,f$=Function.prototype,h$=f$.toString;function d$(e){if(e!=null){try{return h$.call(e)}catch{}try{return e+""}catch{}}return""}var PS=d$,v$=ES,p$=c$,g$=la,m$=PS,y$=/[\\^$.*+?()[\]{}|]/g,_$=/^\[object .+?Constructor\]$/,w$=Function.prototype,b$=Object.prototype,S$=w$.toString,C$=b$.hasOwnProperty,x$=RegExp("^"+S$.call(C$).replace(y$,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function T$(e){if(!g$(e)||p$(e))return!1;var t=v$(e)?x$:_$;return t.test(m$(e))}var N$=T$;function D$(e,t){return e==null?void 0:e[t]}var A$=D$,M$=N$,k$=A$;function E$(e,t){var r=k$(e,t);return M$(r)?r:void 0}var ua=E$,P$=ua,I$=rr,L$=P$(I$,"Map"),Av=L$,O$=ua,R$=O$(Object,"create"),Bu=R$,S0=Bu;function B$(){this.__data__=S0?S0(null):{},this.size=0}var V$=B$;function $$(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var F$=$$,z$=Bu,G$="__lodash_hash_undefined__",H$=Object.prototype,U$=H$.hasOwnProperty;function W$(e){var t=this.__data__;if(z$){var r=t[e];return r===G$?void 0:r}return U$.call(t,e)?t[e]:void 0}var Y$=W$,q$=Bu,j$=Object.prototype,X$=j$.hasOwnProperty;function Z$(e){var t=this.__data__;return q$?t[e]!==void 0:X$.call(t,e)}var K$=Z$,J$=Bu,Q$="__lodash_hash_undefined__";function e7(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=J$&&t===void 0?Q$:t,this}var t7=e7,r7=V$,n7=F$,a7=Y$,i7=K$,o7=t7;function ci(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ci.prototype.clear=r7;ci.prototype.delete=n7;ci.prototype.get=a7;ci.prototype.has=i7;ci.prototype.set=o7;var s7=ci,C0=s7,l7=Ru,u7=Av;function c7(){this.size=0,this.__data__={hash:new C0,map:new(u7||l7),string:new C0}}var f7=c7;function h7(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var d7=h7,v7=d7;function p7(e,t){var r=e.__data__;return v7(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Vu=p7,g7=Vu;function m7(e){var t=g7(this,e).delete(e);return this.size-=t?1:0,t}var y7=m7,_7=Vu;function w7(e){return _7(this,e).get(e)}var b7=w7,S7=Vu;function C7(e){return S7(this,e).has(e)}var x7=C7,T7=Vu;function N7(e,t){var r=T7(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var D7=N7,A7=f7,M7=y7,k7=b7,E7=x7,P7=D7;function fi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}fi.prototype.clear=A7;fi.prototype.delete=M7;fi.prototype.get=k7;fi.prototype.has=E7;fi.prototype.set=P7;var I7=fi,L7=Ru,O7=Av,R7=I7,B7=200;function V7(e,t){var r=this.__data__;if(r instanceof L7){var n=r.__data__;if(!O7||n.length<B7-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new R7(n)}return r.set(e,t),this.size=r.size,this}var $7=V7,F7=Ru,z7=N3,G7=A3,H7=k3,U7=P3,W7=$7;function hi(e){var t=this.__data__=new F7(e);this.size=t.size}hi.prototype.clear=z7;hi.prototype.delete=G7;hi.prototype.get=H7;hi.prototype.has=U7;hi.prototype.set=W7;var Y7=hi;function q7(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var j7=q7,X7=ua,Z7=function(){try{var e=X7(Object,"defineProperty");return e({},"",{}),e}catch{}}(),K7=Z7,x0=K7;function J7(e,t,r){t=="__proto__"&&x0?x0(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var IS=J7,Q7=IS,e4=AS,t4=Object.prototype,r4=t4.hasOwnProperty;function n4(e,t,r){var n=e[t];(!(r4.call(e,t)&&e4(n,r))||r===void 0&&!(t in e))&&Q7(e,t,r)}var LS=n4,a4=LS,i4=IS;function o4(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),a?i4(r,s,l):a4(r,s,l)}return r}var $u=o4;function s4(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var l4=s4;function u4(e){return e!=null&&typeof e=="object"}var di=u4,c4=zo,f4=di,h4="[object Arguments]";function d4(e){return f4(e)&&c4(e)==h4}var v4=d4,T0=v4,p4=di,OS=Object.prototype,g4=OS.hasOwnProperty,m4=OS.propertyIsEnumerable,y4=T0(function(){return arguments}())?T0:function(e){return p4(e)&&g4.call(e,"callee")&&!m4.call(e,"callee")},_4=y4,w4=Array.isArray,Mv=w4,zl={exports:{}};function b4(){return!1}var S4=b4;zl.exports;(function(e,t){var r=rr,n=S4,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u})(zl,zl.exports);var RS=zl.exports,C4=9007199254740991,x4=/^(?:0|[1-9]\d*)$/;function T4(e,t){var r=typeof e;return t=t??C4,!!t&&(r=="number"||r!="symbol"&&x4.test(e))&&e>-1&&e%1==0&&e<t}var N4=T4,D4=9007199254740991;function A4(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=D4}var BS=A4,M4=zo,k4=BS,E4=di,P4="[object Arguments]",I4="[object Array]",L4="[object Boolean]",O4="[object Date]",R4="[object Error]",B4="[object Function]",V4="[object Map]",$4="[object Number]",F4="[object Object]",z4="[object RegExp]",G4="[object Set]",H4="[object String]",U4="[object WeakMap]",W4="[object ArrayBuffer]",Y4="[object DataView]",q4="[object Float32Array]",j4="[object Float64Array]",X4="[object Int8Array]",Z4="[object Int16Array]",K4="[object Int32Array]",J4="[object Uint8Array]",Q4="[object Uint8ClampedArray]",eF="[object Uint16Array]",tF="[object Uint32Array]",Ae={};Ae[q4]=Ae[j4]=Ae[X4]=Ae[Z4]=Ae[K4]=Ae[J4]=Ae[Q4]=Ae[eF]=Ae[tF]=!0;Ae[P4]=Ae[I4]=Ae[W4]=Ae[L4]=Ae[Y4]=Ae[O4]=Ae[R4]=Ae[B4]=Ae[V4]=Ae[$4]=Ae[F4]=Ae[z4]=Ae[G4]=Ae[H4]=Ae[U4]=!1;function rF(e){return E4(e)&&k4(e.length)&&!!Ae[M4(e)]}var nF=rF;function aF(e){return function(t){return e(t)}}var kv=aF,Gl={exports:{}};Gl.exports;(function(e,t){var r=MS,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&r.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(Gl,Gl.exports);var Ev=Gl.exports,iF=nF,oF=kv,N0=Ev,D0=N0&&N0.isTypedArray,sF=D0?oF(D0):iF,lF=sF,uF=l4,cF=_4,fF=Mv,hF=RS,dF=N4,vF=lF,pF=Object.prototype,gF=pF.hasOwnProperty;function mF(e,t){var r=fF(e),n=!r&&cF(e),a=!r&&!n&&hF(e),i=!r&&!n&&!a&&vF(e),o=r||n||a||i,s=o?uF(e.length,String):[],l=s.length;for(var u in e)(t||gF.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||dF(u,l)))&&s.push(u);return s}var VS=mF,yF=Object.prototype;function _F(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||yF;return e===r}var Pv=_F;function wF(e,t){return function(r){return e(t(r))}}var $S=wF,bF=$S,SF=bF(Object.keys,Object),CF=SF,xF=Pv,TF=CF,NF=Object.prototype,DF=NF.hasOwnProperty;function AF(e){if(!xF(e))return TF(e);var t=[];for(var r in Object(e))DF.call(e,r)&&r!="constructor"&&t.push(r);return t}var MF=AF,kF=ES,EF=BS;function PF(e){return e!=null&&EF(e.length)&&!kF(e)}var FS=PF,IF=VS,LF=MF,OF=FS;function RF(e){return OF(e)?IF(e):LF(e)}var Iv=RF,BF=$u,VF=Iv;function $F(e,t){return e&&BF(t,VF(t),e)}var FF=$F;function zF(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var GF=zF,HF=la,UF=Pv,WF=GF,YF=Object.prototype,qF=YF.hasOwnProperty;function jF(e){if(!HF(e))return WF(e);var t=UF(e),r=[];for(var n in e)n=="constructor"&&(t||!qF.call(e,n))||r.push(n);return r}var XF=jF,ZF=VS,KF=XF,JF=FS;function QF(e){return JF(e)?ZF(e,!0):KF(e)}var Lv=QF,ez=$u,tz=Lv;function rz(e,t){return e&&ez(t,tz(t),e)}var nz=rz,Hl={exports:{}};Hl.exports;(function(e,t){var r=rr,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;function l(u,c){if(c)return u.slice();var f=u.length,d=s?s(f):new u.constructor(f);return u.copy(d),d}e.exports=l})(Hl,Hl.exports);var az=Hl.exports;function iz(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var oz=iz;function sz(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}var lz=sz;function uz(){return[]}var zS=uz,cz=lz,fz=zS,hz=Object.prototype,dz=hz.propertyIsEnumerable,A0=Object.getOwnPropertySymbols,vz=A0?function(e){return e==null?[]:(e=Object(e),cz(A0(e),function(t){return dz.call(e,t)}))}:fz,Ov=vz,pz=$u,gz=Ov;function mz(e,t){return pz(e,gz(e),t)}var yz=mz;function _z(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var GS=_z,wz=$S,bz=wz(Object.getPrototypeOf,Object),HS=bz,Sz=GS,Cz=HS,xz=Ov,Tz=zS,Nz=Object.getOwnPropertySymbols,Dz=Nz?function(e){for(var t=[];e;)Sz(t,xz(e)),e=Cz(e);return t}:Tz,US=Dz,Az=$u,Mz=US;function kz(e,t){return Az(e,Mz(e),t)}var Ez=kz,Pz=GS,Iz=Mv;function Lz(e,t,r){var n=t(e);return Iz(e)?n:Pz(n,r(e))}var WS=Lz,Oz=WS,Rz=Ov,Bz=Iv;function Vz(e){return Oz(e,Bz,Rz)}var $z=Vz,Fz=WS,zz=US,Gz=Lv;function Hz(e){return Fz(e,Gz,zz)}var Uz=Hz,Wz=ua,Yz=rr,qz=Wz(Yz,"DataView"),jz=qz,Xz=ua,Zz=rr,Kz=Xz(Zz,"Promise"),Jz=Kz,Qz=ua,e8=rr,t8=Qz(e8,"Set"),r8=t8,n8=ua,a8=rr,i8=n8(a8,"WeakMap"),o8=i8,Vh=jz,$h=Av,Fh=Jz,zh=r8,Gh=o8,YS=zo,vi=PS,M0="[object Map]",s8="[object Object]",k0="[object Promise]",E0="[object Set]",P0="[object WeakMap]",I0="[object DataView]",l8=vi(Vh),u8=vi($h),c8=vi(Fh),f8=vi(zh),h8=vi(Gh),$n=YS;(Vh&&$n(new Vh(new ArrayBuffer(1)))!=I0||$h&&$n(new $h)!=M0||Fh&&$n(Fh.resolve())!=k0||zh&&$n(new zh)!=E0||Gh&&$n(new Gh)!=P0)&&($n=function(e){var t=YS(e),r=t==s8?e.constructor:void 0,n=r?vi(r):"";if(n)switch(n){case l8:return I0;case u8:return M0;case c8:return k0;case f8:return E0;case h8:return P0}return t});var Rv=$n,d8=Object.prototype,v8=d8.hasOwnProperty;function p8(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&v8.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var g8=p8,m8=rr,y8=m8.Uint8Array,_8=y8,L0=_8;function w8(e){var t=new e.constructor(e.byteLength);return new L0(t).set(new L0(e)),t}var Bv=w8,b8=Bv;function S8(e,t){var r=t?b8(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var C8=S8,x8=/\w*$/;function T8(e){var t=new e.constructor(e.source,x8.exec(e));return t.lastIndex=e.lastIndex,t}var N8=T8,O0=Dv,R0=O0?O0.prototype:void 0,B0=R0?R0.valueOf:void 0;function D8(e){return B0?Object(B0.call(e)):{}}var A8=D8,M8=Bv;function k8(e,t){var r=t?M8(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var E8=k8,P8=Bv,I8=C8,L8=N8,O8=A8,R8=E8,B8="[object Boolean]",V8="[object Date]",$8="[object Map]",F8="[object Number]",z8="[object RegExp]",G8="[object Set]",H8="[object String]",U8="[object Symbol]",W8="[object ArrayBuffer]",Y8="[object DataView]",q8="[object Float32Array]",j8="[object Float64Array]",X8="[object Int8Array]",Z8="[object Int16Array]",K8="[object Int32Array]",J8="[object Uint8Array]",Q8="[object Uint8ClampedArray]",e6="[object Uint16Array]",t6="[object Uint32Array]";function r6(e,t,r){var n=e.constructor;switch(t){case W8:return P8(e);case B8:case V8:return new n(+e);case Y8:return I8(e,r);case q8:case j8:case X8:case Z8:case K8:case J8:case Q8:case e6:case t6:return R8(e,r);case $8:return new n;case F8:case H8:return new n(e);case z8:return L8(e);case G8:return new n;case U8:return O8(e)}}var n6=r6,a6=la,V0=Object.create,i6=function(){function e(){}return function(t){if(!a6(t))return{};if(V0)return V0(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),o6=i6,s6=o6,l6=HS,u6=Pv;function c6(e){return typeof e.constructor=="function"&&!u6(e)?s6(l6(e)):{}}var f6=c6,h6=Rv,d6=di,v6="[object Map]";function p6(e){return d6(e)&&h6(e)==v6}var g6=p6,m6=g6,y6=kv,$0=Ev,F0=$0&&$0.isMap,_6=F0?y6(F0):m6,w6=_6,b6=Rv,S6=di,C6="[object Set]";function x6(e){return S6(e)&&b6(e)==C6}var T6=x6,N6=T6,D6=kv,z0=Ev,G0=z0&&z0.isSet,A6=G0?D6(G0):N6,M6=A6,k6=Y7,E6=j7,P6=LS,I6=FF,L6=nz,O6=az,R6=oz,B6=yz,V6=Ez,$6=$z,F6=Uz,z6=Rv,G6=g8,H6=n6,U6=f6,W6=Mv,Y6=RS,q6=w6,j6=la,X6=M6,Z6=Iv,K6=Lv,J6=1,Q6=2,eG=4,qS="[object Arguments]",tG="[object Array]",rG="[object Boolean]",nG="[object Date]",aG="[object Error]",jS="[object Function]",iG="[object GeneratorFunction]",oG="[object Map]",sG="[object Number]",XS="[object Object]",lG="[object RegExp]",uG="[object Set]",cG="[object String]",fG="[object Symbol]",hG="[object WeakMap]",dG="[object ArrayBuffer]",vG="[object DataView]",pG="[object Float32Array]",gG="[object Float64Array]",mG="[object Int8Array]",yG="[object Int16Array]",_G="[object Int32Array]",wG="[object Uint8Array]",bG="[object Uint8ClampedArray]",SG="[object Uint16Array]",CG="[object Uint32Array]",De={};De[qS]=De[tG]=De[dG]=De[vG]=De[rG]=De[nG]=De[pG]=De[gG]=De[mG]=De[yG]=De[_G]=De[oG]=De[sG]=De[XS]=De[lG]=De[uG]=De[cG]=De[fG]=De[wG]=De[bG]=De[SG]=De[CG]=!0;De[aG]=De[jS]=De[hG]=!1;function Zs(e,t,r,n,a,i){var o,s=t&J6,l=t&Q6,u=t&eG;if(r&&(o=a?r(e,n,a,i):r(e)),o!==void 0)return o;if(!j6(e))return e;var c=W6(e);if(c){if(o=G6(e),!s)return R6(e,o)}else{var f=z6(e),d=f==jS||f==iG;if(Y6(e))return O6(e,s);if(f==XS||f==qS||d&&!a){if(o=l||d?{}:U6(e),!s)return l?V6(e,L6(o,e)):B6(e,I6(o,e))}else{if(!De[f])return a?e:{};o=H6(e,f,s)}}i||(i=new k6);var h=i.get(e);if(h)return h;i.set(e,o),X6(e)?e.forEach(function(g){o.add(Zs(g,t,r,g,e,i))}):q6(e)&&e.forEach(function(g,y){o.set(y,Zs(g,t,r,y,e,i))});var p=u?l?F6:$6:l?K6:Z6,m=c?void 0:p(e);return E6(m||e,function(g,y){m&&(y=g,g=e[y]),P6(o,y,Zs(g,t,r,y,e,i))}),o}var xG=Zs,TG=xG,NG=1,DG=4;function AG(e){return TG(e,NG|DG)}var MG=AG;const Rt=DS(MG),kG=v.defineComponent({name:"OcForm",components:{NIcon:O.NIcon,NGrid:O.NGrid,NForm:O.NForm,NFormItemGi:O.NFormItemGi,NButton:O.NButton,NInput:O.NInput,NSelect:O.NSelect,NInputNumber:O.NInputNumber,NDatePicker:O.NDatePicker,NTimePicker:O.NTimePicker,NSwitch:O.NSwitch,NUpload:O.NUpload,NUploadDragger:O.NUploadDragger,IconMailInboxAdd:ko},props:{items:{required:!0,type:Array,default:()=>[]},data:{required:!0,type:Object,default:()=>({})},edit:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},labelWidth:{type:[String,Number],default:"auto"},labelAlign:{type:String,default:"left"},labelPlacement:{type:String,default:"top"}},setup(e,{expose:t}){const r=v.ref(),n=v.ref({}),a=v.ref([]),{t:i}=Kt.useI18n(),o=p=>!((p==null?void 0:p.show)===!1||e.edit&&p.edit&&!p.edit.show),s=()=>{const p=Rt(e.items);p.forEach(m=>{if(m.rule&&m.rule.validator&&typeof m.rule.validator=="string"){const g=m.rule.validator,y=new Function("rule","value",g);m.rule.validator=(w,_)=>y(w,_)}if(m.input==="date"&&m.isDateDisabled&&typeof m.isDateDisabled=="string"){const g=m.isDateDisabled,y=new Function("ts","detail",g);m.isDateDisabled=(w,_)=>y(w,_)}m.input==="select"&&m.fallbackOption&&m.multiple&&(!n.value[m.key]||n.value[m.key].length===0)&&(n.value[m.key]=[""])}),a.value=p},l=(p,m)=>{if(p.updateValue){const g=Rt(n.value);if(typeof p.updateValue=="string"){const y=p.updateValue;new Function("value","formValue",y)(m,g)}else p.updateValue(m,g)}},u=(p,m)=>new Promise((g,y)=>{p.file.file&&(n.value[m]=p.file.file,g()),y()}),c=(p,m)=>{p.length===0&&(n.value[m]="")},f=p=>p.fallbackOption?typeof p.fallbackOption=="boolean"?()=>({label:i("Common.message.all"),value:"",disabled:!0}):p.fallbackOption:!1,d=()=>new Promise((p,m)=>{var g;(g=r.value)==null||g.validate(y=>{if(y)m();else{const w=Rt(n.value),_=JSON.stringify(w,(S,x)=>x===void 0?null:Array.isArray(x)?x.filter(C=>C!==""):x);p(JSON.parse(_))}})}),h=()=>{var p;(p=r.value)==null||p.restoreValidation()};return v.onMounted(()=>{n.value=Rt(e.data),s()}),t({validate:d,restoreValidation:h}),v.watch(()=>e.items,()=>{s()},{deep:!0}),v.watch(()=>e.data,p=>{n.value=Rt(p)},{deep:!0}),{formRef:r,formValue:n,formItems:a,cloneDeep:Rt,updateValue:l,beforeUpload:u,uploadChange:c,elementShow:o,selectFallback:f}}}),EG=v.createElementVNode("br",null,null,-1),PG=v.createElementVNode("p",null,"点击或者拖动文件到该区域来上传",-1),IG=v.createElementVNode("p",null," 请不要上传敏感数据,比如你的银行卡号和密码,信用卡号有效期和安全码 ",-1);function LG(e,t,r,n,a,i){const o=v.resolveComponent("NInput"),s=v.resolveComponent("NInputNumber"),l=v.resolveComponent("NDatePicker"),u=v.resolveComponent("NSelect"),c=v.resolveComponent("NTimePicker"),f=v.resolveComponent("NSwitch"),d=v.resolveComponent("IconMailInboxAdd"),h=v.resolveComponent("NIcon"),p=v.resolveComponent("NUploadDragger"),m=v.resolveComponent("NUpload"),g=v.resolveComponent("NFormItemGi"),y=v.resolveComponent("NGrid"),w=v.resolveComponent("NForm");return v.openBlock(),v.createBlock(w,{ref:"formRef",model:e.formValue,disabled:e.disabled,inline:e.inline,labelWidth:e.labelWidth,labelAlign:e.labelAlign,labelPlacement:e.labelPlacement},{default:v.withCtx(()=>[v.createVNode(y,{cols:12,"x-gap":8},{default:v.withCtx(()=>[(v.openBlock(!0),v.createElementBlock(v.Fragment,null,v.renderList(e.formItems,_=>(v.openBlock(),v.createElementBlock(v.Fragment,{key:_.key},[e.elementShow(_)?(v.openBlock(),v.createBlock(g,{key:0,span:_.span||6,label:_.label,path:_.key,rule:_.rule},{default:v.withCtx(()=>[_.input==="input"?(v.openBlock(),v.createBlock(o,{key:0,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,type:_.type,placeholder:_.placeholder,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,readonly:e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,minlength:_.minlength,maxlength:_.maxlength,rows:_.rows,"show-count":!!_.maxlength,"on-update:value":S=>{e.formValue[_.key]=S.trim(),e.updateValue(_,S.trim())}},null,8,["value","onUpdate:value","type","placeholder","disabled","readonly","clearable","minlength","maxlength","rows","show-count","on-update:value"])):v.createCommentVNode("",!0),_.input==="number"?(v.openBlock(),v.createBlock(s,{key:1,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,placeholder:_.placeholder,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,readonly:e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,precision:_.precision||0,min:_.min,max:_.max,step:_.step,showButton:_.showButton,"on-update:value":S=>{e.formValue[_.key]=S,e.updateValue(_,S)}},null,8,["value","onUpdate:value","placeholder","disabled","readonly","clearable","precision","min","max","step","showButton","on-update:value"])):v.createCommentVNode("",!0),_.input==="date"&&!_.format?(v.openBlock(),v.createBlock(l,{key:2,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,type:_.type,placeholder:_.placeholder,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,"input-readonly":e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,"time-picker-props":_.timePickerProps,"is-date-disabled":(S,x)=>_.isDateDisabled?_.isDateDisabled(S,x):!1,"close-on-select":"","on-update:value":S=>{e.formValue[_.key]=S,e.updateValue(_,S)}},null,8,["value","onUpdate:value","type","placeholder","disabled","input-readonly","clearable","time-picker-props","is-date-disabled","on-update:value"])):v.createCommentVNode("",!0),_.input==="date"&&_.format?(v.openBlock(),v.createBlock(l,{key:3,"formatted-value":e.formValue[_.key],"onUpdate:formattedValue":S=>e.formValue[_.key]=S,type:_.type,placeholder:_.placeholder,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,"input-readonly":e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,format:_.format,"time-picker-props":_.timePickerProps,"is-date-disabled":(S,x)=>_.isDateDisabled?_.isDateDisabled(S,x):!1,"close-on-select":"","on-update:formatted-value":S=>{e.formValue[_.key]=S,e.updateValue(_,S)}},null,8,["formatted-value","onUpdate:formattedValue","type","placeholder","disabled","input-readonly","clearable","format","time-picker-props","is-date-disabled","on-update:formatted-value"])):v.createCommentVNode("",!0),_.input==="select"?(v.openBlock(),v.createBlock(u,{key:4,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,placeholder:_.placeholder,options:_.options,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,readonly:e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,filterable:_.filterable,multiple:_.multiple,"fallback-option":e.selectFallback(_),maxTagCount:_.maxTagCount,"render-label":_.renderLabel,"render-option":_.renderOption,"render-tag":_.renderTag,"on-update:value":S=>{let x=S,C=S;if(_.multiple){let T=S.filter(b=>b);T.length===0?(x=[""],C=[]):(x=T,C=T)}e.formValue[_.key]=x,e.updateValue(_,C)}},null,8,["value","onUpdate:value","placeholder","options","disabled","readonly","clearable","filterable","multiple","fallback-option","maxTagCount","render-label","render-option","render-tag","on-update:value"])):v.createCommentVNode("",!0),_.input==="time"?(v.openBlock(),v.createBlock(c,{key:5,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,placeholder:_.placeholder,format:_.format,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,readonly:e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,"on-update:value":S=>{e.formValue[_.key]=S,e.updateValue(_,S)}},null,8,["value","onUpdate:value","placeholder","format","disabled","readonly","clearable","on-update:value"])):v.createCommentVNode("",!0),_.input==="switch"?(v.openBlock(),v.createBlock(f,{key:6,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,size:"large","on-update:value":S=>{e.formValue[_.key]=S,e.updateValue(_,S)}},null,8,["value","onUpdate:value","disabled","on-update:value"])):v.createCommentVNode("",!0),_.input==="upload"?(v.openBlock(),v.createBlock(m,{key:7,"default-file-list":e.formValue[_.key]?[{id:"1",name:"File",status:"finished",url:e.formValue[_.key]}]:void 0,"on-before-upload":S=>{e.beforeUpload(S,_.key)},accept:_.accept,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,max:_.max,"on-update:file-list":S=>{e.uploadChange(S,_.key)},"directory-dnd":""},{default:v.withCtx(()=>[v.withDirectives(v.createVNode(p,null,{default:v.withCtx(()=>[v.createVNode(h,{size:"32"},{default:v.withCtx(()=>[v.createVNode(d)]),_:1}),EG,PG,IG]),_:2},1536),[[v.vShow,!e.formValue[_.key]]])]),_:2},1032,["default-file-list","on-before-upload","accept","disabled","max","on-update:file-list"])):v.createCommentVNode("",!0)]),_:2},1032,["span","label","path","rule"])):v.createCommentVNode("",!0)],64))),128))]),_:1})]),_:1},8,["model","disabled","inline","labelWidth","labelAlign","labelPlacement"])}const ZS=X(kG,[["render",LG]]),OG=Object.prototype.hasOwnProperty;function KS(e,t){const r=[];for(const n in e){if(!OG.call(e,n))continue;const a=e[n],i=encodeURIComponent(n);let o;typeof a=="object"?o=KS(a,t?t+"["+i+"]":i):o=(t?t+"["+i+"]":i)+"="+encodeURIComponent(a),r.push(o)}return r.join("&")}const{notification:Ef}=O.createDiscreteApi(["notification"],{configProviderProps:{themeOverrides:{common:{borderRadius:"16px",borderRadiusSmall:"8px",primaryColor:"#8e54c8",primaryColorHover:"#9b66d0",primaryColorPressed:"#8e54c8",primaryColorSuppl:"#8e54c8",infoColor:"#2080f0",infoColorHover:"#57a4fd",infoColorPressed:"#2080f0",infoColorSuppl:"#2080f0",successColor:"#5dae57",successColorHover:"#70ce69",successColorPressed:"#5dae57",successColorSuppl:"#5dae57",warningColor:"#f0973a",warningColorHover:"#ffb05d",warningColorPressed:"#f0973a",warningColorSuppl:"#f0973a",errorColor:"#e65444",errorColorHover:"#fc6c5d",errorColorPressed:"#e65444",errorColorSuppl:"#e65444",cardColor:"#fff"},Button:{textColor:"rgb(var(--font))"},Notification:{borderRadius:"16px"}}},notificationProviderProps:{placement:"top"}}),pi=Uh.create({timeout:3e5,responseType:"json",headers:{platformType:"T1"}});let Hh=Uh.CancelToken.source();pi.interceptors.request.use(e=>{var r;e.cancelToken=Hh.token;const t=Et("token",!1);if(e.headers&&t&&(e.headers["X-Auth-Token"]=t),((r=e.method)==null?void 0:r.toLocaleUpperCase())==="GET"){const n=KS(e.data);n&&(e.url=`${e.url}?${n}`)}return e},e=>Promise.reject(e));pi.interceptors.response.use(e=>{const t=e.data;if(e.config.responseType==="blob"||e.config.responseType==="text")return Promise.resolve(e.data);if(t.ok)return Promise.resolve(t.data);{let r=t.message;return(r.indexOf("Connection refused")>-1||r.indexOf("finishConnect")>-1)&&(r="网络错误,请稍后重试"),Ef.error({content:r,duration:3e3}),Promise.reject(r)}},e=>{if(e&&e.code==="ECONNABORTED"&&e.config&&e.config.url&&e.config.url.indexOf("auth/user/getCurrentUserInfo")>-1&&(K0(),xr.replace("/custom/500")),e&&e.response)switch(e.response.status){case 401:case 403:Eo("token"),window.location.href="/login";break;default:return Ef.destroyAll(),Ef.error({content:"系统正在维护中,请稍后再试!",duration:3e3}),Promise.reject()}else return Promise.reject()});const RG=()=>{Hh.cancel(),Hh=Uh.CancelToken.source()},Vv="/apiserver/",JS=(e,t,r="json")=>pi({url:`${Vv}${e}`,method:"GET",data:t,responseType:r}),ut=(e,t={},r="json",n=3e5)=>pi({url:`${Vv}${e}`,method:"POST",data:t,responseType:r,timeout:n}),BG=e=>pi(e),$v=(e,t)=>pi({headers:{"Content-Type":"multipart/form-data"},url:`${Vv}${e}`,method:"POST",data:t}),H0=e=>{const t=JSON.parse(JSON.stringify(e));return t.password=Vs(t.password),ut("api/user/v2/login",t)},VG=()=>new Promise((e,t)=>{ut("api/auth/user/getCurrentUserInfo",{},"json",1e4).then(r=>{const n=["046459"];r.commissioner=!1,n.includes(String(r.tenantLoginCode))&&(r.commissioner=!0);const a=r.ownedProducts?JSON.parse(r.ownedProducts):[];switch(a.includes(2)?r.platform_tdm=!0:r.platform_tdm=!1,a.includes(3)?r.platform_qms=!0:r.platform_qms=!1,a.includes(4)?r.platform_twin=!0:r.platform_twin=!1,a.includes(5)?r.platform_maintain=!0:r.platform_maintain=!1,a.includes(6)?r.platform_simple_tdm=!0:r.platform_simple_tdm=!1,a.includes(7)?r.platform_order=!0:r.platform_order=!1,r.systemType){case"Premium":r.systemType=1;break;case"Flagship":r.systemType=2;break;default:r.systemType=0;break}r.info=JSON.parse(r.info),e(r)}).catch(()=>{t()})}),$G=()=>ut("api/auth/user/logout"),FG=()=>ut("api/manager/message/markReadAll"),zG=()=>ut("api/auth/user/updateTenantRenewalStatus"),GG=e=>ut("api/manager/job/remove",e),HG=e=>ut("api/manager/job/retry",{jobId:e}),UG=e=>new Promise((t,r)=>{const n=Io(e);ut("api/manager/job/page",n).then(a=>{const i=Po(a);t(i)}).catch(()=>{r()})}),Fv=e=>new Promise((t,r)=>{const n=new FormData;n.append("jobType","EXPORT"),Object.keys(e).forEach(a=>{e.query&&a==="query"?n.append("query",JSON.stringify(e.query)):n.append(a,e[a])}),$v("api/manager/job/submit",n).then(()=>{od(!0),t()}).catch(a=>{r(a)})}),WG=e=>new Promise((t,r)=>{const n=Io(e);n.status===-1&&(n.status=""),ut("api/manager/message/messagePage",n).then(a=>{const i=Po(a);t({data:i,unRead:a.unRead})}).catch(()=>{r()})}),YG=e=>ut("api/manager/message/markRead",{messageId:e});let QS=!0;const $=v.reactive({commissioner:!1,factoryId:"",tenantLoginCode:"",thirdUserId:"",userId:"",email:"",name:"",realName:"",phone:"",description:"",tenantName:"",oeeStatus:0,ncFlg:0,info:{type:0,id:"",viewType:1,interval:5,theme:"light"},kind:0,systemType:0,password:"",enable:!0,platform_tdm:!1,platform_qms:!1,platform_twin:!1,platform_maintain:!1,platform_order:!1,platform_simple_tdm:!1,authorizationGroupArray:[],authorizationMachineArray:[],iot_menu_authorization:[],tdm_menu_authorization:[],qms_menu_authorization:[],maintain_menu_authorization:[],order_menu_authorization:[],endTime:0,tenantStatus:1,renewalStatus:0,roleId:1,industryCategory:"0"});function qG(e){QS=e}function zv(e){const t=window.location.host;if(t.includes("partexiot")){const r=Et("token",!1);$.industryCategory=e.industryCategory||"0",!t.includes("vpn")&&QS&&(e.industryCategory==="0"&&t.includes("printing")&&(window.location.href=`https://www.partexiot.cn/auth?auth=${r}`),e.industryCategory==="1"&&!t.includes("printing")&&(window.location.href=`https://printing.partexiot.cn/auth?auth=${r}`))}if($.commissioner=e.commissioner,$.factoryId=e.factoryId,$.tenantLoginCode=e.tenantLoginCode,$.userId=e.userId,$.email=e.email,$.name=e.name,$.realName=e.realName,$.tenantName=e.tenantName,$.phone=e.phone,$.info=e.info,$.kind=e.kind,$.oeeStatus=e.oeeStatus||0,$.ncFlg=e.ncFlg||0,$.systemType=e.systemType,$.platform_tdm=e.platform_tdm,$.platform_qms=e.platform_qms,$.platform_twin=e.platform_twin,$.platform_maintain=e.platform_maintain,$.platform_order=e.platform_order,$.platform_simple_tdm=e.platform_simple_tdm,$.authorizationGroupArray=e.authorizationGroupArray||[],$.authorizationMachineArray=e.authorizationMachineArray||[],$.iot_menu_authorization=e.iot_menu_authorization||[],$.tdm_menu_authorization=e.tdm_menu_authorization||[],$.qms_menu_authorization=e.qms_menu_authorization||[],$.maintain_menu_authorization=e.maintain_menu_authorization||[],$.order_menu_authorization=e.order_menu_authorization||[],$.endTime=e.endTime??0,$.tenantStatus=e.tenantStatus??1,$.renewalStatus=e.renewalStatus??0,$.roleId=e.roleId||0,$.kind===1){const r=e.info,n=String(e.info.type);n==="0"&&xr.replace(`/dashboard/list?machGroupId=${r.id}&theme=${r.theme||"light"}`),n==="1"&&xr.replace(`/dashboard/single?machId=${r.id}&type=${r.viewType??1}&theme=${r.theme||"light"}`),n==="2"&&xr.push(`/dashboard/carousel?theme=${r.theme||"light"}`),n==="3"&&xr.push(`/dashboard/carouselist?theme=${r.theme||"light"}`),n==="4"&&xr.push(`/dashboard/performance?schemeId=${r.id}&theme=${r.theme||"light"}`)}}function Fu(){return new Promise((e,t)=>{VG().then(r=>{zv(r),e(r)}).catch(()=>{t()})})}function zu(){$.factoryId="",$.commissioner=!1,$.tenantLoginCode="",$.userId="",$.email="",$.name="",$.realName="",$.tenantName="",$.phone="",$.description="",$.info={type:0,id:"",viewType:1,interval:5,theme:"light"},$.kind=0,$.systemType=0,$.oeeStatus=0,$.ncFlg=0,$.password="",$.enable=!0,$.platform_tdm=!1,$.platform_qms=!1,$.platform_twin=!1,$.platform_maintain=!1,$.platform_order=!1,$.platform_simple_tdm=!1,$.authorizationGroupArray=[],$.authorizationMachineArray=[],$.iot_menu_authorization=[],$.tdm_menu_authorization=[],$.qms_menu_authorization=[],$.maintain_menu_authorization=[],$.order_menu_authorization=[],$.endTime=0,$.tenantStatus=1,$.renewalStatus=0,$.roleId=1}async function Gv(){await $G().catch(()=>null),Eo("token"),zu(),window.location.href="/login"}const jG=v.defineComponent({name:"HeaderPop",components:{NFlex:O.NFlex,NInput:O.NInput,NPopover:O.NPopover,NTooltip:O.NTooltip,NButton:O.NButton,NIcon:O.NIcon,NDataTable:O.NDataTable,IconSearch:ql,IconArrowClockwise:Wa,IconArrowSquareDown:jh},setup(){const{t:e}=Kt.useI18n(),t=v.ref(!1),r=O.useNotification(),n=v.ref([]),a=v.ref(""),i=v.ref(!1),o=v.ref({page:1,pageCount:1,pageSize:30}),s=v.ref([{title:()=>e("Common.importer.fileName"),key:"jobName",width:300,render(h){return v.h("div",{},{default:()=>[v.h("p",{},{default:()=>h.jobName||"--"}),v.h("p",{style:{color:"rgba(var(--font), 0.6)"}},{default:()=>Tr(h.commitTime,"yyyy-MM-dd hh:mm:ss")})]})}},{title:()=>e("Common.importer.status"),key:"jobStatus",align:"center",width:90,render(h){let p=e("Common.processing");return h.jobStatus===1&&(p=e("Common.success")),h.jobStatus===2&&(p=e("Common.failed")),v.h("span",{},{default:()=>p})}},{title:()=>e("Common.action"),key:"action",align:"center",fixed:"right",width:90,render(h){const p=[{type:"delete",onClick:()=>{GG([h.jobId]).then(()=>{r.success({content:()=>e("Notice.success"),duration:3e3}),f()}).catch(()=>{r.error({content:()=>e("Notice.error"),duration:3e3})})}}];return h.jobStatus===2?p.unshift({type:"custom",onClick:()=>{HG(h.jobId).then(()=>{r.success({content:()=>e("Notice.success"),duration:3e3}),f()}).catch(()=>{r.error({content:()=>e("Notice.error"),duration:3e3})})},icon:Wa,color:"info",tooltipText:()=>e("Common.importer.retry")}):p.unshift({type:"custom",disabled:h.jobStatus!==1,onClick:()=>{window.open(h.downloadUrl)},icon:Mo,color:"success",tooltipText:()=>e("Common.importer.btnDownload")}),pn(p)}}]),l=h=>{o.value.page=h,f()},u=h=>{o.value.pageSize=h,o.value.page=1,f()},c=()=>{o.value.page=1,f()},f=()=>{i.value||(i.value=!0,UG({jobType:"EXPORT",jobName:a.value,query:o.value}).then(h=>{o.value=h.query,n.value=h.records,i.value=!1}).catch(()=>{i.value=!1}))},d=h=>{od(h),t.value=h};return f(),v.watch(()=>oe.download,h=>{t.value=h,h&&f()}),{jobName:a,loading:i,columns:s,coldata:n,query:o,popDownload:t,init:f,pageChange:l,pageSizeChange:u,doSearch:c,popDownloadUpdate:d}}}),XG={class:"oc-header-download"};function ZG(e,t,r,n,a,i){const o=v.resolveComponent("IconArrowSquareDown"),s=v.resolveComponent("NIcon"),l=v.resolveComponent("NButton"),u=v.resolveComponent("NInput"),c=v.resolveComponent("IconSearch"),f=v.resolveComponent("NTooltip"),d=v.resolveComponent("IconArrowClockwise"),h=v.resolveComponent("NFlex"),p=v.resolveComponent("NDataTable"),m=v.resolveComponent("NPopover");return v.openBlock(),v.createBlock(m,{trigger:"click",placement:"bottom-end",show:e.popDownload,"show-arrow":!1,"on-update:show":e.popDownloadUpdate,style:{width:"650px"}},{trigger:v.withCtx(()=>[v.createVNode(l,{text:"",style:{"margin-left":"15px"}},{icon:v.withCtx(()=>[v.createVNode(s,{class:"com-header-icon"},{default:v.withCtx(()=>[v.createVNode(o)]),_:1})]),_:1})]),default:v.withCtx(()=>[v.createVNode(h,{justify:"end",wrap:!1},{default:v.withCtx(()=>[v.createElementVNode("span",XG,v.toDisplayString(e.$t("Common.validDays")),1),v.createVNode(u,{value:e.jobName,"onUpdate:value":t[0]||(t[0]=g=>e.jobName=g),type:"text",clearable:"",autosize:"",style:{width:"200px"},placeholder:e.$t("Common.importer.fileName")},null,8,["value","placeholder"]),v.createVNode(f,{trigger:"hover"},{trigger:v.withCtx(()=>[v.createVNode(l,{loading:e.loading,class:"button-primary",onClick:e.doSearch},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(c)]),_:1})]),_:1},8,["loading","onClick"])]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.search")),1)]),_:1}),v.createVNode(f,{trigger:"hover"},{trigger:v.withCtx(()=>[v.createVNode(l,{onClick:e.init},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(d)]),_:1})]),_:1},8,["onClick"])]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.refresh")),1)]),_:1})]),_:1}),v.createVNode(p,{columns:e.columns,data:e.coldata,pagination:{...e.query,simple:!0},loading:e.loading,"on-update:page":e.pageChange,"on-update:page-size":e.pageSizeChange,"min-height":300,"max-height":505,class:"n-table-dark","scroll-x":"600",style:{"margin-top":"8px"},remote:""},null,8,["columns","data","pagination","loading","on-update:page","on-update:page-size"])]),_:1},8,["show","on-update:show"])}const KG=X(jG,[["render",ZG]]),JG=v.defineComponent({name:"HeaderPop",components:{NBadge:O.NBadge,NPopover:O.NPopover,NFlex:O.NFlex,NTooltip:O.NTooltip,NButton:O.NButton,NIcon:O.NIcon,NDataTable:O.NDataTable,NRadioGroup:O.NRadioGroup,NRadioButton:O.NRadioButton,IconAlert:Wh,IconClear:Yh,IconArrowClockwise:Wa},setup(){const{t:e}=Kt.useI18n(),t=v.ref(0),r=v.ref(0),n=v.ref([]),a=v.ref(""),i=v.ref(!1),o=v.ref({page:1,pageCount:1,pageSize:30}),s=v.ref([{title:()=>e("Common.message.title2"),key:"messageContent",width:300,render(h){return[v.h("div",{class:h.status===1?"card-grey-txt":""},{default:()=>h.messageContent}),v.h("div",{class:"card-grey-txt"},{default:()=>Tr(h.createTime,"yyyy-MM-dd hh:mm:ss")})]}},{title:()=>e("Common.action"),key:"action",align:"center",fixed:"right",width:90,render(h){return h.status===0?pn([{type:"custom",color:"primary",tooltipText:()=>e("Common.message.read"),buttonText:()=>e("Common.message.read"),onClick:()=>{YG(h.messageId).then(()=>{d()}).catch(()=>{d()})}}]):v.h("div",{},{default:()=>`${h.updateByName} ${e("Common.message.read")}`})}}]),l=h=>{o.value.page=1,t.value=h,d()},u=()=>{FG().then(()=>{d()}).catch(()=>{d()})},c=h=>{o.value.page=h,d()},f=h=>{o.value.pageSize=h,o.value.page=1,d()},d=()=>{i.value||(i.value=!0,WG({status:t.value,query:o.value}).then(h=>{r.value=h.unRead,o.value=h.data.query,n.value=h.data.records,i.value=!1}).catch(()=>{i.value=!1}))};return d(),{badge:r,radios:t,jobName:a,loading:i,columns:s,coldata:n,query:o,clearAll:u,pageChange:c,pageSizeChange:f,init:d,radiosChecked:l}}}),QG={class:"com-title"};function e9(e,t,r,n,a,i){const o=v.resolveComponent("IconAlert"),s=v.resolveComponent("NIcon"),l=v.resolveComponent("NButton"),u=v.resolveComponent("NBadge"),c=v.resolveComponent("NRadioButton"),f=v.resolveComponent("NRadioGroup"),d=v.resolveComponent("IconClear"),h=v.resolveComponent("NTooltip"),p=v.resolveComponent("IconArrowClockwise"),m=v.resolveComponent("NFlex"),g=v.resolveComponent("NDataTable"),y=v.resolveComponent("NPopover");return v.openBlock(),v.createBlock(y,{trigger:"click",placement:"bottom-end","show-arrow":!1,style:{width:"650px"}},{trigger:v.withCtx(()=>[v.createVNode(u,{value:e.badge,max:99},{default:v.withCtx(()=>[v.createVNode(l,{text:"",style:{"margin-left":"30px"}},{icon:v.withCtx(()=>[v.createVNode(s,{class:"com-header-icon"},{default:v.withCtx(()=>[v.createVNode(o)]),_:1})]),_:1})]),_:1},8,["value"])]),default:v.withCtx(()=>[v.createVNode(m,{justify:"space-between"},{default:v.withCtx(()=>[v.createElementVNode("div",QG,v.toDisplayString(e.$t("Common.message.title")),1),v.createVNode(f,{value:e.radios,"onUpdate:value":t[0]||(t[0]=w=>e.radios=w),name:"radios","on-update:value":e.radiosChecked},{default:v.withCtx(()=>[v.createVNode(c,{key:"0",value:0,label:e.$t("Common.message.unRead")},null,8,["label"]),v.createVNode(c,{key:"-1",value:-1,label:e.$t("Common.message.all")},null,8,["label"]),v.createVNode(c,{key:"1",value:1,label:e.$t("Common.message.read")},null,8,["label"])]),_:1},8,["value","on-update:value"]),v.createElementVNode("div",null,[v.createVNode(h,{trigger:"hover"},{trigger:v.withCtx(()=>[v.createVNode(l,{onClick:e.clearAll},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(d)]),_:1})]),_:1},8,["onClick"])]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.message.readAll")),1)]),_:1}),v.createVNode(h,{trigger:"hover"},{trigger:v.withCtx(()=>[v.createVNode(l,{onClick:e.init},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(p)]),_:1})]),_:1},8,["onClick"])]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.refresh")),1)]),_:1})])]),_:1}),v.createVNode(g,{columns:e.columns,data:e.coldata,pagination:{...e.query,simple:!0},loading:e.loading,"on-update:page":e.pageChange,"on-update:page-size":e.pageSizeChange,"min-height":300,"max-height":505,class:"n-table-dark","scroll-x":"600",style:{"margin-top":"8px"},remote:""},null,8,["columns","data","pagination","loading","on-update:page","on-update:page-size"])]),_:1})}const t9=X(JG,[["render",e9]]),r9=v.defineComponent({name:"OcHeader",components:{Pop:KG,Message:t9,NDropdown:O.NDropdown,NMenu:O.NMenu,NIcon:O.NIcon,NButton:O.NButton,NDrawer:O.NDrawer,NFlex:O.NFlex,NDrawerContent:O.NDrawerContent,NCard:O.NCard,IconWeatherSunny:Yl,IconWeatherMoon:Wl,IconGridDots:Xh,IconDismiss:cn,IconNavigation:Kl,IconUser:nd},props:{menuOptions:{required:!0,type:Array,default:()=>[]},qiankun:{type:Boolean,default:!1},mainUrl:{type:String,default:"https://www.partexiot.cn"},report:{type:Boolean,default:!1},download:{type:Boolean,default:!0},message:{type:Boolean,default:!0}},setup(e){const{t}=Kt.useI18n(),r=$t.useRoute(),n=$t.useRouter(),a=O.useNotification(),i=v.ref(oe.platformUrl),o=v.ref(!1),s=v.ref(void 0),l=v.ref(10),u=v.ref([]),c=N=>{Lo(N),Yt("theme",N,0)},f=N=>{N.indexOf("/iot/home")>-1&&(N="/iot/home/all"),N.indexOf("/iot/timeline")>-1&&(N="/iot/timeline/all"),i.value=N,Js()},d=N=>{N.disabled||(f(N.key),n.push(N.key))},h=N=>{if(!N.disabled){if(N.children)return;f(N.key),n.push(N.key),o.value=!1}},p=N=>v.h("div",{onClick:()=>d(N)},{default:()=>N.label}),m=N=>v.h("div",{onClick:()=>h(N)},{default:()=>N.label}),g=N=>N.icon?v.h(O.NIcon,{size:24,onClick:()=>d(N)},{default:()=>N.icon&&N.icon()}):!1,y=N=>{e.qiankun?window.location.href=`${e.mainUrl||"https://www.partexiot.cn"}${N}`:n.replace(N)},w=()=>{o.value=!1},_=()=>{let N=oe.platformMainUrl||oe.platformUrl;oe.platformMainUrl==="auto"&&($.industryCategory==="0"?N="https://www.partexiot.cn":$.industryCategory==="1"&&(N="https://printing.partexiot.cn"));const A=[{label:()=>t("Platform.iot"),key:N}];return $.platform_tdm&&A.push({label:()=>t("Platform.tdm"),key:"/tdm/home"}),$.platform_qms&&A.push({label:()=>t("Platform.qms"),key:"/qms/home"}),$.platform_twin&&A.push({label:()=>t("Platform.twin"),key:"/twin/home"}),$.platform_maintain&&A.push({label:()=>t("Platform.maintain"),key:"/maintain/home"}),$.platform_order&&A.push({label:()=>t("Platform.order"),key:"/order/home"}),A},S=()=>{const N=[{label:$.tenantName,key:"tenantName"},{label:`${t("Common.dropdownMenu.theme")} ${oe.theme?t("Common.dropdownMenu.light"):t("Common.dropdownMenu.dark")}`,key:"theme"}];return oe.language&&N.push({label:`${t("Common.dropdownMenu.language")} ${oe.lang==="zh-CN"?"EN":"中文"}`,key:"language"}),N.push({label:t("Common.dropdownMenu.software"),key:"app",children:[{label:t("Common.dropdownMenu.android"),key:"android"},{label:t("Common.dropdownMenu.ios"),key:"ios"},{label:t("Common.dropdownMenu.chrome"),key:"chrome"},{label:t("Common.dropdownMenu.edge"),key:"edge"},{label:t("Common.dropdownMenu.dashboard_IoT"),key:"dashboard_IoT"},{label:t("Common.dropdownMenu.dashboard_Prt"),key:"dashboard_Prt"}]}),e.report&&N.push({label:t("Common.dropdownMenu.report"),key:"report"}),N.push({label:t("Common.dropdownMenu.info"),key:"info"},{label:t("Common.dropdownMenu.logout"),key:"logout"}),N},x=async N=>{N==="logout"&&Gv(),N==="theme"&&c(!oe.theme),N==="language"&&Ya(),N==="info"&&n.push("/custom/my"),N==="report"&&n.push("/custom/report"),N==="android"&&window.open("http://miiot.partexiot.cn/dk7u"),N==="ios"&&window.open("https://apps.apple.com/cn/app/id1587313547"),N==="chrome"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/chrome_installer.exe"),N==="edge"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/MicrosoftEdgeSetup.exe"),N==="dashboard_IoT"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/%E9%9B%B6%E6%8D%B7%E4%BA%92%E8%81%94IoT_v1.2.0.zip"),N==="dashboard_Prt"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/%E9%9B%B6%E6%8D%B7%E4%BA%92%E8%81%94%E5%8D%B0%E5%88%B7%E7%89%88_v1.2.0.zip")},C=()=>{zG().then(()=>{a.success({content:"续订请求已发送,七个工作日内将会有专人联系",duration:3e3})}).catch(()=>{a.error({content:()=>t("Notice.error"),duration:3e3})})},T=()=>{if($.tenantStatus===0&&$.renewalStatus===0){const N=document.getElementById("app");N&&N.classList.add("outrange"),a.info({action:()=>v.h(O.NFlex,{size:[15,15]},{default:()=>v.h(O.NButton,{class:"button-primary","on-click":()=>{C()}},{default:()=>"立即续订"})}),closable:!1,content:`您的订阅已于${Tr($.endTime)}到期,如需继续使用请联系我们`,title:"到期提示"})}if($.tenantStatus===2&&$.renewalStatus===0){let N=`您的订阅即将于${Tr($.endTime)}到期,请联系管理员进行续订`,A=[v.h(O.NButton,{secondary:!0,"on-click":()=>{a.destroyAll()}},{default:()=>"了解"})];$.kind===99&&(N=`您的订阅即将于${Tr($.endTime)}到期,为保证持续有效的提供服务请立即续订`,A=[v.h(O.NButton,{secondary:!0,"on-click":()=>{a.destroyAll()}},{default:()=>"稍后提示我"}),v.h(O.NButton,{class:"button-primary","on-click":()=>{C()}},{default:()=>"立即续订"})]),a.info({action:()=>v.h(O.NFlex,{size:[15,15]},{default:()=>A}),closable:!1,content:N,title:"温馨提示"})}},b=()=>{n.push(oe.platformUrl)};"backdropFilter"in document.documentElement.style||"WebkitBackdropFilter"in document.documentElement.style||document.body.classList.add("not-support-backdrop");const D=()=>{if($.tenantStatus===0){const N=document.body;N&&N.classList.add("outrange")}};return v.onMounted(()=>{T(),f(r.path),D(),u.value=_()}),v.watch(()=>r.path,N=>{f(N),D()}),v.watch(()=>oe.needUpdate,N=>{if(N){s.value=setInterval(()=>{l.value=l.value-1,l.value<=0&&(clearInterval(window.versionMonitor),clearInterval(s.value),s.value=void 0,A.destroy())},1e3);const A=a.create({title:"检测到系统有新版本需要更新",content:()=>`是否立即更新?更新需要重新加载页面,请确保所有项目都已经保存完毕。${l.value}秒后自动关闭`,meta:Tr(new Date,"yyyy-MM-dd hh:mm:ss"),onClose:()=>{clearInterval(window.versionMonitor)},action:()=>v.h(O.NFlex,{justify:"space-between"},{default:()=>[v.h(O.NButton,{quaternary:!0,onClick:()=>{clearInterval(window.versionMonitor),A.destroy()}},{default:()=>"稍后"}),v.h(O.NButton,{type:"primary",onClick:()=>{window.location.reload()}},{default:()=>"更新"})]})})}}),{userStore:$,commonStore:oe,activeMenu:i,platformOption:u,showMenu:o,fnSetLang:Ya,setDropdownMenu:S,renderMenuLabel:p,renderMenuLabel2:m,renderMenuIcon:g,indexClick:b,platformClick:y,dropdownClick:x,changeTheme:c,closeModel:w}}}),n9={class:"oc-header"},a9={class:"menu"};function i9(e,t,r,n,a,i){const o=v.resolveComponent("IconGridDots"),s=v.resolveComponent("NIcon"),l=v.resolveComponent("NButton"),u=v.resolveComponent("NDropdown"),c=v.resolveComponent("IconNavigation"),f=v.resolveComponent("NMenu"),d=v.resolveComponent("Pop"),h=v.resolveComponent("Message"),p=v.resolveComponent("IconWeatherMoon"),m=v.resolveComponent("IconWeatherSunny"),g=v.resolveComponent("IconUser"),y=v.resolveComponent("NDrawerContent"),w=v.resolveComponent("NDrawer");return v.openBlock(),v.createElementBlock("header",n9,[e.platformOption.length>1?(v.openBlock(),v.createBlock(u,{key:0,trigger:"hover",placement:"bottom-start",size:"huge",options:e.platformOption,onSelect:e.platformClick},{default:v.withCtx(()=>[v.createVNode(l,{style:{padding:"0 14px 0 0"}},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(o)]),_:1})]),_:1})]),_:1},8,["options","onSelect"])):v.createCommentVNode("",!0),v.createElementVNode("a",{href:"javascript:;",class:"logo",onClick:t[0]||(t[0]=(..._)=>e.indexClick&&e.indexClick(..._))}),e.commonStore.isPad?v.createCommentVNode("",!0):(v.openBlock(),v.createElementBlock("a",{key:1,href:"javascript:;",class:"platform-txt",onClick:t[1]||(t[1]=(..._)=>e.indexClick&&e.indexClick(..._))}," | "+v.toDisplayString(e.commonStore.platformName()),1)),v.createElementVNode("div",a9,[e.commonStore.isPad?(v.openBlock(),v.createBlock(l,{key:0,onClick:t[2]||(t[2]=_=>e.showMenu=!0)},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(c)]),_:1})]),_:1})):(v.openBlock(),v.createBlock(f,{key:1,value:e.activeMenu,mode:"horizontal",options:e.menuOptions,"render-icon":e.renderMenuIcon,"render-label":e.renderMenuLabel,class:"oc-header-menu"},null,8,["value","options","render-icon","render-label"])),e.download&&!e.commonStore.isPad?(v.openBlock(),v.createBlock(d,{key:2})):v.createCommentVNode("",!0),e.message&&!e.commonStore.isPad?(v.openBlock(),v.createBlock(h,{key:3})):v.createCommentVNode("",!0),e.commonStore.isPad?v.createCommentVNode("",!0):(v.openBlock(),v.createBlock(l,{key:4,style:{"margin-left":"15px"},onClick:t[3]||(t[3]=_=>e.changeTheme(!e.commonStore.theme))},{icon:v.withCtx(()=>[v.withDirectives(v.createVNode(s,{color:"#8e54c8"},{default:v.withCtx(()=>[v.createVNode(p)]),_:1},512),[[v.vShow,e.commonStore.theme]]),v.withDirectives(v.createVNode(s,{color:"#f2a651"},{default:v.withCtx(()=>[v.createVNode(m)]),_:1},512),[[v.vShow,!e.commonStore.theme]])]),_:1})),e.commonStore.language&&!e.commonStore.isPad?(v.openBlock(),v.createBlock(l,{key:5,class:"com-header-icon",onClick:t[4]||(t[4]=_=>e.fnSetLang())},{default:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(e.commonStore.lang==="zh-CN"?"EN":"中文"),1)]),_:1})):v.createCommentVNode("",!0),e.userStore.name?(v.openBlock(),v.createBlock(u,{key:6,trigger:"click",placement:"bottom-end",options:e.setDropdownMenu(),onSelect:e.dropdownClick},{default:v.withCtx(()=>[v.createVNode(l,{text:"",class:"user",title:e.userStore.name},v.createSlots({default:v.withCtx(()=>[e.commonStore.isPad?v.createCommentVNode("",!0):(v.openBlock(),v.createElementBlock(v.Fragment,{key:0},[v.createTextVNode(v.toDisplayString(e.userStore.name),1)],64))]),_:2},[e.commonStore.isPad?{name:"icon",fn:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(g)]),_:1})]),key:"0"}:void 0]),1032,["title"])]),_:1},8,["options","onSelect"])):v.createCommentVNode("",!0)]),v.createVNode(w,{show:e.showMenu,"onUpdate:show":t[5]||(t[5]=_=>e.showMenu=_)},{default:v.withCtx(()=>[v.createVNode(y,{title:e.commonStore.platformName(),"native-scrollbar":!1,closable:""},{default:v.withCtx(()=>[v.createVNode(f,{value:e.activeMenu,"default-expand-all":!0,options:e.menuOptions,"render-label":e.renderMenuLabel2},null,8,["value","options","render-label"])]),_:1},8,["title"])]),_:1},8,["show"])])}const eC=X(r9,[["render",i9]]),tC=e=>{const t=new FormData;return Object.keys(e).forEach(r=>{e.query&&r==="query"?t.append("query",JSON.stringify(e.query)):t.append(r,e[r])}),$v("api/manager/job/submit",t)},o9=e=>new Promise((t,r)=>{const n=Io(e);ut("api/manager/job/page",n).then(a=>{const i=Po(a);t(i)}).catch(()=>{r()})}),s9=(e,t={})=>JS(e,t,"blob"),l9=v.defineComponent({name:"OcImporter",components:{IconDismiss:cn,IconArrowClockwise:Wa,IconMailInboxAdd:ko,IconCloudArrowDown:Zl,NModal:O.NModal,NCard:O.NCard,NFlex:O.NFlex,NUpload:O.NUpload,NButton:O.NButton,NTooltip:O.NTooltip,NIcon:O.NIcon,NDataTable:O.NDataTable},props:{show:{required:!0,type:Boolean,default:!1},data:{required:!0,type:Object,default:()=>({type:"",file:""})}},emits:["update:show"],setup(e,{emit:t}){const{t:r}=Kt.useI18n(),n=O.useNotification(),a=v.ref(!1),i=v.ref(!1),o=v.ref({page:1,pageCount:1,pageSize:30}),s=v.ref([{title:"#",width:60,align:"center",key:"index",render(m,g){return v.h("span",{},{default:()=>g+1})}},{title:r("Common.importer.fileName"),key:"jobName",fixed:"left"},{title:r("Common.importer.status"),key:"jobStatus",width:120,render(m){let g=r("Common.processing");return m.jobStatus===1&&(g=r("Common.success")),m.jobStatus===2&&(g=r("Common.failed")),v.h("span",{},{default:()=>g})}},{title:r("Common.importer.createTime"),key:"commitTime",width:200,render(m){return v.h("div",{},{default:()=>Tr(m.commitTime,"yyyy-MM-dd hh:mm:ss")})}},{title:r("Common.action"),key:"action",align:"center",fixed:"right",width:120,render(m){return pn([{type:"custom",disabled:m.jobStatus===0,onClick:()=>{window.open(m.downloadUrl)},icon:Mo,color:"success",tooltipText:()=>r("Common.importer.btnDownload")}])}}]),l=v.ref([]),u=()=>{t("update:show",!1)},c=m=>{o.value.page=m,h()},f=m=>{o.value.pageSize=m,o.value.page=1,h()},d=m=>new Promise((g,y)=>{m.file.file&&tC({jobType:"IMPORT",jobTypeName:e.data.type,jobParams:e.data.params,file:m.file.file}).then(()=>{h(),g()}).catch(()=>{h(),y()}),y()}),h=()=>{i.value=!0,o9({jobType:"IMPORT",jobTypeName:e.data.type,query:o.value}).then(m=>{i.value=!1,l.value=m.records,o.value=m.query}).catch(()=>{i.value=!1})},p=()=>{e.data.steam?s9(e.data.file).then(m=>{const g=document.createElement("a");g.style.display="none",g.download="刀组品号导入模板.xls",g.href=URL.createObjectURL(m),document.body.appendChild(g),g.click(),URL.revokeObjectURL(g.href),document.body.removeChild(g)}).catch(()=>{n.error({content:()=>r("Notice.error"),duration:3e3})}):window.open(`${e.data.file}?v=${Date.now()}`)};return v.watch(()=>e.show,m=>{a.value=m,m&&(o.value={page:1,pageCount:1,pageSize:30},h())}),{modal:a,columns:s,coldata:l,query:o,loading:i,init:h,closeModel:u,pageChange:c,pageSizeChange:f,beforeUpload:d,downloadFile:p}}}),u9={class:"oc-header-download"};function c9(e,t,r,n,a,i){const o=v.resolveComponent("IconMailInboxAdd"),s=v.resolveComponent("NIcon"),l=v.resolveComponent("NButton"),u=v.resolveComponent("NUpload"),c=v.resolveComponent("IconCloudArrowDown"),f=v.resolveComponent("IconArrowClockwise"),d=v.resolveComponent("NTooltip"),h=v.resolveComponent("IconDismiss"),p=v.resolveComponent("NFlex"),m=v.resolveComponent("NDataTable"),g=v.resolveComponent("NCard"),y=v.resolveComponent("NModal");return v.openBlock(),v.createBlock(y,{show:e.modal,"onUpdate:show":t[0]||(t[0]=w=>e.modal=w),"on-mask-click":e.closeModel},{default:v.withCtx(()=>[v.createVNode(g,{style:{width:"900px"}},{header:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(e.$t("Common.importer.title"))+" ",1),v.createElementVNode("span",u9,v.toDisplayString(e.$t("Common.validDays")),1)]),"header-extra":v.withCtx(()=>[v.createVNode(p,{justify:"end",wrap:!1},{default:v.withCtx(()=>[v.createVNode(u,{"on-before-upload":e.beforeUpload,accept:".xlsx,.xls","show-file-list":!1},{default:v.withCtx(()=>[v.createVNode(l,null,{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(o)]),_:1})]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.importer.file")),1)]),_:1})]),_:1},8,["on-before-upload"]),v.renderSlot(e.$slots,"default"),v.createVNode(l,{onClick:e.downloadFile},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(c)]),_:1})]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.importer.download")),1)]),_:1},8,["onClick"]),v.createVNode(d,{trigger:"hover"},{trigger:v.withCtx(()=>[v.createVNode(l,{loading:e.loading,onClick:e.init},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(f)]),_:1})]),_:1},8,["loading","onClick"])]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.refresh")),1)]),_:1}),v.createVNode(l,{quaternary:"",onClick:e.closeModel},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(h)]),_:1})]),_:1},8,["onClick"])]),_:3})]),default:v.withCtx(()=>[v.createVNode(m,{columns:e.columns,data:e.coldata,pagination:e.query,loading:e.loading,"on-update:page":e.pageChange,"on-update:page-size":e.pageSizeChange,"min-height":"500","max-height":"500","scroll-x":"600",remote:""},null,8,["columns","data","pagination","loading","on-update:page","on-update:page-size"])]),_:3})]),_:3},8,["show","on-mask-click"])}const Hv=X(l9,[["render",c9]]),f9=v.defineComponent({name:"OcLogin",components:{NTabs:O.NTabs,NTabPane:O.NTabPane,NForm:O.NForm,NFormItem:O.NFormItem,NDropdown:O.NDropdown,NInput:O.NInput,NButton:O.NButton,NGrid:O.NGrid,NGi:O.NGi,NIcon:O.NIcon,NPopover:O.NPopover,IconWeatherSunny:Yl,IconWeatherMoon:Wl},props:{bg:{type:String,default:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/login.png"},version:{type:String,default:""},info:{required:!1,type:Object,default:()=>({href:"",text:""})}},setup(){const{t:e}=Kt.useI18n(),t=O.useNotification(),r=$t.useRouter(),n=v.ref(Et("loginTab","1")),a=v.ref(),i=v.ref(),o=v.ref(),s=v.ref(),l=v.ref(!1),u=v.ref(!1),c=v.ref(!1),f=v.ref(!1),d=v.ref({phone:"",name:"",password:""}),h=v.ref({name:{required:!0,message:()=>e("Common.login.userNameMessage"),trigger:"blur"},phone:{required:!0,validator:(E,B)=>B?/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(B):!1,message:()=>e("Common.login.mobileMessage"),trigger:"blur"},password:{required:!0,message:()=>e("Common.login.passwordMessage"),trigger:"input"}}),p=v.ref([]),m=v.ref([]),g=v.ref([]),y=v.ref([]),w=()=>{const E=Et("loginOption",{}),B=[];Object.keys(E).forEach(R=>{B.push({label:R,key:R})}),p.value=B,m.value=B},_=()=>{const E=Et("phoneOption",{}),B=[];Object.keys(E).forEach(R=>{B.push({label:R,key:R})}),g.value=B,y.value=B},S=E=>{Yt("token",E,0),Fu().then(B=>{t.success({content:()=>e("Notice.success"),duration:3e3}),B.kind!==1&&r.replace(oe.platformUrl)}).catch(()=>{t.error({content:()=>e("Notice.error"),duration:3e3}),d.value.password="",u.value=!1})},x=()=>{var E,B;u.value||(u.value=!0,n.value==="0"?(E=i.value)==null||E.validate(R=>{R?u.value=!1:H0({type:n.value,...d.value}).then(V=>{const z=Et("loginOption",{});z[d.value.name]=!0,Yt("loginOption",z,0),S(V)}).catch(()=>{d.value.password="",u.value=!1})}):(B=a.value)==null||B.validate(R=>{R?u.value=!1:H0({type:n.value,...d.value}).then(V=>{const z=Et("phoneOption",{});z[d.value.name]=!0,Yt("phoneOption",z,0),S(V)}).catch(()=>{d.value.password="",u.value=!1})}))},C=E=>{d.value.name=E;const B=m.value.filter(R=>R.label.indexOf(E)>-1);p.value=B,B.length===0?f.value=!1:f.value=!0},T=E=>{d.value.name=E,f.value=!1,o.value.focus(),setTimeout(()=>{var B;(B=i.value)==null||B.restoreValidation()},80)},b=E=>{var B;p.value.length===0?f.value=!1:f.value=E,(B=i.value)==null||B.restoreValidation()},D=E=>{d.value.phone=E;const B=y.value.filter(R=>R.label.indexOf(E)>-1);g.value=B,B.length===0?c.value=!1:c.value=!0},N=E=>{d.value.phone=E,c.value=!1,s.value.focus(),setTimeout(()=>{var B;(B=a.value)==null||B.restoreValidation()},80)},A=E=>{var B;g.value.length===0?c.value=!1:c.value=E,(B=a.value)==null||B.restoreValidation()},M=E=>{l.value=E,Lo(E),Yt("theme",E,0)},I=E=>{var B,R;n.value=E,d.value={phone:"",name:"",password:""},Yt("loginTab",E,0),(B=i.value)==null||B.restoreValidation(),(R=a.value)==null||R.restoreValidation()},P=E=>v.h("div",{style:{position:"relative"}},{default:()=>[v.h("div",{},{default:()=>E.label}),v.h(cn,{class:"oc-login-drop-menu",onclick:B=>{B.stopPropagation(),B.stopImmediatePropagation();const R=Et("loginOption",{});delete R[E.label],Yt("loginOption",R,0),w();const V=d.value.name,z=m.value.filter(Y=>Y.label.indexOf(V)>-1);p.value=z}},{default:()=>""})]}),L=E=>v.h("div",{style:{position:"relative"}},{default:()=>[v.h("div",{},{default:()=>E.label}),v.h(cn,{class:"oc-login-drop-menu",onclick:B=>{B.stopPropagation(),B.stopImmediatePropagation();const R=Et("phoneOption",{});delete R[E.label],Yt("phoneOption",R,0),_();const V=d.value.name,z=y.value.filter(Y=>Y.label.indexOf(V)>-1);g.value=z}},{default:()=>""})]});return zu(),Eo("token"),w(),_(),{tabs:n,commonStore:oe,pwdRef:o,pwdPhoneRef:s,formRef:i,formPhoneRef:a,formValue:d,formRules:h,showPhoneDropdown:c,showNameDropdown:f,optionsName:p,optionsPhone:g,loading:u,theme:l,submit:x,tabChange:I,nameChange:C,phoneChange:D,changeTheme:M,fnSetLang:Ya,dropNameSelect:T,dropPhoneSelect:N,showDropdownNameChange:b,showDropdownPhoneChange:A,renderDropdownNameLabel:P,renderDropdownPhoneLabel:L}}}),h9={class:"oc-login"},d9={class:"oc-login-left"},v9=["src"],p9={class:"oc-login-right"},g9={class:"oc-login-language"},m9=v.createElementVNode("div",{class:"oc-login-title"},null,-1),y9={class:"oc-login-platform"},_9={class:"oc-login-form"},w9=v.createElementVNode("br",null,null,-1),b9=v.createElementVNode("br",null,null,-1),S9={class:"oc-login-submit"},C9=["href"],x9=v.createElementVNode("div",{class:"oc-google-play"},null,-1),T9=v.createElementVNode("img",{src:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/android_qr.png",alt:"AndroidQr",width:"300",height:"300"},null,-1),N9=v.createElementVNode("div",{class:"oc-app-store"},null,-1),D9=v.createElementVNode("img",{src:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/ios_qr.png",alt:"iOSQr",width:"300",height:"300"},null,-1),A9={class:"oc-login-footer"},M9=v.createElementVNode("span",{style:{"font-family":"Arial, Helvetica, sans-serif"}},"©",-1),k9=v.createElementVNode("a",{href:"https://beian.miit.gov.cn/",target:"_blank",class:"oc-footer-record"}," 沪ICP备 18025935号-3 ",-1);function E9(e,t,r,n,a,i){const o=v.resolveComponent("IconWeatherMoon"),s=v.resolveComponent("NIcon"),l=v.resolveComponent("IconWeatherSunny"),u=v.resolveComponent("NButton"),c=v.resolveComponent("NInput"),f=v.resolveComponent("NDropdown"),d=v.resolveComponent("NFormItem"),h=v.resolveComponent("NForm"),p=v.resolveComponent("NTabPane"),m=v.resolveComponent("NTabs"),g=v.resolveComponent("NPopover"),y=v.resolveComponent("NGi"),w=v.resolveComponent("NGrid");return v.openBlock(),v.createElementBlock("div",h9,[v.createElementVNode("div",d9,[v.createElementVNode("img",{src:e.bg,alt:"logo",class:"oc-login-img"},null,8,v9)]),v.createElementVNode("div",p9,[v.createElementVNode("div",g9,[v.createVNode(u,{onClick:t[0]||(t[0]=_=>e.changeTheme(!e.theme))},{icon:v.withCtx(()=>[v.withDirectives(v.createVNode(s,{color:"#8e54c8"},{default:v.withCtx(()=>[v.createVNode(o)]),_:1},512),[[v.vShow,e.theme]]),v.withDirectives(v.createVNode(s,{color:"#f2a651"},{default:v.withCtx(()=>[v.createVNode(l)]),_:1},512),[[v.vShow,!e.theme]])]),_:1}),e.commonStore.language?(v.openBlock(),v.createBlock(u,{key:0,onClick:t[1]||(t[1]=_=>e.fnSetLang())},{default:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(e.commonStore.lang==="zh-CN"?"EN":"中文"),1)]),_:1})):v.createCommentVNode("",!0)]),m9,v.createElementVNode("div",y9,v.toDisplayString(e.commonStore.platformName()),1),v.createElementVNode("div",_9,[v.createVNode(m,{value:e.tabs,"on-update:value":e.tabChange,type:"segment","justify-content":"end",animated:""},{default:v.withCtx(()=>[v.createVNode(p,{name:"1",tab:e.$t("Common.login.mobile")},{default:v.withCtx(()=>[w9,v.createVNode(h,{ref:"formPhoneRef",model:e.formValue,rules:e.formRules,"show-require-mark":!1,"label-placement":"top",onKeyup:v.withKeys(e.submit,["enter"])},{default:v.withCtx(()=>[v.createVNode(d,{label:e.$t("Common.login.mobile"),path:"phone"},{default:v.withCtx(()=>[v.createVNode(f,{show:e.showPhoneDropdown,options:e.optionsPhone,"render-label":e.renderDropdownPhoneLabel,width:"trigger",onClickoutside:t[5]||(t[5]=()=>{e.showPhoneDropdown=!1}),onSelect:e.dropPhoneSelect},{default:v.withCtx(()=>[v.createVNode(c,{value:e.formValue.phone,"onUpdate:value":t[2]||(t[2]=_=>e.formValue.phone=_),placeholder:e.$t("Common.login.mobilePlaceholder"),"on-update:value":e.phoneChange,onClick:t[3]||(t[3]=_=>e.showDropdownPhoneChange(!0)),onFocus:t[4]||(t[4]=_=>e.showDropdownPhoneChange(!0))},null,8,["value","placeholder","on-update:value"])]),_:1},8,["show","options","render-label","onSelect"])]),_:1},8,["label"]),v.createVNode(d,{label:e.$t("Common.login.password"),path:"password"},{default:v.withCtx(()=>[v.createVNode(c,{ref:"pwdPhoneRef",value:e.formValue.password,"onUpdate:value":t[6]||(t[6]=_=>e.formValue.password=_),type:"password","show-password-on":"click",placeholder:e.$t("Common.login.passwordPlaceholder"),onFocus:t[7]||(t[7]=_=>e.showDropdownPhoneChange(!1))},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules","onKeyup"])]),_:1},8,["tab"]),v.createVNode(p,{name:"0",tab:e.$t("Common.login.userName")},{default:v.withCtx(()=>[b9,v.createVNode(h,{ref:"formRef",model:e.formValue,rules:e.formRules,"show-require-mark":!1,"label-placement":"top",onKeyup:v.withKeys(e.submit,["enter"])},{default:v.withCtx(()=>[v.createVNode(d,{label:e.$t("Common.login.userName"),path:"name"},{default:v.withCtx(()=>[v.createVNode(f,{show:e.showNameDropdown,options:e.optionsName,"render-label":e.renderDropdownNameLabel,width:"trigger",onClickoutside:t[11]||(t[11]=()=>{e.showNameDropdown=!1}),onSelect:e.dropNameSelect},{default:v.withCtx(()=>[v.createVNode(c,{value:e.formValue.name,"onUpdate:value":t[8]||(t[8]=_=>e.formValue.name=_),placeholder:e.$t("Common.login.userNamePlaceholder"),"on-update:value":e.nameChange,onClick:t[9]||(t[9]=_=>e.showDropdownNameChange(!0)),onFocus:t[10]||(t[10]=_=>e.showDropdownNameChange(!0))},null,8,["value","placeholder","on-update:value"])]),_:1},8,["show","options","render-label","onSelect"])]),_:1},8,["label"]),v.createVNode(d,{label:e.$t("Common.login.password"),path:"password"},{default:v.withCtx(()=>[v.createVNode(c,{ref:"pwdRef",value:e.formValue.password,"onUpdate:value":t[12]||(t[12]=_=>e.formValue.password=_),type:"password","show-password-on":"click",placeholder:e.$t("Common.login.passwordPlaceholder")},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules","onKeyup"])]),_:1},8,["tab"])]),_:1},8,["value","on-update:value"]),v.createElementVNode("div",S9,[v.createVNode(u,{loading:e.loading,class:"button-primary",onClick:e.submit},{default:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(e.$t("Common.login.in")),1)]),_:1},8,["loading","onClick"])]),e.info.href?(v.openBlock(),v.createElementBlock("a",{key:0,href:e.info.href,class:"oc-login-other"},v.toDisplayString(e.info.text),9,C9)):v.createCommentVNode("",!0),v.createVNode(w,{"x-gap":"15",cols:2},{default:v.withCtx(()=>[v.createVNode(y,null,{default:v.withCtx(()=>[v.createVNode(g,{trigger:"hover",placement:"top"},{trigger:v.withCtx(()=>[x9]),default:v.withCtx(()=>[T9]),_:1})]),_:1}),v.createVNode(y,null,{default:v.withCtx(()=>[v.createVNode(g,{trigger:"hover",placement:"top"},{trigger:v.withCtx(()=>[N9]),default:v.withCtx(()=>[D9]),_:1})]),_:1})]),_:1})]),v.createElementVNode("footer",A9,[v.createTextVNode(" Copyright "),M9,v.createTextVNode(" 2020-2024 "+v.toDisplayString(e.$t("Common.title"))+" ",1),e.version?(v.openBlock(),v.createElementBlock(v.Fragment,{key:0},[v.createTextVNode("v"+v.toDisplayString(e.version)+" ",1)],64)):v.createCommentVNode("",!0),k9])])])}const rC=X(f9,[["render",E9]]),P9=v.defineComponent({name:"OcNumberRoll",props:{value:{required:!0,type:[Number,String],default:0},duration:{type:Number,default:1e3},precision:{type:Number,default:0},format:{type:Function,default:void 0}},setup(e){const t=v.ref(!1),r=v.ref(0),n=s=>1-Math.pow(1-s,5),a=s=>e.format?e.format(s):s;function i(s,l,u=e.duration){const c=()=>{const d=performance.now(),h=Math.min(d-f,u),p=s+(l-s)*n(h/u);if(h===u){r.value=a(Number(e.value)),t.value=!1;return}const m=Number(p.toFixed(e.precision));r.value=a(m),requestAnimationFrame(c)},f=performance.now();c()}const o=(s=0,l=e.value)=>{t.value=!0,r.value=a(s),String(s)!==String(l)&&i(s,Number(l))};return v.watch(()=>e.value,(s,l)=>{o(Number(l)||0,Number(s))}),v.onMounted(()=>{o()}),{displayedValueRef:r}}});function I9(e,t,r,n,a,i){return v.toDisplayString(e.displayedValueRef)}const Uv=X(P9,[["render",I9]]),L9=v.defineComponent({name:"OcLogo",components:{NGrid:O.NGrid,NGi:O.NGi,NDivider:O.NDivider,NumberRoll:Uv},props:{text:{type:String,default:"智能效率监测平台"}},setup(){const e=v.ref(Date.now()),t=v.ref(void 0),r=n=>Tr(n,"yyyy-MM-dd hh:mm:ss");return v.onMounted(()=>{t.value=setInterval(()=>{e.value=Date.now()},1e3)}),v.onBeforeUnmount(()=>{clearInterval(t.value),t.value=void 0}),{time:e,numFormat:r}}}),O9=v.createElementVNode("div",{class:"oc-logo"},null,-1);function R9(e,t,r,n,a,i){const o=v.resolveComponent("NGi"),s=v.resolveComponent("NDivider"),l=v.resolveComponent("NumberRoll"),u=v.resolveComponent("NGrid");return v.openBlock(),v.createBlock(u,{cols:5,class:"oc-dashboard-logo"},{default:v.withCtx(()=>[v.createVNode(o,{span:"1",class:"flex-center-left"},{default:v.withCtx(()=>[O9]),_:1}),v.createVNode(o,{span:"3",class:"flex-center"},{default:v.withCtx(()=>[v.createVNode(s,{class:"oc-dashboard-title-show"},{default:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(e.text),1)]),_:1})]),_:1}),v.createVNode(o,{span:"1",class:"flex-center-right oc-time"},{default:v.withCtx(()=>[v.createVNode(l,{value:e.time,format:e.numFormat},null,8,["value","format"])]),_:1})]),_:1})}const nC=X(L9,[["render",R9]]);O.darkTheme.common.cardColor="#32323b";O.darkTheme.common.primaryColor="#b274ef";O.darkTheme.common.primaryColorHover="#b274ef";O.darkTheme.common.borderRadius="16px";O.darkTheme.common.borderRadiusSmall="8px";O.darkTheme.DataTable.tdColor="#2d2d31";const aC={common:{borderRadius:"16px",borderRadiusSmall:"8px",primaryColor:"#8e54c8",primaryColorHover:"#9b66d0",primaryColorPressed:"#8e54c8",primaryColorSuppl:"#8e54c8",infoColor:"#2080f0",infoColorHover:"#57a4fd",infoColorPressed:"#2080f0",infoColorSuppl:"#2080f0",successColor:"#5dae57",successColorHover:"#70ce69",successColorPressed:"#5dae57",successColorSuppl:"#5dae57",warningColor:"#f0973a",warningColorHover:"#ffb05d",warningColorPressed:"#f0973a",warningColorSuppl:"#f0973a",errorColor:"#e65444",errorColorHover:"#fc6c5d",errorColorPressed:"#e65444",errorColorSuppl:"#e65444",cardColor:"#fff"},Button:{textColor:"rgb(var(--font))"},Notification:{borderRadius:"16px"}},iC=O.darkTheme,B9=v.defineComponent({name:"OcMain",components:{NConfigProvider:O.NConfigProvider,NDialogProvider:O.NDialogProvider,NNotificationProvider:O.NNotificationProvider},props:{hljs:{type:Object,default:void 0}},setup(){return{zhCN:O.zhCN,dateZhCN:O.dateZhCN,commonStore:oe,lightTheme:aC,darkTheme:iC}}});function V9(e,t,r,n,a,i){const o=v.resolveComponent("NNotificationProvider"),s=v.resolveComponent("NDialogProvider"),l=v.resolveComponent("NConfigProvider");return v.openBlock(),v.createBlock(l,{theme:e.commonStore.theme?{name:"darkTheme"}:null,"theme-overrides":e.commonStore.theme?e.darkTheme:e.lightTheme,locale:e.commonStore.lang==="zh-CN"?e.zhCN:null,"date-locale":e.commonStore.lang==="zh-CN"?e.dateZhCN:null,hljs:e.hljs,"inline-theme-disabled":"",abstract:""},{default:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(o,{placement:"top"},{default:v.withCtx(()=>[v.renderSlot(e.$slots,"default")]),_:3})]),_:3})]),_:3},8,["theme","theme-overrides","locale","date-locale","hljs"])}const oC=X(B9,[["render",V9]]),$9=e=>{const t=JSON.parse(JSON.stringify(e));return t.oldPassword=Vs(t.oldPassword),t.newPassword=Vs(t.newPassword),t.comfirmPassword=Vs(t.comfirmPassword),ut("api/auth/user/modifyPassword",t)},F9=e=>ut("api/auth/user/update",e),z9=v.defineComponent({name:"OcMy",components:{NGrid:O.NGrid,NGi:O.NGi,NForm:O.NForm,NFormItem:O.NFormItem,NInput:O.NInput,NButton:O.NButton},setup(){const{t:e}=Kt.useI18n(),t=O.useNotification(),r=v.ref(),n=v.ref(),a=v.ref(!1),i=v.ref({oldPassword:"",newPassword:"",comfirmPassword:""}),o=v.ref({oldPassword:{required:!0,message:()=>e("Common.my.oldPasswordMessage"),trigger:"blur"},newPassword:{required:!0,message:()=>e("Common.my.newPasswordMessage"),trigger:"blur"},comfirmPassword:{required:!0,message:()=>e("Common.my.checkPasswordMessage"),trigger:"blur"}}),s=v.ref($),l=v.ref({email:{required:!1,trigger:"blur",validator:(f,d)=>d?/^[0-9a-zA-Z_.-]+[@][0-9a-zA-Z_.-]+([.][a-zA-Z]+){1,2}$/.test(d):!0,message:()=>e("Common.my.emailMessage")},phone:{required:!1,trigger:"blur",validator:(f,d)=>d?/^[1][3,4,5,7,8,9][0-9]{9}$/.test(d):!0,message:()=>e("Common.my.phoneMessage")}});return{formRef:n,pwdRef:r,pwdValue:i,formValue:s,pwdRules:o,formRules:l,loading:a,pwdSubmit:()=>{var f;a.value||(a.value=!0,(f=r.value)==null||f.validate(d=>{d?a.value=!1:$9(i.value).then(()=>{var h;i.value={oldPassword:"",newPassword:"",comfirmPassword:""},(h=r.value)==null||h.restoreValidation(),t.success({content:()=>e("Notice.success"),duration:3e3}),setTimeout(()=>{window.location.href="/login"},1e3)}).catch(()=>{a.value=!1})}))},formSubmit:()=>{var f;a.value||(a.value=!0,(f=n.value)==null||f.validate(d=>{d?a.value=!1:F9(s.value).then(()=>{t.success({content:()=>e("Notice.success"),duration:3e3}),a.value=!1,Fu().catch(()=>null)}).catch(()=>{a.value=!1})}))}}}}),G9={class:"com-card"},H9={class:"com-title"},U9=v.createElementVNode("br",null,null,-1),W9={class:"text-right"},Y9={class:"com-card"},q9={class:"com-title"},j9=v.createElementVNode("br",null,null,-1),X9={class:"text-right"};function Z9(e,t,r,n,a,i){const o=v.resolveComponent("NInput"),s=v.resolveComponent("NFormItem"),l=v.resolveComponent("NForm"),u=v.resolveComponent("NButton"),c=v.resolveComponent("NGi"),f=v.resolveComponent("NGrid");return v.openBlock(),v.createBlock(f,{"x-gap":"15","y-gap":"15",cols:2},{default:v.withCtx(()=>[v.createVNode(c,{span:"1"},{default:v.withCtx(()=>[v.createElementVNode("div",G9,[v.createElementVNode("div",H9,v.toDisplayString(e.$t("Common.my.title")),1),U9,v.createVNode(l,{ref:"formRef",model:e.formValue,rules:e.formRules,"label-placement":"top"},{default:v.withCtx(()=>[v.createVNode(s,{label:e.$t("Common.my.tenantCode"),path:"tenantLoginCode"},{default:v.withCtx(()=>[v.createVNode(o,{value:e.formValue.tenantLoginCode,"onUpdate:value":t[0]||(t[0]=d=>e.formValue.tenantLoginCode=d),readonly:""},null,8,["value"])]),_:1},8,["label"]),v.createVNode(s,{label:e.$t("Common.my.tenantName"),path:"tenantName"},{default:v.withCtx(()=>[v.createVNode(o,{value:e.formValue.tenantName,"onUpdate:value":t[1]||(t[1]=d=>e.formValue.tenantName=d),readonly:""},null,8,["value"])]),_:1},8,["label"]),v.createVNode(s,{label:e.$t("Common.my.name"),path:"name"},{default:v.withCtx(()=>[v.createVNode(o,{value:e.formValue.name,"onUpdate:value":t[2]||(t[2]=d=>e.formValue.name=d),readonly:""},null,8,["value"])]),_:1},8,["label"]),v.createVNode(s,{label:e.$t("Common.my.email"),path:"email"},{default:v.withCtx(()=>[v.createVNode(o,{value:e.formValue.email,"onUpdate:value":t[3]||(t[3]=d=>e.formValue.email=d),placeholder:"邮箱"},null,8,["value"])]),_:1},8,["label"]),v.createVNode(s,{label:e.$t("Common.my.realName"),path:"realName"},{default:v.withCtx(()=>[v.createVNode(o,{value:e.formValue.realName,"onUpdate:value":t[4]||(t[4]=d=>e.formValue.realName=d),placeholder:"真实姓名"},null,8,["value"])]),_:1},8,["label"]),v.createVNode(s,{label:e.$t("Common.my.phone"),path:"phone"},{default:v.withCtx(()=>[v.createVNode(o,{value:e.formValue.phone,"onUpdate:value":t[5]||(t[5]=d=>e.formValue.phone=d),placeholder:"手机"},null,8,["value"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),v.createElementVNode("div",W9,[v.createVNode(u,{loading:e.loading,class:"button-primary",onClick:e.formSubmit},{default:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(e.$t("Common.my.submit")),1)]),_:1},8,["loading","onClick"])])])]),_:1}),v.createVNode(c,{span:"1"},{default:v.withCtx(()=>[v.createElementVNode("div",Y9,[v.createElementVNode("div",q9,v.toDisplayString(e.$t("Common.my.password")),1),j9,v.createVNode(l,{ref:"pwdRef",model:e.pwdValue,rules:e.pwdRules,"label-placement":"top"},{default:v.withCtx(()=>[v.createVNode(s,{label:e.$t("Common.my.oldPassword"),path:"oldPassword"},{default:v.withCtx(()=>[v.createVNode(o,{value:e.pwdValue.oldPassword,"onUpdate:value":t[6]||(t[6]=d=>e.pwdValue.oldPassword=d),type:"password",placeholder:e.$t("Common.my.oldPassword"),"show-password-on":"click"},null,8,["value","placeholder"])]),_:1},8,["label"]),v.createVNode(s,{label:e.$t("Common.my.newPassword"),path:"newPassword"},{default:v.withCtx(()=>[v.createVNode(o,{value:e.pwdValue.newPassword,"onUpdate:value":t[7]||(t[7]=d=>e.pwdValue.newPassword=d),type:"password",placeholder:e.$t("Common.my.newPassword"),"show-password-on":"click"},null,8,["value","placeholder"])]),_:1},8,["label"]),v.createVNode(s,{label:e.$t("Common.my.checkPassword"),path:"comfirmPassword"},{default:v.withCtx(()=>[v.createVNode(o,{value:e.pwdValue.comfirmPassword,"onUpdate:value":t[8]||(t[8]=d=>e.pwdValue.comfirmPassword=d),type:"password",placeholder:e.$t("Common.my.checkPassword"),"show-password-on":"click"},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),v.createElementVNode("div",X9,[v.createVNode(u,{loading:e.loading,class:"button-primary",onClick:e.pwdSubmit},{default:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(e.$t("Common.my.submit")),1)]),_:1},8,["loading","onClick"])])])]),_:1})]),_:1})}const sC=X(z9,[["render",Z9]]);function K9(e){return new Promise((t,r)=>{ut("api/manager/factory-params/detail",{keyName:e}).then(n=>{const a=JSON.parse(n.valueJson??"[]");t(a)}).catch(()=>{r()})})}const J9=v.defineComponent({name:"OcReport",components:{NFlex:O.NFlex,NDataTable:O.NDataTable,NDatePicker:O.NDatePicker,NInputGroup:O.NInputGroup,NInputGroupLabel:O.NInputGroupLabel},setup(){const{t:e}=Kt.useI18n(),t=v.ref(!0),r=O.useNotification(),n=v.ref([{title:"#",width:60,align:"center",key:"index",render(l,u){return v.h("span",{},{default:()=>u+1})}},{title:"名称",key:"name"},{title:"备注",key:"content"},{title:"操作",key:"action",align:"center",fixed:"right",width:120,render(l){return pn([{type:"custom",onClick:()=>{o(l.key)},icon:Mo,color:"success",tooltipText:"下载"}])}}]),a=v.ref([]),i=v.ref([Date.now(),Date.now()]),o=l=>{t.value=!0,tC({jobType:"EXPORT",jobTypeName:l,jobParams:JSON.stringify({startDate:i.value[0],endDate:i.value[1]})}).then(()=>{t.value=!1,r.success({content:()=>e("Notice.success"),duration:3e3}),od(!0)}).catch(()=>{t.value=!1,r.error({content:()=>e("Notice.error"),duration:3e3})})},s=l=>l>Date.now();return K9("individuation_report_download").then(l=>{a.value=l.map(u=>({key:u.key,name:u.name,content:"默认导出最近30天的数据。每个企业租户下的所有账号,每天累计最多下载10次,采用异步下载"})),t.value=!1}).catch(()=>{t.value=!1}),{columns:n,columnData:a,loading:t,range:i,isRangeDateDisabled:s}}}),Q9={class:"com-card"},eH=v.createElementVNode("br",null,null,-1);function tH(e,t,r,n,a,i){const o=v.resolveComponent("NInputGroupLabel"),s=v.resolveComponent("NDatePicker"),l=v.resolveComponent("NInputGroup"),u=v.resolveComponent("NFlex"),c=v.resolveComponent("n-data-table");return v.openBlock(),v.createElementBlock("div",Q9,[v.createVNode(u,{justify:"end"},{default:v.withCtx(()=>[v.createVNode(l,null,{default:v.withCtx(()=>[v.createVNode(o,{class:"oc-group-label"},{default:v.withCtx(()=>[v.createTextVNode("日期")]),_:1}),v.createVNode(s,{value:e.range,"onUpdate:value":t[0]||(t[0]=f=>e.range=f),type:"daterange","is-date-disabled":e.isRangeDateDisabled,style:{width:"300px"}},null,8,["value","is-date-disabled"])]),_:1})]),_:1}),eH,v.createVNode(c,{columns:e.columns,data:e.columnData,loading:e.loading,"min-height":"calc(100vh - 180px)","max-height":"calc(100vh - 180px)"},null,8,["columns","data","loading"])])}const lC=X(J9,[["render",tH]]),rH=v.defineComponent({name:"OcScan",components:{NButton:O.NButton,NModal:O.NModal,NCard:O.NCard,NFlex:O.NFlex,NIcon:O.NIcon,IconDismiss:cn},emits:["on-update:value"],setup(e,{emit:t}){const r=v.ref(),n=v.ref(!1),a=v.ref(!1),i=O.useNotification(),o=1280,s=720;let l=null,u=null;const c=(_,S)=>{l.beginPath(),l.moveTo(_.x,_.y),l.lineTo(S.x,S.y),l.lineWidth=2,l.strokeStyle="green",l.stroke()},f=()=>{if(u&&u.readyState===u.HAVE_ENOUGH_DATA){u.width=o,u.height=s,l.drawImage(r.value,0,0,o,s);const _=l.getImageData(0,0,o,s);try{const S=CC(_.data,o,s);if(S){const{location:x,data:C}=S;c(x.topLeftCorner,x.topRightCorner),c(x.topRightCorner,x.bottomRightCorner),c(x.bottomRightCorner,x.bottomLeftCorner),c(x.bottomLeftCorner,x.topLeftCorner),t("on-update:value",C),h()}}catch{i.error({content:"扫描失败,请重试",duration:3e3})}}d()},d=()=>{a.value&&requestAnimationFrame(f)},h=()=>{r.value&&r.value.srcObject&&(r.value.srcObject.getTracks().forEach(_=>_.stop()),a.value=!1,l=null,u=null,r.value.srcObject=null,r.value.src=null),n.value=!1},p=_=>{r.value.srcObject!==void 0?r.value.srcObject=_:window.videoEl.mozSrcObject!==void 0?r.value.mozSrcObject=_:window.URL.createObjectURL?r.value.src=window.URL.createObjectURL(_):window.webkitURL?r.value.src=window.webkitURL.createObjectURL(_):r.value.src=_,r.value.play().then(d)},m=()=>{n.value=!0,v.nextTick(()=>{navigator.mediaDevices&&navigator.mediaDevices.getUserMedia?(a.value=!0,u=document.getElementById("oc-scan-canvas"),u&&(l=u.getContext("2d",{willReadFrequently:!0})),navigator.mediaDevices.getUserMedia({video:!0}).then(p).catch(function(_){console.log(_)})):(a.value=!1,i.error({content:"您的设备未检测到摄像头,无法进行扫码识别",duration:3e3}))})};let g="",y=0;function w(_){if(_.code==="Enter"){g&&t("on-update:value",g),g="",y=0;return}let S=new Date().getTime();y>0&&(S-y<=100?g+=_.key:S-y>500&&(g="",y=0)),y=S}return v.onMounted(()=>{window.addEventListener("keypress",w)}),v.onBeforeUnmount(()=>{window.removeEventListener("keypress",w),h()}),{videoRef:r,modal:n,loading:a,doScan:m,closeAll:h}}}),nH=v.createElementVNode("div",{class:"oc-scan-canvas-main"},[v.createElementVNode("canvas",{id:"oc-scan-canvas",width:"1280",height:"720"})],-1),aH={class:"oc-scan-video"},iH={ref:"videoRef",playsInline:""};function oH(e,t,r,n,a,i){const o=v.resolveComponent("NButton"),s=v.resolveComponent("IconDismiss"),l=v.resolveComponent("NIcon"),u=v.resolveComponent("NFlex"),c=v.resolveComponent("NCard"),f=v.resolveComponent("NModal");return v.openBlock(),v.createElementBlock(v.Fragment,null,[v.createVNode(o,{type:"primary",loading:e.loading,onClick:e.doScan},{default:v.withCtx(()=>[v.createTextVNode("扫一扫")]),_:1},8,["loading","onClick"]),v.createVNode(f,{show:e.modal,"onUpdate:show":t[0]||(t[0]=d=>e.modal=d),"on-mask-click":e.closeAll},{default:v.withCtx(()=>[v.createVNode(c,{style:{width:"1320px"}},{header:v.withCtx(()=>[v.createTextVNode("扫一扫")]),"header-extra":v.withCtx(()=>[v.createVNode(u,{justify:"end"},{default:v.withCtx(()=>[v.createVNode(o,{quaternary:"",onClick:e.closeAll},{icon:v.withCtx(()=>[v.createVNode(l,null,{default:v.withCtx(()=>[v.createVNode(s)]),_:1})]),_:1},8,["onClick"])]),_:1})]),default:v.withCtx(()=>[nH]),_:1})]),_:1},8,["show","on-mask-click"]),v.createElementVNode("div",aH,[v.createElementVNode("video",iH,null,512)])],64)}const uC=X(rH,[["render",oH]]),sH=v.defineComponent({name:"OcTimePickRange",components:{NInputGroup:O.NInputGroup,NTimePicker:O.NTimePicker},props:{value:{required:!0,type:Array,default:()=>[]},format:{required:!1,type:String,default:"HH:mm"},disabled:{required:!1,type:Boolean,default:!1},clearable:{required:!1,type:Boolean,default:!1}},emits:["on-update:value"],setup(e,{emit:t}){const r=v.ref(null),n=v.ref(null),a=o=>{r.value=o,t("on-update:value",[r.value,n.value])},i=o=>{n.value=o,t("on-update:value",[r.value,n.value])};return v.onMounted(()=>{e.value&&(r.value=e.value[0],n.value=e.value[1])}),v.watch(()=>e.value,o=>{o&&(r.value=o[0],n.value=o[1])}),{startTime:r,endTime:n,updateStartValue:a,updateEndValue:i}}}),lH=v.createElementVNode("span",{class:"oc-time-picker-separator"},"-",-1);function uH(e,t,r,n,a,i){const o=v.resolveComponent("NTimePicker"),s=v.resolveComponent("NInputGroup");return v.openBlock(),v.createBlock(s,{class:"oc-time-picker"},{default:v.withCtx(()=>[v.createVNode(o,{value:e.startTime,clearable:e.clearable,"on-update:value":e.updateStartValue,format:e.format,disabled:e.disabled},null,8,["value","clearable","on-update:value","format","disabled"]),lH,v.createVNode(o,{value:e.endTime,clearable:e.clearable,format:e.format,disabled:e.disabled,"on-update:value":e.updateEndValue},null,8,["value","clearable","format","disabled","on-update:value"])]),_:1})}const cH=X(sH,[["render",uH]]),fH=v.defineComponent({name:"OcSearchBarItem",components:{NIcon:O.NIcon,NButton:O.NButton,NGrid:O.NGrid,NGridItem:O.NGridItem,NInput:O.NInput,NInputNumber:O.NInputNumber,NSelect:O.NSelect,NTooltip:O.NTooltip,NPopover:O.NPopover,NDataTable:O.NDataTable,NCascader:O.NCascader,NTreeSelect:O.NTreeSelect,NDatePicker:O.NDatePicker,NInputGroup:O.NInputGroup,NInputGroupLabel:O.NInputGroupLabel,OcTimePickRange:cH,IconArrowDown:Jl,IconArrowUp:td},props:{cols:{type:Number,default:4},small:{type:Boolean,default:!1}},setup(e,{expose:t}){const{t:r}=Kt.useI18n(),n=v.ref({}),a=v.ref(!0),i=v.ref(!0),o=v.ref(0),s=v.ref({}),l=v.ref({}),u=v.ref([{key:"label"}]),c=y=>y.fallbackOption?typeof y.fallbackOption=="boolean"?()=>({label:r("Common.message.all"),value:"",disabled:!0}):y.fallbackOption:!1,f=(y,w,_)=>{const S=_.options.filter(x=>String(x.label).toLocaleLowerCase().indexOf(String(w).toLocaleLowerCase())>-1)||[];s.value[y].options=S,S.length===0?s.value[y].display=!1:s.value[y].display=!0},d=y=>{var x;Object.keys(y).forEach(C=>{var b,D,N;const T=y[C];T.show=T.show??!0,T.type==="dropdown"&&(s.value[C]={display:!1,options:T.options}),T.type==="select"&&T.fallbackOption&&T.multiple&&l.value[C].length===0&&(l.value[C]=[""]),T.type==="group"&&(l.value[C]||(l.value[C]=T.options[0].value),T.inputTemp=T.input.options[l.value[C]?l.value[C]:T.options[0].value],((b=T.inputTemp)==null?void 0:b.type)==="select"&&((D=T.inputTemp)!=null&&D.fallbackOption)&&((N=T.inputTemp)!=null&&N.multiple)&&l.value[T.input.key].length===0&&(l.value[T.input.key]=[""]))});let w=0;const _=e.small?1:e.cols,S=Object.keys(y);if(Object.keys(y).length>0)for(let C=0;C<=_;C++)(x=y[S[C]])!=null&&x.show&&(w=w+1);o.value=_-w>=0?_-w-1:-1,w>_?i.value=!0:i.value=!1,e.small&&(a.value=!1,i.value=!1),n.value=y},h=y=>{s.value[y].options.length===0?s.value[y].display=!1:s.value[y].display=!0},p=()=>{a.value=!a.value},m=()=>{const y=JSON.stringify(l.value,(w,_)=>_===void 0?null:Array.isArray(_)?_.filter(S=>S!==""):_);return JSON.parse(y)},g=y=>{y&&(l.value=y)};return t({getValues:m,setValues:g,dataFactory:d}),{more:i,offset:o,dataList:n,collapsed:a,searchData:l,dropDisplay:s,columnsPopover:u,showMore:p,setValues:g,dropValueChange:f,dropDisplayToggle:h,getDefaultDate:Ea,selectFallback:c}}}),hH={class:"oc-search-bar-line"},dH={key:0,class:"oc-search-action-more"};function vH(e,t,r,n,a,i){const o=v.resolveComponent("NGridItem"),s=v.resolveComponent("NInputGroupLabel"),l=v.resolveComponent("NInput"),u=v.resolveComponent("NInputNumber"),c=v.resolveComponent("NSelect"),f=v.resolveComponent("NDataTable"),d=v.resolveComponent("NPopover"),h=v.resolveComponent("NCascader"),p=v.resolveComponent("NTreeSelect"),m=v.resolveComponent("OcTimePickRange"),g=v.resolveComponent("NDatePicker"),y=v.resolveComponent("NInputGroup"),w=v.resolveComponent("NGrid"),_=v.resolveComponent("IconArrowDown"),S=v.resolveComponent("NIcon"),x=v.resolveComponent("IconArrowUp"),C=v.resolveComponent("NButton"),T=v.resolveComponent("NTooltip");return v.openBlock(),v.createElementBlock("div",hH,[v.createVNode(w,{"x-gap":"15","y-gap":"15",cols:e.small?1:e.cols,"collapsed-rows":1,collapsed:e.collapsed},{default:v.withCtx(()=>[e.offset>-1?(v.openBlock(),v.createBlock(o,{key:0,offset:e.offset},null,8,["offset"])):v.createCommentVNode("",!0),(v.openBlock(!0),v.createElementBlock(v.Fragment,null,v.renderList(e.dataList,(b,D,N)=>(v.openBlock(),v.createElementBlock(v.Fragment,{key:`${D}_${N}`},[b.show?(v.openBlock(),v.createBlock(o,{key:0,span:e.small?1:b.span||1},{default:v.withCtx(()=>[b.type!=="group"?(v.openBlock(),v.createBlock(y,{key:0},{default:v.withCtx(()=>{var A;return[v.createVNode(s,{class:"oc-group-label"},{default:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(typeof b.title=="string"?b.title:b.title&&b.title()),1)]),_:2},1024),b.type==="input"?(v.openBlock(),v.createBlock(l,{key:0,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),"on-update:value":M=>{b.updateValue?b.updateValue(M.trim(),JSON.parse(JSON.stringify(e.searchData)),I=>e.setValues(I)):e.searchData[D]=M.trim()},clearable:b.clearable??!0},null,8,["value","onUpdate:value","disabled","placeholder","on-update:value","clearable"])):v.createCommentVNode("",!0),b.type==="number"?(v.openBlock(),v.createBlock(u,{key:1,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),min:b==null?void 0:b.min,max:b==null?void 0:b.max,step:(b==null?void 0:b.step)||1,"show-button":(b==null?void 0:b.showButton)||!0,"update-value-on-input":!1,validator:b==null?void 0:b.validator,"on-update:value":M=>{b.updateValue?b.updateValue(M,JSON.parse(JSON.stringify(e.searchData)),I=>e.setValues(I)):e.searchData[D]=M},clearable:b.clearable??!0},v.createSlots({_:2},[b!=null&&b.suffix?{name:"suffix",fn:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(b==null?void 0:b.suffix),1)]),key:"0"}:void 0]),1032,["value","onUpdate:value","disabled","placeholder","min","max","step","show-button","validator","on-update:value","clearable"])):v.createCommentVNode("",!0),b.type==="select"?(v.openBlock(),v.createBlock(c,{key:2,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,"show-checkmark":!1,disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),options:b.options,multiple:b.multiple,"fallback-option":e.selectFallback(b),"on-update:value":M=>{let I=M,P=M;if(b.multiple){let L=M.filter(E=>E!=="");L.length===0?(I=[""],P=[]):(I=L,P=L)}b.updateValue?b.updateValue(P,JSON.parse(JSON.stringify(e.searchData)),L=>e.setValues(L)):e.searchData[D]=I},clearable:b.clearable??!0,"max-tag-count":"responsive",filterable:"",style:{flex:"1",width:"0"}},null,8,["value","onUpdate:value","disabled","placeholder","options","multiple","fallback-option","on-update:value","clearable"])):v.createCommentVNode("",!0),b.type==="dropdown"?(v.openBlock(),v.createBlock(d,{key:3,width:"trigger",trigger:"manual",style:{padding:"5px"},"show-arrow":!1,show:(A=e.dropDisplay[D])==null?void 0:A.display,"on-clickoutside":()=>{e.dropDisplay[D].display=!1}},{trigger:v.withCtx(()=>[v.createVNode(l,{value:e.searchData[D],disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),clearable:b.clearable??!0,"on-update:value":M=>{e.searchData[D]=M.trim(),e.dropValueChange(D,M.trim(),b)},onClick:M=>e.dropDisplayToggle(D),onFocus:M=>e.dropDisplayToggle(D)},null,8,["value","disabled","placeholder","clearable","on-update:value","onClick","onFocus"])]),default:v.withCtx(()=>{var M;return[v.createVNode(f,{columns:e.columnsPopover,data:((M=e.dropDisplay[D])==null?void 0:M.options)||[],"max-height":300,bordered:!1,"bottom-bordered":!1,"row-props":I=>({style:"cursor: pointer;",onClick:()=>{e.searchData[D]=I.value,e.dropDisplay[D].display=!1}}),size:"small","virtual-scroll":"",class:"oc-popover-table"},null,8,["columns","data","row-props"])]}),_:2},1032,["show","on-clickoutside"])):v.createCommentVNode("",!0),b.type==="cascader"?(v.openBlock(),v.createBlock(h,{key:4,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),options:b.options,"check-strategy":b.checkStrategy||"all",multiple:b.multiple,"on-update:value":M=>{b.updateValue?b.updateValue(M,JSON.parse(JSON.stringify(e.searchData)),I=>e.setValues(I)):e.searchData[D]=M},clearable:b.clearable??!0,"max-tag-count":"responsive",filterable:""},null,8,["value","onUpdate:value","disabled","placeholder","options","check-strategy","multiple","on-update:value","clearable"])):v.createCommentVNode("",!0),b.type==="treeSelect"?(v.openBlock(),v.createBlock(p,{key:5,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),options:b.options,"check-strategy":b.checkStrategy||"all",multiple:b.multiple,"on-update:value":M=>{b.updateValue?b.updateValue(M,JSON.parse(JSON.stringify(e.searchData)),I=>e.setValues(I)):e.searchData[D]=M},clearable:b.clearable??!0,"max-tag-count":"responsive",filterable:""},null,8,["value","onUpdate:value","disabled","placeholder","options","check-strategy","multiple","on-update:value","clearable"])):v.createCommentVNode("",!0),b.type==="timePicker"?(v.openBlock(),v.createBlock(m,{key:6,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,disabled:b==null?void 0:b.disabled,"onOnUpdate:value":M=>{b.updateValue?b.updateValue(M,JSON.parse(JSON.stringify(e.searchData)),I=>e.setValues(I)):e.searchData[D]=[...M]},format:b==null?void 0:b.format,clearable:b.clearable??!0},null,8,["value","onUpdate:value","disabled","onOnUpdate:value","format","clearable"])):v.createCommentVNode("",!0),b.type==="datePicker"?(v.openBlock(),v.createBlock(g,{key:7,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),type:b.dateType,format:b==null?void 0:b.format,"is-date-disabled":b==null?void 0:b.isDateDisabled,shortcuts:b==null?void 0:b.shortcuts,"update-value-on-close":b.dateType!=="year","on-update:value":M=>{b.updateValue?b.updateValue(M,JSON.parse(JSON.stringify(e.searchData)),I=>e.setValues(I)):e.searchData[D]=M},clearable:b.clearable??!0,"close-on-select":""},null,8,["value","onUpdate:value","disabled","placeholder","type","format","is-date-disabled","shortcuts","update-value-on-close","on-update:value","clearable"])):v.createCommentVNode("",!0)]}),_:2},1024)):v.createCommentVNode("",!0),b.type==="group"?(v.openBlock(),v.createBlock(y,{key:1},{default:v.withCtx(()=>{var A,M,I,P,L,E,B,R,V,z,Y,Z,F,J,Te,fe,Ve,je,Be,Me,te,le,gt,Le,zt,St,$r,Go,_r,Ho,Fr,gi,ca;return[v.createVNode(c,{value:e.searchData[D],"onUpdate:value":we=>e.searchData[D]=we,options:b.options,"show-checkmark":!1,style:v.normalizeStyle(b.width?typeof b.width=="number"?{width:`${b.width}px`}:{width:b.width}:{}),"on-update:value":we=>{if(b.inputTemp=b.input.options[we],b.inputTemp.type==="datePicker"){let Ee=0;(b.inputTemp.dateType.indexOf("date")>-1||b.inputTemp.dateType.indexOf("quarter")>-1||b.inputTemp.dateType.indexOf("week")>-1)&&(Ee=e.getDefaultDate()),b.inputTemp.dateType.indexOf("month")>-1&&(Ee=e.getDefaultDate(void 0,void 0,1)),b.inputTemp.dateType.indexOf("year")>-1&&(Ee=e.getDefaultDate(void 0,1,1)),b.inputTemp.dateType.indexOf("range")>-1&&(Ee=[Ee,Ee]),e.searchData[b.input.key]=Ee}else b.inputTemp.type==="number"?e.searchData[b.input.key]=null:b.inputTemp.type==="select"&&b.inputTemp.fallbackOption&&b.inputTemp.multiple?e.searchData[b.input.key]=[""]:e.searchData[b.input.key]="";b.updateValue?b.updateValue(we,JSON.parse(JSON.stringify(e.searchData)),Ee=>e.setValues(Ee)):e.searchData[D]=we},class:"oc-group-select",placeholder:" "},null,8,["value","onUpdate:value","options","style","on-update:value"]),((A=b.inputTemp)==null?void 0:A.type)==="input"?(v.openBlock(),v.createBlock(l,{key:0,value:e.searchData[b.input.key],"onUpdate:value":we=>e.searchData[b.input.key]=we,disabled:(M=b.inputTemp)==null?void 0:M.disabled,placeholder:typeof((I=b.inputTemp)==null?void 0:I.placeholder)=="string"?(P=b.inputTemp)==null?void 0:P.placeholder:((L=b.inputTemp)==null?void 0:L.placeholder)&&((E=b.inputTemp)==null?void 0:E.placeholder()),"on-update:value":we=>{var Ee;(Ee=b.inputTemp)!=null&&Ee.updateValue?b.inputTemp.updateValue(we.trim(),JSON.parse(JSON.stringify(e.searchData)),wr=>e.setValues(wr)):e.searchData[b.input.key]=we.trim()},clearable:b.inputTemp.clearable??!0,style:{flex:"1"}},null,8,["value","onUpdate:value","disabled","placeholder","on-update:value","clearable"])):v.createCommentVNode("",!0),((B=b.inputTemp)==null?void 0:B.type)==="number"?(v.openBlock(),v.createBlock(u,{key:1,value:e.searchData[b.input.key],"onUpdate:value":we=>e.searchData[b.input.key]=we,disabled:(R=b.inputTemp)==null?void 0:R.disabled,placeholder:typeof((V=b.inputTemp)==null?void 0:V.placeholder)=="string"?(z=b.inputTemp)==null?void 0:z.placeholder:((Y=b.inputTemp)==null?void 0:Y.placeholder)&&((Z=b.inputTemp)==null?void 0:Z.placeholder()),min:(F=b.inputTemp)==null?void 0:F.min,max:(J=b.inputTemp)==null?void 0:J.max,step:((Te=b.inputTemp)==null?void 0:Te.step)||1,"show-button":((fe=b.inputTemp)==null?void 0:fe.showButton)||!0,"update-value-on-input":!1,validator:(Ve=b.inputTemp)==null?void 0:Ve.validator,"on-update:value":we=>{var Ee;(Ee=b.inputTemp)!=null&&Ee.updateValue?b.inputTemp.updateValue(we,JSON.parse(JSON.stringify(e.searchData)),wr=>e.setValues(wr)):e.searchData[b.input.key]=we},clearable:b.inputTemp.clearable??!0,style:{flex:"1"}},v.createSlots({_:2},[(je=b.inputTemp)!=null&&je.suffix?{name:"suffix",fn:v.withCtx(()=>{var we;return[v.createTextVNode(v.toDisplayString((we=b.inputTemp)==null?void 0:we.suffix),1)]}),key:"0"}:void 0]),1032,["value","onUpdate:value","disabled","placeholder","min","max","step","show-button","validator","on-update:value","clearable"])):v.createCommentVNode("",!0),((Be=b.inputTemp)==null?void 0:Be.type)==="datePicker"?(v.openBlock(),v.createBlock(g,{key:2,value:e.searchData[b.input.key],"onUpdate:value":we=>e.searchData[b.input.key]=we,disabled:(Me=b.inputTemp)==null?void 0:Me.disabled,placeholder:typeof((te=b.inputTemp)==null?void 0:te.placeholder)=="string"?(le=b.inputTemp)==null?void 0:le.placeholder:((gt=b.inputTemp)==null?void 0:gt.placeholder)&&((Le=b.inputTemp)==null?void 0:Le.placeholder()),type:b.inputTemp.dateType,format:(zt=b.inputTemp)==null?void 0:zt.format,"is-date-disabled":(St=b.inputTemp)==null?void 0:St.isDateDisabled,shortcuts:($r=b.inputTemp)==null?void 0:$r.shortcuts,"update-value-on-close":b.inputTemp.dateType!=="year","on-update:value":we=>{var Ee;(Ee=b.inputTemp)!=null&&Ee.updateValue?b.inputTemp.updateValue(we,JSON.parse(JSON.stringify(e.searchData)),wr=>e.setValues(wr)):e.searchData[b.input.key]=we},clearable:b.inputTemp.clearable??!0,"close-on-select":"",style:{flex:"1"}},null,8,["value","onUpdate:value","disabled","placeholder","type","format","is-date-disabled","shortcuts","update-value-on-close","on-update:value","clearable"])):v.createCommentVNode("",!0),((Go=b.inputTemp)==null?void 0:Go.type)==="select"?(v.openBlock(),v.createBlock(c,{key:3,value:e.searchData[b.input.key],"onUpdate:value":we=>e.searchData[b.input.key]=we,"show-checkmark":!1,disabled:(_r=b.inputTemp)==null?void 0:_r.disabled,placeholder:typeof((Ho=b.inputTemp)==null?void 0:Ho.placeholder)=="string"?(Fr=b.inputTemp)==null?void 0:Fr.placeholder:((gi=b.inputTemp)==null?void 0:gi.placeholder)&&((ca=b.inputTemp)==null?void 0:ca.placeholder()),options:b.inputTemp.options,multiple:b.inputTemp.multiple,"fallback-option":e.selectFallback(b.inputTemp),"on-update:value":we=>{var jv,Xv,Zv;let Ee=we,wr=we;if(((jv=b.inputTemp)==null?void 0:jv.type)==="select"&&((Xv=b.inputTemp)!=null&&Xv.multiple)){let mi=we.filter(wC=>wC!=="");mi.length===0?(Ee=[""],wr=[]):(Ee=mi,wr=mi)}(Zv=b.inputTemp)!=null&&Zv.updateValue?b.inputTemp.updateValue(wr,JSON.parse(JSON.stringify(e.searchData)),mi=>e.setValues(mi)):e.searchData[b.input.key]=Ee},clearable:b.inputTemp.clearable??!0,"max-tag-count":"responsive",filterable:"",style:{flex:"1",width:"0"}},null,8,["value","onUpdate:value","disabled","placeholder","options","multiple","fallback-option","on-update:value","clearable"])):v.createCommentVNode("",!0)]}),_:2},1024)):v.createCommentVNode("",!0)]),_:2},1032,["span"])):v.createCommentVNode("",!0)],64))),128))]),_:1},8,["cols","collapsed"]),e.more?(v.openBlock(),v.createElementBlock("div",dH,[v.createVNode(T,{trigger:"hover"},{trigger:v.withCtx(()=>[v.createVNode(C,{onClick:e.showMore},{icon:v.withCtx(()=>[e.collapsed?(v.openBlock(),v.createBlock(S,{key:0},{default:v.withCtx(()=>[v.createVNode(_)]),_:1})):(v.openBlock(),v.createBlock(S,{key:1},{default:v.withCtx(()=>[v.createVNode(x)]),_:1}))]),_:1},8,["onClick"])]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.more")),1)]),_:1})])):v.createCommentVNode("",!0)])}const pH=X(fH,[["render",vH]]),gH=v.defineComponent({name:"OcSearchBarPop",props:{value:{required:!0,type:Boolean,default:!1}},emits:["on-update:value"],setup(e,{emit:t}){return{close:()=>{t("on-update:value",!1)}}}}),mH={class:"oc-search-bar-pop"},yH={class:"oc-search-bar-pop-plan"},_H={class:"oc-search-bar-pop-action"},wH={class:"oc-search-bar-pop-content"};function bH(e,t,r,n,a,i){return v.withDirectives((v.openBlock(),v.createElementBlock("div",mH,[v.createElementVNode("div",{class:"oc-search-bar-pop-mask",onClick:t[0]||(t[0]=(...o)=>e.close&&e.close(...o))}),v.createElementVNode("div",yH,[v.createElementVNode("div",_H,[v.renderSlot(e.$slots,"action")]),v.createElementVNode("div",wH,[v.renderSlot(e.$slots,"default")])])],512)),[[v.vShow,e.value]])}const SH=X(gH,[["render",bH]]),CH=v.defineComponent({name:"OcSearchBar",components:{NFlex:O.NFlex,NIcon:O.NIcon,NTooltip:O.NTooltip,NButton:O.NButton,NPopover:O.NPopover,IconArrowDown:Jl,IconReset:rd,IconSearch:ql,IconFilter:jl,OcSearchBarItem:pH,OcSearchBarPop:SH},props:{value:{required:!0,type:Object,default:()=>({})},defaultValue:{required:!0,type:Object,default:()=>({})},data:{required:!0,type:Object,default:()=>({})},loading:{type:Boolean,default:!1},cols:{type:Number,default:4},small:{type:Boolean,default:!1},autoSubmit:{type:Boolean,default:!0},cache:{type:Boolean,default:!0},resetButton:{type:Boolean,default:!0}},emits:["update:loading","on-update:value"],setup(e,{emit:t,slots:r,expose:n}){const a=$t.useRoute(),i=$t.useRouter(),o=v.ref(),s=v.ref({}),l=v.ref(!1),u=v.ref(!!r.header),c=v.ref(!!r.action),f=(m=!1)=>{if(!e.loading&&o.value){const g=o.value.getValues();if(!m&&g.query&&(g.query.page=1),t("update:loading",!0),t("on-update:value",g),e.cache){const y=a.path,w=Jr(g),_=Jr(y);i.replace(`${y}?cursor=${w}&routerId=${_}`)}}},d=()=>{e.loading||(h(JSON.parse(JSON.stringify(e.defaultValue))),f())},h=(m,g=!1)=>{if(o.value&&o.value.setValues(JSON.parse(JSON.stringify(m))),p(e.data),g)i.replace(a.path);else if(e.cache){const y=a.path,w=Jr(m),_=Jr(y);i.replace(`${y}?cursor=${w}&routerId=${_}`)}},p=m=>{o.value&&o.value.dataFactory(m)};return n({setValues:h,setData:p}),v.onMounted(()=>{setTimeout(()=>{let m=e.value;if(e.cache){const{cursor:g,routerId:y}=a.query;if(g&&y){const w=a.path,_=po(y),S=po(g);_===w&&(m=S)}}o.value&&o.value.setValues(JSON.parse(JSON.stringify(m))),o.value&&o.value.dataFactory(e.data),e.autoSubmit&&f(!0)},100)}),{itemRef:o,drawer:l,isSlotHeader:u,isSlotAction:c,commonStore:oe,itemData:s,doSearch:f,clearAll:d}}}),xH={key:0,class:"oc-search-bar-title"},TH={key:1,class:"oc-search-bar-popover"},NH={key:0},DH={class:"oc-search-bar-center"};function AH(e,t,r,n,a,i){const o=v.resolveComponent("OcSearchBarItem"),s=v.resolveComponent("IconArrowDown"),l=v.resolveComponent("NIcon"),u=v.resolveComponent("NButton"),c=v.resolveComponent("IconReset"),f=v.resolveComponent("IconSearch"),d=v.resolveComponent("NFlex"),h=v.resolveComponent("OcSearchBarPop"),p=v.resolveComponent("IconFilter"),m=v.resolveComponent("NTooltip");return v.openBlock(),v.createElementBlock("div",{class:v.normalizeClass(["oc-search-bar",{small:!e.isSlotHeader&&(e.small||e.commonStore.isMobile)}]),onKeyup:t[6]||(t[6]=v.withKeys(g=>e.doSearch(!1),["enter"]))},[e.isSlotHeader?(v.openBlock(),v.createElementBlock("span",xH,[v.renderSlot(e.$slots,"header")])):v.createCommentVNode("",!0),e.small||e.commonStore.isMobile?(v.openBlock(),v.createElementBlock("div",TH,[v.createVNode(h,{value:e.drawer,"onUpdate:value":t[2]||(t[2]=g=>e.drawer=g),"onOnUpdate:value":t[3]||(t[3]=g=>e.drawer=g)},{action:v.withCtx(()=>[v.createVNode(d,{size:15,justify:"space-between",wrap:!1},{default:v.withCtx(()=>[v.createVNode(u,{onClick:t[0]||(t[0]=g=>e.drawer=!1)},{icon:v.withCtx(()=>[v.createVNode(l,null,{default:v.withCtx(()=>[v.createVNode(s)]),_:1})]),_:1}),e.resetButton?(v.openBlock(),v.createBlock(u,{key:0,loading:e.loading,onClick:e.clearAll},{icon:v.withCtx(()=>[v.createVNode(l,null,{default:v.withCtx(()=>[v.createVNode(c)]),_:1})]),_:1},8,["loading","onClick"])):v.createCommentVNode("",!0),e.data&&Object.keys(e.data).length>0?(v.openBlock(),v.createBlock(u,{key:1,loading:e.loading,class:"button-primary",onClick:t[1]||(t[1]=()=>{e.drawer=!1,e.doSearch(!1)})},{icon:v.withCtx(()=>[v.createVNode(l,null,{default:v.withCtx(()=>[v.createVNode(f)]),_:1})]),_:1},8,["loading"])):v.createCommentVNode("",!0)]),_:1}),e.isSlotAction?(v.openBlock(),v.createElementBlock("br",NH)):v.createCommentVNode("",!0),e.isSlotAction?(v.openBlock(),v.createBlock(d,{key:1,size:15,justify:"space-between",class:"oc-search-action"},{default:v.withCtx(()=>[v.renderSlot(e.$slots,"action")]),_:3})):v.createCommentVNode("",!0)]),default:v.withCtx(()=>[v.createVNode(o,{ref:"itemRef",loading:e.loading,small:""},null,8,["loading"])]),_:3},8,["value"]),v.createVNode(u,{onClick:t[4]||(t[4]=g=>e.drawer=!0)},{icon:v.withCtx(()=>[v.createVNode(l,null,{default:v.withCtx(()=>[v.createVNode(p)]),_:1})]),_:1})])):(v.openBlock(),v.createElementBlock(v.Fragment,{key:2},[v.createElementVNode("div",DH,[v.createVNode(o,{ref:"itemRef",loading:e.loading,cols:e.cols},null,8,["loading","cols"]),v.createVNode(d,{size:5,wrap:!1,style:{"padding-left":"15px"}},{default:v.withCtx(()=>[e.data&&Object.keys(e.data).length>0?(v.openBlock(),v.createBlock(m,{key:0,trigger:"hover"},{trigger:v.withCtx(()=>[v.createVNode(u,{loading:e.loading,class:"button-primary",onClick:t[5]||(t[5]=g=>e.doSearch(!1))},{icon:v.withCtx(()=>[v.createVNode(l,null,{default:v.withCtx(()=>[v.createVNode(f)]),_:1})]),_:1},8,["loading"])]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.search")),1)]),_:1})):v.createCommentVNode("",!0),e.resetButton?(v.openBlock(),v.createBlock(m,{key:1,trigger:"hover"},{trigger:v.withCtx(()=>[v.createVNode(u,{loading:e.loading,onClick:e.clearAll},{icon:v.withCtx(()=>[v.createVNode(l,null,{default:v.withCtx(()=>[v.createVNode(c)]),_:1})]),_:1},8,["loading","onClick"])]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.reset")),1)]),_:1})):v.createCommentVNode("",!0)]),_:1})]),v.createVNode(d,{size:0,wrap:!1,class:"oc-search-action"},{default:v.withCtx(()=>[v.renderSlot(e.$slots,"action")]),_:3})],64))],34)}const Wv=X(CH,[["render",AH]]),MH=v.defineComponent({name:"OcSkeleton",components:{NGrid:O.NGrid,NGi:O.NGi,NSkeleton:O.NSkeleton},props:{cols:{type:Number,default:6},num:{type:Array,default:()=>[[12,1]]}},setup(){return{}}}),kH={class:"com-skeleton"};function EH(e,t,r,n,a,i){const o=v.resolveComponent("NSkeleton"),s=v.resolveComponent("NGi"),l=v.resolveComponent("NGrid");return v.openBlock(),v.createElementBlock("div",kH,[v.createVNode(l,{"x-gap":"15","y-gap":"15",cols:e.cols,"item-responsive":"",responsive:"screen"},{default:v.withCtx(()=>[(v.openBlock(!0),v.createElementBlock(v.Fragment,null,v.renderList(e.num,(u,c)=>(v.openBlock(),v.createElementBlock(v.Fragment,{key:`skeleton_${c}`},[(v.openBlock(!0),v.createElementBlock(v.Fragment,null,v.renderList(e.num[c][0],(f,d)=>(v.openBlock(),v.createBlock(s,{key:`skeleton_${c}_${d}`,span:`${e.cols/2} m:2 l:${e.num[c][1]}`},{default:v.withCtx(()=>[v.createVNode(o)]),_:2},1032,["span"]))),128))],64))),128))]),_:1},8,["cols"])])}const cC=X(MH,[["render",EH]]),PH=v.defineComponent({name:"OcTable",components:{NDataTable:O.NDataTable,NTooltip:O.NTooltip,NPopover:O.NPopover,NButton:O.NButton,NIcon:O.NIcon,NFlex:O.NFlex,NPopconfirm:O.NPopconfirm,IconFilter:jl,IconNavigation:Kl,IconEye:Xl,IconEyeOff:Kh,IconPin:Qh,IconPinOff:ed,IconAdd:Ul,IconMailInboxAdd:ko,IconCloudArrowDown:Zl,Draggable:xC,OcSearchBar:Wv,OcImporter:Hv},props:{columns:{required:!0,type:Array,default:()=>[]},actions:{type:Array,default:void 0},fetch:{required:!0,type:Function,default:()=>Promise.resolve()},defaultCheckedRowKeys:{type:Array,default:()=>[]},pagination:{type:Boolean,default:!0},scrollX:{type:[Number,String],default:void 0},flexHeight:{type:Boolean,default:!1},height:{type:[Number,String],default:void 0},minHeight:{type:[Number,String],default:void 0},maxHeight:{type:[Number,String],default:void 0},actionsWidth:{type:[Number,String],default:180},autoSubmit:{type:Boolean,default:!0},cache:{type:Boolean,default:!0},resetButton:{type:Boolean,default:!0},filterButton:{type:Boolean,default:!0},pinButton:{type:Boolean,default:!0},realtime:{type:Boolean,default:!1},addFn:{type:Function,default:void 0},importer:{type:Object,default:void 0},exporter:{type:Object,default:void 0}},emits:["update:loading","on-update:value"],setup(e,{emit:t,expose:r}){const n=v.ref(),{t:a}=Kt.useI18n(),i=$t.useRoute(),o=$t.useRouter(),s=O.useNotification(),l=v.ref(!1),u=v.ref(!1),c=v.ref(!1),f=v.ref([]),d=v.ref([]),h=v.ref([]),p=v.ref({query:{page:1}}),m=v.ref({}),g=v.ref({}),y=v.ref(void 0),w=v.ref(void 0),_=i.path,S=E=>{l.value=!0,t("update:loading",!0),E&&(p.value.query={...p.value.query,...E});const B=Io(p.value);e.fetch&&e.fetch(B).then(R=>{const V=Po(R);p.value.query=V.query,h.value=V.records,n.value&&n.value.setValues(p.value),l.value=!1,t("on-update:value",Rt(p.value)),t("update:loading",!1)}).catch(()=>{l.value=!1,t("update:loading",!1)})},x=E=>{p.value.query.page=E,Js(),S()},C=E=>{p.value.query.pageSize=E,p.value.query.page=1,Js(),S()},T=E=>{E?(p.value.query.columnKey=E.columnKey,p.value.query.order=E.order):(p.value.query.columnKey=null,p.value.query.order=null),S()},b=E=>{E.pin=!E.pin,E.pin?E.fixed="left":E.fixed=E.fixTemp??void 0},D=E=>{E.show=!E.show},N=()=>{const E=[];d.value.forEach(B=>{B.show&&E.push(B)}),f.value=E},A=E=>{if(p.value=E,e.cache){const B=Jr(_),R=Jr(p.value);o.replace(`${_}?cursor=${R}&routerId=${B}`)}S()},M=()=>{u.value=!0,Fv({...e.exporter,jobParams:JSON.stringify(p.value)}).then(()=>{s.success({content:()=>a("Notice.success"),duration:3e3}),setTimeout(()=>{u.value=!1},2e3)}).catch(()=>{u.value=!1})},I=(E=!1)=>{const B=Rt(e.columns),R=[],V=[],z={},Y={};let Z={};if(B.forEach(async F=>{if(F.search){if(F.search.title||(F.search.title=F.title),F.search.defaultValue!==void 0)z[F.search.key||F.key]=F.search.defaultValue;else{if(F.search.type==="input"&&(z[F.search.key||F.key]=""),F.search.type==="number"&&(z[F.search.key||F.key]=null),F.search.type==="dropdown"&&(z[F.search.key||F.key]=null),(F.search.type==="cascader"||F.search.type==="treeSelect")&&(F.search.multiple?z[F.search.key||F.key]=[]:z[F.search.key||F.key]=null),F.search.type==="datePicker"){let J=0;(F.search.dateType.indexOf("date")>-1||F.search.dateType.indexOf("quarter")>-1||F.search.dateType.indexOf("week")>-1)&&(J=Ea()),F.search.dateType.indexOf("month")>-1&&(J=Ea(void 0,void 0,1)),F.search.dateType.indexOf("year")>-1&&(J=Ea(void 0,1,1)),F.search.dateType.indexOf("range")>-1&&(J=[J,J]),z[F.search.key||F.key]=J}F.search.type==="select"&&(typeof F.search.options=="function"&&await F.search.options().then(J=>{F.search.options=J}),F.search.multiple?F.search.fallbackOption?z[F.search.key||F.key]=[""]:z[F.search.key||F.key]=[]:z[F.search.key||F.key]=null)}Y[F.search.key||F.key]=Rt(F.search)}if(delete F.search,F.render&&typeof F.render=="string"){const J=F.render,Te=new Function("rowData","rowIndex","h",J);F.render=(fe,Ve)=>Te(fe,Ve,v.h)}R.push(Rt(F)),m.value=Rt(z),V.push({...F,show:F.show??!0,pin:!!F.fixed,fixTemp:F.fixed})}),E&&e.cache){const{cursor:F,routerId:J}=i.query;if(F&&J){const Te=po(J),fe=po(F);Te===_&&(Z=fe)}}if(e.actions&&e.actions.length>0){const F=Rt(e.actions),J={title:()=>a("Common.action"),key:"action",align:"center",fixed:"right",width:e.actionsWidth,resizable:!0,checked:!0,show:!0,hide:!0,render(Te,fe){return pn(F,Te,fe)}};R.push(J),V.push(J)}f.value=R,g.value=Y,p.value={...p.value,...z,...Z},d.value=V,n.value&&n.value.setValues(JSON.parse(JSON.stringify(p.value))),n.value&&n.value.setData(JSON.parse(JSON.stringify(g.value)))},P=E=>typeof E=="number"?`${E}px`:E,L=()=>{if(e.height){const E=P(e.height);y.value=E,w.value=E;return}e.minHeight&&(y.value=P(e.minHeight)),e.maxHeight&&(w.value=P(e.maxHeight))};return r({init:S}),v.onMounted(()=>{I(!0),L()}),v.watch(()=>d.value,()=>{N()},{deep:!0}),v.watch(()=>e.columns,()=>{e.realtime&&I()},{deep:!0}),v.watch(()=>e.actions,()=>{e.realtime&&I()},{deep:!0}),{loading:l,minH:y,maxH:w,searchRef:n,exportLoading:u,tableColumns:f,tableData:h,tableQuery:p,searchDefaultValue:m,searchData:g,baseColumns:d,showImporter:c,pageChange:x,pageSizeChange:C,pageSorter:T,pinChange:b,showChange:D,submit:A,exportData:M,getDefaultDate:Ea}}}),IH={class:"com-card"};function LH(e,t,r,n,a,i){const o=v.resolveComponent("IconAdd"),s=v.resolveComponent("NIcon"),l=v.resolveComponent("NButton"),u=v.resolveComponent("NTooltip"),c=v.resolveComponent("IconMailInboxAdd"),f=v.resolveComponent("IconCloudArrowDown"),d=v.resolveComponent("NPopconfirm"),h=v.resolveComponent("IconFilter"),p=v.resolveComponent("IconNavigation"),m=v.resolveComponent("IconPin"),g=v.resolveComponent("IconPinOff"),y=v.resolveComponent("IconEye"),w=v.resolveComponent("IconEyeOff"),_=v.resolveComponent("Draggable"),S=v.resolveComponent("NPopover"),x=v.resolveComponent("OcSearchBar"),C=v.resolveComponent("NDataTable"),T=v.resolveComponent("OcImporter");return v.openBlock(),v.createElementBlock(v.Fragment,null,[v.createVNode(x,{ref:"searchRef",value:e.tableQuery,defaultValue:e.searchDefaultValue,data:e.searchData,loading:e.loading,cache:!1,autoSubmit:e.autoSubmit,resetButton:e.resetButton,"onOnUpdate:value":e.submit},{header:v.withCtx(()=>[v.renderSlot(e.$slots,"header")]),action:v.withCtx(()=>[e.addFn?(v.openBlock(),v.createBlock(u,{key:0,trigger:"hover"},{trigger:v.withCtx(()=>[v.createVNode(l,{onClick:e.addFn},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(o)]),_:1})]),_:1},8,["onClick"])]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.add")),1)]),_:1})):v.createCommentVNode("",!0),e.importer?(v.openBlock(),v.createBlock(u,{key:1,trigger:"hover"},{trigger:v.withCtx(()=>[v.createVNode(l,{onClick:t[0]||(t[0]=b=>e.showImporter=!0)},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(c)]),_:1})]),_:1})]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.importer.title")),1)]),_:1})):v.createCommentVNode("",!0),e.exporter?(v.openBlock(),v.createBlock(u,{key:2,trigger:"hover"},{trigger:v.withCtx(()=>[v.createVNode(d,{"positive-text":e.$t("Common.export"),placement:"bottom-end",onPositiveClick:e.exportData},{trigger:v.withCtx(()=>[v.createVNode(l,{loading:e.exportLoading},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(f)]),_:1})]),_:1},8,["loading"])]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.export"))+"? ",1)]),_:1},8,["positive-text","onPositiveClick"])]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.export")),1)]),_:1})):v.createCommentVNode("",!0),e.filterButton?(v.openBlock(),v.createBlock(u,{key:3,trigger:"hover"},{trigger:v.withCtx(()=>[v.createVNode(S,{placement:"bottom-end",trigger:"click","show-arrow":!1},{trigger:v.withCtx(()=>[v.createVNode(l,null,{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(h)]),_:1})]),_:1})]),default:v.withCtx(()=>[v.createVNode(_,v.mergeProps({modelValue:e.baseColumns,"onUpdate:modelValue":t[1]||(t[1]=b=>e.baseColumns=b)},{animation:200},{"item-key":"key",class:"oc-table-filter",handle:".oc-drag-handle"}),{item:v.withCtx(({element:b})=>[b.hide?v.createCommentVNode("",!0):(v.openBlock(),v.createElementBlock("div",{key:b.key,class:"oc-table-sort"},[v.createVNode(l,{quaternary:"",class:"oc-drag-handle"},{icon:v.withCtx(()=>[v.createVNode(s,{size:"24"},{default:v.withCtx(()=>[v.createVNode(p)]),_:1})]),_:1}),v.createVNode(l,{quaternary:"",class:"oc-table-sort-title"},{default:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(typeof b.title=="string"?b.title:b.title&&b.title()),1)]),_:2},1024),e.pinButton?(v.openBlock(),v.createBlock(l,{key:0,type:"tertiary",onClick:D=>e.pinChange(b),quaternary:""},{icon:v.withCtx(()=>[v.createVNode(s,{size:"24"},{default:v.withCtx(()=>[b.pin?(v.openBlock(),v.createBlock(m,{key:0})):(v.openBlock(),v.createBlock(g,{key:1}))]),_:2},1024)]),_:2},1032,["onClick"])):v.createCommentVNode("",!0),v.createVNode(l,{type:"tertiary",onClick:D=>e.showChange(b),quaternary:""},{icon:v.withCtx(()=>[v.createVNode(s,{size:"24"},{default:v.withCtx(()=>[b.show?(v.openBlock(),v.createBlock(y,{key:0})):(v.openBlock(),v.createBlock(w,{key:1}))]),_:2},1024)]),_:2},1032,["onClick"])]))]),_:1},16,["modelValue"])]),_:1})]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.filter")),1)]),_:1})):v.createCommentVNode("",!0),v.renderSlot(e.$slots,"action")]),_:3},8,["value","defaultValue","data","loading","autoSubmit","resetButton","onOnUpdate:value"]),v.createElementVNode("div",IH,[v.createVNode(C,{columns:e.tableColumns,data:e.tableData,pagination:e.pagination&&e.tableQuery.query,loading:e.loading,"default-checked-row-keys":e.defaultCheckedRowKeys,"scroll-x":e.scrollX,"flex-height":e.flexHeight,"min-height":e.minH,"max-height":e.maxH,"on-update:page":e.pageChange,"on-update:page-size":e.pageSizeChange,"on-update:sorter":e.pageSorter,remote:""},null,8,["columns","data","pagination","loading","default-checked-row-keys","scroll-x","flex-height","min-height","max-height","on-update:page","on-update:page-size","on-update:sorter"])]),e.importer?(v.openBlock(),v.createBlock(T,{key:0,show:e.showImporter,"onUpdate:show":t[2]||(t[2]=b=>e.showImporter=b),data:e.importer},null,8,["show","data"])):v.createCommentVNode("",!0)],64)}const fC=X(PH,[["render",LH]]),OH=v.defineComponent({name:"OcWorkflowAdd",components:{IconAdd:Ul,NButton:O.NButton,NIcon:O.NIcon,NPopover:O.NPopover},emits:["update:add"],setup(e,{emit:t}){const r=v.ref(!1);return{showPopover:r,submit:a=>{r.value=!1,t("update:add",a)}}}});function RH(e,t,r,n,a,i){const o=v.resolveComponent("IconAdd"),s=v.resolveComponent("NIcon"),l=v.resolveComponent("NButton"),u=v.resolveComponent("NFlex"),c=v.resolveComponent("NPopover");return v.openBlock(),v.createBlock(c,{trigger:"manual",show:e.showPopover},{trigger:v.withCtx(()=>[v.createVNode(l,{type:"primary",onClick:t[0]||(t[0]=f=>e.showPopover=!0)},{default:v.withCtx(()=>[v.createVNode(s,{size:"18"},{default:v.withCtx(()=>[v.createVNode(o)]),_:1})]),_:1})]),default:v.withCtx(()=>[v.createVNode(u,null,{default:v.withCtx(()=>[v.createVNode(l,{type:"primary",onClick:t[1]||(t[1]=f=>e.submit(2))},{default:v.withCtx(()=>[v.createTextVNode("节点")]),_:1}),v.createVNode(l,{type:"primary",onClick:t[2]||(t[2]=f=>e.submit(1))},{default:v.withCtx(()=>[v.createTextVNode("分支")]),_:1})]),_:1})]),_:1},8,["show"])}const hC=X(OH,[["render",RH]]),BH=v.defineComponent({name:"OcWorkflowCard",components:{NFlex:O.NFlex,OcWorkflowAdd:hC,IconDismiss:cn},props:{data:{type:Object,default:()=>({})}},emits:["update:add","update:delete"],setup(e,{emit:t}){return{addOne:a=>{t("update:add",a)},doDelete:()=>{t("update:delete",!0)}}}}),VH={class:"oc-workflow-node"},$H={class:"oc-workflow-node-ctx"},FH=v.createElementVNode("div",{class:"oc-workflow-node-desc"},"功能",-1),zH={class:"oc-workflow-node-more"};function GH(e,t,r,n,a,i){const o=v.resolveComponent("IconDismiss"),s=v.resolveComponent("NIcon"),l=v.resolveComponent("NButton"),u=v.resolveComponent("NFlex"),c=v.resolveComponent("OcWorkflowAdd");return v.openBlock(),v.createElementBlock("div",VH,[v.createElementVNode("div",$H,[v.createVNode(u,{justify:"space-between",class:"oc-workflow-node-title"},{default:v.withCtx(()=>[v.createElementVNode("div",null,v.toDisplayString(e.data.title),1),e.data.type===1||e.data.type===2?(v.openBlock(),v.createBlock(l,{key:0,onClick:e.doDelete},{default:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(o)]),_:1})]),_:1},8,["onClick"])):v.createCommentVNode("",!0)]),_:1}),FH]),v.createElementVNode("div",zH,[v.createVNode(c,{"onUpdate:add":t[0]||(t[0]=f=>{e.addOne(f)})})])])}const HH=X(BH,[["render",GH]]),UH=v.defineComponent({name:"OcWorkflowNode",components:{NButton:O.NButton,OcWorkflowAdd:hC,OcWorkflowCard:HH},props:{data:{type:Array,default:()=>[]}},setup(e){function t(c){const f=String(Date.now());return{title:"IF",type:1,key:f,parentKey:String(c),children:[{title:"条件1",type:1,key:`${f}1`,parentKey:f,children:[]},{title:"条件2",type:1,key:`${f}2`,parentKey:f,children:[]}]}}function r(c){const f=String(Date.now());return{title:`功能${Math.floor(Math.random()*101)}`,type:2,key:f,parentKey:String(c),children:[]}}return{addStartOne:c=>{e.data.splice(1,0,c===1?t(""):r(""))},addNodeOne:(c,f)=>{if(c.parentKey)e.data.push(f===1?t(c.parentKey):r(c.parentKey));else{const d=e.data.indexOf(c);e.data.splice(d+1,0,f===1?t(""):r(""))}},addCondition:c=>{const f=String(Date.now());c.children.push({title:`条件${c.children.length+1}`,type:1,key:f,parentKey:c.key,children:[]})},addConditionBottom:(c,f)=>{if(c.parentKey)e.data.push(f===1?t(c.parentKey):r(c.parentKey));else{const d=e.data.indexOf(c);e.data.splice(d+1,0,f===1?t(""):r(""))}},addConditionSide:(c,f)=>{c.children.length===0?c.children.push(f===1?t(c.parentKey):r(c.parentKey)):c.children.unshift(f===1?t(c.parentKey):r(c.parentKey))},deleteNodeOne:c=>{e.data.splice(c,1)},deleteConditionSide:(c,f)=>{if(c.children.length===2){const d=e.data.indexOf(c);e.data.splice(d,1)}else c.children.splice(f,1)}}}}),WH={key:2},YH={class:"oc-workflow-node-branch-add"},qH={class:"oc-workflow-branch-ctx"},jH={class:"oc-workflow-node-branch-add-bottom"},XH={key:3,class:"oc-workflow-node-end"},ZH=v.createElementVNode("div",{class:"oc-workflow-node-title-end"},"流程结束",-1),KH=[ZH];function JH(e,t,r,n,a,i){const o=v.resolveComponent("OcWorkflowCard"),s=v.resolveComponent("NButton"),l=v.resolveComponent("OcWorkflowNode"),u=v.resolveComponent("OcWorkflowAdd");return v.openBlock(!0),v.createElementBlock(v.Fragment,null,v.renderList(e.data,(c,f)=>(v.openBlock(),v.createElementBlock(v.Fragment,{key:c.key},[c.type===0?(v.openBlock(),v.createBlock(o,{data:c,key:f,"onUpdate:add":e.addStartOne},null,8,["data","onUpdate:add"])):v.createCommentVNode("",!0),c.type===2?(v.openBlock(),v.createBlock(o,{data:c,key:f,class:"arrow","onUpdate:add":d=>{e.addNodeOne(c,d)},"onUpdate:delete":d=>e.deleteNodeOne(f)},null,8,["data","onUpdate:add","onUpdate:delete"])):v.createCommentVNode("",!0),c.type===1?(v.openBlock(),v.createElementBlock("div",WH,[(v.openBlock(),v.createElementBlock("div",{class:"oc-workflow-branch",key:f},[v.createElementVNode("div",YH,[v.createVNode(s,{type:"success",onClick:d=>e.addCondition(c)},{default:v.withCtx(()=>[v.createTextVNode("添加条件")]),_:2},1032,["onClick"])]),v.createElementVNode("div",qH,[(v.openBlock(!0),v.createElementBlock(v.Fragment,null,v.renderList(c.children,(d,h)=>(v.openBlock(),v.createElementBlock("div",{key:`children-${h}`},[v.createVNode(o,{data:d,"onUpdate:add":p=>{e.addConditionSide(d,p)},"onUpdate:delete":p=>e.deleteConditionSide(c,h)},null,8,["data","onUpdate:add","onUpdate:delete"]),v.createVNode(l,{data:d.children},null,8,["data"])]))),128))])])),v.createElementVNode("div",jH,[v.createVNode(u,{"onUpdate:add":d=>{e.addConditionBottom(c,d)}},null,8,["onUpdate:add"])])])):v.createCommentVNode("",!0),c.type===99?(v.openBlock(),v.createElementBlock("div",XH,KH)):v.createCommentVNode("",!0)],64))),128)}const QH=X(UH,[["render",JH]]),eU=v.defineComponent({name:"OcWorkflow",components:{OcWorkflowNode:QH,NSlider:O.NSlider,NSelect:O.NSelect},props:{data:{type:Array,default:()=>[{title:"流程开始",type:0,key:"1",parentKey:"",children:[]},{title:"流程结束",type:99,key:"2",parentKey:"",children:[]}]}},setup(){const e=v.ref(1),t=v.ref(100),r=v.ref([{label:"50%",value:50},{label:"80%",value:80},{label:"100%",value:100},{label:"120%",value:120},{label:"150%",value:150}]);return{scaleShow:e,scaleFilter:t,scaleOption:r,scaleHandle:o=>{t.value=o,e.value=o/100},formatTooltip:o=>`${o}%`,renderSelectLabel:o=>v.h("div",{},{default:()=>`${o.value}%`})}}}),tU={class:"oc-workflow"},rU={class:"oc-workflow-tools"},nU={class:"oc-workflow-ctx"},aU={class:"oc-workflow-main"};function iU(e,t,r,n,a,i){const o=v.resolveComponent("NSelect"),s=v.resolveComponent("NSlider"),l=v.resolveComponent("OcWorkflowNode");return v.openBlock(),v.createElementBlock("div",tU,[v.createElementVNode("div",rU,[v.createVNode(o,{value:e.scaleFilter,"onUpdate:value":t[0]||(t[0]=u=>e.scaleFilter=u),options:e.scaleOption,"render-label":e.renderSelectLabel,"on-update:value":e.scaleHandle,style:{width:"100px"}},null,8,["value","options","render-label","on-update:value"]),v.createVNode(s,{value:e.scaleFilter,"onUpdate:value":t[1]||(t[1]=u=>e.scaleFilter=u),min:50,max:150,step:10,style:{width:"100px"},"on-update:value":e.scaleHandle,"format-tooltip":e.formatTooltip,class:"oc-workflow-slider"},null,8,["value","on-update:value","format-tooltip"])]),v.createElementVNode("div",nU,[v.createElementVNode("div",aU,[v.createElementVNode("div",{class:"oc-workflow-warp",style:v.normalizeStyle({transform:`scale(${e.scaleShow})`})},[v.createVNode(l,{data:e.data},null,8,["data"])],4)])])])}const dC=X(eU,[["render",iU]]),U0=Object.freeze(Object.defineProperty({__proto__:null,IconAdd:Ul,IconAlert:Wh,IconArrowClockwise:Wa,IconArrowDown:Jl,IconArrowSquareDown:jh,IconArrowUp:td,IconCalendarArrowDown:Mo,IconChevronLeft:qh,IconClear:Yh,IconCloudArrowDown:Zl,IconDelete:Zh,IconDismiss:cn,IconDrafts:Jh,IconEye:Xl,IconEyeOff:Kh,IconFilter:jl,IconFullScreenMaximize:Z0,IconGridDots:Xh,IconMailInboxAdd:ko,IconNavigation:Kl,IconPin:Qh,IconPinOff:ed,IconReset:rd,IconSearch:ql,IconUser:nd,IconWeatherMoon:Wl,IconWeatherSunny:Yl,OcActionButton:X0,OcAuth:e_,OcBack:t_,OcCircle:r_,OcEcharts:xS,OcError:TS,OcFooter:NS,OcForm:ZS,OcHeader:eC,OcImporter:Hv,OcLogin:rC,OcLogo:nC,OcMain:oC,OcMy:sC,OcNumberRoll:Uv,OcReport:lC,OcScan:uC,OcSearchBar:Wv,OcSkeleton:cC,OcTable:fC,OcWorkflow:dC,commonStore:oe,fnClearUser:zu,fnDownload:Fv,fnGetUser:Fu,fnRenderAction:pn,fnSetLang:Ya,fnSetTheme:Lo,fnSetUser:zv,fnUserLogout:Gv,i18n:yt,userStore:$},Symbol.toStringTag,{value:"Module"}));var oU=rr,sU=function(){return oU.Date.now()},lU=sU,uU=/\s/;function cU(e){for(var t=e.length;t--&&uU.test(e.charAt(t)););return t}var fU=cU,hU=fU,dU=/^\s+/;function vU(e){return e&&e.slice(0,hU(e)+1).replace(dU,"")}var pU=vU,gU=zo,mU=di,yU="[object Symbol]";function _U(e){return typeof e=="symbol"||mU(e)&&gU(e)==yU}var wU=_U,bU=pU,W0=la,SU=wU,Y0=NaN,CU=/^[-+]0x[0-9a-f]+$/i,xU=/^0b[01]+$/i,TU=/^0o[0-7]+$/i,NU=parseInt;function DU(e){if(typeof e=="number")return e;if(SU(e))return Y0;if(W0(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=W0(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=bU(e);var r=xU.test(e);return r||TU.test(e)?NU(e.slice(2),r?2:8):CU.test(e)?Y0:+e}var AU=DU,MU=la,Pf=lU,q0=AU,kU="Expected a function",EU=Math.max,PU=Math.min;function IU(e,t,r){var n,a,i,o,s,l,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(kU);t=q0(t)||0,MU(r)&&(c=!!r.leading,f="maxWait"in r,i=f?EU(q0(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d);function h(C){var T=n,b=a;return n=a=void 0,u=C,o=e.apply(b,T),o}function p(C){return u=C,s=setTimeout(y,t),c?h(C):o}function m(C){var T=C-l,b=C-u,D=t-T;return f?PU(D,i-b):D}function g(C){var T=C-l,b=C-u;return l===void 0||T>=t||T<0||f&&b>=i}function y(){var C=Pf();if(g(C))return w(C);s=setTimeout(y,m(C))}function w(C){return s=void 0,d&&n?h(C):(n=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,n=l=a=s=void 0}function S(){return s===void 0?o:w(Pf())}function x(){var C=Pf(),T=g(C);if(n=arguments,a=this,l=C,T){if(s===void 0)return p(l);if(f)return clearTimeout(s),s=setTimeout(y,t),h(l)}return s===void 0&&(s=setTimeout(y,t)),o}return x.cancel=_,x.flush=S,x}var LU=IU;const OU=DS(LU);let Yv=3840,qv=2160;const vC=v.reactive({scale:1});function RU(e,t){Yv=e,qv=t}function pC(){let e=1;const t=window.innerWidth,r=window.innerHeight,n=Yv,a=qv,i=parseFloat((n/a).toFixed(5));if(parseFloat((t/r).toFixed(5))>i){const s=parseFloat((r*i/n).toFixed(5));e=s>1?1:s}else{const s=parseFloat((t/i/a).toFixed(5));e=s>1?1:s}vC.scale=e}function BU(){const e=OU(pC,200);return e(),window.addEventListener("resize",e),()=>{Yv=3840,qv=2160,window.removeEventListener("resize",e)}}const VU=e=>!!($.kind===-1||$.kind===99||$.iot_menu_authorization.includes(e)),$U=e=>$.platform_tdm?$.kind===-1||$.kind===99||e==="home"?!0:$.tdm_menu_authorization.includes(e):!1,FU=e=>$.platform_qms?$.kind===-1||$.kind===99||e==="home"?!0:$.qms_menu_authorization.includes(e):!1,zU=e=>$.platform_twin?($.kind===-1||$.kind===99||e==="home",!0):!1,GU=e=>!!($.kind===-1||$.kind===99||$.maintain_menu_authorization.includes(e)),HU=e=>!!($.kind===-1||$.kind===99||$.order_menu_authorization.includes(e));let Ks="";const me=navigator.userAgent.toLocaleUpperCase(),UU=()=>{const e=/WINDOWS NT 5.[\d]+/,t=/WINDOWS NT 6.[\d]+/,r=/WINDOWS NT 7.[\d]+/,n=/WINDOWS NT 10.[\d]+/,a=/WINDOWS NT 11.[\d]+/,i=/ANDROID [\d.]+/,o=/IPHONE/,s=/IPAD/,l=/MAC/;if(e.test(me))return"Windows XP";if(t.test(me))return"Windows 7";if(r.test(me))return"Windows 8";if(n.test(me))return"Windows 10";if(a.test(me))return"Windows 11";if(i.test(me)){const u=i.exec(me);return`Android ${u?u[0].split(" ")[1]:""}`}if(o.test(me)){const c=/OS [\d_]+/.exec(me);return`iPhone ${c?c[0].split(" ")[1].replace(/_/g,"."):""}`}if(s.test(me)){const c=/OS [\d_]+/.exec(me);return`iPad${c?c[0].split(" ")[1].replace(/_/g,"."):""}`}if(l.test(me)){const c=/ [\d_]+/.exec(me);return`MAC ${c?c[0].replace(/_/g,".").replace(/ /g,""):""}`}return"Other Platform"},WU=()=>{const e=/MSIE [\d]+/,t=/EDG\/[\d.]+/,r=/FIREFOX\/[\d.]+/,n=/CHROME\/[\d.]+/,a=/SAFARI\/[\d.]+/,i=/OPR\/[\d.]+/,o=/SE \d/,s=/UCBROWSER/,l=/ANDROID [\d.]+/;if(e.test(me)&&o.test(me))return"SogouIE";if(o.test(me))return"SogouFast";if(s.test(me))return"UC";if(l.test(me))return"Android";if(i.test(me))return"Opera";if(e.test(me)){const u=e.exec(me);return`IE ${u?u[0].split("/")[1]:""}`}if(t.test(me)){const u=t.exec(me);return`Edge ${u?u[0].split("/")[1]:""}`}if(n.test(me)){const u=n.exec(me);return`Chrome ${u?u[0].split("/")[1]:""}`}if(r.test(me)){const u=r.exec(me);return`Firefox ${u?u[0].split("/")[1]:""}`}if(a.test(me)){const u=a.exec(me);return`Safari ${u?u[0].split("/")[1]:""}`}return"Others"};function j0(e,t,r,n=!1){if(e!==void 0&&(t in e||n)){const a=e[t],i=r(a);typeof i=="function"&&(e[t]=i)}}function YU(e,t,r,n=!1){e.addEventListener(t,r,n)}function qU(){if(!("XMLHttpRequest"in window))return;const e=XMLHttpRequest.prototype;j0(e,"open",t=>function(...r){this.xhr={method:r[0].toUpperCase(),url:r[1],startTime:Date.now(),type:"xhr"},t.apply(this,r)}),j0(e,"send",t=>function(...r){const{url:n}=this.xhr;this.ontimeout=function(){vo(3,n,"Network Timeout")},YU(this,"loadend",function(){try{!JSON.parse(this.response).ok&&this.status===200&&$.userId&&vo(3,n,`${r[0]}-${this.status}-${this.response}`),(this.status===500||this.status===405)&&vo(3,n,`${r[0]}-${this.status}-${this.response}`)}catch{}}),t.apply(this,r)})}function jU(e,t){Ks=typeof t=="string"?t:Ks,!(!t||!Ks)&&(qU(),window.addEventListener("error",function(r){vo(1,window.location.href,r)}),window.addEventListener("unhandledrejection",function(r){r.preventDefault()}),e.config.errorHandler=r=>{vo(2,window.location.href,r)})}const vo=(e,t,r)=>{if(!$.userId||e===2&&(r.indexOf("ResizeObserver")>-1||r.message.indexOf("ResizeObserver")>-1))return;const n={type:e,time:Date.now(),key:"c604902e-4088-4c64-bc73-edfbc971805b",url:encodeURIComponent(t||location.href),title:document.title,browser:WU(),platform:UU(),system:oe.platformName,message:e===1||e===2?r.message:r,user:{userId:$.userId,name:$.name,factoryId:$.factoryId,systemType:$.systemType,tenantLoginCode:$.tenantLoginCode,tenantName:$.tenantName,tenantStatus:$.tenantStatus,userAgent:me}},a=Jr(n),i=document.body;let o=new Image;o.src=Ks+"?data="+a,o.onload=o.onerror=function(){i.removeChild(o),o=null},i.append(o),e!==3&&console.error(r)};let gC;async function mC(){const e=await fetch(`${window.location.protocol}//${window.location.host}`,{method:"HEAD",cache:"no-cache"});return e.headers.get("etag")||e.headers.get("last-modified")}async function XU(){const e=await mC();gC!==e&&dT(!0)}async function ZU(){gC=await mC(),window.versionMonitor&&clearInterval(window.versionMonitor),window.versionMonitor=setInterval(()=>{XU()},60*1e3)}function yC({components:e=[]}={}){const t=[];function r(a,i,o){a.component(i)||a.component(i,o)}function n(a,i){if(!t.includes(a)&&(t.push(a),e.forEach(o=>{const{name:s,alias:l}=o;r(a,s,o),l&&l.forEach(u=>{r(a,u,o)})}),i)){const{platform:o="iot",monitor:s=!1,versionMonitor:l=!0,enableRedirect:u=!0,language:c=!1,local:f="zh-CN"}=i,d=Et("theme",!1),h=Et("lang",f);hT(o),qG(u),fT(c),Ya(h),Lo(d),yt.global.locale.value=h,l&&ZU(),s&&jU(a,s)}}return{version:J0,install:n}}const _C=yC({components:Object.keys(U0).map(e=>U0[e])}),KU=_C.install;exports.CUSTOM=BG;exports.FILE=$v;exports.GET=JS;exports.IconAdd=Ul;exports.IconAlert=Wh;exports.IconArrowClockwise=Wa;exports.IconArrowDown=Jl;exports.IconArrowSquareDown=jh;exports.IconArrowUp=td;exports.IconCalendarArrowDown=Mo;exports.IconChevronLeft=qh;exports.IconClear=Yh;exports.IconCloudArrowDown=Zl;exports.IconDelete=Zh;exports.IconDismiss=cn;exports.IconDrafts=Jh;exports.IconEye=Xl;exports.IconEyeOff=Kh;exports.IconFilter=jl;exports.IconFullScreenMaximize=Z0;exports.IconGridDots=Xh;exports.IconMailInboxAdd=ko;exports.IconNavigation=Kl;exports.IconPin=Qh;exports.IconPinOff=ed;exports.IconReset=rd;exports.IconSearch=ql;exports.IconUser=nd;exports.IconWeatherMoon=Wl;exports.IconWeatherSunny=Yl;exports.OcActionButton=X0;exports.OcAuth=e_;exports.OcBack=t_;exports.OcCircle=r_;exports.OcEcharts=xS;exports.OcError=TS;exports.OcFooter=NS;exports.OcForm=ZS;exports.OcHeader=eC;exports.OcImporter=Hv;exports.OcLogin=rC;exports.OcLogo=nC;exports.OcMain=oC;exports.OcMy=sC;exports.OcNumberRoll=Uv;exports.OcReport=lC;exports.OcScan=uC;exports.OcSearchBar=Wv;exports.OcSkeleton=cC;exports.OcTable=fC;exports.OcWorkflow=dC;exports.POST=ut;exports.commonStore=oe;exports.create=yC;exports.darkTheme=iC;exports.default=_C;exports.fnCancelFetch=RG;exports.fnCheckDashRole=zU;exports.fnCheckIoTRole=VU;exports.fnCheckMaintainRole=GU;exports.fnCheckOrderRole=HU;exports.fnCheckQMSRole=FU;exports.fnCheckTDMRole=$U;exports.fnClearUser=zu;exports.fnComputedScale=pC;exports.fnDecodeCursor=po;exports.fnDelStorage=Eo;exports.fnDeleteLoad=K0;exports.fnDownload=Fv;exports.fnEncodeCursor=Jr;exports.fnFormatTime=Tr;exports.fnFormatUnits=sT;exports.fnFullScreen=oT;exports.fnGetStorage=Et;exports.fnGetUser=Fu;exports.fnListenerScale=BU;exports.fnPageModel2Naive=Po;exports.fnPageNaive2Model=Io;exports.fnRenderAction=pn;exports.fnScrollTop=Js;exports.fnSetLang=Ya;exports.fnSetNormalWidthAndHeight=RU;exports.fnSetStorage=Yt;exports.fnSetTheme=Lo;exports.fnSetUser=zv;exports.fnThrottle=iT;exports.fnUserLogout=Gv;exports.getDefaultDate=Ea;exports.i18n=yt;exports.install=KU;exports.lightTheme=aC;exports.scaleStore=vC;exports.userStore=$;
43
+ `:"<br/>",y=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,a){var i=this._ecModel,o=de(n),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,p=r.positionDefault,m=Ri([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=m.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(c,f),w=new Vc;y.marker=w.makeTooltipMarker("item",Jn(y.color),h);var _=Yg(u.formatTooltip(c,!1,f)),S=m.get("order"),x=m.get("valueFormatter"),C=_.frag,T=C?Kg(x?G({valueFormatter:x},C):C,w,h,S,i.get("useUTC"),m.get("textStyle")):_.text,b="item_"+u.name+"_"+c;this._showOrMove(m,function(){this._showTooltipContent(m,T,y,b,r.offsetX,r.offsetY,r.position,r.target,w)}),a({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,a){var i=de(n),o=i.tooltipConfig,s=o.option||{};if(j(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(i.componentMainType,i.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=r.positionDefault,d=Ri(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),p=Math.random()+"",m=new Vc;this._showOrMove(d,function(){var g=ue(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,p,r.offsetX,r.offsetY,r.position,n,m)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,a,i,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var h=n,p=this._getNearestPoint([o,s],a,r.get("trigger"),r.get("borderColor")),m=p.color;if(d)if(j(d)){var g=r.ecModel.get("useUTC"),y=U(a)?a[0]:a,w=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=d,w&&(h=gu(y.axisValue,h,g)),h=J1(h,a,!0)}else if(ie(d)){var _=Q(function(S,x){S===this._ticket&&(f.setContent(x,c,r,m,l),this._updatePosition(r,l,o,s,f,a,u))},this);this._ticket=i,h=d(a,i,_)}else h=d;f.setContent(h,c,r,m,l),f.show(r,m),this._updatePosition(r,l,o,s,f,a,u)}},t.prototype._getNearestPoint=function(r,n,a,i){if(a==="axis"||U(n))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!U(n))return{color:i||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,a,i,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),d=r.get("align"),h=r.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),ie(n)&&(n=n([a,i],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),U(n))a=Ce(n[0],u),i=Ce(n[1],c);else if(K(n)){var m=n;m.width=f[0],m.height=f[1];var g=Qn(m,{width:u,height:c});a=g.x,i=g.y,d=null,h=null}else if(j(n)&&l){var y=NB(n,p,f,r.get("borderWidth"));a=y[0],i=y[1]}else{var y=xB(a,i,o,u,c,d?null:20,h?null:20);a=y[0],i=y[1]}if(d&&(a-=i0(d)?f[0]/2:d==="right"?f[0]:0),h&&(i-=i0(h)?f[1]/2:h==="bottom"?f[1]:0),vS(r)){var y=TB(a,i,o,u,c);a=y[0],i=y[1]}o.moveTo(a,i)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var a=this._lastDataByCoordSys,i=this._cbParamsList,o=!!a&&a.length===r.length;return o&&k(a,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&k(u,function(d,h){var p=f[h]||{},m=d.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&d.value===p.value&&d.axisType===p.axisType&&d.axisId===p.axisId&&m.length===g.length,o&&k(m,function(y,w){var _=g[w];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&k(d.seriesDataIndices,function(y){var w=y.seriesIndex,_=n[w],S=i[w];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){re.node||!n.getDom()||(Cl(this,"_updatePosition"),this._tooltipContent.dispose(),Ih("itemTooltip",n))},t.type="tooltip",t}(Zt);function Ri(e,t,r){var n=t.ecModel,a;r?(a=new Qe(r,n,n),a=new Qe(t.option,a,n)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof Qe&&(o=o.get("tooltip",!0)),j(o)&&(o={formatter:o}),o&&(a=new Qe(o,a,n)))}return a}function a0(e,t){return e.dispatchAction||Q(t.dispatchAction,t)}function xB(e,t,r,n,a,i,o){var s=r.getSize(),l=s[0],u=s[1];return i!=null&&(e+l+i+2>n?e-=l+i:e+=i),o!=null&&(t+u+o>a?t-=u+o:t+=o),[e,t]}function TB(e,t,r,n,a){var i=r.getSize(),o=i[0],s=i[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,a)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function NB(e,t,r,n){var a=r[0],i=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-a/2,l=t.y+c/2-i/2;break;case"top":s=t.x+u/2-a/2,l=t.y-i-o;break;case"bottom":s=t.x+u/2-a/2,l=t.y+c+o;break;case"left":s=t.x-a-o,l=t.y+c/2-i/2;break;case"right":s=t.x+u+o,l=t.y+c/2-i/2}return[s,l]}function i0(e){return e==="center"||e==="middle"}function DB(e,t,r){var n=Sd(e).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Ro(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),o=i.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=de(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const AB=CB;function MB(e){gr(cS),e.registerComponentModel(uB),e.registerComponentView(AB),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ot),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ot)}var kB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Se),EB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){if(this.group.removeAll(),!!r.get("show")){var i=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=ne(r.get("textBaseline"),r.get("textVerticalAlign")),c=new He({style:Xt(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),h=new He({style:Xt(s,{text:d,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),p=r.get("link"),m=r.get("sublink"),g=r.get("triggerEvent",!0);c.silent=!p&&!g,h.silent=!m&&!g,p&&c.on("click",function(){Ag(p,"_"+r.get("target"))}),m&&h.on("click",function(){Ag(m,"_"+r.get("subtarget"))}),de(c).eventData=de(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,i.add(c),d&&i.add(h);var y=i.getBoundingRect(),w=r.getBoxLayoutParams();w.width=y.width,w.height=y.height;var _=Qn(w,{width:a.getWidth(),height:a.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),i.x=_.x,i.y=_.y,i.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),y=i.getBoundingRect();var x=_.margin,C=r.getItemStyle(["color","opacity"]);C.fill=r.get("backgroundColor");var T=new ke({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:r.get("borderRadius")},style:C,subPixelOptimize:!0,silent:!0});i.add(T)}},t.type="title",t}(Zt);function PB(e){e.registerComponentModel(kB),e.registerComponentView(EB)}function IB(e,t){if(!e)return!1;for(var r=U(e)?e:[e],n=0;n<r.length;n++)if(r[n]&&r[n][t])return!0;return!1}function ks(e){cl(e,"label",["show"])}var Es=Ne(),yS=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.createdBySelf=!1,r}return t.prototype.init=function(r,n,a){if(process.env.NODE_ENV!=="production"&&this.type==="marker")throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(r,a),this._mergeOption(r,a,!1,!0)},t.prototype.isAnimationEnabled=function(){if(re.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},t.prototype.mergeOption=function(r,n){this._mergeOption(r,n,!1,!1)},t.prototype._mergeOption=function(r,n,a,i){var o=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Es(s)[o];if(!l||!l.data){Es(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&ks(l),k(l.data,function(c){c instanceof Array?(ks(c[0]),ks(c[1])):ks(c)}),u=this.createMarkerModelFromSeries(l,this,n),G(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Es(s)[o]=u},this)},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r);return ea("section",{header:this.name,blocks:[ea("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(r){this._data=r},t.getMarkerModelFromSeries=function(r,n){return Es(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Se);Jt(yS,dw.prototype);const Vl=yS;function LB(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function OB(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function Ps(e,t,r,n,a,i){var o=[],s=ta(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=Tv(t,l,e),c=t.indicesOfNearest(l,u)[0];o[a]=t.get(r,c),o[i]=t.get(l,c);var f=t.get(n,c),d=hr(t.get(n,c));return d=Math.min(d,20),d>=0&&(o[i]=+o[i].toFixed(d)),[o,f]}var wf={min:be(Ps,"min"),max:be(Ps,"max"),average:be(Ps,"average"),median:be(Ps,"median")};function o0(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,a=n&&n.dimensions;if(!OB(t)&&!U(t.coord)&&U(a)){var i=_S(t,r,n,e);if(t=ue(t),t.type&&wf[t.type]&&i.baseAxis&&i.valueAxis){var o=ce(a,i.baseAxis.dim),s=ce(a,i.valueAxis.dim),l=wf[t.type](r,i.baseDataDim,i.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!U(a))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)wf[u[c]]&&(u[c]=Tv(r,r.mapDimension(a[c]),u[c]));return t}}function _S(e,t,r,n){var a={};return e.valueIndex!=null||e.valueDim!=null?(a.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,a.valueAxis=r.getAxis(RB(n,a.valueDataDim)),a.baseAxis=r.getOtherAxis(a.valueAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim)):(a.baseAxis=n.getBaseAxis(),a.valueAxis=r.getOtherAxis(a.baseAxis),a.baseDataDim=t.mapDimension(a.baseAxis.dim),a.valueDataDim=t.mapDimension(a.valueAxis.dim)),a}function RB(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function s0(e,t){return e&&e.containData&&t.coord&&!LB(t)?e.containData(t.coord):!0}function BB(e,t){return e?function(r,n,a,i){var o=i<2?r.coord&&r.coord[i]:r.value;return Ha(o,t[i])}:function(r,n,a,i){return Ha(r.value,t[i])}}function Tv(e,t,r){if(r==="average"){var n=0,a=0;return e.each(t,function(i,o){isNaN(i)||(n+=i,a++)}),n/a}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var bf=Ne(),VB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=ae()},t.prototype.render=function(r,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){bf(s).keep=!1}),n.eachSeries(function(s){var l=Vl.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!bf(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(r){bf(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var a=this;k(r,function(i){var o=Vl.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?o1(l):Dd(l))})}})},t.type="marker",t}(Zt);const $B=VB;var FB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Vl);const zB=FB;var Is=Ne(),GB=function(e,t,r,n){var a=e.getData(),i;if(U(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=fn(n.yAxis,n.xAxis);else{var u=_S(n,a,t,e);s=u.valueAxis;var c=ob(a,u.valueDataDim);l=Tv(a,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=ue(n),p={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,p.coord[d]=1/0;var m=r.get("precision");m>=0&&xe(l)&&(l=+l.toFixed(Math.min(m,20))),h.coord[f]=p.coord[f]=l,i=[h,p,{type:o,valueIndex:n.valueIndex,value:l}]}else process.env.NODE_ENV!=="production"&&on("Invalid markLine data."),i=[]}var g=[o0(e,i[0]),o0(e,i[1]),G({},i[2])];return g[2].type=g[2].type||null,ve(g[2],g[0]),ve(g[2],g[1]),g};function $l(e){return!isNaN(e)&&!isFinite(e)}function l0(e,t,r,n){var a=1-e,i=n.dimensions[e];return $l(t[a])&&$l(r[a])&&t[e]===r[e]&&n.getAxis(i).containData(t[e])}function HB(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(l0(1,r,n,e)||l0(0,r,n,e)))return!0}return s0(e,t[0])&&s0(e,t[1])}function Sf(e,t,r,n,a){var i=n.coordinateSystem,o=e.getItemModel(t),s,l=Ce(o.get("x"),a.getWidth()),u=Ce(o.get("y"),a.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=i.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=i.dataToPoint([f,d])}if(Iu(i,"cartesian2d")){var h=i.getAxis("x"),p=i.getAxis("y"),c=i.dimensions;$l(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):$l(e.get(c[1],t))&&(s[1]=p.toGlobalCoord(p.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var UB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=Vl.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Is(o).from,u=Is(o).to;l.each(function(c){Sf(l,c,!0,i,a),Sf(u,c,!1,i,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(i.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,a,i){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new IO);this.group.add(c.group);var f=WB(o,r,n),d=f.from,h=f.to,p=f.line;Is(n).from=d,Is(n).to=h,n.setData(p);var m=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),w=n.get("symbolOffset");U(m)||(m=[m,m]),U(g)||(g=[g,g]),U(y)||(y=[y,y]),U(w)||(w=[w,w]),f.from.each(function(S){_(d,S,!0),_(h,S,!1)}),p.each(function(S){var x=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[d.getItemLayout(S),h.getItemLayout(S)]),x.stroke==null&&(x.stroke=d.getItemVisual(S,"style").fill),p.setItemVisual(S,{fromSymbolKeepAspect:d.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(S,"symbolOffset"),fromSymbolRotate:d.getItemVisual(S,"symbolRotate"),fromSymbolSize:d.getItemVisual(S,"symbolSize"),fromSymbol:d.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:x})}),c.updateData(p),f.line.eachItemGraphicEl(function(S){de(S).dataModel=n,S.traverse(function(x){de(x).dataModel=n})});function _(S,x,C){var T=S.getItemModel(x);Sf(S,x,C,r,i);var b=T.getModel("itemStyle").getItemStyle();b.fill==null&&(b.fill=Ew(l,"color")),S.setItemVisual(x,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:ne(T.get("symbolOffset",!0),w[C?0:1]),symbolRotate:ne(T.get("symbolRotate",!0),y[C?0:1]),symbolSize:ne(T.get("symbolSize"),g[C?0:1]),symbol:ne(T.get("symbol",!0),m[C?0:1]),style:b})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}($B);function WB(e,t,r){var n;e?n=q(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return G(G({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new fo(n,r),i=new fo(n,r),o=new fo([],r),s=q(r.get("data"),be(GB,t,e,r));e&&(s=qe(s,be(HB,e)));var l=BB(!!e,n);return a.initData(q(s,function(u){return u[0]}),null,l),i.initData(q(s,function(u){return u[1]}),null,l),o.initData(q(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const YB=UB;function qB(e){e.registerComponentModel(zB),e.registerComponentView(YB),e.registerPreprocessor(function(t){IB(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var jB=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},XB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,a=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),U(n)&&k(n,function(i,o){j(i)&&(i={type:i}),n[o]=ve(i,jB(a,i.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,a=0;a<r.length;a++){var i=r[a].get("name");if(this.isSelected(i)){this.select(i),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],a=[];r.eachRawSeries(function(l){var u=l.name;a.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();r.isSeriesFiltered(l)||(a=a.concat(d)),d.length?n=n.concat(d):c=!0}else c=!0;c&&bd(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=ae(),s=q(i,function(l){return(j(l)||xe(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Qe(l,this,this.ecModel))},this);this._data=qe(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,a=this.get("selectedMode");if(a==="single"){var i=this._data;k(i,function(o){n[o.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;k(r,function(a){n[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;k(r,function(a){var i=a.get("name",!0);n.hasOwnProperty(i)||(n[i]=!0),n[i]=!n[i]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&ce(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(Se);const Lh=XB;var Da=be,Oh=k,Ls=Ie,ZB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new Ls),this.group.add(this._selectorGroup=new Ls),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,a){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,a,l,s,u);var c=r.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},d=r.get("padding"),h=Qn(c,f,d),p=this.layoutInner(r,o,h,i,l,u),m=Qn(he({width:p.width,height:p.height},c),f,d);this.group.x=m.x-p.x,this.group.y=m.y-p.y,this.group.markRedraw(),this.group.add(this._backgroundEl=sB(p,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this.getContentGroup(),c=ae(),f=n.get("selectedMode"),d=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),Oh(n.getData(),function(h,p){var m=h.get("name");if(!this.newlineDisabled&&(m===""||m===`
44
+ `)){var g=new Ls;g.newline=!0,u.add(g);return}var y=a.getSeriesByName(m)[0];if(!c.get(m)){if(y){var w=y.getData(),_=w.getVisual("legendLineStyle")||{},S=w.getVisual("legendIcon"),x=w.getVisual("style"),C=this._createItem(y,m,p,h,n,r,_,x,S,f,i);C.on("click",Da(u0,m,null,i,d)).on("mouseover",Da(Rh,y.name,null,i,d)).on("mouseout",Da(Bh,y.name,null,i,d)),a.ssr&&C.eachChild(function(T){var b=de(T);b.seriesIndex=y.seriesIndex,b.dataIndex=p,b.ssrType="legend"}),c.set(m,!0)}else a.eachRawSeries(function(T){if(!c.get(m)&&T.legendVisualProvider){var b=T.legendVisualProvider;if(!b.containName(m))return;var D=b.indexOfName(m),N=b.getItemVisual(D,"style"),A=b.getItemVisual(D,"legendIcon"),M=Mr(N.fill);M&&M[3]===0&&(M[3]=.2,N=G(G({},N),{fill:ru(M,"rgba")}));var I=this._createItem(T,m,p,h,n,r,{},N,A,f,i);I.on("click",Da(u0,null,m,i,d)).on("mouseover",Da(Rh,null,m,i,d)).on("mouseout",Da(Bh,null,m,i,d)),a.ssr&&I.eachChild(function(P){var L=de(P);L.seriesIndex=T.seriesIndex,L.dataIndex=p,L.ssrType="legend"}),c.set(m,!0)}},this);process.env.NODE_ENV!=="production"&&(c.get(m)||console.warn(m+" series not exists. Legend data should be same with series name or data name."))}},this),o&&this._createSelector(o,n,i,s,l)},t.prototype._createSelector=function(r,n,a,i,o){var s=this.getSelectorGroup();Oh(r,function(u){var c=u.type,f=new He({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);oi(f,{normal:d,emphasis:h},{defaultText:u.title}),hl(f)})},t.prototype._createItem=function(r,n,a,i,o,s,l,u,c,f,d){var h=r.visualDrawType,p=o.get("itemWidth"),m=o.get("itemHeight"),g=o.isSelected(n),y=i.get("symbolRotate"),w=i.get("symbolKeepAspect"),_=i.get("icon");c=_||c||"roundRect";var S=KB(c,i,l,u,h,g,d),x=new Ls,C=i.getModel("textStyle");if(ie(r.getLegendIcon)&&(!_||_==="inherit"))x.add(r.getLegendIcon({itemWidth:p,itemHeight:m,icon:c,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:w}));else{var T=_==="inherit"&&r.getData().getVisual("symbol")?y==="inherit"?r.getData().getVisual("symbolRotate"):y:0;x.add(JB({itemWidth:p,itemHeight:m,icon:c,iconRotate:T,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:w}))}var b=s==="left"?p+5:-5,D=s,N=o.get("formatter"),A=n;j(N)&&N?A=N.replace("{name}",n??""):ie(N)&&(A=N(n));var M=g?C.getTextColor():i.get("inactiveColor");x.add(new He({style:Xt(C,{text:A,x:b,y:m/2,fill:M,align:D,verticalAlign:"middle"},{inheritColor:M})}));var I=new ke({shape:x.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&Bd({el:I,componentModel:o,itemName:n,itemTooltipOption:P.option}),x.add(I),x.eachChild(function(L){L.silent=!0}),I.silent=!f,this.getContentGroup().add(x),hl(x),x.__legendDataIndex=a,x},t.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();so(r.get("orient"),l,r.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){so("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],p=r.get("selectorButtonGap",!0),m=r.getOrient().index,g=m===0?"width":"height",y=m===0?"height":"width",w=m===0?"y":"x";s==="end"?h[m]+=c[g]+p:f[m]+=d[g]+p,h[1-m]+=c[y]/2-d[y]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[g]=c[g]+p+d[g],_[y]=Math.max(c[y],d[y]),_[w]=Math.min(0,d[w]+h[1-m]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Zt);function KB(e,t,r,n,a,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Oh(g,function(w,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:Al(f,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!i){var p=t.get("inactiveBorderWidth"),m=u[c];u.lineWidth=p==="auto"?n.lineWidth>0&&m?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function JB(e){var t=e.icon||"roundRect",r=Br(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function u0(e,t,r,n){Bh(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),Rh(e,t,r,n)}function wS(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,a=t.length;n<a&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function Rh(e,t,r,n){wS(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function Bh(e,t,r,n){wS(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}const bS=ZB;function QB(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function Bi(e,t,r){var n={},a=e==="toggleSelected",i;return r.eachComponent("legend",function(o){a&&i!=null?o[i?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),i=o.isSelected(t.name));var s=o.getData();k(s,function(l){var u=l.get("name");if(!(u===`
45
+ `||u==="")){var c=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&c:n[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function eV(e){e.registerAction("legendToggleSelect","legendselectchanged",be(Bi,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",be(Bi,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",be(Bi,"inverseSelect")),e.registerAction("legendSelect","legendselected",be(Bi,"select")),e.registerAction("legendUnSelect","legendunselected",be(Bi,"unSelect"))}function SS(e){e.registerComponentModel(Lh),e.registerComponentView(bS),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,QB),e.registerSubTypeDefaulter("legend",function(){return"plain"}),eV(e)}var tV=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,a){var i=Bo(r);e.prototype.init.call(this,r,n,a),c0(this,r,i)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),c0(this,this.option,r)},t.type="legend.scroll",t.defaultOption=pu(Lh.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(Lh);function c0(e,t,r){var n=e.getOrient(),a=[1,1];a[n.index]=0,Ja(t,r,{type:"box",ignoreSize:!!a})}const rV=tV;var f0=Ie,Cf=["width","height"],xf=["x","y"],nV=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new f0),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new f0)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,a,i,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,a,i,o,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),d=U(f)?f:[f,f];p("pagePrev",0);var h=n.getModel("pageTextStyle");c.add(new He({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(m,g){var y=m+"DataIndex",w=Rd(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:Q(u._pageGo,u,y,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});w.name=m,c.add(w)}},t.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=Cf[u],f=xf[u],d=Cf[1-u],h=xf[1-u];o&&so("horizontal",l,r.get("selectorItemGap",!0));var p=r.get("selectorButtonGap",!0),m=l.getBoundingRect(),g=[-m.x,-m.y],y=ue(a);o&&(y[c]=a[c]-m[c]-p);var w=this._layoutContentAndController(r,i,y,u,c,d,h,f);if(o){if(s==="end")g[u]+=w[c]+p;else{var _=m[c]+p;g[u]-=_,w[f]-=_}w[c]+=m[c]+p,g[1-u]+=w[h]+w[d]/2-m[d]/2,w[d]=Math.max(w[d],m[d]),w[h]=Math.min(w[h],m[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return w},t.prototype._layoutContentAndController=function(r,n,a,i,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;so(r.get("orient"),c,r.get("itemGap"),i?a.width:null,i?null:a.height),so("horizontal",d,r.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),p=d.getBoundingRect(),m=this._showController=h[o]>a[o],g=[-h.x,-h.y];n||(g[i]=c[u]);var y=[0,0],w=[-p.x,-p.y],_=ne(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(m){var S=r.get("pageButtonPosition",!0);S==="end"?w[i]+=a[o]-p[o]:y[i]+=p[o]+_}w[1-i]+=h[s]/2-p[s]/2,c.setPosition(g),f.setPosition(y),d.setPosition(w);var x={x:0,y:0};if(x[o]=m?a[o]:h[o],x[s]=Math.max(h[s],p[s]),x[l]=Math.min(0,p[l]+w[1-i]),f.__rectSize=a[o],m){var C={x:0,y:0};C[o]=Math.max(a[o]-p[o]-_,0),C[s]=x[s],f.setClipPath(new ke({shape:C})),f.__rectSize=C[o]}else d.eachChild(function(b){b.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(r);return T.pageIndex!=null&&tt(c,{x:T.contentPosition[0],y:T.contentPosition[1]},m?r:null),this._updatePageInfoView(r,T),x},t.prototype._pageGo=function(r,n,a){var i=this._getPageInfo(n)[r];i!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var a=this._controllerGroup;k(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,h=a.childOfName(c);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var i=a.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;i&&o&&i.setStyle("text",j(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),a=this.getContentGroup(),i=this._containerGroup.__rectSize,o=r.getOrient().index,s=Cf[o],l=xf[o],u=this._findTargetItemIndex(n),c=a.children(),f=c[u],d=c.length,h=d?1:0,p={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return p;var m=S(f);p.contentPosition[o]=-m.s;for(var g=u+1,y=m,w=m,_=null;g<=d;++g)_=S(c[g]),(!_&&w.e>y.s+i||_&&!x(_,y.s))&&(w.i>y.i?y=w:y=_,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),w=_;for(var g=u-1,y=m,w=m,_=null;g>=-1;--g)_=S(c[g]),(!_||!x(w,_.s))&&y.i<w.i&&(w=y,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=_;return p;function S(C){if(C){var T=C.getBoundingRect(),b=T[l]+C[l];return{s:b,e:b+T[s],i:C.__legendDataIndex}}}function x(C,T){return C.e>=T&&C.s<=T+i}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,a=this.getContentGroup(),i;return a.eachChild(function(o,s){var l=o.__legendDataIndex;i==null&&l!=null&&(i=s),l===r&&(n=s)}),n??i},t.type="legend.scroll",t}(bS);const aV=nV;function iV(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(a){a.setScrollDataIndex(n)})})}function oV(e){gr(SS),e.registerComponentModel(rV),e.registerComponentView(aV),iV(e)}function sV(e){gr(SS),gr(oV)}var lV=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=pu(Bl.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Bl);const uV=lV;var Nv=Ne();function cV(e,t,r){Nv(e).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=r)})}function fV(e,t){for(var r=Nv(e).coordSysRecordMap,n=r.keys(),a=0;a<n.length;a++){var i=n[a],o=r.get(i),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||CS(r,o))}}}function CS(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function hV(e,t){var r={model:t,containsPoint:be(vV,t),dispatchAction:be(dV,e),dataZoomInfoMap:null,controller:null},n=r.controller=new NO(e.getZr());return k(["pan","zoom","scrollMove"],function(a){n.on(a,function(i){var o=[];r.dataZoomInfoMap.each(function(s){if(i.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,i);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&r.dispatchAction(o)})}),r}function dV(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function vV(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function pV(e){var t,r="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return e.each(function(i){var o=i.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[r+s]>n[r+t]&&(t=s),a=a&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function gV(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=Nv(r),a=n.coordSysRecordMap||(n.coordSysRecordMap=ae());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=fS(i);k(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,hV(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ae());c.set(i.uid,{dzReferCoordSysInfo:s,model:i,getRange:null})})}),a.each(function(i){var o=i.controller,s,l=i.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){CS(a,i);return}var c=pV(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),Tu(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var mV=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,a){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),cV(a,r,{pan:Q(Tf.pan,this),zoom:Q(Tf.zoom,this),scrollMove:Q(Tf.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){fV(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(hS),Tf={zoom:function(e,t,r,n){var a=this.range,i=a.slice(),o=e.axisModels[0];if(o){var s=Nf[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(i[1]-i[0])+i[0],u=Math.max(1/n.scale,0);i[0]=(i[0]-l)*u+l,i[1]=(i[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Lu(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:h0(function(e,t,r,n,a,i){var o=Nf[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:h0(function(e,t,r,n,a,i){var o=Nf[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,r);return o.signal*(e[1]-e[0])*i.scrollDelta})};function h0(e){return function(t,r,n,a){var i=this.range,o=i.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,a);if(Lu(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Nf={grid:function(e,t,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],i.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=i.inverse?-1:1),o},polar:function(e,t,r,n,a){var i=r.axis,o={},s=a.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=i.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=i.inverse?-1:1),o},singleAxis:function(e,t,r,n,a){var i=r.axis,o=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],i.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=i.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=i.inverse?-1:1),s}};const yV=mV;function _V(e){dS(e),e.registerComponentModel(uV),e.registerComponentView(yV),gV(e)}var wV=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=pu(Bl.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(Bl);const bV=wV;var Vi=ke,d0=7,SV=1,Df=30,CV=7,$i="horizontal",v0="vertical",xV=5,TV=["line","bar","candlestick","scatter"],NV={easing:"cubicOut",duration:100,delay:0},DV=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=Q(this._onBrush,this),this._onBrushEnd=Q(this._onBrushEnd,this)},t.prototype.render=function(r,n,a,i){if(e.prototype.render.apply(this,arguments),Tu(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!i||i.type!=="dataZoom"||i.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Cl(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new Ie;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,a=r.get("brushSelect"),i=a?CV:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===$i?{right:s.width-o.x-o.width,top:s.height-Df-d0-i,width:o.width,height:Df}:{right:d0,top:o.y,width:Df,height:o.height},u=Bo(r.option);k(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=Qn(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===v0&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,a=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===$i&&!o?{scaleY:l?1:-1,scaleX:1}:a===$i&&o?{scaleY:l?1:-1,scaleX:-1}:a===v0&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,a=this._displayables.sliderGroup,i=r.get("brushSelect");a.add(new Vi({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Vi({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:Q(this._onClickPanel,this)}),s=this.api.getZr();i?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,a=this._shadowSize||[],i=r.series,o=i.getRawData(),s=i.getShadowDim&&i.getShadowDim(),l=s&&o.getDimensionInfo(s)?i.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,n[1]],p=[0,n[0]],m=[[n[0],0],[0,0]],g=[],y=p[1]/(o.count()-1),w=0,_=Math.round(o.count()/n[0]),S;o.each([l],function(D,N){if(_>0&&N%_){w+=y;return}var A=D==null||isNaN(D)||D==="",M=A?0:We(D,f,h,!0);A&&!S&&N?(m.push([m[m.length-1][0],0]),g.push([g[g.length-1][0],0])):!A&&S&&(m.push([w,0]),g.push([w,0])),m.push([w,M]),g.push([w,M]),w+=y,S=A}),u=this._shadowPolygonPts=m,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var x=this.dataZoomModel;function C(D){var N=x.getModel(D?"selectedDataBackground":"dataBackground"),A=new Ie,M=new kd({shape:{points:u},segmentIgnoreThreshold:1,style:N.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),I=new ai({shape:{points:c},segmentIgnoreThreshold:1,style:N.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return A.add(M),A.add(I),A}for(var T=0;T<3;T++){var b=C(T===1);this._displayables.sliderGroup.add(b),this._displayables.dataShadowSegs.push(b)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var a,i=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();k(l,function(u){if(!a&&!(n!==!0&&ce(TV,u.get("type"))<0)){var c=i.getComponent(an(o),s).axis,f=AV(o),d,h=u.coordinateSystem;f!=null&&h.getOtherAxis&&(d=h.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),a={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),a}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,a=n.handles=[null,null],i=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=n.filler=new Vi({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Vi({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:SV,fill:"rgba(0,0,0,0)"}})),k([0,1],function(_){var S=l.get("handleIcon");!Tl[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S,process.env.NODE_ENV!=="production"&&jt("handleIcon now needs 'path://' prefix when using a path string"));var x=Br(S,-1,0,2,2,null,!0);x.attr({cursor:p0(this._orient),draggable:!0,drift:Q(this._onDragMove,this,_),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1),z2:5});var C=x.getBoundingRect(),T=l.get("handleSize");this._handleHeight=Ce(T,this._size[1]),this._handleWidth=C.width/C.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),hl(x);var b=l.get("handleColor");b!=null&&(x.style.fill=b),o.add(a[_]=x);var D=l.getModel("textStyle");r.add(i[_]=new He({silent:!0,invisible:!0,style:Xt(D,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:D.getTextColor(),font:D.getFont()}),z2:10}))},this);var h=d;if(f){var p=Ce(l.get("moveHandleSize"),s[1]),m=n.moveHandle=new ke({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:p}}),g=p*.8,y=n.moveHandleIcon=Br(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+p/2-.5,m.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var w=Math.min(s[1]/2,Math.max(p,10));h=n.moveZone=new ke({invisible:!0,shape:{y:s[1]-w,height:p+w}}),h.on("mouseover",function(){u.enterEmphasis(m)}).on("mouseout",function(){u.leaveEmphasis(m)}),o.add(m),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:p0(this._orient),drift:Q(this._onDragMove,this,"all"),ondragstart:Q(this._showDataInfo,this,!0),ondragend:Q(this._onDragEnd,this),onmouseover:Q(this._showDataInfo,this,!0),onmouseout:Q(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[We(r[0],[0,100],n,!0),We(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var a=this.dataZoomModel,i=this._handleEnds,o=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Lu(n,i,o,a.get("zoomLock")?"all":r,s.minSpan!=null?We(s.minSpan,l,o,!0):null,s.maxSpan!=null?We(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Wi([We(i[0],o,l,!0),We(i[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,a=this._handleEnds,i=Wi(a.slice()),o=this._size;k([0,1],function(h){var p=n.handles[h],m=this._handleHeight;p.attr({scaleX:m/2,scaleY:m/2,x:a[h]+(h?-1:1),y:o[1]/2-m/2})},this),n.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:o[1]});var s={x:i[0],width:i[1]-i[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,i[0],i[1],o[0]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new ke,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(r)},t.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,a=this._displayables,i=a.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=r?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var d=Wi(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(p){var m=I1(a.handles[p].parent,this.group),g=L1(p===0?"right":"left",m),y=this._handleWidth/2+xV,w=_o([d[p]+(p===0?-y:y),this._size[1]/2],m);i[p].setStyle({x:w[0],y:w[1],verticalAlign:o===$i?"middle":g,align:o===$i?g:"center",text:s[p]})}},t.prototype._formatLabel=function(r,n){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=r==null||isNaN(r)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(r)}):r.toFixed(Math.min(o,20));return ie(i)?i(r,s):j(i)?i.replace("{value}",s):s},t.prototype._showDataInfo=function(r){r=this._dragging||r;var n=this._displayables,a=n.handleLabels;a[0].attr("invisible",!r),a[1].attr("invisible",!r),n.moveHandle&&this.api[r?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},t.prototype._onDragMove=function(r,n,a,i){this._dragging=!0,Xa(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=_o([n,a],o,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(r){var n=this._size,a=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(a[0]<0||a[0]>n[0]||a[1]<0||a[1]>n[1])){var i=this._handleEnds,o=(i[0]+i[1])/2,s=this._updateInterval("all",a[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,a=r.offsetY;this._brushStart=new se(n,a),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var a=n.shape,i=+new Date;if(!(i-this._brushStartTime<200&&Math.abs(a.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Wi([We(a.x,o,s,!0),We(a.x+a.width,o,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(Xa(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var a=this._displayables,i=this.dataZoomModel,o=a.brushRect;o||(o=a.brushRect=new Vi({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?NV:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=fS(this.dataZoomModel).infoList;if(!r&&n.length){var a=n[0].model.coordinateSystem;r=a.getRect&&a.getRect()}if(!r){var i=this.api.getWidth(),o=this.api.getHeight();r={x:i*.2,y:o*.2,width:i*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(hS);function AV(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function p0(e){return e==="vertical"?"ns-resize":"ew-resize"}const MV=DV;function kV(e){e.registerComponentModel(bV),e.registerComponentView(MV),dS(e)}function EV(e){gr(_V),gr(kV)}function g0(e,t,r){var n=ti.createCanvas(),a=t.getWidth(),i=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=a+"px",o.height=i+"px",n.setAttribute("data-zr-dom-id",e)),n.width=a*r,n.height=i*r,n}var PV=function(e){H(t,e);function t(r,n,a){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||il,typeof r=="string"?o=g0(r,n,a):K(r)&&(o=r,r=o.id),i.id=r,i.dom=o;var s=o.style;return s&&(u_(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),i.painter=n,i.dpr=a,i}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=g0("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,a,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new ye(0,0,0,0);function c(w){if(!(!w.isFinite()||w.isZero()))if(o.length===0){var _=new ye(0,0,0,0);_.copy(w),o.push(_)}else{for(var S=!1,x=1/0,C=0,T=0;T<o.length;++T){var b=o[T];if(b.intersect(w)){var D=new ye(0,0,0,0);D.copy(b),D.union(w),o[T]=D,S=!0;break}else if(l){u.copy(w),u.union(b);var N=w.width*w.height,A=b.width*b.height,M=u.width*u.height,I=M-N-A;I<x&&(x=I,C=T)}}if(l&&(o[C].union(w),S=!0),!S){var _=new ye(0,0,0,0);_.copy(w),o.push(_)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=r[f];if(d){var h=d.shouldBePainted(a,i,!0,!0),p=d.__isRendered&&(d.__dirty&_t||!h)?d.getPrevPaintRect():null;p&&c(p);var m=h&&(d.__dirty&_t||!d.__isRendered)?d.getPaintRect():null;m&&c(m)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=n[f],h=d&&d.shouldBePainted(a,i,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var p=d.getPrevPaintRect();p&&c(p)}}var g;do{g=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var y=f+1;y<o.length;)o[f].intersect(o[y])?(g=!0,o[f].union(o[y]),o.splice(y,1)):y++;f++}}while(g);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var a=this.dpr,i=this.dom,o=i.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),i.width=r*a,i.height=n*a,s&&(s.width=r*a,s.height=n*a,a!==1&&this.ctxBack.scale(a,a))},t.prototype.clear=function(r,n,a){var i=this.dom,o=this.ctx,s=i.width,l=i.height;n=n||this.clearColor;var u=this.motionBlur&&!r,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(i,0,0,s/f,l/f));var h=this.domBack;function p(m,g,y,w){if(o.clearRect(m,g,y,w),n&&n!=="transparent"){var _=void 0;if(eu(n)){var S=n.global||n.__width===y&&n.__height===w;_=S&&n.__canvasGradient||gh(o,n,{x:0,y:0,width:y,height:w}),n.__canvasGradient=_,n.__width=y,n.__height=w}else qT(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,_=mh(o,n,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(m,g,y,w),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(h,m,g,y,w),o.restore())}!a||u?p(0,0,s,l):a.length&&k(a,function(m){p(m.x*f,m.y*f,m.width*f,m.height*f)})},t}(Qt);const Af=PV;var m0=1e5,Vn=314159,Os=.01,IV=.001;function LV(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function OV(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var RV=function(){function e(t,r,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=G({},n||{}),this.dpr=n.devicePixelRatio||il,this._singleCanvas=i,this.root=t;var o=t.style;o&&(u_(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(i){var c=t,f=c.width,d=c.height;n.width!=null&&(f=n.width),n.height!=null&&(d=n.height),this.dpr=n.devicePixelRatio||1,c.width=f*this.dpr,c.height=d*this.dpr,this._width=f,this._height=d;var h=new Af(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[Vn]=h,h.zlevel=Vn,s.push(Vn),this._domRoot=t}else{this._width=ms(t,0,n),this._height=ms(t,1,n);var u=this._domRoot=OV(this._width,this._height);t.appendChild(u)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var i=0;i<a.length;i++){var o=a[i],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=i===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},i,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(m0)),i||(i=n.ctx,i.save()),Hn(i,s,a,o===r-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(m0)},e.prototype.paintOne=function(t,r){Ow(t,r)},e.prototype._paintList=function(t,r,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(t);var i=this._doPaintList(t,r,n),o=i.finished,s=i.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;zf(function(){l._paintList(t,r,n,a)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(Vn).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(a){a.virtual&&t.drawImage(a.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var a=this,i=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&i.push(u)}for(var c=!0,f=!1,d=function(m){var g=i[m],y=g.ctx,w=o&&g.createRepaintRects(t,r,h._width,h._height),_=n?g.__startIndex:g.__drawIndex,S=!n&&g.incremental&&Date.now,x=S&&Date.now(),C=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,C,w);else if(_===g.__startIndex){var T=t[_];(!T.incremental||!T.notClear||n)&&g.clear(!1,C,w)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var b,D=function(I){var P={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(b=_;b<g.__endIndex;b++){var L=t[b];if(L.__inHover&&(f=!0),a._doPaintEl(L,g,o,I,P,b===g.__endIndex-1),S){var E=Date.now()-x;if(E>15)break}}P.prevElClipPaths&&y.restore()};if(w)if(w.length===0)b=g.__endIndex;else for(var N=h.dpr,A=0;A<w.length;++A){var M=w[A];y.save(),y.beginPath(),y.rect(M.x*N,M.y*N,M.width*N,M.height*N),y.clip(),D(M),y.restore()}else y.save(),D(),y.restore();g.__drawIndex=b,g.__drawIndex<g.__endIndex&&(c=!1)},h=this,p=0;p<i.length;p++)d(p);return re.wxa&&k(this._layers,function(m){m&&m.ctx&&m.ctx.draw&&m.ctx.draw()}),{finished:c,needsRefreshHover:f}},e.prototype._doPaintEl=function(t,r,n,a,i,o){var s=r.ctx;if(n){var l=t.getPaintRect();(!a||l&&l.intersect(a))&&(Hn(s,t,i,o),t.setPrevPaintRect(l))}else Hn(s,t,i,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Vn);var n=this._layers[t];return n||(n=new Af("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?ve(n,this._layerConfig[t],!0):this._layerConfig[t-Os]&&ve(n,this._layerConfig[t-Os],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,a=this._zlevelList,i=a.length,o=this._domRoot,s=null,l=-1;if(n[t]){process.env.NODE_ENV!=="production"&&on("ZLevel "+t+" has been used already");return}if(!LV(r)){process.env.NODE_ENV!=="production"&&on("Layer of zlevel "+t+" is not valid");return}if(i>0&&t>a[0]){for(l=0;l<i-1&&!(a[l]<t&&a[l+1]>t);l++);s=n[a[l]]}if(a.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a];t.call(r,this._layers[i],i)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__&&t.call(r,o,i)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var i=n[a],o=this._layers[i];o.__builtin__||t.call(r,o,i)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(f,d){f.__dirty=f.__used=!1});function r(f){i&&(i.__endIndex!==f&&(i.__dirty=!0),i.__endIndex=f)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var a=t[n];if(a.zlevel!==t[n-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var i=null,o=0,s,l;for(l=0;l<t.length;l++){var a=t[l],u=a.zlevel,c=void 0;s!==u&&(s=u,o=0),a.incremental?(c=this.getLayer(u+IV,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?Os:0),this._needsManuallyCompositing),c.__builtin__||on("ZLevel "+u+" has been used by unkown layer "+c.id),c!==i&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),i=c),a.__dirty&_t&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,k(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?ve(n[t],r,!0):n[t]=r;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===t||i===t+Os){var o=this._layers[i];ve(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,a=r[t];a&&(a.dom.parentNode.removeChild(a.dom),delete r[t],n.splice(ce(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var a=this._opts,i=this.root;if(t!=null&&(a.width=t),r!=null&&(a.height=r),t=ms(i,0,a),r=ms(i,1,a),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(Vn).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Vn].dom;var r=new Af("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var a=r.dom.width,i=r.dom.height;this.eachLayer(function(f){f.__builtin__?n.drawImage(f.dom,0,0,a,i):f.renderToCanvas&&(n.save(),f.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Hn(n,c,o,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const BV=RV;function VV(e){e.registerPainter("canvas",BV)}const $V={color:["#8e54c8","#fe9546","#4895ef","#56bd0d","#ffd500","#cc3195","#086470","#f0d22b","#7eb7ca","#ff90b3","#b571fb","#ffba7a","#4cc9f0","#68de14","#ffee32","#f72585","#1594a5","#f2d740","#78fecf","#ffadcf"],backgroundColor:"transparent",textStyle:{fontFamily:"JetBrains"},title:{textStyle:{color:"#333333",fontWeight:"normal"},subtextStyle:{color:"#eeeeee"}},line:{itemStyle:{borderWidth:0},lineStyle:{width:2,shadowColor:"rgba(0,0,0,0.3)",shadowBlur:3,shadowOffsetY:3},label:{color:"#333333",textBorderColor:"rgba(255, 255, 255, 1)",textBorderWidth:4},symbolSize:2,symbol:"circle",smooth:!0},bar:{barWidth:20,showBackground:!0,backgroundStyle:{color:"rgba(180, 180, 180, 0.1)",borderRadius:[16]},itemStyle:{shadowColor:"rgba(0,0,0,0.3)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:3,borderRadius:[16],barBorderWidth:0,barBorderColor:"#ccc"}},pie:{itemStyle:{borderRadius:10,borderWidth:2,borderColor:"#fff"}},categoryAxis:{axisLine:{show:!1,lineStyle:{color:"#008acd"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!1,lineStyle:{color:["#eee"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},valueAxis:{axisLine:{show:!1,lineStyle:{color:"#008acd"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{type:[5,10],dashOffset:10,color:["#ddd"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},logAxis:{axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{color:["#eee"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},timeAxis:{axisLine:{show:!0,lineStyle:{color:"#008acd"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#333"},splitLine:{show:!0,lineStyle:{type:[5,10],dashOffset:10,color:["#ddd"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},toolbox:{iconStyle:{borderColor:"#2ec7c9"},emphasis:{iconStyle:{borderColor:"#18a4a6"}}},legend:{textStyle:{color:"#333333"}},tooltip:{axisPointer:{label:{color:"#fff",backgroundColor:"#8e54c8"},lineStyle:{color:"rgba(180, 180, 180, 0.1)",width:1},crossStyle:{type:"solid",color:"rgba(180, 180, 180, 0.1)",width:3}}},timeline:{lineStyle:{color:"#008acd",width:1},itemStyle:{color:"#008acd",borderWidth:1},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},checkpointStyle:{color:"#2ec7c9",borderColor:"#2ec7c9"},label:{color:"#8e54c8"},emphasis:{itemStyle:{color:"#a9334c"},controlStyle:{color:"#008acd",borderColor:"#008acd",borderWidth:.5},label:{color:"#008acd"}}},visualMap:{color:["#5ab1ef","#e0ffff"]},dataZoom:{brushSelect:!0,borderColor:"rgba(93, 174, 87, 0.6)",backgroundColor:"rgba(93, 174, 87, 0.1)",fillerColor:"rgba(93, 174, 87, 0.3)",handleColor:"rgba(93, 174, 87, 1)",handleStyle:{borderWidth:1,borderColor:"rgba(93, 174, 87, 0.6)"},textStyle:{color:"#333"}},markPoint:{label:{color:"#eeeeee"},emphasis:{label:{color:"#eeeeee"}}}},FV={color:["#8e54c8","#fe9546","#4895ef","#56bd0d","#ffd500","#cc3195","#086470","#f0d22b","#7eb7ca","#ff90b3","#b571fb","#ffba7a","#4cc9f0","#68de14","#ffee32","#f72585","#1594a5","#f2d740","#78fecf","#ffadcf"],backgroundColor:"transparent",textStyle:{fontFamily:"JetBrains"},title:{textStyle:{color:"#ffffff",fontWeight:"normal"},subtextStyle:{color:"#cccccc"}},line:{itemStyle:{borderWidth:0},lineStyle:{width:2,shadowBlur:3,shadowOffsetY:3},label:{color:"#ffffff",textBorderColor:"rgba(0, 0, 0, 1)",textBorderWidth:2},symbolSize:2,symbol:"circle",smooth:!0},bar:{barWidth:20,showBackground:!0,backgroundStyle:{color:"rgba(142, 84, 200, 0.03)",borderRadius:[16]},label:{show:!0,color:"#fff"},itemStyle:{shadowBlur:3,shadowOffsetX:0,shadowOffsetY:3,borderRadius:[16],barBorderWidth:0,barBorderColor:"#ccc"}},pie:{label:{color:"#fff"},itemStyle:{borderRadius:10,borderWidth:2,borderColor:"#2d2d31"}},categoryAxis:{axisLine:{show:!1,lineStyle:{color:"#cccccc"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#fff"},splitLine:{show:!1,lineStyle:{color:["#363636"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},valueAxis:{axisLine:{show:!1,lineStyle:{color:"#fff"}},axisTick:{show:!1,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#fff"},splitLine:{show:!0,lineStyle:{type:[5,10],dashOffset:10,color:["rgba(255, 255, 255, 0.1)"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},logAxis:{axisLine:{show:!0,lineStyle:{color:"#cccccc"}},axisTick:{show:!0,lineStyle:{color:"#333"}},axisLabel:{show:!0,color:"#cccccc"},splitLine:{show:!0,lineStyle:{color:["#363636"]}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},timeAxis:{axisLine:{show:!0,lineStyle:{color:"rgba(255, 255, 255, 0.1)"}},axisTick:{show:!0,lineStyle:{color:"rgba(255, 255, 255, 0.1)"}},axisLabel:{show:!0,color:"#fff"},splitLine:{show:!0,lineStyle:{type:[5,10],dashOffset:10,color:["rgba(255, 255, 255, 0.1)"]}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.05)","rgba(200,200,200,0.02)"]}}},toolbox:{iconStyle:{borderColor:"#999999"},emphasis:{iconStyle:{borderColor:"#666666"}}},legend:{textStyle:{color:"#cccccc"}},tooltip:{axisPointer:{label:{color:"#fff",backgroundColor:"rgb(45, 45, 49)"},lineStyle:{color:"rgba(180, 180, 180, 0.1)",width:1},crossStyle:{type:"solid",color:"rgba(180, 180, 180, 0.1)",width:3}}},timeline:{lineStyle:{color:"#8fd3e8",width:1},itemStyle:{color:"#8fd3e8",borderWidth:1},controlStyle:{color:"#8fd3e8",borderColor:"#8fd3e8",borderWidth:.5},checkpointStyle:{color:"#8fd3e8",borderColor:"#8a7ca8"},label:{color:"#8fd3e8"},emphasis:{itemStyle:{color:"#8fd3e8"},controlStyle:{color:"#8fd3e8",borderColor:"#8fd3e8",borderWidth:.5},label:{color:"#8fd3e8"}}},visualMap:{color:["#8a7ca8","#e098c7","#cceffa"]},dataZoom:{brushSelect:!1,borderColor:"rgba(93, 174, 87, 0.6)",backgroundColor:"rgba(93, 174, 87, 0.1)",fillerColor:"rgba(93, 174, 87, 0.3)",handleColor:"rgba(93, 174, 87, 1)",handleStyle:{borderWidth:1,borderColor:"rgba(93, 174, 87, 0.6)"},textStyle:{color:"#fff"}},markPoint:{label:{color:"#eeeeee"},emphasis:{label:{color:"#eeeeee"}}}};Au("white",$V);Au("dark",FV);gr([TL,lL,zL,SR,PB,MB,KR,VV,sV,EV,qB]);const zV={display:"flex",flexDirection:"column",width:"100%",height:"100%"},sr=new WeakMap,xS=v.defineComponent({name:"OcEcharts",props:{options:{type:Object,required:!0},renderer:{type:String,default:()=>"canvas"},style:{type:Object,default:()=>null},notMerge:{type:Boolean,default:()=>!1},ariaShow:{type:Boolean,default:()=>!1},lazyUpdate:{type:Boolean,default:()=>!1},silent:{type:Boolean,default:()=>!1},resizeAble:{type:Boolean,default:()=>!0},events:{type:Object,default:()=>({})},theme:{type:String,default:void 0}},watch:{options:{deep:!0,handler(e){e&&this.setOption()}}},beforeUnmount(){this.dispose()},mounted(){this.$watch(()=>oe.theme,()=>{this.dispose(),this.init()}),this.init()},created(){window.onload=()=>{sr.set(this,null)}},methods:{init(){this.initChart(this.$el).then(e=>{this.setOption(),this.bindEvents(e,this.events),this.resizeAble&&window.addEventListener("resize",this.resizeChart)})},initChart(e){const t=this.renderer||"canvas";return new Promise(r=>{this.$nextTick(()=>{const n=this.theme?this.theme:oe.theme?"dark":"white",a=iP(e,n,{renderer:t,devicePixelRatio:window.devicePixelRatio});sr.set(this,a),r(sr.get(this))})})},setOption(){if(!sr.get(this))return;const e=this.notMerge,t=this.lazyUpdate,r=this.silent,n=this.options,a=sr.get(this);a==null||a.setOption(n,{notMerge:e,lazyUpdate:t,silent:r})},resizeChart(){this.$nextTick(()=>{var e;(e=sr.get(this))==null||e.resize()})},getInstance(){return sr.get(this)},dispose(){var e;this.resizeAble&&window.removeEventListener("resize",this.resizeChart),(e=sr.get(this))==null||e.dispose(),sr.set(this,null),sr.delete(this)},bindEvents(e,t){const r=(n,a)=>{typeof n=="string"&&typeof a=="function"&&e.on(n,i=>{a(i,e)})};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&r(n,t[n])}},render(){const{style:e}=this,t=Object.assign({},zV,e||{});return v.h("div",{style:t})}}),xr=$t.createRouter({history:$t.createWebHistory(),routes:[],scrollBehavior:()=>({left:0,top:0})}),Mf=document.querySelector("html");xr.beforeEach(()=>{Mf==null||Mf.removeAttribute("style")});const GV=v.defineComponent({name:"OcError",components:{NButton:O.NButton},props:{type:{type:String,default:"404"}},setup(e){const t={404:{img:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/404.jpg",txt:"404",title:"404 页面走丢了",title2:"Something's missing."},500:{img:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/500.png",txt:"500",title:"服务暂时中断,请稍后重试.",title2:"Oops! No Internet connection found."}},r=v.ref({img:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/404.jpg",txt:"404",title:"404 页面走丢了",title2:"Something's missing."}),n=()=>{xr.push(oe.platformUrl)},a=v.ref();return v.onMounted(()=>{r.value=t[e.type],a.value=setInterval(()=>{xr.push(oe.platformUrl)},3e3)}),v.onBeforeUnmount(()=>{clearInterval(a.value)}),{goBack:n,content:r}}}),HV={class:"com-card flex-center oc-error"},UV=["src","alt"],WV={class:"oc-miss-txt"},YV={class:"oc-miss-title"},qV={class:"oc-miss-title2"};function jV(e,t,r,n,a,i){const o=v.resolveComponent("NButton");return v.openBlock(),v.createElementBlock("div",HV,[v.createElementVNode("img",{src:e.content.img,alt:e.content.txt,width:"360"},null,8,UV),v.createElementVNode("div",WV,v.toDisplayString(e.content.txt),1),v.createElementVNode("p",YV,v.toDisplayString(e.content.title),1),v.createElementVNode("p",qV,v.toDisplayString(e.content.title2),1),v.createVNode(o,{tertiary:"",onClick:e.goBack},{default:v.withCtx(()=>[v.createTextVNode("返回首页")]),_:1},8,["onClick"])])}const TS=X(GV,[["render",jV]]),XV=v.defineComponent({name:"OcFooter",props:{version:{type:String,default:""}}}),ZV={class:"oc-footer"},KV=v.createElementVNode("span",{style:{"font-family":"Arial, Helvetica, sans-serif"}},"©",-1),JV=v.createElementVNode("a",{href:"https://beian.miit.gov.cn/",target:"_blank",class:"oc-footer-record"}," 沪ICP备 18025935号-3 ",-1);function QV(e,t,r,n,a,i){return v.openBlock(),v.createElementBlock("footer",ZV,[v.createTextVNode(" Copyright "),KV,v.createTextVNode(" 2020-2024 "+v.toDisplayString(e.$t("Common.title"))+" ",1),e.version?(v.openBlock(),v.createElementBlock(v.Fragment,{key:0},[v.createTextVNode("v"+v.toDisplayString(e.version)+" ",1)],64)):v.createCommentVNode("",!0),JV])}const NS=X(XV,[["render",QV]]);var Rs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function DS(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function e3(){this.__data__=[],this.size=0}var t3=e3;function r3(e,t){return e===t||e!==e&&t!==t}var AS=r3,n3=AS;function a3(e,t){for(var r=e.length;r--;)if(n3(e[r][0],t))return r;return-1}var Ou=a3,i3=Ou,o3=Array.prototype,s3=o3.splice;function l3(e){var t=this.__data__,r=i3(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():s3.call(t,r,1),--this.size,!0}var u3=l3,c3=Ou;function f3(e){var t=this.__data__,r=c3(t,e);return r<0?void 0:t[r][1]}var h3=f3,d3=Ou;function v3(e){return d3(this.__data__,e)>-1}var p3=v3,g3=Ou;function m3(e,t){var r=this.__data__,n=g3(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var y3=m3,_3=t3,w3=u3,b3=h3,S3=p3,C3=y3;function ui(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ui.prototype.clear=_3;ui.prototype.delete=w3;ui.prototype.get=b3;ui.prototype.has=S3;ui.prototype.set=C3;var Ru=ui,x3=Ru;function T3(){this.__data__=new x3,this.size=0}var N3=T3;function D3(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var A3=D3;function M3(e){return this.__data__.get(e)}var k3=M3;function E3(e){return this.__data__.has(e)}var P3=E3,I3=typeof Rs=="object"&&Rs&&Rs.Object===Object&&Rs,MS=I3,L3=MS,O3=typeof self=="object"&&self&&self.Object===Object&&self,R3=L3||O3||Function("return this")(),rr=R3,B3=rr,V3=B3.Symbol,Dv=V3,y0=Dv,kS=Object.prototype,$3=kS.hasOwnProperty,F3=kS.toString,Fi=y0?y0.toStringTag:void 0;function z3(e){var t=$3.call(e,Fi),r=e[Fi];try{e[Fi]=void 0;var n=!0}catch{}var a=F3.call(e);return n&&(t?e[Fi]=r:delete e[Fi]),a}var G3=z3,H3=Object.prototype,U3=H3.toString;function W3(e){return U3.call(e)}var Y3=W3,_0=Dv,q3=G3,j3=Y3,X3="[object Null]",Z3="[object Undefined]",w0=_0?_0.toStringTag:void 0;function K3(e){return e==null?e===void 0?Z3:X3:w0&&w0 in Object(e)?q3(e):j3(e)}var Fo=K3;function J3(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var la=J3,Q3=Fo,e$=la,t$="[object AsyncFunction]",r$="[object Function]",n$="[object GeneratorFunction]",a$="[object Proxy]";function i$(e){if(!e$(e))return!1;var t=Q3(e);return t==r$||t==n$||t==t$||t==a$}var ES=i$,o$=rr,s$=o$["__core-js_shared__"],l$=s$,kf=l$,b0=function(){var e=/[^.]+$/.exec(kf&&kf.keys&&kf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function u$(e){return!!b0&&b0 in e}var c$=u$,f$=Function.prototype,h$=f$.toString;function d$(e){if(e!=null){try{return h$.call(e)}catch{}try{return e+""}catch{}}return""}var PS=d$,v$=ES,p$=c$,g$=la,m$=PS,y$=/[\\^$.*+?()[\]{}|]/g,_$=/^\[object .+?Constructor\]$/,w$=Function.prototype,b$=Object.prototype,S$=w$.toString,C$=b$.hasOwnProperty,x$=RegExp("^"+S$.call(C$).replace(y$,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function T$(e){if(!g$(e)||p$(e))return!1;var t=v$(e)?x$:_$;return t.test(m$(e))}var N$=T$;function D$(e,t){return e==null?void 0:e[t]}var A$=D$,M$=N$,k$=A$;function E$(e,t){var r=k$(e,t);return M$(r)?r:void 0}var ua=E$,P$=ua,I$=rr,L$=P$(I$,"Map"),Av=L$,O$=ua,R$=O$(Object,"create"),Bu=R$,S0=Bu;function B$(){this.__data__=S0?S0(null):{},this.size=0}var V$=B$;function $$(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var F$=$$,z$=Bu,G$="__lodash_hash_undefined__",H$=Object.prototype,U$=H$.hasOwnProperty;function W$(e){var t=this.__data__;if(z$){var r=t[e];return r===G$?void 0:r}return U$.call(t,e)?t[e]:void 0}var Y$=W$,q$=Bu,j$=Object.prototype,X$=j$.hasOwnProperty;function Z$(e){var t=this.__data__;return q$?t[e]!==void 0:X$.call(t,e)}var K$=Z$,J$=Bu,Q$="__lodash_hash_undefined__";function e7(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=J$&&t===void 0?Q$:t,this}var t7=e7,r7=V$,n7=F$,a7=Y$,i7=K$,o7=t7;function ci(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ci.prototype.clear=r7;ci.prototype.delete=n7;ci.prototype.get=a7;ci.prototype.has=i7;ci.prototype.set=o7;var s7=ci,C0=s7,l7=Ru,u7=Av;function c7(){this.size=0,this.__data__={hash:new C0,map:new(u7||l7),string:new C0}}var f7=c7;function h7(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var d7=h7,v7=d7;function p7(e,t){var r=e.__data__;return v7(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Vu=p7,g7=Vu;function m7(e){var t=g7(this,e).delete(e);return this.size-=t?1:0,t}var y7=m7,_7=Vu;function w7(e){return _7(this,e).get(e)}var b7=w7,S7=Vu;function C7(e){return S7(this,e).has(e)}var x7=C7,T7=Vu;function N7(e,t){var r=T7(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var D7=N7,A7=f7,M7=y7,k7=b7,E7=x7,P7=D7;function fi(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}fi.prototype.clear=A7;fi.prototype.delete=M7;fi.prototype.get=k7;fi.prototype.has=E7;fi.prototype.set=P7;var I7=fi,L7=Ru,O7=Av,R7=I7,B7=200;function V7(e,t){var r=this.__data__;if(r instanceof L7){var n=r.__data__;if(!O7||n.length<B7-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new R7(n)}return r.set(e,t),this.size=r.size,this}var $7=V7,F7=Ru,z7=N3,G7=A3,H7=k3,U7=P3,W7=$7;function hi(e){var t=this.__data__=new F7(e);this.size=t.size}hi.prototype.clear=z7;hi.prototype.delete=G7;hi.prototype.get=H7;hi.prototype.has=U7;hi.prototype.set=W7;var Y7=hi;function q7(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var j7=q7,X7=ua,Z7=function(){try{var e=X7(Object,"defineProperty");return e({},"",{}),e}catch{}}(),K7=Z7,x0=K7;function J7(e,t,r){t=="__proto__"&&x0?x0(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var IS=J7,Q7=IS,e4=AS,t4=Object.prototype,r4=t4.hasOwnProperty;function n4(e,t,r){var n=e[t];(!(r4.call(e,t)&&e4(n,r))||r===void 0&&!(t in e))&&Q7(e,t,r)}var LS=n4,a4=LS,i4=IS;function o4(e,t,r,n){var a=!r;r||(r={});for(var i=-1,o=t.length;++i<o;){var s=t[i],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),a?i4(r,s,l):a4(r,s,l)}return r}var $u=o4;function s4(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var l4=s4;function u4(e){return e!=null&&typeof e=="object"}var di=u4,c4=Fo,f4=di,h4="[object Arguments]";function d4(e){return f4(e)&&c4(e)==h4}var v4=d4,T0=v4,p4=di,OS=Object.prototype,g4=OS.hasOwnProperty,m4=OS.propertyIsEnumerable,y4=T0(function(){return arguments}())?T0:function(e){return p4(e)&&g4.call(e,"callee")&&!m4.call(e,"callee")},_4=y4,w4=Array.isArray,Mv=w4,Fl={exports:{}};function b4(){return!1}var S4=b4;Fl.exports;(function(e,t){var r=rr,n=S4,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,s=o?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u})(Fl,Fl.exports);var RS=Fl.exports,C4=9007199254740991,x4=/^(?:0|[1-9]\d*)$/;function T4(e,t){var r=typeof e;return t=t??C4,!!t&&(r=="number"||r!="symbol"&&x4.test(e))&&e>-1&&e%1==0&&e<t}var N4=T4,D4=9007199254740991;function A4(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=D4}var BS=A4,M4=Fo,k4=BS,E4=di,P4="[object Arguments]",I4="[object Array]",L4="[object Boolean]",O4="[object Date]",R4="[object Error]",B4="[object Function]",V4="[object Map]",$4="[object Number]",F4="[object Object]",z4="[object RegExp]",G4="[object Set]",H4="[object String]",U4="[object WeakMap]",W4="[object ArrayBuffer]",Y4="[object DataView]",q4="[object Float32Array]",j4="[object Float64Array]",X4="[object Int8Array]",Z4="[object Int16Array]",K4="[object Int32Array]",J4="[object Uint8Array]",Q4="[object Uint8ClampedArray]",eF="[object Uint16Array]",tF="[object Uint32Array]",Ae={};Ae[q4]=Ae[j4]=Ae[X4]=Ae[Z4]=Ae[K4]=Ae[J4]=Ae[Q4]=Ae[eF]=Ae[tF]=!0;Ae[P4]=Ae[I4]=Ae[W4]=Ae[L4]=Ae[Y4]=Ae[O4]=Ae[R4]=Ae[B4]=Ae[V4]=Ae[$4]=Ae[F4]=Ae[z4]=Ae[G4]=Ae[H4]=Ae[U4]=!1;function rF(e){return E4(e)&&k4(e.length)&&!!Ae[M4(e)]}var nF=rF;function aF(e){return function(t){return e(t)}}var kv=aF,zl={exports:{}};zl.exports;(function(e,t){var r=MS,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i&&r.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s})(zl,zl.exports);var Ev=zl.exports,iF=nF,oF=kv,N0=Ev,D0=N0&&N0.isTypedArray,sF=D0?oF(D0):iF,lF=sF,uF=l4,cF=_4,fF=Mv,hF=RS,dF=N4,vF=lF,pF=Object.prototype,gF=pF.hasOwnProperty;function mF(e,t){var r=fF(e),n=!r&&cF(e),a=!r&&!n&&hF(e),i=!r&&!n&&!a&&vF(e),o=r||n||a||i,s=o?uF(e.length,String):[],l=s.length;for(var u in e)(t||gF.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||dF(u,l)))&&s.push(u);return s}var VS=mF,yF=Object.prototype;function _F(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||yF;return e===r}var Pv=_F;function wF(e,t){return function(r){return e(t(r))}}var $S=wF,bF=$S,SF=bF(Object.keys,Object),CF=SF,xF=Pv,TF=CF,NF=Object.prototype,DF=NF.hasOwnProperty;function AF(e){if(!xF(e))return TF(e);var t=[];for(var r in Object(e))DF.call(e,r)&&r!="constructor"&&t.push(r);return t}var MF=AF,kF=ES,EF=BS;function PF(e){return e!=null&&EF(e.length)&&!kF(e)}var FS=PF,IF=VS,LF=MF,OF=FS;function RF(e){return OF(e)?IF(e):LF(e)}var Iv=RF,BF=$u,VF=Iv;function $F(e,t){return e&&BF(t,VF(t),e)}var FF=$F;function zF(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var GF=zF,HF=la,UF=Pv,WF=GF,YF=Object.prototype,qF=YF.hasOwnProperty;function jF(e){if(!HF(e))return WF(e);var t=UF(e),r=[];for(var n in e)n=="constructor"&&(t||!qF.call(e,n))||r.push(n);return r}var XF=jF,ZF=VS,KF=XF,JF=FS;function QF(e){return JF(e)?ZF(e,!0):KF(e)}var Lv=QF,ez=$u,tz=Lv;function rz(e,t){return e&&ez(t,tz(t),e)}var nz=rz,Gl={exports:{}};Gl.exports;(function(e,t){var r=rr,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;function l(u,c){if(c)return u.slice();var f=u.length,d=s?s(f):new u.constructor(f);return u.copy(d),d}e.exports=l})(Gl,Gl.exports);var az=Gl.exports;function iz(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var oz=iz;function sz(e,t){for(var r=-1,n=e==null?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i}var lz=sz;function uz(){return[]}var zS=uz,cz=lz,fz=zS,hz=Object.prototype,dz=hz.propertyIsEnumerable,A0=Object.getOwnPropertySymbols,vz=A0?function(e){return e==null?[]:(e=Object(e),cz(A0(e),function(t){return dz.call(e,t)}))}:fz,Ov=vz,pz=$u,gz=Ov;function mz(e,t){return pz(e,gz(e),t)}var yz=mz;function _z(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var GS=_z,wz=$S,bz=wz(Object.getPrototypeOf,Object),HS=bz,Sz=GS,Cz=HS,xz=Ov,Tz=zS,Nz=Object.getOwnPropertySymbols,Dz=Nz?function(e){for(var t=[];e;)Sz(t,xz(e)),e=Cz(e);return t}:Tz,US=Dz,Az=$u,Mz=US;function kz(e,t){return Az(e,Mz(e),t)}var Ez=kz,Pz=GS,Iz=Mv;function Lz(e,t,r){var n=t(e);return Iz(e)?n:Pz(n,r(e))}var WS=Lz,Oz=WS,Rz=Ov,Bz=Iv;function Vz(e){return Oz(e,Bz,Rz)}var $z=Vz,Fz=WS,zz=US,Gz=Lv;function Hz(e){return Fz(e,Gz,zz)}var Uz=Hz,Wz=ua,Yz=rr,qz=Wz(Yz,"DataView"),jz=qz,Xz=ua,Zz=rr,Kz=Xz(Zz,"Promise"),Jz=Kz,Qz=ua,e8=rr,t8=Qz(e8,"Set"),r8=t8,n8=ua,a8=rr,i8=n8(a8,"WeakMap"),o8=i8,Vh=jz,$h=Av,Fh=Jz,zh=r8,Gh=o8,YS=Fo,vi=PS,M0="[object Map]",s8="[object Object]",k0="[object Promise]",E0="[object Set]",P0="[object WeakMap]",I0="[object DataView]",l8=vi(Vh),u8=vi($h),c8=vi(Fh),f8=vi(zh),h8=vi(Gh),$n=YS;(Vh&&$n(new Vh(new ArrayBuffer(1)))!=I0||$h&&$n(new $h)!=M0||Fh&&$n(Fh.resolve())!=k0||zh&&$n(new zh)!=E0||Gh&&$n(new Gh)!=P0)&&($n=function(e){var t=YS(e),r=t==s8?e.constructor:void 0,n=r?vi(r):"";if(n)switch(n){case l8:return I0;case u8:return M0;case c8:return k0;case f8:return E0;case h8:return P0}return t});var Rv=$n,d8=Object.prototype,v8=d8.hasOwnProperty;function p8(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&v8.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var g8=p8,m8=rr,y8=m8.Uint8Array,_8=y8,L0=_8;function w8(e){var t=new e.constructor(e.byteLength);return new L0(t).set(new L0(e)),t}var Bv=w8,b8=Bv;function S8(e,t){var r=t?b8(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var C8=S8,x8=/\w*$/;function T8(e){var t=new e.constructor(e.source,x8.exec(e));return t.lastIndex=e.lastIndex,t}var N8=T8,O0=Dv,R0=O0?O0.prototype:void 0,B0=R0?R0.valueOf:void 0;function D8(e){return B0?Object(B0.call(e)):{}}var A8=D8,M8=Bv;function k8(e,t){var r=t?M8(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var E8=k8,P8=Bv,I8=C8,L8=N8,O8=A8,R8=E8,B8="[object Boolean]",V8="[object Date]",$8="[object Map]",F8="[object Number]",z8="[object RegExp]",G8="[object Set]",H8="[object String]",U8="[object Symbol]",W8="[object ArrayBuffer]",Y8="[object DataView]",q8="[object Float32Array]",j8="[object Float64Array]",X8="[object Int8Array]",Z8="[object Int16Array]",K8="[object Int32Array]",J8="[object Uint8Array]",Q8="[object Uint8ClampedArray]",e6="[object Uint16Array]",t6="[object Uint32Array]";function r6(e,t,r){var n=e.constructor;switch(t){case W8:return P8(e);case B8:case V8:return new n(+e);case Y8:return I8(e,r);case q8:case j8:case X8:case Z8:case K8:case J8:case Q8:case e6:case t6:return R8(e,r);case $8:return new n;case F8:case H8:return new n(e);case z8:return L8(e);case G8:return new n;case U8:return O8(e)}}var n6=r6,a6=la,V0=Object.create,i6=function(){function e(){}return function(t){if(!a6(t))return{};if(V0)return V0(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),o6=i6,s6=o6,l6=HS,u6=Pv;function c6(e){return typeof e.constructor=="function"&&!u6(e)?s6(l6(e)):{}}var f6=c6,h6=Rv,d6=di,v6="[object Map]";function p6(e){return d6(e)&&h6(e)==v6}var g6=p6,m6=g6,y6=kv,$0=Ev,F0=$0&&$0.isMap,_6=F0?y6(F0):m6,w6=_6,b6=Rv,S6=di,C6="[object Set]";function x6(e){return S6(e)&&b6(e)==C6}var T6=x6,N6=T6,D6=kv,z0=Ev,G0=z0&&z0.isSet,A6=G0?D6(G0):N6,M6=A6,k6=Y7,E6=j7,P6=LS,I6=FF,L6=nz,O6=az,R6=oz,B6=yz,V6=Ez,$6=$z,F6=Uz,z6=Rv,G6=g8,H6=n6,U6=f6,W6=Mv,Y6=RS,q6=w6,j6=la,X6=M6,Z6=Iv,K6=Lv,J6=1,Q6=2,eG=4,qS="[object Arguments]",tG="[object Array]",rG="[object Boolean]",nG="[object Date]",aG="[object Error]",jS="[object Function]",iG="[object GeneratorFunction]",oG="[object Map]",sG="[object Number]",XS="[object Object]",lG="[object RegExp]",uG="[object Set]",cG="[object String]",fG="[object Symbol]",hG="[object WeakMap]",dG="[object ArrayBuffer]",vG="[object DataView]",pG="[object Float32Array]",gG="[object Float64Array]",mG="[object Int8Array]",yG="[object Int16Array]",_G="[object Int32Array]",wG="[object Uint8Array]",bG="[object Uint8ClampedArray]",SG="[object Uint16Array]",CG="[object Uint32Array]",De={};De[qS]=De[tG]=De[dG]=De[vG]=De[rG]=De[nG]=De[pG]=De[gG]=De[mG]=De[yG]=De[_G]=De[oG]=De[sG]=De[XS]=De[lG]=De[uG]=De[cG]=De[fG]=De[wG]=De[bG]=De[SG]=De[CG]=!0;De[aG]=De[jS]=De[hG]=!1;function Xs(e,t,r,n,a,i){var o,s=t&J6,l=t&Q6,u=t&eG;if(r&&(o=a?r(e,n,a,i):r(e)),o!==void 0)return o;if(!j6(e))return e;var c=W6(e);if(c){if(o=G6(e),!s)return R6(e,o)}else{var f=z6(e),d=f==jS||f==iG;if(Y6(e))return O6(e,s);if(f==XS||f==qS||d&&!a){if(o=l||d?{}:U6(e),!s)return l?V6(e,L6(o,e)):B6(e,I6(o,e))}else{if(!De[f])return a?e:{};o=H6(e,f,s)}}i||(i=new k6);var h=i.get(e);if(h)return h;i.set(e,o),X6(e)?e.forEach(function(g){o.add(Xs(g,t,r,g,e,i))}):q6(e)&&e.forEach(function(g,y){o.set(y,Xs(g,t,r,y,e,i))});var p=u?l?F6:$6:l?K6:Z6,m=c?void 0:p(e);return E6(m||e,function(g,y){m&&(y=g,g=e[y]),P6(o,y,Xs(g,t,r,y,e,i))}),o}var xG=Xs,TG=xG,NG=1,DG=4;function AG(e){return TG(e,NG|DG)}var MG=AG;const Rt=DS(MG),kG=v.defineComponent({name:"OcForm",components:{NIcon:O.NIcon,NGrid:O.NGrid,NForm:O.NForm,NFormItemGi:O.NFormItemGi,NButton:O.NButton,NInput:O.NInput,NSelect:O.NSelect,NInputNumber:O.NInputNumber,NDatePicker:O.NDatePicker,NTimePicker:O.NTimePicker,NSwitch:O.NSwitch,NUpload:O.NUpload,NUploadDragger:O.NUploadDragger,IconMailInboxAdd:Mo},props:{items:{required:!0,type:Array,default:()=>[]},data:{required:!0,type:Object,default:()=>({})},edit:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},labelWidth:{type:[String,Number],default:"auto"},labelAlign:{type:String,default:"left"},labelPlacement:{type:String,default:"top"}},setup(e,{expose:t}){const r=v.ref(),n=v.ref({}),a=v.ref([]),{t:i}=Kt.useI18n(),o=p=>!((p==null?void 0:p.show)===!1||e.edit&&p.edit&&!p.edit.show),s=()=>{const p=Rt(e.items);p.forEach(m=>{if(m.rule&&m.rule.validator&&typeof m.rule.validator=="string"){const g=m.rule.validator,y=new Function("rule","value",g);m.rule.validator=(w,_)=>y(w,_)}if(m.input==="date"&&m.isDateDisabled&&typeof m.isDateDisabled=="string"){const g=m.isDateDisabled,y=new Function("ts","detail",g);m.isDateDisabled=(w,_)=>y(w,_)}m.input==="select"&&m.fallbackOption&&m.multiple&&(!n.value[m.key]||n.value[m.key].length===0)&&(n.value[m.key]=[""])}),a.value=p},l=(p,m)=>{if(p.updateValue){const g=Rt(n.value);if(typeof p.updateValue=="string"){const y=p.updateValue;new Function("value","formValue",y)(m,g)}else p.updateValue(m,g)}},u=(p,m)=>new Promise((g,y)=>{p.file.file&&(n.value[m]=p.file.file,g()),y()}),c=(p,m)=>{p.length===0&&(n.value[m]="")},f=p=>p.fallbackOption?typeof p.fallbackOption=="boolean"?()=>({label:i("Common.message.all"),value:"",disabled:!0}):p.fallbackOption:!1,d=()=>new Promise((p,m)=>{var g;(g=r.value)==null||g.validate(y=>{if(y)m();else{const w=Rt(n.value),_=JSON.stringify(w,(S,x)=>x===void 0?null:Array.isArray(x)?x.filter(C=>C!==""):x);p(JSON.parse(_))}})}),h=()=>{var p;(p=r.value)==null||p.restoreValidation()};return v.onMounted(()=>{n.value=Rt(e.data),s()}),t({validate:d,restoreValidation:h}),v.watch(()=>e.items,()=>{s()},{deep:!0}),v.watch(()=>e.data,p=>{n.value=Rt(p)},{deep:!0}),{formRef:r,formValue:n,formItems:a,cloneDeep:Rt,updateValue:l,beforeUpload:u,uploadChange:c,elementShow:o,selectFallback:f}}}),EG=v.createElementVNode("br",null,null,-1),PG=v.createElementVNode("p",null,"点击或者拖动文件到该区域来上传",-1),IG=v.createElementVNode("p",null," 请不要上传敏感数据,比如你的银行卡号和密码,信用卡号有效期和安全码 ",-1);function LG(e,t,r,n,a,i){const o=v.resolveComponent("NInput"),s=v.resolveComponent("NInputNumber"),l=v.resolveComponent("NDatePicker"),u=v.resolveComponent("NSelect"),c=v.resolveComponent("NTimePicker"),f=v.resolveComponent("NSwitch"),d=v.resolveComponent("IconMailInboxAdd"),h=v.resolveComponent("NIcon"),p=v.resolveComponent("NUploadDragger"),m=v.resolveComponent("NUpload"),g=v.resolveComponent("NFormItemGi"),y=v.resolveComponent("NGrid"),w=v.resolveComponent("NForm");return v.openBlock(),v.createBlock(w,{ref:"formRef",model:e.formValue,disabled:e.disabled,inline:e.inline,labelWidth:e.labelWidth,labelAlign:e.labelAlign,labelPlacement:e.labelPlacement},{default:v.withCtx(()=>[v.createVNode(y,{cols:12,"x-gap":8},{default:v.withCtx(()=>[(v.openBlock(!0),v.createElementBlock(v.Fragment,null,v.renderList(e.formItems,_=>(v.openBlock(),v.createElementBlock(v.Fragment,{key:_.key},[e.elementShow(_)?(v.openBlock(),v.createBlock(g,{key:0,span:_.span||6,label:_.label,path:_.key,rule:_.rule},{default:v.withCtx(()=>[_.input==="input"?(v.openBlock(),v.createBlock(o,{key:0,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,type:_.type,placeholder:_.placeholder,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,readonly:e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,minlength:_.minlength,maxlength:_.maxlength,rows:_.rows,"show-count":!!_.maxlength,"on-update:value":S=>{e.formValue[_.key]=S.trim(),e.updateValue(_,S.trim())}},null,8,["value","onUpdate:value","type","placeholder","disabled","readonly","clearable","minlength","maxlength","rows","show-count","on-update:value"])):v.createCommentVNode("",!0),_.input==="number"?(v.openBlock(),v.createBlock(s,{key:1,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,placeholder:_.placeholder,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,readonly:e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,precision:_.precision||0,min:_.min,max:_.max,step:_.step,showButton:_.showButton,"on-update:value":S=>{e.formValue[_.key]=S,e.updateValue(_,S)}},null,8,["value","onUpdate:value","placeholder","disabled","readonly","clearable","precision","min","max","step","showButton","on-update:value"])):v.createCommentVNode("",!0),_.input==="date"&&!_.format?(v.openBlock(),v.createBlock(l,{key:2,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,type:_.type,placeholder:_.placeholder,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,"input-readonly":e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,"time-picker-props":_.timePickerProps,"is-date-disabled":(S,x)=>_.isDateDisabled?_.isDateDisabled(S,x):!1,"close-on-select":"","on-update:value":S=>{e.formValue[_.key]=S,e.updateValue(_,S)}},null,8,["value","onUpdate:value","type","placeholder","disabled","input-readonly","clearable","time-picker-props","is-date-disabled","on-update:value"])):v.createCommentVNode("",!0),_.input==="date"&&_.format?(v.openBlock(),v.createBlock(l,{key:3,"formatted-value":e.formValue[_.key],"onUpdate:formattedValue":S=>e.formValue[_.key]=S,type:_.type,placeholder:_.placeholder,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,"input-readonly":e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,format:_.format,"time-picker-props":_.timePickerProps,"is-date-disabled":(S,x)=>_.isDateDisabled?_.isDateDisabled(S,x):!1,"close-on-select":"","on-update:formatted-value":S=>{e.formValue[_.key]=S,e.updateValue(_,S)}},null,8,["formatted-value","onUpdate:formattedValue","type","placeholder","disabled","input-readonly","clearable","format","time-picker-props","is-date-disabled","on-update:formatted-value"])):v.createCommentVNode("",!0),_.input==="select"?(v.openBlock(),v.createBlock(u,{key:4,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,placeholder:_.placeholder,options:_.options,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,readonly:e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,filterable:_.filterable,multiple:_.multiple,"fallback-option":e.selectFallback(_),maxTagCount:_.maxTagCount,"render-label":_.renderLabel,"render-option":_.renderOption,"render-tag":_.renderTag,"on-update:value":S=>{let x=S,C=S;if(_.multiple){let T=S.filter(b=>b);T.length===0?(x=[""],C=[]):(x=T,C=T)}e.formValue[_.key]=x,e.updateValue(_,C)}},null,8,["value","onUpdate:value","placeholder","options","disabled","readonly","clearable","filterable","multiple","fallback-option","maxTagCount","render-label","render-option","render-tag","on-update:value"])):v.createCommentVNode("",!0),_.input==="time"?(v.openBlock(),v.createBlock(c,{key:5,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,placeholder:_.placeholder,format:_.format,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,readonly:e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,"on-update:value":S=>{e.formValue[_.key]=S,e.updateValue(_,S)}},null,8,["value","onUpdate:value","placeholder","format","disabled","readonly","clearable","on-update:value"])):v.createCommentVNode("",!0),_.input==="switch"?(v.openBlock(),v.createBlock(f,{key:6,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,size:"large","on-update:value":S=>{e.formValue[_.key]=S,e.updateValue(_,S)}},null,8,["value","onUpdate:value","disabled","on-update:value"])):v.createCommentVNode("",!0),_.input==="upload"?(v.openBlock(),v.createBlock(m,{key:7,"default-file-list":e.formValue[_.key]?[{id:"1",name:"File",status:"finished",url:e.formValue[_.key]}]:void 0,"on-before-upload":S=>{e.beforeUpload(S,_.key)},accept:_.accept,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,max:_.max,"on-update:file-list":S=>{e.uploadChange(S,_.key)},"directory-dnd":""},{default:v.withCtx(()=>[v.withDirectives(v.createVNode(p,null,{default:v.withCtx(()=>[v.createVNode(h,{size:"32"},{default:v.withCtx(()=>[v.createVNode(d)]),_:1}),EG,PG,IG]),_:2},1536),[[v.vShow,!e.formValue[_.key]]])]),_:2},1032,["default-file-list","on-before-upload","accept","disabled","max","on-update:file-list"])):v.createCommentVNode("",!0)]),_:2},1032,["span","label","path","rule"])):v.createCommentVNode("",!0)],64))),128))]),_:1})]),_:1},8,["model","disabled","inline","labelWidth","labelAlign","labelPlacement"])}const ZS=X(kG,[["render",LG]]),OG=Object.prototype.hasOwnProperty;function KS(e,t){const r=[];for(const n in e){if(!OG.call(e,n))continue;const a=e[n],i=encodeURIComponent(n);let o;typeof a=="object"?o=KS(a,t?t+"["+i+"]":i):o=(t?t+"["+i+"]":i)+"="+encodeURIComponent(a),r.push(o)}return r.join("&")}const{notification:Ef}=O.createDiscreteApi(["notification"],{configProviderProps:{themeOverrides:{common:{borderRadius:"16px",borderRadiusSmall:"8px",primaryColor:"#8e54c8",primaryColorHover:"#9b66d0",primaryColorPressed:"#8e54c8",primaryColorSuppl:"#8e54c8",infoColor:"#2080f0",infoColorHover:"#57a4fd",infoColorPressed:"#2080f0",infoColorSuppl:"#2080f0",successColor:"#5dae57",successColorHover:"#70ce69",successColorPressed:"#5dae57",successColorSuppl:"#5dae57",warningColor:"#f0973a",warningColorHover:"#ffb05d",warningColorPressed:"#f0973a",warningColorSuppl:"#f0973a",errorColor:"#e65444",errorColorHover:"#fc6c5d",errorColorPressed:"#e65444",errorColorSuppl:"#e65444",cardColor:"#fff"},Button:{textColor:"rgb(var(--font))"},Notification:{borderRadius:"16px"}}},notificationProviderProps:{placement:"top"}}),pi=Uh.create({timeout:3e5,responseType:"json",headers:{platformType:"T1"}});let Hh=Uh.CancelToken.source();pi.interceptors.request.use(e=>{var r;e.cancelToken=Hh.token;const t=Et("token",!1);if(e.headers&&t&&(e.headers["X-Auth-Token"]=t),((r=e.method)==null?void 0:r.toLocaleUpperCase())==="GET"){const n=KS(e.data);n&&(e.url=`${e.url}?${n}`)}return e},e=>Promise.reject(e));pi.interceptors.response.use(e=>{const t=e.data;if(e.config.responseType==="blob"||e.config.responseType==="text")return Promise.resolve(e.data);if(t.ok)return Promise.resolve(t.data);{let r=t.message;return(r.indexOf("Connection refused")>-1||r.indexOf("finishConnect")>-1)&&(r="网络错误,请稍后重试"),Ef.error({content:r,duration:3e3}),Promise.reject(r)}},e=>{if(e&&e.code==="ECONNABORTED"&&e.config&&e.config.url&&e.config.url.indexOf("auth/user/getCurrentUserInfo")>-1&&(K0(),xr.replace("/custom/500")),e&&e.response)switch(e.response.status){case 401:case 403:ko("token"),window.location.href="/login";break;default:return Ef.destroyAll(),Ef.error({content:"系统正在维护中,请稍后再试!",duration:3e3}),Promise.reject()}else return Promise.reject()});const RG=()=>{Hh.cancel(),Hh=Uh.CancelToken.source()},Vv="/apiserver/",JS=(e,t,r="json")=>pi({url:`${Vv}${e}`,method:"GET",data:t,responseType:r}),ut=(e,t={},r="json",n=3e5)=>pi({url:`${Vv}${e}`,method:"POST",data:t,responseType:r,timeout:n}),BG=e=>pi(e),$v=(e,t)=>pi({headers:{"Content-Type":"multipart/form-data"},url:`${Vv}${e}`,method:"POST",data:t}),H0=e=>{const t=JSON.parse(JSON.stringify(e));return t.password=Bs(t.password),ut("api/user/v2/login",t)},VG=()=>new Promise((e,t)=>{ut("api/auth/user/getCurrentUserInfo",{},"json",1e4).then(r=>{const n=["046459"];r.commissioner=!1,n.includes(String(r.tenantLoginCode))&&(r.commissioner=!0);const a=r.ownedProducts?JSON.parse(r.ownedProducts):[];switch(a.includes(2)?r.platform_tdm=!0:r.platform_tdm=!1,a.includes(3)?r.platform_qms=!0:r.platform_qms=!1,a.includes(4)?r.platform_twin=!0:r.platform_twin=!1,a.includes(5)?r.platform_maintain=!0:r.platform_maintain=!1,a.includes(6)?r.platform_simple_tdm=!0:r.platform_simple_tdm=!1,a.includes(7)?r.platform_order=!0:r.platform_order=!1,r.systemType){case"Premium":r.systemType=1;break;case"Flagship":r.systemType=2;break;default:r.systemType=0;break}r.info=JSON.parse(r.info),e(r)}).catch(()=>{t()})}),$G=()=>ut("api/auth/user/logout"),FG=()=>ut("api/manager/message/markReadAll"),zG=()=>ut("api/auth/user/updateTenantRenewalStatus"),GG=e=>ut("api/manager/job/remove",e),HG=e=>ut("api/manager/job/retry",{jobId:e}),UG=e=>new Promise((t,r)=>{const n=Po(e);ut("api/manager/job/page",n).then(a=>{const i=Eo(a);t(i)}).catch(()=>{r()})}),Fv=e=>new Promise((t,r)=>{const n=new FormData;n.append("jobType","EXPORT"),Object.keys(e).forEach(a=>{e.query&&a==="query"?n.append("query",JSON.stringify(e.query)):n.append(a,e[a])}),$v("api/manager/job/submit",n).then(()=>{od(!0),t()}).catch(a=>{r(a)})}),WG=e=>new Promise((t,r)=>{const n=Po(e);n.status===-1&&(n.status=""),ut("api/manager/message/messagePage",n).then(a=>{const i=Eo(a);t({data:i,unRead:a.unRead})}).catch(()=>{r()})}),YG=e=>ut("api/manager/message/markRead",{messageId:e});let QS=!0;const $=v.reactive({commissioner:!1,factoryId:"",tenantLoginCode:"",thirdUserId:"",userId:"",email:"",name:"",realName:"",phone:"",description:"",tenantName:"",oeeStatus:0,ncFlg:0,info:{type:0,id:"",viewType:1,interval:5,theme:"light"},kind:0,systemType:0,password:"",enable:!0,platform_tdm:!1,platform_qms:!1,platform_twin:!1,platform_maintain:!1,platform_order:!1,platform_simple_tdm:!1,authorizationGroupArray:[],authorizationMachineArray:[],iot_menu_authorization:[],tdm_menu_authorization:[],qms_menu_authorization:[],maintain_menu_authorization:[],order_menu_authorization:[],endTime:0,tenantStatus:1,renewalStatus:0,roleId:1,industryCategory:"0"});function qG(e){QS=e}function zv(e){const t=window.location.host;if(t.includes("partexiot")){const r=Et("token",!1);$.industryCategory=e.industryCategory||"0",!t.includes("vpn")&&QS&&(e.industryCategory==="0"&&t.includes("printing")&&(window.location.href=`https://www.partexiot.cn/auth?auth=${r}`),e.industryCategory==="1"&&!t.includes("printing")&&(window.location.href=`https://printing.partexiot.cn/auth?auth=${r}`))}if($.commissioner=e.commissioner,$.factoryId=e.factoryId,$.tenantLoginCode=e.tenantLoginCode,$.userId=e.userId,$.email=e.email,$.name=e.name,$.realName=e.realName,$.tenantName=e.tenantName,$.phone=e.phone,$.info=e.info,$.kind=e.kind,$.oeeStatus=e.oeeStatus||0,$.ncFlg=e.ncFlg||0,$.systemType=e.systemType,$.platform_tdm=e.platform_tdm,$.platform_qms=e.platform_qms,$.platform_twin=e.platform_twin,$.platform_maintain=e.platform_maintain,$.platform_order=e.platform_order,$.platform_simple_tdm=e.platform_simple_tdm,$.authorizationGroupArray=e.authorizationGroupArray||[],$.authorizationMachineArray=e.authorizationMachineArray||[],$.iot_menu_authorization=e.iot_menu_authorization||[],$.tdm_menu_authorization=e.tdm_menu_authorization||[],$.qms_menu_authorization=e.qms_menu_authorization||[],$.maintain_menu_authorization=e.maintain_menu_authorization||[],$.order_menu_authorization=e.order_menu_authorization||[],$.endTime=e.endTime??0,$.tenantStatus=e.tenantStatus??1,$.renewalStatus=e.renewalStatus??0,$.roleId=e.roleId||0,$.kind===1){const r=e.info,n=String(e.info.type);n==="0"&&xr.replace(`/dashboard/list?machGroupId=${r.id}&theme=${r.theme||"light"}`),n==="1"&&xr.replace(`/dashboard/single?machId=${r.id}&type=${r.viewType??1}&theme=${r.theme||"light"}`),n==="2"&&xr.push(`/dashboard/carousel?theme=${r.theme||"light"}`),n==="3"&&xr.push(`/dashboard/carouselist?theme=${r.theme||"light"}`),n==="4"&&xr.push(`/dashboard/performance?schemeId=${r.id}&theme=${r.theme||"light"}`)}}function Fu(){return new Promise((e,t)=>{VG().then(r=>{zv(r),e(r)}).catch(()=>{t()})})}function zu(){$.factoryId="",$.commissioner=!1,$.tenantLoginCode="",$.userId="",$.email="",$.name="",$.realName="",$.tenantName="",$.phone="",$.description="",$.info={type:0,id:"",viewType:1,interval:5,theme:"light"},$.kind=0,$.systemType=0,$.oeeStatus=0,$.ncFlg=0,$.password="",$.enable=!0,$.platform_tdm=!1,$.platform_qms=!1,$.platform_twin=!1,$.platform_maintain=!1,$.platform_order=!1,$.platform_simple_tdm=!1,$.authorizationGroupArray=[],$.authorizationMachineArray=[],$.iot_menu_authorization=[],$.tdm_menu_authorization=[],$.qms_menu_authorization=[],$.maintain_menu_authorization=[],$.order_menu_authorization=[],$.endTime=0,$.tenantStatus=1,$.renewalStatus=0,$.roleId=1}async function Gv(){await $G().catch(()=>null),ko("token"),zu(),window.location.href="/login"}const jG=v.defineComponent({name:"HeaderPop",components:{NFlex:O.NFlex,NInput:O.NInput,NPopover:O.NPopover,NTooltip:O.NTooltip,NButton:O.NButton,NIcon:O.NIcon,NDataTable:O.NDataTable,IconSearch:ql,IconArrowClockwise:Wa,IconArrowSquareDown:jh},setup(){const{t:e}=Kt.useI18n(),t=v.ref(!1),r=O.useNotification(),n=v.ref([]),a=v.ref(""),i=v.ref(!1),o=v.ref({page:1,pageCount:1,pageSize:30}),s=v.ref([{title:()=>e("Common.importer.fileName"),key:"jobName",width:300,render(h){return v.h("div",{},{default:()=>[v.h("p",{},{default:()=>h.jobName||"--"}),v.h("p",{style:{color:"rgba(var(--font), 0.6)"}},{default:()=>Tr(h.commitTime,"yyyy-MM-dd hh:mm:ss")})]})}},{title:()=>e("Common.importer.status"),key:"jobStatus",align:"center",width:90,render(h){let p=e("Common.processing");return h.jobStatus===1&&(p=e("Common.success")),h.jobStatus===2&&(p=e("Common.failed")),v.h("span",{},{default:()=>p})}},{title:()=>e("Common.action"),key:"action",align:"center",fixed:"right",width:90,render(h){const p=[{type:"delete",onClick:()=>{GG([h.jobId]).then(()=>{r.success({content:()=>e("Notice.success"),duration:3e3}),f()}).catch(()=>{r.error({content:()=>e("Notice.error"),duration:3e3})})}}];return h.jobStatus===2?p.unshift({type:"custom",onClick:()=>{HG(h.jobId).then(()=>{r.success({content:()=>e("Notice.success"),duration:3e3}),f()}).catch(()=>{r.error({content:()=>e("Notice.error"),duration:3e3})})},icon:Wa,color:"info",tooltipText:()=>e("Common.importer.retry")}):p.unshift({type:"custom",disabled:h.jobStatus!==1,onClick:()=>{window.open(h.downloadUrl)},icon:Ao,color:"success",tooltipText:()=>e("Common.importer.btnDownload")}),pn(p)}}]),l=h=>{o.value.page=h,f()},u=h=>{o.value.pageSize=h,o.value.page=1,f()},c=()=>{o.value.page=1,f()},f=()=>{i.value||(i.value=!0,UG({jobType:"EXPORT",jobName:a.value,query:o.value}).then(h=>{o.value=h.query,n.value=h.records,i.value=!1}).catch(()=>{i.value=!1}))},d=h=>{od(h),t.value=h};return f(),v.watch(()=>oe.download,h=>{t.value=h,h&&f()}),{jobName:a,loading:i,columns:s,coldata:n,query:o,popDownload:t,init:f,pageChange:l,pageSizeChange:u,doSearch:c,popDownloadUpdate:d}}}),XG={class:"oc-header-download"};function ZG(e,t,r,n,a,i){const o=v.resolveComponent("IconArrowSquareDown"),s=v.resolveComponent("NIcon"),l=v.resolveComponent("NButton"),u=v.resolveComponent("NInput"),c=v.resolveComponent("IconSearch"),f=v.resolveComponent("NTooltip"),d=v.resolveComponent("IconArrowClockwise"),h=v.resolveComponent("NFlex"),p=v.resolveComponent("NDataTable"),m=v.resolveComponent("NPopover");return v.openBlock(),v.createBlock(m,{trigger:"click",placement:"bottom-end",show:e.popDownload,"show-arrow":!1,"on-update:show":e.popDownloadUpdate,style:{width:"650px"}},{trigger:v.withCtx(()=>[v.createVNode(l,{text:"",style:{"margin-left":"15px"}},{icon:v.withCtx(()=>[v.createVNode(s,{class:"com-header-icon"},{default:v.withCtx(()=>[v.createVNode(o)]),_:1})]),_:1})]),default:v.withCtx(()=>[v.createVNode(h,{justify:"end",wrap:!1},{default:v.withCtx(()=>[v.createElementVNode("span",XG,v.toDisplayString(e.$t("Common.validDays")),1),v.createVNode(u,{value:e.jobName,"onUpdate:value":t[0]||(t[0]=g=>e.jobName=g),type:"text",clearable:"",autosize:"",style:{width:"200px"},placeholder:e.$t("Common.importer.fileName")},null,8,["value","placeholder"]),v.createVNode(f,{trigger:"hover"},{trigger:v.withCtx(()=>[v.createVNode(l,{loading:e.loading,class:"button-primary",onClick:e.doSearch},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(c)]),_:1})]),_:1},8,["loading","onClick"])]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.search")),1)]),_:1}),v.createVNode(f,{trigger:"hover"},{trigger:v.withCtx(()=>[v.createVNode(l,{onClick:e.init},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(d)]),_:1})]),_:1},8,["onClick"])]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.refresh")),1)]),_:1})]),_:1}),v.createVNode(p,{columns:e.columns,data:e.coldata,pagination:{...e.query,simple:!0},loading:e.loading,"on-update:page":e.pageChange,"on-update:page-size":e.pageSizeChange,"min-height":300,"max-height":505,class:"n-table-dark","scroll-x":"600",style:{"margin-top":"8px"},remote:""},null,8,["columns","data","pagination","loading","on-update:page","on-update:page-size"])]),_:1},8,["show","on-update:show"])}const KG=X(jG,[["render",ZG]]),JG=v.defineComponent({name:"HeaderPop",components:{NBadge:O.NBadge,NPopover:O.NPopover,NFlex:O.NFlex,NTooltip:O.NTooltip,NButton:O.NButton,NIcon:O.NIcon,NDataTable:O.NDataTable,NRadioGroup:O.NRadioGroup,NRadioButton:O.NRadioButton,IconAlert:Wh,IconClear:Yh,IconArrowClockwise:Wa},setup(){const{t:e}=Kt.useI18n(),t=v.ref(0),r=v.ref(0),n=v.ref([]),a=v.ref(""),i=v.ref(!1),o=v.ref({page:1,pageCount:1,pageSize:30}),s=v.ref([{title:()=>e("Common.message.title2"),key:"messageContent",width:300,render(h){return[v.h("div",{class:h.status===1?"card-grey-txt":""},{default:()=>h.messageContent}),v.h("div",{class:"card-grey-txt"},{default:()=>Tr(h.createTime,"yyyy-MM-dd hh:mm:ss")})]}},{title:()=>e("Common.action"),key:"action",align:"center",fixed:"right",width:90,render(h){return h.status===0?pn([{type:"custom",color:"primary",tooltipText:()=>e("Common.message.read"),buttonText:()=>e("Common.message.read"),onClick:()=>{YG(h.messageId).then(()=>{d()}).catch(()=>{d()})}}]):v.h("div",{},{default:()=>`${h.updateByName} ${e("Common.message.read")}`})}}]),l=h=>{o.value.page=1,t.value=h,d()},u=()=>{FG().then(()=>{d()}).catch(()=>{d()})},c=h=>{o.value.page=h,d()},f=h=>{o.value.pageSize=h,o.value.page=1,d()},d=()=>{i.value||(i.value=!0,WG({status:t.value,query:o.value}).then(h=>{r.value=h.unRead,o.value=h.data.query,n.value=h.data.records,i.value=!1}).catch(()=>{i.value=!1}))};return d(),{badge:r,radios:t,jobName:a,loading:i,columns:s,coldata:n,query:o,clearAll:u,pageChange:c,pageSizeChange:f,init:d,radiosChecked:l}}}),QG={class:"com-title"};function e9(e,t,r,n,a,i){const o=v.resolveComponent("IconAlert"),s=v.resolveComponent("NIcon"),l=v.resolveComponent("NButton"),u=v.resolveComponent("NBadge"),c=v.resolveComponent("NRadioButton"),f=v.resolveComponent("NRadioGroup"),d=v.resolveComponent("IconClear"),h=v.resolveComponent("NTooltip"),p=v.resolveComponent("IconArrowClockwise"),m=v.resolveComponent("NFlex"),g=v.resolveComponent("NDataTable"),y=v.resolveComponent("NPopover");return v.openBlock(),v.createBlock(y,{trigger:"click",placement:"bottom-end","show-arrow":!1,style:{width:"650px"}},{trigger:v.withCtx(()=>[v.createVNode(u,{value:e.badge,max:99},{default:v.withCtx(()=>[v.createVNode(l,{text:"",style:{"margin-left":"30px"}},{icon:v.withCtx(()=>[v.createVNode(s,{class:"com-header-icon"},{default:v.withCtx(()=>[v.createVNode(o)]),_:1})]),_:1})]),_:1},8,["value"])]),default:v.withCtx(()=>[v.createVNode(m,{justify:"space-between"},{default:v.withCtx(()=>[v.createElementVNode("div",QG,v.toDisplayString(e.$t("Common.message.title")),1),v.createVNode(f,{value:e.radios,"onUpdate:value":t[0]||(t[0]=w=>e.radios=w),name:"radios","on-update:value":e.radiosChecked},{default:v.withCtx(()=>[v.createVNode(c,{key:"0",value:0,label:e.$t("Common.message.unRead")},null,8,["label"]),v.createVNode(c,{key:"-1",value:-1,label:e.$t("Common.message.all")},null,8,["label"]),v.createVNode(c,{key:"1",value:1,label:e.$t("Common.message.read")},null,8,["label"])]),_:1},8,["value","on-update:value"]),v.createElementVNode("div",null,[v.createVNode(h,{trigger:"hover"},{trigger:v.withCtx(()=>[v.createVNode(l,{onClick:e.clearAll},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(d)]),_:1})]),_:1},8,["onClick"])]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.message.readAll")),1)]),_:1}),v.createVNode(h,{trigger:"hover"},{trigger:v.withCtx(()=>[v.createVNode(l,{onClick:e.init},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(p)]),_:1})]),_:1},8,["onClick"])]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.refresh")),1)]),_:1})])]),_:1}),v.createVNode(g,{columns:e.columns,data:e.coldata,pagination:{...e.query,simple:!0},loading:e.loading,"on-update:page":e.pageChange,"on-update:page-size":e.pageSizeChange,"min-height":300,"max-height":505,class:"n-table-dark","scroll-x":"600",style:{"margin-top":"8px"},remote:""},null,8,["columns","data","pagination","loading","on-update:page","on-update:page-size"])]),_:1})}const t9=X(JG,[["render",e9]]),r9=v.defineComponent({name:"OcHeader",components:{Pop:KG,Message:t9,NDropdown:O.NDropdown,NMenu:O.NMenu,NIcon:O.NIcon,NButton:O.NButton,NDrawer:O.NDrawer,NFlex:O.NFlex,NDrawerContent:O.NDrawerContent,NCard:O.NCard,IconWeatherSunny:Yl,IconWeatherMoon:Wl,IconGridDots:Xh,IconDismiss:cn,IconNavigation:Kl,IconUser:nd},props:{menuOptions:{required:!0,type:Array,default:()=>[]},qiankun:{type:Boolean,default:!1},mainUrl:{type:String,default:"https://www.partexiot.cn"},report:{type:Boolean,default:!1},download:{type:Boolean,default:!0},message:{type:Boolean,default:!0}},setup(e){const{t}=Kt.useI18n(),r=$t.useRoute(),n=$t.useRouter(),a=O.useNotification(),i=v.ref(oe.platformUrl),o=v.ref(!1),s=v.ref(void 0),l=v.ref(10),u=v.ref([]),c=N=>{Io(N),Yt("theme",N,0)},f=N=>{N.indexOf("/iot/home")>-1&&(N="/iot/home/all"),N.indexOf("/iot/timeline")>-1&&(N="/iot/timeline/all"),i.value=N,Ks()},d=N=>{N.disabled||(f(N.key),n.push(N.key))},h=N=>{if(!N.disabled){if(N.children)return;f(N.key),n.push(N.key),o.value=!1}},p=N=>v.h("div",{onClick:()=>d(N)},{default:()=>N.label}),m=N=>v.h("div",{onClick:()=>h(N)},{default:()=>N.label}),g=N=>N.icon?v.h(O.NIcon,{size:24,onClick:()=>d(N)},{default:()=>N.icon&&N.icon()}):!1,y=N=>{e.qiankun?window.location.href=`${e.mainUrl||"https://www.partexiot.cn"}${N}`:n.replace(N)},w=()=>{o.value=!1},_=()=>{let N=oe.platformMainUrl||oe.platformUrl;oe.platformMainUrl==="auto"&&($.industryCategory==="0"?N="https://www.partexiot.cn":$.industryCategory==="1"&&(N="https://printing.partexiot.cn"));const A=[{label:()=>t("Platform.iot"),key:N}];return $.platform_tdm&&A.push({label:()=>t("Platform.tdm"),key:"/tdm/home"}),$.platform_qms&&A.push({label:()=>t("Platform.qms"),key:"/qms/home"}),$.platform_twin&&A.push({label:()=>t("Platform.twin"),key:"/twin/home"}),$.platform_maintain&&A.push({label:()=>t("Platform.maintain"),key:"/maintain/home"}),$.platform_order&&A.push({label:()=>t("Platform.order"),key:"/order/home"}),A},S=()=>{const N=[{label:$.tenantName,key:"tenantName"},{label:`${t("Common.dropdownMenu.theme")} ${oe.theme?t("Common.dropdownMenu.light"):t("Common.dropdownMenu.dark")}`,key:"theme"}];return oe.language&&N.push({label:`${t("Common.dropdownMenu.language")} ${oe.lang==="zh-CN"?"EN":"中文"}`,key:"language"}),N.push({label:t("Common.dropdownMenu.software"),key:"app",children:[{label:t("Common.dropdownMenu.android"),key:"android"},{label:t("Common.dropdownMenu.ios"),key:"ios"},{label:t("Common.dropdownMenu.chrome"),key:"chrome"},{label:t("Common.dropdownMenu.edge"),key:"edge"},{label:t("Common.dropdownMenu.dashboard_IoT"),key:"dashboard_IoT"},{label:t("Common.dropdownMenu.dashboard_Prt"),key:"dashboard_Prt"}]}),e.report&&N.push({label:t("Common.dropdownMenu.report"),key:"report"}),N.push({label:t("Common.dropdownMenu.info"),key:"info"},{label:t("Common.dropdownMenu.logout"),key:"logout"}),N},x=async N=>{N==="logout"&&Gv(),N==="theme"&&c(!oe.theme),N==="language"&&Ya(),N==="info"&&n.push("/custom/my"),N==="report"&&n.push("/custom/report"),N==="android"&&window.open("http://miiot.partexiot.cn/dk7u"),N==="ios"&&window.open("https://apps.apple.com/cn/app/id1587313547"),N==="chrome"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/chrome_installer.exe"),N==="edge"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/MicrosoftEdgeSetup.exe"),N==="dashboard_IoT"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/%E9%9B%B6%E6%8D%B7%E4%BA%92%E8%81%94IoT_v1.2.0.zip"),N==="dashboard_Prt"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/%E9%9B%B6%E6%8D%B7%E4%BA%92%E8%81%94%E5%8D%B0%E5%88%B7%E7%89%88_v1.2.0.zip")},C=()=>{zG().then(()=>{a.success({content:"续订请求已发送,七个工作日内将会有专人联系",duration:3e3})}).catch(()=>{a.error({content:()=>t("Notice.error"),duration:3e3})})},T=()=>{if($.tenantStatus===0&&$.renewalStatus===0){const N=document.getElementById("app");N&&N.classList.add("outrange"),a.info({action:()=>v.h(O.NFlex,{size:[15,15]},{default:()=>v.h(O.NButton,{class:"button-primary","on-click":()=>{C()}},{default:()=>"立即续订"})}),closable:!1,content:`您的订阅已于${Tr($.endTime)}到期,如需继续使用请联系我们`,title:"到期提示"})}if($.tenantStatus===2&&$.renewalStatus===0){let N=`您的订阅即将于${Tr($.endTime)}到期,请联系管理员进行续订`,A=[v.h(O.NButton,{secondary:!0,"on-click":()=>{a.destroyAll()}},{default:()=>"了解"})];$.kind===99&&(N=`您的订阅即将于${Tr($.endTime)}到期,为保证持续有效的提供服务请立即续订`,A=[v.h(O.NButton,{secondary:!0,"on-click":()=>{a.destroyAll()}},{default:()=>"稍后提示我"}),v.h(O.NButton,{class:"button-primary","on-click":()=>{C()}},{default:()=>"立即续订"})]),a.info({action:()=>v.h(O.NFlex,{size:[15,15]},{default:()=>A}),closable:!1,content:N,title:"温馨提示"})}},b=()=>{n.push(oe.platformUrl)};"backdropFilter"in document.documentElement.style||"WebkitBackdropFilter"in document.documentElement.style||document.body.classList.add("not-support-backdrop");const D=()=>{if($.tenantStatus===0){const N=document.body;N&&N.classList.add("outrange")}};return v.onMounted(()=>{T(),f(r.path),D(),u.value=_()}),v.watch(()=>r.path,N=>{f(N),D()}),v.watch(()=>oe.needUpdate,N=>{if(N){s.value=setInterval(()=>{l.value=l.value-1,l.value<=0&&(clearInterval(window.versionMonitor),clearInterval(s.value),s.value=void 0,A.destroy())},1e3);const A=a.create({title:"检测到系统有新版本需要更新",content:()=>`是否立即更新?更新需要重新加载页面,请确保所有项目都已经保存完毕。${l.value}秒后自动关闭`,meta:Tr(new Date,"yyyy-MM-dd hh:mm:ss"),onClose:()=>{clearInterval(window.versionMonitor)},action:()=>v.h(O.NFlex,{justify:"space-between"},{default:()=>[v.h(O.NButton,{quaternary:!0,onClick:()=>{clearInterval(window.versionMonitor),A.destroy()}},{default:()=>"稍后"}),v.h(O.NButton,{type:"primary",onClick:()=>{window.location.reload()}},{default:()=>"更新"})]})})}}),{userStore:$,commonStore:oe,activeMenu:i,platformOption:u,showMenu:o,fnSetLang:Ya,setDropdownMenu:S,renderMenuLabel:p,renderMenuLabel2:m,renderMenuIcon:g,indexClick:b,platformClick:y,dropdownClick:x,changeTheme:c,closeModel:w}}}),n9={class:"oc-header"},a9={class:"menu"};function i9(e,t,r,n,a,i){const o=v.resolveComponent("IconGridDots"),s=v.resolveComponent("NIcon"),l=v.resolveComponent("NButton"),u=v.resolveComponent("NDropdown"),c=v.resolveComponent("IconNavigation"),f=v.resolveComponent("NMenu"),d=v.resolveComponent("Pop"),h=v.resolveComponent("Message"),p=v.resolveComponent("IconWeatherMoon"),m=v.resolveComponent("IconWeatherSunny"),g=v.resolveComponent("IconUser"),y=v.resolveComponent("NDrawerContent"),w=v.resolveComponent("NDrawer");return v.openBlock(),v.createElementBlock("header",n9,[e.platformOption.length>1?(v.openBlock(),v.createBlock(u,{key:0,trigger:"hover",placement:"bottom-start",size:"huge",options:e.platformOption,onSelect:e.platformClick},{default:v.withCtx(()=>[v.createVNode(l,{style:{padding:"0 14px 0 0"}},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(o)]),_:1})]),_:1})]),_:1},8,["options","onSelect"])):v.createCommentVNode("",!0),v.createElementVNode("a",{href:"javascript:;",class:"logo",onClick:t[0]||(t[0]=(..._)=>e.indexClick&&e.indexClick(..._))}),e.commonStore.isPad?v.createCommentVNode("",!0):(v.openBlock(),v.createElementBlock("a",{key:1,href:"javascript:;",class:"platform-txt",onClick:t[1]||(t[1]=(..._)=>e.indexClick&&e.indexClick(..._))}," | "+v.toDisplayString(e.commonStore.platformName()),1)),v.createElementVNode("div",a9,[e.commonStore.isPad?(v.openBlock(),v.createBlock(l,{key:0,onClick:t[2]||(t[2]=_=>e.showMenu=!0)},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(c)]),_:1})]),_:1})):(v.openBlock(),v.createBlock(f,{key:1,value:e.activeMenu,mode:"horizontal",options:e.menuOptions,"render-icon":e.renderMenuIcon,"render-label":e.renderMenuLabel,class:"oc-header-menu"},null,8,["value","options","render-icon","render-label"])),e.download&&!e.commonStore.isPad?(v.openBlock(),v.createBlock(d,{key:2})):v.createCommentVNode("",!0),e.message&&!e.commonStore.isPad?(v.openBlock(),v.createBlock(h,{key:3})):v.createCommentVNode("",!0),e.commonStore.isPad?v.createCommentVNode("",!0):(v.openBlock(),v.createBlock(l,{key:4,style:{"margin-left":"15px"},onClick:t[3]||(t[3]=_=>e.changeTheme(!e.commonStore.theme))},{icon:v.withCtx(()=>[v.withDirectives(v.createVNode(s,{color:"#8e54c8"},{default:v.withCtx(()=>[v.createVNode(p)]),_:1},512),[[v.vShow,e.commonStore.theme]]),v.withDirectives(v.createVNode(s,{color:"#f2a651"},{default:v.withCtx(()=>[v.createVNode(m)]),_:1},512),[[v.vShow,!e.commonStore.theme]])]),_:1})),e.commonStore.language&&!e.commonStore.isPad?(v.openBlock(),v.createBlock(l,{key:5,class:"com-header-icon",onClick:t[4]||(t[4]=_=>e.fnSetLang())},{default:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(e.commonStore.lang==="zh-CN"?"EN":"中文"),1)]),_:1})):v.createCommentVNode("",!0),e.userStore.name?(v.openBlock(),v.createBlock(u,{key:6,trigger:"click",placement:"bottom-end",options:e.setDropdownMenu(),onSelect:e.dropdownClick},{default:v.withCtx(()=>[v.createVNode(l,{text:"",class:"user",title:e.userStore.name},v.createSlots({default:v.withCtx(()=>[e.commonStore.isPad?v.createCommentVNode("",!0):(v.openBlock(),v.createElementBlock(v.Fragment,{key:0},[v.createTextVNode(v.toDisplayString(e.userStore.name),1)],64))]),_:2},[e.commonStore.isPad?{name:"icon",fn:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(g)]),_:1})]),key:"0"}:void 0]),1032,["title"])]),_:1},8,["options","onSelect"])):v.createCommentVNode("",!0)]),v.createVNode(w,{show:e.showMenu,"onUpdate:show":t[5]||(t[5]=_=>e.showMenu=_)},{default:v.withCtx(()=>[v.createVNode(y,{title:e.commonStore.platformName(),"native-scrollbar":!1,closable:""},{default:v.withCtx(()=>[v.createVNode(f,{value:e.activeMenu,"default-expand-all":!0,options:e.menuOptions,"render-label":e.renderMenuLabel2},null,8,["value","options","render-label"])]),_:1},8,["title"])]),_:1},8,["show"])])}const eC=X(r9,[["render",i9]]),tC=e=>{const t=new FormData;return Object.keys(e).forEach(r=>{e.query&&r==="query"?t.append("query",JSON.stringify(e.query)):t.append(r,e[r])}),$v("api/manager/job/submit",t)},o9=e=>new Promise((t,r)=>{const n=Po(e);ut("api/manager/job/page",n).then(a=>{const i=Eo(a);t(i)}).catch(()=>{r()})}),s9=(e,t={})=>JS(e,t,"blob"),l9=v.defineComponent({name:"OcImporter",components:{IconDismiss:cn,IconArrowClockwise:Wa,IconMailInboxAdd:Mo,IconCloudArrowDown:Zl,NModal:O.NModal,NCard:O.NCard,NFlex:O.NFlex,NUpload:O.NUpload,NButton:O.NButton,NTooltip:O.NTooltip,NIcon:O.NIcon,NDataTable:O.NDataTable},props:{show:{required:!0,type:Boolean,default:!1},data:{required:!0,type:Object,default:()=>({type:"",file:""})}},emits:["update:show"],setup(e,{emit:t}){const{t:r}=Kt.useI18n(),n=O.useNotification(),a=v.ref(!1),i=v.ref(!1),o=v.ref({page:1,pageCount:1,pageSize:30}),s=v.ref([{title:"#",width:60,align:"center",key:"index",render(m,g){return v.h("span",{},{default:()=>g+1})}},{title:r("Common.importer.fileName"),key:"jobName",fixed:"left"},{title:r("Common.importer.status"),key:"jobStatus",width:120,render(m){let g=r("Common.processing");return m.jobStatus===1&&(g=r("Common.success")),m.jobStatus===2&&(g=r("Common.failed")),v.h("span",{},{default:()=>g})}},{title:r("Common.importer.createTime"),key:"commitTime",width:200,render(m){return v.h("div",{},{default:()=>Tr(m.commitTime,"yyyy-MM-dd hh:mm:ss")})}},{title:r("Common.action"),key:"action",align:"center",fixed:"right",width:120,render(m){return pn([{type:"custom",disabled:m.jobStatus===0,onClick:()=>{window.open(m.downloadUrl)},icon:Ao,color:"success",tooltipText:()=>r("Common.importer.btnDownload")}])}}]),l=v.ref([]),u=()=>{t("update:show",!1)},c=m=>{o.value.page=m,h()},f=m=>{o.value.pageSize=m,o.value.page=1,h()},d=m=>new Promise((g,y)=>{m.file.file&&tC({jobType:"IMPORT",jobTypeName:e.data.type,jobParams:e.data.params,file:m.file.file}).then(()=>{h(),g()}).catch(()=>{h(),y()}),y()}),h=()=>{i.value=!0,o9({jobType:"IMPORT",jobTypeName:e.data.type,query:o.value}).then(m=>{i.value=!1,l.value=m.records,o.value=m.query}).catch(()=>{i.value=!1})},p=()=>{e.data.steam?s9(e.data.file).then(m=>{const g=document.createElement("a");g.style.display="none",g.download="刀组品号导入模板.xls",g.href=URL.createObjectURL(m),document.body.appendChild(g),g.click(),URL.revokeObjectURL(g.href),document.body.removeChild(g)}).catch(()=>{n.error({content:()=>r("Notice.error"),duration:3e3})}):window.open(`${e.data.file}?v=${Date.now()}`)};return v.watch(()=>e.show,m=>{a.value=m,m&&(o.value={page:1,pageCount:1,pageSize:30},h())}),{modal:a,columns:s,coldata:l,query:o,loading:i,init:h,closeModel:u,pageChange:c,pageSizeChange:f,beforeUpload:d,downloadFile:p}}}),u9={class:"oc-header-download"};function c9(e,t,r,n,a,i){const o=v.resolveComponent("IconMailInboxAdd"),s=v.resolveComponent("NIcon"),l=v.resolveComponent("NButton"),u=v.resolveComponent("NUpload"),c=v.resolveComponent("IconCloudArrowDown"),f=v.resolveComponent("IconArrowClockwise"),d=v.resolveComponent("NTooltip"),h=v.resolveComponent("IconDismiss"),p=v.resolveComponent("NFlex"),m=v.resolveComponent("NDataTable"),g=v.resolveComponent("NCard"),y=v.resolveComponent("NModal");return v.openBlock(),v.createBlock(y,{show:e.modal,"onUpdate:show":t[0]||(t[0]=w=>e.modal=w),"on-mask-click":e.closeModel},{default:v.withCtx(()=>[v.createVNode(g,{style:{width:"900px"}},{header:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(e.$t("Common.importer.title"))+" ",1),v.createElementVNode("span",u9,v.toDisplayString(e.$t("Common.validDays")),1)]),"header-extra":v.withCtx(()=>[v.createVNode(p,{justify:"end",wrap:!1},{default:v.withCtx(()=>[v.createVNode(u,{"on-before-upload":e.beforeUpload,accept:".xlsx,.xls","show-file-list":!1},{default:v.withCtx(()=>[v.createVNode(l,null,{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(o)]),_:1})]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.importer.file")),1)]),_:1})]),_:1},8,["on-before-upload"]),v.renderSlot(e.$slots,"default"),v.createVNode(l,{onClick:e.downloadFile},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(c)]),_:1})]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.importer.download")),1)]),_:1},8,["onClick"]),v.createVNode(d,{trigger:"hover"},{trigger:v.withCtx(()=>[v.createVNode(l,{loading:e.loading,onClick:e.init},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(f)]),_:1})]),_:1},8,["loading","onClick"])]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.refresh")),1)]),_:1}),v.createVNode(l,{quaternary:"",onClick:e.closeModel},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(h)]),_:1})]),_:1},8,["onClick"])]),_:3})]),default:v.withCtx(()=>[v.createVNode(m,{columns:e.columns,data:e.coldata,pagination:e.query,loading:e.loading,"on-update:page":e.pageChange,"on-update:page-size":e.pageSizeChange,"min-height":"500","max-height":"500","scroll-x":"600",remote:""},null,8,["columns","data","pagination","loading","on-update:page","on-update:page-size"])]),_:3})]),_:3},8,["show","on-mask-click"])}const Hv=X(l9,[["render",c9]]),f9=v.defineComponent({name:"OcLogin",components:{NTabs:O.NTabs,NTabPane:O.NTabPane,NForm:O.NForm,NFormItem:O.NFormItem,NDropdown:O.NDropdown,NInput:O.NInput,NButton:O.NButton,NGrid:O.NGrid,NGi:O.NGi,NIcon:O.NIcon,NPopover:O.NPopover,IconWeatherSunny:Yl,IconWeatherMoon:Wl},props:{bg:{type:String,default:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/login.png"},version:{type:String,default:""},info:{required:!1,type:Object,default:()=>({href:"",text:""})}},setup(){const{t:e}=Kt.useI18n(),t=O.useNotification(),r=$t.useRouter(),n=v.ref(Et("loginTab","1")),a=v.ref(),i=v.ref(),o=v.ref(),s=v.ref(),l=v.ref(!1),u=v.ref(!1),c=v.ref(!1),f=v.ref(!1),d=v.ref({phone:"",name:"",password:""}),h=v.ref({name:{required:!0,message:()=>e("Common.login.userNameMessage"),trigger:"blur"},phone:{required:!0,validator:(E,B)=>B?/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(B):!1,message:()=>e("Common.login.mobileMessage"),trigger:"blur"},password:{required:!0,message:()=>e("Common.login.passwordMessage"),trigger:"input"}}),p=v.ref([]),m=v.ref([]),g=v.ref([]),y=v.ref([]),w=()=>{const E=Et("loginOption",{}),B=[];Object.keys(E).forEach(R=>{B.push({label:R,key:R})}),p.value=B,m.value=B},_=()=>{const E=Et("phoneOption",{}),B=[];Object.keys(E).forEach(R=>{B.push({label:R,key:R})}),g.value=B,y.value=B},S=E=>{Yt("token",E,0),Fu().then(B=>{t.success({content:()=>e("Notice.success"),duration:3e3}),B.kind!==1&&r.replace(oe.platformUrl)}).catch(()=>{t.error({content:()=>e("Notice.error"),duration:3e3}),d.value.password="",u.value=!1})},x=()=>{var E,B;u.value||(u.value=!0,n.value==="0"?(E=i.value)==null||E.validate(R=>{R?u.value=!1:H0({type:n.value,...d.value}).then(V=>{const z=Et("loginOption",{});z[d.value.name]=!0,Yt("loginOption",z,0),S(V)}).catch(()=>{d.value.password="",u.value=!1})}):(B=a.value)==null||B.validate(R=>{R?u.value=!1:H0({type:n.value,...d.value}).then(V=>{const z=Et("phoneOption",{});z[d.value.name]=!0,Yt("phoneOption",z,0),S(V)}).catch(()=>{d.value.password="",u.value=!1})}))},C=E=>{d.value.name=E;const B=m.value.filter(R=>R.label.indexOf(E)>-1);p.value=B,B.length===0?f.value=!1:f.value=!0},T=E=>{d.value.name=E,f.value=!1,o.value.focus(),setTimeout(()=>{var B;(B=i.value)==null||B.restoreValidation()},80)},b=E=>{var B;p.value.length===0?f.value=!1:f.value=E,(B=i.value)==null||B.restoreValidation()},D=E=>{d.value.phone=E;const B=y.value.filter(R=>R.label.indexOf(E)>-1);g.value=B,B.length===0?c.value=!1:c.value=!0},N=E=>{d.value.phone=E,c.value=!1,s.value.focus(),setTimeout(()=>{var B;(B=a.value)==null||B.restoreValidation()},80)},A=E=>{var B;g.value.length===0?c.value=!1:c.value=E,(B=a.value)==null||B.restoreValidation()},M=E=>{l.value=E,Io(E),Yt("theme",E,0)},I=E=>{var B,R;n.value=E,d.value={phone:"",name:"",password:""},Yt("loginTab",E,0),(B=i.value)==null||B.restoreValidation(),(R=a.value)==null||R.restoreValidation()},P=E=>v.h("div",{style:{position:"relative"}},{default:()=>[v.h("div",{},{default:()=>E.label}),v.h(cn,{class:"oc-login-drop-menu",onclick:B=>{B.stopPropagation(),B.stopImmediatePropagation();const R=Et("loginOption",{});delete R[E.label],Yt("loginOption",R,0),w();const V=d.value.name,z=m.value.filter(Y=>Y.label.indexOf(V)>-1);p.value=z}},{default:()=>""})]}),L=E=>v.h("div",{style:{position:"relative"}},{default:()=>[v.h("div",{},{default:()=>E.label}),v.h(cn,{class:"oc-login-drop-menu",onclick:B=>{B.stopPropagation(),B.stopImmediatePropagation();const R=Et("phoneOption",{});delete R[E.label],Yt("phoneOption",R,0),_();const V=d.value.name,z=y.value.filter(Y=>Y.label.indexOf(V)>-1);g.value=z}},{default:()=>""})]});return zu(),ko("token"),w(),_(),{tabs:n,commonStore:oe,pwdRef:o,pwdPhoneRef:s,formRef:i,formPhoneRef:a,formValue:d,formRules:h,showPhoneDropdown:c,showNameDropdown:f,optionsName:p,optionsPhone:g,loading:u,theme:l,submit:x,tabChange:I,nameChange:C,phoneChange:D,changeTheme:M,fnSetLang:Ya,dropNameSelect:T,dropPhoneSelect:N,showDropdownNameChange:b,showDropdownPhoneChange:A,renderDropdownNameLabel:P,renderDropdownPhoneLabel:L}}}),h9={class:"oc-login"},d9={class:"oc-login-left"},v9=["src"],p9={class:"oc-login-right"},g9={class:"oc-login-language"},m9=v.createElementVNode("div",{class:"oc-login-title"},null,-1),y9={class:"oc-login-platform"},_9={class:"oc-login-form"},w9=v.createElementVNode("br",null,null,-1),b9=v.createElementVNode("br",null,null,-1),S9={class:"oc-login-submit"},C9=["href"],x9=v.createElementVNode("div",{class:"oc-google-play"},null,-1),T9=v.createElementVNode("img",{src:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/android_qr.png",alt:"AndroidQr",width:"300",height:"300"},null,-1),N9=v.createElementVNode("div",{class:"oc-app-store"},null,-1),D9=v.createElementVNode("img",{src:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/ios_qr.png",alt:"iOSQr",width:"300",height:"300"},null,-1),A9={class:"oc-login-footer"},M9=v.createElementVNode("span",{style:{"font-family":"Arial, Helvetica, sans-serif"}},"©",-1),k9=v.createElementVNode("a",{href:"https://beian.miit.gov.cn/",target:"_blank",class:"oc-footer-record"}," 沪ICP备 18025935号-3 ",-1);function E9(e,t,r,n,a,i){const o=v.resolveComponent("IconWeatherMoon"),s=v.resolveComponent("NIcon"),l=v.resolveComponent("IconWeatherSunny"),u=v.resolveComponent("NButton"),c=v.resolveComponent("NInput"),f=v.resolveComponent("NDropdown"),d=v.resolveComponent("NFormItem"),h=v.resolveComponent("NForm"),p=v.resolveComponent("NTabPane"),m=v.resolveComponent("NTabs"),g=v.resolveComponent("NPopover"),y=v.resolveComponent("NGi"),w=v.resolveComponent("NGrid");return v.openBlock(),v.createElementBlock("div",h9,[v.createElementVNode("div",d9,[v.createElementVNode("img",{src:e.bg,alt:"logo",class:"oc-login-img"},null,8,v9)]),v.createElementVNode("div",p9,[v.createElementVNode("div",g9,[v.createVNode(u,{onClick:t[0]||(t[0]=_=>e.changeTheme(!e.theme))},{icon:v.withCtx(()=>[v.withDirectives(v.createVNode(s,{color:"#8e54c8"},{default:v.withCtx(()=>[v.createVNode(o)]),_:1},512),[[v.vShow,e.theme]]),v.withDirectives(v.createVNode(s,{color:"#f2a651"},{default:v.withCtx(()=>[v.createVNode(l)]),_:1},512),[[v.vShow,!e.theme]])]),_:1}),e.commonStore.language?(v.openBlock(),v.createBlock(u,{key:0,onClick:t[1]||(t[1]=_=>e.fnSetLang())},{default:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(e.commonStore.lang==="zh-CN"?"EN":"中文"),1)]),_:1})):v.createCommentVNode("",!0)]),m9,v.createElementVNode("div",y9,v.toDisplayString(e.commonStore.platformName()),1),v.createElementVNode("div",_9,[v.createVNode(m,{value:e.tabs,"on-update:value":e.tabChange,type:"segment","justify-content":"end",animated:""},{default:v.withCtx(()=>[v.createVNode(p,{name:"1",tab:e.$t("Common.login.mobile")},{default:v.withCtx(()=>[w9,v.createVNode(h,{ref:"formPhoneRef",model:e.formValue,rules:e.formRules,"show-require-mark":!1,"label-placement":"top",onKeyup:v.withKeys(e.submit,["enter"])},{default:v.withCtx(()=>[v.createVNode(d,{label:e.$t("Common.login.mobile"),path:"phone"},{default:v.withCtx(()=>[v.createVNode(f,{show:e.showPhoneDropdown,options:e.optionsPhone,"render-label":e.renderDropdownPhoneLabel,width:"trigger",onClickoutside:t[5]||(t[5]=()=>{e.showPhoneDropdown=!1}),onSelect:e.dropPhoneSelect},{default:v.withCtx(()=>[v.createVNode(c,{value:e.formValue.phone,"onUpdate:value":t[2]||(t[2]=_=>e.formValue.phone=_),placeholder:e.$t("Common.login.mobilePlaceholder"),"on-update:value":e.phoneChange,onClick:t[3]||(t[3]=_=>e.showDropdownPhoneChange(!0)),onFocus:t[4]||(t[4]=_=>e.showDropdownPhoneChange(!0))},null,8,["value","placeholder","on-update:value"])]),_:1},8,["show","options","render-label","onSelect"])]),_:1},8,["label"]),v.createVNode(d,{label:e.$t("Common.login.password"),path:"password"},{default:v.withCtx(()=>[v.createVNode(c,{ref:"pwdPhoneRef",value:e.formValue.password,"onUpdate:value":t[6]||(t[6]=_=>e.formValue.password=_),type:"password","show-password-on":"click",placeholder:e.$t("Common.login.passwordPlaceholder"),onFocus:t[7]||(t[7]=_=>e.showDropdownPhoneChange(!1))},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules","onKeyup"])]),_:1},8,["tab"]),v.createVNode(p,{name:"0",tab:e.$t("Common.login.userName")},{default:v.withCtx(()=>[b9,v.createVNode(h,{ref:"formRef",model:e.formValue,rules:e.formRules,"show-require-mark":!1,"label-placement":"top",onKeyup:v.withKeys(e.submit,["enter"])},{default:v.withCtx(()=>[v.createVNode(d,{label:e.$t("Common.login.userName"),path:"name"},{default:v.withCtx(()=>[v.createVNode(f,{show:e.showNameDropdown,options:e.optionsName,"render-label":e.renderDropdownNameLabel,width:"trigger",onClickoutside:t[11]||(t[11]=()=>{e.showNameDropdown=!1}),onSelect:e.dropNameSelect},{default:v.withCtx(()=>[v.createVNode(c,{value:e.formValue.name,"onUpdate:value":t[8]||(t[8]=_=>e.formValue.name=_),placeholder:e.$t("Common.login.userNamePlaceholder"),"on-update:value":e.nameChange,onClick:t[9]||(t[9]=_=>e.showDropdownNameChange(!0)),onFocus:t[10]||(t[10]=_=>e.showDropdownNameChange(!0))},null,8,["value","placeholder","on-update:value"])]),_:1},8,["show","options","render-label","onSelect"])]),_:1},8,["label"]),v.createVNode(d,{label:e.$t("Common.login.password"),path:"password"},{default:v.withCtx(()=>[v.createVNode(c,{ref:"pwdRef",value:e.formValue.password,"onUpdate:value":t[12]||(t[12]=_=>e.formValue.password=_),type:"password","show-password-on":"click",placeholder:e.$t("Common.login.passwordPlaceholder")},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules","onKeyup"])]),_:1},8,["tab"])]),_:1},8,["value","on-update:value"]),v.createElementVNode("div",S9,[v.createVNode(u,{loading:e.loading,class:"button-primary",onClick:e.submit},{default:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(e.$t("Common.login.in")),1)]),_:1},8,["loading","onClick"])]),e.info.href?(v.openBlock(),v.createElementBlock("a",{key:0,href:e.info.href,class:"oc-login-other"},v.toDisplayString(e.info.text),9,C9)):v.createCommentVNode("",!0),v.createVNode(w,{"x-gap":"15",cols:2},{default:v.withCtx(()=>[v.createVNode(y,null,{default:v.withCtx(()=>[v.createVNode(g,{trigger:"hover",placement:"top"},{trigger:v.withCtx(()=>[x9]),default:v.withCtx(()=>[T9]),_:1})]),_:1}),v.createVNode(y,null,{default:v.withCtx(()=>[v.createVNode(g,{trigger:"hover",placement:"top"},{trigger:v.withCtx(()=>[N9]),default:v.withCtx(()=>[D9]),_:1})]),_:1})]),_:1})]),v.createElementVNode("footer",A9,[v.createTextVNode(" Copyright "),M9,v.createTextVNode(" 2020-2024 "+v.toDisplayString(e.$t("Common.title"))+" ",1),e.version?(v.openBlock(),v.createElementBlock(v.Fragment,{key:0},[v.createTextVNode("v"+v.toDisplayString(e.version)+" ",1)],64)):v.createCommentVNode("",!0),k9])])])}const rC=X(f9,[["render",E9]]),P9=v.defineComponent({name:"OcNumberRoll",props:{value:{required:!0,type:[Number,String],default:0},duration:{type:Number,default:1e3},precision:{type:Number,default:0},format:{type:Function,default:void 0}},setup(e){const t=v.ref(!1),r=v.ref(0),n=s=>1-Math.pow(1-s,5),a=s=>e.format?e.format(s):s;function i(s,l,u=e.duration){const c=()=>{const d=performance.now(),h=Math.min(d-f,u),p=s+(l-s)*n(h/u);if(h===u){r.value=a(Number(e.value)),t.value=!1;return}const m=Number(p.toFixed(e.precision));r.value=a(m),requestAnimationFrame(c)},f=performance.now();c()}const o=(s=0,l=e.value)=>{t.value=!0,r.value=a(s),String(s)!==String(l)&&i(s,Number(l))};return v.watch(()=>e.value,(s,l)=>{o(Number(l)||0,Number(s))}),v.onMounted(()=>{o()}),{displayedValueRef:r}}});function I9(e,t,r,n,a,i){return v.toDisplayString(e.displayedValueRef)}const Uv=X(P9,[["render",I9]]),L9=v.defineComponent({name:"OcLogo",components:{NGrid:O.NGrid,NGi:O.NGi,NDivider:O.NDivider,NumberRoll:Uv},props:{text:{type:String,default:"智能效率监测平台"}},setup(){const e=v.ref(Date.now()),t=v.ref(void 0),r=n=>Tr(n,"yyyy-MM-dd hh:mm:ss");return v.onMounted(()=>{t.value=setInterval(()=>{e.value=Date.now()},1e3)}),v.onBeforeUnmount(()=>{clearInterval(t.value),t.value=void 0}),{time:e,numFormat:r}}}),O9=v.createElementVNode("div",{class:"oc-logo"},null,-1);function R9(e,t,r,n,a,i){const o=v.resolveComponent("NGi"),s=v.resolveComponent("NDivider"),l=v.resolveComponent("NumberRoll"),u=v.resolveComponent("NGrid");return v.openBlock(),v.createBlock(u,{cols:5,class:"oc-dashboard-logo"},{default:v.withCtx(()=>[v.createVNode(o,{span:"1",class:"flex-center-left"},{default:v.withCtx(()=>[O9]),_:1}),v.createVNode(o,{span:"3",class:"flex-center"},{default:v.withCtx(()=>[v.createVNode(s,{class:"oc-dashboard-title-show"},{default:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(e.text),1)]),_:1})]),_:1}),v.createVNode(o,{span:"1",class:"flex-center-right oc-time"},{default:v.withCtx(()=>[v.createVNode(l,{value:e.time,format:e.numFormat},null,8,["value","format"])]),_:1})]),_:1})}const nC=X(L9,[["render",R9]]);O.darkTheme.common.cardColor="#32323b";O.darkTheme.common.primaryColor="#b274ef";O.darkTheme.common.primaryColorHover="#b274ef";O.darkTheme.common.borderRadius="16px";O.darkTheme.common.borderRadiusSmall="8px";O.darkTheme.DataTable.tdColor="#2d2d31";const aC={common:{borderRadius:"16px",borderRadiusSmall:"8px",primaryColor:"#8e54c8",primaryColorHover:"#9b66d0",primaryColorPressed:"#8e54c8",primaryColorSuppl:"#8e54c8",infoColor:"#2080f0",infoColorHover:"#57a4fd",infoColorPressed:"#2080f0",infoColorSuppl:"#2080f0",successColor:"#5dae57",successColorHover:"#70ce69",successColorPressed:"#5dae57",successColorSuppl:"#5dae57",warningColor:"#f0973a",warningColorHover:"#ffb05d",warningColorPressed:"#f0973a",warningColorSuppl:"#f0973a",errorColor:"#e65444",errorColorHover:"#fc6c5d",errorColorPressed:"#e65444",errorColorSuppl:"#e65444",cardColor:"#fff"},Button:{textColor:"rgb(var(--font))"},Notification:{borderRadius:"16px"}},iC=O.darkTheme,B9=v.defineComponent({name:"OcMain",components:{NConfigProvider:O.NConfigProvider,NDialogProvider:O.NDialogProvider,NNotificationProvider:O.NNotificationProvider},props:{hljs:{type:Object,default:void 0}},setup(){return{zhCN:O.zhCN,dateZhCN:O.dateZhCN,commonStore:oe,lightTheme:aC,darkTheme:iC}}});function V9(e,t,r,n,a,i){const o=v.resolveComponent("NNotificationProvider"),s=v.resolveComponent("NDialogProvider"),l=v.resolveComponent("NConfigProvider");return v.openBlock(),v.createBlock(l,{theme:e.commonStore.theme?{name:"darkTheme"}:null,"theme-overrides":e.commonStore.theme?e.darkTheme:e.lightTheme,locale:e.commonStore.lang==="zh-CN"?e.zhCN:null,"date-locale":e.commonStore.lang==="zh-CN"?e.dateZhCN:null,hljs:e.hljs,"inline-theme-disabled":"",abstract:""},{default:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(o,{placement:"top"},{default:v.withCtx(()=>[v.renderSlot(e.$slots,"default")]),_:3})]),_:3})]),_:3},8,["theme","theme-overrides","locale","date-locale","hljs"])}const oC=X(B9,[["render",V9]]),$9=e=>{const t=JSON.parse(JSON.stringify(e));return t.oldPassword=Bs(t.oldPassword),t.newPassword=Bs(t.newPassword),t.comfirmPassword=Bs(t.comfirmPassword),ut("api/auth/user/modifyPassword",t)},F9=e=>ut("api/auth/user/update",e),z9=v.defineComponent({name:"OcMy",components:{NGrid:O.NGrid,NGi:O.NGi,NForm:O.NForm,NFormItem:O.NFormItem,NInput:O.NInput,NButton:O.NButton},setup(){const{t:e}=Kt.useI18n(),t=O.useNotification(),r=v.ref(),n=v.ref(),a=v.ref(!1),i=v.ref({oldPassword:"",newPassword:"",comfirmPassword:""}),o=v.ref({oldPassword:{required:!0,message:()=>e("Common.my.oldPasswordMessage"),trigger:"blur"},newPassword:{required:!0,message:()=>e("Common.my.newPasswordMessage"),trigger:"blur"},comfirmPassword:{required:!0,message:()=>e("Common.my.checkPasswordMessage"),trigger:"blur"}}),s=v.ref($),l=v.ref({email:{required:!1,trigger:"blur",validator:(f,d)=>d?/^[0-9a-zA-Z_.-]+[@][0-9a-zA-Z_.-]+([.][a-zA-Z]+){1,2}$/.test(d):!0,message:()=>e("Common.my.emailMessage")},phone:{required:!1,trigger:"blur",validator:(f,d)=>d?/^[1][3,4,5,7,8,9][0-9]{9}$/.test(d):!0,message:()=>e("Common.my.phoneMessage")}});return{formRef:n,pwdRef:r,pwdValue:i,formValue:s,pwdRules:o,formRules:l,loading:a,pwdSubmit:()=>{var f;a.value||(a.value=!0,(f=r.value)==null||f.validate(d=>{d?a.value=!1:$9(i.value).then(()=>{var h;i.value={oldPassword:"",newPassword:"",comfirmPassword:""},(h=r.value)==null||h.restoreValidation(),t.success({content:()=>e("Notice.success"),duration:3e3}),setTimeout(()=>{window.location.href="/login"},1e3)}).catch(()=>{a.value=!1})}))},formSubmit:()=>{var f;a.value||(a.value=!0,(f=n.value)==null||f.validate(d=>{d?a.value=!1:F9(s.value).then(()=>{t.success({content:()=>e("Notice.success"),duration:3e3}),a.value=!1,Fu().catch(()=>null)}).catch(()=>{a.value=!1})}))}}}}),G9={class:"com-card"},H9={class:"com-title"},U9=v.createElementVNode("br",null,null,-1),W9={class:"text-right"},Y9={class:"com-card"},q9={class:"com-title"},j9=v.createElementVNode("br",null,null,-1),X9={class:"text-right"};function Z9(e,t,r,n,a,i){const o=v.resolveComponent("NInput"),s=v.resolveComponent("NFormItem"),l=v.resolveComponent("NForm"),u=v.resolveComponent("NButton"),c=v.resolveComponent("NGi"),f=v.resolveComponent("NGrid");return v.openBlock(),v.createBlock(f,{"x-gap":"15","y-gap":"15",cols:2},{default:v.withCtx(()=>[v.createVNode(c,{span:"1"},{default:v.withCtx(()=>[v.createElementVNode("div",G9,[v.createElementVNode("div",H9,v.toDisplayString(e.$t("Common.my.title")),1),U9,v.createVNode(l,{ref:"formRef",model:e.formValue,rules:e.formRules,"label-placement":"top"},{default:v.withCtx(()=>[v.createVNode(s,{label:e.$t("Common.my.tenantCode"),path:"tenantLoginCode"},{default:v.withCtx(()=>[v.createVNode(o,{value:e.formValue.tenantLoginCode,"onUpdate:value":t[0]||(t[0]=d=>e.formValue.tenantLoginCode=d),readonly:""},null,8,["value"])]),_:1},8,["label"]),v.createVNode(s,{label:e.$t("Common.my.tenantName"),path:"tenantName"},{default:v.withCtx(()=>[v.createVNode(o,{value:e.formValue.tenantName,"onUpdate:value":t[1]||(t[1]=d=>e.formValue.tenantName=d),readonly:""},null,8,["value"])]),_:1},8,["label"]),v.createVNode(s,{label:e.$t("Common.my.name"),path:"name"},{default:v.withCtx(()=>[v.createVNode(o,{value:e.formValue.name,"onUpdate:value":t[2]||(t[2]=d=>e.formValue.name=d),readonly:""},null,8,["value"])]),_:1},8,["label"]),v.createVNode(s,{label:e.$t("Common.my.email"),path:"email"},{default:v.withCtx(()=>[v.createVNode(o,{value:e.formValue.email,"onUpdate:value":t[3]||(t[3]=d=>e.formValue.email=d),placeholder:"邮箱"},null,8,["value"])]),_:1},8,["label"]),v.createVNode(s,{label:e.$t("Common.my.realName"),path:"realName"},{default:v.withCtx(()=>[v.createVNode(o,{value:e.formValue.realName,"onUpdate:value":t[4]||(t[4]=d=>e.formValue.realName=d),placeholder:"真实姓名"},null,8,["value"])]),_:1},8,["label"]),v.createVNode(s,{label:e.$t("Common.my.phone"),path:"phone"},{default:v.withCtx(()=>[v.createVNode(o,{value:e.formValue.phone,"onUpdate:value":t[5]||(t[5]=d=>e.formValue.phone=d),placeholder:"手机"},null,8,["value"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),v.createElementVNode("div",W9,[v.createVNode(u,{loading:e.loading,class:"button-primary",onClick:e.formSubmit},{default:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(e.$t("Common.my.submit")),1)]),_:1},8,["loading","onClick"])])])]),_:1}),v.createVNode(c,{span:"1"},{default:v.withCtx(()=>[v.createElementVNode("div",Y9,[v.createElementVNode("div",q9,v.toDisplayString(e.$t("Common.my.password")),1),j9,v.createVNode(l,{ref:"pwdRef",model:e.pwdValue,rules:e.pwdRules,"label-placement":"top"},{default:v.withCtx(()=>[v.createVNode(s,{label:e.$t("Common.my.oldPassword"),path:"oldPassword"},{default:v.withCtx(()=>[v.createVNode(o,{value:e.pwdValue.oldPassword,"onUpdate:value":t[6]||(t[6]=d=>e.pwdValue.oldPassword=d),type:"password",placeholder:e.$t("Common.my.oldPassword"),"show-password-on":"click"},null,8,["value","placeholder"])]),_:1},8,["label"]),v.createVNode(s,{label:e.$t("Common.my.newPassword"),path:"newPassword"},{default:v.withCtx(()=>[v.createVNode(o,{value:e.pwdValue.newPassword,"onUpdate:value":t[7]||(t[7]=d=>e.pwdValue.newPassword=d),type:"password",placeholder:e.$t("Common.my.newPassword"),"show-password-on":"click"},null,8,["value","placeholder"])]),_:1},8,["label"]),v.createVNode(s,{label:e.$t("Common.my.checkPassword"),path:"comfirmPassword"},{default:v.withCtx(()=>[v.createVNode(o,{value:e.pwdValue.comfirmPassword,"onUpdate:value":t[8]||(t[8]=d=>e.pwdValue.comfirmPassword=d),type:"password",placeholder:e.$t("Common.my.checkPassword"),"show-password-on":"click"},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules"]),v.createElementVNode("div",X9,[v.createVNode(u,{loading:e.loading,class:"button-primary",onClick:e.pwdSubmit},{default:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(e.$t("Common.my.submit")),1)]),_:1},8,["loading","onClick"])])])]),_:1})]),_:1})}const sC=X(z9,[["render",Z9]]);function K9(e){return new Promise((t,r)=>{ut("api/manager/factory-params/detail",{keyName:e}).then(n=>{const a=JSON.parse(n.valueJson??"[]");t(a)}).catch(()=>{r()})})}const J9=v.defineComponent({name:"OcReport",components:{NFlex:O.NFlex,NDataTable:O.NDataTable,NDatePicker:O.NDatePicker,NInputGroup:O.NInputGroup,NInputGroupLabel:O.NInputGroupLabel},setup(){const{t:e}=Kt.useI18n(),t=v.ref(!0),r=O.useNotification(),n=v.ref([{title:"#",width:60,align:"center",key:"index",render(l,u){return v.h("span",{},{default:()=>u+1})}},{title:"名称",key:"name"},{title:"备注",key:"content"},{title:"操作",key:"action",align:"center",fixed:"right",width:120,render(l){return pn([{type:"custom",onClick:()=>{o(l.key)},icon:Ao,color:"success",tooltipText:"下载"}])}}]),a=v.ref([]),i=v.ref([Date.now(),Date.now()]),o=l=>{t.value=!0,tC({jobType:"EXPORT",jobTypeName:l,jobParams:JSON.stringify({startDate:i.value[0],endDate:i.value[1]})}).then(()=>{t.value=!1,r.success({content:()=>e("Notice.success"),duration:3e3}),od(!0)}).catch(()=>{t.value=!1,r.error({content:()=>e("Notice.error"),duration:3e3})})},s=l=>l>Date.now();return K9("individuation_report_download").then(l=>{a.value=l.map(u=>({key:u.key,name:u.name,content:"默认导出最近30天的数据。每个企业租户下的所有账号,每天累计最多下载10次,采用异步下载"})),t.value=!1}).catch(()=>{t.value=!1}),{columns:n,columnData:a,loading:t,range:i,isRangeDateDisabled:s}}}),Q9={class:"com-card"},eH=v.createElementVNode("br",null,null,-1);function tH(e,t,r,n,a,i){const o=v.resolveComponent("NInputGroupLabel"),s=v.resolveComponent("NDatePicker"),l=v.resolveComponent("NInputGroup"),u=v.resolveComponent("NFlex"),c=v.resolveComponent("n-data-table");return v.openBlock(),v.createElementBlock("div",Q9,[v.createVNode(u,{justify:"end"},{default:v.withCtx(()=>[v.createVNode(l,null,{default:v.withCtx(()=>[v.createVNode(o,{class:"oc-group-label"},{default:v.withCtx(()=>[v.createTextVNode("日期")]),_:1}),v.createVNode(s,{value:e.range,"onUpdate:value":t[0]||(t[0]=f=>e.range=f),type:"daterange","is-date-disabled":e.isRangeDateDisabled,style:{width:"300px"}},null,8,["value","is-date-disabled"])]),_:1})]),_:1}),eH,v.createVNode(c,{columns:e.columns,data:e.columnData,loading:e.loading,"min-height":"calc(100vh - 180px)","max-height":"calc(100vh - 180px)"},null,8,["columns","data","loading"])])}const lC=X(J9,[["render",tH]]),rH=v.defineComponent({name:"OcScan",components:{NButton:O.NButton,NModal:O.NModal,NCard:O.NCard,NFlex:O.NFlex,NIcon:O.NIcon,IconDismiss:cn},emits:["on-update:value"],setup(e,{emit:t}){const r=v.ref(),n=v.ref(!1),a=v.ref(!1),i=O.useNotification(),o=1280,s=720;let l=null,u=null;const c=(_,S)=>{l.beginPath(),l.moveTo(_.x,_.y),l.lineTo(S.x,S.y),l.lineWidth=2,l.strokeStyle="green",l.stroke()},f=()=>{if(u&&u.readyState===u.HAVE_ENOUGH_DATA){u.width=o,u.height=s,l.drawImage(r.value,0,0,o,s);const _=l.getImageData(0,0,o,s);try{const S=CC(_.data,o,s);if(S){const{location:x,data:C}=S;c(x.topLeftCorner,x.topRightCorner),c(x.topRightCorner,x.bottomRightCorner),c(x.bottomRightCorner,x.bottomLeftCorner),c(x.bottomLeftCorner,x.topLeftCorner),t("on-update:value",C),h()}}catch{a.value=!1,i.error({content:"扫描失败,请重试",duration:3e3})}}d()},d=()=>{a.value&&requestAnimationFrame(f)},h=()=>{r.value&&r.value.srcObject&&(r.value.srcObject.getTracks().forEach(_=>_.stop()),a.value=!1,l=null,u=null,r.value.srcObject=null,r.value.src=null),n.value=!1},p=_=>{r.value.srcObject!==void 0?r.value.srcObject=_:window.videoEl.mozSrcObject!==void 0?r.value.mozSrcObject=_:window.URL.createObjectURL?r.value.src=window.URL.createObjectURL(_):window.webkitURL?r.value.src=window.webkitURL.createObjectURL(_):r.value.src=_,r.value.play().then(d)},m=()=>{n.value=!0,v.nextTick(()=>{navigator.mediaDevices&&navigator.mediaDevices.getUserMedia?(a.value=!0,u=document.getElementById("oc-scan-canvas"),u&&(l=u.getContext("2d",{willReadFrequently:!0})),navigator.mediaDevices.getUserMedia({video:!0}).then(p).catch(()=>{a.value=!1,i.error({content:"未获取到摄像头权限,请确认赋予相关权限",duration:3e3})})):(a.value=!1,i.error({content:"您的设备未检测到摄像头,无法进行扫码识别",duration:3e3}))})};let g="",y=0;function w(_){if(_.code==="Enter"){g&&t("on-update:value",g),g="",y=0;return}let S=new Date().getTime();y>0&&(S-y<=100?g+=_.key:S-y>500&&(g="",y=0)),y=S}return v.onMounted(()=>{window.addEventListener("keypress",w)}),v.onBeforeUnmount(()=>{window.removeEventListener("keypress",w),h()}),{videoRef:r,modal:n,loading:a,doScan:m,closeAll:h}}}),nH=v.createElementVNode("div",{class:"oc-scan-canvas-main"},[v.createElementVNode("canvas",{id:"oc-scan-canvas",width:"1280",height:"720"})],-1),aH={class:"oc-scan-video"},iH={ref:"videoRef",playsInline:""};function oH(e,t,r,n,a,i){const o=v.resolveComponent("NButton"),s=v.resolveComponent("IconDismiss"),l=v.resolveComponent("NIcon"),u=v.resolveComponent("NFlex"),c=v.resolveComponent("NCard"),f=v.resolveComponent("NModal");return v.openBlock(),v.createElementBlock(v.Fragment,null,[v.createVNode(o,{type:"primary",loading:e.loading,onClick:e.doScan},{default:v.withCtx(()=>[v.createTextVNode("扫一扫")]),_:1},8,["loading","onClick"]),v.createVNode(f,{show:e.modal,"onUpdate:show":t[0]||(t[0]=d=>e.modal=d),"on-mask-click":e.closeAll},{default:v.withCtx(()=>[v.createVNode(c,{style:{width:"1320px"}},{header:v.withCtx(()=>[v.createTextVNode("扫一扫")]),"header-extra":v.withCtx(()=>[v.createVNode(u,{justify:"end"},{default:v.withCtx(()=>[v.createVNode(o,{quaternary:"",onClick:e.closeAll},{icon:v.withCtx(()=>[v.createVNode(l,null,{default:v.withCtx(()=>[v.createVNode(s)]),_:1})]),_:1},8,["onClick"])]),_:1})]),default:v.withCtx(()=>[nH]),_:1})]),_:1},8,["show","on-mask-click"]),v.createElementVNode("div",aH,[v.createElementVNode("video",iH,null,512)])],64)}const uC=X(rH,[["render",oH]]),sH=v.defineComponent({name:"OcTimePickRange",components:{NInputGroup:O.NInputGroup,NTimePicker:O.NTimePicker},props:{value:{required:!0,type:Array,default:()=>[]},format:{required:!1,type:String,default:"HH:mm"},disabled:{required:!1,type:Boolean,default:!1},clearable:{required:!1,type:Boolean,default:!1}},emits:["on-update:value"],setup(e,{emit:t}){const r=v.ref(null),n=v.ref(null),a=o=>{r.value=o,t("on-update:value",[r.value,n.value])},i=o=>{n.value=o,t("on-update:value",[r.value,n.value])};return v.onMounted(()=>{e.value&&(r.value=e.value[0],n.value=e.value[1])}),v.watch(()=>e.value,o=>{o&&(r.value=o[0],n.value=o[1])}),{startTime:r,endTime:n,updateStartValue:a,updateEndValue:i}}}),lH=v.createElementVNode("span",{class:"oc-time-picker-separator"},"-",-1);function uH(e,t,r,n,a,i){const o=v.resolveComponent("NTimePicker"),s=v.resolveComponent("NInputGroup");return v.openBlock(),v.createBlock(s,{class:"oc-time-picker"},{default:v.withCtx(()=>[v.createVNode(o,{value:e.startTime,clearable:e.clearable,"on-update:value":e.updateStartValue,format:e.format,disabled:e.disabled},null,8,["value","clearable","on-update:value","format","disabled"]),lH,v.createVNode(o,{value:e.endTime,clearable:e.clearable,format:e.format,disabled:e.disabled,"on-update:value":e.updateEndValue},null,8,["value","clearable","format","disabled","on-update:value"])]),_:1})}const cH=X(sH,[["render",uH]]),fH=v.defineComponent({name:"OcSearchBarItem",components:{NIcon:O.NIcon,NButton:O.NButton,NGrid:O.NGrid,NGridItem:O.NGridItem,NInput:O.NInput,NInputNumber:O.NInputNumber,NSelect:O.NSelect,NTooltip:O.NTooltip,NPopover:O.NPopover,NDataTable:O.NDataTable,NCascader:O.NCascader,NTreeSelect:O.NTreeSelect,NDatePicker:O.NDatePicker,NInputGroup:O.NInputGroup,NInputGroupLabel:O.NInputGroupLabel,OcTimePickRange:cH,IconArrowDown:Jl,IconArrowUp:td},props:{cols:{type:Number,default:4},small:{type:Boolean,default:!1}},setup(e,{expose:t}){const{t:r}=Kt.useI18n(),n=v.ref({}),a=v.ref(!0),i=v.ref(!0),o=v.ref(0),s=v.ref({}),l=v.ref({}),u=v.ref([{key:"label"}]),c=y=>y.fallbackOption?typeof y.fallbackOption=="boolean"?()=>({label:r("Common.message.all"),value:"",disabled:!0}):y.fallbackOption:!1,f=(y,w,_)=>{const S=_.options.filter(x=>String(x.label).toLocaleLowerCase().indexOf(String(w).toLocaleLowerCase())>-1)||[];s.value[y].options=S,S.length===0?s.value[y].display=!1:s.value[y].display=!0},d=y=>{var x;Object.keys(y).forEach(C=>{var b,D,N;const T=y[C];T.show=T.show??!0,T.type==="dropdown"&&(s.value[C]={display:!1,options:T.options}),T.type==="select"&&T.fallbackOption&&T.multiple&&l.value[C].length===0&&(l.value[C]=[""]),T.type==="group"&&(l.value[C]||(l.value[C]=T.options[0].value),T.inputTemp=T.input.options[l.value[C]?l.value[C]:T.options[0].value],((b=T.inputTemp)==null?void 0:b.type)==="select"&&((D=T.inputTemp)!=null&&D.fallbackOption)&&((N=T.inputTemp)!=null&&N.multiple)&&l.value[T.input.key].length===0&&(l.value[T.input.key]=[""]))});let w=0;const _=e.small?1:e.cols,S=Object.keys(y);if(Object.keys(y).length>0)for(let C=0;C<=_;C++)(x=y[S[C]])!=null&&x.show&&(w=w+1);o.value=_-w>=0?_-w-1:-1,w>_?i.value=!0:i.value=!1,e.small&&(a.value=!1,i.value=!1),n.value=y},h=y=>{s.value[y].options.length===0?s.value[y].display=!1:s.value[y].display=!0},p=()=>{a.value=!a.value},m=()=>{const y=JSON.stringify(l.value,(w,_)=>_===void 0?null:Array.isArray(_)?_.filter(S=>S!==""):_);return JSON.parse(y)},g=y=>{y&&(l.value=y)};return t({getValues:m,setValues:g,dataFactory:d}),{more:i,offset:o,dataList:n,collapsed:a,searchData:l,dropDisplay:s,columnsPopover:u,showMore:p,setValues:g,dropValueChange:f,dropDisplayToggle:h,getDefaultDate:Ea,selectFallback:c}}}),hH={class:"oc-search-bar-line"},dH={key:0,class:"oc-search-action-more"};function vH(e,t,r,n,a,i){const o=v.resolveComponent("NGridItem"),s=v.resolveComponent("NInputGroupLabel"),l=v.resolveComponent("NInput"),u=v.resolveComponent("NInputNumber"),c=v.resolveComponent("NSelect"),f=v.resolveComponent("NDataTable"),d=v.resolveComponent("NPopover"),h=v.resolveComponent("NCascader"),p=v.resolveComponent("NTreeSelect"),m=v.resolveComponent("OcTimePickRange"),g=v.resolveComponent("NDatePicker"),y=v.resolveComponent("NInputGroup"),w=v.resolveComponent("NGrid"),_=v.resolveComponent("IconArrowDown"),S=v.resolveComponent("NIcon"),x=v.resolveComponent("IconArrowUp"),C=v.resolveComponent("NButton"),T=v.resolveComponent("NTooltip");return v.openBlock(),v.createElementBlock("div",hH,[v.createVNode(w,{"x-gap":"15","y-gap":"15",cols:e.small?1:e.cols,"collapsed-rows":1,collapsed:e.collapsed},{default:v.withCtx(()=>[e.offset>-1?(v.openBlock(),v.createBlock(o,{key:0,offset:e.offset},null,8,["offset"])):v.createCommentVNode("",!0),(v.openBlock(!0),v.createElementBlock(v.Fragment,null,v.renderList(e.dataList,(b,D,N)=>(v.openBlock(),v.createElementBlock(v.Fragment,{key:`${D}_${N}`},[b.show?(v.openBlock(),v.createBlock(o,{key:0,span:e.small?1:b.span||1},{default:v.withCtx(()=>[b.type!=="group"?(v.openBlock(),v.createBlock(y,{key:0},{default:v.withCtx(()=>{var A;return[v.createVNode(s,{class:"oc-group-label"},{default:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(typeof b.title=="string"?b.title:b.title&&b.title()),1)]),_:2},1024),b.type==="input"?(v.openBlock(),v.createBlock(l,{key:0,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),"on-update:value":M=>{b.updateValue?b.updateValue(M.trim(),JSON.parse(JSON.stringify(e.searchData)),I=>e.setValues(I)):e.searchData[D]=M.trim()},clearable:b.clearable??!0},null,8,["value","onUpdate:value","disabled","placeholder","on-update:value","clearable"])):v.createCommentVNode("",!0),b.type==="number"?(v.openBlock(),v.createBlock(u,{key:1,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),min:b==null?void 0:b.min,max:b==null?void 0:b.max,step:(b==null?void 0:b.step)||1,"show-button":(b==null?void 0:b.showButton)||!0,"update-value-on-input":!1,validator:b==null?void 0:b.validator,"on-update:value":M=>{b.updateValue?b.updateValue(M,JSON.parse(JSON.stringify(e.searchData)),I=>e.setValues(I)):e.searchData[D]=M},clearable:b.clearable??!0},v.createSlots({_:2},[b!=null&&b.suffix?{name:"suffix",fn:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(b==null?void 0:b.suffix),1)]),key:"0"}:void 0]),1032,["value","onUpdate:value","disabled","placeholder","min","max","step","show-button","validator","on-update:value","clearable"])):v.createCommentVNode("",!0),b.type==="select"?(v.openBlock(),v.createBlock(c,{key:2,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,"show-checkmark":!1,disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),options:b.options,multiple:b.multiple,"fallback-option":e.selectFallback(b),"on-update:value":M=>{let I=M,P=M;if(b.multiple){let L=M.filter(E=>E!=="");L.length===0?(I=[""],P=[]):(I=L,P=L)}b.updateValue?b.updateValue(P,JSON.parse(JSON.stringify(e.searchData)),L=>e.setValues(L)):e.searchData[D]=I},clearable:b.clearable??!0,"max-tag-count":"responsive",filterable:"",style:{flex:"1",width:"0"}},null,8,["value","onUpdate:value","disabled","placeholder","options","multiple","fallback-option","on-update:value","clearable"])):v.createCommentVNode("",!0),b.type==="dropdown"?(v.openBlock(),v.createBlock(d,{key:3,width:"trigger",trigger:"manual",style:{padding:"5px"},"show-arrow":!1,show:(A=e.dropDisplay[D])==null?void 0:A.display,"on-clickoutside":()=>{e.dropDisplay[D].display=!1}},{trigger:v.withCtx(()=>[v.createVNode(l,{value:e.searchData[D],disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),clearable:b.clearable??!0,"on-update:value":M=>{e.searchData[D]=M.trim(),e.dropValueChange(D,M.trim(),b)},onClick:M=>e.dropDisplayToggle(D),onFocus:M=>e.dropDisplayToggle(D)},null,8,["value","disabled","placeholder","clearable","on-update:value","onClick","onFocus"])]),default:v.withCtx(()=>{var M;return[v.createVNode(f,{columns:e.columnsPopover,data:((M=e.dropDisplay[D])==null?void 0:M.options)||[],"max-height":300,bordered:!1,"bottom-bordered":!1,"row-props":I=>({style:"cursor: pointer;",onClick:()=>{e.searchData[D]=I.value,e.dropDisplay[D].display=!1}}),size:"small","virtual-scroll":"",class:"oc-popover-table"},null,8,["columns","data","row-props"])]}),_:2},1032,["show","on-clickoutside"])):v.createCommentVNode("",!0),b.type==="cascader"?(v.openBlock(),v.createBlock(h,{key:4,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),options:b.options,"check-strategy":b.checkStrategy||"all",multiple:b.multiple,"on-update:value":M=>{b.updateValue?b.updateValue(M,JSON.parse(JSON.stringify(e.searchData)),I=>e.setValues(I)):e.searchData[D]=M},clearable:b.clearable??!0,"max-tag-count":"responsive",filterable:""},null,8,["value","onUpdate:value","disabled","placeholder","options","check-strategy","multiple","on-update:value","clearable"])):v.createCommentVNode("",!0),b.type==="treeSelect"?(v.openBlock(),v.createBlock(p,{key:5,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),options:b.options,"check-strategy":b.checkStrategy||"all",multiple:b.multiple,"on-update:value":M=>{b.updateValue?b.updateValue(M,JSON.parse(JSON.stringify(e.searchData)),I=>e.setValues(I)):e.searchData[D]=M},clearable:b.clearable??!0,"max-tag-count":"responsive",filterable:""},null,8,["value","onUpdate:value","disabled","placeholder","options","check-strategy","multiple","on-update:value","clearable"])):v.createCommentVNode("",!0),b.type==="timePicker"?(v.openBlock(),v.createBlock(m,{key:6,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,disabled:b==null?void 0:b.disabled,"onOnUpdate:value":M=>{b.updateValue?b.updateValue(M,JSON.parse(JSON.stringify(e.searchData)),I=>e.setValues(I)):e.searchData[D]=[...M]},format:b==null?void 0:b.format,clearable:b.clearable??!0},null,8,["value","onUpdate:value","disabled","onOnUpdate:value","format","clearable"])):v.createCommentVNode("",!0),b.type==="datePicker"?(v.openBlock(),v.createBlock(g,{key:7,value:e.searchData[D],"onUpdate:value":M=>e.searchData[D]=M,disabled:b==null?void 0:b.disabled,placeholder:typeof(b==null?void 0:b.placeholder)=="string"?b==null?void 0:b.placeholder:(b==null?void 0:b.placeholder)&&(b==null?void 0:b.placeholder()),type:b.dateType,format:b==null?void 0:b.format,"is-date-disabled":b==null?void 0:b.isDateDisabled,shortcuts:b==null?void 0:b.shortcuts,"update-value-on-close":b.dateType!=="year","on-update:value":M=>{b.updateValue?b.updateValue(M,JSON.parse(JSON.stringify(e.searchData)),I=>e.setValues(I)):e.searchData[D]=M},clearable:b.clearable??!0,"close-on-select":""},null,8,["value","onUpdate:value","disabled","placeholder","type","format","is-date-disabled","shortcuts","update-value-on-close","on-update:value","clearable"])):v.createCommentVNode("",!0)]}),_:2},1024)):v.createCommentVNode("",!0),b.type==="group"?(v.openBlock(),v.createBlock(y,{key:1},{default:v.withCtx(()=>{var A,M,I,P,L,E,B,R,V,z,Y,Z,F,J,Te,fe,Ve,je,Be,Me,te,le,gt,Le,zt,St,$r,zo,_r,Go,Fr,gi,ca;return[v.createVNode(c,{value:e.searchData[D],"onUpdate:value":we=>e.searchData[D]=we,options:b.options,"show-checkmark":!1,style:v.normalizeStyle(b.width?typeof b.width=="number"?{width:`${b.width}px`}:{width:b.width}:{}),"on-update:value":we=>{if(b.inputTemp=b.input.options[we],b.inputTemp.type==="datePicker"){let Ee=0;(b.inputTemp.dateType.indexOf("date")>-1||b.inputTemp.dateType.indexOf("quarter")>-1||b.inputTemp.dateType.indexOf("week")>-1)&&(Ee=e.getDefaultDate()),b.inputTemp.dateType.indexOf("month")>-1&&(Ee=e.getDefaultDate(void 0,void 0,1)),b.inputTemp.dateType.indexOf("year")>-1&&(Ee=e.getDefaultDate(void 0,1,1)),b.inputTemp.dateType.indexOf("range")>-1&&(Ee=[Ee,Ee]),e.searchData[b.input.key]=Ee}else b.inputTemp.type==="number"?e.searchData[b.input.key]=null:b.inputTemp.type==="select"&&b.inputTemp.fallbackOption&&b.inputTemp.multiple?e.searchData[b.input.key]=[""]:e.searchData[b.input.key]="";b.updateValue?b.updateValue(we,JSON.parse(JSON.stringify(e.searchData)),Ee=>e.setValues(Ee)):e.searchData[D]=we},class:"oc-group-select",placeholder:" "},null,8,["value","onUpdate:value","options","style","on-update:value"]),((A=b.inputTemp)==null?void 0:A.type)==="input"?(v.openBlock(),v.createBlock(l,{key:0,value:e.searchData[b.input.key],"onUpdate:value":we=>e.searchData[b.input.key]=we,disabled:(M=b.inputTemp)==null?void 0:M.disabled,placeholder:typeof((I=b.inputTemp)==null?void 0:I.placeholder)=="string"?(P=b.inputTemp)==null?void 0:P.placeholder:((L=b.inputTemp)==null?void 0:L.placeholder)&&((E=b.inputTemp)==null?void 0:E.placeholder()),"on-update:value":we=>{var Ee;(Ee=b.inputTemp)!=null&&Ee.updateValue?b.inputTemp.updateValue(we.trim(),JSON.parse(JSON.stringify(e.searchData)),wr=>e.setValues(wr)):e.searchData[b.input.key]=we.trim()},clearable:b.inputTemp.clearable??!0,style:{flex:"1"}},null,8,["value","onUpdate:value","disabled","placeholder","on-update:value","clearable"])):v.createCommentVNode("",!0),((B=b.inputTemp)==null?void 0:B.type)==="number"?(v.openBlock(),v.createBlock(u,{key:1,value:e.searchData[b.input.key],"onUpdate:value":we=>e.searchData[b.input.key]=we,disabled:(R=b.inputTemp)==null?void 0:R.disabled,placeholder:typeof((V=b.inputTemp)==null?void 0:V.placeholder)=="string"?(z=b.inputTemp)==null?void 0:z.placeholder:((Y=b.inputTemp)==null?void 0:Y.placeholder)&&((Z=b.inputTemp)==null?void 0:Z.placeholder()),min:(F=b.inputTemp)==null?void 0:F.min,max:(J=b.inputTemp)==null?void 0:J.max,step:((Te=b.inputTemp)==null?void 0:Te.step)||1,"show-button":((fe=b.inputTemp)==null?void 0:fe.showButton)||!0,"update-value-on-input":!1,validator:(Ve=b.inputTemp)==null?void 0:Ve.validator,"on-update:value":we=>{var Ee;(Ee=b.inputTemp)!=null&&Ee.updateValue?b.inputTemp.updateValue(we,JSON.parse(JSON.stringify(e.searchData)),wr=>e.setValues(wr)):e.searchData[b.input.key]=we},clearable:b.inputTemp.clearable??!0,style:{flex:"1"}},v.createSlots({_:2},[(je=b.inputTemp)!=null&&je.suffix?{name:"suffix",fn:v.withCtx(()=>{var we;return[v.createTextVNode(v.toDisplayString((we=b.inputTemp)==null?void 0:we.suffix),1)]}),key:"0"}:void 0]),1032,["value","onUpdate:value","disabled","placeholder","min","max","step","show-button","validator","on-update:value","clearable"])):v.createCommentVNode("",!0),((Be=b.inputTemp)==null?void 0:Be.type)==="datePicker"?(v.openBlock(),v.createBlock(g,{key:2,value:e.searchData[b.input.key],"onUpdate:value":we=>e.searchData[b.input.key]=we,disabled:(Me=b.inputTemp)==null?void 0:Me.disabled,placeholder:typeof((te=b.inputTemp)==null?void 0:te.placeholder)=="string"?(le=b.inputTemp)==null?void 0:le.placeholder:((gt=b.inputTemp)==null?void 0:gt.placeholder)&&((Le=b.inputTemp)==null?void 0:Le.placeholder()),type:b.inputTemp.dateType,format:(zt=b.inputTemp)==null?void 0:zt.format,"is-date-disabled":(St=b.inputTemp)==null?void 0:St.isDateDisabled,shortcuts:($r=b.inputTemp)==null?void 0:$r.shortcuts,"update-value-on-close":b.inputTemp.dateType!=="year","on-update:value":we=>{var Ee;(Ee=b.inputTemp)!=null&&Ee.updateValue?b.inputTemp.updateValue(we,JSON.parse(JSON.stringify(e.searchData)),wr=>e.setValues(wr)):e.searchData[b.input.key]=we},clearable:b.inputTemp.clearable??!0,"close-on-select":"",style:{flex:"1"}},null,8,["value","onUpdate:value","disabled","placeholder","type","format","is-date-disabled","shortcuts","update-value-on-close","on-update:value","clearable"])):v.createCommentVNode("",!0),((zo=b.inputTemp)==null?void 0:zo.type)==="select"?(v.openBlock(),v.createBlock(c,{key:3,value:e.searchData[b.input.key],"onUpdate:value":we=>e.searchData[b.input.key]=we,"show-checkmark":!1,disabled:(_r=b.inputTemp)==null?void 0:_r.disabled,placeholder:typeof((Go=b.inputTemp)==null?void 0:Go.placeholder)=="string"?(Fr=b.inputTemp)==null?void 0:Fr.placeholder:((gi=b.inputTemp)==null?void 0:gi.placeholder)&&((ca=b.inputTemp)==null?void 0:ca.placeholder()),options:b.inputTemp.options,multiple:b.inputTemp.multiple,"fallback-option":e.selectFallback(b.inputTemp),"on-update:value":we=>{var jv,Xv,Zv;let Ee=we,wr=we;if(((jv=b.inputTemp)==null?void 0:jv.type)==="select"&&((Xv=b.inputTemp)!=null&&Xv.multiple)){let mi=we.filter(wC=>wC!=="");mi.length===0?(Ee=[""],wr=[]):(Ee=mi,wr=mi)}(Zv=b.inputTemp)!=null&&Zv.updateValue?b.inputTemp.updateValue(wr,JSON.parse(JSON.stringify(e.searchData)),mi=>e.setValues(mi)):e.searchData[b.input.key]=Ee},clearable:b.inputTemp.clearable??!0,"max-tag-count":"responsive",filterable:"",style:{flex:"1",width:"0"}},null,8,["value","onUpdate:value","disabled","placeholder","options","multiple","fallback-option","on-update:value","clearable"])):v.createCommentVNode("",!0)]}),_:2},1024)):v.createCommentVNode("",!0)]),_:2},1032,["span"])):v.createCommentVNode("",!0)],64))),128))]),_:1},8,["cols","collapsed"]),e.more?(v.openBlock(),v.createElementBlock("div",dH,[v.createVNode(T,{trigger:"hover"},{trigger:v.withCtx(()=>[v.createVNode(C,{onClick:e.showMore},{icon:v.withCtx(()=>[e.collapsed?(v.openBlock(),v.createBlock(S,{key:0},{default:v.withCtx(()=>[v.createVNode(_)]),_:1})):(v.openBlock(),v.createBlock(S,{key:1},{default:v.withCtx(()=>[v.createVNode(x)]),_:1}))]),_:1},8,["onClick"])]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.more")),1)]),_:1})])):v.createCommentVNode("",!0)])}const pH=X(fH,[["render",vH]]),gH=v.defineComponent({name:"OcSearchBarPop",props:{value:{required:!0,type:Boolean,default:!1}},emits:["on-update:value"],setup(e,{emit:t}){return{close:()=>{t("on-update:value",!1)}}}}),mH={class:"oc-search-bar-pop"},yH={class:"oc-search-bar-pop-plan"},_H={class:"oc-search-bar-pop-action"},wH={class:"oc-search-bar-pop-content"};function bH(e,t,r,n,a,i){return v.withDirectives((v.openBlock(),v.createElementBlock("div",mH,[v.createElementVNode("div",{class:"oc-search-bar-pop-mask",onClick:t[0]||(t[0]=(...o)=>e.close&&e.close(...o))}),v.createElementVNode("div",yH,[v.createElementVNode("div",_H,[v.renderSlot(e.$slots,"action")]),v.createElementVNode("div",wH,[v.renderSlot(e.$slots,"default")])])],512)),[[v.vShow,e.value]])}const SH=X(gH,[["render",bH]]),CH=v.defineComponent({name:"OcSearchBar",components:{NFlex:O.NFlex,NIcon:O.NIcon,NTooltip:O.NTooltip,NButton:O.NButton,NPopover:O.NPopover,IconArrowDown:Jl,IconReset:rd,IconSearch:ql,IconFilter:jl,OcSearchBarItem:pH,OcSearchBarPop:SH},props:{value:{required:!0,type:Object,default:()=>({})},defaultValue:{required:!0,type:Object,default:()=>({})},data:{required:!0,type:Object,default:()=>({})},loading:{type:Boolean,default:!1},cols:{type:Number,default:4},small:{type:Boolean,default:!1},autoSubmit:{type:Boolean,default:!0},cache:{type:Boolean,default:!0},resetButton:{type:Boolean,default:!0}},emits:["update:loading","on-update:value"],setup(e,{emit:t,slots:r,expose:n}){const a=$t.useRoute(),i=$t.useRouter(),o=v.ref(),s=v.ref({}),l=v.ref(!1),u=v.ref(!!r.header),c=v.ref(!!r.action),f=(m=!1)=>{if(!e.loading&&o.value){const g=o.value.getValues();if(!m&&g.query&&(g.query.page=1),t("update:loading",!0),t("on-update:value",g),e.cache){const y=a.path,w=Jr(g),_=Jr(y);i.replace(`${y}?cursor=${w}&routerId=${_}`)}}},d=()=>{e.loading||(h(JSON.parse(JSON.stringify(e.defaultValue))),f())},h=(m,g=!1)=>{if(o.value&&o.value.setValues(JSON.parse(JSON.stringify(m))),p(e.data),g)i.replace(a.path);else if(e.cache){const y=a.path,w=Jr(m),_=Jr(y);i.replace(`${y}?cursor=${w}&routerId=${_}`)}},p=m=>{o.value&&o.value.dataFactory(m)};return n({setValues:h,setData:p}),v.onMounted(()=>{setTimeout(()=>{let m=e.value;if(e.cache){const{cursor:g,routerId:y}=a.query;if(g&&y){const w=a.path,_=vo(y),S=vo(g);_===w&&(m=S)}}o.value&&o.value.setValues(JSON.parse(JSON.stringify(m))),o.value&&o.value.dataFactory(e.data),e.autoSubmit&&f(!0)},100)}),{itemRef:o,drawer:l,isSlotHeader:u,isSlotAction:c,commonStore:oe,itemData:s,doSearch:f,clearAll:d}}}),xH={key:0,class:"oc-search-bar-title"},TH={key:1,class:"oc-search-bar-popover"},NH={key:0},DH={class:"oc-search-bar-center"};function AH(e,t,r,n,a,i){const o=v.resolveComponent("OcSearchBarItem"),s=v.resolveComponent("IconArrowDown"),l=v.resolveComponent("NIcon"),u=v.resolveComponent("NButton"),c=v.resolveComponent("IconReset"),f=v.resolveComponent("IconSearch"),d=v.resolveComponent("NFlex"),h=v.resolveComponent("OcSearchBarPop"),p=v.resolveComponent("IconFilter"),m=v.resolveComponent("NTooltip");return v.openBlock(),v.createElementBlock("div",{class:v.normalizeClass(["oc-search-bar",{small:!e.isSlotHeader&&(e.small||e.commonStore.isMobile)}]),onKeyup:t[6]||(t[6]=v.withKeys(g=>e.doSearch(!1),["enter"]))},[e.isSlotHeader?(v.openBlock(),v.createElementBlock("span",xH,[v.renderSlot(e.$slots,"header")])):v.createCommentVNode("",!0),e.small||e.commonStore.isMobile?(v.openBlock(),v.createElementBlock("div",TH,[v.createVNode(h,{value:e.drawer,"onUpdate:value":t[2]||(t[2]=g=>e.drawer=g),"onOnUpdate:value":t[3]||(t[3]=g=>e.drawer=g)},{action:v.withCtx(()=>[v.createVNode(d,{size:15,justify:"space-between",wrap:!1},{default:v.withCtx(()=>[v.createVNode(u,{onClick:t[0]||(t[0]=g=>e.drawer=!1)},{icon:v.withCtx(()=>[v.createVNode(l,null,{default:v.withCtx(()=>[v.createVNode(s)]),_:1})]),_:1}),e.resetButton?(v.openBlock(),v.createBlock(u,{key:0,loading:e.loading,onClick:e.clearAll},{icon:v.withCtx(()=>[v.createVNode(l,null,{default:v.withCtx(()=>[v.createVNode(c)]),_:1})]),_:1},8,["loading","onClick"])):v.createCommentVNode("",!0),e.data&&Object.keys(e.data).length>0?(v.openBlock(),v.createBlock(u,{key:1,loading:e.loading,class:"button-primary",onClick:t[1]||(t[1]=()=>{e.drawer=!1,e.doSearch(!1)})},{icon:v.withCtx(()=>[v.createVNode(l,null,{default:v.withCtx(()=>[v.createVNode(f)]),_:1})]),_:1},8,["loading"])):v.createCommentVNode("",!0)]),_:1}),e.isSlotAction?(v.openBlock(),v.createElementBlock("br",NH)):v.createCommentVNode("",!0),e.isSlotAction?(v.openBlock(),v.createBlock(d,{key:1,size:15,justify:"space-between",class:"oc-search-action"},{default:v.withCtx(()=>[v.renderSlot(e.$slots,"action")]),_:3})):v.createCommentVNode("",!0)]),default:v.withCtx(()=>[v.createVNode(o,{ref:"itemRef",loading:e.loading,small:""},null,8,["loading"])]),_:3},8,["value"]),v.createVNode(u,{onClick:t[4]||(t[4]=g=>e.drawer=!0)},{icon:v.withCtx(()=>[v.createVNode(l,null,{default:v.withCtx(()=>[v.createVNode(p)]),_:1})]),_:1})])):(v.openBlock(),v.createElementBlock(v.Fragment,{key:2},[v.createElementVNode("div",DH,[v.createVNode(o,{ref:"itemRef",loading:e.loading,cols:e.cols},null,8,["loading","cols"]),v.createVNode(d,{size:5,wrap:!1,style:{"padding-left":"15px"}},{default:v.withCtx(()=>[e.data&&Object.keys(e.data).length>0?(v.openBlock(),v.createBlock(m,{key:0,trigger:"hover"},{trigger:v.withCtx(()=>[v.createVNode(u,{loading:e.loading,class:"button-primary",onClick:t[5]||(t[5]=g=>e.doSearch(!1))},{icon:v.withCtx(()=>[v.createVNode(l,null,{default:v.withCtx(()=>[v.createVNode(f)]),_:1})]),_:1},8,["loading"])]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.search")),1)]),_:1})):v.createCommentVNode("",!0),e.resetButton?(v.openBlock(),v.createBlock(m,{key:1,trigger:"hover"},{trigger:v.withCtx(()=>[v.createVNode(u,{loading:e.loading,onClick:e.clearAll},{icon:v.withCtx(()=>[v.createVNode(l,null,{default:v.withCtx(()=>[v.createVNode(c)]),_:1})]),_:1},8,["loading","onClick"])]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.reset")),1)]),_:1})):v.createCommentVNode("",!0)]),_:1})]),v.createVNode(d,{size:0,wrap:!1,class:"oc-search-action"},{default:v.withCtx(()=>[v.renderSlot(e.$slots,"action")]),_:3})],64))],34)}const Wv=X(CH,[["render",AH]]),MH=v.defineComponent({name:"OcSkeleton",components:{NGrid:O.NGrid,NGi:O.NGi,NSkeleton:O.NSkeleton},props:{cols:{type:Number,default:6},num:{type:Array,default:()=>[[12,1]]}},setup(){return{}}}),kH={class:"com-skeleton"};function EH(e,t,r,n,a,i){const o=v.resolveComponent("NSkeleton"),s=v.resolveComponent("NGi"),l=v.resolveComponent("NGrid");return v.openBlock(),v.createElementBlock("div",kH,[v.createVNode(l,{"x-gap":"15","y-gap":"15",cols:e.cols,"item-responsive":"",responsive:"screen"},{default:v.withCtx(()=>[(v.openBlock(!0),v.createElementBlock(v.Fragment,null,v.renderList(e.num,(u,c)=>(v.openBlock(),v.createElementBlock(v.Fragment,{key:`skeleton_${c}`},[(v.openBlock(!0),v.createElementBlock(v.Fragment,null,v.renderList(e.num[c][0],(f,d)=>(v.openBlock(),v.createBlock(s,{key:`skeleton_${c}_${d}`,span:`${e.cols/2} m:2 l:${e.num[c][1]}`},{default:v.withCtx(()=>[v.createVNode(o)]),_:2},1032,["span"]))),128))],64))),128))]),_:1},8,["cols"])])}const cC=X(MH,[["render",EH]]),PH=v.defineComponent({name:"OcTable",components:{NDataTable:O.NDataTable,NTooltip:O.NTooltip,NPopover:O.NPopover,NButton:O.NButton,NIcon:O.NIcon,NFlex:O.NFlex,NPopconfirm:O.NPopconfirm,IconFilter:jl,IconNavigation:Kl,IconEye:Xl,IconEyeOff:Kh,IconPin:Qh,IconPinOff:ed,IconAdd:Ul,IconMailInboxAdd:Mo,IconCloudArrowDown:Zl,Draggable:xC,OcSearchBar:Wv,OcImporter:Hv},props:{columns:{required:!0,type:Array,default:()=>[]},actions:{type:Array,default:void 0},fetch:{required:!0,type:Function,default:()=>Promise.resolve()},defaultCheckedRowKeys:{type:Array,default:()=>[]},pagination:{type:Boolean,default:!0},scrollX:{type:[Number,String],default:void 0},flexHeight:{type:Boolean,default:!1},height:{type:[Number,String],default:void 0},minHeight:{type:[Number,String],default:void 0},maxHeight:{type:[Number,String],default:void 0},actionsWidth:{type:[Number,String],default:180},autoSubmit:{type:Boolean,default:!0},cache:{type:Boolean,default:!0},resetButton:{type:Boolean,default:!0},filterButton:{type:Boolean,default:!0},pinButton:{type:Boolean,default:!0},realtime:{type:Boolean,default:!1},addFn:{type:Function,default:void 0},importer:{type:Object,default:void 0},exporter:{type:Object,default:void 0}},emits:["update:loading","on-update:value"],setup(e,{emit:t,expose:r}){const n=v.ref(),{t:a}=Kt.useI18n(),i=$t.useRoute(),o=$t.useRouter(),s=O.useNotification(),l=v.ref(!1),u=v.ref(!1),c=v.ref(!1),f=v.ref([]),d=v.ref([]),h=v.ref([]),p=v.ref({query:{page:1}}),m=v.ref({}),g=v.ref({}),y=v.ref(void 0),w=v.ref(void 0),_=i.path,S=E=>{l.value=!0,t("update:loading",!0),E&&(p.value.query={...p.value.query,...E});const B=Po(p.value);e.fetch&&e.fetch(B).then(R=>{const V=Eo(R);p.value.query=V.query,h.value=V.records,n.value&&n.value.setValues(p.value),l.value=!1,t("on-update:value",Rt(p.value)),t("update:loading",!1)}).catch(()=>{l.value=!1,t("update:loading",!1)})},x=E=>{p.value.query.page=E,Ks(),S()},C=E=>{p.value.query.pageSize=E,p.value.query.page=1,Ks(),S()},T=E=>{E?(p.value.query.columnKey=E.columnKey,p.value.query.order=E.order):(p.value.query.columnKey=null,p.value.query.order=null),S()},b=E=>{E.pin=!E.pin,E.pin?E.fixed="left":E.fixed=E.fixTemp??void 0},D=E=>{E.show=!E.show},N=()=>{const E=[];d.value.forEach(B=>{B.show&&E.push(B)}),f.value=E},A=E=>{if(p.value=E,e.cache){const B=Jr(_),R=Jr(p.value);o.replace(`${_}?cursor=${R}&routerId=${B}`)}S()},M=()=>{u.value=!0,Fv({...e.exporter,jobParams:JSON.stringify(p.value)}).then(()=>{s.success({content:()=>a("Notice.success"),duration:3e3}),setTimeout(()=>{u.value=!1},2e3)}).catch(()=>{u.value=!1})},I=(E=!1)=>{const B=Rt(e.columns),R=[],V=[],z={},Y={};let Z={};if(B.forEach(async F=>{if(F.search){if(F.search.title||(F.search.title=F.title),F.search.defaultValue!==void 0)z[F.search.key||F.key]=F.search.defaultValue;else{if(F.search.type==="input"&&(z[F.search.key||F.key]=""),F.search.type==="number"&&(z[F.search.key||F.key]=null),F.search.type==="dropdown"&&(z[F.search.key||F.key]=null),(F.search.type==="cascader"||F.search.type==="treeSelect")&&(F.search.multiple?z[F.search.key||F.key]=[]:z[F.search.key||F.key]=null),F.search.type==="datePicker"){let J=0;(F.search.dateType.indexOf("date")>-1||F.search.dateType.indexOf("quarter")>-1||F.search.dateType.indexOf("week")>-1)&&(J=Ea()),F.search.dateType.indexOf("month")>-1&&(J=Ea(void 0,void 0,1)),F.search.dateType.indexOf("year")>-1&&(J=Ea(void 0,1,1)),F.search.dateType.indexOf("range")>-1&&(J=[J,J]),z[F.search.key||F.key]=J}F.search.type==="select"&&(typeof F.search.options=="function"&&await F.search.options().then(J=>{F.search.options=J}),F.search.multiple?F.search.fallbackOption?z[F.search.key||F.key]=[""]:z[F.search.key||F.key]=[]:z[F.search.key||F.key]=null)}Y[F.search.key||F.key]=Rt(F.search)}if(delete F.search,F.render&&typeof F.render=="string"){const J=F.render,Te=new Function("rowData","rowIndex","h",J);F.render=(fe,Ve)=>Te(fe,Ve,v.h)}R.push(Rt(F)),m.value=Rt(z),V.push({...F,show:F.show??!0,pin:!!F.fixed,fixTemp:F.fixed})}),E&&e.cache){const{cursor:F,routerId:J}=i.query;if(F&&J){const Te=vo(J),fe=vo(F);Te===_&&(Z=fe)}}if(e.actions&&e.actions.length>0){const F=Rt(e.actions),J={title:()=>a("Common.action"),key:"action",align:"center",fixed:"right",width:e.actionsWidth,resizable:!0,checked:!0,show:!0,hide:!0,render(Te,fe){return pn(F,Te,fe)}};R.push(J),V.push(J)}f.value=R,g.value=Y,p.value={...p.value,...z,...Z},d.value=V,n.value&&n.value.setValues(JSON.parse(JSON.stringify(p.value))),n.value&&n.value.setData(JSON.parse(JSON.stringify(g.value)))},P=E=>typeof E=="number"?`${E}px`:E,L=()=>{if(e.height){const E=P(e.height);y.value=E,w.value=E;return}e.minHeight&&(y.value=P(e.minHeight)),e.maxHeight&&(w.value=P(e.maxHeight))};return r({init:S}),v.onMounted(()=>{I(!0),L()}),v.watch(()=>d.value,()=>{N()},{deep:!0}),v.watch(()=>e.columns,()=>{e.realtime&&I()},{deep:!0}),v.watch(()=>e.actions,()=>{e.realtime&&I()},{deep:!0}),{loading:l,minH:y,maxH:w,searchRef:n,exportLoading:u,tableColumns:f,tableData:h,tableQuery:p,searchDefaultValue:m,searchData:g,baseColumns:d,showImporter:c,pageChange:x,pageSizeChange:C,pageSorter:T,pinChange:b,showChange:D,submit:A,exportData:M,getDefaultDate:Ea}}}),IH={class:"com-card"};function LH(e,t,r,n,a,i){const o=v.resolveComponent("IconAdd"),s=v.resolveComponent("NIcon"),l=v.resolveComponent("NButton"),u=v.resolveComponent("NTooltip"),c=v.resolveComponent("IconMailInboxAdd"),f=v.resolveComponent("IconCloudArrowDown"),d=v.resolveComponent("NPopconfirm"),h=v.resolveComponent("IconFilter"),p=v.resolveComponent("IconNavigation"),m=v.resolveComponent("IconPin"),g=v.resolveComponent("IconPinOff"),y=v.resolveComponent("IconEye"),w=v.resolveComponent("IconEyeOff"),_=v.resolveComponent("Draggable"),S=v.resolveComponent("NPopover"),x=v.resolveComponent("OcSearchBar"),C=v.resolveComponent("NDataTable"),T=v.resolveComponent("OcImporter");return v.openBlock(),v.createElementBlock(v.Fragment,null,[v.createVNode(x,{ref:"searchRef",value:e.tableQuery,defaultValue:e.searchDefaultValue,data:e.searchData,loading:e.loading,cache:!1,autoSubmit:e.autoSubmit,resetButton:e.resetButton,"onOnUpdate:value":e.submit},{header:v.withCtx(()=>[v.renderSlot(e.$slots,"header")]),action:v.withCtx(()=>[e.addFn?(v.openBlock(),v.createBlock(u,{key:0,trigger:"hover"},{trigger:v.withCtx(()=>[v.createVNode(l,{onClick:e.addFn},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(o)]),_:1})]),_:1},8,["onClick"])]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.add")),1)]),_:1})):v.createCommentVNode("",!0),e.importer?(v.openBlock(),v.createBlock(u,{key:1,trigger:"hover"},{trigger:v.withCtx(()=>[v.createVNode(l,{onClick:t[0]||(t[0]=b=>e.showImporter=!0)},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(c)]),_:1})]),_:1})]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.importer.title")),1)]),_:1})):v.createCommentVNode("",!0),e.exporter?(v.openBlock(),v.createBlock(u,{key:2,trigger:"hover"},{trigger:v.withCtx(()=>[v.createVNode(d,{"positive-text":e.$t("Common.export"),placement:"bottom-end",onPositiveClick:e.exportData},{trigger:v.withCtx(()=>[v.createVNode(l,{loading:e.exportLoading},{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(f)]),_:1})]),_:1},8,["loading"])]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.export"))+"? ",1)]),_:1},8,["positive-text","onPositiveClick"])]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.export")),1)]),_:1})):v.createCommentVNode("",!0),e.filterButton?(v.openBlock(),v.createBlock(u,{key:3,trigger:"hover"},{trigger:v.withCtx(()=>[v.createVNode(S,{placement:"bottom-end",trigger:"click","show-arrow":!1},{trigger:v.withCtx(()=>[v.createVNode(l,null,{icon:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(h)]),_:1})]),_:1})]),default:v.withCtx(()=>[v.createVNode(_,v.mergeProps({modelValue:e.baseColumns,"onUpdate:modelValue":t[1]||(t[1]=b=>e.baseColumns=b)},{animation:200},{"item-key":"key",class:"oc-table-filter",handle:".oc-drag-handle"}),{item:v.withCtx(({element:b})=>[b.hide?v.createCommentVNode("",!0):(v.openBlock(),v.createElementBlock("div",{key:b.key,class:"oc-table-sort"},[v.createVNode(l,{quaternary:"",class:"oc-drag-handle"},{icon:v.withCtx(()=>[v.createVNode(s,{size:"24"},{default:v.withCtx(()=>[v.createVNode(p)]),_:1})]),_:1}),v.createVNode(l,{quaternary:"",class:"oc-table-sort-title"},{default:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(typeof b.title=="string"?b.title:b.title&&b.title()),1)]),_:2},1024),e.pinButton?(v.openBlock(),v.createBlock(l,{key:0,type:"tertiary",onClick:D=>e.pinChange(b),quaternary:""},{icon:v.withCtx(()=>[v.createVNode(s,{size:"24"},{default:v.withCtx(()=>[b.pin?(v.openBlock(),v.createBlock(m,{key:0})):(v.openBlock(),v.createBlock(g,{key:1}))]),_:2},1024)]),_:2},1032,["onClick"])):v.createCommentVNode("",!0),v.createVNode(l,{type:"tertiary",onClick:D=>e.showChange(b),quaternary:""},{icon:v.withCtx(()=>[v.createVNode(s,{size:"24"},{default:v.withCtx(()=>[b.show?(v.openBlock(),v.createBlock(y,{key:0})):(v.openBlock(),v.createBlock(w,{key:1}))]),_:2},1024)]),_:2},1032,["onClick"])]))]),_:1},16,["modelValue"])]),_:1})]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.filter")),1)]),_:1})):v.createCommentVNode("",!0),v.renderSlot(e.$slots,"action")]),_:3},8,["value","defaultValue","data","loading","autoSubmit","resetButton","onOnUpdate:value"]),v.createElementVNode("div",IH,[v.createVNode(C,{columns:e.tableColumns,data:e.tableData,pagination:e.pagination&&e.tableQuery.query,loading:e.loading,"default-checked-row-keys":e.defaultCheckedRowKeys,"scroll-x":e.scrollX,"flex-height":e.flexHeight,"min-height":e.minH,"max-height":e.maxH,"on-update:page":e.pageChange,"on-update:page-size":e.pageSizeChange,"on-update:sorter":e.pageSorter,remote:""},null,8,["columns","data","pagination","loading","default-checked-row-keys","scroll-x","flex-height","min-height","max-height","on-update:page","on-update:page-size","on-update:sorter"])]),e.importer?(v.openBlock(),v.createBlock(T,{key:0,show:e.showImporter,"onUpdate:show":t[2]||(t[2]=b=>e.showImporter=b),data:e.importer},null,8,["show","data"])):v.createCommentVNode("",!0)],64)}const fC=X(PH,[["render",LH]]),OH=v.defineComponent({name:"OcWorkflowAdd",components:{IconAdd:Ul,NButton:O.NButton,NIcon:O.NIcon,NPopover:O.NPopover},emits:["update:add"],setup(e,{emit:t}){const r=v.ref(!1);return{showPopover:r,submit:a=>{r.value=!1,t("update:add",a)}}}});function RH(e,t,r,n,a,i){const o=v.resolveComponent("IconAdd"),s=v.resolveComponent("NIcon"),l=v.resolveComponent("NButton"),u=v.resolveComponent("NFlex"),c=v.resolveComponent("NPopover");return v.openBlock(),v.createBlock(c,{trigger:"manual",show:e.showPopover},{trigger:v.withCtx(()=>[v.createVNode(l,{type:"primary",onClick:t[0]||(t[0]=f=>e.showPopover=!0)},{default:v.withCtx(()=>[v.createVNode(s,{size:"18"},{default:v.withCtx(()=>[v.createVNode(o)]),_:1})]),_:1})]),default:v.withCtx(()=>[v.createVNode(u,null,{default:v.withCtx(()=>[v.createVNode(l,{type:"primary",onClick:t[1]||(t[1]=f=>e.submit(2))},{default:v.withCtx(()=>[v.createTextVNode("节点")]),_:1}),v.createVNode(l,{type:"primary",onClick:t[2]||(t[2]=f=>e.submit(1))},{default:v.withCtx(()=>[v.createTextVNode("分支")]),_:1})]),_:1})]),_:1},8,["show"])}const hC=X(OH,[["render",RH]]),BH=v.defineComponent({name:"OcWorkflowCard",components:{NFlex:O.NFlex,OcWorkflowAdd:hC,IconDismiss:cn},props:{data:{type:Object,default:()=>({})}},emits:["update:add","update:delete"],setup(e,{emit:t}){return{addOne:a=>{t("update:add",a)},doDelete:()=>{t("update:delete",!0)}}}}),VH={class:"oc-workflow-node"},$H={class:"oc-workflow-node-ctx"},FH=v.createElementVNode("div",{class:"oc-workflow-node-desc"},"功能",-1),zH={class:"oc-workflow-node-more"};function GH(e,t,r,n,a,i){const o=v.resolveComponent("IconDismiss"),s=v.resolveComponent("NIcon"),l=v.resolveComponent("NButton"),u=v.resolveComponent("NFlex"),c=v.resolveComponent("OcWorkflowAdd");return v.openBlock(),v.createElementBlock("div",VH,[v.createElementVNode("div",$H,[v.createVNode(u,{justify:"space-between",class:"oc-workflow-node-title"},{default:v.withCtx(()=>[v.createElementVNode("div",null,v.toDisplayString(e.data.title),1),e.data.type===1||e.data.type===2?(v.openBlock(),v.createBlock(l,{key:0,onClick:e.doDelete},{default:v.withCtx(()=>[v.createVNode(s,null,{default:v.withCtx(()=>[v.createVNode(o)]),_:1})]),_:1},8,["onClick"])):v.createCommentVNode("",!0)]),_:1}),FH]),v.createElementVNode("div",zH,[v.createVNode(c,{"onUpdate:add":t[0]||(t[0]=f=>{e.addOne(f)})})])])}const HH=X(BH,[["render",GH]]),UH=v.defineComponent({name:"OcWorkflowNode",components:{NButton:O.NButton,OcWorkflowAdd:hC,OcWorkflowCard:HH},props:{data:{type:Array,default:()=>[]}},setup(e){function t(c){const f=String(Date.now());return{title:"IF",type:1,key:f,parentKey:String(c),children:[{title:"条件1",type:1,key:`${f}1`,parentKey:f,children:[]},{title:"条件2",type:1,key:`${f}2`,parentKey:f,children:[]}]}}function r(c){const f=String(Date.now());return{title:`功能${Math.floor(Math.random()*101)}`,type:2,key:f,parentKey:String(c),children:[]}}return{addStartOne:c=>{e.data.splice(1,0,c===1?t(""):r(""))},addNodeOne:(c,f)=>{if(c.parentKey)e.data.push(f===1?t(c.parentKey):r(c.parentKey));else{const d=e.data.indexOf(c);e.data.splice(d+1,0,f===1?t(""):r(""))}},addCondition:c=>{const f=String(Date.now());c.children.push({title:`条件${c.children.length+1}`,type:1,key:f,parentKey:c.key,children:[]})},addConditionBottom:(c,f)=>{if(c.parentKey)e.data.push(f===1?t(c.parentKey):r(c.parentKey));else{const d=e.data.indexOf(c);e.data.splice(d+1,0,f===1?t(""):r(""))}},addConditionSide:(c,f)=>{c.children.length===0?c.children.push(f===1?t(c.parentKey):r(c.parentKey)):c.children.unshift(f===1?t(c.parentKey):r(c.parentKey))},deleteNodeOne:c=>{e.data.splice(c,1)},deleteConditionSide:(c,f)=>{if(c.children.length===2){const d=e.data.indexOf(c);e.data.splice(d,1)}else c.children.splice(f,1)}}}}),WH={key:2},YH={class:"oc-workflow-node-branch-add"},qH={class:"oc-workflow-branch-ctx"},jH={class:"oc-workflow-node-branch-add-bottom"},XH={key:3,class:"oc-workflow-node-end"},ZH=v.createElementVNode("div",{class:"oc-workflow-node-title-end"},"流程结束",-1),KH=[ZH];function JH(e,t,r,n,a,i){const o=v.resolveComponent("OcWorkflowCard"),s=v.resolveComponent("NButton"),l=v.resolveComponent("OcWorkflowNode"),u=v.resolveComponent("OcWorkflowAdd");return v.openBlock(!0),v.createElementBlock(v.Fragment,null,v.renderList(e.data,(c,f)=>(v.openBlock(),v.createElementBlock(v.Fragment,{key:c.key},[c.type===0?(v.openBlock(),v.createBlock(o,{data:c,key:f,"onUpdate:add":e.addStartOne},null,8,["data","onUpdate:add"])):v.createCommentVNode("",!0),c.type===2?(v.openBlock(),v.createBlock(o,{data:c,key:f,class:"arrow","onUpdate:add":d=>{e.addNodeOne(c,d)},"onUpdate:delete":d=>e.deleteNodeOne(f)},null,8,["data","onUpdate:add","onUpdate:delete"])):v.createCommentVNode("",!0),c.type===1?(v.openBlock(),v.createElementBlock("div",WH,[(v.openBlock(),v.createElementBlock("div",{class:"oc-workflow-branch",key:f},[v.createElementVNode("div",YH,[v.createVNode(s,{type:"success",onClick:d=>e.addCondition(c)},{default:v.withCtx(()=>[v.createTextVNode("添加条件")]),_:2},1032,["onClick"])]),v.createElementVNode("div",qH,[(v.openBlock(!0),v.createElementBlock(v.Fragment,null,v.renderList(c.children,(d,h)=>(v.openBlock(),v.createElementBlock("div",{key:`children-${h}`},[v.createVNode(o,{data:d,"onUpdate:add":p=>{e.addConditionSide(d,p)},"onUpdate:delete":p=>e.deleteConditionSide(c,h)},null,8,["data","onUpdate:add","onUpdate:delete"]),v.createVNode(l,{data:d.children},null,8,["data"])]))),128))])])),v.createElementVNode("div",jH,[v.createVNode(u,{"onUpdate:add":d=>{e.addConditionBottom(c,d)}},null,8,["onUpdate:add"])])])):v.createCommentVNode("",!0),c.type===99?(v.openBlock(),v.createElementBlock("div",XH,KH)):v.createCommentVNode("",!0)],64))),128)}const QH=X(UH,[["render",JH]]),eU=v.defineComponent({name:"OcWorkflow",components:{OcWorkflowNode:QH,NSlider:O.NSlider,NSelect:O.NSelect},props:{data:{type:Array,default:()=>[{title:"流程开始",type:0,key:"1",parentKey:"",children:[]},{title:"流程结束",type:99,key:"2",parentKey:"",children:[]}]}},setup(){const e=v.ref(1),t=v.ref(100),r=v.ref([{label:"50%",value:50},{label:"80%",value:80},{label:"100%",value:100},{label:"120%",value:120},{label:"150%",value:150}]);return{scaleShow:e,scaleFilter:t,scaleOption:r,scaleHandle:o=>{t.value=o,e.value=o/100},formatTooltip:o=>`${o}%`,renderSelectLabel:o=>v.h("div",{},{default:()=>`${o.value}%`})}}}),tU={class:"oc-workflow"},rU={class:"oc-workflow-tools"},nU={class:"oc-workflow-ctx"},aU={class:"oc-workflow-main"};function iU(e,t,r,n,a,i){const o=v.resolveComponent("NSelect"),s=v.resolveComponent("NSlider"),l=v.resolveComponent("OcWorkflowNode");return v.openBlock(),v.createElementBlock("div",tU,[v.createElementVNode("div",rU,[v.createVNode(o,{value:e.scaleFilter,"onUpdate:value":t[0]||(t[0]=u=>e.scaleFilter=u),options:e.scaleOption,"render-label":e.renderSelectLabel,"on-update:value":e.scaleHandle,style:{width:"100px"}},null,8,["value","options","render-label","on-update:value"]),v.createVNode(s,{value:e.scaleFilter,"onUpdate:value":t[1]||(t[1]=u=>e.scaleFilter=u),min:50,max:150,step:10,style:{width:"100px"},"on-update:value":e.scaleHandle,"format-tooltip":e.formatTooltip,class:"oc-workflow-slider"},null,8,["value","on-update:value","format-tooltip"])]),v.createElementVNode("div",nU,[v.createElementVNode("div",aU,[v.createElementVNode("div",{class:"oc-workflow-warp",style:v.normalizeStyle({transform:`scale(${e.scaleShow})`})},[v.createVNode(l,{data:e.data},null,8,["data"])],4)])])])}const dC=X(eU,[["render",iU]]),U0=Object.freeze(Object.defineProperty({__proto__:null,IconAdd:Ul,IconAlert:Wh,IconArrowClockwise:Wa,IconArrowDown:Jl,IconArrowSquareDown:jh,IconArrowUp:td,IconCalendarArrowDown:Ao,IconChevronLeft:qh,IconClear:Yh,IconCloudArrowDown:Zl,IconDelete:Zh,IconDismiss:cn,IconDrafts:Jh,IconEye:Xl,IconEyeOff:Kh,IconFilter:jl,IconFullScreenMaximize:Z0,IconGridDots:Xh,IconMailInboxAdd:Mo,IconNavigation:Kl,IconPin:Qh,IconPinOff:ed,IconReset:rd,IconSearch:ql,IconUser:nd,IconWeatherMoon:Wl,IconWeatherSunny:Yl,OcActionButton:X0,OcAuth:e_,OcBack:t_,OcCircle:r_,OcEcharts:xS,OcError:TS,OcFooter:NS,OcForm:ZS,OcHeader:eC,OcImporter:Hv,OcLogin:rC,OcLogo:nC,OcMain:oC,OcMy:sC,OcNumberRoll:Uv,OcReport:lC,OcScan:uC,OcSearchBar:Wv,OcSkeleton:cC,OcTable:fC,OcWorkflow:dC,commonStore:oe,fnClearUser:zu,fnDownload:Fv,fnGetUser:Fu,fnRenderAction:pn,fnSetLang:Ya,fnSetTheme:Io,fnSetUser:zv,fnUserLogout:Gv,i18n:yt,userStore:$},Symbol.toStringTag,{value:"Module"}));var oU=rr,sU=function(){return oU.Date.now()},lU=sU,uU=/\s/;function cU(e){for(var t=e.length;t--&&uU.test(e.charAt(t)););return t}var fU=cU,hU=fU,dU=/^\s+/;function vU(e){return e&&e.slice(0,hU(e)+1).replace(dU,"")}var pU=vU,gU=Fo,mU=di,yU="[object Symbol]";function _U(e){return typeof e=="symbol"||mU(e)&&gU(e)==yU}var wU=_U,bU=pU,W0=la,SU=wU,Y0=NaN,CU=/^[-+]0x[0-9a-f]+$/i,xU=/^0b[01]+$/i,TU=/^0o[0-7]+$/i,NU=parseInt;function DU(e){if(typeof e=="number")return e;if(SU(e))return Y0;if(W0(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=W0(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=bU(e);var r=xU.test(e);return r||TU.test(e)?NU(e.slice(2),r?2:8):CU.test(e)?Y0:+e}var AU=DU,MU=la,Pf=lU,q0=AU,kU="Expected a function",EU=Math.max,PU=Math.min;function IU(e,t,r){var n,a,i,o,s,l,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(kU);t=q0(t)||0,MU(r)&&(c=!!r.leading,f="maxWait"in r,i=f?EU(q0(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d);function h(C){var T=n,b=a;return n=a=void 0,u=C,o=e.apply(b,T),o}function p(C){return u=C,s=setTimeout(y,t),c?h(C):o}function m(C){var T=C-l,b=C-u,D=t-T;return f?PU(D,i-b):D}function g(C){var T=C-l,b=C-u;return l===void 0||T>=t||T<0||f&&b>=i}function y(){var C=Pf();if(g(C))return w(C);s=setTimeout(y,m(C))}function w(C){return s=void 0,d&&n?h(C):(n=a=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,n=l=a=s=void 0}function S(){return s===void 0?o:w(Pf())}function x(){var C=Pf(),T=g(C);if(n=arguments,a=this,l=C,T){if(s===void 0)return p(l);if(f)return clearTimeout(s),s=setTimeout(y,t),h(l)}return s===void 0&&(s=setTimeout(y,t)),o}return x.cancel=_,x.flush=S,x}var LU=IU;const OU=DS(LU);let Yv=3840,qv=2160;const vC=v.reactive({scale:1});function RU(e,t){Yv=e,qv=t}function pC(){let e=1;const t=window.innerWidth,r=window.innerHeight,n=Yv,a=qv,i=parseFloat((n/a).toFixed(5));if(parseFloat((t/r).toFixed(5))>i){const s=parseFloat((r*i/n).toFixed(5));e=s>1?1:s}else{const s=parseFloat((t/i/a).toFixed(5));e=s>1?1:s}vC.scale=e}function BU(){const e=OU(pC,200);return e(),window.addEventListener("resize",e),()=>{Yv=3840,qv=2160,window.removeEventListener("resize",e)}}const VU=e=>!!($.kind===-1||$.kind===99||$.iot_menu_authorization.includes(e)),$U=e=>$.platform_tdm?$.kind===-1||$.kind===99||e==="home"?!0:$.tdm_menu_authorization.includes(e):!1,FU=e=>$.platform_qms?$.kind===-1||$.kind===99||e==="home"?!0:$.qms_menu_authorization.includes(e):!1,zU=e=>$.platform_twin?($.kind===-1||$.kind===99||e==="home",!0):!1,GU=e=>!!($.kind===-1||$.kind===99||$.maintain_menu_authorization.includes(e)),HU=e=>!!($.kind===-1||$.kind===99||$.order_menu_authorization.includes(e));let Zs="";const me=navigator.userAgent.toLocaleUpperCase(),UU=()=>{const e=/WINDOWS NT 5.[\d]+/,t=/WINDOWS NT 6.[\d]+/,r=/WINDOWS NT 7.[\d]+/,n=/WINDOWS NT 10.[\d]+/,a=/WINDOWS NT 11.[\d]+/,i=/ANDROID [\d.]+/,o=/IPHONE/,s=/IPAD/,l=/MAC/;if(e.test(me))return"Windows XP";if(t.test(me))return"Windows 7";if(r.test(me))return"Windows 8";if(n.test(me))return"Windows 10";if(a.test(me))return"Windows 11";if(i.test(me)){const u=i.exec(me);return`Android ${u?u[0].split(" ")[1]:""}`}if(o.test(me)){const c=/OS [\d_]+/.exec(me);return`iPhone ${c?c[0].split(" ")[1].replace(/_/g,"."):""}`}if(s.test(me)){const c=/OS [\d_]+/.exec(me);return`iPad${c?c[0].split(" ")[1].replace(/_/g,"."):""}`}if(l.test(me)){const c=/ [\d_]+/.exec(me);return`MAC ${c?c[0].replace(/_/g,".").replace(/ /g,""):""}`}return"Other Platform"},WU=()=>{const e=/MSIE [\d]+/,t=/EDG\/[\d.]+/,r=/FIREFOX\/[\d.]+/,n=/CHROME\/[\d.]+/,a=/SAFARI\/[\d.]+/,i=/OPR\/[\d.]+/,o=/SE \d/,s=/UCBROWSER/,l=/ANDROID [\d.]+/;if(e.test(me)&&o.test(me))return"SogouIE";if(o.test(me))return"SogouFast";if(s.test(me))return"UC";if(l.test(me))return"Android";if(i.test(me))return"Opera";if(e.test(me)){const u=e.exec(me);return`IE ${u?u[0].split("/")[1]:""}`}if(t.test(me)){const u=t.exec(me);return`Edge ${u?u[0].split("/")[1]:""}`}if(n.test(me)){const u=n.exec(me);return`Chrome ${u?u[0].split("/")[1]:""}`}if(r.test(me)){const u=r.exec(me);return`Firefox ${u?u[0].split("/")[1]:""}`}if(a.test(me)){const u=a.exec(me);return`Safari ${u?u[0].split("/")[1]:""}`}return"Others"};function j0(e,t,r,n=!1){if(e!==void 0&&(t in e||n)){const a=e[t],i=r(a);typeof i=="function"&&(e[t]=i)}}function YU(e,t,r,n=!1){e.addEventListener(t,r,n)}function qU(){if(!("XMLHttpRequest"in window))return;const e=XMLHttpRequest.prototype;j0(e,"open",t=>function(...r){this.xhr={method:r[0].toUpperCase(),url:r[1],startTime:Date.now(),type:"xhr"},t.apply(this,r)}),j0(e,"send",t=>function(...r){const{url:n}=this.xhr;this.ontimeout=function(){Hl(3,n,"Network Timeout")},YU(this,"loadend",function(){try{const a=JSON.parse(this.response);(this.status===500||this.status===405)&&Hl(3,n,`${r[0]}-${this.status}-${this.response}`)}catch{}}),t.apply(this,r)})}function jU(e,t){Zs=typeof t=="string"?t:Zs,!(!t||!Zs)&&(qU(),window.addEventListener("error",function(r){Hl(1,window.location.href,r)}),window.addEventListener("unhandledrejection",function(r){r.preventDefault()}),e.config.errorHandler=r=>{Hl(2,window.location.href,r)})}const Hl=(e,t,r)=>{if(!$.userId||r.indexOf("ResizeObserver")>-1||r.message.indexOf("ResizeObserver")>-1)return;const n={type:e,time:Date.now(),key:"c604902e-4088-4c64-bc73-edfbc971805b",url:encodeURIComponent(t||location.href),title:document.title,browser:WU(),platform:UU(),system:oe.platformName,message:e===1||e===2?r.message:r,user:{userId:$.userId,name:$.name,factoryId:$.factoryId,systemType:$.systemType,tenantLoginCode:$.tenantLoginCode,tenantName:$.tenantName,tenantStatus:$.tenantStatus,userAgent:me}},a=Jr(n),i=document.body;let o=new Image;o.src=Zs+"?data="+a,o.onload=o.onerror=function(){i.removeChild(o),o=null},i.append(o),e!==3&&console.error(r)};let gC;async function mC(){const e=await fetch(`${window.location.protocol}//${window.location.host}`,{method:"HEAD",cache:"no-cache"});return e.headers.get("etag")||e.headers.get("last-modified")}async function XU(){const e=await mC();gC!==e&&dT(!0)}async function ZU(){gC=await mC(),window.versionMonitor&&clearInterval(window.versionMonitor),window.versionMonitor=setInterval(()=>{XU()},60*1e3)}function yC({components:e=[]}={}){const t=[];function r(a,i,o){a.component(i)||a.component(i,o)}function n(a,i){if(!t.includes(a)&&(t.push(a),e.forEach(o=>{const{name:s,alias:l}=o;r(a,s,o),l&&l.forEach(u=>{r(a,u,o)})}),i)){const{platform:o="iot",monitor:s=!1,versionMonitor:l=!0,enableRedirect:u=!0,language:c=!1,local:f="zh-CN"}=i,d=Et("theme",!1),h=Et("lang",f);hT(o),qG(u),fT(c),Ya(h),Io(d),yt.global.locale.value=h,l&&ZU(),s&&jU(a,s)}}return{version:J0,install:n}}const _C=yC({components:Object.keys(U0).map(e=>U0[e])}),KU=_C.install;exports.CUSTOM=BG;exports.FILE=$v;exports.GET=JS;exports.IconAdd=Ul;exports.IconAlert=Wh;exports.IconArrowClockwise=Wa;exports.IconArrowDown=Jl;exports.IconArrowSquareDown=jh;exports.IconArrowUp=td;exports.IconCalendarArrowDown=Ao;exports.IconChevronLeft=qh;exports.IconClear=Yh;exports.IconCloudArrowDown=Zl;exports.IconDelete=Zh;exports.IconDismiss=cn;exports.IconDrafts=Jh;exports.IconEye=Xl;exports.IconEyeOff=Kh;exports.IconFilter=jl;exports.IconFullScreenMaximize=Z0;exports.IconGridDots=Xh;exports.IconMailInboxAdd=Mo;exports.IconNavigation=Kl;exports.IconPin=Qh;exports.IconPinOff=ed;exports.IconReset=rd;exports.IconSearch=ql;exports.IconUser=nd;exports.IconWeatherMoon=Wl;exports.IconWeatherSunny=Yl;exports.OcActionButton=X0;exports.OcAuth=e_;exports.OcBack=t_;exports.OcCircle=r_;exports.OcEcharts=xS;exports.OcError=TS;exports.OcFooter=NS;exports.OcForm=ZS;exports.OcHeader=eC;exports.OcImporter=Hv;exports.OcLogin=rC;exports.OcLogo=nC;exports.OcMain=oC;exports.OcMy=sC;exports.OcNumberRoll=Uv;exports.OcReport=lC;exports.OcScan=uC;exports.OcSearchBar=Wv;exports.OcSkeleton=cC;exports.OcTable=fC;exports.OcWorkflow=dC;exports.POST=ut;exports.commonStore=oe;exports.create=yC;exports.darkTheme=iC;exports.default=_C;exports.fnCancelFetch=RG;exports.fnCheckDashRole=zU;exports.fnCheckIoTRole=VU;exports.fnCheckMaintainRole=GU;exports.fnCheckOrderRole=HU;exports.fnCheckQMSRole=FU;exports.fnCheckTDMRole=$U;exports.fnClearUser=zu;exports.fnComputedScale=pC;exports.fnDecodeCursor=vo;exports.fnDelStorage=ko;exports.fnDeleteLoad=K0;exports.fnDownload=Fv;exports.fnEncodeCursor=Jr;exports.fnFormatTime=Tr;exports.fnFormatUnits=sT;exports.fnFullScreen=oT;exports.fnGetStorage=Et;exports.fnGetUser=Fu;exports.fnListenerScale=BU;exports.fnPageModel2Naive=Eo;exports.fnPageNaive2Model=Po;exports.fnRenderAction=pn;exports.fnScrollTop=Ks;exports.fnSetLang=Ya;exports.fnSetNormalWidthAndHeight=RU;exports.fnSetStorage=Yt;exports.fnSetTheme=Io;exports.fnSetUser=zv;exports.fnThrottle=iT;exports.fnUserLogout=Gv;exports.getDefaultDate=Ea;exports.i18n=yt;exports.install=KU;exports.lightTheme=aC;exports.scaleStore=vC;exports.userStore=$;