@partex/one-core 2.1.13 → 2.1.15
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/components/echarts/dark.d.ts +0 -3
- package/lib/components/echarts/echarts.d.ts +3 -3
- package/lib/components/echarts/white.d.ts +0 -3
- package/lib/components/header/index.vue.d.ts +1 -1
- package/lib/components/main/index.vue.d.ts +3 -15
- package/lib/components/store/user.d.ts +1 -1
- package/lib/components/table/index.vue.d.ts +1 -1
- package/lib/one-core.cjs +18 -18
- package/lib/one-core.js +23043 -13641
- package/lib/one-core.umd.cjs +18 -18
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/one-core.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var xC=Object.defineProperty;var NC=(e,t,r)=>t in e?xC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Go=(e,t,r)=>(NC(e,typeof t!="symbol"?t+"":t,r),r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const v=require("vue"),R=require("naive-ui"),$t=require("vue-router"),Zt=require("vue-i18n"),Z0=require("vuedraggable"),Rs=require("md5"),Hh=require("axios"),DC=require("jsqr"),K0=v.defineComponent({name:"OcActionButton",props:{data:{required:!0,type:Array,default:()=>[]}},setup(e){return()=>vn(e.data)}}),re=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},AC={},MC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},kC=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),EC=[kC];function PC(e,t){return v.openBlock(),v.createElementBlock("svg",MC,EC)}const Uh=re(AC,[["render",PC]]),IC={},LC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},OC=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),RC=[OC];function BC(e,t){return v.openBlock(),v.createElementBlock("svg",LC,RC)}const Wh=re(IC,[["render",BC]]),VC={},$C={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},FC=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),zC=[FC];function GC(e,t){return v.openBlock(),v.createElementBlock("svg",$C,zC)}const Yh=re(VC,[["render",GC]]),HC={},UC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},WC=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),YC=[WC];function qC(e,t){return v.openBlock(),v.createElementBlock("svg",UC,YC)}const qh=re(HC,[["render",qC]]),jC={},XC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},ZC=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),KC=[ZC];function JC(e,t){return v.openBlock(),v.createElementBlock("svg",XC,KC)}const jh=re(jC,[["render",JC]]),QC={},eT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},tT=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),rT=[tT];function nT(e,t){return v.openBlock(),v.createElementBlock("svg",eT,rT)}const Gl=re(QC,[["render",nT]]),aT={},iT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},oT=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),sT=[oT];function lT(e,t){return v.openBlock(),v.createElementBlock("svg",iT,sT)}const Hl=re(aT,[["render",lT]]),uT={},cT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},fT=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),hT=[fT];function dT(e,t){return v.openBlock(),v.createElementBlock("svg",cT,hT)}const Xh=re(uT,[["render",dT]]),vT={},pT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},gT=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),mT=[gT];function yT(e,t){return v.openBlock(),v.createElementBlock("svg",pT,mT)}const Ul=re(vT,[["render",yT]]),_T={},wT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},bT=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),ST=[bT];function CT(e,t){return v.openBlock(),v.createElementBlock("svg",wT,ST)}const Wa=re(_T,[["render",CT]]),TT={},xT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},NT=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),DT=[NT];function AT(e,t){return v.openBlock(),v.createElementBlock("svg",xT,DT)}const ko=re(TT,[["render",AT]]),MT={},kT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},ET=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),PT=[ET];function IT(e,t){return v.openBlock(),v.createElementBlock("svg",kT,PT)}const Wl=re(MT,[["render",IT]]),LT={},OT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},RT=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),BT=[RT];function VT(e,t){return v.openBlock(),v.createElementBlock("svg",OT,BT)}const J0=re(LT,[["render",VT]]),$T={},FT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},zT=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),GT=[zT];function HT(e,t){return v.openBlock(),v.createElementBlock("svg",FT,GT)}const Zh=re($T,[["render",HT]]),UT={},WT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},YT=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),qT=[YT];function jT(e,t){return v.openBlock(),v.createElementBlock("svg",WT,qT)}const Yl=re(UT,[["render",jT]]),XT={},ZT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},KT=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),JT=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),QT=[KT,JT];function e2(e,t){return v.openBlock(),v.createElementBlock("svg",ZT,QT)}const Kh=re(XT,[["render",e2]]),t2={},r2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},n2=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),a2=[n2];function i2(e,t){return v.openBlock(),v.createElementBlock("svg",r2,a2)}const Jh=re(t2,[["render",i2]]),o2={},s2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},l2=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),u2=[l2];function c2(e,t){return v.openBlock(),v.createElementBlock("svg",s2,u2)}const jn=re(o2,[["render",c2]]),f2={},h2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},d2=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),v2=[d2];function p2(e,t){return v.openBlock(),v.createElementBlock("svg",h2,v2)}const Eo=re(f2,[["render",p2]]),g2={},m2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},y2=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),_2=[y2];function w2(e,t){return v.openBlock(),v.createElementBlock("svg",m2,_2)}const ql=re(g2,[["render",w2]]),b2={},S2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},C2=v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 160h352"},null,-1),T2=v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 256h352"},null,-1),x2=v.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 352h352"},null,-1),N2=[C2,T2,x2];function D2(e,t){return v.openBlock(),v.createElementBlock("svg",S2,N2)}const jl=re(b2,[["render",D2]]),A2={},M2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},k2=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),E2=[k2];function P2(e,t){return v.openBlock(),v.createElementBlock("svg",M2,E2)}const Qh=re(A2,[["render",P2]]),I2={},L2={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:"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),R2=[O2];function B2(e,t){return v.openBlock(),v.createElementBlock("svg",L2,R2)}const ed=re(I2,[["render",B2]]),V2={},$2={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:"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),z2=[F2];function G2(e,t){return v.openBlock(),v.createElementBlock("svg",$2,z2)}const Xl=re(V2,[["render",G2]]),H2={},U2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},W2=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),Y2=[W2];function q2(e,t){return v.openBlock(),v.createElementBlock("svg",U2,Y2)}const td=re(H2,[["render",q2]]),j2={},X2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Z2=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),K2=[Z2];function J2(e,t){return v.openBlock(),v.createElementBlock("svg",X2,K2)}const rd=re(j2,[["render",J2]]),Q2={},ex={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},tx=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),rx=[tx];function nx(e,t){return v.openBlock(),v.createElementBlock("svg",ex,rx)}const nd=re(Q2,[["render",nx]]),ad=window.localStorage;function zu(e,t){ad.setItem(e,JSON.stringify(t))}function Qv(e){const t=ad.getItem(e);if(t)return JSON.parse(t)}function ax(e){ad.removeItem(e)}function ep(){return Date.parse(String(new Date))}const ix="local-";class ox{constructor(t=""){Go(this,"namespace");Go(this,"mapKey");Go(this,"map");this.namespace=t,this.mapKey=ix+this.namespace,this.map=Qv(this.mapKey)||{}}set(t,r,n=0){const a=this.getReallyKey(t),i={expires:n,time:ep()};zu(a,r),this.map[t]=i,zu(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=Qv(n);if(a.expires>0){if(ep()-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],zu(this.mapKey,this.map),ax(r)}deleteAll(){for(const t in this.map)this.delete(t)}}const id=new ox("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 wt(e,t,r="1 Day"){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 dt(e,t){return id.get(e,t)}const ti=e=>{id.delete(e)},Xs=(e=0)=>{const t=document.documentElement;t&&(t.scrollTop=e,setTimeout(()=>{t.scrollTop=e},100))},Q0=()=>{const e=document.querySelectorAll(".partex-loading");e&&e.length>0&&e.forEach(t=>{const r=t.parentNode;r==null||r.removeChild(t)})};function Zl(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:()=>j.lang==="zh-CN"?`共${e.total}条`:`${e.total} items`})},records:r}}function Kl(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},Kr=e=>{try{return window.btoa(encodeURIComponent(JSON.stringify(e)))}catch{return""}},go=e=>{try{return JSON.parse(decodeURIComponent(window.atob(e)))}catch{return""}},sx=(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 lx(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 ux(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 cx={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:"重试"},scan:{label:"扫一扫"}}},fx={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"},scan:{label:"Scan"}}},hx=Zt.createI18n({legacy:!1,locale:"zh-CN",messages:{"en-US":{...fx},"zh-CN":{...cx},"fr-FR":{}}}),un=hx,Cr=$t.createRouter({history:$t.createWebHistory(),routes:[],scrollBehavior:()=>({left:0,top:0})}),Gu=document.querySelector("html");Cr.beforeEach(()=>{Gu==null||Gu.removeAttribute("style")});const dx=Object.prototype.hasOwnProperty;function e_(e,t){const r=[];for(const n in e){if(!dx.call(e,n))continue;const a=e[n],i=encodeURIComponent(n);let o;typeof a=="object"?o=e_(a,t?t+"["+i+"]":i):o=(t?t+"["+i+"]":i)+"="+encodeURIComponent(a),r.push(o)}return r.join("&")}const{notification:Hu}=R.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"}}),ri=Hh.create({timeout:3e5,responseType:"json",headers:{platformType:"T1"}}),vx=String(0-new Date().getTimezoneOffset()/60);let Pf=Hh.CancelToken.source();ri.interceptors.request.use(e=>{var r;e.cancelToken=Pf.token,e.headers.TimezoneOffset=vx,e.headers.Language=j.lang;const t=dt("token",!1);if(e.headers&&t&&(e.headers["X-Auth-Token"]=t),((r=e.method)==null?void 0:r.toLocaleUpperCase())==="GET"){const n=e_(e.data);n&&(e.url=`${e.url}?${n}`)}return e},e=>Promise.reject(e));ri.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&&(r.indexOf("Connection refused")>-1||r.indexOf("finishConnect")>-1)&&(r="网络错误,请稍后重试"),Hu.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&&(Q0(),Cr.replace("/custom/500")),e&&e.response)switch(e.response.status){case 401:case 403:ti("token"),window.location.href="/login";break;default:return Hu.destroyAll(),Hu.error({content:"系统正在维护中,请稍后再试!",duration:3e3}),Promise.reject()}else return Promise.reject()});const t_=()=>{Pf.cancel(),Pf=Hh.CancelToken.source()},od="/apiserver/",r_=(e,t,r="json")=>ri({url:`${od}${e}`,method:"GET",data:t,responseType:r}),yt=(e,t={},r="json",n=3e5)=>ri({url:`${od}${e}`,method:"POST",data:t,responseType:r,timeout:n}),n_=e=>ri(e),sd=(e,t)=>ri({headers:{"Content-Type":"multipart/form-data"},url:`${od}${e}`,method:"POST",data:t});function a_(){return new Promise((e,t)=>{n_({url:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/platform.json",method:"GET",responseType:"text"}).then(r=>{const n=JSON.parse(r),a=n.platform,i={platformList:a,owned:n.owned};px(i),e(a)}).catch(()=>{t(!1)})})}const j=v.reactive({needUpdate:!1,download:!1,theme:!1,isPad:!1,isMobile:!1,language:!1,lang:"zh-CN",platformName:()=>un.global.t("Platform.iot"),platformType:"T1",platformUrl:"/iot/home/all",platformList:{},platformMenu:[],owned:{},options:{importUrl:"api/manager/job/submit",pageUrl:"api/manager/job/page",removeUrl:"api/manager/job/remove"}});function px(e){j.platformList=e.platformList,j.owned=e.owned}function gx(e){j.platformMenu=e}function ld(e){j.download=e}function mx(e){j.language=e}function Ya(e){let t;e?t=e:j.lang==="zh-CN"?t="en-US":t="zh-CN",wt("lang",t,0),j.lang=t;const r=document.body;r.dataset.lang=t,un.global.locale.value=t}async function yx(e){if(typeof e=="object")j.platformName=e.platformName,j.platformType=e.platformType,j.platformUrl=e.platformUrl;else{const t=await a_();if(t){const r=t[e]||t.iot;j.platformName=()=>un.global.t(r.platformName),j.platformType=r.platformType,j.platformUrl=r.platformUrl,document.title=j.platformName()}}}function Po(e){j.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 _x(e){j.needUpdate=e}function bx(e){j.options=Object.assign({},j.options,e)}const i_=()=>{j.isMobile=window.screen.availWidth<769,j.isPad=window.screen.availWidth<1024};window.addEventListener("resize",i_);i_();const Ho=(e,t)=>v.h(R.NTooltip,{style:{"max-width":"300px"}},{trigger:()=>e,default:()=>typeof t=="function"?t():t}),xr=(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(R.NIcon,{},{default:()=>v.h(r,{},{default:()=>null})})),v.h(R.NButton,i,o)},Zs=(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(R.NPopconfirm,a,{default:()=>v.h("span",{style:{"max-width":"300px"}},{default:()=>typeof t.confirmText=="function"?t.confirmText():t.confirmText}),trigger:()=>e})},Sx=(e,t,r)=>{let n;if(e.type==="detail"){const a=xr(e,e.color?e.color:"primary",e.icon?e.icon:Yl,t,r);e.buttonText?n=a:n=Ho(a,j.lang==="zh-CN"?"详情":"Detail")}if(e.type==="edit"){const a=xr(e,e.color?e.color:"success",e.icon?e.icon:Jh,t,r);e.buttonText?n=a:n=Ho(a,j.lang==="zh-CN"?"编辑":"Edit")}if(e.type==="delete"){let a=xr({...e,onClick:""},e.color?e.color:"error",e.icon?e.icon:Zh,t,r);e.buttonText?a=a:a=Ho(a,j.lang==="zh-CN"?"删除":"Delete"),n=Zs(a,{...e,confirmText:j.lang==="zh-CN"?"删除后无法恢复,是否确认删除?":"Are you sure you want to delete ?"},t,r)}if(e.type==="custom"){const a=xr(e.confirmText?{...e,onClick:""}:e,e.color,e.icon,t,r);e.buttonText?n=a:n=Ho(a,e.tooltipText)}return e.confirmText&&(n=Zs(n,e,t,r)),n},Cx=(e,t,r)=>{const n=[];return e.forEach(a=>{let i;a.type==="detail"&&(i=xr({...a,buttonText:j.lang==="zh-CN"?"详情":"Detail"},"primary",void 0,t,r)),a.type==="edit"&&(i=xr({...a,buttonText:j.lang==="zh-CN"?"编辑":"Edit"},"success",void 0,t,r)),a.type==="delete"&&(i=Zs(xr({...a,onClick:"",buttonText:j.lang==="zh-CN"?"删除":"Delete"},"error",void 0,t,r),{...a,confirmText:j.lang==="zh-CN"?"删除后无法恢复,是否确认删除?":"Are you sure you want to delete ?"},t,r)),a.type==="custom"&&(i=xr(a,a.color,void 0,t,r)),a.confirmText&&(i=Zs(i,a,t,r)),n.push(i)}),n},vn=(e,t,r)=>{const n=[];return e.forEach(a=>{if(a.type==="group"){if(a.children.length>0){const i=Cx(a.children,t,r);n.push(v.h(R.NPopover,{trigger:"hover"},{trigger:()=>xr({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(R.NFlex,{vertical:!0},{default:()=>i})}))}}else{const i=Sx(a,t,r);n.push(i)}}),v.h("div",{class:"action-flex"},{default:()=>n})},Tx=v.defineComponent({name:"OcAuth",setup(){const e=$t.useRoute(),t=$t.useRouter(),{auth:r}=e.query;r?wt("token",r,0):ti("token"),t.replace(j.platformUrl)}}),xx={class:"com-card flex-center",style:{flex:"1"}},Nx=v.createElementVNode("p",{class:"oc-miss-title"},"登录中...",-1),Dx=[Nx];function Ax(e,t,r,n,a,i){return v.openBlock(),v.createElementBlock("div",xx,Dx)}const o_=re(Tx,[["render",Ax]]),Mx=v.defineComponent({name:"OcBack",components:{IconChevronLeft:qh,NButton:R.NButton,NIcon:R.NIcon},props:{to:{type:String,default:""}},setup(e){const t=$t.useRouter();return{back:()=>{e.to?t.push(e.to):t.back()}}}});function kx(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 s_=re(Mx,[["render",kx]]),Ex=v.defineComponent({name:"OcCircle",components:{NPopover:R.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}}}}),Px={viewBox:"40 20 120 120"},Ix=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),Lx=["stroke"],Ox=["stroke"],Rx=["r","transform","fill"],Bx=["r","transform","fill"],Vx={dx:"100",dy:"90",fill:"#333","text-anchor":"middle",style:{"font-size":"28px"}};function $x(e,t,r,n,a,i){const o=v.resolveComponent("NPopover");return v.openBlock(),v.createElementBlock(v.Fragment,null,[(v.openBlock(),v.createElementBlock("svg",Px,[Ix,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,Lx),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,Ox),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,Rx)):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,Bx)):v.createCommentVNode("",!0),v.createElementVNode("text",Vx,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 l_=re(Ex,[["render",$x]]);/*! *****************************************************************************
|
|
1
|
+
"use strict";var FC=Object.defineProperty;var bC=(e,t,r)=>t in e?FC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Hi=(e,t,r)=>(bC(e,typeof t!="symbol"?t+"":t,r),r);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("vue"),R=require("naive-ui"),Ht=require("vue-router"),Qt=require("vue-i18n"),Km=require("vuedraggable"),Ls=require("md5"),Uc=require("axios"),Jm=h.defineComponent({name:"OcActionButton",props:{data:{required:!0,type:Array,default:()=>[]}},setup(e){return()=>vn(e.data)}}),ae=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},SC={},kC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},TC=h.createElementVNode("g",{fill:"none"},[h.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),NC=[TC];function PC(e,t){return h.openBlock(),h.createElementBlock("svg",kC,NC)}const Wc=ae(SC,[["render",PC]]),MC={},IC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},LC=h.createElementVNode("g",{fill:"none"},[h.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),OC=[LC];function RC(e,t){return h.openBlock(),h.createElementBlock("svg",IC,OC)}const Yc=ae(MC,[["render",RC]]),VC={},$C={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},zC=h.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[h.createElementVNode("path",{d:"M8 6h12"}),h.createElementVNode("path",{d:"M6 12h12"}),h.createElementVNode("path",{d:"M4 18h12"})],-1),GC=[zC];function HC(e,t){return h.openBlock(),h.createElementBlock("svg",$C,GC)}const Xc=ae(VC,[["render",HC]]),UC={},WC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},YC=h.createElementVNode("g",{fill:"none"},[h.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),XC=[YC];function jC(e,t){return h.openBlock(),h.createElementBlock("svg",WC,XC)}const jc=ae(UC,[["render",jC]]),ZC={},qC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},KC=h.createElementVNode("g",{fill:"none"},[h.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=[KC];function QC(e,t){return h.openBlock(),h.createElementBlock("svg",qC,JC)}const Zc=ae(ZC,[["render",QC]]),e5={},t5={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},r5=h.createElementVNode("g",{fill:"none"},[h.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),n5=[r5];function a5(e,t){return h.openBlock(),h.createElementBlock("svg",t5,n5)}const G0=ae(e5,[["render",a5]]),o5={},i5={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},s5=h.createElementVNode("g",{fill:"none"},[h.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),l5=[s5];function u5(e,t){return h.openBlock(),h.createElementBlock("svg",i5,l5)}const H0=ae(o5,[["render",u5]]),x5={},c5={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},f5=h.createElementVNode("g",{fill:"none"},[h.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),d5=[f5];function h5(e,t){return h.openBlock(),h.createElementBlock("svg",c5,d5)}const qc=ae(x5,[["render",h5]]),v5={},p5={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},g5=h.createElementVNode("g",{fill:"none"},[h.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),m5=[g5];function E5(e,t){return h.openBlock(),h.createElementBlock("svg",p5,m5)}const U0=ae(v5,[["render",E5]]),y5={},C5={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},B5=h.createElementVNode("g",{fill:"none"},[h.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),A5=[B5];function D5(e,t){return h.openBlock(),h.createElementBlock("svg",C5,A5)}const Ya=ae(y5,[["render",D5]]),_5={},w5={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},F5=h.createElementVNode("g",{fill:"none"},[h.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),b5=[F5];function S5(e,t){return h.openBlock(),h.createElementBlock("svg",w5,b5)}const Ni=ae(_5,[["render",S5]]),k5={},T5={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},N5=h.createElementVNode("g",{fill:"none"},[h.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),P5=[N5];function M5(e,t){return h.openBlock(),h.createElementBlock("svg",T5,P5)}const W0=ae(k5,[["render",M5]]),I5={},L5={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},O5=h.createElementVNode("g",{fill:"none"},[h.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),R5=[O5];function V5(e,t){return h.openBlock(),h.createElementBlock("svg",L5,R5)}const Qm=ae(I5,[["render",V5]]),$5={},z5={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},G5=h.createElementVNode("g",{fill:"none"},[h.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),H5=[G5];function U5(e,t){return h.openBlock(),h.createElementBlock("svg",z5,H5)}const Kc=ae($5,[["render",U5]]),W5={},Y5={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},X5=h.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),j5=[X5];function Z5(e,t){return h.openBlock(),h.createElementBlock("svg",Y5,j5)}const Y0=ae(W5,[["render",Z5]]),q5={},K5={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},J5=h.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),Q5=h.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),e2=[J5,Q5];function t2(e,t){return h.openBlock(),h.createElementBlock("svg",K5,e2)}const Jc=ae(q5,[["render",t2]]),r2={},n2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},a2=h.createElementVNode("g",{fill:"none"},[h.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),o2=[a2];function i2(e,t){return h.openBlock(),h.createElementBlock("svg",n2,o2)}const Qc=ae(r2,[["render",i2]]),s2={},l2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},u2=h.createElementVNode("g",{fill:"none"},[h.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),x2=[u2];function c2(e,t){return h.openBlock(),h.createElementBlock("svg",l2,x2)}const Zn=ae(s2,[["render",c2]]),f2={},d2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},h2=h.createElementVNode("g",{fill:"none"},[h.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),v2=[h2];function p2(e,t){return h.openBlock(),h.createElementBlock("svg",d2,v2)}const Pi=ae(f2,[["render",p2]]),g2={},m2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},E2=h.createElementVNode("g",{fill:"none"},[h.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),y2=[E2];function C2(e,t){return h.openBlock(),h.createElementBlock("svg",m2,y2)}const X0=ae(g2,[["render",C2]]),B2={},A2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},D2=h.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 160h352"},null,-1),_2=h.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 256h352"},null,-1),w2=h.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 352h352"},null,-1),F2=[D2,_2,w2];function b2(e,t){return h.openBlock(),h.createElementBlock("svg",A2,F2)}const j0=ae(B2,[["render",b2]]),S2={},k2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},T2=h.createElementVNode("g",{fill:"none"},[h.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),N2=[T2];function P2(e,t){return h.openBlock(),h.createElementBlock("svg",k2,N2)}const ef=ae(S2,[["render",P2]]),M2={},I2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},L2=h.createElementVNode("g",{fill:"none"},[h.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),O2=[L2];function R2(e,t){return h.openBlock(),h.createElementBlock("svg",I2,O2)}const tf=ae(M2,[["render",R2]]),V2={},$2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},z2=h.createElementVNode("g",{fill:"none"},[h.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),G2=[z2];function H2(e,t){return h.openBlock(),h.createElementBlock("svg",$2,G2)}const Z0=ae(V2,[["render",H2]]),U2={},W2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Y2=h.createElementVNode("g",{fill:"none"},[h.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),X2=[Y2];function j2(e,t){return h.openBlock(),h.createElementBlock("svg",W2,X2)}const rf=ae(U2,[["render",j2]]),Z2={},q2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},K2=h.createElementVNode("g",{fill:"none"},[h.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),J2=[K2];function Q2(e,t){return h.openBlock(),h.createElementBlock("svg",q2,J2)}const nf=ae(Z2,[["render",Q2]]),e6={},t6={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},r6=h.createElementVNode("g",{fill:"none"},[h.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),n6=[r6];function a6(e,t){return h.openBlock(),h.createElementBlock("svg",t6,n6)}const af=ae(e6,[["render",a6]]),of=window.localStorage;function Gl(e,t){of.setItem(e,JSON.stringify(t))}function eh(e){const t=of.getItem(e);if(t)return JSON.parse(t)}function o6(e){of.removeItem(e)}function th(){return Date.parse(String(new Date))}const i6="local-";class s6{constructor(t=""){Hi(this,"namespace");Hi(this,"mapKey");Hi(this,"map");this.namespace=t,this.mapKey=i6+this.namespace,this.map=eh(this.mapKey)||{}}set(t,r,n=0){const a=this.getReallyKey(t),o={expires:n,time:th()};Gl(a,r),this.map[t]=o,Gl(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 o=eh(n);if(a.expires>0){if(th()-a.time<=a.expires)return o===!1||o?o:r;this.delete(t)}else return o===!1||o?o:r}return r}delete(t){const r=this.getReallyKey(t);delete this.map[t],Gl(this.mapKey,this.map),o6(r)}deleteAll(){for(const t in this.map)this.delete(t)}}const sf=new s6("partex"),Na=(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 _t(e,t,r="1 Day"){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}sf.set(e,t,r)}function gt(e,t){return sf.get(e,t)}const ro=e=>{sf.delete(e)},Zs=(e=0)=>{const t=document.documentElement;t&&(t.scrollTop=e,setTimeout(()=>{t.scrollTop=e},100))},e9=()=>{const e=document.querySelectorAll(".partex-loading");e&&e.length>0&&e.forEach(t=>{const r=t.parentNode;r==null||r.removeChild(t)})};function q0(e,t=!1){let r=e.records;t&&(r=r.map((a,o)=>({key:o,...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:()=>h.h("div",{},{default:()=>J.lang==="zh-CN"?`共${e.total}条`:`${e.total} items`})},records:r}}function K0(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 Fr=(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 o=n[a];RegExp.$1.length!==1&&(o=("00"+n[a]).substr((""+n[a]).length)),t=t.replace(RegExp.$1,o)}return t},Jr=e=>{try{return window.btoa(encodeURIComponent(JSON.stringify(e)))}catch{return""}},mi=e=>{try{return JSON.parse(decodeURIComponent(window.atob(e)))}catch{return""}},l6=(e,t=500)=>{const r=e;let n;const a=function(...i){n||(n=setTimeout(function(){n&&clearTimeout(n),n=void 0,r.apply(a,i)},t))};return a};function u6(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 x6(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)),o=r[a];return o?(e/Math.pow(10,a*3)).toFixed(t)+o:(e/Math.pow(10,a*3)).toFixed(0)}const c6={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:"重试"},scan:{label:"扫一扫"}}},f6={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"},scan:{label:"Scan"}}},d6=Qt.createI18n({legacy:!1,locale:"zh-CN",messages:{"en-US":{...f6},"zh-CN":{...c6},"fr-FR":{}}}),xn=d6,wr=Ht.createRouter({history:Ht.createWebHistory(),routes:[],scrollBehavior:()=>({left:0,top:0})}),Hl=document.querySelector("html");wr.beforeEach(()=>{Hl==null||Hl.removeAttribute("style")});const h6=Object.prototype.hasOwnProperty;function t9(e,t){const r=[];for(const n in e){if(!h6.call(e,n))continue;const a=e[n],o=encodeURIComponent(n);let i;typeof a=="object"?i=t9(a,t?t+"["+o+"]":o):i=(t?t+"["+o+"]":o)+"="+encodeURIComponent(a),r.push(i)}return r.join("&")}const{notification:Ul}=R.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"}}),no=Uc.create({timeout:3e5,responseType:"json",headers:{platformType:"T1"}}),v6=0-new Date().getTimezoneOffset()/60>=0?`+${0-new Date().getTimezoneOffset()/60}`:String(0-new Date().getTimezoneOffset()/60);let Px=Uc.CancelToken.source();no.interceptors.request.use(e=>{var r;e.cancelToken=Px.token,e.headers.TimezoneOffset=v6,e.headers.Language=J.lang;const t=gt("token",!1);if(e.headers&&t&&(e.headers["X-Auth-Token"]=t),((r=e.method)==null?void 0:r.toLocaleUpperCase())==="GET"){const n=t9(e.data);n&&(e.url=`${e.url}?${n}`)}return e},e=>Promise.reject(e));no.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&&(r.indexOf("Connection refused")>-1||r.indexOf("finishConnect")>-1)&&(r="网络错误,请稍后重试"),Ul.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&&(e9(),wr.replace("/custom/500")),e&&e.response)switch(e.response.status){case 401:case 403:ro("token"),window.location.href="/login";break;default:return Ul.destroyAll(),Ul.error({content:"系统正在维护中,请稍后再试!",duration:3e3}),Promise.reject()}else return Promise.reject()});const r9=()=>{Px.cancel(),Px=Uc.CancelToken.source()},lf="/apiserver/",n9=(e,t,r="json")=>no({url:`${lf}${e}`,method:"GET",data:t,responseType:r}),Bt=(e,t={},r="json",n=3e5)=>no({url:`${lf}${e}`,method:"POST",data:t,responseType:r,timeout:n}),a9=e=>no(e),uf=(e,t)=>no({headers:{"Content-Type":"multipart/form-data"},url:`${lf}${e}`,method:"POST",data:t});function o9(){return new Promise((e,t)=>{a9({url:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/platform.json",method:"GET",responseType:"text"}).then(r=>{const n=JSON.parse(r),a=n.platform,o={platformList:a,owned:n.owned};p6(o),e(a)}).catch(()=>{t(!1)})})}const J=h.reactive({needUpdate:!1,download:!1,theme:!1,isPad:!1,isMobile:!1,language:!1,lang:"zh-CN",platformName:()=>xn.global.t("Platform.iot"),platformType:"T1",platformUrl:"/iot/home/all",platformList:{},platformMenu:[],owned:{},options:{importUrl:"api/manager/job/submit",pageUrl:"api/manager/job/page",removeUrl:"api/manager/job/remove"}});function p6(e){J.platformList=e.platformList,J.owned=e.owned}function g6(e){J.platformMenu=e}function xf(e){J.download=e}function m6(e){J.language=e}function Xa(e){let t;e?t=e:J.lang==="zh-CN"?t="en-US":t="zh-CN",_t("lang",t,0),J.lang=t;const r=document.body;r.dataset.lang=t,xn.global.locale.value=t}async function E6(e){if(typeof e=="object")J.platformName=e.platformName,J.platformType=e.platformType,J.platformUrl=e.platformUrl;else{const t=await o9();if(t){const r=t[e]||t.iot;J.platformName=()=>xn.global.t(r.platformName),J.platformType=r.platformType,J.platformUrl=r.platformUrl,document.title=J.platformName()}}}function Mi(e){J.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 y6(e){J.needUpdate=e}function C6(e){J.options=Object.assign({},J.options,e)}const i9=()=>{J.isMobile=window.screen.availWidth<769,J.isPad=window.screen.availWidth<1024};window.addEventListener("resize",i9);i9();const Ui=(e,t)=>h.h(R.NTooltip,{style:{"max-width":"300px"}},{trigger:()=>e,default:()=>typeof t=="function"?t():t}),br=(e,t="default",r,n,a)=>{const o={size:"small",type:t,text:!0,disabled:typeof e.disabled=="function"?e.disabled(n,a):e.disabled||!1,loading:e.loading||!1},i={default:()=>typeof e.buttonText=="function"?e.buttonText():e.buttonText||null};if(!e.confirmText){if(e.onClick&&typeof e.onClick=="string"){const s=e.onClick;o.onClick=()=>{new Function("rowData","rowIndex",s)(n,a)}}e.onClick&&typeof e.onClick=="function"&&(o.onClick=e.onClick.bind(void 0,n,a))}return r&&(i.icon=()=>h.h(R.NIcon,{},{default:()=>h.h(r,{},{default:()=>null})})),h.h(R.NButton,o,i)},qs=(e,t,r,n)=>{const a={placement:"left"};if(typeof t.onClick=="string"){const o=t.onClick;a["on-positive-click"]=()=>{new Function("rowData","rowIndex",o)(r,n)}}else t.onClick&&(a["on-positive-click"]=t.onClick.bind(void 0,r,n));return h.h(R.NPopconfirm,a,{default:()=>h.h("span",{style:{"max-width":"300px"}},{default:()=>typeof t.confirmText=="function"?t.confirmText():t.confirmText}),trigger:()=>e})},B6=(e,t,r)=>{let n;if(e.type==="detail"){const a=br(e,e.color?e.color:"primary",e.icon?e.icon:Y0,t,r);e.buttonText?n=a:n=Ui(a,J.lang==="zh-CN"?"详情":"Detail")}if(e.type==="edit"){const a=br(e,e.color?e.color:"success",e.icon?e.icon:Qc,t,r);e.buttonText?n=a:n=Ui(a,J.lang==="zh-CN"?"编辑":"Edit")}if(e.type==="delete"){let a=br({...e,onClick:""},e.color?e.color:"error",e.icon?e.icon:Kc,t,r);e.buttonText?a=a:a=Ui(a,J.lang==="zh-CN"?"删除":"Delete"),n=qs(a,{...e,confirmText:J.lang==="zh-CN"?"删除后无法恢复,是否确认删除?":"Are you sure you want to delete ?"},t,r)}if(e.type==="custom"){const a=br(e.confirmText?{...e,onClick:""}:e,e.color,e.icon,t,r);e.buttonText?n=a:n=Ui(a,e.tooltipText)}return e.confirmText&&(n=qs(n,e,t,r)),n},A6=(e,t,r)=>{const n=[];return e.forEach(a=>{let o;a.type==="detail"&&(o=br({...a,buttonText:J.lang==="zh-CN"?"详情":"Detail"},"primary",void 0,t,r)),a.type==="edit"&&(o=br({...a,buttonText:J.lang==="zh-CN"?"编辑":"Edit"},"success",void 0,t,r)),a.type==="delete"&&(o=qs(br({...a,onClick:"",buttonText:J.lang==="zh-CN"?"删除":"Delete"},"error",void 0,t,r),{...a,confirmText:J.lang==="zh-CN"?"删除后无法恢复,是否确认删除?":"Are you sure you want to delete ?"},t,r)),a.type==="custom"&&(o=br(a,a.color,void 0,t,r)),a.confirmText&&(o=qs(o,a,t,r)),n.push(o)}),n},vn=(e,t,r)=>{const n=[];return e.forEach(a=>{if(a.type==="group"){if(a.children.length>0){const o=A6(a.children,t,r);n.push(h.h(R.NPopover,{trigger:"hover"},{trigger:()=>br({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:()=>h.h(R.NFlex,{vertical:!0},{default:()=>o})}))}}else{const o=B6(a,t,r);n.push(o)}}),h.h("div",{class:"action-flex"},{default:()=>n})},D6=h.defineComponent({name:"OcAuth",setup(){const e=Ht.useRoute(),t=Ht.useRouter(),{auth:r}=e.query;r?_t("token",r,0):ro("token"),t.replace("/")}}),_6={class:"com-card flex-center",style:{flex:"1"}},w6=h.createElementVNode("p",{class:"oc-miss-title"},"登录中...",-1),F6=[w6];function b6(e,t,r,n,a,o){return h.openBlock(),h.createElementBlock("div",_6,F6)}const s9=ae(D6,[["render",b6]]),S6=h.defineComponent({name:"OcBack",components:{IconChevronLeft:jc,NButton:R.NButton,NIcon:R.NIcon},props:{to:{type:String,default:""}},setup(e){const t=Ht.useRouter();return{back:()=>{e.to?t.push(e.to):t.back()}}}});function k6(e,t,r,n,a,o){const i=h.resolveComponent("IconChevronLeft"),s=h.resolveComponent("NIcon"),l=h.resolveComponent("NButton");return h.openBlock(),h.createBlock(l,{text:"",onClick:e.back},{icon:h.withCtx(()=>[h.createVNode(s,null,{default:h.withCtx(()=>[h.createVNode(i)]),_:1})]),default:h.withCtx(()=>[h.createElementVNode("span",null,h.toDisplayString(e.$t("Common.back")),1)]),_:1},8,["onClick"])}const l9=ae(S6,[["render",k6]]),T6=h.defineComponent({name:"OcCircle",components:{NPopover:R.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=h.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}}}}),N6={viewBox:"40 20 120 120"},P6=h.createElementVNode("defs",null,[h.createElementVNode("filter",{id:"blurs"},[h.createElementVNode("feOffset",{result:"offOut",in:"SourceGraphic",dx:"0",dy:"0"}),h.createElementVNode("feGaussianBlur",{result:"blurOut",in:"offOut",stdDeviation:"0.8"}),h.createElementVNode("feBlend",{in:"SourceGraphic",in2:"blurOut",mode:"normal"})])],-1),M6=["stroke"],I6=["stroke"],L6=["r","transform","fill"],O6=["r","transform","fill"],R6={dx:"100",dy:"90",fill:"#333","text-anchor":"middle",style:{"font-size":"28px"}};function V6(e,t,r,n,a,o){const i=h.resolveComponent("NPopover");return h.openBlock(),h.createElementBlock(h.Fragment,null,[(h.openBlock(),h.createElementBlock("svg",N6,[P6,h.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,M6),h.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:h.normalizeStyle(e.calculateCircle()),stroke:e.styles.processBg},null,12,I6),e.pointA?(h.openBlock(),h.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,L6)):h.createCommentVNode("",!0),e.pointB?(h.openBlock(),h.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,O6)):h.createCommentVNode("",!0),h.createElementVNode("text",R6,h.toDisplayString(e.circleTxt?e.circleTxt:`${e.circle}%`),1)])),h.createVNode(i,{show:e.popover.show,x:e.popover.x,y:e.popover.y,"show-arrow":!1,trigger:"manual"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(e.popover.text),1)]),_:1},8,["show","x","y"])],64)}const u9=ae(T6,[["render",V6]]);/*! *****************************************************************************
|
|
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 G(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 Fx=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),zx=function(){function e(){this.browser=new Fx,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}(),ae=new zx;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ae.wxa=!0,ae.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?ae.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(ae.node=!0,ae.svgSupported=!0):Gx(navigator.userAgent,ae);function Gx(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 ud=12,Hx="sans-serif",Xn=ud+"px "+Hx,Ux=20,Wx=100,Yx="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function qx(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)-Ux)/Wx;t[n]=a}return t}var jx=qx(Yx),ni={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var a=ni.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==n&&(t=e.font=n||Xn),e.measureText(r);r=r||"",n=n||Xn;var i=/(\d+)px/.exec(n),o=i&&+i[1]||ud,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=jx[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}},u_=Ir(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),c_=Ir(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),ai=Object.prototype.toString,Jl=Array.prototype,Xx=Jl.forEach,Zx=Jl.filter,cd=Jl.slice,Kx=Jl.map,tp=(function(){}).constructor,Uo=tp?tp.prototype:null,fd="__proto__",Jx=2311;function f_(){return Jx++}function an(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function he(e){if(e==null||typeof e!="object")return e;var t=e,r=ai.call(e);if(r==="[object Array]"){if(!Ji(e)){t=[];for(var n=0,a=e.length;n<a;n++)t[n]=he(e[n])}}else if(c_[r]){if(!Ji(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(!u_[r]&&!Ji(e)&&!qa(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==fd&&(t[o]=he(e[o]))}return t}function _e(e,t,r){if(!Q(t)||!Q(e))return r?he(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==fd){var a=e[n],i=t[n];Q(i)&&Q(a)&&!U(i)&&!U(a)&&!qa(i)&&!qa(a)&&!rp(i)&&!rp(a)&&!Ji(i)&&!Ji(a)?_e(a,i,r):(r||!(n in e))&&(e[n]=he(t[n]))}return e}function z(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==fd&&(e[r]=t[r]);return e}function pe(e,t,r){for(var n=Te(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 de(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 Qx(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 Kt(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 pe(e,t,r)}function ut(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function k(e,t,r){if(e&&t)if(e.forEach&&e.forEach===Xx)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 hd(e);if(e.map&&e.map===Kx)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 Ir(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 je(e,t,r){if(!e)return[];if(!t)return hd(e);if(e.filter&&e.filter===Zx)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 Te(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 eN(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(cd.call(arguments)))}}var te=Uo&&se(Uo.bind)?Uo.call.bind(Uo.bind):eN;function Ne(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(cd.call(arguments)))}}function U(e){return Array.isArray?Array.isArray(e):ai.call(e)==="[object Array]"}function se(e){return typeof e=="function"}function X(e){return typeof e=="string"}function Ks(e){return ai.call(e)==="[object String]"}function Me(e){return typeof e=="number"}function Q(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function rp(e){return!!u_[ai.call(e)]}function ct(e){return!!c_[ai.call(e)]}function qa(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Ql(e){return e.colorStops!=null}function tN(e){return e.image!=null}function rN(e){return ai.call(e)==="[object RegExp]"}function ja(e){return e!==e}function cn(){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 ie(e,t){return e??t}function on(e,t,r){return e??t??r}function hd(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return cd.apply(e,t)}function h_(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 ne(e,t){if(!e)throw new Error(t)}function cr(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var d_="__ec_primitive__";function Lf(e){e[d_]=!0}function Ji(e){return e[d_]}var nN=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 Te(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),v_=typeof Map=="function";function aN(){return v_?new Map:new nN}var iN=function(){function e(t){var r=U(t);this.data=aN();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 v_?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function oe(e){return new iN(e)}function oN(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 eu(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&z(r,t),r}function p_(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 lt(){}var sN=180/Math.PI;function ii(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function lN(e){return[e[0],e[1]]}function np(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function g_(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function uN(e){return Math.sqrt(cN(e))}function cN(e){return e[0]*e[0]+e[1]*e[1]}function Uu(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function dd(e,t){var r=uN(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 fN(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Ra=fN;function Wu(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}(),hN=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}(),Jt=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}(),dN=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)/dN);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 ap(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 ip="___zrEVENTSAVED",Yu=[];function vN(e,t,r,n,a){return Vf(Yu,t,n,a,!0)&&Vf(e,r,Yu[0],Yu[1])}function Vf(e,t,r,n,a){if(t.getBoundingClientRect&&ae.domSupported&&!m_(t)){var i=t[ip]||(t[ip]={}),o=pN(t,i),s=gN(o,i,a);if(s)return s(e,r,n),!0}return!1}function pN(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 gN(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?ap(s,o):ap(o,s))}function m_(e){return e.nodeName.toUpperCase()==="CANVAS"}var mN=/([&<>"'])/g,yN={"&":"&","<":"<",">":">",'"':""","'":"'"};function It(e){return e==null?"":(e+"").replace(mN,function(t,r){return yN[r]})}var _N=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,qu=[],wN=ae.browser.firefox&&+ae.browser.version.split(".")[0]<39;function $f(e,t,r,n){return r=r||{},n?op(e,t,r):wN&&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):op(e,t,r),r}function op(e,t,r){if(ae.domSupported&&e.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(m_(e)){var i=e.getBoundingClientRect();r.zrX=n-i.left,r.zrY=a-i.top;return}else if(Vf(qu,e,n,a)){r.zrX=qu[0],r.zrY=qu[1];return}}r.zrX=r.zrY=0}function vd(e){return e||window.event}function kt(e,t,r){if(t=vd(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=bN(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&_N.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function bN(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 SN(e,t,r,n){e.addEventListener(t,r,n)}function CN(e,t,r,n){e.removeEventListener(t,r,n)}var Xa=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function sp(e){return e.which===2||e.which===3}var TN=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 ju)if(ju.hasOwnProperty(r)){var n=ju[r](this._track,t);if(n)return n}},e}();function lp(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function xN(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var ju={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=lp(n)/lp(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=xN(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 pd(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function NN(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 gd(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 DN(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 md(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 AN=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 le=AN;var Wo=Math.min,Yo=Math.max,mn=new le,yn=new le,_n=new le,wn=new le,_i=new le,wi=new le,MN=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=Wo(t.x,this.x),n=Wo(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Yo(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Yo(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]),DN(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),_=Math.abs(f-o),w=Math.min(m,g),S=Math.min(y,_);i<l||u<a?w>p&&(p=w,m<g?le.set(wi,-m,0):le.set(wi,g,0)):w<h&&(h=w,m<g?le.set(_i,m,0):le.set(_i,-g,0)),s<c||f<o?S>p&&(p=S,y<_?le.set(wi,0,-y):le.set(wi,0,_)):w<h&&(h=w,y<_?le.set(_i,0,y):le.set(_i,0,-_))}return r&&le.copy(r,d?_i:wi),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=Wo(mn.x,yn.x,_n.x,wn.x),t.y=Wo(mn.y,yn.y,_n.y,wn.y);var l=Yo(mn.x,yn.x,_n.x,wn.x),u=Yo(mn.y,yn.y,_n.y,wn.y);t.width=l-t.x,t.height=u-t.y},e}();const Ce=MN;var y_="silent";function kN(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:EN}}function EN(){Xa(this.event)}var PN=function(e){G(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}(Jt),bi=function(){function e(t,r){this.x=t,this.y=r}return e}(),IN=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Xu=new Ce(0,0,0,0),__=function(e){G(t,e);function t(r,n,a,i,o){var s=e.call(this)||this;return s._hovered=new bi(0,0),s.storage=r,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new PN,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new hN(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(k(IN,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=w_(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 bi(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 bi(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=kN(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 bi(r,n);if(up(i,o,r,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Ce(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)&&(Xu.copy(d.getBoundingRect()),d.transform&&Xu.applyTransform(d.transform),Xu.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 _=r+g*Math.cos(y),w=n+g*Math.sin(y);if(up(s,o,_,w,a),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new TN);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 bi;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(Jt);k(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){__.prototype[e]=function(t){var r=t.zrX,n=t.zrY,a=w_(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 LN(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?y_:!0}return!1}function up(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=LN(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==y_)){t.target=o;break}}}function w_(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const ON=__;var b_=32,Si=7;function RN(e){for(var t=0;e>=b_;)t|=e&1,e>>=1;return e+t}function cp(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++;BN(e,t,a)}else for(;a<r&&n(e[a],e[a-1])>=0;)a++;return a-t}function BN(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function fp(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 Zu(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 Ku(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 VN(e,t){var r=Si,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 _=Ku(e[g],e,p,m,0,t);p+=_,m-=_,m!==0&&(y=Zu(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 _=0,w=m,S=h;if(e[S++]=e[w++],--g===0){for(y=0;y<p;y++)e[S+y]=o[_+y];return}if(p===1){for(y=0;y<g;y++)e[S+y]=e[w+y];e[S+g]=o[_];return}for(var T=r,C,N,b;;){C=0,N=0,b=!1;do if(t(e[w],o[_])<0){if(e[S++]=e[w++],N++,C=0,--g===0){b=!0;break}}else if(e[S++]=o[_++],C++,N=0,--p===1){b=!0;break}while((C|N)<T);if(b)break;do{if(C=Ku(e[w],o,_,p,0,t),C!==0){for(y=0;y<C;y++)e[S+y]=o[_+y];if(S+=C,_+=C,p-=C,p<=1){b=!0;break}}if(e[S++]=e[w++],--g===0){b=!0;break}if(N=Zu(o[_],e,w,g,0,t),N!==0){for(y=0;y<N;y++)e[S+y]=e[w+y];if(S+=N,w+=N,g-=N,g===0){b=!0;break}}if(e[S++]=o[_++],--p===1){b=!0;break}T--}while(C>=Si||N>=Si);if(b)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),p===1){for(y=0;y<g;y++)e[S+y]=e[w+y];e[S+g]=o[_]}else{if(p===0)throw new Error;for(y=0;y<p;y++)e[S+y]=o[_+y]}}function d(h,p,m,g){var y=0;for(y=0;y<g;y++)o[y]=e[m+y];var _=h+p-1,w=g-1,S=m+g-1,T=0,C=0;if(e[S--]=e[_--],--p===0){for(T=S-(g-1),y=0;y<g;y++)e[T+y]=o[y];return}if(g===1){for(S-=p,_-=p,C=S+1,T=_+1,y=p-1;y>=0;y--)e[C+y]=e[T+y];e[S]=o[w];return}for(var N=r;;){var b=0,x=0,A=!1;do if(t(o[w],e[_])<0){if(e[S--]=e[_--],b++,x=0,--p===0){A=!0;break}}else if(e[S--]=o[w--],x++,b=0,--g===1){A=!0;break}while((b|x)<N);if(A)break;do{if(b=p-Ku(o[w],e,h,p,p-1,t),b!==0){for(S-=b,_-=b,p-=b,C=S+1,T=_+1,y=b-1;y>=0;y--)e[C+y]=e[T+y];if(p===0){A=!0;break}}if(e[S--]=o[w--],--g===1){A=!0;break}if(x=g-Zu(e[_],o,0,g,g-1,t),x!==0){for(S-=x,w-=x,g-=x,C=S+1,T=w+1,y=0;y<x;y++)e[C+y]=o[T+y];if(g<=1){A=!0;break}}if(e[S--]=e[_--],--p===0){A=!0;break}N--}while(b>=Si||x>=Si);if(A)break;N<0&&(N=0),N+=2}if(r=N,r<1&&(r=1),g===1){for(S-=p,_-=p,C=S+1,T=_+1,y=p-1;y>=0;y--)e[C+y]=e[T+y];e[S]=o[w]}else{if(g===0)throw new Error;for(T=S-(g-1),y=0;y<g;y++)e[T+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Bs(e,t,r,n){r||(r=0),n||(n=e.length);var a=n-r;if(!(a<2)){var i=0;if(a<b_){i=cp(e,r,n,t),fp(e,r,n,r+i,t);return}var o=VN(e,t),s=RN(a);do{if(i=cp(e,r,n,t),i<s){var l=a;l>s&&(l=s),fp(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 bt=1,Gi=2,Aa=4,hp=!1;function Ju(){hp||(hp=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function dp(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var $N=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=dp}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,Bs(n,dp)},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|=bt),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)&&(Ju(),c.z=0),isNaN(c.z2)&&(Ju(),c.z2=0),isNaN(c.zlevel)&&(Ju(),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=de(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}(),S_;S_=ae.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=S_;var Qi={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-Qi.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?Qi.bounceIn(e*2)*.5:Qi.bounceOut(e*2-1)*.5+.5}},qo=Math.pow,sn=Math.sqrt,Js=1e-8,C_=1e-4,vp=sn(3),jo=1/3,lr=ii(),Lt=ii(),$a=ii();function Jr(e){return e>-Js&&e<Js}function T_(e){return e>Js||e<-Js}function Fe(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 pp(e,t,r,n,a){var i=1-a;return 3*(((t-e)*i+2*(r-t)*a)*i+(n-r)*a*a)}function Qs(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(Jr(c)&&Jr(f))if(Jr(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(Jr(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 _=sn(m),w=c*s+1.5*o*(-f+_),S=c*s+1.5*o*(-f-_);w<0?w=-qo(-w,jo):w=qo(w,jo),S<0?S=-qo(-S,jo):S=qo(S,jo);var p=(-s-(w+S))/(3*o);p>=0&&p<=1&&(i[h++]=p)}else{var T=(2*c*s-3*o*f)/(2*sn(c*c*c)),C=Math.acos(T)/3,N=sn(c),b=Math.cos(C),p=(-s-2*N*b)/(3*o),y=(-s+N*(b+vp*Math.sin(C)))/(3*o),x=(-s+N*(b-vp*Math.sin(C)))/(3*o);p>=0&&p<=1&&(i[h++]=p),y>=0&&y<=1&&(i[h++]=y),x>=0&&x<=1&&(i[h++]=x)}}return h}function x_(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(Jr(o)){if(T_(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(Jr(c))a[0]=-i/(2*o);else if(c>0){var f=sn(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 el(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 FN(e,t,r,n,a,i,o,s,l,u,c){var f,d=.005,h=1/0,p,m,g,y;lr[0]=l,lr[1]=u;for(var _=0;_<1;_+=.05)Lt[0]=Fe(e,r,a,o,_),Lt[1]=Fe(t,n,i,s,_),g=Ra(lr,Lt),g<h&&(f=_,h=g);h=1/0;for(var w=0;w<32&&!(d<C_);w++)p=f-d,m=f+d,Lt[0]=Fe(e,r,a,o,p),Lt[1]=Fe(t,n,i,s,p),g=Ra(Lt,lr),p>=0&&g<h?(f=p,h=g):($a[0]=Fe(e,r,a,o,m),$a[1]=Fe(t,n,i,s,m),y=Ra($a,lr),m<=1&&y<h?(f=m,h=y):d*=.5);return c&&(c[0]=Fe(e,r,a,o,f),c[1]=Fe(t,n,i,s,f)),sn(h)}function zN(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=Fe(e,r,a,o,p),g=Fe(t,n,i,s,p),y=m-u,_=g-c;f+=Math.sqrt(y*y+_*_),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 gp(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function GN(e,t,r,n,a){var i=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(Jr(i)){if(T_(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(Jr(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=sn(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 N_(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function tl(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 HN(e,t,r,n,a,i,o,s,l){var u,c=.005,f=1/0;lr[0]=o,lr[1]=s;for(var d=0;d<1;d+=.05){Lt[0]=Ke(e,r,a,d),Lt[1]=Ke(t,n,i,d);var h=Ra(lr,Lt);h<f&&(u=d,f=h)}f=1/0;for(var p=0;p<32&&!(c<C_);p++){var m=u-c,g=u+c;Lt[0]=Ke(e,r,a,m),Lt[1]=Ke(t,n,i,m);var h=Ra(Lt,lr);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,lr);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)),sn(f)}function UN(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 WN=/cubic-bezier\(([0-9,\.e ]+)\)/;function D_(e){var t=e&&WN.exec(e);if(t){var r=t[1].split(","),n=+cr(r[0]),a=+cr(r[1]),i=+cr(r[2]),o=+cr(r[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Qs(0,n,i,1,l,s)&&Fe(0,a,o,1,s[0])}}}var YN=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||lt,this.ondestroy=t.ondestroy||lt,this.onrestart=t.onrestart||lt,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=se(t)?t:Qi[t]||D_(t)},e}();const qN=YN;var A_=function(){function e(t){this.value=t}return e}(),jN=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new A_(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}(),Io=function(){function e(t){this._list=new jN,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 A_(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}(),mp={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 ln(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 Qu(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?ln(parseFloat(t)/100*255):ln(parseInt(t,10))}function eo(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Gf(parseFloat(t)/100):Gf(parseFloat(t))}function ec(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 Xo(e,t,r){return e+(t-e)*r}function Mt(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 M_=new Io(20),Zo=null;function ha(e,t){Zo&&Hf(Zo,t),Zo=M_.put(e,Zo||t.slice())}function Ar(e,t){if(e){t=t||[];var r=M_.get(e);if(r)return Hf(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in mp)return Hf(t,mp[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)){Mt(t,0,0,0,1);return}return Mt(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)){Mt(t,0,0,0,1);return}return Mt(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?Mt(t,+u[0],+u[1],+u[2],1):Mt(t,0,0,0,1);c=eo(u.pop());case"rgb":if(u.length>=3)return Mt(t,Qu(u[0]),Qu(u[1]),Qu(u[2]),u.length===3?c:eo(u[3])),ha(e,t),t;Mt(t,0,0,0,1);return;case"hsla":if(u.length!==4){Mt(t,0,0,0,1);return}return u[3]=eo(u[3]),yp(u,t),ha(e,t),t;case"hsl":if(u.length!==3){Mt(t,0,0,0,1);return}return yp(u,t),ha(e,t),t;default:return}}Mt(t,0,0,0,1)}}function yp(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=eo(e[1]),a=eo(e[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],Mt(t,ln(ec(o,i,r+1/3)*255),ln(ec(o,i,r)*255),ln(ec(o,i,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function _p(e,t){var r=Ar(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 tu(r,r.length===4?"rgba":"rgb")}}function XN(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=Ar(t[a]),s=Ar(t[i]),l=n-a,u=tu([ln(Xo(o[0],s[0],l)),ln(Xo(o[1],s[1],l)),ln(Xo(o[2],s[2],l)),Gf(Xo(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}function tu(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 rl(e,t){var r=Ar(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var wp=new Io(100);function bp(e){if(X(e)){var t=wp.get(e);return t||(t=_p(e,-.1),wp.put(e,t)),t}else if(Ql(e)){var r=z({},e);return r.colorStops=q(e.colorStops,function(n){return{offset:n.offset,color:_p(n.color,-.1)}}),r}return e}function ZN(e){return e.type==="linear"}function KN(e){return e.type==="radial"}(function(){return ae.hasGlobalWindow&&se(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"&&an("Base64 isn't natively supported in the current environment."),null}})();var Uf=Array.prototype.slice;function Sr(e,t,r){return(t-e)*r+e}function tc(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=Sr(t[i],r[i],n);return e}function JN(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]=Sr(t[o][s],r[o][s],n)}return e}function Ko(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=t[i]+r[i]*n;return e}function Sp(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 QN(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 eD(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 to(e){if(ut(e)){var t=e.length;if(ut(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 Vs(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 tD(e){return ut(e&&e[0])?2:1}var Jo=0,$s=1,k_=2,Hi=3,Wf=4,Yf=5,Cp=6;function Tp(e){return e===Wf||e===Yf}function Qo(e){return e===$s||e===k_}var Ci=[0,0,0,0],rD=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=Cp,l=r;if(ut(r)){var u=tD(r);s=u,(u===1&&!Me(r[0])||u===2&&!Me(r[0][0]))&&(o=!0)}else if(Me(r)&&!ja(r))s=Jo;else if(X(r))if(!isNaN(+r))s=Jo;else{var c=Ar(r);c&&(l=c,s=Hi)}else if(Ql(r)){var f=z({},l);f.colorStops=q(r.colorStops,function(h){return{offset:h.offset,color:Ar(h.color)}}),ZN(r)?s=Wf:KN(r)&&(s=Yf),l=f}i===0?this.valType=s:(s!==this.valType||s===Cp)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=se(n)?n:Qi[n]||D_(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=Qo(a),u=Tp(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?eD(d,h,a):u&&QN(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===Jo?n[c].additiveValue=n[c].value-p:a===Hi?n[c].additiveValue=Ko([],n[c].value,p,-1):Qo(a)&&(n[c].additiveValue=a===$s?Ko([],n[c].value,p,-1):Sp([],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===Hi,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 _=n?this._additiveValue:u?Ci:t[l];if((Qo(i)||u)&&!_&&(_=this._additiveValue=[]),this.discrete)t[l]=y<1?h.rawValue:p.rawValue;else if(Qo(i))i===$s?tc(_,h[a],p[a],y):JN(_,h[a],p[a],y);else if(Tp(i)){var w=h[a],S=p[a],T=i===Wf;t[l]={type:T?"linear":"radial",x:Sr(w.x,S.x,y),y:Sr(w.y,S.y,y),colorStops:q(w.colorStops,function(N,b){var x=S.colorStops[b];return{offset:Sr(N.offset,x.offset,y),color:Vs(tc([],N.color,x.color,y))}}),global:S.global},T?(t[l].x2=Sr(w.x2,S.x2,y),t[l].y2=Sr(w.y2,S.y2,y)):t[l].r=Sr(w.r,S.r,y)}else if(u)tc(_,h[a],p[a],y),n||(t[l]=Vs(_));else{var C=Sr(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===Jo?t[n]=t[n]+a:r===Hi?(Ar(t[n],Ci),Ko(Ci,Ci,a,1),t[n]=Vs(Ci)):r===$s?Ko(t[n],t[n],a,1):r===k_&&Sp(t[n],t[n],a,1)},e}(),yd=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){an("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,Te(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 rD(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===Hi&&u&&(u=Vs(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,to(u),a),this._trackKeys.push(s)}l.addKeyframe(t,to(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 qN({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]=to(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||Te(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 nD=function(e){G(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 yd(r,n.loop);return this.addAnimator(a),a},t}(Jt),aD=300,rc=ae.domSupported,nc=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"]},Np=!1;function qf(e){var t=e.pointerType;return t==="pen"||t==="touch"}function iD(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 ac(e){e&&(e.zrByTouch=!0)}function oD(e,t){return kt(e.dom,new sD(e,t),!0)}function E_(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 sD=function(){function e(t,r){this.stopPropagation=lt,this.stopImmediatePropagation=lt,this.preventDefault=lt,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=kt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=kt(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=kt(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=kt(this.dom,e);var t=e.toElement||e.relatedTarget;E_(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Np=!0,e=kt(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Np||(e=kt(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=kt(this.dom,e),ac(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ut.mousemove.call(this,e),Ut.mousedown.call(this,e)},touchmove:function(e){e=kt(this.dom,e),ac(e),this.handler.processGesture(e,"change"),Ut.mousemove.call(this,e)},touchend:function(e){e=kt(this.dom,e),ac(e),this.handler.processGesture(e,"end"),Ut.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<aD&&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=kt(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 lD(e,t){var r=t.domHandlers;ae.pointerEventsSupported?k(nc.pointer,function(n){Fs(t,n,function(a){r[n].call(e,a)})}):(ae.touchEventsSupported&&k(nc.touch,function(n){Fs(t,n,function(a){r[n].call(e,a),iD(t)})}),k(nc.mouse,function(n){Fs(t,n,function(a){a=vd(a),t.touching||r[n].call(e,a)})}))}function uD(e,t){ae.pointerEventsSupported?k(xp.pointer,r):ae.touchEventsSupported||k(xp.mouse,r);function r(n){function a(i){i=vd(i),E_(e,i.target)||(i=oD(e,i),t.domHandlers[n].call(e,i))}Fs(t,n,a,{capture:!0})}}function Fs(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,SN(e.domTarget,t,r,n)}function ic(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&CN(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var Dp=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),cD=function(e){G(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 Dp(r,Ut),rc&&(a._globalHandlerScope=new Dp(document,jf)),lD(a,a._localHandlerScope),a}return t.prototype.dispose=function(){ic(this._localHandlerScope),rc&&ic(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,rc&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?uD(this,n):ic(n)}},t}(Jt);const fD=cD;var P_=1;ae.hasGlobalWindow&&(P_=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var nl=P_,Xf=.4,Zf="#333",Kf="#ccc",hD="#eee",Ap=pd,Mp=5e-5;function bn(e){return e>Mp||e<-Mp}var Sn=[],da=[],oc=Ba(),sc=Math.abs,_d=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&&(Ap(n),this.invTransform=null);return}n=n||Ba(),r?this.getLocalTransform(n):Ap(n),t&&(r?Va(n,t,n):NN(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(),md(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)&&(oc[4]=n,oc[5]=a,Va(da,r,oc),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&&sc(t[0]-1)>1e-10&&sc(t[3]-1)>1e-10?Math.sqrt(sc(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){dD(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&&gd(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}(),vr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function dD(e,t){for(var r=0;r<vr.length;r++){var n=vr[r];e[n]=t[n]}}var kp={};function St(e,t){t=t||Xn;var r=kp[t];r||(r=kp[t]=new Io(500));var n=r.get(e);return n==null&&(n=ni.measureText(e,t).width,r.put(e,n)),n}function Ep(e,t,r,n){var a=St(e,t),i=bd(t),o=Ui(0,a,r),s=Ma(0,i,n),l=new Ce(o,s,a,i);return l}function wd(e,t,r,n){var a=((e||"")+"").split(`
|
|
15
|
-
`),i=a.length;if(i===1)return Ep(a[0],t,r,n);for(var o=new Ce(0,0,0,0),s=0;s<a.length;s++){var l=Ep(a[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function Ui(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 bd(e){return St("国",e)}function fn(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function al(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+=fn(n[0],r.width),u+=fn(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 lc="__zr_normal__",uc=vr.concat(["ignore"]),vD=Ir(vr,function(e,t){return e[t]=!0,e},{ignore:!1}),va={},pD=new Ce(0,0,0,0),Sd=function(){function e(t){this.id=f_(),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=pD;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(va,n,c):al(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=fn(f[0],c.width),h=fn(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,_=void 0,w=void 0;m&&this.canBeInsideText()?(y=n.insideFill,_=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(_==null||_==="auto")&&(_=this.getInsideTextStroke(y),w=!0)):(y=n.outsideFill,_=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(_==null||_==="auto")&&(_=this.getOutsideStroke(y),w=!0)),y=y||"#000",(y!==g.fill||_!==g.stroke||w!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=_,g.autoStroke=w,g.align=o,g.verticalAlign=s,r.setDefaultTextStyle(g)),r.__dirty|=bt,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"&&Ar(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,tu(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||{},z(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(Q(t))for(var n=t,a=Te(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!==lc)){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,uc)},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(lc,!1,t)},e.prototype.useState=function(t,r,n,a){var i=t===lc,o=this.hasState();if(!(!o&&i)){var s=this.currentStates,l=this.stateTransition;if(!(de(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){an("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&=~bt),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&=~bt)}},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=de(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=de(a,t),o=de(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];z(r,i),i.textConfig&&(n=n||{},z(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=z({},a?this.textConfig:n.textConfig),z(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<uc.length;c++){var f=uc[c],d=i&&vD[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 _d,this._attachComponent(t),this._textContent=t,this.markRedraw()}},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),z(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|=bt;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){an('Property "'+t+'" is not existed in element '+this.id);return}var i=new yd(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=de(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){cc(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){cc(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,a){for(var i=cc(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=bt;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}();Kt(Sd,Jt);Kt(Sd,_d);function cc(e,t,r,n,a){r=r||{};var i=[];I_(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 fc(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function gD(e){return ut(e[0])}function mD(e,t,r){if(ut(t[r]))if(ut(e[r])||(e[r]=[]),ct(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),fc(e[r],t[r],n))}else{var a=t[r],i=e[r],o=a.length;if(gD(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?fc(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else fc(i,a,o);i.length=a.length}else e[r]=t[r]}function yD(e,t){return e===t||ut(e)&&ut(t)&&_D(e,t)}function _D(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 I_(e,t,r,n,a,i,o,s){for(var l=Te(n),u=a.duration,c=a.delay,f=a.additive,d=a.setToFinal,h=!Q(i),p=e.animators,m=[],g=0;g<l.length;g++){var y=l[g],_=n[y];if(_!=null&&r[y]!=null&&(h||i[y]))if(Q(_)&&!ut(_)&&!Ql(_)){if(t){s||(r[y]=_,e.updateDuringAnimation(t));continue}I_(e,y,r[y],_,a,i&&i[y],o,s)}else m.push(y);else s||(r[y]=_,e.updateDuringAnimation(t),m.push(y))}var w=m.length;if(!f&&w)for(var S=0;S<p.length;S++){var T=p[S];if(T.targetName===t){var C=T.stopTracks(m);if(C){var N=de(p,T);p.splice(N,1)}}}if(a.force||(m=je(m,function(D){return!yD(n[D],r[D])}),w=m.length),w>0||a.force&&!o.length){var b=void 0,x=void 0,A=void 0;if(s){x={},d&&(b={});for(var S=0;S<w;S++){var y=m[S];x[y]=r[y],d?b[y]=n[y]:r[y]=n[y]}}else if(d){A={};for(var S=0;S<w;S++){var y=m[S];A[y]=to(r[y]),mD(r,n,y)}}var T=new yd(r,!1,!1,f?je(p,function(M){return M.targetName===t}):null);T.targetName=t,a.scope&&(T.scope=a.scope),d&&b&&T.whenWithKeys(0,b,m),A&&T.whenWithKeys(0,A,m),T.whenWithKeys(u??500,s?x:n,m).delay(c||0),e.addAnimator(T,t),o.push(T)}}const L_=Sd;var Re=function(e){G(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=de(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=de(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 Ce(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?(Ce.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(L_);Re.prototype.type="group";/*!
|
|
14
|
+
***************************************************************************** */var Mx=function(e,t){return Mx=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])},Mx(e,t)};function W(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Mx(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var $6=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),z6=function(){function e(){this.browser=new $6,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}(),se=new z6;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(se.wxa=!0,se.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?se.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(se.node=!0,se.svgSupported=!0):G6(navigator.userAgent,se);function G6(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),a=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),i=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),a&&(r.ie=!0,r.version=a[1]),o&&(r.edge=!0,r.version=o[1],r.newEdge=+o[1].split(".")[0]>18),i&&(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 cf=12,H6="sans-serif",qn=cf+"px "+H6,U6=20,W6=100,Y6="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function X6(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)-U6)/W6;t[n]=a}return t}var j6=X6(Y6),ao={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var a=ao.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==n&&(t=e.font=n||qn),e.measureText(r);r=r||"",n=n||qn;var o=/(\d+)px/.exec(n),i=o&&+o[1]||cf,s=0;if(n.indexOf("mono")>=0)s=i*r.length;else for(var l=0;l<r.length;l++){var u=j6[r[l]];s+=u==null?i:u*i}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},x9=Lr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),c9=Lr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),oo=Object.prototype.toString,J0=Array.prototype,Z6=J0.forEach,q6=J0.filter,ff=J0.slice,K6=J0.map,rh=(function(){}).constructor,Wi=rh?rh.prototype:null,df="__proto__",J6=2311;function f9(){return J6++}function on(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function ve(e){if(e==null||typeof e!="object")return e;var t=e,r=oo.call(e);if(r==="[object Array]"){if(!ti(e)){t=[];for(var n=0,a=e.length;n<a;n++)t[n]=ve(e[n])}}else if(c9[r]){if(!ti(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(var n=0,a=e.length;n<a;n++)t[n]=e[n]}}}else if(!x9[r]&&!ti(e)&&!ja(e)){t={};for(var i in e)e.hasOwnProperty(i)&&i!==df&&(t[i]=ve(e[i]))}return t}function Ee(e,t,r){if(!re(t)||!re(e))return r?ve(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==df){var a=e[n],o=t[n];re(o)&&re(a)&&!Y(o)&&!Y(a)&&!ja(o)&&!ja(a)&&!nh(o)&&!nh(a)&&!ti(o)&&!ti(a)?Ee(a,o,r):(r||!(n in e))&&(e[n]=ve(t[n]))}return e}function H(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==df&&(e[r]=t[r]);return e}function ge(e,t,r){for(var n=De(t),a=0;a<n.length;a++){var o=n[a];(r?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}function pe(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 Q6(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 er(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 o=n[a];o!=="constructor"&&(r?t[o]!=null:e[o]==null)&&(e[o]=t[o])}else ge(e,t,r)}function dt(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function k(e,t,r){if(e&&t)if(e.forEach&&e.forEach===Z6)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 o in e)e.hasOwnProperty(o)&&t.call(r,e[o],o,e)}function q(e,t,r){if(!e)return[];if(!t)return hf(e);if(e.map&&e.map===K6)return e.map(t,r);for(var n=[],a=0,o=e.length;a<o;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,o=e.length;a<o;a++)r=t.call(n,r,e[a],a,e);return r}}function Qe(e,t,r){if(!e)return[];if(!t)return hf(e);if(e.filter&&e.filter===q6)return e.filter(t,r);for(var n=[],a=0,o=e.length;a<o;a++)t.call(r,e[a],a,e)&&n.push(e[a]);return n}function De(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 eB(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(ff.call(arguments)))}}var ne=Wi&&xe(Wi.bind)?Wi.call.bind(Wi.bind):eB;function we(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(ff.call(arguments)))}}function Y(e){return Array.isArray?Array.isArray(e):oo.call(e)==="[object Array]"}function xe(e){return typeof e=="function"}function K(e){return typeof e=="string"}function Ks(e){return oo.call(e)==="[object String]"}function Se(e){return typeof e=="number"}function re(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function nh(e){return!!x9[oo.call(e)]}function ht(e){return!!c9[oo.call(e)]}function ja(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Q0(e){return e.colorStops!=null}function tB(e){return e.image!=null}function rB(e){return oo.call(e)==="[object RegExp]"}function Za(e){return e!==e}function cn(){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 le(e,t){return e??t}function sn(e,t,r){return e??t??r}function hf(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return ff.apply(e,t)}function d9(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 oe(e,t){if(!e)throw new Error(t)}function hr(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var h9="__ec_primitive__";function Ix(e){e[h9]=!0}function ti(e){return e[h9]}var nB=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 De(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),v9=typeof Map=="function";function aB(){return v9?new Map:new nB}var oB=function(){function e(t){var r=Y(t);this.data=aB();var n=this;t instanceof e?t.each(a):t&&k(t,a);function a(o,i){r?n.set(o,i):n.set(i,o)}}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 v9?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function ue(e){return new oB(e)}function iB(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 el(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&H(r,t),r}function p9(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function X(e,t){return e.hasOwnProperty(t)}function ft(){}var sB=180/Math.PI;function io(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function lB(e){return[e[0],e[1]]}function ah(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function g9(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function uB(e){return Math.sqrt(xB(e))}function xB(e){return e[0]*e[0]+e[1]*e[1]}function Wl(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function vf(e,t){var r=uB(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Lx(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Ox=Lx;function cB(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Oa=cB;function Yl(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 Gt(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 Ma(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}(),fB=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,o=n-this._x,i=a-this._y;this._x=n,this._y=a,r.drift(o,i,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}(),tr=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,a){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof r=="function"&&(a=n,n=r,r=null),!n||!t)return this;var i=this._$eventProcessor;r!=null&&i&&i.normalizeQuery&&(r=i.normalizeQuery(r)),o[t]||(o[t]=[]);for(var s=0;s<o[t].length;s++)if(o[t][s].h===n)return this;var l={h:n,query:r,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=o[t].length-1,x=o[t][u];return x&&x.callAtLast?o[t].splice(u,0,l):o[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=[],o=0,i=n[t].length;o<i;o++)n[t][o].h!==r&&a.push(n[t][o]);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],o=this._$eventProcessor;if(a)for(var i=r.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(o&&o.filter&&u.query!=null&&!o.filter(t,u.query)))switch(i){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 o&&o.afterTrigger&&o.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],o=this._$eventProcessor;if(a)for(var i=r.length,s=r[i-1],l=a.length,u=0;u<l;u++){var x=a[u];if(!(o&&o.filter&&x.query!=null&&!o.filter(t,x.query)))switch(i){case 0:x.h.call(s);break;case 1:x.h.call(s,r[0]);break;case 2:x.h.call(s,r[0],r[1]);break;default:x.h.apply(s,r.slice(1,i-1));break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e}(),dB=Math.log(2);function Rx(e,t,r,n,a,o){var i=n+"-"+a,s=e.length;if(o.hasOwnProperty(i))return o[i];if(t===1){var l=Math.round(Math.log((1<<s)-1&~a)/dB);return e[r][l]}for(var u=n|1<<r,x=r+1;n&1<<x;)x++;for(var c=0,d=0,f=0;d<s;d++){var v=1<<d;v&a||(c+=(f%2?-1:1)*e[r][d]*Rx(e,t-1,x,u,a|v,o),f++)}return o[i]=c,c}function oh(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=Rx(r,8,0,0,0,n);if(a!==0){for(var o=[],i=0;i<8;i++)for(var s=0;s<8;s++)o[s]==null&&(o[s]=0),o[s]+=((i+s)%2?-1:1)*Rx(r,7,i===0?1:0,1<<i,1<<s,n)/a*t[i];return function(l,u,x){var c=u*o[6]+x*o[7]+1;l[0]=(u*o[0]+x*o[1]+o[2])/c,l[1]=(u*o[3]+x*o[4]+o[5])/c}}}var ih="___zrEVENTSAVED",Xl=[];function hB(e,t,r,n,a){return Vx(Xl,t,n,a,!0)&&Vx(e,r,Xl[0],Xl[1])}function Vx(e,t,r,n,a){if(t.getBoundingClientRect&&se.domSupported&&!m9(t)){var o=t[ih]||(t[ih]={}),i=vB(t,o),s=pB(i,o,a);if(s)return s(e,r,n),!0}return!1}function vB(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],a=["top","bottom"],o=0;o<4;o++){var i=document.createElement("div"),s=i.style,l=o%2,u=(o>>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(i),r.push(i)}return r}function pB(e,t,r){for(var n=r?"invTrans":"trans",a=t[n],o=t.srcCoords,i=[],s=[],l=!0,u=0;u<4;u++){var x=e[u].getBoundingClientRect(),c=2*u,d=x.left,f=x.top;i.push(d,f),l=l&&o&&d===o[c]&&f===o[c+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&a?a:(t.srcCoords=i,t[n]=r?oh(s,i):oh(i,s))}function m9(e){return e.nodeName.toUpperCase()==="CANVAS"}var gB=/([&<>"'])/g,mB={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ot(e){return e==null?"":(e+"").replace(gB,function(t,r){return mB[r]})}var EB=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,jl=[],yB=se.browser.firefox&&+se.browser.version.split(".")[0]<39;function $x(e,t,r,n){return r=r||{},n?sh(e,t,r):yB&&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):sh(e,t,r),r}function sh(e,t,r){if(se.domSupported&&e.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(m9(e)){var o=e.getBoundingClientRect();r.zrX=n-o.left,r.zrY=a-o.top;return}else if(Vx(jl,e,n,a)){r.zrX=jl[0],r.zrY=jl[1];return}}r.zrX=r.zrY=0}function pf(e){return e||window.event}function Mt(e,t,r){if(t=pf(t),t.zrX!=null)return t;var n=t.type,a=n&&n.indexOf("touch")>=0;if(a){var i=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];i&&$x(e,i,t,r)}else{$x(e,t,t,r);var o=CB(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&EB.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function CB(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),o=n>0?-1:n<0?1:r>0?-1:1;return 3*a*o}function BB(e,t,r,n){e.addEventListener(t,r,n)}function AB(e,t,r,n){e.removeEventListener(t,r,n)}var qa=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function lh(e){return e.which===2||e.which===3}var DB=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 o={points:[],touches:[],target:r,event:t},i=0,s=a.length;i<s;i++){var l=a[i],u=$x(n,l,{});o.points.push([u.zrX,u.zrY]),o.touches.push(l)}this._track.push(o)}},e.prototype._recognize=function(t){for(var r in Zl)if(Zl.hasOwnProperty(r)){var n=Zl[r](this._track,t);if(n)return n}},e}();function uh(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function _B(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Zl={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 o=uh(n)/uh(a);!isFinite(o)&&(o=1),t.pinchScale=o;var i=_B(n);return t.pinchX=i[0],t.pinchY=i[1],{type:"pinch",target:e[0].target,event:t}}}}};function Ra(){return[1,0,0,1,0,0]}function gf(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function wB(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],o=t[0]*r[2]+t[2]*r[3],i=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]=o,e[3]=i,e[4]=s,e[5]=l,e}function zx(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 mf(e,t,r,n){n===void 0&&(n=[0,0]);var a=t[0],o=t[2],i=t[4],s=t[1],l=t[3],u=t[5],x=Math.sin(r),c=Math.cos(r);return e[0]=a*c+s*x,e[1]=-a*x+s*c,e[2]=o*c+l*x,e[3]=-o*x+c*l,e[4]=c*(i-n[0])+x*(u-n[1])+n[0],e[5]=c*(u-n[1])-x*(i-n[0])+n[1],e}function FB(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 Ef(e,t){var r=t[0],n=t[2],a=t[4],o=t[1],i=t[3],s=t[5],l=r*i-o*n;return l?(l=1/l,e[0]=i*l,e[1]=-o*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-i*a)*l,e[5]=(o*a-r*s)*l,e):null}var bB=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 o=1-a;t.x=o*r.x+a*n.x,t.y=o*r.y+a*n.y},e}();const fe=bB;var Yi=Math.min,Xi=Math.max,mn=new fe,En=new fe,yn=new fe,Cn=new fe,Co=new fe,Bo=new fe,SB=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=Yi(t.x,this.x),n=Yi(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Xi(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Xi(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,o=Ra();return zx(o,o,[-r.x,-r.y]),FB(o,o,[n,a]),zx(o,o,[t.x,t.y]),o},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,a=n.x,o=n.x+n.width,i=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,x=t.y,c=t.y+t.height,d=!(o<l||u<a||s<x||c<i);if(r){var f=1/0,v=0,g=Math.abs(o-l),p=Math.abs(u-a),m=Math.abs(s-x),E=Math.abs(c-i),y=Math.min(g,p),B=Math.min(m,E);o<l||u<a?y>v&&(v=y,g<p?fe.set(Bo,-g,0):fe.set(Bo,p,0)):y<f&&(f=y,g<p?fe.set(Co,g,0):fe.set(Co,-p,0)),s<x||c<i?B>v&&(v=B,m<E?fe.set(Bo,0,-m):fe.set(Bo,0,E)):y<f&&(f=y,m<E?fe.set(Co,0,m):fe.set(Co,0,-E))}return r&&fe.copy(r,d?Co:Bo),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],o=n[3],i=n[4],s=n[5];t.x=r.x*a+i,t.y=r.y*o+s,t.width=r.width*a,t.height=r.height*o,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=yn.x=r.x,mn.y=Cn.y=r.y,En.x=Cn.x=r.x+r.width,En.y=yn.y=r.y+r.height,mn.transform(n),Cn.transform(n),En.transform(n),yn.transform(n),t.x=Yi(mn.x,En.x,yn.x,Cn.x),t.y=Yi(mn.y,En.y,yn.y,Cn.y);var l=Xi(mn.x,En.x,yn.x,Cn.x),u=Xi(mn.y,En.y,yn.y,Cn.y);t.width=l-t.x,t.height=u-t.y},e}();const Ae=SB;var E9="silent";function kB(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:TB}}function TB(){qa(this.event)}var NB=function(e){W(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}(tr),Ao=function(){function e(t,r){this.x=t,this.y=r}return e}(),PB=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ql=new Ae(0,0,0,0),y9=function(e){W(t,e);function t(r,n,a,o,i){var s=e.call(this)||this;return s._hovered=new Ao(0,0),s.storage=r,s.painter=n,s.painterRoot=o,s._pointerSize=i,a=a||new NB,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new fB(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(k(PB,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,o=C9(this,n,a),i=this._hovered,s=i.target;s&&!s.__zr&&(i=this.findHover(i.x,i.y),s=i.target);var l=this._hovered=o?new Ao(n,a):this.findHover(n,a),u=l.target,x=this.proxy;x.setCursor&&x.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(i,"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 Ao(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 o=r.target;if(!(o&&o.silent)){for(var i="on"+n,s=kB(n,r,a);o&&(o[i]&&(s.cancelBubble=!!o[i].call(o,s)),o.trigger(n,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[i]=="function"&&l[i].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,a){var o=this.storage.getDisplayList(),i=new Ao(r,n);if(xh(o,i,r,n,a),this._pointerSize&&!i.target){for(var s=[],l=this._pointerSize,u=l/2,x=new Ae(r-u,n-u,l,l),c=o.length-1;c>=0;c--){var d=o[c];d!==a&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(ql.copy(d.getBoundingRect()),d.transform&&ql.applyTransform(d.transform),ql.intersect(x)&&s.push(d))}if(s.length)for(var f=4,v=Math.PI/12,g=Math.PI*2,p=0;p<u;p+=f)for(var m=0;m<g;m+=v){var E=r+p*Math.cos(m),y=n+p*Math.sin(m);if(xh(s,i,E,y,a),i.target)return i}}return i},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new DB);var a=this._gestureMgr;n==="start"&&a.clear();var o=a.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),o){var i=o.type;r.gestureEvent=i;var s=new Ao;s.target=o.target,this.dispatchToElement(s,i,o.event)}},t}(tr);k(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){y9.prototype[e]=function(t){var r=t.zrX,n=t.zrY,a=C9(this,r,n),o,i;if((e!=="mouseup"||!a)&&(o=this.findHover(r,n),i=o.target),e==="mousedown")this._downEl=i,this._downPoint=[t.zrX,t.zrY],this._upEl=i;else if(e==="mouseup")this._upEl=i;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||Ox(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,e,t)}});function MB(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,a=void 0,o=!1;n;){if(n.ignoreClip&&(o=!0),!o){var i=n.getClipPath();if(i&&!i.contain(t,r))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s||n.parent}return a?E9:!0}return!1}function xh(e,t,r,n,a){for(var o=e.length-1;o>=0;o--){var i=e[o],s=void 0;if(i!==a&&!i.ignore&&(s=MB(i,r,n))&&(!t.topTarget&&(t.topTarget=i),s!==E9)){t.target=i;break}}}function C9(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const IB=y9;var B9=32,Do=7;function LB(e){for(var t=0;e>=B9;)t|=e&1,e>>=1;return e+t}function ch(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++;OB(e,t,a)}else for(;a<r&&n(e[a],e[a-1])>=0;)a++;return a-t}function OB(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function fh(e,t,r,n,a){for(n===t&&n++;n<r;n++){for(var o=e[n],i=t,s=n,l;i<s;)l=i+s>>>1,a(o,e[l])<0?s=l:i=l+1;var u=n-i;switch(u){case 3:e[i+3]=e[i+2];case 2:e[i+2]=e[i+1];case 1:e[i+1]=e[i];break;default:for(;u>0;)e[i+u]=e[i+u-1],u--}e[i]=o}}function Kl(e,t,r,n,a,o){var i=0,s=0,l=1;if(o(e,t[r+a])>0){for(s=n-a;l<s&&o(e,t[r+a+l])>0;)i=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),i+=a,l+=a}else{for(s=a+1;l<s&&o(e,t[r+a-l])<=0;)i=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=i;i=a-l,l=a-u}for(i++;i<l;){var x=i+(l-i>>>1);o(e,t[r+x])>0?i=x+1:l=x}return l}function Jl(e,t,r,n,a,o){var i=0,s=0,l=1;if(o(e,t[r+a])<0){for(s=a+1;l<s&&o(e,t[r+a-l])<0;)i=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=i;i=a-l,l=a-u}else{for(s=n-a;l<s&&o(e,t[r+a+l])>=0;)i=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),i+=a,l+=a}for(i++;i<l;){var x=i+(l-i>>>1);o(e,t[r+x])<0?l=x:i=x+1}return l}function RB(e,t){var r=Do,n,a,o=0,i=[];n=[],a=[];function s(f,v){n[o]=f,a[o]=v,o+=1}function l(){for(;o>1;){var f=o-2;if(f>=1&&a[f-1]<=a[f]+a[f+1]||f>=2&&a[f-2]<=a[f]+a[f-1])a[f-1]<a[f+1]&&f--;else if(a[f]>a[f+1])break;x(f)}}function u(){for(;o>1;){var f=o-2;f>0&&a[f-1]<a[f+1]&&f--,x(f)}}function x(f){var v=n[f],g=a[f],p=n[f+1],m=a[f+1];a[f]=g+m,f===o-3&&(n[f+1]=n[f+2],a[f+1]=a[f+2]),o--;var E=Jl(e[p],e,v,g,0,t);v+=E,g-=E,g!==0&&(m=Kl(e[v+g-1],e,p,m,m-1,t),m!==0&&(g<=m?c(v,g,p,m):d(v,g,p,m)))}function c(f,v,g,p){var m=0;for(m=0;m<v;m++)i[m]=e[f+m];var E=0,y=g,B=f;if(e[B++]=e[y++],--p===0){for(m=0;m<v;m++)e[B+m]=i[E+m];return}if(v===1){for(m=0;m<p;m++)e[B+m]=e[y+m];e[B+p]=i[E];return}for(var D=r,A,_,C;;){A=0,_=0,C=!1;do if(t(e[y],i[E])<0){if(e[B++]=e[y++],_++,A=0,--p===0){C=!0;break}}else if(e[B++]=i[E++],A++,_=0,--v===1){C=!0;break}while((A|_)<D);if(C)break;do{if(A=Jl(e[y],i,E,v,0,t),A!==0){for(m=0;m<A;m++)e[B+m]=i[E+m];if(B+=A,E+=A,v-=A,v<=1){C=!0;break}}if(e[B++]=e[y++],--p===0){C=!0;break}if(_=Kl(i[E],e,y,p,0,t),_!==0){for(m=0;m<_;m++)e[B+m]=e[y+m];if(B+=_,y+=_,p-=_,p===0){C=!0;break}}if(e[B++]=i[E++],--v===1){C=!0;break}D--}while(A>=Do||_>=Do);if(C)break;D<0&&(D=0),D+=2}if(r=D,r<1&&(r=1),v===1){for(m=0;m<p;m++)e[B+m]=e[y+m];e[B+p]=i[E]}else{if(v===0)throw new Error;for(m=0;m<v;m++)e[B+m]=i[E+m]}}function d(f,v,g,p){var m=0;for(m=0;m<p;m++)i[m]=e[g+m];var E=f+v-1,y=p-1,B=g+p-1,D=0,A=0;if(e[B--]=e[E--],--v===0){for(D=B-(p-1),m=0;m<p;m++)e[D+m]=i[m];return}if(p===1){for(B-=v,E-=v,A=B+1,D=E+1,m=v-1;m>=0;m--)e[A+m]=e[D+m];e[B]=i[y];return}for(var _=r;;){var C=0,w=0,b=!1;do if(t(i[y],e[E])<0){if(e[B--]=e[E--],C++,w=0,--v===0){b=!0;break}}else if(e[B--]=i[y--],w++,C=0,--p===1){b=!0;break}while((C|w)<_);if(b)break;do{if(C=v-Jl(i[y],e,f,v,v-1,t),C!==0){for(B-=C,E-=C,v-=C,A=B+1,D=E+1,m=C-1;m>=0;m--)e[A+m]=e[D+m];if(v===0){b=!0;break}}if(e[B--]=i[y--],--p===1){b=!0;break}if(w=p-Kl(e[E],i,0,p,p-1,t),w!==0){for(B-=w,y-=w,p-=w,A=B+1,D=y+1,m=0;m<w;m++)e[A+m]=i[D+m];if(p<=1){b=!0;break}}if(e[B--]=e[E--],--v===0){b=!0;break}_--}while(C>=Do||w>=Do);if(b)break;_<0&&(_=0),_+=2}if(r=_,r<1&&(r=1),p===1){for(B-=v,E-=v,A=B+1,D=E+1,m=v-1;m>=0;m--)e[A+m]=e[D+m];e[B]=i[y]}else{if(p===0)throw new Error;for(D=B-(p-1),m=0;m<p;m++)e[D+m]=i[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Os(e,t,r,n){r||(r=0),n||(n=e.length);var a=n-r;if(!(a<2)){var o=0;if(a<B9){o=ch(e,r,n,t),fh(e,r,n,r+o,t);return}var i=RB(e,t),s=LB(a);do{if(o=ch(e,r,n,t),o<s){var l=a;l>s&&(l=s),fh(e,r,r+l,r+o,t),o=l}i.pushRun(r,o),i.mergeRuns(),a-=o,r+=o}while(a!==0);i.forceMergeRuns()}}var wt=1,Uo=2,Sa=4,dh=!1;function Ql(){dh||(dh=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function hh(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var VB=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=hh}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,o=r.length;a<o;a++)this._updateAndAddDisplayable(r[a],null,t);n.length=this._displayListLen,Os(n,hh)},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 o=a,i=t;o;)o.parent=i,o.updateTransform(),r.push(o),i=o,o=o.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=wt),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var x=t;r&&r.length?x.__clipPaths=r:x.__clipPaths&&x.__clipPaths.length>0&&(x.__clipPaths=[]),isNaN(x.z)&&(Ql(),x.z=0),isNaN(x.z2)&&(Ql(),x.z2=0),isNaN(x.zlevel)&&(Ql(),x.zlevel=0),this._displayList[this._displayListLen++]=x}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,r,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,r,n);var f=t.getTextContent();f&&this._updateAndAddDisplayable(f,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=pe(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}(),A9;A9=se.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};const Gx=A9;var ri={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-ri.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?ri.bounceIn(e*2)*.5:ri.bounceOut(e*2-1)*.5+.5}},ji=Math.pow,ln=Math.sqrt,Js=1e-8,D9=1e-4,vh=ln(3),Zi=1/3,fr=io(),Rt=io(),$a=io();function Qr(e){return e>-Js&&e<Js}function _9(e){return e>Js||e<-Js}function Ue(e,t,r,n,a){var o=1-a;return o*o*(o*e+3*a*t)+a*a*(a*n+3*o*r)}function ph(e,t,r,n,a){var o=1-a;return 3*(((t-e)*o+2*(r-t)*a)*o+(n-r)*a*a)}function Qs(e,t,r,n,a,o){var i=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-a,x=s*s-3*i*l,c=s*l-9*i*u,d=l*l-3*s*u,f=0;if(Qr(x)&&Qr(c))if(Qr(s))o[0]=0;else{var v=-l/s;v>=0&&v<=1&&(o[f++]=v)}else{var g=c*c-4*x*d;if(Qr(g)){var p=c/x,v=-s/i+p,m=-p/2;v>=0&&v<=1&&(o[f++]=v),m>=0&&m<=1&&(o[f++]=m)}else if(g>0){var E=ln(g),y=x*s+1.5*i*(-c+E),B=x*s+1.5*i*(-c-E);y<0?y=-ji(-y,Zi):y=ji(y,Zi),B<0?B=-ji(-B,Zi):B=ji(B,Zi);var v=(-s-(y+B))/(3*i);v>=0&&v<=1&&(o[f++]=v)}else{var D=(2*x*s-3*i*c)/(2*ln(x*x*x)),A=Math.acos(D)/3,_=ln(x),C=Math.cos(A),v=(-s-2*_*C)/(3*i),m=(-s+_*(C+vh*Math.sin(A)))/(3*i),w=(-s+_*(C-vh*Math.sin(A)))/(3*i);v>=0&&v<=1&&(o[f++]=v),m>=0&&m<=1&&(o[f++]=m),w>=0&&w<=1&&(o[f++]=w)}}return f}function w9(e,t,r,n,a){var o=6*r-12*t+6*e,i=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(Qr(i)){if(_9(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var x=o*o-4*i*s;if(Qr(x))a[0]=-o/(2*i);else if(x>0){var c=ln(x),u=(-o+c)/(2*i),d=(-o-c)/(2*i);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function e0(e,t,r,n,a,o){var i=(t-e)*a+e,s=(r-t)*a+t,l=(n-r)*a+r,u=(s-i)*a+i,x=(l-s)*a+s,c=(x-u)*a+u;o[0]=e,o[1]=i,o[2]=u,o[3]=c,o[4]=c,o[5]=x,o[6]=l,o[7]=n}function $B(e,t,r,n,a,o,i,s,l,u,x){var c,d=.005,f=1/0,v,g,p,m;fr[0]=l,fr[1]=u;for(var E=0;E<1;E+=.05)Rt[0]=Ue(e,r,a,i,E),Rt[1]=Ue(t,n,o,s,E),p=Oa(fr,Rt),p<f&&(c=E,f=p);f=1/0;for(var y=0;y<32&&!(d<D9);y++)v=c-d,g=c+d,Rt[0]=Ue(e,r,a,i,v),Rt[1]=Ue(t,n,o,s,v),p=Oa(Rt,fr),v>=0&&p<f?(c=v,f=p):($a[0]=Ue(e,r,a,i,g),$a[1]=Ue(t,n,o,s,g),m=Oa($a,fr),g<=1&&m<f?(c=g,f=m):d*=.5);return x&&(x[0]=Ue(e,r,a,i,c),x[1]=Ue(t,n,o,s,c)),ln(f)}function zB(e,t,r,n,a,o,i,s,l){for(var u=e,x=t,c=0,d=1/l,f=1;f<=l;f++){var v=f*d,g=Ue(e,r,a,i,v),p=Ue(t,n,o,s,v),m=g-u,E=p-x;c+=Math.sqrt(m*m+E*E),u=g,x=p}return c}function rt(e,t,r,n){var a=1-n;return a*(a*e+2*n*t)+n*n*r}function gh(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function GB(e,t,r,n,a){var o=e-2*t+r,i=2*(t-e),s=e-n,l=0;if(Qr(o)){if(_9(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var x=i*i-4*o*s;if(Qr(x)){var u=-i/(2*o);u>=0&&u<=1&&(a[l++]=u)}else if(x>0){var c=ln(x),u=(-i+c)/(2*o),d=(-i-c)/(2*o);u>=0&&u<=1&&(a[l++]=u),d>=0&&d<=1&&(a[l++]=d)}}return l}function F9(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function t0(e,t,r,n,a){var o=(t-e)*n+e,i=(r-t)*n+t,s=(i-o)*n+o;a[0]=e,a[1]=o,a[2]=s,a[3]=s,a[4]=i,a[5]=r}function HB(e,t,r,n,a,o,i,s,l){var u,x=.005,c=1/0;fr[0]=i,fr[1]=s;for(var d=0;d<1;d+=.05){Rt[0]=rt(e,r,a,d),Rt[1]=rt(t,n,o,d);var f=Oa(fr,Rt);f<c&&(u=d,c=f)}c=1/0;for(var v=0;v<32&&!(x<D9);v++){var g=u-x,p=u+x;Rt[0]=rt(e,r,a,g),Rt[1]=rt(t,n,o,g);var f=Oa(Rt,fr);if(g>=0&&f<c)u=g,c=f;else{$a[0]=rt(e,r,a,p),$a[1]=rt(t,n,o,p);var m=Oa($a,fr);p<=1&&m<c?(u=p,c=m):x*=.5}}return l&&(l[0]=rt(e,r,a,u),l[1]=rt(t,n,o,u)),ln(c)}function UB(e,t,r,n,a,o,i){for(var s=e,l=t,u=0,x=1/i,c=1;c<=i;c++){var d=c*x,f=rt(e,r,a,d),v=rt(t,n,o,d),g=f-s,p=v-l;u+=Math.sqrt(g*g+p*p),s=f,l=v}return u}var WB=/cubic-bezier\(([0-9,\.e ]+)\)/;function b9(e){var t=e&&WB.exec(e);if(t){var r=t[1].split(","),n=+hr(r[0]),a=+hr(r[1]),o=+hr(r[2]),i=+hr(r[3]);if(isNaN(n+a+o+i))return;var s=[];return function(l){return l<=0?0:l>=1?1:Qs(0,n,o,1,l,s)&&Ue(0,a,i,1,s[0])}}}var YB=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||ft,this.ondestroy=t.ondestroy||ft,this.onrestart=t.onrestart||ft,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,o=a/n;o<0&&(o=0),o=Math.min(o,1);var i=this.easingFunc,s=i?i(o):o;if(this.onframe(s),o===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=xe(t)?t:ri[t]||b9(t)},e}();const XB=YB;var S9=function(){function e(t){this.value=t}return e}(),jB=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new S9(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}(),Ii=function(){function e(t){this._list=new jB,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,a=this._map,o=null;if(a[t]==null){var i=n.len(),s=this._lastRemovedEntry;if(i>=this._maxSize&&i>0){var l=n.head;n.remove(l),delete a[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new S9(r),s.key=t,n.insertEntry(s),a[t]=s}return o},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}(),mh={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 Hx(e){return e<0?0:e>1?1:e}function eu(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?un(parseFloat(t)/100*255):un(parseInt(t,10))}function ni(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Hx(parseFloat(t)/100):Hx(parseFloat(t))}function tu(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 qi(e,t,r){return e+(t-e)*r}function Pt(e,t,r,n,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=a,e}function Ux(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var k9=new Ii(20),Ki=null;function da(e,t){Ki&&Ux(Ki,t),Ki=k9.put(e,Ki||t.slice())}function Tr(e,t){if(e){t=t||[];var r=k9.get(e);if(r)return Ux(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in mh)return Ux(t,mh[n]),da(e,t),t;var a=n.length;if(n.charAt(0)==="#"){if(a===4||a===5){var o=parseInt(n.slice(1,4),16);if(!(o>=0&&o<=4095)){Pt(t,0,0,0,1);return}return Pt(t,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,a===5?parseInt(n.slice(4),16)/15:1),da(e,t),t}else if(a===7||a===9){var o=parseInt(n.slice(1,7),16);if(!(o>=0&&o<=16777215)){Pt(t,0,0,0,1);return}return Pt(t,(o&16711680)>>16,(o&65280)>>8,o&255,a===9?parseInt(n.slice(7),16)/255:1),da(e,t),t}return}var i=n.indexOf("("),s=n.indexOf(")");if(i!==-1&&s+1===a){var l=n.substr(0,i),u=n.substr(i+1,s-(i+1)).split(","),x=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Pt(t,+u[0],+u[1],+u[2],1):Pt(t,0,0,0,1);x=ni(u.pop());case"rgb":if(u.length>=3)return Pt(t,eu(u[0]),eu(u[1]),eu(u[2]),u.length===3?x:ni(u[3])),da(e,t),t;Pt(t,0,0,0,1);return;case"hsla":if(u.length!==4){Pt(t,0,0,0,1);return}return u[3]=ni(u[3]),Eh(u,t),da(e,t),t;case"hsl":if(u.length!==3){Pt(t,0,0,0,1);return}return Eh(u,t),da(e,t),t;default:return}}Pt(t,0,0,0,1)}}function Eh(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=ni(e[1]),a=ni(e[2]),o=a<=.5?a*(n+1):a+n-a*n,i=a*2-o;return t=t||[],Pt(t,un(tu(i,o,r+1/3)*255),un(tu(i,o,r)*255),un(tu(i,o,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function yh(e,t){var r=Tr(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 tl(r,r.length===4?"rgba":"rgb")}}function ZB(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),a=Math.floor(n),o=Math.ceil(n),i=Tr(t[a]),s=Tr(t[o]),l=n-a,u=tl([un(qi(i[0],s[0],l)),un(qi(i[1],s[1],l)),un(qi(i[2],s[2],l)),Hx(qi(i[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:o,value:n}:u}}function tl(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 r0(e,t){var r=Tr(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var Ch=new Ii(100);function Bh(e){if(K(e)){var t=Ch.get(e);return t||(t=yh(e,-.1),Ch.put(e,t)),t}else if(Q0(e)){var r=H({},e);return r.colorStops=q(e.colorStops,function(n){return{offset:n.offset,color:yh(n.color,-.1)}}),r}return e}function qB(e){return e.type==="linear"}function KB(e){return e.type==="radial"}(function(){return se.hasGlobalWindow&&xe(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 Wx=Array.prototype.slice;function _r(e,t,r){return(t-e)*r+e}function ru(e,t,r,n){for(var a=t.length,o=0;o<a;o++)e[o]=_r(t[o],r[o],n);return e}function JB(e,t,r,n){for(var a=t.length,o=a&&t[0].length,i=0;i<a;i++){e[i]||(e[i]=[]);for(var s=0;s<o;s++)e[i][s]=_r(t[i][s],r[i][s],n)}return e}function Ji(e,t,r,n){for(var a=t.length,o=0;o<a;o++)e[o]=t[o]+r[o]*n;return e}function Ah(e,t,r,n){for(var a=t.length,o=a&&t[0].length,i=0;i<a;i++){e[i]||(e[i]=[]);for(var s=0;s<o;s++)e[i][s]=t[i][s]+r[i][s]*n}return e}function QB(e,t){for(var r=e.length,n=t.length,a=r>n?t:e,o=Math.min(r,n),i=a[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(r,n);s++)a.push({offset:i.offset,color:i.color.slice()})}function e7(e,t,r){var n=e,a=t;if(!(!n.push||!a.push)){var o=n.length,i=a.length;if(o!==i){var s=o>i;if(s)n.length=i;else for(var l=o;l<i;l++)n.push(r===1?a[l]:Wx.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 x=0;x<u;x++)isNaN(n[l][x])&&(n[l][x]=a[l][x])}}function ai(e){if(dt(e)){var t=e.length;if(dt(e[0])){for(var r=[],n=0;n<t;n++)r.push(Wx.call(e[n]));return r}return Wx.call(e)}return e}function Rs(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 t7(e){return dt(e&&e[0])?2:1}var Qi=0,Vs=1,T9=2,Wo=3,Yx=4,Xx=5,Dh=6;function _h(e){return e===Yx||e===Xx}function es(e){return e===Vs||e===T9}var _o=[0,0,0,0],r7=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,o=a.length,i=!1,s=Dh,l=r;if(dt(r)){var u=t7(r);s=u,(u===1&&!Se(r[0])||u===2&&!Se(r[0][0]))&&(i=!0)}else if(Se(r)&&!Za(r))s=Qi;else if(K(r))if(!isNaN(+r))s=Qi;else{var x=Tr(r);x&&(l=x,s=Wo)}else if(Q0(r)){var c=H({},l);c.colorStops=q(r.colorStops,function(f){return{offset:f.offset,color:Tr(f.color)}}),qB(r)?s=Yx:KB(r)&&(s=Xx),l=c}o===0?this.valType=s:(s!==this.valType||s===Dh)&&(i=!0),this.discrete=this.discrete||i;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=xe(n)?n:ri[n]||b9(n)),a.push(d),d},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(g,p){return g.time-p.time});for(var a=this.valType,o=n.length,i=n[o-1],s=this.discrete,l=es(a),u=_h(a),x=0;x<o;x++){var c=n[x],d=c.value,f=i.value;c.percent=c.time/t,s||(l&&x!==o-1?e7(d,f,a):u&&QB(d.colorStops,f.colorStops))}if(!s&&a!==Xx&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;for(var v=n[0].value,x=0;x<o;x++)a===Qi?n[x].additiveValue=n[x].value-v:a===Wo?n[x].additiveValue=Ji([],n[x].value,v,-1):es(a)&&(n[x].additiveValue=a===Vs?Ji([],n[x].value,v,-1):Ah([],n[x].value,v,-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",o=this.valType,i=this.keyframes,s=i.length,l=this.propName,u=o===Wo,x,c=this._lastFr,d=Math.min,f,v;if(s===1)f=v=i[0];else{if(r<0)x=0;else if(r<this._lastFrP){var g=d(c+1,s-1);for(x=g;x>=0&&!(i[x].percent<=r);x--);x=d(x,s-2)}else{for(x=c;x<s&&!(i[x].percent>r);x++);x=d(x-1,s-2)}v=i[x+1],f=i[x]}if(f&&v){this._lastFr=x,this._lastFrP=r;var p=v.percent-f.percent,m=p===0?1:d((r-f.percent)/p,1);v.easingFunc&&(m=v.easingFunc(m));var E=n?this._additiveValue:u?_o:t[l];if((es(o)||u)&&!E&&(E=this._additiveValue=[]),this.discrete)t[l]=m<1?f.rawValue:v.rawValue;else if(es(o))o===Vs?ru(E,f[a],v[a],m):JB(E,f[a],v[a],m);else if(_h(o)){var y=f[a],B=v[a],D=o===Yx;t[l]={type:D?"linear":"radial",x:_r(y.x,B.x,m),y:_r(y.y,B.y,m),colorStops:q(y.colorStops,function(_,C){var w=B.colorStops[C];return{offset:_r(_.offset,w.offset,m),color:Rs(ru([],_.color,w.color,m))}}),global:B.global},D?(t[l].x2=_r(y.x2,B.x2,m),t[l].y2=_r(y.y2,B.y2,m)):t[l].r=_r(y.r,B.r,m)}else if(u)ru(E,f[a],v[a],m),n||(t[l]=Rs(E));else{var A=_r(f[a],v[a],m);n?this._additiveValue=A:t[l]=A}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,a=this._additiveValue;r===Qi?t[n]=t[n]+a:r===Wo?(Tr(t[n],_o),Ji(_o,_o,a,1),t[n]=Rs(_o)):r===Vs?Ji(t[n],t[n],a,1):r===T9&&Ah(t[n],t[n],a,1)},e}(),yf=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,De(r),n)},e.prototype.whenWithKeys=function(t,r,n,a){for(var o=this._tracks,i=0;i<n.length;i++){var s=n[i],l=o[s];if(!l){l=o[s]=new r7(s);var u=void 0,x=this._getAdditiveTrack(s);if(x){var c=x.keyframes,d=c[c.length-1];u=d&&d.value,x.valType===Wo&&u&&(u=Rs(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,ai(u),a),this._trackKeys.push(s)}l.addKeyframe(t,ai(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 o=n[a].getTrack(t);o&&(r=o)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],a=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var i=this._trackKeys[o],s=this._tracks[i],l=this._getAdditiveTrack(i),u=s.keyframes,x=u.length;if(s.prepare(a,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var c=u[x-1];c&&(r._target[s.propName]=c.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var d=new XB({life:a,loop:this._loop,delay:this._delay||0,onframe:function(f){r._started=2;var v=r._additiveAnimators;if(v){for(var g=!1,p=0;p<v.length;p++)if(v[p]._clip){g=!0;break}g||(r._additiveAnimators=null)}for(var p=0;p<n.length;p++)n[p].step(r._target,f);var m=r._onframeCbs;if(m)for(var p=0;p<m.length;p++)m[p](r._target,f)},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,o=0;o<t.length;o++){var i=n[t[o]];i&&!i.isFinished()&&(r?i.step(this._target,1):this._started===1&&i.step(this._target,0),i.setFinished())}for(var s=!0,o=0;o<a.length;o++)if(!n[a[o]].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 o=r[a],i=this._tracks[o];if(!(!i||i.isFinished())){var s=i.keyframes,l=s[n?0:s.length-1];l&&(t[o]=ai(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||De(t);for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(o){var i=o.keyframes;if(i.length>1){var s=i.pop();o.addKeyframe(s.time,t[a]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},e}();function Ia(){return new Date().getTime()}var n7=function(e){W(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=Ia()-this._pausedTime,a=n-this._time,o=this._head;o;){var i=o.next,s=o.step(n,a);s&&(o.ondestroy(),this.removeClip(o)),o=i}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&&(Gx(n),!r._paused&&r.update())}Gx(n)},t.prototype.start=function(){this._running||(this._time=Ia(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Ia(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Ia()-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 yf(r,n.loop);return this.addAnimator(a),a},t}(tr),a7=300,nu=se.domSupported,au=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 o=a.replace("mouse","pointer");return r.hasOwnProperty(o)?o:a});return{mouse:e,touch:t,pointer:n}}(),wh={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Fh=!1;function jx(e){var t=e.pointerType;return t==="pen"||t==="touch"}function o7(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 ou(e){e&&(e.zrByTouch=!0)}function i7(e,t){return Mt(e.dom,new s7(e,t),!0)}function N9(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 s7=function(){function e(t,r){this.stopPropagation=ft,this.stopImmediatePropagation=ft,this.preventDefault=ft,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Xt={mousedown:function(e){e=Mt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Mt(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=Mt(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Mt(this.dom,e);var t=e.toElement||e.relatedTarget;N9(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Fh=!0,e=Mt(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Fh||(e=Mt(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Mt(this.dom,e),ou(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Xt.mousemove.call(this,e),Xt.mousedown.call(this,e)},touchmove:function(e){e=Mt(this.dom,e),ou(e),this.handler.processGesture(e,"change"),Xt.mousemove.call(this,e)},touchend:function(e){e=Mt(this.dom,e),ou(e),this.handler.processGesture(e,"end"),Xt.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<a7&&Xt.click.call(this,e)},pointerdown:function(e){Xt.mousedown.call(this,e)},pointermove:function(e){jx(e)||Xt.mousemove.call(this,e)},pointerup:function(e){Xt.mouseup.call(this,e)},pointerout:function(e){jx(e)||Xt.mouseout.call(this,e)}};k(["click","dblclick","contextmenu"],function(e){Xt[e]=function(t){t=Mt(this.dom,t),this.trigger(e,t)}});var Zx={pointermove:function(e){jx(e)||Zx.mousemove.call(this,e)},pointerup:function(e){Zx.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 l7(e,t){var r=t.domHandlers;se.pointerEventsSupported?k(au.pointer,function(n){$s(t,n,function(a){r[n].call(e,a)})}):(se.touchEventsSupported&&k(au.touch,function(n){$s(t,n,function(a){r[n].call(e,a),o7(t)})}),k(au.mouse,function(n){$s(t,n,function(a){a=pf(a),t.touching||r[n].call(e,a)})}))}function u7(e,t){se.pointerEventsSupported?k(wh.pointer,r):se.touchEventsSupported||k(wh.mouse,r);function r(n){function a(o){o=pf(o),N9(e,o.target)||(o=i7(e,o),t.domHandlers[n].call(e,o))}$s(t,n,a,{capture:!0})}}function $s(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,BB(e.domTarget,t,r,n)}function iu(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&AB(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var bh=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),x7=function(e){W(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 bh(r,Xt),nu&&(a._globalHandlerScope=new bh(document,Zx)),l7(a,a._localHandlerScope),a}return t.prototype.dispose=function(){iu(this._localHandlerScope),nu&&iu(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,nu&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?u7(this,n):iu(n)}},t}(tr);const c7=x7;var P9=1;se.hasGlobalWindow&&(P9=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var n0=P9,qx=.4,Kx="#333",Jx="#ccc",f7="#eee",Sh=gf,kh=5e-5;function Bn(e){return e>kh||e<-kh}var An=[],ha=[],su=Ra(),lu=Math.abs,Cf=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&&(Sh(n),this.invTransform=null);return}n=n||Ra(),r?this.getLocalTransform(n):Sh(n),t&&(r?Va(n,t,n):wB(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(An);var n=An[0]<0?-1:1,a=An[1]<0?-1:1,o=((An[0]-n)*r+n)/An[0]||0,i=((An[1]-a)*r+a)/An[1]||0;t[0]*=o,t[1]*=o,t[2]*=i,t[3]*=i}this.invTransform=this.invTransform||Ra(),Ef(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]),o=Math.PI/2+a-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(o),r=Math.sqrt(r),this.skewX=o,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||Ra(),Va(ha,t.invTransform,r),r=ha);var n=this.originX,a=this.originY;(n||a)&&(su[4]=n,su[5]=a,Va(ha,r,su),ha[4]-=n,ha[5]-=a,r=ha),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&&Gt(n,n,a),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],a=this.transform;return a&&Gt(n,n,a),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&lu(t[0]-1)>1e-10&&lu(t[3]-1)>1e-10?Math.sqrt(lu(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){d7(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,a=t.originY||0,o=t.scaleX,i=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,x=t.x,c=t.y,d=t.skewX?Math.tan(t.skewX):0,f=t.skewY?Math.tan(-t.skewY):0;if(n||a||s||l){var v=n+s,g=a+l;r[4]=-v*o-d*g*i,r[5]=-g*i-f*v*o}else r[4]=r[5]=0;return r[0]=o,r[3]=i,r[1]=f*o,r[2]=d*i,u&&mf(r,r,u),r[4]+=n+x,r[5]+=a+c,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}(),mr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function d7(e,t){for(var r=0;r<mr.length;r++){var n=mr[r];e[n]=t[n]}}var Th={};function Ft(e,t){t=t||qn;var r=Th[t];r||(r=Th[t]=new Ii(500));var n=r.get(e);return n==null&&(n=ao.measureText(e,t).width,r.put(e,n)),n}function Nh(e,t,r,n){var a=Ft(e,t),o=Af(t),i=Yo(0,a,r),s=ka(0,o,n),l=new Ae(i,s,a,o);return l}function Bf(e,t,r,n){var a=((e||"")+"").split(`
|
|
15
|
+
`),o=a.length;if(o===1)return Nh(a[0],t,r,n);for(var i=new Ae(0,0,0,0),s=0;s<a.length;s++){var l=Nh(a[s],t,r,n);s===0?i.copy(l):i.union(l)}return i}function Yo(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function ka(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function Af(e){return Ft("国",e)}function fn(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function a0(e,t,r){var n=t.position||"inside",a=t.distance!=null?t.distance:5,o=r.height,i=r.width,s=o/2,l=r.x,u=r.y,x="left",c="top";if(n instanceof Array)l+=fn(n[0],r.width),u+=fn(n[1],r.height),x=null,c=null;else switch(n){case"left":l-=a,u+=s,x="right",c="middle";break;case"right":l+=a+i,u+=s,c="middle";break;case"top":l+=i/2,u-=a,x="center",c="bottom";break;case"bottom":l+=i/2,u+=o+a,x="center";break;case"inside":l+=i/2,u+=s,x="center",c="middle";break;case"insideLeft":l+=a,u+=s,c="middle";break;case"insideRight":l+=i-a,u+=s,x="right",c="middle";break;case"insideTop":l+=i/2,u+=a,x="center";break;case"insideBottom":l+=i/2,u+=o-a,x="center",c="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=i-a,u+=a,x="right";break;case"insideBottomLeft":l+=a,u+=o-a,c="bottom";break;case"insideBottomRight":l+=i-a,u+=o-a,x="right",c="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=x,e.verticalAlign=c,e}var uu="__zr_normal__",xu=mr.concat(["ignore"]),h7=Lr(mr,function(e,t){return e[t]=!0,e},{ignore:!1}),va={},v7=new Ae(0,0,0,0),Df=function(){function e(t){this.id=f9(),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,o=r.innerTransformable,i=void 0,s=void 0,l=!1;o.parent=a?this:null;var u=!1;if(o.copyTransform(r),n.position!=null){var x=v7;n.layoutRect?x.copy(n.layoutRect):x.copy(this.getBoundingRect()),a||x.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(va,n,x):a0(va,n,x),o.x=va.x,o.y=va.y,i=va.align,s=va.verticalAlign;var c=n.origin;if(c&&n.rotation!=null){var d=void 0,f=void 0;c==="center"?(d=x.width*.5,f=x.height*.5):(d=fn(c[0],x.width),f=fn(c[1],x.height)),u=!0,o.originX=-o.x+d+(a?0:x.x),o.originY=-o.y+f+(a?0:x.y)}}n.rotation!=null&&(o.rotation=n.rotation);var v=n.offset;v&&(o.x+=v[0],o.y+=v[1],u||(o.originX=-v[0],o.originY=-v[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,E=void 0,y=void 0;g&&this.canBeInsideText()?(m=n.insideFill,E=n.insideStroke,(m==null||m==="auto")&&(m=this.getInsideTextFill()),(E==null||E==="auto")&&(E=this.getInsideTextStroke(m),y=!0)):(m=n.outsideFill,E=n.outsideStroke,(m==null||m==="auto")&&(m=this.getOutsideFill()),(E==null||E==="auto")&&(E=this.getOutsideStroke(m),y=!0)),m=m||"#000",(m!==p.fill||E!==p.stroke||y!==p.autoStroke||i!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=m,p.stroke=E,p.autoStroke=y,p.align=i,p.verticalAlign=s,r.setDefaultTextStyle(p)),r.__dirty|=wt,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()?Jx:Kx},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Tr(r);n||(n=[255,255,255,1]);for(var a=n[3],o=this.__zr.isDarkMode(),i=0;i<3;i++)n[i]=n[i]*a+(o?0:255)*(1-a);return n[3]=1,tl(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||{},H(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(re(t))for(var n=t,a=De(n),o=0;o<a.length;o++){var i=a[o];this.attrKV(i,t[i])}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],o=a.__fromStateTransition;if(!(a.getLoop()||o&&o!==uu)){var i=a.targetName,s=i?r[i]: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,xu)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var a=0;a<n.length;a++){var o=n[a];t[o]!=null&&!(o in r)&&(r[o]=this[o])}},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(uu,!1,t)},e.prototype.useState=function(t,r,n,a){var o=t===uu,i=this.hasState();if(!(!i&&o)){var s=this.currentStates,l=this.stateTransition;if(!(pe(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!o&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!o){on("State "+t+" not exists.");return}o||this.saveCurrentToNormalState(u);var x=!!(u&&u.hoverLayer||a);x&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var c=this._textContent,d=this._textGuide;return c&&c.useState(t,r,n,x),d&&d.useState(t,r,n,x),o?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!x&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~wt),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var a=[],o=this.currentStates,i=t.length,s=i===o.length;if(s){for(var l=0;l<i;l++)if(t[l]!==o[l]){s=!1;break}}if(s)return;for(var l=0;l<i;l++){var u=t[l],x=void 0;this.stateProxy&&(x=this.stateProxy(u,t)),x||(x=this.states[u]),x&&a.push(x)}var c=a[i-1],d=!!(c&&c.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var f=this._mergeStates(a),v=this.stateTransition;this.saveCurrentToNormalState(f),this._applyStateObj(t.join(","),f,this._normalState,!1,!r&&!this.__inHover&&v&&v.duration>0,v);var g=this._textContent,p=this._textGuide;g&&g.useStates(t,r,d),p&&p.useStates(t,r,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~wt)}},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=pe(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(),o=pe(a,t),i=pe(a,r)>=0;o>=0?i?a.splice(o,1):a[o]=r:n&&!i&&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 o=t[a];H(r,o),o.textConfig&&(n=n||{},H(n,o.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,a,o,i){var s=!(r&&a);r&&r.textConfig?(this.textConfig=H({},a?this.textConfig:n.textConfig),H(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,x=0;x<xu.length;x++){var c=xu[x],d=o&&h7[c];r&&r[c]!=null?d?(u=!0,l[c]=r[c]):this[c]=r[c]:s&&n[c]!=null&&(d?(u=!0,l[c]=n[c]):this[c]=n[c])}if(!o)for(var x=0;x<this.animators.length;x++){var f=this.animators[x],v=f.targetName;f.getLoop()||f.__changeFinalValue(v?(r||n)[v]:r||n)}u&&this._transitionState(t,l,i)},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 Cf,this._attachComponent(t),this._textContent=t,this.markRedraw()}},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),H(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|=wt;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 o=new yf(a,r,n);return t&&(o.targetName=t),this.addAnimator(o,t),o},e.prototype.addAnimator=function(t,r){var n=this.__zr,a=this;t.during(function(){a.updateDuringAnimation(r)}).done(function(){var o=a.animators,i=pe(o,t);i>=0&&o.splice(i,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,o=[],i=0;i<a;i++){var s=n[i];!t||t===s.scope?s.stop(r):o.push(s)}return this.animators=o,this},e.prototype.animateTo=function(t,r,n){cu(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){cu(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,a){for(var o=cu(this,r,n,a),i=0;i<o.length;i++)o[i].__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=wt;var r={};function n(o,i,s){r[o+i+s]||(console.warn("DEPRECATED: '"+o+"' has been deprecated. use '"+i+"', '"+s+"' instead"),r[o+i+s]=!0)}function a(o,i,s,l){Object.defineProperty(t,o,{get:function(){if(process.env.NODE_ENV!=="production"&&n(o,s,l),!this[i]){var x=this[i]=[];u(this,x)}return this[i]},set:function(x){process.env.NODE_ENV!=="production"&&n(o,s,l),this[s]=x[0],this[l]=x[1],this[i]=x,u(this,x)}});function u(x,c){Object.defineProperty(c,0,{get:function(){return x[s]},set:function(d){x[s]=d}}),Object.defineProperty(c,1,{get:function(){return x[l]},set:function(d){x[l]=d}})}}Object.defineProperty&&(a("position","_legacyPos","x","y"),a("scale","_legacyScale","scaleX","scaleY"),a("origin","_legacyOrigin","originX","originY"))}(),e}();er(Df,tr);er(Df,Cf);function cu(e,t,r,n,a){r=r||{};var o=[];M9(e,"",e,t,r,n,o,a);var i=o.length,s=!1,l=r.done,u=r.aborted,x=function(){s=!0,i--,i<=0&&(s?l&&l():u&&u())},c=function(){i--,i<=0&&(s?l&&l():u&&u())};i||l&&l(),o.length>0&&r.during&&o[0].during(function(v,g){r.during(g)});for(var d=0;d<o.length;d++){var f=o[d];x&&f.done(x),c&&f.aborted(c),r.force&&f.duration(r.duration),f.start(r.easing)}return o}function fu(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function p7(e){return dt(e[0])}function g7(e,t,r){if(dt(t[r]))if(dt(e[r])||(e[r]=[]),ht(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),fu(e[r],t[r],n))}else{var a=t[r],o=e[r],i=a.length;if(p7(a))for(var s=a[0].length,l=0;l<i;l++)o[l]?fu(o[l],a[l],s):o[l]=Array.prototype.slice.call(a[l]);else fu(o,a,i);o.length=a.length}else e[r]=t[r]}function m7(e,t){return e===t||dt(e)&&dt(t)&&E7(e,t)}function E7(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 M9(e,t,r,n,a,o,i,s){for(var l=De(n),u=a.duration,x=a.delay,c=a.additive,d=a.setToFinal,f=!re(o),v=e.animators,g=[],p=0;p<l.length;p++){var m=l[p],E=n[m];if(E!=null&&r[m]!=null&&(f||o[m]))if(re(E)&&!dt(E)&&!Q0(E)){if(t){s||(r[m]=E,e.updateDuringAnimation(t));continue}M9(e,m,r[m],E,a,o&&o[m],i,s)}else g.push(m);else s||(r[m]=E,e.updateDuringAnimation(t),g.push(m))}var y=g.length;if(!c&&y)for(var B=0;B<v.length;B++){var D=v[B];if(D.targetName===t){var A=D.stopTracks(g);if(A){var _=pe(v,D);v.splice(_,1)}}}if(a.force||(g=Qe(g,function(F){return!m7(n[F],r[F])}),y=g.length),y>0||a.force&&!i.length){var C=void 0,w=void 0,b=void 0;if(s){w={},d&&(C={});for(var B=0;B<y;B++){var m=g[B];w[m]=r[m],d?C[m]=n[m]:r[m]=n[m]}}else if(d){b={};for(var B=0;B<y;B++){var m=g[B];b[m]=ai(r[m]),g7(r,n,m)}}var D=new yf(r,!1,!1,c?Qe(v,function(S){return S.targetName===t}):null);D.targetName=t,a.scope&&(D.scope=a.scope),d&&C&&D.whenWithKeys(0,C,g),b&&D.whenWithKeys(0,b,g),D.whenWithKeys(u??500,s?w:n,g).delay(x||0),e.addAnimator(D,t),i.push(D)}}const I9=Df;var Oe=function(e){W(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,o=a.indexOf(n);o>=0&&(a.splice(o,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var a=pe(this._children,r);return a>=0&&this.replaceAt(n,a),this},t.prototype.replaceAt=function(r,n){var a=this._children,o=a[n];if(r&&r!==this&&r.parent!==this&&r!==o){a[n]=r,o.parent=null;var i=this.__zr;i&&o.removeSelfFromZr(i),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,o=pe(a,r);return o<0?this:(a.splice(o,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 o=r[a];n&&o.removeSelfFromZr(n),o.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var a=this._children,o=0;o<a.length;o++){var i=a[o];r.call(n,i,o)}return this},t.prototype.traverse=function(r,n){for(var a=0;a<this._children.length;a++){var o=this._children[a],i=r.call(n,o);o.isGroup&&!i&&o.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 Ae(0,0,0,0),a=r||this._children,o=[],i=null,s=0;s<a.length;s++){var l=a[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),x=l.getLocalTransform(o);x?(Ae.applyTransform(n,u,x),i=i||n.clone(),i.union(n)):(i=i||u.clone(),i.union(u))}}return i||n},t}(I9);Oe.prototype.type="group";/*!
|
|
16
16
|
* ZRender, a high performance 2d drawing library.
|
|
17
17
|
*
|
|
18
18
|
* Copyright (c) 2013, Baidu Inc.
|
|
@@ -20,26 +20,26 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
20
20
|
*
|
|
21
21
|
* LICENSE
|
|
22
22
|
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
23
|
-
*/var Wi={},O_={};function wD(e){delete O_[e]}function bD(e){if(!e)return!1;if(typeof e=="string")return rl(e,1)<Xf;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,a=0;a<n;a++)r+=rl(t[a].color,1);return r/=n,r<Xf}return!1}var SD=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 $N,o=n.renderer||"canvas";if(Wi[o]||(o=Te(Wi)[0]),process.env.NODE_ENV!=="production"&&!Wi[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Wi[o](r,i,n,t),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!ae.node&&!ae.worker&&!l?new fD(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?ae.touchEventsSupported:!!c,d=44,h;f&&(h=ie(n.pointerSize,d)),this.handler=new ON(i,s,u,s.root,h),this.animation=new nD({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=bD(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 Re&&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,wD(this.id))},e}();function Pp(e,t){var r=new SD(f_(),e,t);return O_[r.id]=r,r}function CD(e,t){Wi[e]=t}var Ip=1e-4,R_=20;function TD(e){return e.replace(/^\s+|\s+$/g,"")}function Ye(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 Ae(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 X(e)?TD(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function $e(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),R_),e=(+e).toFixed(t),r?e:+e}function Yi(e){return e.sort(function(t,r){return t-r}),e}function fr(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 B_(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 xD(e,t){var r=Ir(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=Ir(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 ND(e,t){var r=Math.max(fr(e),fr(t)),n=e+t;return r>R_?n:$e(n,r)}function V_(e){var t=Math.PI*2;return(e%t+t)%t}function il(e){return e>-Ip&&e<Ip}var DD=/^(?:(\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 Lr(e){if(e instanceof Date)return e;if(X(e)){var t=DD.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 AD(e){return Math.pow(10,ru(e))}function ru(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 $_(e,t){var r=ru(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 ol(e){var t=parseFloat(e);return t==e&&(t!==0||!X(e)||e.indexOf("x")<=0)?t:NaN}function F_(e){return!isNaN(ol(e))}function z_(){return Math.round(Math.random()*9)}function G_(e,t){return t===0?e:G_(t,e%t)}function Lp(e,t){return e==null?t:t==null?e:e*t/G_(e,t)}var MD="[ECharts] ",Op={},kD=typeof console<"u"&&console.warn&&console.log;function nu(e,t,r){if(kD){if(r){if(Op[t])return;Op[t]=!0}console[e](MD+t)}}function ED(e,t){nu("log",e,t)}function ze(e,t){nu("warn",e,t)}function tt(e,t){nu("error",e,t)}function qt(e){process.env.NODE_ENV!=="production"&&nu("warn","DEPRECATED: "+e,!0)}function Ge(e,t,r){process.env.NODE_ENV!=="production"&&qt((r?"["+r+"]":"")+(e+" is deprecated, use "+t+" instead."))}function sl(){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()+")":se(a)?"function () { ... }":rN(a)?a+"":null};r=q(e,function(a){if(X(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 st(e){throw new Error(e)}function Rp(e,t,r){return(t-e)*r+e}var H_="series\0",PD="\0_ec_\0";function He(e){return e instanceof Array?e:e==null?[]:[e]}function ll(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 Bp=["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 Lo(e){return Q(e)&&!U(e)&&!(e instanceof Date)?e.value:e}function ID(e){return Q(e)&&!(e instanceof Array)}function LD(e,t,r){var n=r==="normalMerge",a=r==="replaceMerge",i=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=oe();k(t,function(l,u){if(!Q(l)){t[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!$p(l.id)&&Vp(l.id),l.name!=null&&!$p(l.name)&&Vp(l.name))});var s=OD(e,o,r);return(n||a)&&RD(s,e,o,t),n&&BD(s,t),n||a?VD(s,t,a):i&&$D(s,t),FD(s),s}function OD(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 RD(e,t,r,n){k(n,function(a,i){if(!(!a||a.id==null)){var o=ro(a.id),s=r.get(o);if(s!=null){var l=e[s];ne(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=a,l.existing=t[s],n[i]=null}}})}function BD(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)&&U_("name",i,r)){e[a].newOption=r,t[n]=null;return}}})}function VD(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&&!U_("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),i++}})}function $D(e,t){k(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function FD(e){var t=oe();k(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),k(e,function(r){var n=r.newOption;ne(!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(Q(i)){if(o.name=i.name!=null?ro(i.name):a?a.name:H_+n,a)o.id=ro(a.id);else if(i.id!=null)o.id=ro(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 U_(e,t,r){var n=dr(t[e],null),a=dr(r[e],null);return n!=null&&a!=null&&n===a}function ro(e){if(process.env.NODE_ENV!=="production"&&e==null)throw new Error;return dr(e,"")}function dr(e,t){return e==null?t:X(e)?e:Me(e)||Ks(e)?e+"":t}function Vp(e){process.env.NODE_ENV!=="production"&&ze("`"+e+"` is invalid id or name. Must be a string or number.")}function $p(e){return Ks(e)||F_(e)}function Cd(e){var t=e.name;return!!(t&&t.indexOf(H_))}function Za(e){return e&&e.id!=null&&ro(e.id).indexOf(PD)===0}function zD(e,t,r){k(e,function(n){var a=n.newOption;Q(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=GD(t,a,n.existing,r))})}function GD(e,t,r,n){var a=t.type?t.type:r?r.subType:n.determineSubType(e,t);return a}function Zn(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 ke(){var e="__ec_inner_"+HD++;return function(t){return t[e]||(t[e]={})}}var HD=z_();function hc(e,t,r){var n=Td(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=Oo(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 Td(e,t){var r;if(X(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var a=oe(),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&&de(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 pt={useDefault:!0,enableAll:!1,enableNone:!1},UD={useDefault:!1,enableAll:!0,enableNone:!0};function Oo(e,t,r,n){n=n||pt;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?(ne(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(ne(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 W_(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function WD(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function YD(e){return e==="auto"?ae.domSupported?"html":"richText":e||"html"}function qD(e,t,r,n,a){var i=t==null||t==="auto";if(n==null)return n;if(Me(n)){var o=Rp(r||0,n,a);return $e(o,i?Math.max(fr(r||0),fr(n)):t)}else{if(X(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=Rp(h,p,a);s[f]=$e(o,i?Math.max(fr(h),fr(p)):t)}}return s}}var jD=".",Cn="___EC__COMPONENT__CONTAINER___",Y_="___EC__EXTENDED_CLASS___";function hr(e){var t={main:"",sub:""};if(e){var r=e.split(jD);t.main=r[0]||"",t.sub=r[1]||""}return t}function XD(e){ne(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function ZD(e){return!!(e&&e[Y_])}function xd(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 KD(n)?a=function(i){G(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(r.$constructor||n).apply(this,arguments)},Qx(a,this)),z(a.prototype,r),a[Y_]=!0,a.extend=this.extend,a.superCall=eA,a.superApply=tA,a.superClass=n,a}}function KD(e){return se(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function q_(e,t){e.extend=t.extend}var JD=Math.round(Math.random()*10);function QD(e){var t=["__\0is_clz",JD++].join("_");e.prototype[t]=!0,process.env.NODE_ENV!=="production"&&ne(!e.isInstance,'The method "is" can not be defined.'),e.isInstance=function(r){return!!(r&&r[t])}}function eA(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 tA(e,t,r){return this.superClass.prototype[t].apply(e,r)}function au(e){var t={};e.registerClass=function(n){var a=n.type||n.prototype.type;if(a){XD(a),n.prototype.type=a;var i=hr(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=hr(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=hr(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=hr(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 mo(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&&de(a,l)>=0||i&&de(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var rA=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],nA=mo(rA),aA=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return nA(this,t,r)},e}(),Qf=new Io(50);function iA(e){if(typeof e=="string"){var t=Qf.get(e);return t&&t.image}else return e}function j_(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,!iu(t)&&i.pending.push(o)):(t=ni.loadImage(e,Fp,Fp),t.__zrImageSrc=e,Qf.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function Fp(){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 iu(e){return e&&e.width&&e.height}var dc=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function oA(e,t,r,n,a){if(!t)return"";var i=(e+"").split(`
|
|
24
|
-
`);a=
|
|
25
|
-
`)}function
|
|
26
|
-
`):[];var d=
|
|
27
|
-
`),u=!0),n.accumWidth=
|
|
28
|
-
`);for(var
|
|
29
|
-
`){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var h=St(d,t),p=n?!1:!vA(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"},ou={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Un[eh]=!0;var Gp=["z","z2","invisible"],pA=["invisible"],gA=function(e){G(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=Te(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&&mA(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 Ce(0,0,0,0)),n?Ce.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 Ce(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:z(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Gi,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Gi)},t.prototype.styleUpdated=function(){this.__dirty&=~Gi},t.prototype.createStyle=function(r){return eu(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,Gp)},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=Te(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=Te(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?pA:Gp,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 z(r,n),r},t.prototype.getAnimationStyleProps=function(){return ou},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=bt|Gi}(),t}(L_),pc=new Ce(0,0,0,0),gc=new Ce(0,0,0,0);function mA(e,t,r){return pc.copy(e.getBoundingRect()),e.transform&&pc.applyTransform(e.transform),gc.width=t,gc.height=r,!pc.intersect(gc)}const na=gA;var Ot=Math.min,Rt=Math.max,mc=Math.sin,yc=Math.cos,Tn=Math.PI*2,es=ii(),ts=ii(),rs=ii();function Hp(e,t,r,n,a,i){a[0]=Ot(e,r),a[1]=Ot(t,n),i[0]=Rt(e,r),i[1]=Rt(t,n)}var Up=[],Wp=[];function yA(e,t,r,n,a,i,o,s,l,u){var c=x_,f=Fe,d=c(e,r,a,o,Up);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,Up[h]);l[0]=Ot(p,l[0]),u[0]=Rt(p,u[0])}d=c(t,n,i,s,Wp);for(var h=0;h<d;h++){var m=f(t,n,i,s,Wp[h]);l[1]=Ot(m,l[1]),u[1]=Rt(m,u[1])}l[0]=Ot(e,l[0]),u[0]=Rt(e,u[0]),l[0]=Ot(o,l[0]),u[0]=Rt(o,u[0]),l[1]=Ot(t,l[1]),u[1]=Rt(t,u[1]),l[1]=Ot(s,l[1]),u[1]=Rt(s,u[1])}function _A(e,t,r,n,a,i,o,s){var l=N_,u=Ke,c=Rt(Ot(l(e,r,a),1),0),f=Rt(Ot(l(t,n,i),1),0),d=u(e,r,a,c),h=u(t,n,i,f);o[0]=Ot(e,a,d),o[1]=Ot(t,i,h),s[0]=Rt(e,a,d),s[1]=Rt(t,i,h)}function wA(e,t,r,n,a,i,o,s,l){var u=Pa,c=Ia,f=Math.abs(a-i);if(f%Tn<1e-4&&f>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(es[0]=yc(a)*r+e,es[1]=mc(a)*n+t,ts[0]=yc(i)*r+e,ts[1]=mc(i)*n+t,u(s,es,ts),c(l,es,ts),a=a%Tn,a<0&&(a=a+Tn),i=i%Tn,i<0&&(i=i+Tn),a>i&&!o?i+=Tn:a<i&&o&&(a+=Tn),o){var d=i;i=a,a=d}for(var h=0;h<i;h+=Math.PI/2)h>a&&(rs[0]=yc(h)*r+e,rs[1]=mc(h)*n+t,u(s,rs,s),c(l,rs,l))}var be={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},xn=[],Nn=[],rr=[],Fr=[],nr=[],ar=[],_c=Math.min,wc=Math.max,Dn=Math.cos,An=Math.sin,wr=Math.abs,th=Math.PI,Xr=th*2,bc=typeof Float32Array<"u",Ti=[];function Sc(e){var t=Math.round(e/th*1e8)/1e8;return t%2*th}function J_(e,t){var r=Sc(e[0]);r<0&&(r+=Xr);var n=r-e[0],a=e[1];a+=n,!t&&a-r>=Xr?a=r+Xr:t&&r-a>=Xr?a=r-Xr:!t&&r>a?a=r+(Xr-Sc(r-a)):t&&r<a&&(a=r-(Xr-Sc(a-r))),e[0]=r,e[1]=a}var Kn=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=wr(n/nl/t)||0,this._uy=wr(n/nl/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(be.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=wr(t-this._xi),a=wr(r-this._yi),i=n>this._ux||a>this._uy;if(this.addData(be.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(be.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(be.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(),Ti[0]=a,Ti[1]=i,J_(Ti,o),a=Ti[0],i=Ti[1];var s=i-a;return this.addData(be.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(be.R,t,r,n,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(be.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)&&bc&&(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();bc&&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,bc&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){rr[0]=rr[1]=nr[0]=nr[1]=Number.MAX_VALUE,Fr[0]=Fr[1]=ar[0]=ar[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 be.M:r=a=t[o++],n=i=t[o++],nr[0]=a,nr[1]=i,ar[0]=a,ar[1]=i;break;case be.L:Hp(r,n,t[o],t[o+1],nr,ar),r=t[o++],n=t[o++];break;case be.C:yA(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],nr,ar),r=t[o++],n=t[o++];break;case be.Q:_A(r,n,t[o++],t[o++],t[o],t[o+1],nr,ar),r=t[o++],n=t[o++];break;case be.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),wA(u,c,f,d,h,p,m,nr,ar),r=Dn(p)*f+u,n=An(p)*d+c;break;case be.R:a=r=t[o++],i=n=t[o++];var g=t[o++],y=t[o++];Hp(a,i,a+g,i+y,nr,ar);break;case be.Z:r=a,n=i;break}Pa(rr,rr,nr),Ia(Fr,Fr,ar)}return o===0&&(rr[0]=rr[1]=Fr[0]=Fr[1]=0),new Ce(rr[0],rr[1],Fr[0]-rr[0],Fr[1]-rr[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 be.M:i=s=t[d++],o=l=t[d++];break;case be.L:{var g=t[d++],y=t[d++],_=g-i,w=y-o;(wr(_)>n||wr(w)>a||d===r-1)&&(m=Math.sqrt(_*_+w*w),i=g,o=y);break}case be.C:{var S=t[d++],T=t[d++],g=t[d++],y=t[d++],C=t[d++],N=t[d++];m=zN(i,o,S,T,g,y,C,N,10),i=C,o=N;break}case be.Q:{var S=t[d++],T=t[d++],g=t[d++],y=t[d++];m=UN(i,o,S,T,g,y,10),i=g,o=y;break}case be.A:var b=t[d++],x=t[d++],A=t[d++],D=t[d++],M=t[d++],P=t[d++],E=P+M;d+=1,p&&(s=Dn(M)*A+b,l=An(M)*D+x),m=wc(A,D)*_c(Xr,Math.abs(P)),i=Dn(E)*A+b,o=An(E)*D+x;break;case be.R:{s=i=t[d++],l=o=t[d++];var I=t[d++],L=t[d++];m=I*2+L*2;break}case be.Z:{var _=s-i,w=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,T;if(!(h&&(this._pathSegLen||this._calculateLength(),p=this._pathSegLen,m=this._pathLen,_=r*m,!_)))e:for(var C=0;C<o;){var N=n[C++],b=C===1;switch(b&&(u=n[C],c=n[C+1],s=u,l=c),N!==be.L&&w>0&&(t.lineTo(S,T),w=0),N){case be.M:s=u=n[C++],l=c=n[C++],t.moveTo(u,c);break;case be.L:{f=n[C++],d=n[C++];var x=wr(f-u),A=wr(d-c);if(x>a||A>i){if(h){var D=p[y++];if(g+D>_){var M=(_-g)/D;t.lineTo(u*(1-M)+f*M,c*(1-M)+d*M);break e}g+=D}t.lineTo(f,d),u=f,c=d,w=0}else{var P=x*x+A*A;P>w&&(S=f,T=d,w=P)}break}case be.C:{var E=n[C++],I=n[C++],L=n[C++],V=n[C++],B=n[C++],$=n[C++];if(h){var D=p[y++];if(g+D>_){var M=(_-g)/D;el(u,E,L,B,M,xn),el(c,I,V,$,M,Nn),t.bezierCurveTo(xn[1],Nn[1],xn[2],Nn[2],xn[3],Nn[3]);break e}g+=D}t.bezierCurveTo(E,I,L,V,B,$),u=B,c=$;break}case be.Q:{var E=n[C++],I=n[C++],L=n[C++],V=n[C++];if(h){var D=p[y++];if(g+D>_){var M=(_-g)/D;tl(u,E,L,M,xn),tl(c,I,V,M,Nn),t.quadraticCurveTo(xn[1],Nn[1],xn[2],Nn[2]);break e}g+=D}t.quadraticCurveTo(E,I,L,V),u=L,c=V;break}case be.A:var H=n[C++],O=n[C++],Y=n[C++],J=n[C++],K=n[C++],ge=n[C++],fe=n[C++],ve=!n[C++],ue=Y>J?Y:J,me=wr(Y-J)>.001,ce=K+ge,Z=!1;if(h){var D=p[y++];g+D>_&&(ce=K+ge*(_-g)/D,Z=!0),g+=D}if(me&&t.ellipse?t.ellipse(H,O,Y,J,fe,K,ce,ve):t.arc(H,O,ue,K,ce,ve),Z)break e;b&&(s=Dn(K)*Y+H,l=An(K)*J+O),u=Dn(ce)*Y+H,c=An(ce)*J+O;break;case be.R:s=u=n[C],l=c=n[C+1],f=n[C++],d=n[C++];var ee=n[C++],nt=n[C++];if(h){var D=p[y++];if(g+D>_){var Be=_-g;t.moveTo(f,d),t.lineTo(f+_c(Be,ee),d),Be-=ee,Be>0&&t.lineTo(f+ee,d+_c(Be,nt)),Be-=nt,Be>0&&t.lineTo(f+wc(ee-Be,0),d+nt),Be-=ee,Be>0&&t.lineTo(f,d+wc(nt-Be,0));break e}g+=D}t.rect(f,d,ee,nt);break;case be.Z:if(h){var D=p[y++];if(g+D>_){var M=(_-g)/D;t.lineTo(u*(1-M)+s*M,c*(1-M)+l*M);break e}g+=D}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=be,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 bA(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=FN(e,t,r,n,a,i,o,s,u,c,null);return d<=f/2}function SA(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=HN(e,t,r,n,a,i,s,l,null);return c<=u/2}var Yp=Math.PI*2;function ns(e){return e%=Yp,e<0&&(e+=Yp),e}var xi=Math.PI*2;function CA(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=ns(a),a=ns(f)}else n=ns(n),a=ns(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 zr=Kn.CMD,kn=Math.PI*2,TA=1e-4;function xA(e,t){return Math.abs(e-t)<TA}var it=[-1,-1,-1],Pt=[-1,-1];function NA(){var e=Pt[0];Pt[0]=Pt[1],Pt[1]=e}function DA(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=Qs(t,n,i,s,u,it);if(c===0)return 0;for(var f=0,d=-1,h=void 0,p=void 0,m=0;m<c;m++){var g=it[m],y=g===0||g===1?.5:1,_=Fe(e,r,a,o,g);_<l||(d<0&&(d=x_(t,n,i,s,Pt),Pt[1]<Pt[0]&&d>1&&NA(),h=Fe(t,n,i,s,Pt[0]),d>1&&(p=Fe(t,n,i,s,Pt[1]))),d===2?g<Pt[0]?f+=h<t?y:-y:g<Pt[1]?f+=p<h?y:-y:f+=s<p?y:-y:g<Pt[0]?f+=h<t?y:-y:f+=s<h?y:-y)}return f}function AA(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=GN(t,n,i,s,it);if(l===0)return 0;var u=N_(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=it[d]===0||it[d]===1?.5:1,p=Ke(e,r,a,it[d]);p<o||(it[d]<u?c+=f<t?h:-h:c+=i<f?h:-h)}return c}else{var h=it[0]===0||it[0]===1?.5:1,p=Ke(e,r,a,it[0]);return p<o?0:i<t?h:-h}}function MA(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);it[0]=-l,it[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>=it[0]+e&&o<=it[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=it[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===zr.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 zr.M:c=i[p++],f=i[p++],l=c,u=f;break;case zr.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 zr.C:if(r){if(bA(l,u,i[p++],i[p++],i[p++],i[p++],i[p],i[p+1],t,n,a))return!0}else s+=DA(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 zr.Q:if(r){if(SA(l,u,i[p++],i[p++],i[p],i[p+1],t,n,a))return!0}else s+=AA(l,u,i[p++],i[p++],i[p],i[p+1],n,a)||0;l=i[p++],u=i[p++];break;case zr.A:var y=i[p++],_=i[p++],w=i[p++],S=i[p++],T=i[p++],C=i[p++];p+=1;var N=!!(1-i[p++]);d=Math.cos(T)*w+y,h=Math.sin(T)*S+_,g?(c=d,f=h):s+=Mn(l,u,d,h,n,a);var b=(n-y)*S/w+y;if(r){if(CA(y,_,S,T,T+C,N,t,b,a))return!0}else s+=MA(y,_,S,T,T+C,N,b,a);l=Math.cos(T+C)*w+y,u=Math.sin(T+C)*S+_;break;case zr.R:c=l=i[p++],f=u=i[p++];var x=i[p++],A=i[p++];if(d=c+x,h=f+A,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 zr.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&&!xA(u,f)&&(s+=Mn(l,u,c,f,n,a)||0),s!==0}function kA(e,t,r){return Q_(e,0,!1,t,r)}function EA(e,t,r,n){return Q_(e,t,!0,r,n)}var e1=pe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Un),PA={style:pe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ou.style)},Cc=vr.concat(["invisible","culling","z","z2","zlevel","parent"]),IA=function(e){G(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<Cc.length;++s)a[Cc[s]]=this[Cc[s]];a.__dirty|=bt}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=Te(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?z(this.style,s):this.useStyle(s):o==="shape"?z(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(X(r)){var n=rl(r,0);return n>.5?Zf:n>.2?hD:Kf}else if(r)return Kf}return Zf},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(X(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=rl(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 Kn(!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)),EA(s,l/u,r,n)))return!0}if(this.hasFill())return kA(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:z(a,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Aa)},t.prototype.createStyle=function(r){return eu(e1,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=z({},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=z({},a.shape),z(u,n.shape)):(u=z({},i?this.shape:a.shape),z(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=z({},this.shape);for(var c={},f=Te(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 PA},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(i){G(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 he(r.style)},o.prototype.getDefaultShape=function(){return he(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=bt|Gi|Aa}(),t}(na);const we=IA;var LA=pe({strokeFirst:!0,font:Xn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},e1),t1=function(e){G(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 eu(LA,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=wd(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}(na);t1.prototype.type="tspan";const rh=t1;var OA=pe({x:0,y:0},Un),RA={style:pe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ou.style)};function BA(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var r1=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return eu(OA,r)},t.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var i=BA(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 RA},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Ce(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(na);r1.prototype.type="image";const pn=r1;function VA(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 n1(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 a1(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 $A=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),FA={},i1=function(e){G(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new $A},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=a1(FA,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?VA(r,n):r.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(we);i1.prototype.type="rect";const Ie=i1;var qp={fill:"#000"},jp=2,zA={style:pe({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},ou.style)},o1=function(e){G(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=qp,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,YA(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 Ce(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||qp},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 z(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=Te(n),i=0;i<a.length;i++){var o=a[i];r[o]=r[o]||{},z(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return zA},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||Xn,a=r.padding,i=tg(r),o=lA(i,r),s=Tc(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",_=r.verticalAlign||p.verticalAlign||"top",w=m,S=Ma(g,o.contentHeight,_);if(s||a){var T=Ui(m,c,y),C=Ma(g,u,_);s&&this._renderBackground(r,r,T,C,c,u)}S+=h/2,a&&(w=eg(m,y,a),_==="top"?S+=a[0]:_==="bottom"&&(S-=a[2]));for(var N=0,b=!1,x=Qp("fill"in r?r.fill:(b=!0,p.fill)),A=Jp("stroke"in r?r.stroke:!l&&(!p.autoStroke||b)?(N=jp,p.stroke):null),D=r.textShadowBlur>0,M=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),P=o.calculatedLineHeight,E=0;E<d.length;E++){var I=this._getOrCreateChild(rh),L=I.createStyle();I.useStyle(L),L.text=d[E],L.x=w,L.y=S,y&&(L.textAlign=y),L.textBaseline="middle",L.opacity=r.opacity,L.strokeFirst=!0,D&&(L.shadowBlur=r.textShadowBlur||0,L.shadowColor=r.textShadowColor||"transparent",L.shadowOffsetX=r.textShadowOffsetX||0,L.shadowOffsetY=r.textShadowOffsetY||0),L.stroke=A,L.fill=x,A&&(L.lineWidth=r.lineWidth||N,L.lineDash=r.lineDash,L.lineDashOffset=r.lineDashOffset||0),L.font=n,Zp(L,r),S+=h,M&&I.setBoundingRect(new Ce(Ui(L.x,r.width,L.textAlign),Ma(L.y,P,L.textBaseline),f,P))}},t.prototype._updateRichTexts=function(){var r=this.style,n=tg(r),a=fA(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=Ui(u,o,d),m=Ma(c,s,h),g=p,y=m;l&&(g+=l[3],y+=l[0]);var _=g+i;Tc(r)&&this._renderBackground(r,r,p,m,o,s);for(var w=!!r.backgroundColor,S=0;S<a.lines.length;S++){for(var T=a.lines[S],C=T.tokens,N=C.length,b=T.lineHeight,x=T.width,A=0,D=g,M=_,P=N-1,E=void 0;A<N&&(E=C[A],!E.align||E.align==="left");)this._placeToken(E,r,b,y,D,"left",w),x-=E.width,D+=E.width,A++;for(;P>=0&&(E=C[P],E.align==="right");)this._placeToken(E,r,b,y,M,"right",w),x-=E.width,M-=E.width,P--;for(D+=(i-(D-g)-(_-M)-x)/2;A<=P;)E=C[A],this._placeToken(E,r,b,y,D+E.width/2,"center",w),D+=E.width,A++;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&&Tc(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=eg(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,_=!1,w=0,S=Qp("fill"in u?u.fill:"fill"in n?n.fill:(_=!0,y.fill)),T=Jp("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!y.autoStroke||_)?(w=jp,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||Xn,g.opacity=on(u.opacity,n.opacity,1),Zp(g,u),T&&(g.lineWidth=on(u.lineWidth,n.lineWidth,w),g.lineDash=ie(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=T),S&&(g.fill=S);var N=r.contentWidth,b=r.contentHeight;m.setBoundingRect(new Ce(Ui(g.x,N,g.textAlign),Ma(g.y,b,g.textBaseline),N,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(Ie),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 _=m.style;_.fill=l||null,_.fillOpacity=ie(r.fillOpacity,1)}else if(f){g=this._getOrCreateChild(pn),g.onload=function(){p.dirtyStyle()};var w=g.style;w.image=l.image,w.x=a,w.y=i,w.width=o,w.height=s}if(u&&c){var _=m.style;_.lineWidth=u,_.stroke=c,_.strokeOpacity=ie(r.strokeOpacity,1),_.lineDash=r.borderDash,_.lineDashOffset=r.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(_.strokeFirst=!0,_.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=on(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return WA(r)&&(n=[r.fontStyle,r.fontWeight,UA(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&cr(n)||r.textFont||r.font},t}(na),GA={left:!0,right:1,center:1},HA={top:1,bottom:1,middle:1},Xp=["fontStyle","fontWeight","fontSize","fontFamily"];function UA(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?ud+"px":e+"px"}function Zp(e,t){for(var r=0;r<Xp.length;r++){var n=Xp[r],a=t[n];a!=null&&(e[n]=a)}}function WA(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function YA(e){return Kp(e),k(e.rich,Kp),e}function Kp(e){if(e){e.font=o1.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||GA[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||HA[r]?r:"top";var n=e.padding;n&&(e.padding=h_(e.padding))}}function Jp(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function Qp(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function eg(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function tg(e){var t=e.text;return t!=null&&(t+=""),t}function Tc(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const Ue=o1;var ye=ke(),qA=function(e,t,r,n){if(n){var a=ye(n);a.dataIndex=r,a.dataType=t,a.seriesIndex=e,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=ye(i);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},rg=1,ng={},s1=ke(),Nd=ke(),Dd=0,su=1,lu=2,gt=["emphasis","blur","select"],ul=["normal","emphasis","blur","select"],jA=10,XA=9,Wn="highlight",zs="downplay",no="select",Gs="unselect",ao="toggleSelect";function ga(e){return e!=null&&e!=="none"}function uu(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function l1(e){uu(e,"emphasis",lu)}function u1(e){e.hoverState===lu&&uu(e,"normal",Dd)}function Ad(e){uu(e,"blur",su)}function c1(e){e.hoverState===su&&uu(e,"normal",Dd)}function ZA(e){e.selected=!0}function KA(e){e.selected=!1}function ag(e,t,r){t(e,r)}function Br(e,t,r){ag(e,t,r),e.isGroup&&e.traverse(function(n){ag(n,t,r)})}function ig(e,t){switch(t){case"emphasis":e.hoverState=lu;break;case"normal":e.hoverState=Dd;break;case"blur":e.hoverState=su;break;case"select":e.selected=!0}}function JA(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 QA(e,t,r,n){var a=r&&de(r,"select")>=0,i=!1;if(e instanceof we){var o=s1(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=z({},n),u=z({},u),u.fill=s):!ga(u.fill)&&ga(s)?(i=!0,n=z({},n),u=z({},u),u.fill=bp(s)):!ga(u.stroke)&&ga(l)&&(i||(n=z({},n),u=z({},u)),u.stroke=bp(l)),n.style=u}}if(n&&n.z2==null){i||(n=z({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??jA)}return n}function eM(e,t,r){if(r&&r.z2==null){r=z({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??XA)}return r}function tM(e,t,r){var n=de(e.currentStates,t)>=0,a=e.style.opacity,i=n?null:JA(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=z({},r),o=z({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 QA(this,e,t,r);if(e==="blur")return tM(this,e,r);if(e==="select")return eM(this,e,r)}return r}function f1(e){e.stateProxy=xc;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=xc),r&&(r.stateProxy=xc)}function og(e,t){!p1(e,t)&&!e.__highByOuter&&Br(e,l1)}function sg(e,t){!p1(e,t)&&!e.__highByOuter&&Br(e,u1)}function yo(e,t){e.__highByOuter|=1<<(t||0),Br(e,l1)}function _o(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Br(e,u1)}function h1(e){Br(e,Ad)}function Md(e){Br(e,c1)}function d1(e){Br(e,ZA)}function v1(e){Br(e,KA)}function p1(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function g1(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(a,i){var o=Nd(i),s=a==="series",l=s?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){c1(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&&Md(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"||Ad(g)}),ut(t))i(u.getData(),t);else if(Q(t))for(var p=Te(t),m=0;m<p.length;m++)i(u.getData(p[m]),t[p[m]]);l.push(u),Nd(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){Nd(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){Ad(i)})}}}function rM(e,t,r){var n=e.seriesIndex,a=e.getData(t.dataType);if(!a){process.env.NODE_ENV!=="production"&&tt("Unknown dataType "+t.dataType);return}var i=Zn(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=ye(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 kd(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])&&tt("param should be highDownDispatcher"),ye(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function nM(e,t,r){process.env.NODE_ENV!=="production"&&!Ka(e)&&tt("param should be highDownDispatcher");var n=ye(e),a=kd(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 og(s,t)})):(nh(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&ah(n.componentMainType,n.componentIndex,r),og(e,t))}function aM(e,t,r){process.env.NODE_ENV!=="production"&&!Ka(e)&&tt("param should be highDownDispatcher"),g1(r);var n=ye(e),a=kd(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?k(a,function(i){return sg(i,t)}):sg(e,t)}function iM(e,t,r){if(ih(t)){var n=t.dataType,a=e.getData(n),i=Zn(a,t);U(i)||(i=[i]),e[t.type===ao?"toggleSelect":t.type===no?"select":"unselect"](i,n)}}function lg(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)?d1(i):v1(i)})})}function oM(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 cl(e,t,r){m1(e,!0),Br(e,f1),lM(e,t,r)}function sM(e){m1(e,!1)}function Jn(e,t,r,n){n?sM(e):cl(e,t,r)}function lM(e,t,r){var n=ye(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var ug=["emphasis","blur","select"],uM={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function fl(e,t,r,n){r=r||"itemStyle";for(var a=0;a<ug.length;a++){var i=ug[a],o=t.getModel([i,r]),s=e.ensureState(i);s.style=n?n(o):o[uM[r]]()}}function m1(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 cM(e){var t=ng[e];return t==null&&rg<=32&&(t=ng[e]=rg++),t}function ih(e){var t=e.type;return t===no||t===Gs||t===ao}function cg(e){var t=e.type;return t===Wn||t===zs}function fM(e){var t=s1(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=Kn.CMD,hM=[[],[],[]],fg=Math.sqrt,dM=Math.atan2;function vM(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],_=fg(t[0]*t[0]+t[1]*t[1]),w=fg(t[2]*t[2]+t[3]*t[3]),S=dM(-t[1]/w,t[0]/_);r[o]*=_,r[o++]+=g,r[o]*=w,r[o++]+=y,r[o++]*=_,r[o++]*=w,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 T=hM[l];T[0]=r[o++],T[1]=r[o++],Vt(T,T,t),r[s++]=T[0],r[s++]=T[1]}}e.increaseVersion()}}var Nc=Math.sqrt,as=Math.sin,is=Math.cos,Ni=Math.PI;function hg(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])/(hg(e)*hg(t))}function dg(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(oh(e,t))}function vg(e,t,r,n,a,i,o,s,l,u,c){var f=l*(Ni/180),d=is(f)*(e-r)/2+as(f)*(t-n)/2,h=-1*as(f)*(e-r)/2+is(f)*(t-n)/2,p=d*d/(o*o)+h*h/(s*s);p>1&&(o*=Nc(p),s*=Nc(p));var m=(a===i?-1:1)*Nc((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,_=(e+r)/2+is(f)*g-as(f)*y,w=(t+n)/2+as(f)*g+is(f)*y,S=dg([1,0],[(d-g)/o,(h-y)/s]),T=[(d-g)/o,(h-y)/s],C=[(-1*d-g)/o,(-1*h-y)/s],N=dg(T,C);if(oh(T,C)<=-1&&(N=Ni),oh(T,C)>=1&&(N=0),N<0){var b=Math.round(N/Ni*1e6)/1e6;N=Ni*2+b%2*Ni}c.addData(u,_,w,o,s,S,N,f,i)}var pM=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,gM=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function mM(e){var t=new Kn;if(!e)return t;var r=0,n=0,a=r,i=n,o,s=Kn.CMD,l=e.match(pM);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(gM)||[],p=h.length,m=0;m<p;m++)h[m]=parseFloat(h[m]);for(var g=0;g<p;){var y=void 0,_=void 0,w=void 0,S=void 0,T=void 0,C=void 0,N=void 0,b=r,x=n,A=void 0,D=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,_=n,A=t.len(),D=t.data,o===s.C&&(y+=r-D[A-4],_+=n-D[A-3]),d=s.C,b=h[g++],x=h[g++],r=h[g++],n=h[g++],t.addData(d,y,_,b,x,r,n);break;case"s":y=r,_=n,A=t.len(),D=t.data,o===s.C&&(y+=r-D[A-4],_+=n-D[A-3]),d=s.C,b=r+h[g++],x=n+h[g++],r+=h[g++],n+=h[g++],t.addData(d,y,_,b,x,r,n);break;case"Q":b=h[g++],x=h[g++],r=h[g++],n=h[g++],d=s.Q,t.addData(d,b,x,r,n);break;case"q":b=h[g++]+r,x=h[g++]+n,r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,b,x,r,n);break;case"T":y=r,_=n,A=t.len(),D=t.data,o===s.Q&&(y+=r-D[A-4],_+=n-D[A-3]),r=h[g++],n=h[g++],d=s.Q,t.addData(d,y,_,r,n);break;case"t":y=r,_=n,A=t.len(),D=t.data,o===s.Q&&(y+=r-D[A-4],_+=n-D[A-3]),r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,y,_,r,n);break;case"A":w=h[g++],S=h[g++],T=h[g++],C=h[g++],N=h[g++],b=r,x=n,r=h[g++],n=h[g++],d=s.A,vg(b,x,r,n,C,N,w,S,T,d,t);break;case"a":w=h[g++],S=h[g++],T=h[g++],C=h[g++],N=h[g++],b=r,x=n,r+=h[g++],n+=h[g++],d=s.A,vg(b,x,r,n,C,N,w,S,T,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),r=a,n=i),o=d}return t.toStatic(),t}var y1=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(we);function _1(e){return e.setData!=null}function w1(e,t){var r=mM(e),n=z({},t);return n.buildPath=function(a){if(_1(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){vM(r,a),this.dirtyShape()},n}function yM(e,t){return new y1(w1(e,t))}function _M(e,t){var r=w1(e,t),n=function(a){G(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return i}(y1);return n}function wM(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 we(t);return o.createPathProxy(),o.buildPath=function(s){if(_1(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var bM=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),b1=function(e){G(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new bM},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}(we);b1.prototype.type="circle";const Ed=b1;var SM=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),S1=function(e){G(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){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}(we);S1.prototype.type="ellipse";const C1=S1;var T1=Math.PI,Dc=T1*2,En=Math.sin,ya=Math.cos,CM=Math.acos,Xe=Math.atan2,pg=Math.abs,io=Math.sqrt,qi=Math.max,ir=Math.min,Ht=1e-4;function TM(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 os(e,t,r,n,a,i,o){var s=e-r,l=t-n,u=(o?i:-i)/io(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,_=p-d,w=m-h,S=_*_+w*w,T=a-i,C=d*m-p*h,N=(w<0?-1:1)*io(qi(0,T*T*S-C*C)),b=(C*w-_*N)/S,x=(-C*_-w*N)/S,A=(C*w+_*N)/S,D=(-C*_+w*N)/S,M=b-g,P=x-y,E=A-g,I=D-y;return M*M+P*P>E*E+I*I&&(b=A,x=D),{cx:b,cy:x,x0:-c,y0:-f,x1:b*(a/T-1),y1:x*(a/T-1)}}function xM(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 NM(e,t){var r,n=qi(t.r,0),a=qi(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=pg(u-l),p=h>Dc&&h%Dc;if(p>Ht&&(h=p),!(n>Ht))e.moveTo(c,f);else if(h>Dc-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,_=void 0,w=void 0,S=void 0,T=void 0,C=void 0,N=void 0,b=void 0,x=void 0,A=void 0,D=void 0,M=void 0,P=void 0,E=void 0,I=n*ya(l),L=n*En(l),V=a*ya(u),B=a*En(u),$=h>Ht;if($){var H=t.cornerRadius;H&&(r=xM(H),m=r[0],g=r[1],y=r[2],_=r[3]);var O=pg(n-a)/2;if(w=ir(O,y),S=ir(O,_),T=ir(O,m),C=ir(O,g),x=N=qi(w,S),A=b=qi(T,C),(N>Ht||b>Ht)&&(D=n*ya(u),M=n*En(u),P=a*ya(l),E=a*En(l),h<T1)){var Y=TM(I,L,P,E,D,M,V,B);if(Y){var J=I-Y[0],K=L-Y[1],ge=D-Y[0],fe=M-Y[1],ve=1/En(CM((J*ge+K*fe)/(io(J*J+K*K)*io(ge*ge+fe*fe)))/2),ue=io(Y[0]*Y[0]+Y[1]*Y[1]);x=ir(N,(n-ue)/(ve+1)),A=ir(b,(a-ue)/(ve-1))}}}if(!$)e.moveTo(c+I,f+L);else if(x>Ht){var me=ir(y,x),ce=ir(_,x),Z=os(P,E,I,L,n,me,d),ee=os(D,M,V,B,n,ce,d);e.moveTo(c+Z.cx+Z.x0,f+Z.cy+Z.y0),x<N&&me===ce?e.arc(c+Z.cx,f+Z.cy,x,Xe(Z.y0,Z.x0),Xe(ee.y0,ee.x0),!d):(me>0&&e.arc(c+Z.cx,f+Z.cy,me,Xe(Z.y0,Z.x0),Xe(Z.y1,Z.x1),!d),e.arc(c,f,n,Xe(Z.cy+Z.y1,Z.cx+Z.x1),Xe(ee.cy+ee.y1,ee.cx+ee.x1),!d),ce>0&&e.arc(c+ee.cx,f+ee.cy,ce,Xe(ee.y1,ee.x1),Xe(ee.y0,ee.x0),!d))}else e.moveTo(c+I,f+L),e.arc(c,f,n,l,u,!d);if(!(a>Ht)||!$)e.lineTo(c+V,f+B);else if(A>Ht){var me=ir(m,A),ce=ir(g,A),Z=os(V,B,D,M,a,-ce,d),ee=os(I,L,P,E,a,-me,d);e.lineTo(c+Z.cx+Z.x0,f+Z.cy+Z.y0),A<b&&me===ce?e.arc(c+Z.cx,f+Z.cy,A,Xe(Z.y0,Z.x0),Xe(ee.y0,ee.x0),!d):(ce>0&&e.arc(c+Z.cx,f+Z.cy,ce,Xe(Z.y0,Z.x0),Xe(Z.y1,Z.x1),!d),e.arc(c,f,a,Xe(Z.cy+Z.y1,Z.cx+Z.x1),Xe(ee.cy+ee.y1,ee.cx+ee.x1),d),me>0&&e.arc(c+ee.cx,f+ee.cy,me,Xe(ee.y1,ee.x1),Xe(ee.y0,ee.x0),!d))}else e.lineTo(c+V,f+B),e.arc(c,f,a,u,l,d)}e.closePath()}}}var DM=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}(),x1=function(e){G(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){NM(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(we);x1.prototype.type="sector";const aa=x1;var AM=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),N1=function(e){G(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new AM},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}(we);N1.prototype.type="ring";const D1=N1;function MM(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(lN(e[d]));continue}else l=e[d-1],u=e[d+1];g_(i,u,l),Uu(i,i,t);var m=Of(p,l),g=Of(p,u),y=m+g;y!==0&&(m/=y,g/=y),Uu(o,i,-m),Uu(s,i,g);var _=np([],p,o),w=np([],p,s);n&&(Ia(_,_,c),Pa(_,_,f),Ia(w,w,c),Pa(w,w,f)),a.push(_),a.push(w)}return r&&a.push(a.shift()),a}function A1(e,t,r){var n=t.smooth,a=t.points;if(a&&a.length>=2){if(n){var i=MM(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 kM=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),M1=function(e){G(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new kM},t.prototype.buildPath=function(r,n){A1(r,n,!0)},t}(we);M1.prototype.type="polygon";const Pd=M1;var EM=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),oi=function(e){G(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 EM},t.prototype.buildPath=function(r,n){A1(r,n,!1)},t}(we);oi.prototype.type="polyline";var PM={},IM=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),k1=function(e){G(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 IM},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=n1(PM,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}(we);k1.prototype.type="line";const hn=k1;var ft=[],LM=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 gg(e,t,r){var n=e.cpx2,a=e.cpy2;return n!=null||a!=null?[(r?pp:Fe)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?pp:Fe)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?gp:Ke)(e.x1,e.cpx1,e.x2,t),(r?gp:Ke)(e.y1,e.cpy1,e.y2,t)]}var E1=function(e){G(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 LM},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&&(tl(a,l,o,d,ft),l=ft[1],o=ft[2],tl(i,u,s,d,ft),u=ft[1],s=ft[2]),r.quadraticCurveTo(l,u,o,s)):(d<1&&(el(a,l,c,o,d,ft),l=ft[1],c=ft[2],o=ft[3],el(i,u,f,s,d,ft),u=ft[1],f=ft[2],s=ft[3]),r.bezierCurveTo(l,u,c,f,o,s)))},t.prototype.pointAt=function(r){return gg(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=gg(this.shape,r,!0);return dd(n,n)},t}(we);E1.prototype.type="bezier-curve";const Id=E1;var OM=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}(),P1=function(e){G(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 OM},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}(we);P1.prototype.type="arc";const Ld=P1;var RM=function(e){G(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),we.prototype.getBoundingRect.call(this)},t}(we);const BM=RM;var VM=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}();const I1=VM;var L1=function(e){G(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}(I1),$M=function(e){G(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}(I1);const FM=$M;var Pn=[0,0],In=[0,0],ss=new le,ls=new le,zM=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new le;for(var n=0;n<2;n++)this._axes[n]=new le;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);le.sub(a[0],n[1],n[0]),le.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 ss.set(1/0,1/0),ls.set(0,0),!this._intersectCheckOneSide(this,t,ss,ls,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,ss,ls,a,-1)&&(n=!1,a)||a||le.copy(r,n?ss:ls),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?le.scale(a,u,-c*o):le.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?le.scale(n,u,c*o):le.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 hl=zM;var GM=[],HM=function(e){G(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 Ce(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(GM)),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}(na);const UM=HM;var WM=ke();function Od(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=ie(n.duration,200),c=ie(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)),se(f)&&(f=f(r,a)),se(u)&&(u=u(r));var d={duration:u||0,delay:f,easing:c};return d}else return null}function Rd(e,t,r,n,a,i,o){var s=!1,l;se(a)?(o=i,i=a,a=null):Q(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=Od(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 rt(e,t,r,n,a,i){Rd("update",e,t,r,n,a,i)}function Ct(e,t,r,n,a,i){Rd("enter",e,t,r,n,a,i)}function oo(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 dl(e,t,r,n,a,i){oo(e)||Rd("leave",e,t,r,n,a,i)}function mg(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),dl(e,{style:{opacity:0}},t,r,n)}function vl(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(a){a.isGroup||mg(a,t,r,n)}):mg(e,t,r,n)}function Bd(e){WM(e).oldStyle=e.style}var pl=Math.max,gl=Math.min,sh={};function YM(e){return we.extend(e)}var qM=_M;function jM(e,t){return qM(e,t)}function Qt(e,t){sh[e]=t}function O1(e){if(sh.hasOwnProperty(e))return sh[e]}function cu(e,t,r,n){var a=yM(e,t);return r&&(n==="center"&&(r=B1(r,a.getBoundingRect())),V1(a,r)),a}function R1(e,t,r){var n=new pn({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(B1(t,i))}}});return n}function B1(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 XM=wM;function V1(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function wo(e,t){return n1(e,e,{lineWidth:t}),e}function ZM(e){return a1(e.shape,e.shape,e.style),e}var KM=zn;function $1(e,t){for(var r=pd([]);e&&e!==t;)Va(r,e.getLocalTransform(),r),e=e.parent;return r}function bo(e,t,r){return t&&!ut(t)&&(t=_d.getLocalTransform(t)),r&&(t=md([],t)),Vt([],e,t)}function F1(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=bo(i,t,r),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function yg(e){return!e.isGroup}function JM(e){return e.shape!=null}function z1(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){yg(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return JM(o)&&(s.shape=z({},o.shape)),s}var i=n(e);t.traverse(function(o){if(yg(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),rt(o,l,r,ye(o).dataIndex)}}})}function QM(e,t){return q(e,function(r){var n=r[0];n=pl(n,t.x),n=gl(n,t.x+t.width);var a=r[1];return a=pl(a,t.y),a=gl(a,t.y+t.height),[n,a]})}function ek(e,t){var r=pl(e.x,t.x),n=gl(e.x+e.width,t.x+t.width),a=pl(e.y,t.y),i=gl(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 Vd(e,t,r){var n=z({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),pe(a,r),new pn(n)):cu(e.replace("path://",""),n,r,"center")}function tk(e,t,r,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(G1(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function G1(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,c=o-a,f=s-i,d=Ac(c,f,l,u);if(rk(d))return!1;var h=e-a,p=t-i,m=Ac(h,p,l,u)/d;if(m<0||m>1)return!1;var g=Ac(h,p,c,f)/d;return!(g<0||g>1)}function Ac(e,t,r,n){return e*n-r*t}function rk(e){return e<=1e-6&&e>=-1e-6}function $d(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,a=X(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(Te(l),function(c){W(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=ye(e.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:pe({content:n,formatterParams:s},a)}}function _g(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function si(e,t){if(e)if(U(e))for(var r=0;r<e.length;r++)_g(e[r],t);else _g(e,t)}Qt("circle",Ed);Qt("ellipse",C1);Qt("sector",aa);Qt("ring",D1);Qt("polygon",Pd);Qt("polyline",oi);Qt("rect",Ie);Qt("line",hn);Qt("bezierCurve",Id);Qt("arc",Ld);const nk=Object.freeze(Object.defineProperty({__proto__:null,Arc:Ld,BezierCurve:Id,BoundingRect:Ce,Circle:Ed,CompoundPath:BM,Ellipse:C1,Group:Re,Image:pn,IncrementalDisplayable:UM,Line:hn,LinearGradient:L1,OrientedBoundingRect:hl,Path:we,Point:le,Polygon:Pd,Polyline:oi,RadialGradient:FM,Rect:Ie,Ring:D1,Sector:aa,Text:Ue,applyTransform:bo,clipPointsByRect:QM,clipRectByRect:ek,createIcon:Vd,extendPath:jM,extendShape:YM,getShapeClass:O1,getTransform:$1,groupTransition:z1,initProps:Ct,isElementRemoved:oo,lineLineIntersect:G1,linePolygonIntersect:tk,makeImage:R1,makePath:cu,mergePath:XM,registerShape:Qt,removeElement:dl,removeElementWithFadeOut:vl,resizePath:V1,setTooltipConfig:$d,subPixelOptimize:KM,subPixelOptimizeLine:wo,subPixelOptimizeRect:ZM,transformDirection:F1,traverseElements:si,updateProps:rt},Symbol.toStringTag,{value:"Module"}));var fu={};function ak(e,t){for(var r=0;r<gt.length;r++){var n=gt[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 wg(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=se(e.defaultText)?e.defaultText(a,e,r):e.defaultText);for(var l={normal:s},u=0;u<gt.length;u++){var c=gt[u],f=t[c];l[c]=ie(n?n.getFormattedLabel(a,c,null,i,f&&f.get("formatter")):null,s)}return l}function li(e,t,r,n){r=r||fu;for(var a=e instanceof Ue,i=!1,o=0;o<ul.length;o++){var s=t[ul[o]];if(s&&s.getShallow("show")){i=!0;break}}var l=a?e:e.getTextContent();if(i){a||(l||(l=new Ue,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=wg(r,t),c=t.normal,f=!!c.getShallow("show"),d=jt(c,n&&n.normal,r,!1,!a);d.text=u.normal,a||e.setTextConfig(ml(c,r,!1));for(var o=0;o<gt.length;o++){var h=gt[o],s=t[h];if(s){var p=l.ensureState(h),m=!!ie(s.getShallow("show"),f);if(m!==f&&(p.ignore=!m),p.style=jt(s,n&&n[h],r,!0,!a),p.style.text=u[h],!a){var g=e.ensureState(h);g.textConfig=ml(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&&(hu(l).setLabelText=function(y){var _=wg(r,t,y);ak(l,_)})}else l&&(l.ignore=!0);e.dirty()}function ia(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<gt.length;n++){var a=gt[n];r[a]=e.getModel([a,t])}return r}function jt(e,t,r,n,a){var i={};return ik(i,e,r,n,a),t&&z(i,t),i}function ml(e,t,r){t=t||{};var n={},a,i=e.getShallow("rotate"),o=ie(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 ik(e,t,r,n,a){r=r||fu;var i=t.ecModel,o=i&&i.option.textStyle,s=ok(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);Tg(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),Tg(e,t,o,r,n,a,!0,!1)}function ok(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||fu).rich;if(r){t=t||{};for(var n=Te(r),a=0;a<n.length;a++){var i=n[a];t[i]=1}}e=e.parentModel}return t}var bg=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Sg=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Cg=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Tg(e,t,r,n,a,i,o,s){r=!a&&r||fu;var l=n&&n.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=ie(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(process.env.NODE_ENV!=="production"&&u==="auto"&&Ge("color: 'auto'","color: 'inherit'"),l?u=l:u=null),(c==="inherit"||c==="auto")&&(process.env.NODE_ENV!=="production"&&c==="auto"&&Ge("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=ie(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var h=ie(t.getShallow("textBorderType"),r.textBorderType);h!=null&&(e.lineDash=h);var p=ie(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<bg.length;m++){var g=bg[m],y=ie(t.getShallow(g),r[g]);y!=null&&(e[g]=y)}for(var m=0;m<Sg.length;m++){var g=Sg[m],y=t.getShallow(g);y!=null&&(e[g]=y)}if(e.verticalAlign==null){var _=t.getShallow("baseline");_!=null&&(e.verticalAlign=_)}if(!o||!n.disableBox){for(var m=0;m<Cg.length;m++){var g=Cg[m],y=t.getShallow(g);y!=null&&(e[g]=y)}var w=t.getShallow("borderType");w!=null&&(e.borderDash=w),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&e.backgroundColor==="auto"&&Ge("backgroundColor: 'auto'","backgroundColor: 'inherit'"),e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&e.borderColor==="auto"&&Ge("borderColor: 'auto'","borderColor: 'inherit'"),e.borderColor=l)}}function H1(e,t){var r=t&&t.getModel("textStyle");return cr([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 hu=ke();function sk(e,t,r,n){if(e){var a=hu(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 lk=["textStyle","color"],Mc=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],kc=new Ue,uk=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(lk):null)},e.prototype.getFont=function(){return H1({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<Mc.length;n++)r[Mc[n]]=this.getShallow(Mc[n]);return kc.useStyle(r),kc.update(),kc.getBoundingRect()},e}();const ck=uk;var U1=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],fk=mo(U1),hk=function(){function e(){}return e.prototype.getLineStyle=function(t){return fk(this,t)},e}(),W1=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],dk=mo(W1),vk=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return dk(this,t,r)},e}(),oa=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){_e(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(he(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(!ae.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}();xd(oa);QD(oa);Kt(oa,hk);Kt(oa,vk);Kt(oa,aA);Kt(oa,ck);const et=oa;var pk=Math.round(Math.random()*10);function du(e){return[e||"",pk++].join("_")}function gk(e){var t={};e.registerSubTypeDefaulter=function(r,n){var a=hr(r);t[a.main]=n},e.determineSubType=function(r,n){var a=n.type;if(!a){var i=hr(r).main;e.hasSubTypes(r)&&t[i]&&(a=t[i](n))}return a}}function mk(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(_){d[_]=!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 _="";throw process.env.NODE_ENV!=="production"&&(_=sl("Circular dependency may exists: ",d,i,o)),new Error(_)});function g(_){c[_].entryCount--,c[_].entryCount===0&&f.push(_)}function y(_){d[_]=!0,g(_)}};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){de(u.predecessor,d)<0&&u.predecessor.push(d);var h=n(o,d);de(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){de(o,l)>=0&&s.push(l)}),s}}function vu(e,t){return _e(_e({},e,!0),t,!0)}const yk={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:". "}}}},_k={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 yl="ZH",Fd="EN",Fa=Fd,Hs={},zd={},Y1=ae.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Fa).toUpperCase();return e.indexOf(yl)>-1?yl:Fa}():Fa;function q1(e,t){e=e.toUpperCase(),zd[e]=new et(t),Hs[e]=t}function wk(e){if(X(e)){var t=Hs[e.toUpperCase()]||{};return e===yl||e===Fd?he(t):_e(he(t),he(Hs[Fa]),!1)}else return _e(he(e),he(Hs[Fa]),!1)}function bk(e){return zd[e]}function Sk(){return zd[Fa]}q1(Fd,yk);q1(yl,_k);var Gd=1e3,Hd=Gd*60,so=Hd*60,Bt=so*24,xg=Bt*365,ji={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}"},us="{yyyy}-{MM}-{dd}",Ng={year:"{yyyy}",month:"{yyyy}-{MM}",day:us,hour:us+" "+ji.hour,minute:us+" "+ji.minute,second:us+" "+ji.second,millisecond:ji.none},Ec=["year","month","day","hour","minute","second","millisecond"],j1=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Gr(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 Ck(e){return e===za(e)}function Tk(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function pu(e,t,r,n){var a=Lr(e),i=a[Ud(r)](),o=a[Ga(r)]()+1,s=Math.floor((o-1)/3)+1,l=a[gu(r)](),u=a["get"+(r?"UTC":"")+"Day"](),c=a[So(r)](),f=(c-1)%12+1,d=a[mu(r)](),h=a[yu(r)](),p=a[_u(r)](),m=n instanceof et?n:bk(n||Y1)||Sk(),g=m.getModel("time"),y=g.get("month"),_=g.get("monthAbbr"),w=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Gr(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,_[o-1]).replace(/{MM}/g,Gr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Gr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Gr(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Gr(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Gr(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Gr(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Gr(p,3)).replace(/{S}/g,p+"")}function xk(e,t,r,n,a){var i=null;if(X(r))i=r;else if(se(r))i=r(e.value,t,{level:e.level});else{var o=z({},ji);if(e.level>0)for(var s=0;s<Ec.length;++s)o[Ec[s]]="{primary|"+o[Ec[s]]+"}";var l=r?r.inherit===!1?r:pe(r,o):o,u=X1(e.value,a);if(l[u])i=l[u];else if(l.inherit){for(var c=j1.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 pu(new Date(e.value),i,a,n)}function X1(e,t){var r=Lr(e),n=r[Ga(t)]()+1,a=r[gu(t)](),i=r[So(t)](),o=r[mu(t)](),s=r[yu(t)](),l=r[_u(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 Dg(e,t,r){var n=Me(e)?Lr(e):e;switch(t=t||X1(e,r),t){case"year":return n[Ud(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[gu(r)]();case"half-day":return n[So(r)]()/24;case"hour":return n[So(r)]();case"minute":return n[mu(r)]();case"second":return n[yu(r)]();case"millisecond":return n[_u(r)]()}}function Ud(e){return e?"getUTCFullYear":"getFullYear"}function Ga(e){return e?"getUTCMonth":"getMonth"}function gu(e){return e?"getUTCDate":"getDate"}function So(e){return e?"getUTCHours":"getHours"}function mu(e){return e?"getUTCMinutes":"getMinutes"}function yu(e){return e?"getUTCSeconds":"getSeconds"}function _u(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Nk(e){return e?"setUTCFullYear":"setFullYear"}function Z1(e){return e?"setUTCMonth":"setMonth"}function K1(e){return e?"setUTCDate":"setDate"}function J1(e){return e?"setUTCHours":"setHours"}function Q1(e){return e?"setUTCMinutes":"setMinutes"}function ew(e){return e?"setUTCSeconds":"setSeconds"}function tw(e){return e?"setUTCMilliseconds":"setMilliseconds"}function rw(e){if(!F_(e))return X(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function nw(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 wu=h_;function lh(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&cr(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?Lr(e):e;if(isNaN(+l)){if(s)return"-"}else return pu(l,n,r)}if(t==="ordinal")return Ks(e)?a(e):Me(e)&&i(e)?e+"":"-";var u=ol(e);return i(u)?rw(u):Ks(e)?a(e):typeof e=="boolean"?e+"":"-"}var Ag=["a","b","c","d","e","f","g"],Pc=function(e,t){return"{"+e+(t??"")+"}"};function aw(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=Ag[i];e=e.replace(Pc(o),Pc(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(Pc(Ag[l],s),r?It(u):u)}return e}function Dk(e,t){var r=X(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:'+It(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+It(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 Qn(e,t){return t=t||"transparent",X(e)?e:Q(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Mg(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Us=k,Ak=["left","right","top","bottom","width","height"],cs=[["width","left","right"],["height","top","bottom"]];function Wd(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 lo=Wd;Ne(Wd,"vertical");Ne(Wd,"horizontal");function ea(e,t,r){r=wu(r||0);var n=t.width,a=t.height,i=Ae(e.left,n),o=Ae(e.top,a),s=Ae(e.right,n),l=Ae(e.bottom,a),u=Ae(e.width,n),c=Ae(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 Ce(i+r[3],o+r[0],u,c);return p.margin=r,p}function Co(e){var t=e.layoutMode||e.constructor.layoutMode;return Q(t)?t:t?{type:t}:null}function Ja(e,t,r){var n=r&&r.ignoreSize;!U(n)&&(n=[n,n]);var a=o(cs[0],0),i=o(cs[1],1);u(cs[0],e,a),u(cs[1],e,i);function o(c,f){var d={},h=0,p={},m=0,g=2;if(Us(c,function(w){p[w]=e[w]}),Us(c,function(w){s(t,w)&&(d[w]=p[w]=t[w]),l(d,w)&&h++,l(p,w)&&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 _=c[y];if(!s(d,_)&&s(e,_)){d[_]=e[_];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){Us(c,function(h){f[h]=d[h]})}}function Ro(e){return Mk({},e)}function Mk(e,t){return t&&e&&Us(Ak,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var kk=ke(),ui=function(e){G(t,e);function t(r,n,a){var i=e.call(this,r,n,a)||this;return i.uid=du("ec_cpt_model"),i}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=Co(this),i=a?Ro(r):{},o=n.getTheme();_e(r,o.get(this.mainType)),_e(r,this.getDefaultOption()),a&&Ja(r,i,a)},t.prototype.mergeOption=function(r,n){_e(this.option,r,!0);var a=Co(this);a&&Ja(this.option,r,a)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!ZD(r))return r.defaultOption;var n=kk(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=_e(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var a=r+"Index",i=r+"Id";return Oo(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}(et);q_(ui,et);au(ui);gk(ui);mk(ui,Ek);function Ek(e){var t=[];return k(ui.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=q(t,function(r){return hr(r).main}),e!=="dataset"&&de(t,"dataset")<=0&&t.unshift("dataset"),t}const De=ui;var iw="";typeof navigator<"u"&&(iw=navigator.platform||"");var _a="rgba(0, 0, 0, 0.2)";const Pk={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:iw.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=oe(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ft="original",mt="arrayRows",er="objectRows",gr="keyedColumns",Mr="typedArray",ow="unknown",kr="column",ci="row",We={Must:1,Might:2,Not:3},sw=ke();function Ik(e){sw(e).datasetMap=oe()}function Lk(e,t,r){var n={},a=Yd(t);if(!a||!e)return n;var i=[],o=[],s=t.ecModel,l=sw(s).datasetMap,u=a.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),k(e,function(m,g){var y=Q(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,_=p(m);if(c==null){var w=d.valueWayDim;h(n[y],w,_),h(o,w,_),d.valueWayDim+=_}else if(c===g)h(n[y],0,_),h(i,0,_);else{var w=d.categoryWayDim;h(n[y],w,_),h(o,w,_),d.categoryWayDim+=_}});function h(m,g,y){for(var _=0;_<y;_++)m.push(g+_)}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 Ok(e,t,r){var n={},a=Yd(e);if(!a)return n;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===er||i===gr)&&k(o,function(c,f){(Q(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=uw(t.data,i,t.seriesLayoutBy,o,t.startIndex,h);d.push(m);var g=m===We.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&d[c.n]===We.Not)&&(c.n=h),y(c)&&d[c.n]!==We.Not)return c;g||(m===We.Might&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}function y(_){return _.v!=null&&_.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 Yd(e){var t=e.get("data",!0);if(!t)return Oo(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},pt).models[0]}function Rk(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Oo(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},pt).models}function lw(e,t){return uw(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function uw(e,t,r,n,a,i){var o,s=5;if(ct(e))return We.Not;var l,u;if(n){var c=n[i];Q(c)?(l=c.name,u=c.type):X(c)&&(l=c)}if(u!=null)return u==="ordinal"?We.Must:We.Not;if(t===mt){var f=e;if(r===ci){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===er){var m=e;if(!l)return We.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===gr){var y=e;if(!l)return We.Not;var d=y[l];if(!d||ct(d))return We.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 _=e,h=0;h<_.length&&h<s;h++){var g=_[h],w=Lo(g);if(!U(w))return We.Not;if((o=S(w[i]))!=null)return o}function S(T){var C=X(T);if(T!=null&&isFinite(T)&&T!=="")return C?We.Might:We.Not;if(C&&T!=="-")return We.Must}return We.Not}var Bk=oe();function Vk(e,t,r){var n=Bk.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++)ne(Za(a[i]));return r.concat(a)}var kg=ke();ke();var qd=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var a=He(this.get("color",!0)),i=this.get("colorLayer",!0);return Fk(this,kg,a,i,t,r,n)},e.prototype.clearColorPalette=function(){zk(this,kg)},e}();function $k(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 Fk(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:$k(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 zk(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var fs,Di,Eg,Ic="\0_ec_inner",Pg=1,Gk={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"},Hk={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"},_l={};function Uk(e){k(e,function(t,r){if(!De.hasClass(r)){var n=Gk[r];n&&!_l[n]&&(tt("Component "+r+` is used but not imported.
|
|
23
|
+
*/var Xo={},L9={};function y7(e){delete L9[e]}function C7(e){if(!e)return!1;if(typeof e=="string")return r0(e,1)<qx;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,a=0;a<n;a++)r+=r0(t[a].color,1);return r/=n,r<qx}return!1}var B7=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 o=new VB,i=n.renderer||"canvas";if(Xo[i]||(i=De(Xo)[0]),process.env.NODE_ENV!=="production"&&!Xo[i])throw new Error("Renderer '"+i+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Xo[i](r,o,n,t),l=n.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u=!se.node&&!se.worker&&!l?new c7(s.getViewportRoot(),s.root):null,x=n.useCoarsePointer,c=x==null||x==="auto"?se.touchEventsSupported:!!x,d=44,f;c&&(f=le(n.pointerSize,d)),this.handler=new IB(o,s,u,s.root,f),this.animation=new n7({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=C7(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=Ia();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var a=Ia();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 Oe&&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,y7(this.id))},e}();function Ph(e,t){var r=new B7(f9(),e,t);return L9[r.id]=r,r}function A7(e,t){Xo[e]=t}var Mh=1e-4,O9=20;function D7(e){return e.replace(/^\s+|\s+$/g,"")}function Ke(e,t,r,n){var a=t[0],o=t[1],i=r[0],s=r[1],l=o-a,u=s-i;if(l===0)return u===0?i:(i+s)/2;if(n)if(l>0){if(e<=a)return i;if(e>=o)return s}else{if(e>=a)return i;if(e<=o)return s}else{if(e===a)return i;if(e===o)return s}return(e-a)/l*u+i}function be(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 K(e)?D7(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Ve(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),O9),e=(+e).toFixed(t),r?e:+e}function jo(e){return e.sort(function(t,r){return t-r}),e}function vr(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 Qx(e)}function Qx(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,a=r>0?r:t.length,o=t.indexOf("."),i=o<0?0:a-1-o;return Math.max(0,i-n)}function R9(e,t){var r=Math.log,n=Math.LN10,a=Math.floor(r(e[1]-e[0])/n),o=Math.round(r(Math.abs(t[1]-t[0]))/n),i=Math.min(Math.max(-a+o,0),20);return isFinite(i)?i:20}function _7(e,t){var r=Lr(e,function(f,v){return f+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,t),a=q(e,function(f){return(isNaN(f)?0:f)/r*n*100}),o=n*100,i=q(a,function(f){return Math.floor(f)}),s=Lr(i,function(f,v){return f+v},0),l=q(a,function(f,v){return f-i[v]});s<o;){for(var u=Number.NEGATIVE_INFINITY,x=null,c=0,d=l.length;c<d;++c)l[c]>u&&(u=l[c],x=c);++i[x],l[x]=0,++s}return q(i,function(f){return f/n})}function w7(e,t){var r=Math.max(vr(e),vr(t)),n=e+t;return r>O9?n:Ve(n,r)}function V9(e){var t=Math.PI*2;return(e%t+t)%t}function o0(e){return e>-Mh&&e<Mh}var F7=/^(?:(\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(K(e)){var t=F7.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 b7(e){return Math.pow(10,rl(e))}function rl(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 $9(e,t){var r=rl(e),n=Math.pow(10,r),a=e/n,o;return t?a<1.5?o=1:a<2.5?o=2:a<4?o=3:a<7?o=5:o=10:a<1?o=1:a<2?o=2:a<3?o=3:a<5?o=5:o=10,e=o*n,r>=-20?+e.toFixed(r<0?-r:0):e}function i0(e){var t=parseFloat(e);return t==e&&(t!==0||!K(e)||e.indexOf("x")<=0)?t:NaN}function z9(e){return!isNaN(i0(e))}function G9(){return Math.round(Math.random()*9)}function H9(e,t){return t===0?e:H9(t,e%t)}function Ih(e,t){return e==null?t:t==null?e:e*t/H9(e,t)}var S7="[ECharts] ",Lh={},k7=typeof console<"u"&&console.warn&&console.log;function nl(e,t,r){if(k7){if(r){if(Lh[t])return;Lh[t]=!0}console[e](S7+t)}}function T7(e,t){nl("log",e,t)}function We(e,t){nl("warn",e,t)}function it(e,t){nl("error",e,t)}function qt(e){process.env.NODE_ENV!=="production"&&nl("warn","DEPRECATED: "+e,!0)}function Ye(e,t,r){process.env.NODE_ENV!=="production"&&qt((r?"["+r+"]":"")+(e+" is deprecated, use "+t+" instead."))}function s0(){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":Za(a)?"NaN":a instanceof Date?"Date("+a.toISOString()+")":xe(a)?"function () { ... }":rB(a)?a+"":null};r=q(e,function(a){if(K(a))return a;var o=n(a);if(o!=null)return o;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(a,function(i,s){var l=n(s);return l??s})}catch{return"?"}else return"?"}).join(" ")}return r}function ct(e){throw new Error(e)}function Oh(e,t,r){return(t-e)*r+e}var U9="series\0",N7="\0_ec_\0";function je(e){return e instanceof Array?e:e==null?[]:[e]}function l0(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 o=r[n];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var Rh=["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 Li(e){return re(e)&&!Y(e)&&!(e instanceof Date)?e.value:e}function P7(e){return re(e)&&!(e instanceof Array)}function M7(e,t,r){var n=r==="normalMerge",a=r==="replaceMerge",o=r==="replaceAll";e=e||[],t=(t||[]).slice();var i=ue();k(t,function(l,u){if(!re(l)){t[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!$h(l.id)&&Vh(l.id),l.name!=null&&!$h(l.name)&&Vh(l.name))});var s=I7(e,i,r);return(n||a)&&L7(s,e,i,t),n&&O7(s,t),n||a?R7(s,t,a):o&&V7(s,t),$7(s),s}function I7(e,t,r){var n=[];if(r==="replaceAll")return n;for(var a=0;a<e.length;a++){var o=e[a];o&&o.id!=null&&t.set(o.id,a),n.push({existing:r==="replaceMerge"||Ka(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return n}function L7(e,t,r,n){k(n,function(a,o){if(!(!a||a.id==null)){var i=oi(a.id),s=r.get(i);if(s!=null){var l=e[s];oe(!l.newOption,'Duplicated option on id "'+i+'".'),l.newOption=a,l.existing=t[s],n[o]=null}}})}function O7(e,t){k(t,function(r,n){if(!(!r||r.name==null))for(var a=0;a<e.length;a++){var o=e[a].existing;if(!e[a].newOption&&o&&(o.id==null||r.id==null)&&!Ka(r)&&!Ka(o)&&W9("name",o,r)){e[a].newOption=r,t[n]=null;return}}})}function R7(e,t,r){k(t,function(n){if(n){for(var a,o=0;(a=e[o])&&(a.newOption||Ka(a.existing)||a.existing&&n.id!=null&&!W9("id",n,a.existing));)o++;a?(a.newOption=n,a.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),o++}})}function V7(e,t){k(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function $7(e){var t=ue();k(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),k(e,function(r){var n=r.newOption;oe(!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,o=r.newOption,i=r.keyInfo;if(re(o)){if(i.name=o.name!=null?oi(o.name):a?a.name:U9+n,a)i.id=oi(a.id);else if(o.id!=null)i.id=oi(o.id);else{var s=0;do i.id="\0"+i.name+"\0"+s++;while(t.get(i.id))}t.set(i.id,r)}})}function W9(e,t,r){var n=gr(t[e],null),a=gr(r[e],null);return n!=null&&a!=null&&n===a}function oi(e){if(process.env.NODE_ENV!=="production"&&e==null)throw new Error;return gr(e,"")}function gr(e,t){return e==null?t:K(e)?e:Se(e)||Ks(e)?e+"":t}function Vh(e){process.env.NODE_ENV!=="production"&&We("`"+e+"` is invalid id or name. Must be a string or number.")}function $h(e){return Ks(e)||z9(e)}function _f(e){var t=e.name;return!!(t&&t.indexOf(U9))}function Ka(e){return e&&e.id!=null&&oi(e.id).indexOf(N7)===0}function z7(e,t,r){k(e,function(n){var a=n.newOption;re(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=G7(t,a,n.existing,r))})}function G7(e,t,r,n){var a=t.type?t.type:r?r.subType:n.determineSubType(e,t);return a}function Kn(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Y(t.dataIndex)?q(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Y(t.name)?q(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Te(){var e="__ec_inner_"+H7++;return function(t){return t[e]||(t[e]={})}}var H7=G9();function du(e,t,r){var n=wf(t,r),a=n.mainTypeSpecified,o=n.queryOptionMap,i=n.others,s=i,l=r?r.defaultMainType:null;return!a&&l&&o.set(l,{}),o.each(function(u,x){var c=Oi(e,x,u,{useDefault:l===x,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[x+"Models"]=c.models,s[x+"Model"]=c.models[0]}),s}function wf(e,t){var r;if(K(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var a=ue(),o={},i=!1;return k(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){o[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],x=u[1],c=(u[2]||"").toLowerCase();if(!(!x||!c||t&&t.includeMainTypes&&pe(t.includeMainTypes,x)<0)){i=i||!!x;var d=a.get(x)||a.set(x,{});d[c]=s}}),{mainTypeSpecified:i,queryOptionMap:a,others:o}}var Et={useDefault:!0,enableAll:!1,enableNone:!1},U7={useDefault:!1,enableAll:!0,enableNone:!0};function Oi(e,t,r,n){n=n||Et;var a=r.index,o=r.id,i=r.name,s={models:null,specified:a!=null||o!=null||i!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return a==="none"||a===!1?(oe(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(a==="all"&&(oe(n.enableAll,'`"all"` is not a valid value on index option.'),a=o=i=null),s.models=e.queryComponents({mainType:t,index:a,id:o,name:i}),s)}function Y9(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function W7(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Y7(e){return e==="auto"?se.domSupported?"html":"richText":e||"html"}function X7(e,t,r,n,a){var o=t==null||t==="auto";if(n==null)return n;if(Se(n)){var i=Oh(r||0,n,a);return Ve(i,o?Math.max(vr(r||0),vr(n)):t)}else{if(K(n))return a<1?r:n;for(var s=[],l=r,u=n,x=Math.max(l?l.length:0,u.length),c=0;c<x;++c){var d=e.getDimensionInfo(c);if(d&&d.type==="ordinal")s[c]=(a<1&&l?l:u)[c];else{var f=l&&l[c]?l[c]:0,v=u[c],i=Oh(f,v,a);s[c]=Ve(i,o?Math.max(vr(f),vr(v)):t)}}return s}}var j7=".",Dn="___EC__COMPONENT__CONTAINER___",X9="___EC__EXTENDED_CLASS___";function pr(e){var t={main:"",sub:""};if(e){var r=e.split(j7);t.main=r[0]||"",t.sub=r[1]||""}return t}function Z7(e){oe(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function q7(e){return!!(e&&e[X9])}function Ff(e,t){e.$constructor=e,e.extend=function(r){process.env.NODE_ENV!=="production"&&k(t,function(o){r[o]||console.warn("Method `"+o+"` should be implemented"+(r.type?" in "+r.type:"")+".")});var n=this,a;return K7(n)?a=function(o){W(i,o);function i(){return o.apply(this,arguments)||this}return i}(n):(a=function(){(r.$constructor||n).apply(this,arguments)},Q6(a,this)),H(a.prototype,r),a[X9]=!0,a.extend=this.extend,a.superCall=eA,a.superApply=tA,a.superClass=n,a}}function K7(e){return xe(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function j9(e,t){e.extend=t.extend}var J7=Math.round(Math.random()*10);function Q7(e){var t=["__\0is_clz",J7++].join("_");e.prototype[t]=!0,process.env.NODE_ENV!=="production"&&oe(!e.isInstance,'The method "is" can not be defined.'),e.isInstance=function(r){return!!(r&&r[t])}}function eA(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 tA(e,t,r){return this.superClass.prototype[t].apply(e,r)}function al(e){var t={};e.registerClass=function(n){var a=n.type||n.prototype.type;if(a){Z7(a),n.prototype.type=a;var o=pr(a);if(!o.sub)process.env.NODE_ENV!=="production"&&t[o.main]&&console.warn(o.main+" exists."),t[o.main]=n;else if(o.sub!==Dn){var i=r(o);i[o.sub]=n}}return n},e.getClass=function(n,a,o){var i=t[n];if(i&&i[Dn]&&(i=a?i[a]:null),o&&!i)throw new Error(a?"Component "+n+"."+(a||"")+" is used but not imported.":n+".type should be specified.");return i},e.getClassesByMainType=function(n){var a=pr(n),o=[],i=t[a.main];return i&&i[Dn]?k(i,function(s,l){l!==Dn&&o.push(s)}):o.push(i),o},e.hasClass=function(n){var a=pr(n);return!!t[a.main]},e.getAllClassMainTypes=function(){var n=[];return k(t,function(a,o){n.push(o)}),n},e.hasSubTypes=function(n){var a=pr(n),o=t[a.main];return o&&o[Dn]};function r(n){var a=t[n.main];return(!a||!a[Dn])&&(a=t[n.main]={},a[Dn]=!0),a}}function Ei(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,o){for(var i={},s=0;s<e.length;s++){var l=e[s][1];if(!(a&&pe(a,l)>=0||o&&pe(o,l)<0)){var u=n.getShallow(l,t);u!=null&&(i[e[s][0]]=u)}}return i}}var rA=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],nA=Ei(rA),aA=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return nA(this,t,r)},e}(),ec=new Ii(50);function oA(e){if(typeof e=="string"){var t=ec.get(e);return t&&t.image}else return e}function Z9(e,t,r,n,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var o=ec.get(e),i={hostEl:r,cb:n,cbPayload:a};return o?(t=o.image,!ol(t)&&o.pending.push(i)):(t=ao.loadImage(e,zh,zh),t.__zrImageSrc=e,ec.put(e,t.__cachedImgObj={image:t,pending:[i]})),t}else return e;else return t}function zh(){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 ol(e){return e&&e.width&&e.height}var hu=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function iA(e,t,r,n,a){if(!t)return"";var o=(e+"").split(`
|
|
24
|
+
`);a=q9(t,r,n,a);for(var i=0,s=o.length;i<s;i++)o[i]=K9(o[i],a);return o.join(`
|
|
25
|
+
`)}function q9(e,t,r,n){n=n||{};var a=H({},n);a.font=t,r=le(r,"..."),a.maxIterations=le(n.maxIterations,2);var o=a.minChar=le(n.minChar,0);a.cnCharWidth=Ft("国",t);var i=a.ascCharWidth=Ft("a",t);a.placeholder=le(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<o&&s>=i;l++)s-=i;var u=Ft(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 K9(e,t){var r=t.containerWidth,n=t.font,a=t.contentWidth;if(!r)return"";var o=Ft(e,n);if(o<=r)return e;for(var i=0;;i++){if(o<=a||i>=t.maxIterations){e+=t.ellipsis;break}var s=i===0?sA(e,a,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*a/o):0;e=e.substr(0,s),o=Ft(e,n)}return e===""&&(e=t.placeholder),e}function sA(e,t,r,n){for(var a=0,o=0,i=e.length;o<i&&a<t;o++){var s=e.charCodeAt(o);a+=0<=s&&s<=127?r:n}return o}function lA(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,a=t.font,o=r==="truncate",i=Af(a),s=le(t.lineHeight,i),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",x=t.width,c;x!=null&&(r==="break"||r==="breakAll")?c=e?J9(e,t.font,x,r==="breakAll",0).lines:[]:c=e?e.split(`
|
|
26
|
+
`):[];var d=c.length*s,f=le(t.height,d);if(d>f&&u){var v=Math.floor(f/s);c=c.slice(0,v)}if(e&&o&&x!=null)for(var g=q9(x,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;p<c.length;p++)c[p]=K9(c[p],g);for(var m=f,E=0,p=0;p<c.length;p++)E=Math.max(Ft(c[p],a),E);x==null&&(x=E);var y=E;return n&&(m+=n[0]+n[2],y+=n[1]+n[3],x+=n[1]+n[3]),l&&(y=x),{lines:c,height:f,outerWidth:y,outerHeight:m,lineHeight:s,calculatedLineHeight:i,contentWidth:E,contentHeight:d,width:x}}var uA=function(){function e(){}return e}(),Gh=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),xA=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 cA(e,t){var r=new xA;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,a=t.height,o=t.overflow,i=(o==="break"||o==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:o==="breakAll"}:null,s=hu.lastIndex=0,l;(l=hu.exec(e))!=null;){var u=l.index;u>s&&vu(r,e.substring(s,u),t,i),vu(r,l[2],t,i,l[1]),s=hu.lastIndex}s<e.length&&vu(r,e.substring(s,e.length),t,i);var x=[],c=0,d=0,f=t.padding,v=o==="truncate",g=t.lineOverflow==="truncate";function p(O,V,$){O.width=V,O.lineHeight=$,c+=$,d=Math.max(d,V)}e:for(var m=0;m<r.lines.length;m++){for(var E=r.lines[m],y=0,B=0,D=0;D<E.tokens.length;D++){var A=E.tokens[D],_=A.styleName&&t.rich[A.styleName]||{},C=A.textPadding=_.padding,w=C?C[1]+C[3]:0,b=A.font=_.font||t.font;A.contentHeight=Af(b);var F=le(_.height,A.contentHeight);if(A.innerHeight=F,C&&(F+=C[0]+C[2]),A.height=F,A.lineHeight=sn(_.lineHeight,t.lineHeight,F),A.align=_&&_.align||t.align,A.verticalAlign=_&&_.verticalAlign||"middle",g&&a!=null&&c+A.lineHeight>a){D>0?(E.tokens=E.tokens.slice(0,D),p(E,B,y),r.lines=r.lines.slice(0,m+1)):r.lines=r.lines.slice(0,m);break e}var S=_.width,P=S==null||S==="auto";if(typeof S=="string"&&S.charAt(S.length-1)==="%")A.percentWidth=S,x.push(A),A.contentWidth=Ft(A.text,b);else{if(P){var T=_.backgroundColor,N=T&&T.image;N&&(N=oA(N),ol(N)&&(A.width=Math.max(A.width,N.width*F/N.height)))}var M=v&&n!=null?n-B:null;M!=null&&M<A.width?!P||M<w?(A.text="",A.width=A.contentWidth=0):(A.text=iA(A.text,M-w,b,t.ellipsis,{minChar:t.truncateMinChar}),A.width=A.contentWidth=Ft(A.text,b)):A.contentWidth=Ft(A.text,b)}A.width+=w,B+=A.width,_&&(y=Math.max(y,A.lineHeight))}p(E,B,y)}r.outerWidth=r.width=le(n,d),r.outerHeight=r.height=le(a,c),r.contentHeight=c,r.contentWidth=d,f&&(r.outerWidth+=f[1]+f[3],r.outerHeight+=f[0]+f[2]);for(var m=0;m<x.length;m++){var A=x[m],L=A.percentWidth;A.width=parseInt(L,10)/100*r.width}return r}function vu(e,t,r,n,a){var o=t==="",i=a&&r.rich[a]||{},s=e.lines,l=i.font||r.font,u=!1,x,c;if(n){var d=i.padding,f=d?d[1]+d[3]:0;if(i.width!=null&&i.width!=="auto"){var v=fn(i.width,n.width)+f;s.length>0&&v+n.accumWidth>n.width&&(x=t.split(`
|
|
27
|
+
`),u=!0),n.accumWidth=v}else{var g=J9(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+f,c=g.linesWidths,x=g.lines}}else x=t.split(`
|
|
28
|
+
`);for(var p=0;p<x.length;p++){var m=x[p],E=new uA;if(E.styleName=a,E.text=m,E.isLineHolder=!m&&!o,typeof i.width=="number"?E.width=i.width:E.width=c?c[p]:Ft(m,l),!p&&!u){var y=(s[s.length-1]||(s[0]=new Gh)).tokens,B=y.length;B===1&&y[0].isLineHolder?y[0]=E:(m||!B||o)&&y.push(E)}else s.push(new Gh([E]))}}function fA(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var dA=Lr(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function hA(e){return fA(e)?!!dA[e]:!0}function J9(e,t,r,n,a){for(var o=[],i=[],s="",l="",u=0,x=0,c=0;c<e.length;c++){var d=e.charAt(c);if(d===`
|
|
29
|
+
`){l&&(s+=l,x+=u),o.push(s),i.push(x),s="",l="",u=0,x=0;continue}var f=Ft(d,t),v=n?!1:!hA(d);if(o.length?x+f>r:a+x+f>r){x?(s||l)&&(v?(s||(s=l,l="",u=0,x=u),o.push(s),i.push(x-u),l+=d,u+=f,s="",x=u):(l&&(s+=l,l="",u=0),o.push(s),i.push(x),s=d,x=f)):v?(o.push(l),i.push(u),l=d,u=f):(o.push(d),i.push(f));continue}x+=f,v?(l+=d,u+=f):(l&&(s+=l,l="",u=0),s+=d)}return!o.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(o.push(s),i.push(x)),o.length===1&&(x+=a),{accumWidth:x,lines:o,linesWidths:i}}var tc="__zr_style_"+Math.round(Math.random()*10),Wn={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},il={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Wn[tc]=!0;var Hh=["z","z2","invisible"],vA=["invisible"],pA=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=De(r),a=0;a<n.length;a++){var o=n[a];o==="style"?this.useStyle(r[o]):e.prototype.attrKV.call(this,o,r[o])}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,o){var i=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&gA(this,r,n)||i&&!i[0]&&!i[3])return!1;if(a&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(o&&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),o=this.getBoundingRect();return o.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(),o=this.style,i=o.shadowBlur||0,s=o.shadowOffsetX||0,l=o.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new Ae(0,0,0,0)),n?Ae.applyTransform(r,a,n):r.copy(a),(i||s||l)&&(r.width+=i*2+Math.abs(s),r.height+=i*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-i),r.y=Math.min(r.y,r.y+l-i));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 Ae(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:H(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Uo,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Uo)},t.prototype.styleUpdated=function(){this.__dirty&=~Uo},t.prototype.createStyle=function(r){return el(Wn,r)},t.prototype.useStyle=function(r){r[tc]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[tc]},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,Hh)},t.prototype._applyStateObj=function(r,n,a,o,i,s){e.prototype._applyStateObj.call(this,r,n,a,o,i,s);var l=!(n&&o),u;if(n&&n.style?i?o?u=n.style:(u=this._mergeStyle(this.createStyle(),a.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),o?this.style:a.style),this._mergeStyle(u,n.style)):l&&(u=a.style),u)if(i){var x=this.style;if(this.style=this.createStyle(l?{}:x),l)for(var c=De(x),d=0;d<c.length;d++){var f=c[d];f in u&&(u[f]=u[f],this.style[f]=x[f])}for(var v=De(u),d=0;d<v.length;d++){var f=v[d];this.style[f]=this.style[f]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?vA:Hh,d=0;d<g.length;d++){var f=g[d];n&&n[f]!=null?this[f]=n[f]:l&&a[f]!=null&&(this[f]=a[f])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,o=0;o<r.length;o++){var i=r[o];i.style&&(a=a||{},this._mergeStyle(a,i.style))}return a&&(n.style=a),n},t.prototype._mergeStyle=function(r,n){return H(r,n),r},t.prototype.getAnimationStyleProps=function(){return il},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=wt|Uo}(),t}(I9),pu=new Ae(0,0,0,0),gu=new Ae(0,0,0,0);function gA(e,t,r){return pu.copy(e.getBoundingRect()),e.transform&&pu.applyTransform(e.transform),gu.width=t,gu.height=r,!pu.intersect(gu)}const aa=pA;var Vt=Math.min,$t=Math.max,mu=Math.sin,Eu=Math.cos,_n=Math.PI*2,ts=io(),rs=io(),ns=io();function Uh(e,t,r,n,a,o){a[0]=Vt(e,r),a[1]=Vt(t,n),o[0]=$t(e,r),o[1]=$t(t,n)}var Wh=[],Yh=[];function mA(e,t,r,n,a,o,i,s,l,u){var x=w9,c=Ue,d=x(e,r,a,i,Wh);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var f=0;f<d;f++){var v=c(e,r,a,i,Wh[f]);l[0]=Vt(v,l[0]),u[0]=$t(v,u[0])}d=x(t,n,o,s,Yh);for(var f=0;f<d;f++){var g=c(t,n,o,s,Yh[f]);l[1]=Vt(g,l[1]),u[1]=$t(g,u[1])}l[0]=Vt(e,l[0]),u[0]=$t(e,u[0]),l[0]=Vt(i,l[0]),u[0]=$t(i,u[0]),l[1]=Vt(t,l[1]),u[1]=$t(t,u[1]),l[1]=Vt(s,l[1]),u[1]=$t(s,u[1])}function EA(e,t,r,n,a,o,i,s){var l=F9,u=rt,x=$t(Vt(l(e,r,a),1),0),c=$t(Vt(l(t,n,o),1),0),d=u(e,r,a,x),f=u(t,n,o,c);i[0]=Vt(e,a,d),i[1]=Vt(t,o,f),s[0]=$t(e,a,d),s[1]=$t(t,o,f)}function yA(e,t,r,n,a,o,i,s,l){var u=Pa,x=Ma,c=Math.abs(a-o);if(c%_n<1e-4&&c>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(ts[0]=Eu(a)*r+e,ts[1]=mu(a)*n+t,rs[0]=Eu(o)*r+e,rs[1]=mu(o)*n+t,u(s,ts,rs),x(l,ts,rs),a=a%_n,a<0&&(a=a+_n),o=o%_n,o<0&&(o=o+_n),a>o&&!i?o+=_n:a<o&&i&&(a+=_n),i){var d=o;o=a,a=d}for(var f=0;f<o;f+=Math.PI/2)f>a&&(ns[0]=Eu(f)*r+e,ns[1]=mu(f)*n+t,u(s,ns,s),x(l,ns,l))}var Ce={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},wn=[],Fn=[],ir=[],zr=[],sr=[],lr=[],yu=Math.min,Cu=Math.max,bn=Math.cos,Sn=Math.sin,Ar=Math.abs,rc=Math.PI,qr=rc*2,Bu=typeof Float32Array<"u",wo=[];function Au(e){var t=Math.round(e/rc*1e8)/1e8;return t%2*rc}function Q9(e,t){var r=Au(e[0]);r<0&&(r+=qr);var n=r-e[0],a=e[1];a+=n,!t&&a-r>=qr?a=r+qr:t&&r-a>=qr?a=r-qr:!t&&r>a?a=r+(qr-Au(r-a)):t&&r<a&&(a=r-(qr-Au(a-r))),e[0]=r,e[1]=a}var Jn=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=Ar(n/n0/t)||0,this._uy=Ar(n/n0/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(Ce.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=Ar(t-this._xi),a=Ar(r-this._yi),o=n>this._ux||a>this._uy;if(this.addData(Ce.L,t,r),this._ctx&&o&&this._ctx.lineTo(t,r),o)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var i=n*n+a*a;i>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=i)}return this},e.prototype.bezierCurveTo=function(t,r,n,a,o,i){return this._drawPendingPt(),this.addData(Ce.C,t,r,n,a,o,i),this._ctx&&this._ctx.bezierCurveTo(t,r,n,a,o,i),this._xi=o,this._yi=i,this},e.prototype.quadraticCurveTo=function(t,r,n,a){return this._drawPendingPt(),this.addData(Ce.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,o,i){this._drawPendingPt(),wo[0]=a,wo[1]=o,Q9(wo,i),a=wo[0],o=wo[1];var s=o-a;return this.addData(Ce.A,t,r,n,n,a,s,0,i?0:1),this._ctx&&this._ctx.arc(t,r,n,a,o,i),this._xi=bn(o)*n+t,this._yi=Sn(o)*n+r,this},e.prototype.arcTo=function(t,r,n,a,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,a,o),this},e.prototype.rect=function(t,r,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,a),this.addData(Ce.R,t,r,n,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ce.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)&&Bu&&(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,o=0;o<r;o++)n+=t[o].len();Bu&&this.data instanceof Float32Array&&(this.data=new Float32Array(a+n));for(var o=0;o<r;o++)for(var i=t[o].data,s=0;s<i.length;s++)this.data[a++]=i[s];this._len=a},e.prototype.addData=function(t,r,n,a,o,i,s,l,u){if(this._saveData){var x=this.data;this._len+arguments.length>x.length&&(this._expandData(),x=this.data);for(var c=0;c<arguments.length;c++)x[this._len++]=arguments[c]}},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,Bu&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){ir[0]=ir[1]=sr[0]=sr[1]=Number.MAX_VALUE,zr[0]=zr[1]=lr[0]=lr[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,a=0,o=0,i;for(i=0;i<this._len;){var s=t[i++],l=i===1;switch(l&&(r=t[i],n=t[i+1],a=r,o=n),s){case Ce.M:r=a=t[i++],n=o=t[i++],sr[0]=a,sr[1]=o,lr[0]=a,lr[1]=o;break;case Ce.L:Uh(r,n,t[i],t[i+1],sr,lr),r=t[i++],n=t[i++];break;case Ce.C:mA(r,n,t[i++],t[i++],t[i++],t[i++],t[i],t[i+1],sr,lr),r=t[i++],n=t[i++];break;case Ce.Q:EA(r,n,t[i++],t[i++],t[i],t[i+1],sr,lr),r=t[i++],n=t[i++];break;case Ce.A:var u=t[i++],x=t[i++],c=t[i++],d=t[i++],f=t[i++],v=t[i++]+f;i+=1;var g=!t[i++];l&&(a=bn(f)*c+u,o=Sn(f)*d+x),yA(u,x,c,d,f,v,g,sr,lr),r=bn(v)*c+u,n=Sn(v)*d+x;break;case Ce.R:a=r=t[i++],o=n=t[i++];var p=t[i++],m=t[i++];Uh(a,o,a+p,o+m,sr,lr);break;case Ce.Z:r=a,n=o;break}Pa(ir,ir,sr),Ma(zr,zr,lr)}return i===0&&(ir[0]=ir[1]=zr[0]=zr[1]=0),new Ae(ir[0],ir[1],zr[0]-ir[0],zr[1]-ir[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,a=this._uy,o=0,i=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,x=0,c=0,d=0;d<r;){var f=t[d++],v=d===1;v&&(o=t[d],i=t[d+1],s=o,l=i);var g=-1;switch(f){case Ce.M:o=s=t[d++],i=l=t[d++];break;case Ce.L:{var p=t[d++],m=t[d++],E=p-o,y=m-i;(Ar(E)>n||Ar(y)>a||d===r-1)&&(g=Math.sqrt(E*E+y*y),o=p,i=m);break}case Ce.C:{var B=t[d++],D=t[d++],p=t[d++],m=t[d++],A=t[d++],_=t[d++];g=zB(o,i,B,D,p,m,A,_,10),o=A,i=_;break}case Ce.Q:{var B=t[d++],D=t[d++],p=t[d++],m=t[d++];g=UB(o,i,B,D,p,m,10),o=p,i=m;break}case Ce.A:var C=t[d++],w=t[d++],b=t[d++],F=t[d++],S=t[d++],P=t[d++],T=P+S;d+=1,v&&(s=bn(S)*b+C,l=Sn(S)*F+w),g=Cu(b,F)*yu(qr,Math.abs(P)),o=bn(T)*b+C,i=Sn(T)*F+w;break;case Ce.R:{s=o=t[d++],l=i=t[d++];var N=t[d++],M=t[d++];g=N*2+M*2;break}case Ce.Z:{var E=s-o,y=l-i;g=Math.sqrt(E*E+y*y),o=s,i=l;break}}g>=0&&(u[c++]=g,x+=g)}return this._pathLen=x,x},e.prototype.rebuildPath=function(t,r){var n=this.data,a=this._ux,o=this._uy,i=this._len,s,l,u,x,c,d,f=r<1,v,g,p=0,m=0,E,y=0,B,D;if(!(f&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,g=this._pathLen,E=r*g,!E)))e:for(var A=0;A<i;){var _=n[A++],C=A===1;switch(C&&(u=n[A],x=n[A+1],s=u,l=x),_!==Ce.L&&y>0&&(t.lineTo(B,D),y=0),_){case Ce.M:s=u=n[A++],l=x=n[A++],t.moveTo(u,x);break;case Ce.L:{c=n[A++],d=n[A++];var w=Ar(c-u),b=Ar(d-x);if(w>a||b>o){if(f){var F=v[m++];if(p+F>E){var S=(E-p)/F;t.lineTo(u*(1-S)+c*S,x*(1-S)+d*S);break e}p+=F}t.lineTo(c,d),u=c,x=d,y=0}else{var P=w*w+b*b;P>y&&(B=c,D=d,y=P)}break}case Ce.C:{var T=n[A++],N=n[A++],M=n[A++],L=n[A++],O=n[A++],V=n[A++];if(f){var F=v[m++];if(p+F>E){var S=(E-p)/F;e0(u,T,M,O,S,wn),e0(x,N,L,V,S,Fn),t.bezierCurveTo(wn[1],Fn[1],wn[2],Fn[2],wn[3],Fn[3]);break e}p+=F}t.bezierCurveTo(T,N,M,L,O,V),u=O,x=V;break}case Ce.Q:{var T=n[A++],N=n[A++],M=n[A++],L=n[A++];if(f){var F=v[m++];if(p+F>E){var S=(E-p)/F;t0(u,T,M,S,wn),t0(x,N,L,S,Fn),t.quadraticCurveTo(wn[1],Fn[1],wn[2],Fn[2]);break e}p+=F}t.quadraticCurveTo(T,N,M,L),u=M,x=L;break}case Ce.A:var $=n[A++],I=n[A++],U=n[A++],j=n[A++],G=n[A++],he=n[A++],ee=n[A++],te=!n[A++],ie=U>j?U:j,ce=Ar(U-j)>.001,de=G+he,Z=!1;if(f){var F=v[m++];p+F>E&&(de=G+he*(E-p)/F,Z=!0),p+=F}if(ce&&t.ellipse?t.ellipse($,I,U,j,ee,G,de,te):t.arc($,I,ie,G,de,te),Z)break e;C&&(s=bn(G)*U+$,l=Sn(G)*j+I),u=bn(de)*U+$,x=Sn(de)*j+I;break;case Ce.R:s=u=n[A],l=x=n[A+1],c=n[A++],d=n[A++];var Q=n[A++],$e=n[A++];if(f){var F=v[m++];if(p+F>E){var ke=E-p;t.moveTo(c,d),t.lineTo(c+yu(ke,Q),d),ke-=Q,ke>0&&t.lineTo(c+Q,d+yu(ke,$e)),ke-=$e,ke>0&&t.lineTo(c+Cu(Q-ke,0),d+$e),ke-=Q,ke>0&&t.lineTo(c,d+Cu($e-ke,0));break e}p+=F}t.rect(c,d,Q,$e);break;case Ce.Z:if(f){var F=v[m++];if(p+F>E){var S=(E-p)/F;t.lineTo(u*(1-S)+s*S,x*(1-S)+l*S);break e}p+=F}t.closePath(),u=s,x=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=Ce,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,o,i){if(a===0)return!1;var s=a,l=0,u=e;if(i>t+s&&i>n+s||i<t-s&&i<n-s||o>e+s&&o>r+s||o<e-s&&o<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(o-e)<=s/2;var x=l*o-i+u,c=x*x/(l*l+1);return c<=s/2*s/2}function CA(e,t,r,n,a,o,i,s,l,u,x){if(l===0)return!1;var c=l;if(x>t+c&&x>n+c&&x>o+c&&x>s+c||x<t-c&&x<n-c&&x<o-c&&x<s-c||u>e+c&&u>r+c&&u>a+c&&u>i+c||u<e-c&&u<r-c&&u<a-c&&u<i-c)return!1;var d=$B(e,t,r,n,a,o,i,s,u,x,null);return d<=c/2}function BA(e,t,r,n,a,o,i,s,l){if(i===0)return!1;var u=i;if(l>t+u&&l>n+u&&l>o+u||l<t-u&&l<n-u&&l<o-u||s>e+u&&s>r+u&&s>a+u||s<e-u&&s<r-u&&s<a-u)return!1;var x=HB(e,t,r,n,a,o,s,l,null);return x<=u/2}var Xh=Math.PI*2;function as(e){return e%=Xh,e<0&&(e+=Xh),e}var Fo=Math.PI*2;function AA(e,t,r,n,a,o,i,s,l){if(i===0)return!1;var u=i;s-=e,l-=t;var x=Math.sqrt(s*s+l*l);if(x-u>r||x+u<r)return!1;if(Math.abs(n-a)%Fo<1e-4)return!0;if(o){var c=n;n=as(a),a=as(c)}else n=as(n),a=as(a);n>a&&(a+=Fo);var d=Math.atan2(l,s);return d<0&&(d+=Fo),d>=n&&d<=a||d+Fo>=n&&d+Fo<=a}function kn(e,t,r,n,a,o){if(o>t&&o>n||o<t&&o<n||n===t)return 0;var i=(o-t)/(n-t),s=n<t?1:-1;(i===1||i===0)&&(s=n<t?.5:-.5);var l=i*(r-e)+e;return l===a?1/0:l>a?s:0}var Gr=Jn.CMD,Tn=Math.PI*2,DA=1e-4;function _A(e,t){return Math.abs(e-t)<DA}var ut=[-1,-1,-1],Lt=[-1,-1];function wA(){var e=Lt[0];Lt[0]=Lt[1],Lt[1]=e}function FA(e,t,r,n,a,o,i,s,l,u){if(u>t&&u>n&&u>o&&u>s||u<t&&u<n&&u<o&&u<s)return 0;var x=Qs(t,n,o,s,u,ut);if(x===0)return 0;for(var c=0,d=-1,f=void 0,v=void 0,g=0;g<x;g++){var p=ut[g],m=p===0||p===1?.5:1,E=Ue(e,r,a,i,p);E<l||(d<0&&(d=w9(t,n,o,s,Lt),Lt[1]<Lt[0]&&d>1&&wA(),f=Ue(t,n,o,s,Lt[0]),d>1&&(v=Ue(t,n,o,s,Lt[1]))),d===2?p<Lt[0]?c+=f<t?m:-m:p<Lt[1]?c+=v<f?m:-m:c+=s<v?m:-m:p<Lt[0]?c+=f<t?m:-m:c+=s<f?m:-m)}return c}function bA(e,t,r,n,a,o,i,s){if(s>t&&s>n&&s>o||s<t&&s<n&&s<o)return 0;var l=GB(t,n,o,s,ut);if(l===0)return 0;var u=F9(t,n,o);if(u>=0&&u<=1){for(var x=0,c=rt(t,n,o,u),d=0;d<l;d++){var f=ut[d]===0||ut[d]===1?.5:1,v=rt(e,r,a,ut[d]);v<i||(ut[d]<u?x+=c<t?f:-f:x+=o<c?f:-f)}return x}else{var f=ut[0]===0||ut[0]===1?.5:1,v=rt(e,r,a,ut[0]);return v<i?0:o<t?f:-f}}function SA(e,t,r,n,a,o,i,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);ut[0]=-l,ut[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=Tn-1e-4){n=0,a=Tn;var x=o?1:-1;return i>=ut[0]+e&&i<=ut[1]+e?x:0}if(n>a){var c=n;n=a,a=c}n<0&&(n+=Tn,a+=Tn);for(var d=0,f=0;f<2;f++){var v=ut[f];if(v+e>i){var g=Math.atan2(s,v),x=o?1:-1;g<0&&(g=Tn+g),(g>=n&&g<=a||g+Tn>=n&&g+Tn<=a)&&(g>Math.PI/2&&g<Math.PI*1.5&&(x=-x),d+=x)}}return d}function e1(e,t,r,n,a){for(var o=e.data,i=e.len(),s=0,l=0,u=0,x=0,c=0,d,f,v=0;v<i;){var g=o[v++],p=v===1;switch(g===Gr.M&&v>1&&(r||(s+=kn(l,u,x,c,n,a))),p&&(l=o[v],u=o[v+1],x=l,c=u),g){case Gr.M:x=o[v++],c=o[v++],l=x,u=c;break;case Gr.L:if(r){if(pa(l,u,o[v],o[v+1],t,n,a))return!0}else s+=kn(l,u,o[v],o[v+1],n,a)||0;l=o[v++],u=o[v++];break;case Gr.C:if(r){if(CA(l,u,o[v++],o[v++],o[v++],o[v++],o[v],o[v+1],t,n,a))return!0}else s+=FA(l,u,o[v++],o[v++],o[v++],o[v++],o[v],o[v+1],n,a)||0;l=o[v++],u=o[v++];break;case Gr.Q:if(r){if(BA(l,u,o[v++],o[v++],o[v],o[v+1],t,n,a))return!0}else s+=bA(l,u,o[v++],o[v++],o[v],o[v+1],n,a)||0;l=o[v++],u=o[v++];break;case Gr.A:var m=o[v++],E=o[v++],y=o[v++],B=o[v++],D=o[v++],A=o[v++];v+=1;var _=!!(1-o[v++]);d=Math.cos(D)*y+m,f=Math.sin(D)*B+E,p?(x=d,c=f):s+=kn(l,u,d,f,n,a);var C=(n-m)*B/y+m;if(r){if(AA(m,E,B,D,D+A,_,t,C,a))return!0}else s+=SA(m,E,B,D,D+A,_,C,a);l=Math.cos(D+A)*y+m,u=Math.sin(D+A)*B+E;break;case Gr.R:x=l=o[v++],c=u=o[v++];var w=o[v++],b=o[v++];if(d=x+w,f=c+b,r){if(pa(x,c,d,c,t,n,a)||pa(d,c,d,f,t,n,a)||pa(d,f,x,f,t,n,a)||pa(x,f,x,c,t,n,a))return!0}else s+=kn(d,c,d,f,n,a),s+=kn(x,f,x,c,n,a);break;case Gr.Z:if(r){if(pa(l,u,x,c,t,n,a))return!0}else s+=kn(l,u,x,c,n,a);l=x,u=c;break}}return!r&&!_A(u,c)&&(s+=kn(l,u,x,c,n,a)||0),s!==0}function kA(e,t,r){return e1(e,0,!1,t,r)}function TA(e,t,r,n){return e1(e,t,!0,r,n)}var t1=ge({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Wn),NA={style:ge({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},il.style)},Du=mr.concat(["invisible","culling","z","z2","zlevel","parent"]),PA=function(e){W(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 o=a.style;for(var i in n)o[i]!==n[i]&&(o[i]=n[i]);o.fill=n.fill?n.decal:null,o.decal=null,o.shadowColor=null,n.strokeFirst&&(o.stroke=null);for(var s=0;s<Du.length;++s)a[Du[s]]=this[Du[s]];a.__dirty|=wt}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=De(r);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var o=0;o<n.length;o++){var i=n[o],s=r[i];i==="style"?this.style?H(this.style,s):this.useStyle(s):i==="shape"?H(this.shape,s):e.prototype.attrKV.call(this,i,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(K(r)){var n=r0(r,0);return n>.5?Kx:n>.2?f7:Jx}else if(r)return Jx}return Kx},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(K(n)){var a=this.__zr,o=!!(a&&a.isDarkMode()),i=r0(r,0)<qx;if(o===i)return n}},t.prototype.buildPath=function(r,n,a){},t.prototype.pathUpdated=function(){this.__dirty&=~Sa},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 Jn(!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 o=!1;this.path||(o=!0,this.createPathProxy());var i=this.path;(o||this.__dirty&Sa)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),r=i.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 x=this.strokeContainThreshold;u=Math.max(u,x??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),o=this.getBoundingRect(),i=this.style;if(r=a[0],n=a[1],o.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=i.lineWidth,u=i.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),TA(s,l/u,r,n)))return!0}if(this.hasFill())return kA(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Sa,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:H(a,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Sa)},t.prototype.createStyle=function(r){return el(t1,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=H({},this.shape))},t.prototype._applyStateObj=function(r,n,a,o,i,s){e.prototype._applyStateObj.call(this,r,n,a,o,i,s);var l=!(n&&o),u;if(n&&n.shape?i?o?u=n.shape:(u=H({},a.shape),H(u,n.shape)):(u=H({},o?this.shape:a.shape),H(u,n.shape)):l&&(u=a.shape),u)if(i){this.shape=H({},this.shape);for(var x={},c=De(u),d=0;d<c.length;d++){var f=c[d];typeof u[f]=="object"?this.shape[f]=u[f]:x[f]=u[f]}this._transitionState(r,{shape:x},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,o=0;o<r.length;o++){var i=r[o];i.shape&&(a=a||{},this._mergeStyle(a,i.shape))}return a&&(n.shape=a),n},t.prototype.getAnimationStyleProps=function(){return NA},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(o){W(i,o);function i(s){var l=o.call(this,s)||this;return r.init&&r.init.call(l,s),l}return i.prototype.getDefaultStyle=function(){return ve(r.style)},i.prototype.getDefaultShape=function(){return ve(r.shape)},i}(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=wt|Uo|Sa}(),t}(aa);const ye=PA;var MA=ge({strokeFirst:!0,font:qn,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},t1),r1=function(e){W(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 el(MA,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=Bf(n,r.font,r.textAlign,r.textBaseline);if(a.x+=r.x||0,a.y+=r.y||0,this.hasStroke()){var o=r.lineWidth;a.x-=o/2,a.y-=o/2,a.width+=o,a.height+=o}this._rect=a}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(aa);r1.prototype.type="tspan";const nc=r1;var IA=ge({x:0,y:0},Wn),LA={style:ge({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},il.style)};function OA(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var n1=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return el(IA,r)},t.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var o=OA(n.image)?n.image:this.__image;if(!o)return 0;var i=r==="width"?"height":"width",s=n[i];return s==null?o[r]:o[r]/o[i]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return LA},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new Ae(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(aa);n1.prototype.type="image";const pn=n1;function RA(e,t){var r=t.x,n=t.y,a=t.width,o=t.height,i=t.r,s,l,u,x;a<0&&(r=r+a,a=-a),o<0&&(n=n+o,o=-o),typeof i=="number"?s=l=u=x=i:i instanceof Array?i.length===1?s=l=u=x=i[0]:i.length===2?(s=u=i[0],l=x=i[1]):i.length===3?(s=i[0],l=x=i[1],u=i[2]):(s=i[0],l=i[1],u=i[2],x=i[3]):s=l=u=x=0;var c;s+l>a&&(c=s+l,s*=a/c,l*=a/c),u+x>a&&(c=u+x,u*=a/c,x*=a/c),l+u>o&&(c=l+u,l*=o/c,u*=o/c),s+x>o&&(c=s+x,s*=o/c,x*=o/c),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+o-u),u!==0&&e.arc(r+a-u,n+o-u,u,0,Math.PI/2),e.lineTo(r+x,n+o),x!==0&&e.arc(r+x,n+o-x,x,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 La=Math.round;function a1(e,t,r){if(t){var n=t.x1,a=t.x2,o=t.y1,i=t.y2;e.x1=n,e.x2=a,e.y1=o,e.y2=i;var s=r&&r.lineWidth;return s&&(La(n*2)===La(a*2)&&(e.x1=e.x2=Gn(n,s,!0)),La(o*2)===La(i*2)&&(e.y1=e.y2=Gn(o,s,!0))),e}}function o1(e,t,r){if(t){var n=t.x,a=t.y,o=t.width,i=t.height;e.x=n,e.y=a,e.width=o,e.height=i;var s=r&&r.lineWidth;return s&&(e.x=Gn(n,s,!0),e.y=Gn(a,s,!0),e.width=Math.max(Gn(n+o,s,!1)-e.x,o===0?0:1),e.height=Math.max(Gn(a+i,s,!1)-e.y,i===0?0:1)),e}}function Gn(e,t,r){if(!t)return e;var n=La(e*2);return(n+La(t))%2===0?n/2:(n+(r?1:-1))/2}var VA=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),$A={},i1=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new VA},t.prototype.buildPath=function(r,n){var a,o,i,s;if(this.subPixelOptimize){var l=o1($A,n,this.style);a=l.x,o=l.y,i=l.width,s=l.height,l.r=n.r,n=l}else a=n.x,o=n.y,i=n.width,s=n.height;n.r?RA(r,n):r.rect(a,o,i,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(ye);i1.prototype.type="rect";const Me=i1;var jh={fill:"#000"},Zh=2,zA={style:ge({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},il.style)},s1=function(e){W(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=jh,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,YA(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 Ae(0,0,0,0),n=this._children,a=[],o=null,i=0;i<n.length;i++){var s=n[i],l=s.getBoundingRect(),u=s.getLocalTransform(a);u?(r.copy(l),r.applyTransform(u),o=o||r.clone(),o.union(r)):(o=o||l.clone(),o.union(l))}this._rect=o||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||jh},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,o=r.rich||a&&{};return H(r,n),a&&o?(this._mergeRich(o,a),r.rich=o):o&&(r.rich=o),r},t.prototype._mergeRich=function(r,n){for(var a=De(n),o=0;o<a.length;o++){var i=a[o];r[i]=r[i]||{},H(r[i],n[i])}},t.prototype.getAnimationStyleProps=function(){return zA},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||qn,a=r.padding,o=rv(r),i=lA(o,r),s=_u(r),l=!!r.backgroundColor,u=i.outerHeight,x=i.outerWidth,c=i.contentWidth,d=i.lines,f=i.lineHeight,v=this._defaultStyle,g=r.x||0,p=r.y||0,m=r.align||v.align||"left",E=r.verticalAlign||v.verticalAlign||"top",y=g,B=ka(p,i.contentHeight,E);if(s||a){var D=Yo(g,x,m),A=ka(p,u,E);s&&this._renderBackground(r,r,D,A,x,u)}B+=f/2,a&&(y=tv(g,m,a),E==="top"?B+=a[0]:E==="bottom"&&(B-=a[2]));for(var _=0,C=!1,w=ev("fill"in r?r.fill:(C=!0,v.fill)),b=Qh("stroke"in r?r.stroke:!l&&(!v.autoStroke||C)?(_=Zh,v.stroke):null),F=r.textShadowBlur>0,S=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),P=i.calculatedLineHeight,T=0;T<d.length;T++){var N=this._getOrCreateChild(nc),M=N.createStyle();N.useStyle(M),M.text=d[T],M.x=y,M.y=B,m&&(M.textAlign=m),M.textBaseline="middle",M.opacity=r.opacity,M.strokeFirst=!0,F&&(M.shadowBlur=r.textShadowBlur||0,M.shadowColor=r.textShadowColor||"transparent",M.shadowOffsetX=r.textShadowOffsetX||0,M.shadowOffsetY=r.textShadowOffsetY||0),M.stroke=b,M.fill=w,b&&(M.lineWidth=r.lineWidth||_,M.lineDash=r.lineDash,M.lineDashOffset=r.lineDashOffset||0),M.font=n,Kh(M,r),B+=f,S&&N.setBoundingRect(new Ae(Yo(M.x,r.width,M.textAlign),ka(M.y,P,M.textBaseline),c,P))}},t.prototype._updateRichTexts=function(){var r=this.style,n=rv(r),a=cA(n,r),o=a.width,i=a.outerWidth,s=a.outerHeight,l=r.padding,u=r.x||0,x=r.y||0,c=this._defaultStyle,d=r.align||c.align,f=r.verticalAlign||c.verticalAlign,v=Yo(u,i,d),g=ka(x,s,f),p=v,m=g;l&&(p+=l[3],m+=l[0]);var E=p+o;_u(r)&&this._renderBackground(r,r,v,g,i,s);for(var y=!!r.backgroundColor,B=0;B<a.lines.length;B++){for(var D=a.lines[B],A=D.tokens,_=A.length,C=D.lineHeight,w=D.width,b=0,F=p,S=E,P=_-1,T=void 0;b<_&&(T=A[b],!T.align||T.align==="left");)this._placeToken(T,r,C,m,F,"left",y),w-=T.width,F+=T.width,b++;for(;P>=0&&(T=A[P],T.align==="right");)this._placeToken(T,r,C,m,S,"right",y),w-=T.width,S-=T.width,P--;for(F+=(o-(F-p)-(E-S)-w)/2;b<=P;)T=A[b],this._placeToken(T,r,C,m,F+T.width/2,"center",y),F+=T.width,b++;m+=C}},t.prototype._placeToken=function(r,n,a,o,i,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var x=r.verticalAlign,c=o+a/2;x==="top"?c=o+r.height/2:x==="bottom"&&(c=o+a-r.height/2);var d=!r.isLineHolder&&_u(u);d&&this._renderBackground(u,n,s==="right"?i-r.width:s==="center"?i-r.width/2:i,c-r.height/2,r.width,r.height);var f=!!u.backgroundColor,v=r.textPadding;v&&(i=tv(i,s,v),c-=r.height/2-v[0]-r.innerHeight/2);var g=this._getOrCreateChild(nc),p=g.createStyle();g.useStyle(p);var m=this._defaultStyle,E=!1,y=0,B=ev("fill"in u?u.fill:"fill"in n?n.fill:(E=!0,m.fill)),D=Qh("stroke"in u?u.stroke:"stroke"in n?n.stroke:!f&&!l&&(!m.autoStroke||E)?(y=Zh,m.stroke):null),A=u.textShadowBlur>0||n.textShadowBlur>0;p.text=r.text,p.x=i,p.y=c,A&&(p.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,p.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",p.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,p.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),p.textAlign=s,p.textBaseline="middle",p.font=r.font||qn,p.opacity=sn(u.opacity,n.opacity,1),Kh(p,u),D&&(p.lineWidth=sn(u.lineWidth,n.lineWidth,y),p.lineDash=le(u.lineDash,n.lineDash),p.lineDashOffset=n.lineDashOffset||0,p.stroke=D),B&&(p.fill=B);var _=r.contentWidth,C=r.contentHeight;g.setBoundingRect(new Ae(Yo(p.x,_,p.textAlign),ka(p.y,C,p.textBaseline),_,C))},t.prototype._renderBackground=function(r,n,a,o,i,s){var l=r.backgroundColor,u=r.borderWidth,x=r.borderColor,c=l&&l.image,d=l&&!c,f=r.borderRadius,v=this,g,p;if(d||r.lineHeight||u&&x){g=this._getOrCreateChild(Me),g.useStyle(g.createStyle()),g.style.fill=null;var m=g.shape;m.x=a,m.y=o,m.width=i,m.height=s,m.r=f,g.dirtyShape()}if(d){var E=g.style;E.fill=l||null,E.fillOpacity=le(r.fillOpacity,1)}else if(c){p=this._getOrCreateChild(pn),p.onload=function(){v.dirtyStyle()};var y=p.style;y.image=l.image,y.x=a,y.y=o,y.width=i,y.height=s}if(u&&x){var E=g.style;E.lineWidth=u,E.stroke=x,E.strokeOpacity=le(r.strokeOpacity,1),E.lineDash=r.borderDash,E.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(E.strokeFirst=!0,E.lineWidth*=2)}var B=(g||p).style;B.shadowBlur=r.shadowBlur||0,B.shadowColor=r.shadowColor||"transparent",B.shadowOffsetX=r.shadowOffsetX||0,B.shadowOffsetY=r.shadowOffsetY||0,B.opacity=sn(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return WA(r)&&(n=[r.fontStyle,r.fontWeight,UA(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&hr(n)||r.textFont||r.font},t}(aa),GA={left:!0,right:1,center:1},HA={top:1,bottom:1,middle:1},qh=["fontStyle","fontWeight","fontSize","fontFamily"];function UA(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?cf+"px":e+"px"}function Kh(e,t){for(var r=0;r<qh.length;r++){var n=qh[r],a=t[n];a!=null&&(e[n]=a)}}function WA(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function YA(e){return Jh(e),k(e.rich,Jh),e}function Jh(e){if(e){e.font=s1.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||GA[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||HA[r]?r:"top";var n=e.padding;n&&(e.padding=d9(e.padding))}}function Qh(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function ev(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function tv(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function rv(e){var t=e.text;return t!=null&&(t+=""),t}function _u(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const Ze=s1;var me=Te(),XA=function(e,t,r,n){if(n){var a=me(n);a.dataIndex=r,a.dataType=t,a.seriesIndex=e,a.ssrType="chart",n.type==="group"&&n.traverse(function(o){var i=me(o);i.seriesIndex=e,i.dataIndex=r,i.dataType=t,i.ssrType="chart"})}},nv=1,av={},l1=Te(),bf=Te(),Sf=0,sl=1,ll=2,yt=["emphasis","blur","select"],u0=["normal","emphasis","blur","select"],jA=10,ZA=9,Yn="highlight",zs="downplay",ii="select",Gs="unselect",si="toggleSelect";function ga(e){return e!=null&&e!=="none"}function ul(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function u1(e){ul(e,"emphasis",ll)}function x1(e){e.hoverState===ll&&ul(e,"normal",Sf)}function kf(e){ul(e,"blur",sl)}function c1(e){e.hoverState===sl&&ul(e,"normal",Sf)}function qA(e){e.selected=!0}function KA(e){e.selected=!1}function ov(e,t,r){t(e,r)}function $r(e,t,r){ov(e,t,r),e.isGroup&&e.traverse(function(n){ov(n,t,r)})}function iv(e,t){switch(t){case"emphasis":e.hoverState=ll;break;case"normal":e.hoverState=Sf;break;case"blur":e.hoverState=sl;break;case"select":e.selected=!0}}function JA(e,t,r,n){for(var a=e.style,o={},i=0;i<t.length;i++){var s=t[i],l=a[s];o[s]=l??(n&&n[s])}for(var i=0;i<e.animators.length;i++){var u=e.animators[i];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(o,t)}return o}function QA(e,t,r,n){var a=r&&pe(r,"select")>=0,o=!1;if(e instanceof ye){var i=l1(e),s=a&&i.selectFill||i.normalFill,l=a&&i.selectStroke||i.normalStroke;if(ga(s)||ga(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(o=!0,n=H({},n),u=H({},u),u.fill=s):!ga(u.fill)&&ga(s)?(o=!0,n=H({},n),u=H({},u),u.fill=Bh(s)):!ga(u.stroke)&&ga(l)&&(o||(n=H({},n),u=H({},u)),u.stroke=Bh(l)),n.style=u}}if(n&&n.z2==null){o||(n=H({},n));var x=e.z2EmphasisLift;n.z2=e.z2+(x??jA)}return n}function eD(e,t,r){if(r&&r.z2==null){r=H({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??ZA)}return r}function tD(e,t,r){var n=pe(e.currentStates,t)>=0,a=e.style.opacity,o=n?null:JA(e,["opacity"],t,{opacity:1});r=r||{};var i=r.style||{};return i.opacity==null&&(r=H({},r),i=H({opacity:n?a:o.opacity*.1},i),r.style=i),r}function wu(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return QA(this,e,t,r);if(e==="blur")return tD(this,e,r);if(e==="select")return eD(this,e,r)}return r}function f1(e){e.stateProxy=wu;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=wu),r&&(r.stateProxy=wu)}function sv(e,t){!p1(e,t)&&!e.__highByOuter&&$r(e,u1)}function lv(e,t){!p1(e,t)&&!e.__highByOuter&&$r(e,x1)}function yi(e,t){e.__highByOuter|=1<<(t||0),$r(e,u1)}function Ci(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&$r(e,x1)}function d1(e){$r(e,kf)}function Tf(e){$r(e,c1)}function h1(e){$r(e,qA)}function v1(e){$r(e,KA)}function p1(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function g1(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(a,o){var i=bf(o),s=a==="series",l=s?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!s&&n.push(l),i.isBlured&&(l.group.traverse(function(u){c1(u)}),s&&r.push(o)),i.isBlured=!1}),k(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,t)})}function ac(e,t,r,n){var a=n.getModel();r=r||"coordinateSystem";function o(u,x){for(var c=0;c<x.length;c++){var d=u.getItemGraphicEl(x[c]);d&&Tf(d)}}if(e!=null&&!(!t||t==="none")){var i=a.getSeriesByIndex(e),s=i.coordinateSystem;s&&s.master&&(s=s.master);var l=[];a.eachSeries(function(u){var x=i===u,c=u.coordinateSystem;c&&c.master&&(c=c.master);var d=c&&s?c===s:x;if(!(r==="series"&&!x||r==="coordinateSystem"&&!d||t==="series"&&x)){var f=n.getViewOfSeriesModel(u);if(f.group.traverse(function(p){p.__highByOuter&&x&&t==="self"||kf(p)}),dt(t))o(u.getData(),t);else if(re(t))for(var v=De(t),g=0;g<v.length;g++)o(u.getData(v[g]),t[v[g]]);l.push(u),bf(u).isBlured=!0}}),a.eachComponent(function(u,x){if(u!=="series"){var c=n.getViewOfComponentModel(x);c&&c.toggleBlurSeries&&c.toggleBlurSeries(l,!0,a)}})}}function oc(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){bf(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(o){kf(o)})}}}function rD(e,t,r){var n=e.seriesIndex,a=e.getData(t.dataType);if(!a){process.env.NODE_ENV!=="production"&&it("Unknown dataType "+t.dataType);return}var o=Kn(a,t);o=(Y(o)?o[0]:o)||0;var i=a.getItemGraphicEl(o);if(!i)for(var s=a.count(),l=0;!i&&l<s;)i=a.getItemGraphicEl(l++);if(i){var u=me(i);ac(n,u.focus,u.blurScope,r)}else{var x=e.get(["emphasis","focus"]),c=e.get(["emphasis","blurScope"]);x!=null&&ac(n,x,c,r)}}function Nf(e,t,r,n){var a={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return a;var o=n.getModel().getComponent(e,t);if(!o)return a;var i=n.getViewOfComponentModel(o);if(!i||!i.findHighDownDispatchers)return a;for(var s=i.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(process.env.NODE_ENV!=="production"&&!Ja(s[u])&&it("param should be highDownDispatcher"),me(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function nD(e,t,r){process.env.NODE_ENV!=="production"&&!Ja(e)&&it("param should be highDownDispatcher");var n=me(e),a=Nf(n.componentMainType,n.componentIndex,n.componentHighDownName,r),o=a.dispatchers,i=a.focusSelf;o?(i&&oc(n.componentMainType,n.componentIndex,r),k(o,function(s){return sv(s,t)})):(ac(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&oc(n.componentMainType,n.componentIndex,r),sv(e,t))}function aD(e,t,r){process.env.NODE_ENV!=="production"&&!Ja(e)&&it("param should be highDownDispatcher"),g1(r);var n=me(e),a=Nf(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?k(a,function(o){return lv(o,t)}):lv(e,t)}function oD(e,t,r){if(ic(t)){var n=t.dataType,a=e.getData(n),o=Kn(a,t);Y(o)||(o=[o]),e[t.type===si?"toggleSelect":t.type===ii?"select":"unselect"](o,n)}}function uv(e){var t=e.getAllData();k(t,function(r){var n=r.data,a=r.type;n.eachItemGraphicEl(function(o,i){e.isSelected(i,a)?h1(o):v1(o)})})}function iD(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();k(n,function(a){a.data;var o=a.type,i=r.getSelectedDataIndices();if(i.length>0){var s={dataIndex:i,seriesIndex:r.seriesIndex};o!=null&&(s.dataType=o),t.push(s)}})}),t}function x0(e,t,r){m1(e,!0),$r(e,f1),lD(e,t,r)}function sD(e){m1(e,!1)}function Qn(e,t,r,n){n?sD(e):x0(e,t,r)}function lD(e,t,r){var n=me(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var xv=["emphasis","blur","select"],uD={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function c0(e,t,r,n){r=r||"itemStyle";for(var a=0;a<xv.length;a++){var o=xv[a],i=t.getModel([o,r]),s=e.ensureState(o);s.style=n?n(i):i[uD[r]]()}}function m1(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 Ja(e){return!!(e&&e.__highDownDispatcher)}function xD(e){var t=av[e];return t==null&&nv<=32&&(t=av[e]=nv++),t}function ic(e){var t=e.type;return t===ii||t===Gs||t===si}function cv(e){var t=e.type;return t===Yn||t===zs}function cD(e){var t=l1(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=Jn.CMD,fD=[[],[],[]],fv=Math.sqrt,dD=Math.atan2;function hD(e,t){if(t){var r=e.data,n=e.len(),a,o,i,s,l,u,x=ma.M,c=ma.C,d=ma.L,f=ma.R,v=ma.A,g=ma.Q;for(i=0,s=0;i<n;){switch(a=r[i++],s=i,o=0,a){case x:o=1;break;case d:o=1;break;case c:o=3;break;case g:o=2;break;case v:var p=t[4],m=t[5],E=fv(t[0]*t[0]+t[1]*t[1]),y=fv(t[2]*t[2]+t[3]*t[3]),B=dD(-t[1]/y,t[0]/E);r[i]*=E,r[i++]+=p,r[i]*=y,r[i++]+=m,r[i++]*=E,r[i++]*=y,r[i++]+=B,r[i++]+=B,i+=2,s=i;break;case f:u[0]=r[i++],u[1]=r[i++],Gt(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[i++],u[1]+=r[i++],Gt(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<o;l++){var D=fD[l];D[0]=r[i++],D[1]=r[i++],Gt(D,D,t),r[s++]=D[0],r[s++]=D[1]}}e.increaseVersion()}}var Fu=Math.sqrt,os=Math.sin,is=Math.cos,bo=Math.PI;function dv(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function sc(e,t){return(e[0]*t[0]+e[1]*t[1])/(dv(e)*dv(t))}function hv(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(sc(e,t))}function vv(e,t,r,n,a,o,i,s,l,u,x){var c=l*(bo/180),d=is(c)*(e-r)/2+os(c)*(t-n)/2,f=-1*os(c)*(e-r)/2+is(c)*(t-n)/2,v=d*d/(i*i)+f*f/(s*s);v>1&&(i*=Fu(v),s*=Fu(v));var g=(a===o?-1:1)*Fu((i*i*(s*s)-i*i*(f*f)-s*s*(d*d))/(i*i*(f*f)+s*s*(d*d)))||0,p=g*i*f/s,m=g*-s*d/i,E=(e+r)/2+is(c)*p-os(c)*m,y=(t+n)/2+os(c)*p+is(c)*m,B=hv([1,0],[(d-p)/i,(f-m)/s]),D=[(d-p)/i,(f-m)/s],A=[(-1*d-p)/i,(-1*f-m)/s],_=hv(D,A);if(sc(D,A)<=-1&&(_=bo),sc(D,A)>=1&&(_=0),_<0){var C=Math.round(_/bo*1e6)/1e6;_=bo*2+C%2*bo}x.addData(u,E,y,i,s,B,_,c,o)}var vD=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,pD=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function gD(e){var t=new Jn;if(!e)return t;var r=0,n=0,a=r,o=n,i,s=Jn.CMD,l=e.match(vD);if(!l)return t;for(var u=0;u<l.length;u++){for(var x=l[u],c=x.charAt(0),d=void 0,f=x.match(pD)||[],v=f.length,g=0;g<v;g++)f[g]=parseFloat(f[g]);for(var p=0;p<v;){var m=void 0,E=void 0,y=void 0,B=void 0,D=void 0,A=void 0,_=void 0,C=r,w=n,b=void 0,F=void 0;switch(c){case"l":r+=f[p++],n+=f[p++],d=s.L,t.addData(d,r,n);break;case"L":r=f[p++],n=f[p++],d=s.L,t.addData(d,r,n);break;case"m":r+=f[p++],n+=f[p++],d=s.M,t.addData(d,r,n),a=r,o=n,c="l";break;case"M":r=f[p++],n=f[p++],d=s.M,t.addData(d,r,n),a=r,o=n,c="L";break;case"h":r+=f[p++],d=s.L,t.addData(d,r,n);break;case"H":r=f[p++],d=s.L,t.addData(d,r,n);break;case"v":n+=f[p++],d=s.L,t.addData(d,r,n);break;case"V":n=f[p++],d=s.L,t.addData(d,r,n);break;case"C":d=s.C,t.addData(d,f[p++],f[p++],f[p++],f[p++],f[p++],f[p++]),r=f[p-2],n=f[p-1];break;case"c":d=s.C,t.addData(d,f[p++]+r,f[p++]+n,f[p++]+r,f[p++]+n,f[p++]+r,f[p++]+n),r+=f[p-2],n+=f[p-1];break;case"S":m=r,E=n,b=t.len(),F=t.data,i===s.C&&(m+=r-F[b-4],E+=n-F[b-3]),d=s.C,C=f[p++],w=f[p++],r=f[p++],n=f[p++],t.addData(d,m,E,C,w,r,n);break;case"s":m=r,E=n,b=t.len(),F=t.data,i===s.C&&(m+=r-F[b-4],E+=n-F[b-3]),d=s.C,C=r+f[p++],w=n+f[p++],r+=f[p++],n+=f[p++],t.addData(d,m,E,C,w,r,n);break;case"Q":C=f[p++],w=f[p++],r=f[p++],n=f[p++],d=s.Q,t.addData(d,C,w,r,n);break;case"q":C=f[p++]+r,w=f[p++]+n,r+=f[p++],n+=f[p++],d=s.Q,t.addData(d,C,w,r,n);break;case"T":m=r,E=n,b=t.len(),F=t.data,i===s.Q&&(m+=r-F[b-4],E+=n-F[b-3]),r=f[p++],n=f[p++],d=s.Q,t.addData(d,m,E,r,n);break;case"t":m=r,E=n,b=t.len(),F=t.data,i===s.Q&&(m+=r-F[b-4],E+=n-F[b-3]),r+=f[p++],n+=f[p++],d=s.Q,t.addData(d,m,E,r,n);break;case"A":y=f[p++],B=f[p++],D=f[p++],A=f[p++],_=f[p++],C=r,w=n,r=f[p++],n=f[p++],d=s.A,vv(C,w,r,n,A,_,y,B,D,d,t);break;case"a":y=f[p++],B=f[p++],D=f[p++],A=f[p++],_=f[p++],C=r,w=n,r+=f[p++],n+=f[p++],d=s.A,vv(C,w,r,n,A,_,y,B,D,d,t);break}}(c==="z"||c==="Z")&&(d=s.Z,t.addData(d),r=a,n=o),i=d}return t.toStatic(),t}var E1=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(ye);function y1(e){return e.setData!=null}function C1(e,t){var r=gD(e),n=H({},t);return n.buildPath=function(a){if(y1(a)){a.setData(r.data);var o=a.getContext();o&&a.rebuildPath(o,1)}else{var o=a;r.rebuildPath(o,1)}},n.applyTransform=function(a){hD(r,a),this.dirtyShape()},n}function mD(e,t){return new E1(C1(e,t))}function ED(e,t){var r=C1(e,t),n=function(a){W(o,a);function o(i){var s=a.call(this,i)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return o}(E1);return n}function yD(e,t){for(var r=[],n=e.length,a=0;a<n;a++){var o=e[a];r.push(o.getUpdatedPathProxy(!0))}var i=new ye(t);return i.createPathProxy(),i.buildPath=function(s){if(y1(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},i}var CD=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),B1=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new CD},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}(ye);B1.prototype.type="circle";const Pf=B1;var BD=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),A1=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new BD},t.prototype.buildPath=function(r,n){var a=.5522848,o=n.cx,i=n.cy,s=n.rx,l=n.ry,u=s*a,x=l*a;r.moveTo(o-s,i),r.bezierCurveTo(o-s,i-x,o-u,i-l,o,i-l),r.bezierCurveTo(o+u,i-l,o+s,i-x,o+s,i),r.bezierCurveTo(o+s,i+x,o+u,i+l,o,i+l),r.bezierCurveTo(o-u,i+l,o-s,i+x,o-s,i),r.closePath()},t}(ye);A1.prototype.type="ellipse";const D1=A1;var _1=Math.PI,bu=_1*2,Nn=Math.sin,Ea=Math.cos,AD=Math.acos,et=Math.atan2,pv=Math.abs,li=Math.sqrt,Zo=Math.max,ur=Math.min,Yt=1e-4;function DD(e,t,r,n,a,o,i,s){var l=r-e,u=n-t,x=i-a,c=s-o,d=c*l-x*u;if(!(d*d<Yt))return d=(x*(t-o)-c*(e-a))/d,[e+d*l,t+d*u]}function ss(e,t,r,n,a,o,i){var s=e-r,l=t-n,u=(i?o:-o)/li(s*s+l*l),x=u*l,c=-u*s,d=e+x,f=t+c,v=r+x,g=n+c,p=(d+v)/2,m=(f+g)/2,E=v-d,y=g-f,B=E*E+y*y,D=a-o,A=d*g-v*f,_=(y<0?-1:1)*li(Zo(0,D*D*B-A*A)),C=(A*y-E*_)/B,w=(-A*E-y*_)/B,b=(A*y+E*_)/B,F=(-A*E+y*_)/B,S=C-p,P=w-m,T=b-p,N=F-m;return S*S+P*P>T*T+N*N&&(C=b,w=F),{cx:C,cy:w,x0:-x,y0:-c,x1:C*(a/D-1),y1:w*(a/D-1)}}function _D(e){var t;if(Y(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 wD(e,t){var r,n=Zo(t.r,0),a=Zo(t.r0||0,0),o=n>0,i=a>0;if(!(!o&&!i)){if(o||(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 x=t.cx,c=t.cy,d=!!t.clockwise,f=pv(u-l),v=f>bu&&f%bu;if(v>Yt&&(f=v),!(n>Yt))e.moveTo(x,c);else if(f>bu-Yt)e.moveTo(x+n*Ea(l),c+n*Nn(l)),e.arc(x,c,n,l,u,!d),a>Yt&&(e.moveTo(x+a*Ea(u),c+a*Nn(u)),e.arc(x,c,a,u,l,d));else{var g=void 0,p=void 0,m=void 0,E=void 0,y=void 0,B=void 0,D=void 0,A=void 0,_=void 0,C=void 0,w=void 0,b=void 0,F=void 0,S=void 0,P=void 0,T=void 0,N=n*Ea(l),M=n*Nn(l),L=a*Ea(u),O=a*Nn(u),V=f>Yt;if(V){var $=t.cornerRadius;$&&(r=_D($),g=r[0],p=r[1],m=r[2],E=r[3]);var I=pv(n-a)/2;if(y=ur(I,m),B=ur(I,E),D=ur(I,g),A=ur(I,p),w=_=Zo(y,B),b=C=Zo(D,A),(_>Yt||C>Yt)&&(F=n*Ea(u),S=n*Nn(u),P=a*Ea(l),T=a*Nn(l),f<_1)){var U=DD(N,M,P,T,F,S,L,O);if(U){var j=N-U[0],G=M-U[1],he=F-U[0],ee=S-U[1],te=1/Nn(AD((j*he+G*ee)/(li(j*j+G*G)*li(he*he+ee*ee)))/2),ie=li(U[0]*U[0]+U[1]*U[1]);w=ur(_,(n-ie)/(te+1)),b=ur(C,(a-ie)/(te-1))}}}if(!V)e.moveTo(x+N,c+M);else if(w>Yt){var ce=ur(m,w),de=ur(E,w),Z=ss(P,T,N,M,n,ce,d),Q=ss(F,S,L,O,n,de,d);e.moveTo(x+Z.cx+Z.x0,c+Z.cy+Z.y0),w<_&&ce===de?e.arc(x+Z.cx,c+Z.cy,w,et(Z.y0,Z.x0),et(Q.y0,Q.x0),!d):(ce>0&&e.arc(x+Z.cx,c+Z.cy,ce,et(Z.y0,Z.x0),et(Z.y1,Z.x1),!d),e.arc(x,c,n,et(Z.cy+Z.y1,Z.cx+Z.x1),et(Q.cy+Q.y1,Q.cx+Q.x1),!d),de>0&&e.arc(x+Q.cx,c+Q.cy,de,et(Q.y1,Q.x1),et(Q.y0,Q.x0),!d))}else e.moveTo(x+N,c+M),e.arc(x,c,n,l,u,!d);if(!(a>Yt)||!V)e.lineTo(x+L,c+O);else if(b>Yt){var ce=ur(g,b),de=ur(p,b),Z=ss(L,O,F,S,a,-de,d),Q=ss(N,M,P,T,a,-ce,d);e.lineTo(x+Z.cx+Z.x0,c+Z.cy+Z.y0),b<C&&ce===de?e.arc(x+Z.cx,c+Z.cy,b,et(Z.y0,Z.x0),et(Q.y0,Q.x0),!d):(de>0&&e.arc(x+Z.cx,c+Z.cy,de,et(Z.y0,Z.x0),et(Z.y1,Z.x1),!d),e.arc(x,c,a,et(Z.cy+Z.y1,Z.cx+Z.x1),et(Q.cy+Q.y1,Q.cx+Q.x1),d),ce>0&&e.arc(x+Q.cx,c+Q.cy,ce,et(Q.y1,Q.x1),et(Q.y0,Q.x0),!d))}else e.lineTo(x+L,c+O),e.arc(x,c,a,u,l,d)}e.closePath()}}}var FD=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}(),w1=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new FD},t.prototype.buildPath=function(r,n){wD(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(ye);w1.prototype.type="sector";const oa=w1;var bD=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),F1=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new bD},t.prototype.buildPath=function(r,n){var a=n.cx,o=n.cy,i=Math.PI*2;r.moveTo(a+n.r,o),r.arc(a,o,n.r,0,i,!1),r.moveTo(a+n.r0,o),r.arc(a,o,n.r0,0,i,!0)},t}(ye);F1.prototype.type="ring";const b1=F1;function SD(e,t,r,n){var a=[],o=[],i=[],s=[],l,u,x,c;if(n){x=[1/0,1/0],c=[-1/0,-1/0];for(var d=0,f=e.length;d<f;d++)Pa(x,x,e[d]),Ma(c,c,e[d]);Pa(x,x,n[0]),Ma(c,c,n[1])}for(var d=0,f=e.length;d<f;d++){var v=e[d];if(r)l=e[d?d-1:f-1],u=e[(d+1)%f];else if(d===0||d===f-1){a.push(lB(e[d]));continue}else l=e[d-1],u=e[d+1];g9(o,u,l),Wl(o,o,t);var g=Lx(v,l),p=Lx(v,u),m=g+p;m!==0&&(g/=m,p/=m),Wl(i,o,-g),Wl(s,o,p);var E=ah([],v,i),y=ah([],v,s);n&&(Ma(E,E,x),Pa(E,E,c),Ma(y,y,x),Pa(y,y,c)),a.push(E),a.push(y)}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 o=SD(a,n,r,t.smoothConstraint);e.moveTo(a[0][0],a[0][1]);for(var i=a.length,s=0;s<(r?i:i-1);s++){var l=o[s*2],u=o[s*2+1],x=a[(s+1)%i];e.bezierCurveTo(l[0],l[1],u[0],u[1],x[0],x[1])}}else{e.moveTo(a[0][0],a[0][1]);for(var s=1,c=a.length;s<c;s++)e.lineTo(a[s][0],a[s][1])}r&&e.closePath()}}var kD=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),k1=function(e){W(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new kD},t.prototype.buildPath=function(r,n){S1(r,n,!0)},t}(ye);k1.prototype.type="polygon";const Mf=k1;var TD=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),so=function(e){W(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 TD},t.prototype.buildPath=function(r,n){S1(r,n,!1)},t}(ye);so.prototype.type="polyline";var ND={},PD=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),T1=function(e){W(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 PD},t.prototype.buildPath=function(r,n){var a,o,i,s;if(this.subPixelOptimize){var l=a1(ND,n,this.style);a=l.x1,o=l.y1,i=l.x2,s=l.y2}else a=n.x1,o=n.y1,i=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(a,o),u<1&&(i=a*(1-u)+i*u,s=o*(1-u)+s*u),r.lineTo(i,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}(ye);T1.prototype.type="line";const dn=T1;var vt=[],MD=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 gv(e,t,r){var n=e.cpx2,a=e.cpy2;return n!=null||a!=null?[(r?ph:Ue)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?ph:Ue)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?gh:rt)(e.x1,e.cpx1,e.x2,t),(r?gh:rt)(e.y1,e.cpy1,e.y2,t)]}var N1=function(e){W(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 MD},t.prototype.buildPath=function(r,n){var a=n.x1,o=n.y1,i=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,x=n.cpx2,c=n.cpy2,d=n.percent;d!==0&&(r.moveTo(a,o),x==null||c==null?(d<1&&(t0(a,l,i,d,vt),l=vt[1],i=vt[2],t0(o,u,s,d,vt),u=vt[1],s=vt[2]),r.quadraticCurveTo(l,u,i,s)):(d<1&&(e0(a,l,x,i,d,vt),l=vt[1],x=vt[2],i=vt[3],e0(o,u,c,s,d,vt),u=vt[1],c=vt[2],s=vt[3]),r.bezierCurveTo(l,u,x,c,i,s)))},t.prototype.pointAt=function(r){return gv(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=gv(this.shape,r,!0);return vf(n,n)},t}(ye);N1.prototype.type="bezier-curve";const If=N1;var ID=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}(),P1=function(e){W(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 ID},t.prototype.buildPath=function(r,n){var a=n.cx,o=n.cy,i=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,x=Math.cos(s),c=Math.sin(s);r.moveTo(x*i+a,c*i+o),r.arc(a,o,i,s,l,!u)},t}(ye);P1.prototype.type="arc";const Lf=P1;var LD=function(e){W(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||[],o=0;o<a.length;o++)a[o].buildPath(r,a[o].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),ye.prototype.getBoundingRect.call(this)},t}(ye);const OD=LD;var RD=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}();const M1=RD;var I1=function(e){W(t,e);function t(r,n,a,o,i,s){var l=e.call(this,i)||this;return l.x=r??0,l.y=n??0,l.x2=a??1,l.y2=o??0,l.type="linear",l.global=s||!1,l}return t}(M1),VD=function(e){W(t,e);function t(r,n,a,o,i){var s=e.call(this,o)||this;return s.x=r??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=i||!1,s}return t}(M1);const $D=VD;var Pn=[0,0],Mn=[0,0],ls=new fe,us=new fe,zD=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new fe;for(var n=0;n<2;n++)this._axes[n]=new fe;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,a=this._axes,o=t.x,i=t.y,s=o+t.width,l=i+t.height;if(n[0].set(o,i),n[1].set(s,i),n[2].set(s,l),n[3].set(o,l),r)for(var u=0;u<4;u++)n[u].transform(r);fe.sub(a[0],n[1],n[0]),fe.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||fe.copy(r,n?ls:us),n},e.prototype._intersectCheckOneSide=function(t,r,n,a,o,i){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,Mn),Pn[1]<Mn[0]||Pn[0]>Mn[1]){if(s=!1,o)return s;var x=Math.abs(Mn[0]-Pn[1]),c=Math.abs(Pn[0]-Mn[1]);Math.min(x,c)>a.len()&&(x<c?fe.scale(a,u,-x*i):fe.scale(a,u,c*i))}else if(n){var x=Math.abs(Mn[0]-Pn[1]),c=Math.abs(Pn[0]-Mn[1]);Math.min(x,c)<n.len()&&(x<c?fe.scale(n,u,x*i):fe.scale(n,u,-c*i))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var a=this._axes[t],o=this._origin,i=r[0].dot(a)+o[t],s=i,l=i,u=1;u<r.length;u++){var x=r[u].dot(a)+o[t];s=Math.min(x,s),l=Math.max(x,l)}n[0]=s,n[1]=l},e}();const f0=zD;var GD=[],HD=function(e){W(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 Ae(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var a=this._displayables[n],o=a.getBoundingRect().clone();a.needLocalTransform()&&o.applyTransform(a.getLocalTransform(GD)),r.union(o)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var a=this.transformCoordToLocal(r,n),o=this.getBoundingRect();if(o.contain(a[0],a[1]))for(var i=0;i<this._displayables.length;i++){var s=this._displayables[i];if(s.contain(r,n))return!0}return!1},t}(aa);const UD=HD;var WD=Te();function Of(e,t,r,n,a){var o;if(t&&t.ecModel){var i=t.ecModel.getUpdatePayload();o=i&&i.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,x=void 0,c=void 0;n?(u=le(n.duration,200),x=le(n.easing,"cubicOut"),c=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),x=t.getShallow(l?"animationEasingUpdate":"animationEasing"),c=t.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(u=o.duration),o.easing!=null&&(x=o.easing),o.delay!=null&&(c=o.delay)),xe(c)&&(c=c(r,a)),xe(u)&&(u=u(r));var d={duration:u||0,delay:c,easing:x};return d}else return null}function Rf(e,t,r,n,a,o,i){var s=!1,l;xe(a)?(i=o,o=a,a=null):re(a)&&(o=a.cb,i=a.during,s=a.isFrom,l=a.removeOpt,a=a.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var x=Of(e,n,a,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,a):null);if(x&&x.duration>0){var c=x.duration,d=x.delay,f=x.easing,v={duration:c,delay:d||0,easing:f,done:o,force:!!o||!!i,setToFinal:!u,scope:e,during:i};s?t.animateFrom(r,v):t.animateTo(r,v)}else t.stopAnimation(),!s&&t.attr(r),i&&i(1),o&&o()}function st(e,t,r,n,a,o){Rf("update",e,t,r,n,a,o)}function bt(e,t,r,n,a,o){Rf("enter",e,t,r,n,a,o)}function ui(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 d0(e,t,r,n,a,o){ui(e)||Rf("leave",e,t,r,n,a,o)}function mv(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),d0(e,{style:{opacity:0}},t,r,n)}function h0(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(a){a.isGroup||mv(a,t,r,n)}):mv(e,t,r,n)}function Vf(e){WD(e).oldStyle=e.style}var v0=Math.max,p0=Math.min,lc={};function YD(e){return ye.extend(e)}var XD=ED;function jD(e,t){return XD(e,t)}function rr(e,t){lc[e]=t}function L1(e){if(lc.hasOwnProperty(e))return lc[e]}function xl(e,t,r,n){var a=mD(e,t);return r&&(n==="center"&&(r=R1(r,a.getBoundingRect())),V1(a,r)),a}function O1(e,t,r){var n=new pn({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(a){if(r==="center"){var o={width:a.width,height:a.height};n.setStyle(R1(t,o))}}});return n}function R1(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 o=e.x+e.width/2,i=e.y+e.height/2;return{x:o-n/2,y:i-a/2,width:n,height:a}}var ZD=yD;function V1(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function Bi(e,t){return a1(e,e,{lineWidth:t}),e}function qD(e){return o1(e.shape,e.shape,e.style),e}var KD=Gn;function $1(e,t){for(var r=gf([]);e&&e!==t;)Va(r,e.getLocalTransform(),r),e=e.parent;return r}function Ai(e,t,r){return t&&!dt(t)&&(t=Cf.getLocalTransform(t)),r&&(t=Ef([],t)),Gt([],e,t)}function z1(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]),o=[e==="left"?-n:e==="right"?n:0,e==="top"?-a:e==="bottom"?a:0];return o=Ai(o,t,r),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Ev(e){return!e.isGroup}function JD(e){return e.shape!=null}function G1(e,t,r){if(!e||!t)return;function n(i){var s={};return i.traverse(function(l){Ev(l)&&l.anid&&(s[l.anid]=l)}),s}function a(i){var s={x:i.x,y:i.y,rotation:i.rotation};return JD(i)&&(s.shape=H({},i.shape)),s}var o=n(e);t.traverse(function(i){if(Ev(i)&&i.anid){var s=o[i.anid];if(s){var l=a(i);i.attr(a(s)),st(i,l,r,me(i).dataIndex)}}})}function QD(e,t){return q(e,function(r){var n=r[0];n=v0(n,t.x),n=p0(n,t.x+t.width);var a=r[1];return a=v0(a,t.y),a=p0(a,t.y+t.height),[n,a]})}function e_(e,t){var r=v0(e.x,t.x),n=p0(e.x+e.width,t.x+t.width),a=v0(e.y,t.y),o=p0(e.y+e.height,t.y+t.height);if(n>=r&&o>=a)return{x:r,y:a,width:n-r,height:o-a}}function $f(e,t,r){var n=H({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),ge(a,r),new pn(n)):xl(e.replace("path://",""),n,r,"center")}function t_(e,t,r,n,a){for(var o=0,i=a[a.length-1];o<a.length;o++){var s=a[o];if(H1(e,t,r,n,s[0],s[1],i[0],i[1]))return!0;i=s}}function H1(e,t,r,n,a,o,i,s){var l=r-e,u=n-t,x=i-a,c=s-o,d=Su(x,c,l,u);if(r_(d))return!1;var f=e-a,v=t-o,g=Su(f,v,l,u)/d;if(g<0||g>1)return!1;var p=Su(f,v,x,c)/d;return!(p<0||p>1)}function Su(e,t,r,n){return e*n-r*t}function r_(e){return e<=1e-6&&e>=-1e-6}function zf(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,a=K(t)?{formatter:t}:t,o=r.mainType,i=r.componentIndex,s={componentType:o,name:n,$vars:["name"]};s[o+"Index"]=i;var l=e.formatterParamsExtra;l&&k(De(l),function(x){X(s,x)||(s[x]=l[x],s.$vars.push(x))});var u=me(e.el);u.componentMainType=o,u.componentIndex=i,u.tooltipConfig={name:n,option:ge({content:n,formatterParams:s},a)}}function yv(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function lo(e,t){if(e)if(Y(e))for(var r=0;r<e.length;r++)yv(e[r],t);else yv(e,t)}rr("circle",Pf);rr("ellipse",D1);rr("sector",oa);rr("ring",b1);rr("polygon",Mf);rr("polyline",so);rr("rect",Me);rr("line",dn);rr("bezierCurve",If);rr("arc",Lf);const n_=Object.freeze(Object.defineProperty({__proto__:null,Arc:Lf,BezierCurve:If,BoundingRect:Ae,Circle:Pf,CompoundPath:OD,Ellipse:D1,Group:Oe,Image:pn,IncrementalDisplayable:UD,Line:dn,LinearGradient:I1,OrientedBoundingRect:f0,Path:ye,Point:fe,Polygon:Mf,Polyline:so,RadialGradient:$D,Rect:Me,Ring:b1,Sector:oa,Text:Ze,applyTransform:Ai,clipPointsByRect:QD,clipRectByRect:e_,createIcon:$f,extendPath:jD,extendShape:YD,getShapeClass:L1,getTransform:$1,groupTransition:G1,initProps:bt,isElementRemoved:ui,lineLineIntersect:H1,linePolygonIntersect:t_,makeImage:O1,makePath:xl,mergePath:ZD,registerShape:rr,removeElement:d0,removeElementWithFadeOut:h0,resizePath:V1,setTooltipConfig:zf,subPixelOptimize:KD,subPixelOptimizeLine:Bi,subPixelOptimizeRect:qD,transformDirection:z1,traverseElements:lo,updateProps:st},Symbol.toStringTag,{value:"Module"}));var cl={};function a_(e,t){for(var r=0;r<yt.length;r++){var n=yt[r],a=t[n],o=e.ensureState(n);o.style=o.style||{},o.style.text=a}var i=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(i,!0)}function Cv(e,t,r){var n=e.labelFetcher,a=e.labelDataIndex,o=e.labelDimIndex,i=t.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,o,i&&i.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=xe(e.defaultText)?e.defaultText(a,e,r):e.defaultText);for(var l={normal:s},u=0;u<yt.length;u++){var x=yt[u],c=t[x];l[x]=le(n?n.getFormattedLabel(a,x,null,o,c&&c.get("formatter")):null,s)}return l}function uo(e,t,r,n){r=r||cl;for(var a=e instanceof Ze,o=!1,i=0;i<u0.length;i++){var s=t[u0[i]];if(s&&s.getShallow("show")){o=!0;break}}var l=a?e:e.getTextContent();if(o){a||(l||(l=new Ze,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=Cv(r,t),x=t.normal,c=!!x.getShallow("show"),d=Kt(x,n&&n.normal,r,!1,!a);d.text=u.normal,a||e.setTextConfig(g0(x,r,!1));for(var i=0;i<yt.length;i++){var f=yt[i],s=t[f];if(s){var v=l.ensureState(f),g=!!le(s.getShallow("show"),c);if(g!==c&&(v.ignore=!g),v.style=Kt(s,n&&n[f],r,!0,!a),v.style.text=u[f],!a){var p=e.ensureState(f);p.textConfig=g0(s,r,!0)}}}l.silent=!!x.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!c,l.useStyle(d),l.dirty(),r.enableTextSetter&&(fl(l).setLabelText=function(m){var E=Cv(r,t,m);a_(l,E)})}else l&&(l.ignore=!0);e.dirty()}function ia(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<yt.length;n++){var a=yt[n];r[a]=e.getModel([a,t])}return r}function Kt(e,t,r,n,a){var o={};return o_(o,e,r,n,a),t&&H(o,t),o}function g0(e,t,r){t=t||{};var n={},a,o=e.getShallow("rotate"),i=le(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),o!=null&&(o*=Math.PI/180,n.rotation=o),i!=null&&(n.distance=i),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function o_(e,t,r,n,a){r=r||cl;var o=t.ecModel,i=o&&o.option.textStyle,s=i_(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var x=t.getModel(["rich",u]);_v(l[u]={},x,i,r,n,a,!1,!0)}}l&&(e.rich=l);var c=t.get("overflow");c&&(e.overflow=c);var d=t.get("minMargin");d!=null&&(e.margin=d),_v(e,t,i,r,n,a,!0,!1)}function i_(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||cl).rich;if(r){t=t||{};for(var n=De(r),a=0;a<n.length;a++){var o=n[a];t[o]=1}}e=e.parentModel}return t}var Bv=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Av=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Dv=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function _v(e,t,r,n,a,o,i,s){r=!a&&r||cl;var l=n&&n.inheritColor,u=t.getShallow("color"),x=t.getShallow("textBorderColor"),c=le(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(process.env.NODE_ENV!=="production"&&u==="auto"&&Ye("color: 'auto'","color: 'inherit'"),l?u=l:u=null),(x==="inherit"||x==="auto")&&(process.env.NODE_ENV!=="production"&&x==="auto"&&Ye("color: 'auto'","color: 'inherit'"),l?x=l:x=null),o||(u=u||r.color,x=x||r.textBorderColor),u!=null&&(e.fill=u),x!=null&&(e.stroke=x);var d=le(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var f=le(t.getShallow("textBorderType"),r.textBorderType);f!=null&&(e.lineDash=f);var v=le(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!a&&c==null&&!s&&(c=n&&n.defaultOpacity),c!=null&&(e.opacity=c),!a&&!o&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var g=0;g<Bv.length;g++){var p=Bv[g],m=le(t.getShallow(p),r[p]);m!=null&&(e[p]=m)}for(var g=0;g<Av.length;g++){var p=Av[g],m=t.getShallow(p);m!=null&&(e[p]=m)}if(e.verticalAlign==null){var E=t.getShallow("baseline");E!=null&&(e.verticalAlign=E)}if(!i||!n.disableBox){for(var g=0;g<Dv.length;g++){var p=Dv[g],m=t.getShallow(p);m!=null&&(e[p]=m)}var y=t.getShallow("borderType");y!=null&&(e.borderDash=y),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&e.backgroundColor==="auto"&&Ye("backgroundColor: 'auto'","backgroundColor: 'inherit'"),e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&e.borderColor==="auto"&&Ye("borderColor: 'auto'","borderColor: 'inherit'"),e.borderColor=l)}}function U1(e,t){var r=t&&t.getModel("textStyle");return hr([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 fl=Te();function s_(e,t,r,n){if(e){var a=fl(e);a.prevValue=a.value,a.value=r;var o=t.normal;a.valueAnimation=o.get("valueAnimation"),a.valueAnimation&&(a.precision=o.get("precision"),a.defaultInterpolatedText=n,a.statesModels=t)}}var l_=["textStyle","color"],ku=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Tu=new Ze,u_=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(l_):null)},e.prototype.getFont=function(){return U1({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<ku.length;n++)r[ku[n]]=this.getShallow(ku[n]);return Tu.useStyle(r),Tu.update(),Tu.getBoundingRect()},e}();const x_=u_;var W1=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],c_=Ei(W1),f_=function(){function e(){}return e.prototype.getLineStyle=function(t){return c_(this,t)},e}(),Y1=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],d_=Ei(Y1),h_=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return d_(this,t,r)},e}(),sa=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){Ee(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 o=this.parentModel;o&&(a=o.getShallow(t))}return a},e.prototype.getModel=function(t,r){var n=t!=null,a=n?this.parsePath(t):null,o=n?this._doGet(a):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new e(o,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(ve(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(!se.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}();Ff(sa);Q7(sa);er(sa,f_);er(sa,h_);er(sa,aA);er(sa,x_);const ot=sa;var v_=Math.round(Math.random()*10);function dl(e){return[e||"",v_++].join("_")}function p_(e){var t={};e.registerSubTypeDefaulter=function(r,n){var a=pr(r);t[a.main]=n},e.determineSubType=function(r,n){var a=n.type;if(!a){var o=pr(r).main;e.hasSubTypes(r)&&t[o]&&(a=t[o](n))}return a}}function g_(e,t){e.topologicalTravel=function(o,i,s,l){if(!o.length)return;var u=r(i),x=u.graph,c=u.noEntryList,d={};for(k(o,function(E){d[E]=!0});c.length;){var f=c.pop(),v=x[f],g=!!d[f];g&&(s.call(l,f,v.originalDeps.slice()),delete d[f]),k(v.successor,g?m:p)}k(d,function(){var E="";throw process.env.NODE_ENV!=="production"&&(E=s0("Circular dependency may exists: ",d,o,i)),new Error(E)});function p(E){x[E].entryCount--,x[E].entryCount===0&&c.push(E)}function m(E){d[E]=!0,p(E)}};function r(o){var i={},s=[];return k(o,function(l){var u=n(i,l),x=u.originalDeps=t(l),c=a(x,o);u.entryCount=c.length,u.entryCount===0&&s.push(l),k(c,function(d){pe(u.predecessor,d)<0&&u.predecessor.push(d);var f=n(i,d);pe(f.successor,d)<0&&f.successor.push(l)})}),{graph:i,noEntryList:s}}function n(o,i){return o[i]||(o[i]={predecessor:[],successor:[]}),o[i]}function a(o,i){var s=[];return k(o,function(l){pe(i,l)>=0&&s.push(l)}),s}}function hl(e,t){return Ee(Ee({},e,!0),t,!0)}const m_={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:". "}}}},E_={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 m0="ZH",Gf="EN",za=Gf,Hs={},Hf={},X1=se.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||za).toUpperCase();return e.indexOf(m0)>-1?m0:za}():za;function j1(e,t){e=e.toUpperCase(),Hf[e]=new ot(t),Hs[e]=t}function y_(e){if(K(e)){var t=Hs[e.toUpperCase()]||{};return e===m0||e===Gf?ve(t):Ee(ve(t),ve(Hs[za]),!1)}else return Ee(ve(e),ve(Hs[za]),!1)}function C_(e){return Hf[e]}function B_(){return Hf[za]}j1(Gf,m_);j1(m0,E_);var Uf=1e3,Wf=Uf*60,xi=Wf*60,zt=xi*24,wv=zt*365,qo={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}"},xs="{yyyy}-{MM}-{dd}",Fv={year:"{yyyy}",month:"{yyyy}-{MM}",day:xs,hour:xs+" "+qo.hour,minute:xs+" "+qo.minute,second:xs+" "+qo.second,millisecond:qo.none},Nu=["year","month","day","hour","minute","second","millisecond"],Z1=["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 Ga(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 A_(e){return e===Ga(e)}function D_(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function vl(e,t,r,n){var a=Or(e),o=a[Yf(r)](),i=a[Ha(r)]()+1,s=Math.floor((i-1)/3)+1,l=a[pl(r)](),u=a["get"+(r?"UTC":"")+"Day"](),x=a[Di(r)](),c=(x-1)%12+1,d=a[gl(r)](),f=a[ml(r)](),v=a[El(r)](),g=n instanceof ot?n:C_(n||X1)||B_(),p=g.getModel("time"),m=p.get("month"),E=p.get("monthAbbr"),y=p.get("dayOfWeek"),B=p.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,Hr(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[i-1]).replace(/{MMM}/g,E[i-1]).replace(/{MM}/g,Hr(i,2)).replace(/{M}/g,i+"").replace(/{dd}/g,Hr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,y[u]).replace(/{ee}/g,B[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Hr(x,2)).replace(/{H}/g,x+"").replace(/{hh}/g,Hr(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Hr(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Hr(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,Hr(v,3)).replace(/{S}/g,v+"")}function __(e,t,r,n,a){var o=null;if(K(r))o=r;else if(xe(r))o=r(e.value,t,{level:e.level});else{var i=H({},qo);if(e.level>0)for(var s=0;s<Nu.length;++s)i[Nu[s]]="{primary|"+i[Nu[s]]+"}";var l=r?r.inherit===!1?r:ge(r,i):i,u=q1(e.value,a);if(l[u])o=l[u];else if(l.inherit){for(var x=Z1.indexOf(u),s=x-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||i.none}if(Y(o)){var c=e.level==null?0:e.level>=0?e.level:o.length+e.level;c=Math.min(c,o.length-1),o=o[c]}}return vl(new Date(e.value),o,a,n)}function q1(e,t){var r=Or(e),n=r[Ha(t)]()+1,a=r[pl(t)](),o=r[Di(t)](),i=r[gl(t)](),s=r[ml(t)](),l=r[El(t)](),u=l===0,x=u&&s===0,c=x&&i===0,d=c&&o===0,f=d&&a===1,v=f&&n===1;return v?"year":f?"month":d?"day":c?"hour":x?"minute":u?"second":"millisecond"}function bv(e,t,r){var n=Se(e)?Or(e):e;switch(t=t||q1(e,r),t){case"year":return n[Yf(r)]();case"half-year":return n[Ha(r)]()>=6?1:0;case"quarter":return Math.floor((n[Ha(r)]()+1)/4);case"month":return n[Ha(r)]();case"day":return n[pl(r)]();case"half-day":return n[Di(r)]()/24;case"hour":return n[Di(r)]();case"minute":return n[gl(r)]();case"second":return n[ml(r)]();case"millisecond":return n[El(r)]()}}function Yf(e){return e?"getUTCFullYear":"getFullYear"}function Ha(e){return e?"getUTCMonth":"getMonth"}function pl(e){return e?"getUTCDate":"getDate"}function Di(e){return e?"getUTCHours":"getHours"}function gl(e){return e?"getUTCMinutes":"getMinutes"}function ml(e){return e?"getUTCSeconds":"getSeconds"}function El(e){return e?"getUTCMilliseconds":"getMilliseconds"}function w_(e){return e?"setUTCFullYear":"setFullYear"}function K1(e){return e?"setUTCMonth":"setMonth"}function J1(e){return e?"setUTCDate":"setDate"}function Q1(e){return e?"setUTCHours":"setHours"}function e8(e){return e?"setUTCMinutes":"setMinutes"}function t8(e){return e?"setUTCSeconds":"setSeconds"}function r8(e){return e?"setUTCMilliseconds":"setMilliseconds"}function n8(e){if(!z9(e))return K(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function a8(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 yl=d9;function uc(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(x){return x&&hr(x)?x:"-"}function o(x){return!!(x!=null&&!isNaN(x)&&isFinite(x))}var i=t==="time",s=e instanceof Date;if(i||s){var l=i?Or(e):e;if(isNaN(+l)){if(s)return"-"}else return vl(l,n,r)}if(t==="ordinal")return Ks(e)?a(e):Se(e)&&o(e)?e+"":"-";var u=i0(e);return o(u)?n8(u):Ks(e)?a(e):typeof e=="boolean"?e+"":"-"}var Sv=["a","b","c","d","e","f","g"],Pu=function(e,t){return"{"+e+(t??"")+"}"};function o8(e,t,r){Y(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],o=0;o<a.length;o++){var i=Sv[o];e=e.replace(Pu(i),Pu(i,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(Pu(Sv[l],s),r?Ot(u):u)}return e}function F_(e,t){var r=K(e)?{color:e,extraCssText:t}:e||{},n=r.color,a=r.type;t=r.extraCssText;var o=r.renderMode||"html";if(!n)return"";if(o==="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:'+Ot(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Ot(n)+";"+(t||"")+'"></span>';var i=r.markerId||"markerX";return{renderMode:o,content:"{"+i+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function ea(e,t){return t=t||"transparent",K(e)?e:re(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function kv(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var Us=k,b_=["left","right","top","bottom","width","height"],cs=[["width","left","right"],["height","top","bottom"]];function Xf(e,t,r,n,a){var o=0,i=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var x=l.getBoundingRect(),c=t.childAt(u+1),d=c&&c.getBoundingRect(),f,v;if(e==="horizontal"){var g=x.width+(d?-d.x+x.x:0);f=o+g,f>n||l.newline?(o=0,f=g,i+=s+r,s=x.height):s=Math.max(s,x.height)}else{var p=x.height+(d?-d.y+x.y:0);v=i+p,v>a||l.newline?(o+=s+r,i=0,v=p,s=x.width):s=Math.max(s,x.width)}l.newline||(l.x=o,l.y=i,l.markRedraw(),e==="horizontal"?o=f+r:i=v+r)})}var ci=Xf;we(Xf,"vertical");we(Xf,"horizontal");function ta(e,t,r){r=yl(r||0);var n=t.width,a=t.height,o=be(e.left,n),i=be(e.top,a),s=be(e.right,n),l=be(e.bottom,a),u=be(e.width,n),x=be(e.height,a),c=r[2]+r[0],d=r[1]+r[3],f=e.aspect;switch(isNaN(u)&&(u=n-s-d-o),isNaN(x)&&(x=a-l-c-i),f!=null&&(isNaN(u)&&isNaN(x)&&(f>n/a?u=n*.8:x=a*.8),isNaN(u)&&(u=f*x),isNaN(x)&&(x=u/f)),isNaN(o)&&(o=n-s-u-d),isNaN(i)&&(i=a-l-x-c),e.left||e.right){case"center":o=n/2-u/2-r[3];break;case"right":o=n-u-d;break}switch(e.top||e.bottom){case"middle":case"center":i=a/2-x/2-r[0];break;case"bottom":i=a-x-c;break}o=o||0,i=i||0,isNaN(u)&&(u=n-d-o-(s||0)),isNaN(x)&&(x=a-c-i-(l||0));var v=new Ae(o+r[3],i+r[0],u,x);return v.margin=r,v}function _i(e){var t=e.layoutMode||e.constructor.layoutMode;return re(t)?t:t?{type:t}:null}function Qa(e,t,r){var n=r&&r.ignoreSize;!Y(n)&&(n=[n,n]);var a=i(cs[0],0),o=i(cs[1],1);u(cs[0],e,a),u(cs[1],e,o);function i(x,c){var d={},f=0,v={},g=0,p=2;if(Us(x,function(y){v[y]=e[y]}),Us(x,function(y){s(t,y)&&(d[y]=v[y]=t[y]),l(d,y)&&f++,l(v,y)&&g++}),n[c])return l(t,x[1])?v[x[2]]=null:l(t,x[2])&&(v[x[1]]=null),v;if(g===p||!f)return v;if(f>=p)return d;for(var m=0;m<x.length;m++){var E=x[m];if(!s(d,E)&&s(e,E)){d[E]=e[E];break}}return d}function s(x,c){return x.hasOwnProperty(c)}function l(x,c){return x[c]!=null&&x[c]!=="auto"}function u(x,c,d){Us(x,function(f){c[f]=d[f]})}}function Ri(e){return S_({},e)}function S_(e,t){return t&&e&&Us(b_,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var k_=Te(),xo=function(e){W(t,e);function t(r,n,a){var o=e.call(this,r,n,a)||this;return o.uid=dl("ec_cpt_model"),o}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=_i(this),o=a?Ri(r):{},i=n.getTheme();Ee(r,i.get(this.mainType)),Ee(r,this.getDefaultOption()),a&&Qa(r,o,a)},t.prototype.mergeOption=function(r,n){Ee(this.option,r,!0);var a=_i(this);a&&Qa(this.option,r,a)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!q7(r))return r.defaultOption;var n=k_(this);if(!n.defaultOption){for(var a=[],o=r;o;){var i=o.prototype.defaultOption;i&&a.push(i),o=o.superClass}for(var s={},l=a.length-1;l>=0;l--)s=Ee(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var a=r+"Index",o=r+"Id";return Oi(this.ecModel,r,{index:this.get(a,!0),id:this.get(o,!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}(ot);j9(xo,ot);al(xo);p_(xo);g_(xo,T_);function T_(e){var t=[];return k(xo.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=q(t,function(r){return pr(r).main}),e!=="dataset"&&pe(t,"dataset")<=0&&t.unshift("dataset"),t}const Fe=xo;var i8="";typeof navigator<"u"&&(i8=navigator.platform||"");var ya="rgba(0, 0, 0, 0.2)";const N_={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:ya,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:ya,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:ya,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:ya,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:ya,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:ya,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:i8.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 xc=ue(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ut="original",Ct="arrayRows",nr="objectRows",yr="keyedColumns",Nr="typedArray",s8="unknown",Pr="column",co="row",qe={Must:1,Might:2,Not:3},l8=Te();function P_(e){l8(e).datasetMap=ue()}function M_(e,t,r){var n={},a=jf(t);if(!a||!e)return n;var o=[],i=[],s=t.ecModel,l=l8(s).datasetMap,u=a.uid+"_"+r.seriesLayoutBy,x,c;e=e.slice(),k(e,function(g,p){var m=re(g)?g:e[p]={name:g};m.type==="ordinal"&&x==null&&(x=p,c=v(m)),n[m.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});k(e,function(g,p){var m=g.name,E=v(g);if(x==null){var y=d.valueWayDim;f(n[m],y,E),f(i,y,E),d.valueWayDim+=E}else if(x===p)f(n[m],0,E),f(o,0,E);else{var y=d.categoryWayDim;f(n[m],y,E),f(i,y,E),d.categoryWayDim+=E}});function f(g,p,m){for(var E=0;E<m;E++)g.push(p+E)}function v(g){var p=g.dimsDef;return p?p.length:1}return o.length&&(n.itemName=o),i.length&&(n.seriesName=i),n}function I_(e,t,r){var n={},a=jf(e);if(!a)return n;var o=t.sourceFormat,i=t.dimensionsDefine,s;(o===nr||o===yr)&&k(i,function(x,c){(re(x)?x.name:x)==="name"&&(s=c)});var l=function(){for(var x={},c={},d=[],f=0,v=Math.min(5,r);f<v;f++){var g=x8(t.data,o,t.seriesLayoutBy,i,t.startIndex,f);d.push(g);var p=g===qe.Not;if(p&&x.v==null&&f!==s&&(x.v=f),(x.n==null||x.n===x.v||!p&&d[x.n]===qe.Not)&&(x.n=f),m(x)&&d[x.n]!==qe.Not)return x;p||(g===qe.Might&&c.v==null&&f!==s&&(c.v=f),(c.n==null||c.n===c.v)&&(c.n=f))}function m(E){return E.v!=null&&E.n!=null}return m(x)?x:m(c)?c:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function jf(e){var t=e.get("data",!0);if(!t)return Oi(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Et).models[0]}function L_(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Oi(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Et).models}function u8(e,t){return x8(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function x8(e,t,r,n,a,o){var i,s=5;if(ht(e))return qe.Not;var l,u;if(n){var x=n[o];re(x)?(l=x.name,u=x.type):K(x)&&(l=x)}if(u!=null)return u==="ordinal"?qe.Must:qe.Not;if(t===Ct){var c=e;if(r===co){for(var d=c[o],f=0;f<(d||[]).length&&f<s;f++)if((i=B(d[a+f]))!=null)return i}else for(var f=0;f<c.length&&f<s;f++){var v=c[a+f];if(v&&(i=B(v[o]))!=null)return i}}else if(t===nr){var g=e;if(!l)return qe.Not;for(var f=0;f<g.length&&f<s;f++){var p=g[f];if(p&&(i=B(p[l]))!=null)return i}}else if(t===yr){var m=e;if(!l)return qe.Not;var d=m[l];if(!d||ht(d))return qe.Not;for(var f=0;f<d.length&&f<s;f++)if((i=B(d[f]))!=null)return i}else if(t===Ut)for(var E=e,f=0;f<E.length&&f<s;f++){var p=E[f],y=Li(p);if(!Y(y))return qe.Not;if((i=B(y[o]))!=null)return i}function B(D){var A=K(D);if(D!=null&&isFinite(D)&&D!=="")return A?qe.Might:qe.Not;if(A&&D!=="-")return qe.Must}return qe.Not}var O_=ue();function R_(e,t,r){var n=O_.get(t);if(!n)return r;var a=n(e);if(!a)return r;if(process.env.NODE_ENV!=="production")for(var o=0;o<a.length;o++)oe(Ka(a[o]));return r.concat(a)}var Tv=Te();Te();var Zf=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var a=je(this.get("color",!0)),o=this.get("colorLayer",!0);return $_(this,Tv,a,o,t,r,n)},e.prototype.clearColorPalette=function(){z_(this,Tv)},e}();function V_(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 $_(e,t,r,n,a,o,i){o=o||e;var s=t(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var x=i==null||!n?r:V_(n,i);if(x=x||r,!(!x||!x.length)){var c=x[l];return a&&(u[a]=c),s.paletteIdx=(l+1)%x.length,c}}function z_(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var fs,So,Nv,Mu="\0_ec_inner",Pv=1,G_={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"},H_={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"},E0={};function U_(e){k(e,function(t,r){if(!Fe.hasClass(r)){var n=G_[r];n&&!E0[n]&&(it("Component "+r+` is used but not imported.
|
|
30
30
|
import { `+n+` } from 'echarts/components';
|
|
31
|
-
echarts.use([`+n+"]);"),
|
|
32
|
-
import { `+
|
|
33
|
-
echarts.use([`+M+"]);":"Unknown series "+D))}return}if(f==="tooltip"){if(w){process.env.NODE_ENV!=="production"&&(S||(ze("Currently only one tooltip component is allowed."),S=!0));return}w=!0}if(N&&N.constructor===A)N.name=T.keyInfo.name,N.mergeOption(b,this),N.optionUpdated(b,!1);else{var P=z({componentIndex:C},T.keyInfo);N=new A(b,this,this,P),z(N,P),T.brandNew&&(N.__requireNewView=!0),N.init(b,this,this),N.optionUpdated(null,!0)}}N?(g.push(N.option),y.push(N),_++):(g.push(void 0),y.push(void 0))},this),a[f]=g,i.set(f,y),o.set(f,_),f==="series"&&fs(this)}this._seriesIndices||fs(this)},t.prototype.getOption=function(){var r=he(this.option);return k(r,function(n,a){if(De.hasClass(a)){for(var i=He(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[Ic],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(He(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=Ig("id",i,s):o!=null?l=Ig("name",o,s):l=je(s,function(u){return!!u}),Lg(l,r)},t.prototype.findComponents=function(r){var n=r.query,a=r.mainType,i=s(n),o=i?this.queryComponents(i):je(this._componentsMap.get(a),function(u){return!!u});return l(Lg(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?je(u,r.filter):u}},t.prototype.eachComponent=function(r,n,a){var i=this._componentsMap;if(se(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=X(r)?i.get(r):Q(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=dr(r,null);return je(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 je(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return je(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){Di(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){Di(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 Di(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){Di(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=oe(a)},t.prototype.restoreData=function(r){fs(this);var n=this._componentsMap,a=[];n.each(function(i,o){De.hasClass(o)&&a.push(o)}),De.topologicalTravel(a,De.getAllClassMainTypes(),function(i){k(n.get(i),function(o){o&&(i!=="series"||!Wk(o,r))&&o.restoreData()})})},t.internalField=function(){fs=function(r){var n=r._seriesIndices=[];k(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=oe(n)},Di=function(r){if(process.env.NODE_ENV!=="production"&&!r._seriesIndices)throw new Error("Option should contains series.")},Eg=function(r,n){r.option={},r.option[Ic]=Pg,r._componentsMap=oe({series:[]}),r._componentsCount=oe();var a=n.aria;Q(a)&&a.enabled==null&&(a.enabled=!0),Yk(n,r._theme.option),_e(n,Pk,!1),r._mergeOption(n,null)}}(),t}(et);function Wk(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 Yk(e,t){var r=e.color&&!e.colorLayer;k(t,function(n,a){a==="colorLayer"&&r||De.hasClass(a)||(typeof n=="object"?e[a]=e[a]?_e(e[a],n,!1):he(n):e[a]==null&&(e[a]=n))})}function Ig(e,t,r){if(U(t)){var n=oe();return k(t,function(i){if(i!=null){var o=dr(i,null);o!=null&&n.set(i,!0)}}),je(r,function(i){return i&&n.get(i[e])})}else{var a=dr(t,null);return je(r,function(i){return i&&a!=null&&i[e]===a})}}function Lg(e,t){return t.hasOwnProperty("subType")?je(e,function(r){return r&&r.subType===t.subType}):e}function Og(e){var t=oe();return e&&k(He(e.replaceMerge),function(r){process.env.NODE_ENV!=="production"&&ne(De.hasClass(r),'"'+r+'" is not valid component main type in "replaceMerge"'),t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Kt(jd,qd);var qk=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],jk=function(){function e(t){k(qk,function(r){this[r]=te(t[r],t)},this)}return e}();const cw=jk;var Lc={},Xd=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];k(Lc,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){Lc[t]=r},e.get=function(t){return Lc[t]},e}(),Xk=/^(min|max)?(.+)$/,Zk=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(k(He(t.series),function(o){o&&o.data&&ct(o.data)&&Lf(o.data)}),k(He(t.dataset),function(o){o&&o.source&&ct(o.source)&&Lf(o.source)})),t=he(t);var a=this._optionBackup,i=Kk(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=[],he(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=he(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++)Jk(a[l].query,r,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!eE(o,this._currentMediaIndices)&&(s=q(o,function(c){return he(c===-1?i.option:a[c].option)})),this._currentMediaIndices=o,s},e}();function Kk(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&&Q(h.query)&&Q(h.query.option)&&tt("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"&&tt("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 Jk(e,t,r){var n={width:t,height:r,aspectratio:t/r},a=!0;return k(e,function(i,o){var s=o.match(Xk);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();Qk(n[u],i,l)||(a=!1)}}),a}function Qk(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function eE(e,t){return e.join(",")===t.join(",")}const tE=Zk;var xt=k,To=Q,Rg=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Oc(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=Rg.length;r<n;r++){var a=Rg[r],i=t.normal,o=t.emphasis;i&&i[a]&&(process.env.NODE_ENV!=="production"&&Ge("itemStyle.normal."+a,a),e[a]=e[a]||{},e[a].normal?_e(e[a].normal,i[a]):e[a].normal=i[a],i[a]=null),o&&o[a]&&(process.env.NODE_ENV!=="production"&&Ge("itemStyle.emphasis."+a,"emphasis."+a),e[a]=e[a]||{},e[a].emphasis?_e(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"&&qt("'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,pe(e[t],n)):e[t]=n),a&&(process.env.NODE_ENV!=="production"&&qt(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 Xi(e){Je(e,"itemStyle"),Je(e,"lineStyle"),Je(e,"areaStyle"),Je(e,"label"),Je(e,"labelLine"),Je(e,"upperLabel"),Je(e,"edgeLabel")}function Ve(e,t){var r=To(e)&&e[t],n=To(r)&&r.textStyle;if(n){process.env.NODE_ENV!=="production"&&qt("textStyle hierarchy in "+t+" has been removed since 4.0. All textStyle properties are configured in "+t+" directly now.");for(var a=0,i=Bp.length;a<i;a++){var o=Bp[a];n.hasOwnProperty(o)&&(r[o]=n[o])}}}function Et(e){e&&(Xi(e),Ve(e,"label"),e.emphasis&&Ve(e.emphasis,"label"))}function rE(e){if(To(e)){Oc(e),Xi(e),Ve(e,"label"),Ve(e,"upperLabel"),Ve(e,"edgeLabel"),e.emphasis&&(Ve(e.emphasis,"label"),Ve(e.emphasis,"upperLabel"),Ve(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Oc(t),Et(t));var r=e.markLine;r&&(Oc(r),Et(r));var n=e.markArea;n&&Et(n);var a=e.data;if(e.type==="graph"){a=a||e.nodes;var i=e.links||e.edges;if(i&&!ct(i))for(var o=0;o<i.length;o++)Et(i[o]);k(e.categories,function(u){Xi(u)})}if(a&&!ct(a))for(var o=0;o<a.length;o++)Et(a[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Et(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)U(l[o])?(Et(l[o][0]),Et(l[o][1])):Et(l[o]);e.type==="gauge"?(Ve(e,"axisLabel"),Ve(e,"title"),Ve(e,"detail")):e.type==="treemap"?(Je(e.breadcrumb,"itemStyle"),k(e.levels,function(u){Xi(u)})):e.type==="tree"&&Xi(e.leaves)}}function br(e){return U(e)?e:e?[e]:[]}function Bg(e){return(U(e)?e[0]:e)||{}}function nE(e,t){xt(br(e.series),function(n){To(n)&&rE(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),xt(r,function(n){xt(br(e[n]),function(a){a&&(Ve(a,"axisLabel"),Ve(a.axisPointer,"label"))})}),xt(br(e.parallel),function(n){var a=n&&n.parallelAxisDefault;Ve(a,"axisLabel"),Ve(a&&a.axisPointer,"label")}),xt(br(e.calendar),function(n){Je(n,"itemStyle"),Ve(n,"dayLabel"),Ve(n,"monthLabel"),Ve(n,"yearLabel")}),xt(br(e.radar),function(n){Ve(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,process.env.NODE_ENV!=="production"&&qt("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"&&qt("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&xt(n.indicator,function(a){a.text&&Ge("text","name","radar.indicator")})}),xt(br(e.geo),function(n){To(n)&&(Et(n),xt(br(n.regions),function(a){Et(a)}))}),xt(br(e.timeline),function(n){Et(n),Je(n,"label"),Je(n,"itemStyle"),Je(n,"controlStyle",!0);var a=n.data;U(a)&&k(a,function(i){Q(i)&&(Je(i,"label"),Je(i,"itemStyle"))})}),xt(br(e.toolbox),function(n){Je(n,"iconStyle"),xt(n.feature,function(a){Je(a,"iconStyle")})}),Ve(Bg(e.axisPointer),"label"),Ve(Bg(e.tooltip).axisPointer,"label")}function aE(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 iE(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 Vg(e){e&&k(oE,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var oE=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],sE=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Rc=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Ai(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<Rc.length;r++){var n=Rc[r][1],a=Rc[r][0];t[n]!=null&&(t[a]=t[n],process.env.NODE_ENV!=="production"&&Ge(n,a))}}function $g(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&Ge("label.margin","label.edgeDistance","pie"),e.edgeDistance=e.margin)}function Fg(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay,process.env.NODE_ENV!=="production"&&Ge("downplay","blur","sunburst"))}function lE(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&Ge("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),e.emphasis.focus="adjacency"))}function fw(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&fw(e[r].children,t)}function hw(e,t){nE(e,t),e.series=He(e.series),k(e.series,function(r){if(Q(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow,process.env.NODE_ENV!=="production"&&Ge("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise,process.env.NODE_ENV!=="production"&&Ge("clockWise","clockwise")),$g(r.label);var a=r.data;if(a&&!ct(a))for(var i=0;i<a.length;i++)$g(a[i]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&Ge("hoverOffset","emphasis.scaleSize"),r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=aE(r,"pointer.color");o!=null&&iE(r,"itemStyle.color",o)}else if(n==="bar"){Ai(r),Ai(r.backgroundStyle),Ai(r.emphasis);var a=r.data;if(a&&!ct(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(Ai(a[i]),Ai(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"&&Ge("highlightPolicy","emphasis.focus","sunburst"))),Fg(r),fw(r.data,Fg)}else n==="graph"||n==="sankey"?lE(r):n==="map"&&(r.mapType&&!r.map&&(process.env.NODE_ENV!=="production"&&Ge("mapType","map","map"),r.map=r.mapType),r.mapLocation&&(process.env.NODE_ENV!=="production"&&qt("`mapLocation` is not used anymore."),pe(r,r.mapLocation)));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&Ge("hoverAnimation","emphasis.scale"),r.emphasis.scale=r.hoverAnimation)),Vg(r)}}),e.dataRange&&(e.visualMap=e.dataRange),k(sE,function(r){var n=e[r];n&&(U(n)||(n=[n]),k(n,function(a){Vg(a)}))})}function uE(e){var t=oe();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(cE)}function cE(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 _=y.data.getByRawIndex(y.stackResultDimension,p);if(l==="all"||l==="positive"&&_>0||l==="negative"&&_<0||l==="samesign"&&d>=0&&_>0||l==="samesign"&&d<=0&&_<0){d=ND(d,_),m=_;break}}}return n[0]=d,n[1]=m,n})})}var bu=function(){function e(t){this.data=t.data||(t.sourceFormat===gr?{}:[]),this.sourceFormat=t.sourceFormat||ow,this.seriesLayoutBy=t.seriesLayoutBy||kr,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&&lw(this,n)===We.Must&&(a.type="ordinal")}}return e}();function Zd(e){return e instanceof bu}function ch(e,t,r){r=r||dw(e);var n=t.seriesLayoutBy,a=hE(e,r,n,t.sourceHeader,t.dimensions),i=new bu({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:he(t)});return i}function Kd(e){return new bu({data:e,sourceFormat:ct(e)?Mr:Ft})}function fE(e){return new bu({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:he(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function dw(e){var t=ow;if(ct(e))t=Mr;else if(U(e)){e.length===0&&(t=mt);for(var r=0,n=e.length;r<n;r++){var a=e[r];if(a!=null){if(U(a)||ct(a)){t=mt;break}else if(Q(a)){t=er;break}}}}else if(Q(e)){for(var i in e)if(W(e,i)&&ut(e[i])){t=gr;break}}return t}function hE(e,t,r,n,a){var i,o;if(!e)return{dimensionsDefine:zg(a),startIndex:o,dimensionsDetectedCount:i};if(t===mt){var s=e;n==="auto"||n==null?Gg(function(u){u!=null&&u!=="-"&&(X(u)?o==null&&(o=1):o=0)},r,s,10):o=Me(n)?n:n?1:0,!a&&o===1&&(a=[],Gg(function(u,c){a[c]=u!=null?u+"":""},r,s,1/0)),i=a?a.length:r===ci?s.length:s[0]?s[0].length:null}else if(t===er)a||(a=dE(e));else if(t===gr)a||(a=[],k(e,function(u,c){a.push(c)}));else if(t===Ft){var l=Lo(e[0]);i=U(l)&&l.length||1}else t===Mr&&process.env.NODE_ENV!=="production"&&ne(!!a,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:zg(a),dimensionsDetectedCount:i}}function dE(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return Te(r)}function zg(e){if(e){var t=oe();return q(e,function(r,n){r=Q(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 Gg(e,t,r,n){if(t===ci)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 vw(e){var t=e.sourceFormat;return t===er||t===gr}var Ln,On,Rn,Hg,Ug,pw=function(){function e(t,r){var n=Zd(t)?t:Kd(t);this._source=n;var a=this._data=n.data;if(n.sourceFormat===Mr){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}Ug(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;Ug=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=Hg[Jd(u,c)];if(process.env.NODE_ENV!=="production"&&ne(h,"Invalide sourceFormat: "+u),z(o,h),u===Mr)o.getItem=r,o.count=a,o.fillStorage=n;else{var p=gw(u,c);o.getItem=te(p,null,s,f,d);var m=mw(u,c);o.count=te(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],_=0;_<g;_++){var w=c[_*f+d];y[o+_]=w,w<p&&(p=w),w>m&&(m=w)}h[0]=p,h[1]=m}},a=function(){return this._data?this._data.length/this._dimSize:0};Hg=(t={},t[mt+"_"+kr]={pure:!0,appendData:i},t[mt+"_"+ci]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[er]={pure:!0,appendData:i},t[gr]={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[Mr]={persistent:!1,pure:!0,appendData:function(o){process.env.NODE_ENV!=="production"&&ne(ct(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}(),Wg=function(e,t,r,n){return e[n]},vE=(Ln={},Ln[mt+"_"+kr]=function(e,t,r,n){return e[n+t]},Ln[mt+"_"+ci]=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[er]=Wg,Ln[gr]=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]=Wg,Ln);function gw(e,t){var r=vE[Jd(e,t)];return process.env.NODE_ENV!=="production"&&ne(r,'Do not support get item on "'+e+'", "'+t+'".'),r}var Yg=function(e,t,r){return e.length},pE=(On={},On[mt+"_"+kr]=function(e,t,r){return Math.max(0,e.length-t)},On[mt+"_"+ci]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},On[er]=Yg,On[gr]=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]=Yg,On);function mw(e,t){var r=pE[Jd(e,t)];return process.env.NODE_ENV!=="production"&&ne(r,'Do not support count on "'+e+'", "'+t+'".'),r}var Bc=function(e,t,r){return e[t]},gE=(Rn={},Rn[mt]=Bc,Rn[er]=function(e,t,r){return e[r]},Rn[gr]=Bc,Rn[Ft]=function(e,t,r){var n=Lo(e);return n instanceof Array?n[t]:n},Rn[Mr]=Bc,Rn);function yw(e){var t=gE[e];return process.env.NODE_ENV!=="production"&&ne(t,'Do not support get value on "'+e+'".'),t}function Jd(e,t){return e===mt?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 yw(i)(n,o,s)}else{var l=n;return i===Ft&&(l=Lo(n)),l}}}}var mE=/\{@(.+?)\}/g,_w=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(se(i))return l.status=r,l.dimensionIndex=a,i(l);if(X(i)){var c=aw(i,l);return c.replace(mE,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)&&tt("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 qg(e){var t,r;return Q(e)?e.type?r=e:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+sl(e)):t=e,{text:t,frag:r}}function uo(e){return new yE(e)}var yE=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(_){return!(_>=1)&&(_=1),_}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"&&ne(r._outputDueEnd!=null),this._dueEnd=r._outputDueEnd):(process.env.NODE_ENV!=="production"&&ne(!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"&&ne(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){jg.reset(r,n,a,i),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:jg.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"&&ne(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}(),jg=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"&&!Me(e)&&e!=null&&e!=="-"&&(e=+Lr(e)),e==null||e===""?NaN:+e)}oe({number:function(e){return parseFloat(e)},time:function(e){return+Lr(e)},trim:function(e){return X(e)?cr(e):e}});var _E=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=Me(t)?t:ol(t),a=Me(r)?r:ol(r),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=X(t),l=X(r);s&&(n=l?t:0),l&&(a=s?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},e}(),wE=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 bE(e,t){var r=new wE,n=e.data,a=r.sourceFormat=e.sourceFormat,i=e.startIndex,o="";e.seriesLayoutBy!==kr&&(process.env.NODE_ENV!=="production"&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),st(o));var s=[],l={},u=e.dimensionsDefine;if(u)k(u,function(m,g){var y=m.name,_={index:g,name:y,displayName:m.displayName};if(s.push(_),y!=null){var w="";W(l,y)&&(process.env.NODE_ENV!=="production"&&(w='dimension name "'+y+'" duplicated.'),st(w)),l[y]=_}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=gw(a,kr);t.__isBuiltIn&&(r.getRawDataItem=function(m){return f(n,i,s,m)},r.getRawData=te(SE,null,e)),r.cloneRawData=te(CE,null,e);var d=mw(a,kr);r.count=te(d,null,n,i,s);var h=yw(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=te(TE,null,s,l),r.cloneAllDimensionInfo=te(xE,null,s),r}function SE(e){var t=e.sourceFormat;if(!Qd(t)){var r="";process.env.NODE_ENV!=="production"&&(r="`getRawData` is not supported in source format "+t),st(r)}return e.data}function CE(e){var t=e.sourceFormat,r=e.data;if(!Qd(t)){var n="";process.env.NODE_ENV!=="production"&&(n="`cloneRawData` is not supported in source format "+t),st(n)}if(t===mt){for(var a=[],i=0,o=r.length;i<o;i++)a.push(r[i].slice());return a}else if(t===er){for(var a=[],i=0,o=r.length;i<o;i++)a.push(z({},r[i]));return a}}function TE(e,t,r){if(r!=null){if(Me(r)||!isNaN(r)&&!W(t,r))return e[r];if(W(t,r))return t[r]}}function xE(e){return he(e)}var ww=oe();function NE(e){e=he(e);var t=e.type,r="";t||(process.env.NODE_ENV!=="production"&&(r="Must have a `type` when `registerTransform`."),st(r));var n=t.split(":");n.length!==2&&(process.env.NODE_ENV!=="production"&&(r='Name must include namespace like "ns:regression".'),st(r));var a=!1;n[0]==="echarts"&&(t=n[1],a=!0),e.__isBuiltIn=a,ww.set(t,e)}function DE(e,t,r){var n=He(e),a=n.length,i="";a||(process.env.NODE_ENV!=="production"&&(i="If `transform` declared, it should at least contain one transform."),st(i));for(var o=0,s=a;o<s;o++){var l=n[o];t=AE(l,t,r,a===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function AE(e,t,r,n){var a="";t.length||(process.env.NODE_ENV!=="production"&&(a="Must have at least one upstream dataset."),st(a)),Q(e)||(process.env.NODE_ENV!=="production"&&(a="transform declaration must be an object rather than "+typeof e+"."),st(a));var i=e.type,o=ww.get(i);o||(process.env.NODE_ENV!=="production"&&(a='Can not find transform on type "'+i+'".'),st(a));var s=q(t,function(c){return bE(c,o)}),l=He(o.transform({upstream:s[0],upstreamList:s,config:he(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:",sl(c.data),"- transform result dimensions:",sl(c.dimensions)].join(`
|
|
31
|
+
echarts.use([`+n+"]);"),E0[n]=!0)}})}var qf=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,a,o,i,s){o=o||{},this.option=null,this._theme=new ot(o),this._locale=new ot(i),this._optionManager=s},t.prototype.setOption=function(r,n,a){process.env.NODE_ENV!=="production"&&(oe(r!=null,"option is null/undefined"),oe(r[Mu]!==Pv,"please use chart.getOption()"));var o=Lv(n);this._optionManager.setOption(r,a,o),this._resetOption(null,o)},t.prototype.resetOption=function(r,n){return this._resetOption(r,Lv(n))},t.prototype._resetOption=function(r,n){var a=!1,o=this._optionManager;if(!r||r==="recreate"){var i=o.mountOption(r==="recreate");process.env.NODE_ENV!=="production"&&U_(i),!this.option||r==="recreate"?Nv(this,i):(this.restoreData(),this._mergeOption(i,n)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=o.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=o.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,o=this._componentsMap,i=this._componentsCount,s=[],l=ue(),u=n&&n.replaceMergeMainTypeMap;P_(this),k(r,function(c,d){c!=null&&(Fe.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?ve(c):Ee(a[d],c,!0))}),u&&u.each(function(c,d){Fe.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),Fe.topologicalTravel(s,Fe.getAllClassMainTypes(),x,this);function x(c){var d=R_(this,c,je(r[c])),f=o.get(c),v=f?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",g=M7(f,d,v);z7(g,c,Fe),a[c]=null,o.set(c,null),i.set(c,0);var p=[],m=[],E=0,y,B;k(g,function(D,A){var _=D.existing,C=D.newOption;if(!C)_&&(_.mergeOption({},this),_.optionUpdated({},!1));else{var w=c==="series",b=Fe.getClass(c,D.keyInfo.subType,!w);if(!b){if(process.env.NODE_ENV!=="production"){var F=D.keyInfo.subType,S=H_[F];E0[F]||(E0[F]=!0,it(S?"Series "+F+` is used but not imported.
|
|
32
|
+
import { `+S+` } from 'echarts/charts';
|
|
33
|
+
echarts.use([`+S+"]);":"Unknown series "+F))}return}if(c==="tooltip"){if(y){process.env.NODE_ENV!=="production"&&(B||(We("Currently only one tooltip component is allowed."),B=!0));return}y=!0}if(_&&_.constructor===b)_.name=D.keyInfo.name,_.mergeOption(C,this),_.optionUpdated(C,!1);else{var P=H({componentIndex:A},D.keyInfo);_=new b(C,this,this,P),H(_,P),D.brandNew&&(_.__requireNewView=!0),_.init(C,this,this),_.optionUpdated(null,!0)}}_?(p.push(_.option),m.push(_),E++):(p.push(void 0),m.push(void 0))},this),a[c]=p,o.set(c,m),i.set(c,E),c==="series"&&fs(this)}this._seriesIndices||fs(this)},t.prototype.getOption=function(){var r=ve(this.option);return k(r,function(n,a){if(Fe.hasClass(a)){for(var o=je(n),i=o.length,s=!1,l=i-1;l>=0;l--)o[l]&&!Ka(o[l])?s=!0:(o[l]=null,!s&&i--);o.length=i,r[a]=o}}),delete r[Mu],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 o=a[n||0];if(o)return o;if(n==null){for(var i=0;i<a.length;i++)if(a[i])return a[i]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var a=r.index,o=r.id,i=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return a!=null?(l=[],k(je(a),function(u){s[u]&&l.push(s[u])})):o!=null?l=Mv("id",o,s):i!=null?l=Mv("name",i,s):l=Qe(s,function(u){return!!u}),Iv(l,r)},t.prototype.findComponents=function(r){var n=r.query,a=r.mainType,o=s(n),i=o?this.queryComponents(o):Qe(this._componentsMap.get(a),function(u){return!!u});return l(Iv(i,r));function s(u){var x=a+"Index",c=a+"Id",d=a+"Name";return u&&(u[x]!=null||u[c]!=null||u[d]!=null)?{mainType:a,index:u[x],id:u[c],name:u[d]}:null}function l(u){return r.filter?Qe(u,r.filter):u}},t.prototype.eachComponent=function(r,n,a){var o=this._componentsMap;if(xe(r)){var i=n,s=r;o.each(function(c,d){for(var f=0;c&&f<c.length;f++){var v=c[f];v&&s.call(i,d,v,v.componentIndex)}})}else for(var l=K(r)?o.get(r):re(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var x=l[u];x&&n.call(a,x,x.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=gr(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){So(this),k(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,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){So(this),k(this._seriesIndices,function(o){var i=this._componentsMap.get("series")[o];i.subType===r&&n.call(a,i,o)},this)},t.prototype.eachRawSeriesByType=function(r,n,a){return k(this.getSeriesByType(r),n,a)},t.prototype.isSeriesFiltered=function(r){return So(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){So(this);var a=[];k(this._seriesIndices,function(o){var i=this._componentsMap.get("series")[o];r.call(n,i,o)&&a.push(o)},this),this._seriesIndices=a,this._seriesIndicesMap=ue(a)},t.prototype.restoreData=function(r){fs(this);var n=this._componentsMap,a=[];n.each(function(o,i){Fe.hasClass(i)&&a.push(i)}),Fe.topologicalTravel(a,Fe.getAllClassMainTypes(),function(o){k(n.get(o),function(i){i&&(o!=="series"||!W_(i,r))&&i.restoreData()})})},t.internalField=function(){fs=function(r){var n=r._seriesIndices=[];k(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=ue(n)},So=function(r){if(process.env.NODE_ENV!=="production"&&!r._seriesIndices)throw new Error("Option should contains series.")},Nv=function(r,n){r.option={},r.option[Mu]=Pv,r._componentsMap=ue({series:[]}),r._componentsCount=ue();var a=n.aria;re(a)&&a.enabled==null&&(a.enabled=!0),Y_(n,r._theme.option),Ee(n,N_,!1),r._mergeOption(n,null)}}(),t}(ot);function W_(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 Y_(e,t){var r=e.color&&!e.colorLayer;k(t,function(n,a){a==="colorLayer"&&r||Fe.hasClass(a)||(typeof n=="object"?e[a]=e[a]?Ee(e[a],n,!1):ve(n):e[a]==null&&(e[a]=n))})}function Mv(e,t,r){if(Y(t)){var n=ue();return k(t,function(o){if(o!=null){var i=gr(o,null);i!=null&&n.set(o,!0)}}),Qe(r,function(o){return o&&n.get(o[e])})}else{var a=gr(t,null);return Qe(r,function(o){return o&&a!=null&&o[e]===a})}}function Iv(e,t){return t.hasOwnProperty("subType")?Qe(e,function(r){return r&&r.subType===t.subType}):e}function Lv(e){var t=ue();return e&&k(je(e.replaceMerge),function(r){process.env.NODE_ENV!=="production"&&oe(Fe.hasClass(r),'"'+r+'" is not valid component main type in "replaceMerge"'),t.set(r,!0)}),{replaceMergeMainTypeMap:t}}er(qf,Zf);var X_=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],j_=function(){function e(t){k(X_,function(r){this[r]=ne(t[r],t)},this)}return e}();const c8=j_;var Iu={},Kf=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];k(Iu,function(a,o){var i=a.create(t,r);n=n.concat(i||[])}),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){Iu[t]=r},e.get=function(t){return Iu[t]},e}(),Z_=/^(min|max)?(.+)$/,q_=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(k(je(t.series),function(i){i&&i.data&&ht(i.data)&&Ix(i.data)}),k(je(t.dataset),function(i){i&&i.source&&ht(i.source)&&Ix(i.source)})),t=ve(t);var a=this._optionBackup,o=K_(t,r,!a);this._newBaseOption=o.baseOption,a?(o.timelineOptions.length&&(a.timelineOptions=o.timelineOptions),o.mediaList.length&&(a.mediaList=o.mediaList),o.mediaDefault&&(a.mediaDefault=o.mediaDefault)):this._optionBackup=o},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],ve(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=ve(n[a.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),a=this._mediaList,o=this._mediaDefault,i=[],s=[];if(!a.length&&!o)return s;for(var l=0,u=a.length;l<u;l++)J_(a[l].query,r,n)&&i.push(l);return!i.length&&o&&(i=[-1]),i.length&&!e4(i,this._currentMediaIndices)&&(s=q(i,function(x){return ve(x===-1?o.option:a[x].option)})),this._currentMediaIndices=i,s},e}();function K_(e,t,r){var n=[],a,o,i=e.baseOption,s=e.timeline,l=e.options,u=e.media,x=!!e.media,c=!!(l||s||i&&i.timeline);i?(o=i,o.timeline||(o.timeline=s)):((c||x)&&(e.options=e.media=null),o=e),x&&(Y(u)?k(u,function(f){process.env.NODE_ENV!=="production"&&f&&!f.option&&re(f.query)&&re(f.query.option)&&it("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),f&&f.option&&(f.query?n.push(f):a||(a=f))}):process.env.NODE_ENV!=="production"&&it("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),d(o),k(l,function(f){return d(f)}),k(n,function(f){return d(f.option)});function d(f){k(t,function(v){v(f,r)})}return{baseOption:o,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function J_(e,t,r){var n={width:t,height:r,aspectratio:t/r},a=!0;return k(e,function(o,i){var s=i.match(Z_);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();Q_(n[u],o,l)||(a=!1)}}),a}function Q_(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function e4(e,t){return e.join(",")===t.join(",")}const t4=q_;var St=k,wi=re,Ov=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Lu(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=Ov.length;r<n;r++){var a=Ov[r],o=t.normal,i=t.emphasis;o&&o[a]&&(process.env.NODE_ENV!=="production"&&Ye("itemStyle.normal."+a,a),e[a]=e[a]||{},e[a].normal?Ee(e[a].normal,o[a]):e[a].normal=o[a],o[a]=null),i&&i[a]&&(process.env.NODE_ENV!=="production"&&Ye("itemStyle.emphasis."+a,"emphasis."+a),e[a]=e[a]||{},e[a].emphasis?Ee(e[a].emphasis,i[a]):e[a].emphasis=i[a],i[a]=null)}}function nt(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"&&qt("'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,ge(e[t],n)):e[t]=n),a&&(process.env.NODE_ENV!=="production"&&qt(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 Ko(e){nt(e,"itemStyle"),nt(e,"lineStyle"),nt(e,"areaStyle"),nt(e,"label"),nt(e,"labelLine"),nt(e,"upperLabel"),nt(e,"edgeLabel")}function Re(e,t){var r=wi(e)&&e[t],n=wi(r)&&r.textStyle;if(n){process.env.NODE_ENV!=="production"&&qt("textStyle hierarchy in "+t+" has been removed since 4.0. All textStyle properties are configured in "+t+" directly now.");for(var a=0,o=Rh.length;a<o;a++){var i=Rh[a];n.hasOwnProperty(i)&&(r[i]=n[i])}}}function It(e){e&&(Ko(e),Re(e,"label"),e.emphasis&&Re(e.emphasis,"label"))}function r4(e){if(wi(e)){Lu(e),Ko(e),Re(e,"label"),Re(e,"upperLabel"),Re(e,"edgeLabel"),e.emphasis&&(Re(e.emphasis,"label"),Re(e.emphasis,"upperLabel"),Re(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Lu(t),It(t));var r=e.markLine;r&&(Lu(r),It(r));var n=e.markArea;n&&It(n);var a=e.data;if(e.type==="graph"){a=a||e.nodes;var o=e.links||e.edges;if(o&&!ht(o))for(var i=0;i<o.length;i++)It(o[i]);k(e.categories,function(u){Ko(u)})}if(a&&!ht(a))for(var i=0;i<a.length;i++)It(a[i]);if(t=e.markPoint,t&&t.data)for(var s=t.data,i=0;i<s.length;i++)It(s[i]);if(r=e.markLine,r&&r.data)for(var l=r.data,i=0;i<l.length;i++)Y(l[i])?(It(l[i][0]),It(l[i][1])):It(l[i]);e.type==="gauge"?(Re(e,"axisLabel"),Re(e,"title"),Re(e,"detail")):e.type==="treemap"?(nt(e.breadcrumb,"itemStyle"),k(e.levels,function(u){Ko(u)})):e.type==="tree"&&Ko(e.leaves)}}function Dr(e){return Y(e)?e:e?[e]:[]}function Rv(e){return(Y(e)?e[0]:e)||{}}function n4(e,t){St(Dr(e.series),function(n){wi(n)&&r4(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),St(r,function(n){St(Dr(e[n]),function(a){a&&(Re(a,"axisLabel"),Re(a.axisPointer,"label"))})}),St(Dr(e.parallel),function(n){var a=n&&n.parallelAxisDefault;Re(a,"axisLabel"),Re(a&&a.axisPointer,"label")}),St(Dr(e.calendar),function(n){nt(n,"itemStyle"),Re(n,"dayLabel"),Re(n,"monthLabel"),Re(n,"yearLabel")}),St(Dr(e.radar),function(n){Re(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name,process.env.NODE_ENV!=="production"&&qt("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"&&qt("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&St(n.indicator,function(a){a.text&&Ye("text","name","radar.indicator")})}),St(Dr(e.geo),function(n){wi(n)&&(It(n),St(Dr(n.regions),function(a){It(a)}))}),St(Dr(e.timeline),function(n){It(n),nt(n,"label"),nt(n,"itemStyle"),nt(n,"controlStyle",!0);var a=n.data;Y(a)&&k(a,function(o){re(o)&&(nt(o,"label"),nt(o,"itemStyle"))})}),St(Dr(e.toolbox),function(n){nt(n,"iconStyle"),St(n.feature,function(a){nt(a,"iconStyle")})}),Re(Rv(e.axisPointer),"label"),Re(Rv(e.tooltip).axisPointer,"label")}function a4(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 o4(e,t,r,n){for(var a=t.split(","),o=e,i,s=0;s<a.length-1;s++)i=a[s],o[i]==null&&(o[i]={}),o=o[i];(n||o[a[s]]==null)&&(o[a[s]]=r)}function Vv(e){e&&k(i4,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var i4=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],s4=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Ou=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function ko(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<Ou.length;r++){var n=Ou[r][1],a=Ou[r][0];t[n]!=null&&(t[a]=t[n],process.env.NODE_ENV!=="production"&&Ye(n,a))}}function $v(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&Ye("label.margin","label.edgeDistance","pie"),e.edgeDistance=e.margin)}function zv(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay,process.env.NODE_ENV!=="production"&&Ye("downplay","blur","sunburst"))}function l4(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&Ye("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),e.emphasis.focus="adjacency"))}function f8(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&f8(e[r].children,t)}function d8(e,t){n4(e,t),e.series=je(e.series),k(e.series,function(r){if(re(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow,process.env.NODE_ENV!=="production"&&Ye("clipOverflow","clip","line"));else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise,process.env.NODE_ENV!=="production"&&Ye("clockWise","clockwise")),$v(r.label);var a=r.data;if(a&&!ht(a))for(var o=0;o<a.length;o++)$v(a[o]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&Ye("hoverOffset","emphasis.scaleSize"),r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var i=a4(r,"pointer.color");i!=null&&o4(r,"itemStyle.color",i)}else if(n==="bar"){ko(r),ko(r.backgroundStyle),ko(r.emphasis);var a=r.data;if(a&&!ht(a))for(var o=0;o<a.length;o++)typeof a[o]=="object"&&(ko(a[o]),ko(a[o]&&a[o].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"&&Ye("highlightPolicy","emphasis.focus","sunburst"))),zv(r),f8(r.data,zv)}else n==="graph"||n==="sankey"?l4(r):n==="map"&&(r.mapType&&!r.map&&(process.env.NODE_ENV!=="production"&&Ye("mapType","map","map"),r.map=r.mapType),r.mapLocation&&(process.env.NODE_ENV!=="production"&&qt("`mapLocation` is not used anymore."),ge(r,r.mapLocation)));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&Ye("hoverAnimation","emphasis.scale"),r.emphasis.scale=r.hoverAnimation)),Vv(r)}}),e.dataRange&&(e.visualMap=e.dataRange),k(s4,function(r){var n=e[r];n&&(Y(n)||(n=[n]),k(n,function(a){Vv(a)}))})}function u4(e){var t=ue();e.eachSeries(function(r){var n=r.get("stack");if(n){var a=t.get(n)||t.set(n,[]),o=r.getData(),i={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:r};if(!i.stackedDimension||!(i.isStackedByIndex||i.stackedByDimension))return;a.length&&o.setCalculationInfo("stackedOnSeries",a[a.length-1].seriesModel),a.push(i)}}),t.each(x4)}function x4(e){k(e,function(t,r){var n=[],a=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],i=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";i.modify(o,function(u,x,c){var d=i.get(t.stackedDimension,c);if(isNaN(d))return a;var f,v;s?v=i.getRawIndex(c):f=i.get(t.stackedByDimension,c);for(var g=NaN,p=r-1;p>=0;p--){var m=e[p];if(s||(v=m.data.rawIndexOf(m.stackedByDimension,f)),v>=0){var E=m.data.getByRawIndex(m.stackResultDimension,v);if(l==="all"||l==="positive"&&E>0||l==="negative"&&E<0||l==="samesign"&&d>=0&&E>0||l==="samesign"&&d<=0&&E<0){d=w7(d,E),g=E;break}}}return n[0]=d,n[1]=g,n})})}var Cl=function(){function e(t){this.data=t.data||(t.sourceFormat===yr?{}:[]),this.sourceFormat=t.sourceFormat||s8,this.seriesLayoutBy=t.seriesLayoutBy||Pr,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&&u8(this,n)===qe.Must&&(a.type="ordinal")}}return e}();function Jf(e){return e instanceof Cl}function cc(e,t,r){r=r||h8(e);var n=t.seriesLayoutBy,a=f4(e,r,n,t.sourceHeader,t.dimensions),o=new Cl({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:ve(t)});return o}function Qf(e){return new Cl({data:e,sourceFormat:ht(e)?Nr:Ut})}function c4(e){return new Cl({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:ve(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function h8(e){var t=s8;if(ht(e))t=Nr;else if(Y(e)){e.length===0&&(t=Ct);for(var r=0,n=e.length;r<n;r++){var a=e[r];if(a!=null){if(Y(a)||ht(a)){t=Ct;break}else if(re(a)){t=nr;break}}}}else if(re(e)){for(var o in e)if(X(e,o)&&dt(e[o])){t=yr;break}}return t}function f4(e,t,r,n,a){var o,i;if(!e)return{dimensionsDefine:Gv(a),startIndex:i,dimensionsDetectedCount:o};if(t===Ct){var s=e;n==="auto"||n==null?Hv(function(u){u!=null&&u!=="-"&&(K(u)?i==null&&(i=1):i=0)},r,s,10):i=Se(n)?n:n?1:0,!a&&i===1&&(a=[],Hv(function(u,x){a[x]=u!=null?u+"":""},r,s,1/0)),o=a?a.length:r===co?s.length:s[0]?s[0].length:null}else if(t===nr)a||(a=d4(e));else if(t===yr)a||(a=[],k(e,function(u,x){a.push(x)}));else if(t===Ut){var l=Li(e[0]);o=Y(l)&&l.length||1}else t===Nr&&process.env.NODE_ENV!=="production"&&oe(!!a,"dimensions must be given if data is TypedArray.");return{startIndex:i,dimensionsDefine:Gv(a),dimensionsDetectedCount:o}}function d4(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return De(r)}function Gv(e){if(e){var t=ue();return q(e,function(r,n){r=re(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 o=t.get(a.name);return o?a.name+="-"+o.count++:t.set(a.name,{count:1}),a})}}function Hv(e,t,r,n){if(t===co)for(var a=0;a<r.length&&a<n;a++)e(r[a]?r[a][0]:null,a);else for(var o=r[0]||[],a=0;a<o.length&&a<n;a++)e(o[a],a)}function v8(e){var t=e.sourceFormat;return t===nr||t===yr}var In,Ln,On,Uv,Wv,p8=function(){function e(t,r){var n=Jf(t)?t:Qf(t);this._source=n;var a=this._data=n.data;if(n.sourceFormat===Nr){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}Wv(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;Wv=function(i,s,l){var u=l.sourceFormat,x=l.seriesLayoutBy,c=l.startIndex,d=l.dimensionsDefine,f=Uv[ed(u,x)];if(process.env.NODE_ENV!=="production"&&oe(f,"Invalide sourceFormat: "+u),H(i,f),u===Nr)i.getItem=r,i.count=a,i.fillStorage=n;else{var v=g8(u,x);i.getItem=ne(v,null,s,c,d);var g=m8(u,x);i.count=ne(g,null,s,c,d)}};var r=function(i,s){i=i-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,x=u*i,c=0;c<u;c++)s[c]=l[x+c];return s},n=function(i,s,l,u){for(var x=this._data,c=this._dimSize,d=0;d<c;d++){for(var f=u[d],v=f[0]==null?1/0:f[0],g=f[1]==null?-1/0:f[1],p=s-i,m=l[d],E=0;E<p;E++){var y=x[E*c+d];m[i+E]=y,y<v&&(v=y),y>g&&(g=y)}f[0]=v,f[1]=g}},a=function(){return this._data?this._data.length/this._dimSize:0};Uv=(t={},t[Ct+"_"+Pr]={pure:!0,appendData:o},t[Ct+"_"+co]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[nr]={pure:!0,appendData:o},t[yr]={pure:!0,appendData:function(i){var s=this._data;k(i,function(l,u){for(var x=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)x.push(l[c])})}},t[Ut]={appendData:o},t[Nr]={persistent:!1,pure:!0,appendData:function(i){process.env.NODE_ENV!=="production"&&oe(ht(i),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=i},clean:function(){this._offset+=this.count(),this._data=null}},t);function o(i){for(var s=0;s<i.length;s++)this._data.push(i[s])}}(),e}(),Yv=function(e,t,r,n){return e[n]},h4=(In={},In[Ct+"_"+Pr]=function(e,t,r,n){return e[n+t]},In[Ct+"_"+co]=function(e,t,r,n,a){n+=t;for(var o=a||[],i=e,s=0;s<i.length;s++){var l=i[s];o[s]=l?l[n]:null}return o},In[nr]=Yv,In[yr]=function(e,t,r,n,a){for(var o=a||[],i=0;i<r.length;i++){var s=r[i].name;if(process.env.NODE_ENV!=="production"&&s==null)throw new Error;var l=e[s];o[i]=l?l[n]:null}return o},In[Ut]=Yv,In);function g8(e,t){var r=h4[ed(e,t)];return process.env.NODE_ENV!=="production"&&oe(r,'Do not support get item on "'+e+'", "'+t+'".'),r}var Xv=function(e,t,r){return e.length},v4=(Ln={},Ln[Ct+"_"+Pr]=function(e,t,r){return Math.max(0,e.length-t)},Ln[Ct+"_"+co]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},Ln[nr]=Xv,Ln[yr]=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},Ln[Ut]=Xv,Ln);function m8(e,t){var r=v4[ed(e,t)];return process.env.NODE_ENV!=="production"&&oe(r,'Do not support count on "'+e+'", "'+t+'".'),r}var Ru=function(e,t,r){return e[t]},p4=(On={},On[Ct]=Ru,On[nr]=function(e,t,r){return e[r]},On[yr]=Ru,On[Ut]=function(e,t,r){var n=Li(e);return n instanceof Array?n[t]:n},On[Nr]=Ru,On);function E8(e){var t=p4[e];return process.env.NODE_ENV!=="production"&&oe(t,'Do not support get value on "'+e+'".'),t}function ed(e,t){return e===Ct?e+"_"+t:e}function eo(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var a=e.getStore(),o=a.getSource().sourceFormat;if(r!=null){var i=e.getDimensionIndex(r),s=a.getDimensionProperty(i);return E8(o)(n,i,s)}else{var l=n;return o===Ut&&(l=Li(n)),l}}}}var g4=/\{@(.+?)\}/g,y8=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),a=this.getRawValue(t,r),o=n.getRawIndex(t),i=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],x=l&&l.stroke,c=this.mainType,d=c==="series",f=n.userOutput&&n.userOutput.get();return{componentType:c,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:i,dataIndex:o,data:s,dataType:r,value:a,color:u,borderColor:x,dimensionNames:f?f.fullDimensions:null,encode:f?f.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,a,o,i){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(i&&(l.value=i.interpolatedValue),a!=null&&Y(l.value)&&(l.value=l.value[a]),!o){var u=s.getItemModel(t);o=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(xe(o))return l.status=r,l.dimensionIndex=a,o(l);if(K(o)){var x=o8(o,l);return x.replace(g4,function(c,d){var f=d.length,v=d;v.charAt(0)==="["&&v.charAt(f-1)==="]"&&(v=+v.slice(1,f-1),process.env.NODE_ENV!=="production"&&isNaN(v)&&it("Invalide label formatter: @"+d+", only support @[0], @[1], @[2], ..."));var g=eo(s,t,v);if(i&&Y(i.interpolatedValue)){var p=s.getDimensionIndex(v);p>=0&&(g=i.interpolatedValue[p])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,r){return eo(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function jv(e){var t,r;return re(e)?e.type?r=e:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+s0(e)):t=e,{text:t,frag:r}}function fi(e){return new m4(e)}var m4=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 o;this._plan&&!n&&(o=this._plan(this.context));var i=x(this._modBy),s=this._modDataCount||0,l=x(t&&t.modBy),u=t&&t.modDataCount||0;(i!==l||s!==u)&&(o="reset");function x(E){return!(E>=1)&&(E=1),E}var c;(this._dirty||o==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=t&&t.step;if(r?(process.env.NODE_ENV!=="production"&&oe(r._outputDueEnd!=null),this._dueEnd=r._outputDueEnd):(process.env.NODE_ENV!=="production"&&oe(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var f=this._dueIndex,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(c||f<v)){var g=this._progress;if(Y(g))for(var p=0;p<g.length;p++)this._doProgress(g[p],f,v,l,u);else this._doProgress(g,f,v,l,u)}this._dueIndex=v;var m=this._settedOutputEnd!=null?this._settedOutputEnd:v;process.env.NODE_ENV!=="production"&&oe(m>=this._outputDueEnd),this._outputDueEnd=m}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,o){Zv.reset(r,n,a,o),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:Zv.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),Y(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"&&oe(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}(),Zv=function(){var e,t,r,n,a,o={reset:function(l,u,x,c){t=l,e=u,r=x,n=c,a=Math.ceil(n/r),o.next=r>1&&n>0?s:i}};return o;function i(){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 Ua(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!Se(e)&&e!=null&&e!=="-"&&(e=+Or(e)),e==null||e===""?NaN:+e)}ue({number:function(e){return parseFloat(e)},time:function(e){return+Or(e)},trim:function(e){return K(e)?hr(e):e}});var E4=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=Se(t)?t:i0(t),a=Se(r)?r:i0(r),o=isNaN(n),i=isNaN(a);if(o&&(n=this._incomparable),i&&(a=this._incomparable),o&&i){var s=K(t),l=K(r);s&&(n=l?t:0),l&&(a=s?r:0)}return n<a?this._resultLT:n>a?-this._resultLT:0},e}(),y4=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 Ua(t,r)},e}();function C4(e,t){var r=new y4,n=e.data,a=r.sourceFormat=e.sourceFormat,o=e.startIndex,i="";e.seriesLayoutBy!==Pr&&(process.env.NODE_ENV!=="production"&&(i='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),ct(i));var s=[],l={},u=e.dimensionsDefine;if(u)k(u,function(g,p){var m=g.name,E={index:p,name:m,displayName:g.displayName};if(s.push(E),m!=null){var y="";X(l,m)&&(process.env.NODE_ENV!=="production"&&(y='dimension name "'+m+'" duplicated.'),ct(y)),l[m]=E}});else for(var x=0;x<e.dimensionsDetectedCount;x++)s.push({index:x});var c=g8(a,Pr);t.__isBuiltIn&&(r.getRawDataItem=function(g){return c(n,o,s,g)},r.getRawData=ne(B4,null,e)),r.cloneRawData=ne(A4,null,e);var d=m8(a,Pr);r.count=ne(d,null,n,o,s);var f=E8(a);r.retrieveValue=function(g,p){var m=c(n,o,s,g);return v(m,p)};var v=r.retrieveValueFromItem=function(g,p){if(g!=null){var m=s[p];if(m)return f(g,p,m.name)}};return r.getDimensionInfo=ne(D4,null,s,l),r.cloneAllDimensionInfo=ne(_4,null,s),r}function B4(e){var t=e.sourceFormat;if(!td(t)){var r="";process.env.NODE_ENV!=="production"&&(r="`getRawData` is not supported in source format "+t),ct(r)}return e.data}function A4(e){var t=e.sourceFormat,r=e.data;if(!td(t)){var n="";process.env.NODE_ENV!=="production"&&(n="`cloneRawData` is not supported in source format "+t),ct(n)}if(t===Ct){for(var a=[],o=0,i=r.length;o<i;o++)a.push(r[o].slice());return a}else if(t===nr){for(var a=[],o=0,i=r.length;o<i;o++)a.push(H({},r[o]));return a}}function D4(e,t,r){if(r!=null){if(Se(r)||!isNaN(r)&&!X(t,r))return e[r];if(X(t,r))return t[r]}}function _4(e){return ve(e)}var C8=ue();function w4(e){e=ve(e);var t=e.type,r="";t||(process.env.NODE_ENV!=="production"&&(r="Must have a `type` when `registerTransform`."),ct(r));var n=t.split(":");n.length!==2&&(process.env.NODE_ENV!=="production"&&(r='Name must include namespace like "ns:regression".'),ct(r));var a=!1;n[0]==="echarts"&&(t=n[1],a=!0),e.__isBuiltIn=a,C8.set(t,e)}function F4(e,t,r){var n=je(e),a=n.length,o="";a||(process.env.NODE_ENV!=="production"&&(o="If `transform` declared, it should at least contain one transform."),ct(o));for(var i=0,s=a;i<s;i++){var l=n[i];t=b4(l,t,r,a===1?null:i),i!==s-1&&(t.length=Math.max(t.length,1))}return t}function b4(e,t,r,n){var a="";t.length||(process.env.NODE_ENV!=="production"&&(a="Must have at least one upstream dataset."),ct(a)),re(e)||(process.env.NODE_ENV!=="production"&&(a="transform declaration must be an object rather than "+typeof e+"."),ct(a));var o=e.type,i=C8.get(o);i||(process.env.NODE_ENV!=="production"&&(a='Can not find transform on type "'+o+'".'),ct(a));var s=q(t,function(x){return C4(x,i)}),l=je(i.transform({upstream:s[0],upstreamList:s,config:ve(e.config)}));if(process.env.NODE_ENV!=="production"&&e.print){var u=q(l,function(x){var c=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+r.datasetIndex+c+" ===","- transform result data:",s0(x.data),"- transform result dimensions:",s0(x.dimensions)].join(`
|
|
34
34
|
`)}).join(`
|
|
35
|
-
`);ED(u)}return q(l,function(c,f){var d="";Q(c)||(process.env.NODE_ENV!=="production"&&(d="A transform should not return some empty results."),st(d)),c.data||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be not be null or undefined"),st(d));var h=dw(c.data);Qd(h)||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be array rows or object rows."),st(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:kr,sourceHeader:g,dimensions:m.metaRawOption.dimensions}}else p={seriesLayoutBy:kr,sourceHeader:0,dimensions:c.dimensions};return ch(c.data,p,null)})}function Qd(e){return e===mt||e===er}var Su="undefined",ME=typeof Uint32Array===Su?Array:Uint32Array,kE=typeof Uint16Array===Su?Array:Uint16Array,bw=typeof Int32Array===Su?Array:Int32Array,Xg=typeof Float64Array===Su?Array:Float64Array,Sw={float:Xg,int:bw,ordinal:Array,number:Array,time:Xg},Vc;function Mi(e){return e>65535?ME:kE}function wa(){return[1/0,-1/0]}function EE(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Zg(e,t,r,n,a){var i=Sw[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=oe()}return e.prototype.initData=function(t,r,n){process.env.NODE_ENV!=="production"&&ne(se(t.getItem)&&se(t.count),"Invalid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),i=this.defaultDimValueGetter=Vc[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];var o=vw(a);this._dimensions=q(r,function(s){return process.env.NODE_ENV!=="production"&&o&&ne(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 Sw[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"&&ne(!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];Zg(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=Vc.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(_){return _.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=wa()),Zg(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=Mi(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=Mi(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=Te(t),i=a.length;if(!i)return this;var o=r.count(),s=Mi(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 _=g[y];(_>=f&&_<=d||isNaN(_))&&(l[u++]=m),m++}p=!0}else if(i===2){for(var g=h[a[0]],w=h[a[1]],S=t[a[1]][0],T=t[a[1]][1],y=0;y<n;y++){var _=g[y],C=w[y];(_>=f&&_<=d||isNaN(_))&&(C>=S&&C<=T||isNaN(C))&&(l[u++]=m),m++}p=!0}}if(!p)if(i===1)for(var y=0;y<o;y++){var N=r.getRawIndex(y),_=h[a[0]][N];(_>=f&&_<=d||isNaN(_))&&(l[u++]=N)}else for(var y=0;y<o;y++){for(var b=!0,N=r.getRawIndex(y),x=0;x<i;x++){var A=a[x],_=h[A][N];(_<t[A][0]||_>t[A][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],_=a[m];_&&(_[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(Mi(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,_=0,w=m;w<g;w++){var S=this.getRawIndex(w),T=i[S];isNaN(T)||(_+=T)}_/=g-m;var C=p,N=Math.min(p+l,o),b=p-1,x=i[u];c=-1,d=C;for(var A=-1,D=0,w=C;w<N;w++){var S=this.getRawIndex(w),T=i[S];if(isNaN(T)){D++,A<0&&(A=S);continue}f=Math.abs((b-y)*(T-x)-(b-w)*(_-x)),f>c&&(c=f,d=S)}D>0&&D<N-C&&(h[s++]=Math.min(A,d),d=Math.max(A,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(Mi(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),_=this.getRawIndex(Math.min(p+a(s,y)||0,c-1));u[_]=y,y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y),d[h++]=_}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&&Ir(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?EE(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=he(this._extent),t._rawExtent=he(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])}Vc={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}(),PE=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(ki(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=ct(s)?Mr:Ft,i=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=ie(f.seriesLayoutBy,d.seriesLayoutBy)||null,p=ie(f.sourceHeader,d.sourceHeader),m=ie(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 _=this._applyTransform(r);a=_.sourceList,i=_.upstreamSignList}else{var w=y.get("source",!0);a=[ch(w,this._getSourceMetaRawOption(),null)],i=[]}}process.env.NODE_ENV!=="production"&&ne(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"&&ne(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"),Kg(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),Kg(f)),s.push(c),l.push(u._getVersionSign())}),n?o=DE(n,s,{datasetIndex:r.componentIndex}):a!=null&&(o=[fE(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"&&ne(ki(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];ki(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new fh,s.initData(new pw(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(ki(t)){var r=Yd(t);return r?[r.getSourceManager()]:[]}else return q(Rk(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,a;if(ki(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 ki(e){return e.mainType==="series"}function Kg(e){throw new Error(e)}var Cw="line-height:1";function Tw(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:"+It(n+"")+"px;color:"+It(r)+";font-weight:"+It(a+""),valueStyle:"font-size:"+It(o+"")+"px;color:"+It(i)+";font-weight:"+It(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var IE=[0,10,20,30],LE=["",`
|
|
35
|
+
`);T7(u)}return q(l,function(x,c){var d="";re(x)||(process.env.NODE_ENV!=="production"&&(d="A transform should not return some empty results."),ct(d)),x.data||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be not be null or undefined"),ct(d));var f=h8(x.data);td(f)||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be array rows or object rows."),ct(d));var v,g=t[0];if(g&&c===0&&!x.dimensions){var p=g.startIndex;p&&(x.data=g.data.slice(0,p).concat(x.data)),v={seriesLayoutBy:Pr,sourceHeader:p,dimensions:g.metaRawOption.dimensions}}else v={seriesLayoutBy:Pr,sourceHeader:0,dimensions:x.dimensions};return cc(x.data,v,null)})}function td(e){return e===Ct||e===nr}var Bl="undefined",S4=typeof Uint32Array===Bl?Array:Uint32Array,k4=typeof Uint16Array===Bl?Array:Uint16Array,B8=typeof Int32Array===Bl?Array:Int32Array,qv=typeof Float64Array===Bl?Array:Float64Array,A8={float:qv,int:B8,ordinal:Array,number:Array,time:qv},Vu;function To(e){return e>65535?S4:k4}function Ca(){return[1/0,-1/0]}function T4(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Kv(e,t,r,n,a){var o=A8[r||"float"];if(a){var i=e[t],s=i&&i.length;if(s!==n){for(var l=new o(n),u=0;u<s;u++)l[u]=i[u];e[t]=l}}else e[t]=new o(n)}var fc=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=ue()}return e.prototype.initData=function(t,r,n){process.env.NODE_ENV!=="production"&&oe(xe(t.getItem)&&xe(t.count),"Invalid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),o=this.defaultDimValueGetter=Vu[a.sourceFormat];this._dimValueGetter=n||o,this._rawExtent=[];var i=v8(a);this._dimensions=q(r,function(s){return process.env.NODE_ENV!=="production"&&i&&oe(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,o=n.get(t);if(o!=null){if(a[o].type===r)return o}else o=a.length;return a[o]={type:r},n.set(t,o),this._chunks[o]=new A8[r||"float"](this._rawCount),this._rawExtent[o]=Ca(),o},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],a=this._dimensions[t],o=this._rawExtent,i=a.ordinalOffset||0,s=n.length;i===0&&(o[t]=Ca());for(var l=o[t],u=i;u<s;u++){var x=n[u]=r.parseAndCollect(n[u]);isNaN(x)||(l[0]=Math.min(x,l[0]),l[1]=Math.max(x,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"&&oe(!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,o=a.length,i=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<o;u++){var x=a[u];Kv(n,u,x.type,l,!0)}for(var c=[],d=s;d<l;d++)for(var f=d-s,v=0;v<o;v++){var x=a[v],g=Vu.arrayRows.call(this,t[f]||c,x.property,f,v);n[v][d]=g;var p=i[v];g<p[0]&&(p[0]=g),g>p[1]&&(p[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var a=this._provider,o=this._chunks,i=this._dimensions,s=i.length,l=this._rawExtent,u=q(i,function(E){return E.property}),x=0;x<s;x++){var c=i[x];l[x]||(l[x]=Ca()),Kv(o,x,c.type,r,n)}if(a.fillStorage)a.fillStorage(t,r,o,l);else for(var d=[],f=t;f<r;f++){d=a.getItem(f,d);for(var v=0;v<s;v++){var g=o[v],p=this._dimValueGetter(d,u[v],f,v);g[f]=p;var m=l[v];p<m[0]&&(m[0]=p),p>m[1]&&(m[1]=p)}}!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 o=0;o<this._dimensions.length;o++)a.push(o)}else a=t;for(var o=0,i=a.length;o<i;o++)n.push(this.get(a[o],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,o=this.count();a<o;a++){var i=this.get(t,a);isNaN(i)||(n+=i)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(o){isNaN(o)||r.push(o)});var n=r.sort(function(o,i){return o-i}),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,o=this._count-1;a<=o;){var i=(a+o)/2|0;if(r[i]<t)a=i+1;else if(r[i]>t)o=i-1;else return i}return-1},e.prototype.indicesOfNearest=function(t,r,n){var a=this._chunks,o=a[t],i=[];if(!o)return i;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,x=0,c=this.count();x<c;x++){var d=this.getRawIndex(x),f=r-o[d],v=Math.abs(f);v<=n&&((v<s||v===s&&f>=0&&l<0)&&(s=v,l=f,u=0),f===l&&(i[u++]=x))}return i.length=u,i},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 o=0;o<a;o++)t[o]=r[o]}else t=new n(r.buffer,0,a)}else{var n=To(this._rawCount);t=new n(this.count());for(var o=0;o<t.length;o++)t[o]=o}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),a=n.count(),o=To(n._rawCount),i=new o(a),s=[],l=t.length,u=0,x=t[0],c=n._chunks,d=0;d<a;d++){var f=void 0,v=n.getRawIndex(d);if(l===0)f=r(d);else if(l===1){var g=c[x][v];f=r(g,d)}else{for(var p=0;p<l;p++)s[p]=c[t[p]][v];s[p]=d,f=r.apply(null,s)}f&&(i[u++]=v)}return u<a&&(n._indices=i),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=De(t),o=a.length;if(!o)return this;var i=r.count(),s=To(r._rawCount),l=new s(i),u=0,x=a[0],c=t[x][0],d=t[x][1],f=r._chunks,v=!1;if(!r._indices){var g=0;if(o===1){for(var p=f[a[0]],m=0;m<n;m++){var E=p[m];(E>=c&&E<=d||isNaN(E))&&(l[u++]=g),g++}v=!0}else if(o===2){for(var p=f[a[0]],y=f[a[1]],B=t[a[1]][0],D=t[a[1]][1],m=0;m<n;m++){var E=p[m],A=y[m];(E>=c&&E<=d||isNaN(E))&&(A>=B&&A<=D||isNaN(A))&&(l[u++]=g),g++}v=!0}}if(!v)if(o===1)for(var m=0;m<i;m++){var _=r.getRawIndex(m),E=f[a[0]][_];(E>=c&&E<=d||isNaN(E))&&(l[u++]=_)}else for(var m=0;m<i;m++){for(var C=!0,_=r.getRawIndex(m),w=0;w<o;w++){var b=a[w],E=f[b][_];(E<t[b][0]||E>t[b][1])&&(C=!1)}C&&(l[u++]=r.getRawIndex(m))}return u<i&&(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,o=[],i=r.length,s=t.count(),l=[],u=t._rawExtent,x=0;x<r.length;x++)u[r[x]]=Ca();for(var c=0;c<s;c++){for(var d=t.getRawIndex(c),f=0;f<i;f++)l[f]=a[r[f]][d];l[i]=c;var v=n&&n.apply(null,l);if(v!=null){typeof v!="object"&&(o[0]=v,v=o);for(var x=0;x<v.length;x++){var g=r[x],p=v[x],m=u[g],E=a[g];E&&(E[d]=p),p<m[0]&&(m[0]=p),p>m[1]&&(m[1]=p)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),a=n._chunks,o=a[t],i=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),x,c,d,f=new(To(this._rawCount))(Math.min((Math.ceil(i/l)+2)*2,i));f[s++]=u;for(var v=1;v<i-1;v+=l){for(var g=Math.min(v+l,i-1),p=Math.min(v+l*2,i),m=(p+g)/2,E=0,y=g;y<p;y++){var B=this.getRawIndex(y),D=o[B];isNaN(D)||(E+=D)}E/=p-g;var A=v,_=Math.min(v+l,i),C=v-1,w=o[u];x=-1,d=A;for(var b=-1,F=0,y=A;y<_;y++){var B=this.getRawIndex(y),D=o[B];if(isNaN(D)){F++,b<0&&(b=B);continue}c=Math.abs((C-m)*(D-w)-(C-y)*(E-w)),c>x&&(x=c,d=B)}F>0&&F<_-A&&(f[s++]=Math.min(b,d),d=Math.max(b,d)),f[s++]=d,u=d}return f[s++]=this.getRawIndex(i-1),n._count=s,n._indices=f,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,a){for(var o=this.clone([t],!0),i=o._chunks,s=[],l=Math.floor(1/r),u=i[t],x=this.count(),c=o._rawExtent[t]=Ca(),d=new(To(this._rawCount))(Math.ceil(x/l)),f=0,v=0;v<x;v+=l){l>x-v&&(l=x-v,s.length=l);for(var g=0;g<l;g++){var p=this.getRawIndex(v+g);s[g]=u[p]}var m=n(s),E=this.getRawIndex(Math.min(v+a(s,m)||0,x-1));u[E]=m,m<c[0]&&(c[0]=m),m>c[1]&&(c[1]=m),d[f++]=E}return o._count=f,o._indices=d,o._updateGetRawIdx(),o},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,a=this._chunks,o=0,i=this.count();o<i;o++){var s=this.getRawIndex(o);switch(n){case 0:r(o);break;case 1:r(a[t[0]][s],o);break;case 2:r(a[t[0]][s],a[t[1]][s],o);break;default:for(var l=0,u=[];l<n;l++)u[l]=a[t[l]][s];u[l]=o,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=Ca();if(!r)return n;var a=this.count(),o=!this._indices,i;if(o)return this._rawExtent[t].slice();if(i=this._extent[t],i)return i.slice();i=n;for(var s=i[0],l=i[1],u=0;u<a;u++){var x=this.getRawIndex(u),c=r[x];c<s&&(s=c),c>l&&(l=c)}return i=[s,l],this._extent[t]=i,i},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,o=0;o<a.length;o++)n.push(a[o][r]);return n},e.prototype.clone=function(t,r){var n=new e,a=this._chunks,o=t&&Lr(t,function(s,l){return s[l]=!0,s},{});if(o)for(var i=0;i<a.length;i++)n._chunks[i]=o[i]?T4(a[i]):a[i];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=ve(this._extent),t._rawExtent=ve(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,o){return Ua(r[o],this._dimensions[o])}Vu={arrayRows:t,objectRows:function(r,n,a,o){return Ua(r[n],this._dimensions[o])},keyedColumns:t,original:function(r,n,a,o){var i=r&&(r.value==null?r:r.value);return Ua(i instanceof Array?i[o]:i,this._dimensions[o])},typedArray:function(r,n,a,o){return r[o]}}}(),e}(),N4=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,o;if(No(t)){var i=t,s=void 0,l=void 0,u=void 0;if(n){var x=r[0];x.prepareSource(),u=x.getSource(),s=u.data,l=u.sourceFormat,o=[x._getVersionSign()]}else s=i.get("data",!0),l=ht(s)?Nr:Ut,o=[];var c=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},f=le(c.seriesLayoutBy,d.seriesLayoutBy)||null,v=le(c.sourceHeader,d.sourceHeader),g=le(c.dimensions,d.dimensions),p=f!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||g;a=p?[cc(s,{seriesLayoutBy:f,sourceHeader:v,dimensions:g},l)]:[]}else{var m=t;if(n){var E=this._applyTransform(r);a=E.sourceList,o=E.upstreamSignList}else{var y=m.get("source",!0);a=[cc(y,this._getSourceMetaRawOption(),null)],o=[]}}process.env.NODE_ENV!=="production"&&oe(a&&o),this._setLocalSource(a,o)},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"&&oe(a!=null||n!=null),a!=null){var o="";t.length!==1&&(process.env.NODE_ENV!=="production"&&(o="When using `fromTransformResult`, there should be only one upstream dataset"),Jv(o))}var i,s=[],l=[];return k(t,function(u){u.prepareSource();var x=u.getSource(a||0),c="";a!=null&&!x&&(process.env.NODE_ENV!=="production"&&(c="Can not retrieve result by `fromTransformResult`: "+a),Jv(c)),s.push(x),l.push(u._getVersionSign())}),n?i=F4(n,s,{datasetIndex:r.componentIndex}):a!=null&&(i=[c4(s[0])]),{sourceList:i,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"&&oe(No(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,o=this._storeList,i=o[a];i||(i=o[a]={});var s=i[n];if(!s){var l=this._getUpstreamSourceManagers()[0];No(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new fc,s.initData(new p8(r,t.length),t)),i[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(No(t)){var r=jf(t);return r?[r.getSourceManager()]:[]}else return q(L_(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,a;if(No(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),a=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=t;r=o.get("seriesLayoutBy",!0),n=o.get("sourceHeader",!0),a=o.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:a}},e}();function No(e){return e.mainType==="series"}function Jv(e){throw new Error(e)}var D8="line-height:1";function _8(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,a=e.fontWeight||"400",o=e.color||"#464646",i=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Ot(n+"")+"px;color:"+Ot(r)+";font-weight:"+Ot(a+""),valueStyle:"font-size:"+Ot(i+"")+"px;color:"+Ot(o)+";font-weight:"+Ot(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:i,fill:o,fontWeight:s}}}var P4=[0,10,20,30],M4=["",`
|
|
36
36
|
`,`
|
|
37
37
|
|
|
38
38
|
`,`
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
`];function ta(e,t){return t.type=e,t}function hh(e){return e.type==="section"}function xw(e){return hh(e)?OE:RE}function Nw(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=Nw(a);i>=t&&(t=i+ +(n&&(!i||hh(a)&&!a.noHeader)))}),t}return 0}function OE(e,t,r,n){var a=t.noHeader,i=BE(Nw(t)),o=[],s=t.blocks||[];ne(!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 _E(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=xw(p)(g?z(z({},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=Tw(n,e.renderMode).nameStyle;return e.renderMode==="richText"?Dw(e,d,h)+i.richText+f:dh('<div style="'+h+";"+Cw+';">'+It(d)+"</div>"+f,r)}function RE(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(T,C){return lh(T,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=Tw(n,a),_=y.nameStyle,w=y.valueStyle;return a==="richText"?(s?"":f)+(i?"":Dw(e,d,_))+(o?"":FE(e,p,m,g,w)):dh((s?"":f)+(i?"":VE(d,!s,_))+(o?"":$E(p,m,g,w)),r)}}function Jg(e,t,r,n,a,i){if(e){var o=xw(e),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function BE(e){return{html:IE[e],richText:LE[e]}}function dh(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+Cw+';">'+e+r+"</div>"}function VE(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+It(e)+"</span>"}function $E(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 It(o)}).join(" ")+"</span>"}function Dw(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function FE(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 zE(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Qn(n)}function Aw(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var $c=function(){function e(){this.richTextStyles={},this._nextStyleNameId=z_()}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=Dk({color:r,type:t,renderMode:n,markerId:a});return X(i)?i:(process.env.NODE_ENV!=="production"&&ne(a),this.richTextStyles[a]=i.style,i.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};U(r)?k(r,function(i){return z(n,i)}):z(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},e}();function GE(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=zE(t,r),c,f,d,h;if(o>1||l&&!o){var p=HE(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=Cd(t),y=g&&t.name||"",_=a.getName(r),w=n?y:_;return ta("section",{header:y,noHeader:n||!g,sortParam:h,blocks:[ta("nameValue",{markerType:"item",markerColor:u,name:w,noName:!cr(w),value:c,valueType:f,dataIndex:r})].concat(d||[])})}function HE(e,t,r,n,a){var i=t.getData(),o=Ir(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(ta("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 Hr=ke();function hs(e,t){return e.getName(t)||e.getId(t)}var UE="__universalTransitionEnabled",Cu=function(e){G(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=uo({count:YE,reset:qE}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var i=Hr(this).sourceManager=new PE(this);i.prepareSource();var o=this.getInitialData(r,a);em(o,this),this.dataTask.context.data=o,process.env.NODE_ENV!=="production"&&ne(o,"getInitialData returned invalid data."),Hr(this).dataBeforeProcessed=o,Qg(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=Co(this),i=a?Ro(r):{},o=this.subType;De.hasClass(o)&&(o+="Series"),_e(r,n.getTheme().get(this.subType)),_e(r,this.getDefaultOption()),ll(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&Ja(r,i,a)},t.prototype.mergeOption=function(r,n){r=_e(this.option,r,!0),this.fillDataTextStyle(r.data);var a=Co(this);a&&Ja(this.option,r,a);var i=Hr(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);em(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Hr(this).dataBeforeProcessed=o,Qg(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!ct(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&ll(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 Hr(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)}Hr(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return oe(r)},t.prototype.getSourceManager=function(){return Hr(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Hr(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 GE({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ae.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=qd.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=hs(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=Te(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[hs(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[UE])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"){Q(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=n[c],d=hs(r,f);u[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(f)}}else if(s==="single"||s===!0){var h=n[l-1],d=hs(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 De.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}(De);Kt(Cu,_w);Kt(Cu,qd);q_(Cu,De);function Qg(e){var t=e.name;Cd(e)||(e.name=WE(e)||t)}function WE(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 YE(e){return e.model.getRawData().count()}function qE(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),jE}function jE(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function em(e,t){k(oN(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Ne(XE,t))})}function XE(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 Or=Cu;var ev=function(){function e(){this.group=new Re,this.uid=du("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}();xd(ev);au(ev);const Xt=ev;function tv(){var e=ke();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 Mw=ke(),ZE=tv(),rv=function(){function e(){this.group=new Re,this.uid=du("viewChart"),this.renderTask=uo({plan:KE,reset:JE}),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"&&tt("Unknown dataType "+a.dataType);return}rm(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"&&tt("Unknown dataType "+a.dataType);return}rm(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){si(this.group,t)},e.markUpdateMethod=function(t,r){Mw(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function tm(e,t,r){e&&Ka(e)&&(t==="emphasis"?yo:_o)(e,r)}function rm(e,t,r){var n=Zn(e,t),a=t&&t.highlightKey!=null?cM(t.highlightKey):null;n!=null?k(He(n),function(i){tm(e.getItemGraphicEl(i),r,a)}):e.eachItemGraphicEl(function(i){tm(i,r,a)})}xd(rv,["dispose"]);au(rv);function KE(e){return ZE(e.model)}function JE(e){var t=e.model,r=e.ecModel,n=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&Mw(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,a),QE[l]}var QE={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 Yt=rv;var wl="\0__throttleOriginMethod",nm="\0__throttleRate",am="\0__throttleType";function nv(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[wl]||a,o=a[am],s=a[nm];if(s!==r||o!==n){if(r==null||!n)return e[t]=i;a=e[t]=nv(i,r,n==="debounce"),a[wl]=i,a[am]=n,a[nm]=r}return a}}function bl(e,t){var r=e[t];r&&r[wl]&&(r.clear&&r.clear(),e[t]=r[wl])}var im=ke(),om={itemStyle:mo(W1,!0),lineStyle:mo(U1,!0)},e5={lineStyle:"stroke",itemStyle:"fill"};function kw(e,t){var r=e.visualStyleMapper||om[t];return r||(console.warn("Unknown style type '"+t+"'."),om.itemStyle)}function Ew(e,t){var r=e.visualDrawType||e5[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var t5={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=e.getModel(n),i=kw(e,n),o=i(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Ew(e,n),u=o[l],c=se(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"||se(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||se(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=z({},o);g[l]=c(m),h.setItemVisual(p,"style",g)}}}},Ei=new et,r5={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=kw(e,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){Ei.option=l[n];var u=a(Ei),c=o.ensureUniqueItemVisual(s,"style");z(c,u),Ei.option.decal&&(o.setItemVisual(s,"decal",Ei.option.decal),Ei.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},n5={performRawSeries:!0,overallReset:function(e){var t=oe();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)),im(r).scope=i}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),a={},i=r.getData(),o=im(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Ew(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)}})}})}},ds=Math.PI;function a5(e,t){t=t||{},pe(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 Re,n=new Ie({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var a=new Ue({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 Ie({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 Ld({shape:{startAngle:-ds/2,endAngle:-ds/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:ds*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:ds*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 Pw=function(){function e(t,r,n,a){this._stageTaskMap=oe(),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=oe();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.'),ne(!(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 _=o.getPerformArgs(g,a.block);_.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),o.updatePayload(g,n),g.perform(_)&&(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=oe(),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)||uo({plan:u5,reset:c5,count:h5}));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||uo({reset:i5});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=oe(),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.'),ne(!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,uo({reset:o5,onDirty:l5})));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 se(t)&&(t={overallReset:t,seriesType:d5(t)}),t.uid=du("stageHandler"),r&&(t.visualType=r),t},e}();function i5(e){e.overallReset(e.ecModel,e.api,e.payload)}function o5(e){return e.overallProgress&&s5}function s5(){this.agent.dirty(),this.getDownstream().dirty()}function l5(){this.agent&&this.agent.dirty()}function u5(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function c5(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=He(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?q(t,function(r,n){return Iw(n)}):f5}var f5=Iw(0);function Iw(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 h5(e){return e.data.count()}function d5(e){Sl=null;try{e(xo,Lw)}catch{}return Sl}var xo={},Lw={},Sl;Ow(xo,jd);Ow(Lw,cw);xo.eachSeriesByType=xo.eachRawSeriesByType=function(e){Sl=e};xo.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Sl=e.subType)};function Ow(e,t){for(var r in t.prototype)e[r]=lt}var sm=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const v5={color:sm,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],sm]};var at="#B9B8CE",lm="#100C2A",vs=function(){return{axisLine:{lineStyle:{color:at}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},um=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Rw={darkMode:!0,color:um,backgroundColor:lm,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:at}},textStyle:{color:at},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:at}},dataZoom:{borderColor:"#71708A",textStyle:{color:at},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:at}},timeline:{lineStyle:{color:at},label:{color:at},controlStyle:{color:at,borderColor:at}},calendar:{itemStyle:{color:lm},dayLabel:{color:at},monthLabel:{color:at},yearLabel:{color:at}},timeAxis:vs(),logAxis:vs(),valueAxis:vs(),categoryAxis:vs(),line:{symbol:"circle"},graph:{color:um},gauge:{title:{color:at},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:at},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Rw.categoryAxis.splitLine.show=!1;const p5=Rw;var g5=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},a={};if(X(t)){var i=hr(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"],cm=ph.concat(["symbolKeepAspect"]),m5={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);se(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(z({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=Te(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}}},y5={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<cm.length;s++){var l=cm[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function _5(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 Bw(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 w5(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=z({},a),process.env.NODE_ENV!=="production"&&Ge(a.type,n[1]),o.dispatchAction(z(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"&&qt("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=Zn(f,a.fromActionPayload);r.trigger(i,{type:i,seriesId:o.id,name:U(d)?f.getName(d[0]):f.getName(d),selected:X(l)?l:z({},l)})}}))}function b5(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 Zi(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var S5=Math.round(Math.random()*9),C5=typeof Object.defineProperty=="function",T5=function(){function e(){this._id="__ec_inner_"+S5++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return C5?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}(),x5=we.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()}}),N5=we.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()}}),D5=we.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()}}),A5=we.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()}}),M5={line:hn,rect:Ie,roundRect:Ie,square:Ie,circle:Ed,diamond:N5,pin:D5,arrow:A5,triangle:x5},k5={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}},Cl={};k(M5,function(e,t){Cl[t]=new e});var E5=we.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=al(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=Cl[n];a||(n="rect",a=Cl[n]),k5[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,r)}}});function P5(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 Rr(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=R1(e.slice(8),new Ce(t,r,n,a),o?"center":"cover"):e.indexOf("path://")===0?l=cu(e.slice(7),{},new Ce(t,r,n,a),o?"center":"cover"):l=new E5({shape:{symbolType:e,x:t,y:r,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=P5,i&&l.setColor(i),l}function av(e){return U(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function xu(e,t){if(e!=null)return U(e)||(e=[e,e]),[Ae(e[0],t[0])||0,Ae(ie(e[1],e[0]),t[1])||0]}function Gn(e){return isFinite(e)}function I5(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 L5(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"?L5(e,t,r):I5(e,t,r),a=t.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function O5(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 ps(e){return parseInt(e,10)}function gs(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]||ps(s[n])||ps(e.style[n]))-(ps(s[i])||0)-(ps(s[o])||0)|0}function R5(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Me(e)?[e]:U(e)?e:null}function Vw(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&R5(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 B5=new Kn(!0);function Tl(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function fm(e){return typeof e=="string"&&e!=="none"}function xl(e){var t=e.fill;return t!=null&&t!=="none"}function hm(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 dm(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=j_(t.image,t.__image,r);if(iu(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)*sN),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function V5(e,t,r,n){var a,i=Tl(r),o=xl(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||B5,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,_=void 0,w=void 0,S=void 0,T=void 0,C=void 0;(p||m)&&(C=t.getBoundingRect()),p&&(_=f?gh(e,d,C):t.__canvasFillGradient,t.__canvasFillGradient=_),m&&(w=f?gh(e,h,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=w),g&&(S=f||!t.__canvasFillPattern?mh(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(T=f||!t.__canvasStrokePattern?mh(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),p?e.fillStyle=_:g&&(S?e.fillStyle=S:o=!1),m?e.strokeStyle=w:y&&(T?e.strokeStyle=T:i=!1)}var N=t.getGlobalScale();c.setScale(N[0],N[1],t.segmentIgnoreThreshold);var b,x;e.setLineDash&&r.lineDash&&(a=Vw(t),b=a[0],x=a[1]);var A=!0;(u||f&Aa)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),A=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),A&&c.rebuildPath(e,l?s:1),b&&(e.setLineDash(b),e.lineDashOffset=x),n||(r.strokeFirst?(i&&dm(e,r),o&&hm(e,r)):(o&&hm(e,r),i&&dm(e,r))),b&&e.setLineDash([])}function $5(e,t,r){var n=t.__image=j_(r.image,t.__image,t,t.onload);if(!(!n||!iu(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 F5(e,t,r){var n,a=r.text;if(a!=null&&(a+=""),a){e.font=r.font||Xn,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var i=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=Vw(t),i=n[0],o=n[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),r.strokeFirst?(Tl(r)&&e.strokeText(a,r.x,r.y),xl(r)&&e.fillText(a,r.x,r.y)):(xl(r)&&e.fillText(a,r.x,r.y),Tl(r)&&e.strokeText(a,r.x,r.y)),i&&e.setLineDash([])}}var vm=["shadowBlur","shadowOffsetX","shadowOffsetY"],pm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function $w(e,t,r,n,a){var i=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){vt(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||(vt(e,a),i=!0),e.globalCompositeOperation=t.blend||Un.blend);for(var s=0;s<vm.length;s++){var l=vm[s];(n||t[l]!==r[l])&&(i||(vt(e,a),i=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(i||(vt(e,a),i=!0),e.shadowColor=t.shadowColor||Un.shadowColor),i}function gm(e,t,r,n,a){var i=No(t,a.inHover),o=n?null:r&&No(r,a.inHover)||{};if(i===o)return!1;var s=$w(e,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(vt(e,a),s=!0),fm(i.fill)&&(e.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(vt(e,a),s=!0),fm(i.stroke)&&(e.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(vt(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||(vt(e,a),s=!0),e.lineWidth=u)}for(var c=0;c<pm.length;c++){var f=pm[c],d=f[0];(n||i[d]!==o[d])&&(s||(vt(e,a),s=!0),e[d]=i[d]||f[1])}return s}function z5(e,t,r,n,a){return $w(e,No(t,a.inHover),r&&No(r,a.inHover),n,a)}function Fw(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 G5(e,t,r){for(var n=!1,a=0;a<e.length;a++){var i=e[a];n=n||i.isZeroArea(),Fw(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}r.allClipped=n}function H5(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 mm=1,ym=2,_m=3,wm=4;function U5(e){var t=xl(e),r=Tl(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 vt(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function No(e,t){return t&&e.__hoverStyle||e.style}function zw(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&=~bt,t.__isRendered=!1;return}var i=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||O5(i,o))&&(o&&o.length&&(vt(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(vt(e,r),e.save(),G5(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 we&&t.autoBatch&&U5(t.style);s||H5(a,u.transform)?(vt(e,r),Fw(e,t)):c||vt(e,r);var f=No(t,r.inHover);t instanceof we?(r.lastDrawType!==mm&&(l=!0,r.lastDrawType=mm),gm(e,t,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&e.beginPath(),V5(e,t,f,c),c&&(r.batchFill=f.fill||"",r.batchStroke=f.stroke||"")):t instanceof rh?(r.lastDrawType!==_m&&(l=!0,r.lastDrawType=_m),gm(e,t,u,l,r),F5(e,t,f)):t instanceof pn?(r.lastDrawType!==ym&&(l=!0,r.lastDrawType=ym),z5(e,t,u,l,r),$5(e,t,f)):t.getTemporalDisplayables&&(r.lastDrawType!==wm&&(l=!0,r.lastDrawType=wm),W5(e,t,r)),c&&n&&vt(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function W5(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 Fc=new T5,bm=new Io(100),Sm=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Nl(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";e.dirty&&Fc.delete(e);var i=Fc.get(e);if(i)return i;var o=pe(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,Fc.set(e,s),e.dirty=!1,s;function l(u){for(var c=[r],f=!0,d=0;d<Sm.length;++d){var h=o[Sm[d]];if(h!=null&&!U(h)&&!X(h)&&!Me(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var p;if(f){p=c.join(",")+(a?"-svg":"");var m=bm.get(p);m&&(a?u.svgElement=m:u.image=m)}var g=Hw(o.dashArrayX),y=Y5(o.dashArrayY),_=Gw(o.symbol),w=q5(g),S=Uw(y),T=!a&&ni.createCanvas(),C=a&&{tag:"g",attrs:{},key:"dcl",children:[]},N=x(),b;T&&(T.width=N.width*r,T.height=N.height*r,b=T.getContext("2d")),A(),f&&bm.put(p,T||C),u.image=T,u.svgElement=C,u.svgWidth=N.width,u.svgHeight=N.height;function x(){for(var D=1,M=0,P=w.length;M<P;++M)D=Lp(D,w[M]);for(var E=1,M=0,P=_.length;M<P;++M)E=Lp(E,_[M].length);D*=E;var I=S*w.length*_.length;if(process.env.NODE_ENV!=="production"){var L=function(V){console.warn("Calculated decal size is greater than "+V+" due to decal option settings so "+V+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+V+" to be larger to avoid incontinuity.")};D>o.maxTileWidth&&L("maxTileWidth"),I>o.maxTileHeight&&L("maxTileHeight")}return{width:Math.max(1,Math.min(D,o.maxTileWidth)),height:Math.max(1,Math.min(I,o.maxTileHeight))}}function A(){b&&(b.clearRect(0,0,T.width,T.height),o.backgroundColor&&(b.fillStyle=o.backgroundColor,b.fillRect(0,0,T.width,T.height)));for(var D=0,M=0;M<y.length;++M)D+=y[M];if(D<=0)return;for(var P=-S,E=0,I=0,L=0;P<N.height;){if(E%2===0){for(var V=I/2%_.length,B=0,$=0,H=0;B<N.width*2;){for(var O=0,M=0;M<g[L].length;++M)O+=g[L][M];if(O<=0)break;if($%2===0){var Y=(1-o.symbolSize)*.5,J=B+g[L][$]*Y,K=P+y[E]*Y,ge=g[L][$]*o.symbolSize,fe=y[E]*o.symbolSize,ve=H/2%_[V].length;ue(J,K,ge,fe,_[V][ve])}B+=g[L][$],++H,++$,$===g[L].length&&($=0)}++L,L===g.length&&(L=0)}P+=y[E],++I,++E,E===y.length&&(E=0)}function ue(me,ce,Z,ee,nt){var Be=a?1:r,zt=Rr(nt,me*Be,ce*Be,Z*Be,ee*Be,o.color,o.symbolKeepAspect);if(a){var Tt=n.painter.renderOneToVNode(zt);Tt&&C.children.push(Tt)}else zw(b,zt)}}}}function Gw(e){if(!e||e.length===0)return[["rect"]];if(X(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!X(e[r])){t=!1;break}if(t)return Gw([e]);for(var n=[],r=0;r<e.length;++r)X(e[r])?n.push([e[r]]):n.push(e[r]);return n}function Hw(e){if(!e||e.length===0)return[[0,0]];if(Me(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!Me(e[n])){r=!1;break}if(r)return Hw([e]);for(var a=[],n=0;n<e.length;++n)if(Me(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 Y5(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(Me(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 q5(e){return q(e,function(t){return Uw(t)})}function Uw(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function j5(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=Nl(s,t)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=Nl(a,t)}}})}var Wt=new Jt,Dl={};function X5(e,t){process.env.NODE_ENV!=="production"&&Dl[e]&&tt("Already has an implementation of "+e+"."),Dl[e]=t}function Z5(e){return process.env.NODE_ENV!=="production"&&(Dl[e]||tt("Implementation of "+e+" doesn't exists.")),Dl[e]}var K5=1,J5=800,Q5=900,eP=1e3,tP=2e3,rP=5e3,Ww=1e3,nP=1100,iv=2e3,Yw=3e3,aP=4e3,Nu=4500,iP=4600,oP=5e3,sP=6e3,qw=7e3,lP={PROCESSOR:{FILTER:eP,SERIES_FILTER:J5,STATISTIC:rP},VISUAL:{LAYOUT:Ww,PROGRESSIVE_LAYOUT:nP,GLOBAL:iv,CHART:Yw,POST_CHART_LAYOUT:iP,COMPONENT:aP,BRUSH:oP,CHART_ITEM:Nu,ARIA:sP,DECAL:qw}},Ze="__flagInMainProcess",ht="__pendingUpdate",zc="__needsUpdateStatus",Cm=/^[a-zA-Z0-9_]+$/,Gc="__connectUpdateStatus",Tm=0,uP=1,cP=2;function jw(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){_t(this.id);return}return Zw(this,e,t)}}function Xw(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Zw(this,e,t)}}function Zw(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Jt.prototype[t].apply(e,r)}var Kw=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Jt),Jw=Kw.prototype;Jw.on=Xw("on");Jw.off=Xw("off");var Sa,Hc,ms,Ur,Uc,Wc,Yc,Pi,Ii,xm,Nm,qc,Dm,ys,Am,Qw,Nt,Mm,eb=function(e){G(t,e);function t(r,n,a){var i=e.call(this,new g5)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},X(n)&&(n=tb[n]),i._dom=r;var o="canvas",s="auto",l=!1;if(process.env.NODE_ENV!=="production"){var u=ae.hasGlobalWindow?window:global;u&&(o=ie(u.__ECHARTS__DEFAULT__RENDERER__,o),s=ie(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=ie(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l))}a.ssr;var c=i._zr=Pp(r,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:ie(a.useDirtyRect,l),useCoarsePointer:ie(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=nv(te(c.flush,c),17),n=he(n),n&&hw(n,!0),i._theme=n,i._locale=wk(a.locale||Y1),i._coordSysMgr=new Xd;var f=i._api=Am(i);function d(h,p){return h.__prio-p.__prio}return Bs(Ml,d),Bs(yh,d),i._scheduler=new Pw(i,f,yh,Ml),i._messageCenter=new Kw,i._initEvents(),i.resize=te(i.resize,i),c.animation.on("frame",i._onframe,i),xm(c,i),Nm(c,i),Lf(i),i}return t.prototype._onframe=function(){if(!this._disposed){Mm(this);var r=this._scheduler;if(this[ht]){var n=this[ht].silent;this[Ze]=!0;try{Sa(this),Ur.update.call(this,null,this[ht].updateParams)}catch(l){throw this[Ze]=!1,this[ht]=null,l}this._zr.flush(),this[Ze]=!1,this[ht]=null,Pi.call(this,n),Ii.call(this,n)}else if(r.unfinished){var a=K5,i=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(i),r.performDataProcessorTasks(i),Wc(this,i),r.performVisualTasks(i),ys(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"&&tt("`setOption` should not be called during main process.");return}if(this._disposed){_t(this.id);return}var i,o,s;if(Q(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 tE(this._api),u=this._theme,c=this._model=new jd;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[ht]={silent:i,updateParams:f},this[Ze]=!1,this.getZr().wakeUp();else{try{Sa(this),Ur.update.call(this,null,f)}catch(d){throw this[ht]=null,this[Ze]=!1,d}this._ssr||this._zr.flush(),this[ht]=null,this[Ze]=!1,Pi.call(this,i),Ii.call(this,i)}},t.prototype.setTheme=function(){qt("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||ae.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return process.env.NODE_ENV!=="production"&&Ge("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(ae.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){_t(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){_t(this.id);return}var n=r.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(km[a]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();k(fo,function(w,S){if(w.group===a){var T=n?w.getZr().painter.getSvgDom().innerHTML:w.renderToCanvas(he(r)),C=w.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:T,left:C.left,top:C.top})}}),l*=h,u*=h,c*=h,f*=h;var p=c-l,m=f-u,g=ni.createCanvas(),y=Pp(g,{renderer:n?"svg":"canvas"});if(y.resize({width:p,height:m}),n){var _="";return k(d,function(w){var S=w.left-l,T=w.top-u;_+='<g transform="translate('+S+","+T+')">'+w.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=_,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new Ie({shape:{x:0,y:0,width:p,height:m},style:{fill:r.connectedBackgroundColor}})),k(d,function(w){var S=new pn({style:{x:w.left*h-l,y:w.top*h-u,image:w.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 Uc(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Uc(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){_t(this.id);return}var a=this._model,i,o=hc(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"&&ze(l+": "+(f?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&ze(l+": containPoint is not supported")},this)},this),!!i},t.prototype.getVisual=function(r,n){var a=this._model,i=hc(a,r,{defaultMainType:"series"}),o=i.seriesModel;process.env.NODE_ENV!=="production"&&(o||ze("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?_5(s,l,n):Bw(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(fP,function(n){var a=function(i){var o=r.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&Zi(s,function(p){var m=ye(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=z({},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)&&ze("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(co,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)}),b5(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){_t(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){_t(this.id);return}this._disposed=!0;var r=this.getDom();r&&W_(this.getDom(),sv,"");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 fo[n.id]},t.prototype.resize=function(r){if(this[Ze]){process.env.NODE_ENV!=="production"&&tt("`resize` should not be called during main process.");return}if(this._disposed){_t(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[ht]&&(i==null&&(i=this[ht].silent),a=!0,this[ht]=null),this[Ze]=!0;try{a&&Sa(this),Ur.update.call(this,{type:"resize",animation:z({duration:0},r&&r.animation)})}catch(o){throw this[Ze]=!1,o}this[Ze]=!1,Pi.call(this,i),Ii.call(this,i)}},t.prototype.showLoading=function(r,n){if(this._disposed){_t(this.id);return}if(Q(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!wh[r]){process.env.NODE_ENV!=="production"&&ze("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){_t(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=z({},r);return n.type=co[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){_t(this.id);return}if(Q(n)||(n={silent:!!n}),!!Al[r.type]&&this._model){if(this[Ze]){this._pendingActions.push(r);return}var a=n.silent;Yc.call(this,r,a);var i=n.flush;i?this._zr.flush():i!==!1&&ae.browser.weChat&&this._throttledZrFlush(),Pi.call(this,a),Ii.call(this,a)}},t.prototype.updateLabelLayout=function(){Wt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){_t(this.id);return}var n=r.seriesIndex,a=this.getModel(),i=a.getSeriesByIndex(n);process.env.NODE_ENV!=="production"&&ne(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(),Hc(f,!0),Hc(f,!1),d.plan()},Hc=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,_=f._api,w=0;w<m.length;w++)m[w].__alive=!1;d?h.eachComponent(function(C,N){C!=="series"&&S(N)}):h.eachSeries(S);function S(C){var N=C.__requireNewView;C.__requireNewView=!1;var b="_ec_"+C.id+"_"+C.type,x=!N&&g[b];if(!x){var A=hr(C.type),D=d?Xt.getClass(A.main,A.sub):Yt.getClass(A.sub);process.env.NODE_ENV!=="production"&&ne(D,A.sub+" does not exist."),x=new D,x.init(h,_),g[b]=x,m.push(x),y.add(x.group)}C.__viewId=x.__id=b,x.__alive=!0,x.__model=C,x.group.__ecComponentInfo={mainType:C.mainType,index:C.componentIndex},!d&&p.prepareView(x,C,h,_)}for(var w=0;w<m.length;){var T=m[w];T.__alive?w++:(!d&&T.renderTask.dispose(),y.remove(T.group),T.dispose(h,_),m.splice(w,1),g[T.__id]===T&&delete g[T.__id],T.__id=T.group.__ecComponentInfo=null)}},ms=function(f,d,h,p,m){var g=f._model;if(g.setUpdatePayload(h),!p){k([].concat(f._componentsViews).concat(f._chartsViews),T);return}var y={};y[p+"Id"]=h[p+"Id"],y[p+"Index"]=h[p+"Index"],y[p+"Name"]=h[p+"Name"];var _={mainType:p,query:y};m&&(_.subType=m);var w=h.excludeSeriesId,S;w!=null&&(S=oe(),k(He(w),function(C){var N=dr(C,null);N!=null&&S.set(N,!0)})),g&&g.eachComponent(_,function(C){var N=S&&S.get(C.id)!=null;if(!N)if(cg(h))if(C instanceof Or)h.type===Wn&&!h.notBlur&&!C.get(["emphasis","disabled"])&&rM(C,h,f._api);else{var b=kd(C.mainType,C.componentIndex,h.name,f._api),x=b.focusSelf,A=b.dispatchers;h.type===Wn&&x&&!h.notBlur&&ah(C.mainType,C.componentIndex,f._api),A&&k(A,function(D){h.type===Wn?yo(D):_o(D)})}else ih(h)&&C instanceof Or&&(iM(C,h,f._api),lg(C),Nt(f))},f),g&&g.eachComponent(_,function(C){var N=S&&S.get(C.id)!=null;N||T(f[p==="series"?"_chartsMap":"_componentsMap"][C.__viewId])},f);function T(C){C&&C.__alive&&C[d]&&C[d](C.__model,g,f._api,h)}},Ur={prepareAndUpdate:function(f){Sa(this),Ur.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),Wc(this,h),g.update(h,p),r(h),y.performVisualTasks(h,f),qc(this,h,p,f,d);var _=h.get("backgroundColor")||"transparent",w=h.get("darkMode");m.setBackgroundColor(_),w!=null&&w!=="auto"&&m.setDarkMode(w),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,_){if(y!=="series"){var w=d.getViewOfComponentModel(_);if(w&&w.__alive)if(w.updateTransform){var S=w.updateTransform(_,h,p,f);S&&S.update&&m.push(w)}else m.push(w)}});var g=oe();h.eachSeries(function(y){var _=d._chartsMap[y.__viewId];if(_.updateTransform){var w=_.updateTransform(y,h,p,f);w&&w.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),r(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:g}),ys(this,h,p,f,{},g),Wt.trigger("afterupdate",h,p)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),Yt.markUpdateMethod(f,"updateView"),r(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),qc(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()}),Yt.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){Ur.update.call(this,f)}},Uc=function(f,d,h,p){if(f._disposed){_t(f.id);return}for(var m=f._model,g=f._coordSysMgr.getCoordinateSystems(),y,_=hc(m,h),w=0;w<g.length;w++){var S=g[w];if(S[d]&&(y=S[d](m,_,p))!=null)return y}process.env.NODE_ENV!=="production"&&ze("No coordinate system that supports "+d+" found by the given finder.")},Wc=function(f,d){var h=f._chartsMap,p=f._scheduler;d.eachSeries(function(m){p.updateStreamModes(m,h[m.__viewId])})},Yc=function(f,d){var h=this,p=this.getModel(),m=f.type,g=f.escapeConnect,y=Al[m],_=y.actionInfo,w=(_.update||"update").split(":"),S=w.pop(),T=w[0]!=null&&hr(w[0]);this[Ze]=!0;var C=[f],N=!1;f.batch&&(N=!0,C=q(f.batch,function(E){return E=pe(z({},E),f),E.batch=null,E}));var b=[],x,A=ih(f),D=cg(f);if(D&&g1(this._api),k(C,function(E){if(x=y.action(E,h._model,h._api),x=x||z({},E),x.type=_.event||x.type,b.push(x),D){var I=Td(f),L=I.queryOptionMap,V=I.mainTypeSpecified,B=V?L.keys()[0]:"series";ms(h,S,E,B),Nt(h)}else A?(ms(h,S,E,"series"),Nt(h)):T&&ms(h,S,E,T.main,T.sub)}),S!=="none"&&!D&&!A&&!T)try{this[ht]?(Sa(this),Ur.update.call(this,f),this[ht]=null):Ur[S].call(this,f)}catch(E){throw this[Ze]=!1,E}if(N?x={type:_.event||m,escapeConnect:g,batch:b}:x=b[0],this[Ze]=!1,!d){var M=this._messageCenter;if(M.trigger(x.type,x),A){var P={type:"selectchanged",escapeConnect:g,selected:oM(p),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};M.trigger(P.type,P)}}},Pi=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();Yc.call(this,h,f)}},Ii=function(f){!f&&this.trigger("updated")},xm=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[ht]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},Nm=function(f,d){f.on("mouseover",function(h){var p=h.target,m=Zi(p,Ka);m&&(nM(m,h,d._api),Nt(d))}).on("mouseout",function(h){var p=h.target,m=Zi(p,Ka);m&&(aM(m,h,d._api),Nt(d))}).on("click",function(h){var p=h.target,m=Zi(p,function(_){return ye(_).dataIndex!=null},!0);if(m){var g=m.selected?"unselect":"select",y=ye(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=w.get("zlevel")||0,T=w.get("z")||0,C=w.getZLevelKey();p=p||!!C,(_==="series"?h:d).push({zlevel:S,z:T,idx:w.componentIndex,type:_,key:C})}),p){var m=d.concat(h),g,y;Bs(m,function(_,w){return _.zlevel===w.zlevel?_.z-w.z:_.zlevel-w.zlevel}),k(m,function(_){var w=f.getComponent(_.type,_.idx),S=_.zlevel,T=_.key;g!=null&&(S=Math.max(g,S)),T?(S===g&&T!==y&&S++,y=T):y&&(S===g&&S++,y=""),g=S,w.setZLevel(S)})}}qc=function(f,d,h,p,m){n(d),Dm(f,d,h,p,m),k(f._chartsViews,function(g){g.__alive=!1}),ys(f,d,h,p,m),k(f._chartsViews,function(g){g.__alive||g.remove(d,h)})},Dm=function(f,d,h,p,m,g){k(g||f._componentsViews,function(y){var _=y.__model;u(_,y),y.render(_,d,h,p),s(_,y),c(_,y)})},ys=function(f,d,h,p,m,g){var y=f._scheduler;m=z(m||{},{updatedSeries:d.getSeries()}),Wt.trigger("series:beforeupdate",d,h,m);var _=!1;d.eachSeries(function(w){var S=f._chartsMap[w.__viewId];S.__alive=!0;var T=S.renderTask;y.updatePayload(T,p),u(w,S),g&&g.get(w.uid)&&T.dirty(),T.perform(y.getPerformArgs(T))&&(_=!0),S.group.silent=!!w.get("silent"),o(w,S),lg(w)}),y.unfinished=_||y.unfinished,Wt.trigger("series:layoutlabels",d,h,m),Wt.trigger("series:transition",d,h,m),d.eachSeries(function(w){var S=f._chartsMap[w.__viewId];s(w,S),c(w,S)}),i(f,d),Wt.trigger("series:afterupdate",d,h,m)},Nt=function(f){f[zc]=!0,f.getZr().wakeUp()},Mm=function(f){f[zc]&&(f.getZr().storage.traverse(function(d){oo(d)||a(d)}),f[zc]=!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===lu&&f.states.emphasis?d.push("emphasis"):f.hoverState===su&&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")&&!ae.node&&!ae.worker&&d.eachSeries(function(g){if(!g.preventUsingHoverLayer){var y=f._chartsMap[g.__viewId];y.__alive&&y.eachRendered(function(_){_.states.emphasis&&(_.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 _=f.childrenRef(),w=0;w<_.length;w++)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(!oo(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(oo(y))return;if(y instanceof we&&fM(y),y.__dirty){var _=y.prevStates;_&&y.useStates(_)}if(p){y.stateTransition=g;var w=y.getTextContent(),S=y.getTextGuideLine();w&&(w.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&a(y)}})}Am=function(f){return new(function(d){G(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){yo(p,m),Nt(f)},h.prototype.leaveEmphasis=function(p,m){_o(p,m),Nt(f)},h.prototype.enterBlur=function(p){h1(p),Nt(f)},h.prototype.leaveBlur=function(p){Md(p),Nt(f)},h.prototype.enterSelect=function(p){d1(p),Nt(f)},h.prototype.leaveSelect=function(p){v1(p),Nt(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}(cw))(f)},Qw=function(f){function d(h,p){for(var m=0;m<h.length;m++){var g=h[m];g[Gc]=p}}k(co,function(h,p){f._messageCenter.on(p,function(m){if(km[f.group]&&f[Gc]!==Tm){if(m&&m.escapeConnect)return;var g=f.makeActionFromEvent(m),y=[];k(fo,function(_){_!==f&&_.group===f.group&&y.push(_)}),d(y,Tm),k(y,function(_){_[Gc]!==uP&&_.dispatchAction(g)}),d(y,cP)}})})}}(),t}(Jt),ov=eb.prototype;ov.on=jw("on");ov.off=jw("off");ov.one=function(e,t,r){var n=this;qt("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 fP=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function _t(e){process.env.NODE_ENV!=="production"&&ze("Instance "+e+" has been disposed")}var Al={},co={},yh=[],_h=[],Ml=[],tb={},wh={},fo={},km={},hP=+new Date-0,sv="_echarts_instance_";function dP(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=vP(e);if(a)return process.env.NODE_ENV!=="production"&&ze("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))&&ze("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 eb(e,t,r);return i.id="ec_"+hP++,fo[i.id]=i,n&&W_(e,sv,i.id),Qw(i),Wt.trigger("afterinit",i),i}function vP(e){return fo[WD(e,sv)]}function Du(e,t){tb[e]=t}function rb(e){de(_h,e)<0&&_h.push(e)}function nb(e,t){uv(yh,e,t,tP)}function pP(e){lv("afterinit",e)}function gP(e){lv("afterupdate",e)}function lv(e,t){Wt.on(e,t)}function sa(e,t,r){se(t)&&(r=t,t="");var n=Q(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!co[t]&&(ne(Cm.test(n)&&Cm.test(t)),Al[n]||(Al[n]={action:r,actionInfo:e}),co[t]=n)}function mP(e,t){Xd.register(e,t)}function yP(e,t){uv(Ml,e,t,Ww,"layout")}function la(e,t){uv(Ml,e,t,Yw,"visual")}var Em=[];function uv(e,t,r,n,a){if((se(t)||Q(t))&&(r=t,t=n),process.env.NODE_ENV!=="production"){if(isNaN(t)||t==null)throw new Error("Illegal priority");k(e,function(o){ne(o.__raw!==r)})}if(!(de(Em,r)>=0)){Em.push(r);var i=Pw.wrapStageHandler(r,a);i.__prio=t,i.__raw=r,e.push(i)}}function ab(e,t){wh[e]=t}function _P(e,t,r){var n=Z5("registerMap");n&&n(e,t,r)}var wP=NE;la(iv,t5);la(Nu,r5);la(Nu,n5);la(iv,m5);la(Nu,y5);la(qw,j5);rb(hw);nb(Q5,uE);ab("default",a5);sa({type:Wn,event:Wn,update:Wn},lt);sa({type:zs,event:zs,update:zs},lt);sa({type:no,event:no,update:no},lt);sa({type:Gs,event:Gs,update:Gs},lt);sa({type:ao,event:ao,update:ao},lt);Du("light",v5);Du("dark",p5);function Li(e){return e==null?0:e.length||1}function Pm(e){return e}var bP=function(){function e(t,r,n,a,i,o){this._old=t,this._new=r,this._oldKeyGetter=n||Pm,this._newKeyGetter=a||Pm,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=Li(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=Li(u),d=Li(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=Li(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=Li(l);u===0?(r[s]=o,i&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}();const ib=bP;var SP=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 CP(e,t){var r={},n=r.encode={},a=oe(),i=[],o=[],s={};k(e.dimensions,function(d){var h=e.getDimensionInfo(d),p=h.coordDim;if(p){process.env.NODE_ENV!=="production"&&ne(uh.get(p)==null);var m=h.coordDimIndex;jc(n,p)[m]=d,h.isExtraCoord||(a.set(p,1),xP(h.type)&&(i[0]=d),jc(s,p)[m]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}uh.each(function(g,y){var _=jc(n,y),w=h.otherDims[y];w!=null&&w!==!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 SP(s,t),r}function jc(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function TP(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function xP(e){return!(e==="ordinal"||e==="time")}var Ws=function(){function e(t){this.otherDims={},t!=null&&z(this,t)}return e}(),NP=ke(),DP={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},ob=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=ub(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return ie(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=vw(this.source),n=!cb(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+=DP[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 sb(e){return e instanceof ob}function lb(e){for(var t=oe(),r=0;r<(e||[]).length;r++){var n=e[r],a=Q(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,r)}return t}function ub(e){var t=NP(e);return t.dimNameMap||(t.dimNameMap=lb(e.dimensionsDefine))}function cb(e){return e>30}var Oi=Q,Wr=q,AP=typeof Int32Array>"u"?Array:Int32Array,MP="e\0\0",Im=-1,kP=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],EP=["_approximateExtent"],Lm,_s,Ri,Ca,Xc,ws,Zc,ho=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;sb(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=X(f)?new Ws({name:f}):f instanceof Ws?f:new Ws(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"&&ne(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=oe();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(Me(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=Zd(t)||ut(t)?new pw(t,o.length):t;i=new fh;var l=Wr(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=CP(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&&Zc(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!==Mr&&!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&&ID(f)&&(this.hasItemOption=!0),f){var d=f.name;i[c]==null&&d!=null&&(i[c]=dr(d,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=dr(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<r;c++)Zc(this,c);Lm(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){Oi(t)?z(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=Ri(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 _s(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(Wr(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)?Im:a},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){se(t)&&(n=r,r=t,t=[]);var a=n||this,i=Wr(Ca(t),this._getStoreDimIndex,this);this._store.each(i,a?te(r,a):r)},e.prototype.filterSelf=function(t,r,n){se(t)&&(n=r,r=t,t=[]);var a=n||this,i=Wr(Ca(t),this._getStoreDimIndex,this);return this._store=this._store.filter(i,a?te(r,a):r),this},e.prototype.selectRange=function(t){var r=this,n={},a=Te(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){se(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=Wr(Ca(t),this._getStoreDimIndex,this),s=ws(this);return s._store=this._store.map(o,i?te(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=Wr(Ca(t),this._getStoreDimIndex,this);this._store.modify(s,o?te(r,o):r)},e.prototype.downSample=function(t,r,n,a){var i=ws(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),r,n,a),i},e.prototype.lttbDownSample=function(t,r){var n=ws(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 et(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new ib(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return _s(t,n)},function(n){return _s(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||{},Oi(t)?z(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():Oi(i)&&(i=z({},i)),a[r]=i),i},e.prototype.setItemVisual=function(t,r,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Oi(r)?z(a,r):a[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Oi(t)?z(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?z(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;qA(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:Wr(this.dimensions,this._getDimInfo,this),this.hostModel)),Xc(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];se(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(hd(arguments)))})},e.internalField=function(){Lm=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 AP(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Im;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},Ri=function(t,r,n){return dr(t._getCategory(r,n),null)},_s=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Ri(t,t._idDimIdx,r)),n==null&&(n=MP+r),n},Ca=function(t){return U(t)||(t=t!=null?[t]:[]),t},ws=function(t){var r=new e(t._schema?t._schema:Wr(t.dimensions,t._getDimInfo,t),t.hostModel);return Xc(r,t),r},Xc=function(t,r){k(kP.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,k(EP,function(n){t[n]=he(r[n])}),t._calculationInfo=z({},r._calculationInfo)},Zc=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=Ri(t,i,r)),l==null&&o!=null&&(a[r]=l=Ri(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 fb(e,t){Zd(e)||(e=Kd(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],a=oe(),i=[],o=IP(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&cb(o),l=n===e.dimensionsDefine,u=l?ub(e):lb(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=oe(c),d=new bw(o),h=0;h<d.length;h++)d[h]=-1;function p(x){var A=d[x];if(A<0){var D=n[x],M=Q(D)?D:{name:D},P=new Ws,E=M.name;E!=null&&u.get(E)!=null&&(P.name=P.displayName=E),M.type!=null&&(P.type=M.type),M.displayName!=null&&(P.displayName=M.displayName);var I=i.length;return d[x]=I,P.storeDimIndex=x,i.push(P),P}return i[A]}if(!s)for(var h=0;h<o;h++)p(h);f.each(function(x,A){var D=He(x).slice();if(D.length===1&&!X(D[0])&&D[0]<0){f.set(A,!1);return}var M=f.set(A,[]);k(D,function(P,E){var I=X(P)?u.get(P):P;I!=null&&I<o&&(M[E]=I,g(p(I),A,E))})});var m=0;k(r,function(x){var A,D,M,P;if(X(x))A=x,P={};else{P=x,A=P.name;var E=P.ordinalMeta;P.ordinalMeta=null,P=z({},P),P.ordinalMeta=E,D=P.dimsDef,M=P.otherDims,P.name=P.coordDim=P.coordDimIndex=P.dimsDef=P.otherDims=null}var I=f.get(A);if(I!==!1){if(I=He(I),!I.length)for(var L=0;L<(D&&D.length||1);L++){for(;m<o&&p(m).coordDim!=null;)m++;m<o&&I.push(m++)}k(I,function(V,B){var $=p(V);if(l&&P.type!=null&&($.type=P.type),g(pe($,P),A,B),$.name==null&&D){var H=D[B];!Q(H)&&(H={name:H}),$.name=$.displayName=H.name,$.defaultTooltip=H.defaultTooltip}M&&pe($.otherDims,M)})}});function g(x,A,D){uh.get(A)!=null?x.otherDims[A]=D:(x.coordDim=A,x.coordDimIndex=D,a.set(A,!0))}var y=t.generateCoord,_=t.generateCoordCount,w=_!=null;_=y?_||1:0;var S=y||"value";function T(x){x.name==null&&(x.name=x.coordDim)}if(s)k(i,function(x){T(x)}),i.sort(function(x,A){return x.storeDimIndex-A.storeDimIndex});else for(var C=0;C<o;C++){var N=p(C),b=N.coordDim;b==null&&(N.coordDim=LP(S,a,w),N.coordDimIndex=0,(!y||_<=0)&&(N.isExtraCoord=!0),_--),T(N),N.type==null&&(lw(e,C)===We.Must||N.isExtraCoord&&(N.otherDims.itemName!=null||N.otherDims.seriesName!=null))&&(N.type="ordinal")}return PP(i),new ob({source:e,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function PP(e){for(var t=oe(),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 IP(e,t,r,n){var a=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return k(t,function(i){var o;Q(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function LP(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 OP=function(){function e(t){this.coordSysDims=[],this.axisMap=oe(),this.categoryAxisMap=oe(),this.coordSysName=t}return e}();function RP(e){var t=e.get("coordinateSystem"),r=new OP(t),n=BP[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var BP={cartesian2d:function(e,t,r,n){var a=e.getReferringComponents("xAxis",pt).models[0],i=e.getReferringComponents("yAxis",pt).models[0];if(process.env.NODE_ENV!=="production"){if(!a)throw new Error('xAxis "'+cn(e.get("xAxisIndex"),e.get("xAxisId"),0)+'" not found');if(!i)throw new Error('yAxis "'+cn(e.get("xAxisIndex"),e.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],r.set("x",a),r.set("y",i),Ta(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),Ta(i)&&(n.set("y",i),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var a=e.getReferringComponents("singleAxis",pt).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],r.set("single",a),Ta(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var a=e.getReferringComponents("polar",pt).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),Ta(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),Ta(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),Ta(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Ta(e){return e.get("type")==="category"}function VP(e,t,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,i,o,s;$P(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){X(_)&&(i[w]=_={name:_}),l&&!_.isExtraCoord&&(!n&&!u&&_.ordinalMeta&&(u=_),!c&&_.type!=="ordinal"&&_.type!=="time"&&(!a||a===_.coordDim)&&(c=_))}),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(_){_.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 $P(e){return!sb(e.schema)}function ra(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function hb(e,t){return ra(e,t)?e.getCalculationInfo("stackResultDimension"):t}function FP(e,t){var r=e.get("coordinateSystem"),n=Xd.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=TP(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function zP(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 Au(e,t,r){r=r||{};var n=t.getSourceManager(),a,i=!1;e?(i=!0,a=Kd(e)):(a=n.getSource(),i=a.sourceFormat===Ft);var o=RP(t),s=FP(t,o),l=r.useEncodeDefaulter,u=se(l)?l:l?Ne(Lk,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=fb(a,c),d=zP(f.dimensions,r.createInvertedIndices,o),h=i?null:n.getSharedDataStore(f),p=VP(t,{schema:f,store:h}),m=new ho(f,t);m.setCalculationInfo(p);var g=d!=null&&GP(a)?function(y,_,w,S){return S===d?w:this.defaultDimValueGetter(y,_,w,S)}:null;return m.hasItemOption=!1,m.initData(i?a:h,null,g),m}function GP(e){if(e.sourceFormat===Ft){var t=HP(e.data||[]);return!U(Lo(t))}}function HP(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var mr=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}();au(mr);var UP=0,bh=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++UP}return e.createByAxisModel=function(t){var r=t.option,n=r.data,a=n&&q(n,WP);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(!X(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=oe(this.categories))},e}();function WP(e){return Q(e)&&e.value!=null?e.value:e+""}function YP(e){var t=Math.pow(10,ru(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 qP(e,t,r,n){var a={},i=e[1]-e[0],o=a.interval=$_(i/t,!0);r!=null&&o<r&&(o=a.interval=r),n!=null&&o>n&&(o=a.interval=n);var s=a.intervalPrecision=db(o),l=a.niceTickExtent=[$e(Math.ceil(e[0]/o)*o,s),$e(Math.floor(e[1]/o)*o,s)];return jP(l,e),a}function Kc(e){var t=Math.pow(10,ru(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,$e(r*t)}function db(e){return fr(e)+2}function Om(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function jP(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Om(e,0,t),Om(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Mu(e,t){return e>=t[0]&&e<=t[1]}function ku(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Eu(e,t){return e*(t[1]-t[0])+t[0]}var vb=function(e){G(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 Q(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:X(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),Mu(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),ku(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(Eu(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}(mr);mr.registerClass(vb);const pb=vb;var Bn=$e,gb=function(e){G(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 Mu(r,this._extent)},t.prototype.normalize=function(r){return ku(r,this._extent)},t.prototype.scale=function(r){return Eu(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=db(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=fr(r.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=Bn(r.value,a,!0);return rw(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=qP(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}(mr);mr.registerClass(gb);const Bo=gb;var mb=typeof Float32Array<"u",XP=mb?Float32Array:Array;function Nr(e){return U(e)?mb?new Float32Array(e):e:new XP(e)}var Ch="__ec_stack_";function cv(e){return e.get("stack")||Ch+e.seriesIndex}function fv(e){return e.dim+e.index}function ZP(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(pe({bandWidth:a,axisKey:n,stackId:Ch+i},e));for(var o=wb(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 yb(e,t){var r=[];return t.eachSeriesByType(e,function(n){bb(n)&&r.push(n)}),r}function KP(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 _b(e){var t=KP(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=Ae(n.get("barWidth"),s),m=Ae(n.get("barMaxWidth"),s),g=Ae(n.get("barMinWidth")||(Sb(n)?.5:1),s),y=n.get("barGap"),_=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:p,barMaxWidth:m,barMinWidth:g,barGap:y,barCategoryGap:_,axisKey:fv(i),stackId:cv(n)})}),wb(r)}function wb(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=Te(i).length;s=Math.max(35-l*4,15)+"%"}var u=Ae(s,o),c=Ae(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 _=y.maxWidth,w=y.minWidth;if(y.width){var S=y.width;_&&(S=Math.min(S,_)),w&&(S=Math.max(S,w)),y.width=S,f-=S+c*S,d--}else{var S=h;_&&_<S&&(S=Math.min(_,f)),w&&w>S&&(S=w),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,_){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,_){r[a][_]=r[a][_]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+c)})}),r}function JP(e,t,r){if(e&&t){var n=e[fv(t)];return n!=null&&r!=null?n[cv(r)]:n}}function QP(e,t){var r=yb(e,t),n=_b(r);k(r,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=cv(a),u=n[fv(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function eI(e){return{seriesType:e,plan:tv(),reset:function(t){if(bb(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=ra(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),h=tI(a,i),p=Sb(t),m=t.get("barMinHeight")||0,g=c&&r.getDimensionIndex(c),y=r.getLayout("size"),_=r.getLayout("offset");return{progress:function(w,S){for(var T=w.count,C=p&&Nr(T*3),N=p&&l&&Nr(T*3),b=p&&Nr(T),x=n.master.getRect(),A=d?x.width:x.height,D,M=S.getStore(),P=0;(D=w.next())!=null;){var E=M.get(f?g:o,D),I=M.get(s,D),L=h,V=void 0;f&&(V=+E-M.get(o,D));var B=void 0,$=void 0,H=void 0,O=void 0;if(d){var Y=n.dataToPoint([E,I]);if(f){var J=n.dataToPoint([V,I]);L=J[0]}B=L,$=Y[1]+_,H=Y[0]-L,O=y,Math.abs(H)<m&&(H=(H<0?-1:1)*m)}else{var Y=n.dataToPoint([I,E]);if(f){var J=n.dataToPoint([I,V]);L=J[1]}B=Y[0]+_,$=L,H=y,O=Y[1]-L,Math.abs(O)<m&&(O=(O<=0?-1:1)*m)}p?(C[P]=B,C[P+1]=$,C[P+2]=d?H:O,N&&(N[P]=d?x.x:B,N[P+1]=d?$:x.y,N[P+2]=A),b[D]=D):S.setItemLayout(D,{x:B,y:$,width:H,height:O}),P+=3}p&&S.setLayout({largePoints:C,largeDataIndices:b,largeBackgroundPoints:N,valueAxisHorizontal:d})}}}}}}function bb(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function Sb(e){return e.pipelineContext&&e.pipelineContext.large}function tI(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var rI=function(e,t,r,n){for(;r<n;){var a=r+n>>>1;e[a][1]<t?r=a+1:n=a}return r},Cb=function(e){G(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 pu(r.value,Ng[Tk(za(this._minLevelUnit))]||Ng.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return xk(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=uI(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=bs.length,l=Math.min(rI(bs,this._approxInterval,0,s),s-1);this._interval=bs[l][1],this._minLevelUnit=bs[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return Me(r)?r:+Lr(r)},t.prototype.contain=function(r){return Mu(this.parse(r),this._extent)},t.prototype.normalize=function(r){return ku(this.parse(r),this._extent)},t.prototype.scale=function(r){return Eu(r,this._extent)},t.type="time",t}(Bo),bs=[["second",Gd],["minute",Hd],["hour",so],["quarter-day",so*6],["half-day",so*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 nI(e,t,r,n){var a=Lr(t),i=Lr(r),o=function(p){return Dg(a,p,n)===Dg(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 aI(e,t){return e/=Bt,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function iI(e){var t=30*Bt;return e/=t,e>6?6:e>3?3:e>2?2:1}function oI(e){return e/=so,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Rm(e,t){return e/=t?Hd:Gd,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function sI(e){return $_(e,!0)}function lI(e,t,r){var n=new Date(e);switch(za(t)){case"year":case"month":n[Z1(r)](0);case"day":n[K1(r)](1);case"hour":n[J1(r)](0);case"minute":n[Q1(r)](0);case"second":n[ew(r)](0),n[tw(r)](0)}return n.getTime()}function uI(e,t,r,n){var a=1e4,i=j1,o=0;function s(A,D,M,P,E,I,L){for(var V=new Date(D),B=D,$=V[P]();B<M&&B<=n[1];)L.push({value:B}),$+=A,V[E]($),B=V.getTime();L.push({value:B,notAdd:!0})}function l(A,D,M){var P=[],E=!D.length;if(!nI(za(A),n[0],n[1],r)){E&&(D=[{value:lI(new Date(n[0]),A,r)},{value:n[1]}]);for(var I=0;I<D.length-1;I++){var L=D[I].value,V=D[I+1].value;if(L!==V){var B=void 0,$=void 0,H=void 0,O=!1;switch(A){case"year":B=Math.max(1,Math.round(t/Bt/365)),$=Ud(r),H=Nk(r);break;case"half-year":case"quarter":case"month":B=iI(t),$=Ga(r),H=Z1(r);break;case"week":case"half-week":case"day":B=aI(t),$=gu(r),H=K1(r),O=!0;break;case"half-day":case"quarter-day":case"hour":B=oI(t),$=So(r),H=J1(r);break;case"minute":B=Rm(t,!0),$=mu(r),H=Q1(r);break;case"second":B=Rm(t,!1),$=yu(r),H=ew(r);break;case"millisecond":B=sI(t),$=_u(r),H=tw(r);break}s(B,L,V,$,H,O,P),A==="year"&&M.length>1&&I===0&&M.unshift({value:M[0].value-B})}}for(var I=0;I<P.length;I++)M.push(P[I]);return P}}for(var u=[],c=[],f=0,d=0,h=0;h<i.length&&o++<a;++h){var p=za(i[h]);if(Ck(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(A,D){return A.value-D.value});for(var g=[],y=0;y<c.length;++y){var _=c[y].value;(y===0||c[y-1].value!==_)&&(g.push(c[y]),_>=n[0]&&_<=n[1]&&f++)}var w=(n[1]-n[0])/t;if(f>w*1.5&&d>w/1.5||(u.push(g),f>w||e===i[h]))break}c=[]}}}process.env.NODE_ENV!=="production"&&o>=a&&ze("Exceed safe limit.");for(var S=je(q(u,function(A){return je(A,function(D){return D.value>=n[0]&&D.value<=n[1]&&!D.notAdd})}),function(A){return A.length>0}),T=[],C=S.length-1,h=0;h<S.length;++h)for(var N=S[h],b=0;b<N.length;++b)T.push({value:N[b].value,level:C-h});T.sort(function(A,D){return A.value-D.value});for(var x=[],h=0;h<T.length;++h)(h===0||T[h].value!==T[h-1].value)&&x.push(T[h]);return x}mr.registerClass(Cb);const cI=Cb;var Bm=mr.prototype,vo=Bo.prototype,fI=$e,hI=Math.floor,dI=Math.ceil,Ss=Math.pow,Gt=Math.log,hv=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Bo,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,a=this._extent,i=n.getExtent(),o=vo.getTicks.call(this,r);return q(o,function(s){var l=s.value,u=$e(Ss(this.base,l));return u=l===a[0]&&this._fixMin?Cs(u,i[0]):u,u=l===a[1]&&this._fixMax?Cs(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,vo.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=Bm.getExtent.call(this);n[0]=Ss(r,n[0]),n[1]=Ss(r,n[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(n[0]=Cs(n[0],i[0])),this._fixMax&&(n[1]=Cs(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),Bm.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=AD(a),o=r/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[$e(dI(n[0]/i)*i),$e(hI(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){vo.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),Mu(r,this._extent)},t.prototype.normalize=function(r){return r=Gt(r)/Gt(this.base),ku(r,this._extent)},t.prototype.scale=function(r){return r=Eu(r,this._extent),Ss(this.base,r)},t.type="log",t}(mr),Tb=hv.prototype;Tb.getMinorTicks=vo.getMinorTicks;Tb.getLabel=vo.getLabel;function Cs(e,t){return fI(e,fr(t))}mr.registerClass(hv);const vI=hv;var pI=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);se(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(se(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=[fn(l[0],1),fn(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"&&ne(!this.frozen),this[mI[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=gI[t];process.env.NODE_ENV!=="production"&&ne(!this.frozen&&this[n]==null),this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),gI={min:"_determinedMin",max:"_determinedMax"},mI={min:"_dataMin",max:"_dataMax"};function xb(e,t,r){var n=e.rawExtentInfo;return n||(n=new pI(e,t,r),e.rawExtentInfo=n,n)}function Ts(e,t){return t==null?null:ja(t)?NaN:e.parse(t)}function Nb(e,t){var r=e.type,n=xb(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=yb("bar",o),l=!1;if(k(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=_b(s),c=yI(a,i,t,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function yI(e,t,r,n){var a=r.axis.getExtent(),i=a[1]-a[0],o=JP(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 Vm(e,t){var r=t,n=Nb(e,r),a=n.extent,i=r.get("splitNumber");e instanceof vI&&(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 _I(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new pb({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new cI({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(mr.getClass(t)||Bo)}}function wI(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Vo(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):X(t)?function(n){return function(a){var i=e.scale.getLabel(a),o=n.replace("{value}",i??"");return o}}(t):se(t)?function(n){return function(a,i){return r!=null&&(i=a.value-r),n(dv(e,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function dv(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function bI(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,a,i=r.getExtent();r instanceof pb?a=r.count():(n=r.getTicks(),a=n.length);var o=e.getLabelModel(),s=Vo(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=SI(h,o.get("rotate")||0);l?l.union(p):l=p}return l}}function SI(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 Ce(e.x,e.y,i,o);return s}function vv(e){var t=e.get("interval");return t??"auto"}function Db(e){return e.type==="category"&&vv(e.getLabelModel())===0}function Ab(e,t){var r={};return k(e.mapDimensionsAll(t),function(n){r[hb(e,n)]=!0}),Te(r)}function CI(e,t,r){t&&k(Ab(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 TI=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),$m=[],xI={registerPreprocessor:rb,registerProcessor:nb,registerPostInit:pP,registerPostUpdate:gP,registerUpdateLifecycle:lv,registerAction:sa,registerCoordinateSystem:mP,registerLayout:yP,registerVisual:la,registerTransform:wP,registerLoading:ab,registerMap:_P,registerImpl:X5,PRIORITY:lP,ComponentModel:De,ComponentView:Xt,SeriesModel:Or,ChartView:Yt,registerComponentModel:function(e){De.registerClass(e)},registerComponentView:function(e){Xt.registerClass(e)},registerSeriesModel:function(e){Or.registerClass(e)},registerChartView:function(e){Yt.registerClass(e)},registerSubTypeDefaulter:function(e,t){De.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){CD(e,t)}};function pr(e){if(U(e)){k(e,function(t){pr(t)});return}de($m,e)>=0||($m.push(e),se(e)&&(e={install:e}),e.install(xI))}var Do=ke();function NI(e){return e.type==="category"?AI(e):kI(e)}function DI(e,t){return e.type==="category"?MI(e,t):{ticks:q(e.scale.getTicks(),function(r){return r.value})}}function AI(e){var t=e.getLabelModel(),r=Mb(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function Mb(e,t){var r=kb(e,"labels"),n=vv(t),a=Eb(r,n);if(a)return a;var i,o;return se(n)?i=Lb(e,n):(o=n==="auto"?EI(e):n,i=Ib(e,o)),Pb(r,n,{labels:i,labelCategoryInterval:o})}function MI(e,t){var r=kb(e,"ticks"),n=vv(t),a=Eb(r,n);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),se(n))i=Lb(e,n,!0);else if(n==="auto"){var s=Mb(e,e.getLabelModel());o=s.labelCategoryInterval,i=q(s.labels,function(l){return l.tickValue})}else o=n,i=Ib(e,o,!0);return Pb(r,n,{ticks:i,tickCategoryInterval:o})}function kI(e){var t=e.scale.getTicks(),r=Vo(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 kb(e,t){return Do(e)[t]||(Do(e)[t]=[])}function Eb(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function Pb(e,t,r){return e.push({key:t,value:r}),r}function EI(e){var t=Do(e).autoInterval;return t??(Do(e).autoInterval=e.calculateCategoryInterval())}function PI(e){var t=II(e),r=Vo(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=wd(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,_=h/f;isNaN(y)&&(y=1/0),isNaN(_)&&(_=1/0);var w=Math.max(0,Math.floor(Math.min(y,_))),S=Do(e.model),T=e.getExtent(),C=S.lastAutoInterval,N=S.lastTickCount;return C!=null&&N!=null&&Math.abs(C-w)<=1&&Math.abs(N-o)<=1&&C>w&&S.axisExtent0===T[0]&&S.axisExtent1===T[1]?w=C:(S.lastTickCount=o,S.lastAutoInterval=w,S.axisExtent0=T[0],S.axisExtent1=T[1]),w}function II(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 Ib(e,t,r){var n=Vo(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=Db(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 Lb(e,t,r){var n=e.scale,a=Vo(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 Fm=[0,1],LI=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 B_(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(),zm(n,a.count())),Ye(t,Fm,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),zm(n,a.count()));var i=Ye(t,n,Fm,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=DI(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 OI(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 NI(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 PI(this)},e}();function zm(e,t){var r=e[1]-e[0],n=t,a=r/n/2;e[0]+=a,e[1]-=a}function OI(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=$e(h),p=$e(p),f?h>p:h<p}}const RI=LI;function Ob(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 Qr=new le,Oe=new le,qe=new le,en=new le,ur=new le,kl=[],ot=new le;function BI(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Qr.fromArray(e[0]),Oe.fromArray(e[1]),qe.fromArray(e[2]),le.sub(en,Qr,Oe),le.sub(ur,qe,Oe);var r=en.len(),n=ur.len();if(!(r<.001||n<.001)){en.scale(1/r),ur.scale(1/n);var a=en.dot(ur),i=Math.cos(t);if(i<a){var o=Ob(Oe.x,Oe.y,qe.x,qe.y,Qr.x,Qr.y,kl,!1);ot.fromArray(kl),ot.scaleAndAdd(ur,o/Math.tan(Math.PI-t));var s=qe.x!==Oe.x?(ot.x-Oe.x)/(qe.x-Oe.x):(ot.y-Oe.y)/(qe.y-Oe.y);if(isNaN(s))return;s<0?le.copy(ot,Oe):s>1&&le.copy(ot,qe),ot.toArray(e[1])}}}}function VI(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Qr.fromArray(e[0]),Oe.fromArray(e[1]),qe.fromArray(e[2]),le.sub(en,Oe,Qr),le.sub(ur,qe,Oe);var n=en.len(),a=ur.len();if(!(n<.001||a<.001)){en.scale(1/n),ur.scale(1/a);var i=en.dot(t),o=Math.cos(r);if(i<o){var s=Ob(Oe.x,Oe.y,qe.x,qe.y,Qr.x,Qr.y,kl,!1);ot.fromArray(kl);var l=Math.PI/2,u=Math.acos(ur.dot(t)),c=l+u-r;if(c>=l)le.copy(ot,qe);else{ot.scaleAndAdd(ur,s/Math.tan(Math.PI/2-c));var f=qe.x!==Oe.x?(ot.x-Oe.x)/(qe.x-Oe.x):(ot.y-Oe.y)/(qe.y-Oe.y);if(isNaN(f))return;f<0?le.copy(ot,Oe):f>1&&le.copy(ot,qe)}ot.toArray(e[1])}}}}function Jc(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 $I(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=Wu([],n[1],n[0],o/a),l=Wu([],n[1],n[2],o/i),u=Wu([],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 FI(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<ul.length;l++){var u=ul[l],c=t[u],f=u==="normal";if(c){var d=c.get("show"),h=f?s:ie(a.states[u]&&a.states[u].ignore,s);if(h||!ie(d,o)){var p=f?n:n&&n.states[u];p&&(p.ignore=!0),n&&Jc(n,!0,u,c);continue}n||(n=new oi,e.setTextGuideLine(n),!f&&(s||!o)&&Jc(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),Jc(n,!1,u,c)}}if(n){pe(n.style,r),n.style.fill=null;var m=i.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=m||!1,n.buildPath=$I}}function zI(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<gt.length;n++){var a=gt[n];r[a]=e.getModel([a,t])}return r}function GI(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 hl(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 HI(e,t,r,n,a,i){var o=e.length;if(o<2)return;e.sort(function(b,x){return b.rect[t]-x.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&&T(-c/o,0,o);var m=e[0],g=e[o-1],y,_;w(),y<0&&C(-y,.8),_<0&&C(_,.8),w(),S(y,_,1),S(_,y,-1),w(),y<0&&N(-y),_<0&&N(_);function w(){y=m.rect[t]-n,_=a-g.rect[t]-g.rect[r]}function S(b,x,A){if(b<0){var D=Math.min(x,-b);if(D>0){T(D*A,0,o);var M=D+b;M<0&&C(-M*A,1)}else C(-b*A,1)}}function T(b,x,A){b!==0&&(u=!0);for(var D=x;D<A;D++){var M=e[D],P=M.rect;P[t]+=b,M.label[t]+=b}}function C(b,x){for(var A=[],D=0,M=1;M<o;M++){var P=e[M-1].rect,E=Math.max(e[M].rect[t]-P[t]-P[r],0);A.push(E),D+=E}if(D){var I=Math.min(Math.abs(b)/D,x);if(b>0)for(var M=0;M<o-1;M++){var L=A[M]*I;T(L,0,M+1)}else for(var M=o-1;M>0;M--){var L=A[M-1]*I;T(-L,M,o)}}}function N(b){var x=b<0?-1:1;b=Math.abs(b);for(var A=Math.ceil(b/(o-1)),D=0;D<o-1;D++)if(x>0?T(A,0,D+1):T(-A,o-D-1,o),b-=A,b<=0)return}return u}function UI(e,t,r,n){return HI(e,"y","height",t,r,n)}function WI(e){var t=[];e.sort(function(m,g){return g.priority-m.priority});var r=new Ce(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 hl(p.localRect,p.transform)),f||(f=new hl(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 YI=function(e){G(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 Au(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new Re,a=Rr("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=Rr(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}(Or);const qI=YI;function Ao(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 Rb(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 pv=function(e){G(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=Rr(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=jI,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(){yo(this.childAt(0))},t.prototype.downplay=function(){_o(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):rt(d,h,s,n),Bd(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,Ct(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 _=i&&i.itemModel?i.itemModel:r.getItemModel(n),w=_.getModel("emphasis");u=w.getModel("itemStyle").getItemStyle(),f=_.getModel(["select","itemStyle"]).getItemStyle(),c=_.getModel(["blur","itemStyle"]).getItemStyle(),d=w.get("focus"),h=w.get("blurScope"),p=w.get("disabled"),m=ia(_),g=w.getShallow("scale"),y=_.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var T=xu(r.getItemVisual(n,"symbolOffset"),a);T&&(s.x=T[0],s.y=T[1]),y&&s.attr("cursor",y);var C=r.getItemVisual(n,"style"),N=C.fill;if(s instanceof pn){var b=s.style;s.useStyle(z({image:b.image,x:b.x,y:b.y,width:b.width,height:b.height},C))}else s.__isEmptyBrush?s.useStyle(z({},C)):s.useStyle(C),s.style.decal=null,s.setColor(N,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var x=r.getItemVisual(n,"liftZ"),A=this._z2;x!=null?A==null&&(this._z2=s.z2,s.z2+=x):A!=null&&(s.z2=A,this._z2=null);var D=o&&o.useNameLabel;li(s,m,{labelFetcher:l,labelDataIndex:n,defaultText:M,inheritColor:N,defaultOpacity:C.opacity});function M(I){return D?r.getName(I):Ao(r,I)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var E=g==null||g===!0?Math.max(1.1,3/this._sizeY):isFinite(g)&&g>0?+g:1;P.scaleX=this._sizeX*E,P.scaleY=this._sizeY*E,this.setSymbolScale(1),Jn(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=ye(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&dl(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();dl(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return av(r.getItemVisual(n,"symbolSize"))},t}(Re);function jI(e,t){this.parent.drift(e,t)}function Qc(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 Gm(e){return e!=null&&!Q(e)&&(e={isIgnore:e}),e||{}}function Hm(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:ia(t),cursorStyle:t.get("cursor")}}var XI=function(){function e(t){this.group=new Re,this._SymbolCtor=t||pv}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=Gm(r);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=Hm(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(Qc(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(!Qc(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):rt(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=Hm(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=Gm(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(Qc(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){si(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 Bb(e,t,r){var n=e.getBaseAxis(),a=e.getOtherAxis(n),i=ZI(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 ra(t,f[0])&&(d=!0,f[0]=h),ra(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 ZI(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:Me(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function Vb(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 KI(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 JI(e,t,r,n,a,i,o,s){for(var l=KI(e,t),u=[],c=[],f=[],d=[],h=[],p=[],m=[],g=Bb(a,t,o),y=e.getLayout("points")||[],_=t.getLayout("points")||[],w=0;w<l.length;w++){var S=l[w],T=!0,C=void 0,N=void 0;switch(S.cmd){case"=":C=S.idx*2,N=S.idx1*2;var b=y[C],x=y[C+1],A=_[N],D=_[N+1];(isNaN(b)||isNaN(x))&&(b=A,x=D),u.push(b,x),c.push(A,D),f.push(r[C],r[C+1]),d.push(n[N],n[N+1]),m.push(t.getRawIndex(S.idx1));break;case"+":var M=S.idx,P=g.dataDimsForPoint,E=a.dataToPoint([t.get(P[0],M),t.get(P[1],M)]);N=M*2,u.push(E[0],E[1]),c.push(_[N],_[N+1]);var I=Vb(g,a,t,M);f.push(I[0],I[1]),d.push(n[N],n[N+1]),m.push(t.getRawIndex(M));break;case"-":T=!1}T&&(h.push(S),p.push(p.length))}p.sort(function(ge,fe){return m[ge]-m[fe]});for(var L=u.length,V=Nr(L),B=Nr(L),$=Nr(L),H=Nr(L),O=[],w=0;w<p.length;w++){var Y=p[w],J=w*2,K=Y*2;V[J]=u[K],V[J+1]=u[K+1],B[J]=c[K],B[J+1]=c[K+1],$[J]=f[K],$[J+1]=f[K+1],H[J]=d[K],H[J+1]=d[K+1],O[w]=h[Y]}return{current:V,next:B,stackedOnCurrent:$,stackedOnNext:H,status:O}}var Yr=Math.min,qr=Math.max;function Yn(e,t){return isNaN(e)||isNaN(t)}function Th(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],_=t[m*2+1];if(m>=a||m<0)break;if(Yn(y,_)){if(l){m+=i;continue}break}if(m===r)e[i>0?"moveTo":"lineTo"](y,_),f=y,d=_;else{var w=y-u,S=_-c;if(w*w+S*S<.5){m+=i;continue}if(o>0){for(var T=m+i,C=t[T*2],N=t[T*2+1];C===y&&N===_&&g<n;)g++,T+=i,m+=i,C=t[T*2],N=t[T*2+1],y=t[m*2],_=t[m*2+1],w=y-u,S=_-c;var b=g+1;if(l)for(;Yn(C,N)&&b<n;)b++,T+=i,C=t[T*2],N=t[T*2+1];var x=.5,A=0,D=0,M=void 0,P=void 0;if(b>=n||Yn(C,N))h=y,p=_;else{A=C-u,D=N-c;var E=y-u,I=C-y,L=_-c,V=N-_,B=void 0,$=void 0;if(s==="x"){B=Math.abs(E),$=Math.abs(I);var H=A>0?1:-1;h=y-H*B*o,p=_,M=y+H*$*o,P=_}else if(s==="y"){B=Math.abs(L),$=Math.abs(V);var O=D>0?1:-1;h=y,p=_-O*B*o,M=y,P=_+O*$*o}else B=Math.sqrt(E*E+L*L),$=Math.sqrt(I*I+V*V),x=$/($+B),h=y-A*o*(1-x),p=_-D*o*(1-x),M=y+A*o*x,P=_+D*o*x,M=Yr(M,qr(C,y)),P=Yr(P,qr(N,_)),M=qr(M,Yr(C,y)),P=qr(P,Yr(N,_)),A=M-y,D=P-_,h=y-A*B/$,p=_-D*B/$,h=Yr(h,qr(u,y)),p=Yr(p,qr(c,_)),h=qr(h,Yr(u,y)),p=qr(p,Yr(c,_)),A=y-h,D=_-p,M=y+A*$/B,P=_+D*$/B}e.bezierCurveTo(f,d,h,p,y,_),f=M,d=P}else e.lineTo(y,_)}u=y,c=_,m+=i}return g}var $b=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),QI=function(e){G(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 $b},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+=Th(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=Kn.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,_=void 0,w=void 0;switch(d){case o.M:s=i[f++],l=i[f++];break;case o.L:if(h=i[f++],p=i[f++],w=u?(r-s)/(h-s):(r-l)/(p-l),w<=1&&w>=0){var S=u?(p-l)*w+l:(h-s)*w+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++],_=i[f++];var T=u?Qs(s,h,m,y,r,c):Qs(l,p,g,_,r,c);if(T>0)for(var C=0;C<T;C++){var N=c[C];if(N<=1&&N>=0){var S=u?Fe(l,p,g,_,N):Fe(s,h,m,y,N);return u?[r,S]:[S,r]}}s=y,l=_;break}}},t}(we),eL=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}($b),tL=function(e){G(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 eL},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=Th(r,a,o,s,s,1,n.smooth,l,n.connectNulls);Th(r,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t}(we);function Fb(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 Ie({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=se(a)?function(g){a(g,f)}:null;Ct(f,{shape:{width:l,height:u,x:o,y:s}},r,null,n,m)}return f}function zb(e,t,r){var n=e.getArea(),a=$e(n.r0,1),i=$e(n.r,1),o=new aa({shape:{cx:$e(e.cx,1),cy:$e(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,Ct(o,{shape:{endAngle:n.endAngle,r:i}},r)}return o}function Gb(e,t,r,n,a){if(e){if(e.type==="polar")return zb(e,t,r);if(e.type==="cartesian2d")return Fb(e,t,r,n,a)}else return null;return null}function Pu(e,t){return e.type===t}function Um(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function Wm(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 Ym(e,t){var r=Wm(e),n=r[0],a=r[1],i=Wm(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 qm(e){return Me(e)?e:e?.5:0}function rL(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),a=Nr(n*2),i=0;i<n;i++){var o=Vb(r,e,t,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function jr(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 nL(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=XN(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 aL(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(w){return{coord:l.toGlobalCoord(l.dataToCoord(w.value)),color:w.color}}),c=u.length,f=i.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=nL(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(w){w.offset=(w.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 _=new L1(0,0,0,0,d,!0);return _[a]=m,_[a+"2"]=g,_}}function iL(e,t,r){var n=e.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=r.getAxesByScale("ordinal")[0];if(i&&!(a&&oL(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 oL(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(pv.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function sL(e,t){return isNaN(e)||isNaN(t)}function lL(e){for(var t=e.length/2;t>0&&sL(e[t*2-2],e[t*2-1]);t--);return t-1}function jm(e,t){return[e[t*2],e[t*2+1]]}function uL(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 Hb(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<gt.length;t++)if(e.get([gt[t],"endLabel","show"]))return!0;return!1}function ef(e,t,r,n){if(Pu(t,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=Hb(n)?function(h,p){e._endLabelOnDuring(h,p,o,s,i,a,t)}:null,u=t.getBaseAxis().isHorizontal(),c=Fb(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."),zb(t,r,n)}function cL(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 fL=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new Re,n=new XI;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,_=!n.ssr&&r.get("animation"),w=!c.isEmpty(),S=c.get("origin"),T=Bb(o,l,S),C=w&&rL(o,l,T),N=r.get("showSymbol"),b=r.get("connectNulls"),x=N&&!d&&iL(r,l,o),A=this._data;A&&A.eachItemGraphicEl(function(fe,ve){fe.__temp&&(s.remove(fe),A.setItemGraphicEl(ve,null))}),N||p.remove(),s.add(y);var D=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 P=aL(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(m&&h.type===o.type&&D===this._step))N&&p.updateData(l,{isIgnore:x,clipShape:M,disableAnimation:!0,getSymbolPoint:function(fe){return[f[fe*2],f[fe*2+1]]}}),_&&this._initSymbolLabelAnimation(l,o,M),D&&(f=jr(f,o,D,b),C&&(C=jr(C,o,D,b))),m=this._newPolyline(f),w?g=this._newPolygon(f,C):g&&(y.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(r,o,Qn(P)),y.setClipPath(ef(this,o,!0,r));else{w&&!g?g=this._newPolygon(f,C):g&&!w&&(y.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(r,o,Qn(P));var E=y.getClipPath();if(E){var I=ef(this,o,!1,r);Ct(E,{shape:I.shape},r)}else y.setClipPath(ef(this,o,!0,r));N&&p.updateData(l,{isIgnore:x,clipShape:M,disableAnimation:!0,getSymbolPoint:function(fe){return[f[fe*2],f[fe*2+1]]}}),(!Um(this._stackedOnPoints,C)||!Um(this._points,f))&&(_?this._doUpdateAnimation(l,C,o,a,D,S,b):(D&&(f=jr(f,o,D,b),C&&(C=jr(C,o,D,b))),m.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:C})))}var L=r.getModel("emphasis"),V=L.get("focus"),B=L.get("blurScope"),$=L.get("disabled");if(m.useStyle(pe(u.getLineStyle(),{fill:"none",stroke:P,lineJoin:"bevel"})),fl(m,r,"lineStyle"),m.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var H=m.getState("emphasis").style;H.lineWidth=+m.style.lineWidth+1}ye(m).seriesIndex=r.seriesIndex,Jn(m,V,B,$);var O=qm(r.get("smooth")),Y=r.get("smoothMonotone");if(m.setShape({smooth:O,smoothMonotone:Y,connectNulls:b}),g){var J=l.getCalculationInfo("stackedOnSeries"),K=0;g.useStyle(pe(c.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),J&&(K=qm(J.get("smooth"))),g.setShape({smooth:O,stackedOnSmooth:K,smoothMonotone:Y,connectNulls:b}),fl(g,r,"areaStyle"),ye(g).seriesIndex=r.seriesIndex,Jn(g,V,B,$)}var ge=function(fe){i._changePolyState(fe)};l.eachItemGraphicEl(function(fe){fe&&(fe.onHoverStateChange=ge)}),this._polyline.onHoverStateChange=ge,this._data=l,this._coordSys=o,this._stackedOnPoints=C,this._points=f,this._step=D,this._valueOrigin=S,r.get("triggerLineEvent")&&(this.packEventData(r,m),g&&this.packEventData(r,g))},t.prototype.packEventData=function(r,n){ye(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=Zn(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 pv(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 Yt.prototype.highlight.call(this,r,n,a,i)},t.prototype.downplay=function(r,n,a,i){var o=r.getData(),s=Zn(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 Yt.prototype.downplay.call(this,r,n,a,i)},t.prototype._changePolyState=function(r){var n=this._polygon;ig(this._polyline,r),n&&ig(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new QI({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 tL({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");se(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=se(f)?f(null):f;r.eachItemGraphicEl(function(h,p){var m=h;if(m){var g=[h.x,h.y],y=void 0,_=void 0,w=void 0;if(a)if(o){var S=a,T=n.pointToCoord(g);i?(y=S.startAngle,_=S.endAngle,w=-T[1]/180*Math.PI):(y=S.r0,_=S.r,w=T[0])}else{var C=a;i?(y=C.x,_=C.x+C.width,w=h.x):(y=C.y+C.height,_=C.y,w=h.y)}var N=_===y?0:(w-y)/(_-y);l&&(N=1-N);var b=se(f)?f(p):c*N+d,x=m.getSymbolPath(),A=x.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:b}),x.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,a){var i=r.getModel("endLabel");if(Hb(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 Ue({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=lL(l);c>=0&&(li(s,ia(r,"endLabel"),{inheritColor:a,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?Rb(o,h):Ao(o,f)},enableTextSetter:!0},cL(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(),_=g.inverse,w=n.shape,S=_?y?w.x:w.y+w.height:y?w.x+w.width:w.y,T=(y?m:0)*(_?-1:1),C=(y?0:-m)*(_?-1:1),N=y?"x":"y",b=uL(f,S,N),x=b.range,A=x[1]-x[0],D=void 0;if(A>=1){if(A>1&&!h){var M=jm(f,x[0]);u.attr({x:M[0]+T,y:M[1]+C}),o&&(D=d.getRawValue(x[0]))}else{var M=c.getPointOn(S,N);M&&u.attr({x:M[0]+T,y:M[1]+C});var P=d.getRawValue(x[0]),E=d.getRawValue(x[1]);o&&(D=qD(a,p,P,E,b.t))}i.lastFrameIndex=x[0]}else{var I=r===1||i.lastFrameIndex>0?x[0]:0,M=jm(f,I);o&&(D=d.getRawValue(I)),u.attr({x:M[0]+T,y:M[1]+C})}if(o){var L=hu(u);typeof L.setLabelText=="function"&&L.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(r,n,a,i,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,d=JI(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=jr(d.current,a,o,l),p=jr(d.stackedOnCurrent,a,o,l),m=jr(d.next,a,o,l),g=jr(d.stackedOnNext,a,o,l)),Ym(h,m)>3e3||c&&Ym(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(),rt(u,y,f),c&&(c.setShape({points:h,stackedOnPoints:p}),c.stopAnimation(),rt(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<w.length;S++){var T=w[S].cmd;if(T==="="){var C=r.getItemGraphicEl(w[S].idx1);C&&_.push({el:C,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var N=u.shape.__points,b=0;b<_.length;b++){var x=_[b].el,A=_[b].ptIdx*2;x.x=N[A],x.y=N[A+1],x.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}(Yt);const hL=fL;function dL(e,t){return{seriesType:e,plan:tv(),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");ra(n,s[0])&&(s[0]=u),ra(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&&Nr(m*l),y=[],_=[],w=h.start,S=0;w<h.end;w++){var T=void 0;if(l===1){var C=c.get(f,w);T=a.dataToPoint(C,null,_)}else y[0]=c.get(f,w),y[1]=c.get(d,w),T=a.dataToPoint(y,null,_);o?(g[S++]=T[0],g[S++]=T[1]):p.setItemLayout(w,T.slice())}o&&p.setLayout("points",g)}}}}}}var vL={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]}},pL=function(e){return Math.round(e.length/2)};function Ub(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;X(i)?p=vL[i]:se(i)&&(p=i),p&&t.setData(a.downSample(a.mapDimension(u.dim),1/h,p,pL))}}}}}function gL(e){e.registerChartView(hL),e.registerSeriesModel(qI),e.registerLayout(dL("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,Ub("line"))}var xh=function(e){G(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 Au(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 _=void 0,w=void 0,S=1,T=0;T<p.length;T++){var C=p[T].coord,N=T===p.length-1?p[T-1].tickValue+S:p[T].tickValue;if(N===g){w=C;break}else if(N<g)_=C;else if(_!=null&&N>g){w=(C+_)/2;break}T===1&&(S=N-p[0].tickValue)}w==null&&(_?_&&(w=p[p.length-1].coord):w=p[0].coord),s[h]=d.toGlobalCoord(w)}});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}(Or);Or.registerClass(xh);var mL=function(e){G(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 Au(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=vu(xh.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}(xh);const yL=mL;var _L=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}(),Xm=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new _L},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),_=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,_*u+i,l,f-Math.PI*2,f-Math.PI,!d),o!==0&&r.arc(a,i,o,f,c,d)},t}(we);function wL(e,t){t=t||{};var r=t.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return al(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,_=r?Math.abs(d-h)/2:0,w=Math.cos,S=Math.sin,T=c+d*w(m),C=f+d*S(m),N="left",b="top";switch(s){case"startArc":T=c+(h-l)*w(y),C=f+(h-l)*S(y),N="center",b="top";break;case"insideStartArc":T=c+(h+l)*w(y),C=f+(h+l)*S(y),N="center",b="bottom";break;case"startAngle":T=c+p*w(m)+xs(m,l+_,!1),C=f+p*S(m)+Ns(m,l+_,!1),N="right",b="middle";break;case"insideStartAngle":T=c+p*w(m)+xs(m,-l+_,!1),C=f+p*S(m)+Ns(m,-l+_,!1),N="left",b="middle";break;case"middle":T=c+p*w(y),C=f+p*S(y),N="center",b="middle";break;case"endArc":T=c+(d+l)*w(y),C=f+(d+l)*S(y),N="center",b="bottom";break;case"insideEndArc":T=c+(d-l)*w(y),C=f+(d-l)*S(y),N="center",b="top";break;case"endAngle":T=c+p*w(g)+xs(g,l+_,!0),C=f+p*S(g)+Ns(g,l+_,!0),N="left",b="middle";break;case"insideEndAngle":T=c+p*w(g)+xs(g,-l+_,!0),C=f+p*S(g)+Ns(g,-l+_,!0),N="right",b="middle";break;default:return al(n,a,i)}return n=n||{},n.x=T,n.y=C,n.align=N,n.verticalAlign=b,n}}function bL(e,t,r,n){if(Me(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 xs(e,t,r){return t*Math.sin(e)*(r?-1:1)}function Ns(e,t,r){return t*Math.cos(e)*(r?1:-1)}function Ki(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 fn(i,a)})}}var tf=Math.max,rf=Math.min;function SL(e,t){var r=e.getArea&&e.getArea();if(Pu(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 CL=function(e){G(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"&&ze("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){si(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=TL(r,u);h&&this._enableRealtimeSort(h,s,a);var p=r.get("clip",!0)||h,m=SL(u,s);o.removeClipPath();var g=r.get("roundCap",!0),y=r.get("showBackground",!0),_=r.getModel("backgroundStyle"),w=_.get("borderRadius")||0,S=[],T=this._backgroundEls,C=i&&i.isInitSort,N=i&&i.type==="changeAxisOrder";function b(D){var M=Ds[u.type](s,D),P=EL(u,f,M);return P.useStyle(_.getItemStyle()),u.type==="cartesian2d"?P.setShape("r",w):P.setShape("cornerRadius",w),S[D]=P,P}s.diff(l).add(function(D){var M=s.getItemModel(D),P=Ds[u.type](s,D,M);if(y&&b(D),!(!s.hasValue(D)||!ey[u.type](P))){var E=!1;p&&(E=Zm[u.type](m,P));var I=Km[u.type](r,s,D,P,f,d,c.model,!1,g);h&&(I.forceLabelAnimation=!0),ty(I,s,D,M,P,r,f,u.type==="polar"),C?I.attr({shape:P}):h?Jm(h,d,I,P,D,f,!1,!1):Ct(I,{shape:P},r,D),s.setItemGraphicEl(D,I),o.add(I),I.ignore=E}}).update(function(D,M){var P=s.getItemModel(D),E=Ds[u.type](s,D,P);if(y){var I=void 0;T.length===0?I=b(M):(I=T[M],I.useStyle(_.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",w):I.setShape("cornerRadius",w),S[D]=I);var L=Ds[u.type](s,D),V=Yb(f,L,u);rt(I,{shape:V},d,D)}var B=l.getItemGraphicEl(M);if(!s.hasValue(D)||!ey[u.type](E)){o.remove(B);return}var $=!1;if(p&&($=Zm[u.type](m,E),$&&o.remove(B)),B?Bd(B):B=Km[u.type](r,s,D,E,f,d,c.model,!!B,g),h&&(B.forceLabelAnimation=!0),N){var H=B.getTextContent();if(H){var O=hu(H);O.prevValue!=null&&(O.prevValue=O.value)}}else ty(B,s,D,P,E,r,f,u.type==="polar");C?B.attr({shape:E}):h?Jm(h,d,B,E,D,f,!0,N):rt(B,{shape:E},r,D,null),s.setItemGraphicEl(D,B),B.ignore=$,o.add(B)}).remove(function(D){var M=l.getItemGraphicEl(D);M&&vl(M,r,D)}).execute();var x=this._backgroundGroup||(this._backgroundGroup=new Re);x.removeAll();for(var A=0;A<S.length;++A)x.add(S[A]);o.add(x),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(r,n,a){this._clear(),ny(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),ny(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&Gb(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){vl(i,r,ye(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}(Yt),Zm={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=tf(t.x,e.x),s=rf(t.x+t.width,a),l=tf(t.y,e.y),u=rf(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=rf(t.r,e.r),i=tf(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}},Km={cartesian2d:function(e,t,r,n,a,i,o,s,l){var u=new Ie({shape:z({},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?Xm:aa,c=new u({shape:n,z2:1});c.name="item";var f=Wb(a);if(c.calculateTextPosition=wL(f,{isRoundCap:u===Xm}),i){var d=c.shape,h=a?"r":"endAngle",p={};d[h]=a?n.r0:n.startAngle,p[h]=n[h],(s?rt:Ct)(c,{shape:p},i)}return c}};function TL(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(process.env.NODE_ENV!=="production"&&r&&(n.type!=="category"&&ze("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!=="cartesian2d"&&ze("`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 Jm(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?rt:Ct)(r,{shape:l},t,a,null);var c=t?e.baseAxis.model:null;(o?rt:Ct)(r,{shape:u},c,a)}function Qm(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var xL=["x","y","width","height"],NL=["cx","cy","r","startAngle","endAngle"],ey={cartesian2d:function(e){return!Qm(e,xL)},polar:function(e){return!Qm(e,NL)}},Ds={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),a=r?AL(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 DL(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function Wb(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 ty(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=Ki(n.getModel("itemStyle"),c,!0);z(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=ia(n);li(e,p,{labelFetcher:i,labelDataIndex:r,defaultText:Ao(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,bL(e,g==="outside"?h:g,Wb(o),n.get(["label","rotate"]))}sk(m,p,i.getRawValue(r),function(_){return Rb(t,_)});var y=n.getModel(["emphasis"]);Jn(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),fl(e,n),DL(a)&&(e.style.fill="none",e.style.stroke="none",k(e.states,function(_){_.style&&(_.style.fill=_.style.stroke="none")}))}function AL(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 ML=function(){function e(){}return e}(),ry=function(e){G(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new ML},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}(we);function ny(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 ry({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 ry({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")),ye(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",ay),f.on("mousemove",ay)),r&&r.push(f)}var ay=nv(function(e){var t=this,r=kL(t,e.offsetX,e.offsetY);ye(t).dataIndex=r>=0?r:null},30,!1);function kL(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 Yb(e,t,r){if(Pu(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 EL(e,t,r){var n=e.type==="polar"?aa:Ie;return new n({shape:Yb(t,r,e),silent:!0,z2:0})}const PL=CL;function IL(e){e.registerChartView(PL),e.registerSeriesModel(yL),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ne(QP,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,eI("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Ub("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 iy=Math.PI*2,As=Math.PI/180;function qb(e,t){return ea(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function jb(e,t){var r=qb(e,t),n=e.get("center"),a=e.get("radius");U(a)||(a=[0,a]);var i=Ae(r.width,t.getWidth()),o=Ae(r.height,t.getHeight()),s=Math.min(i,o),l=Ae(a[0],s/2),u=Ae(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=Ae(n[0],i)+r.x,f=Ae(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function LL(e,t,r){t.eachSeriesByType(e,function(n){var a=n.getData(),i=a.mapDimension("value"),o=qb(n,r),s=jb(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*As,h=n.get("endAngle"),p=n.get("padAngle")*As;h=h==="auto"?d-iy:-h*As;var m=n.get("minAngle")*As,g=m+p,y=0;a.each(i,function(L){!isNaN(L)&&y++});var _=a.getSum(i),w=Math.PI/(_||y)*2,S=n.get("clockwise"),T=n.get("roseType"),C=n.get("stillShowZeroSum"),N=a.getDataExtent(i);N[0]=0;var b=S?1:-1,x=[d,h],A=b*p/2;J_(x,!S),d=x[0],h=x[1];var D=Math.abs(h-d),M=D,P=0,E=d;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(L,V){var B;if(isNaN(L)){a.setItemLayout(V,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:f,r:T?NaN:c});return}T!=="area"?B=_===0&&C?w:L*w:B=D/y,B<g?(B=g,M-=g):P+=L;var $=E+b*B,H=0,O=0;p>B?(H=E+b*B/2,O=H):(H=E+A,O=$-A),a.setItemLayout(V,{angle:B,startAngle:H,endAngle:O,clockwise:S,cx:l,cy:u,r0:f,r:T?Ye(L,N,[f,c]):c}),E=$}),M<iy&&y)if(M<=.001){var I=D/y;a.each(i,function(L,V){if(!isNaN(L)){var B=a.getItemLayout(V);B.angle=I;var $=0,H=0;I<p?($=d+b*(V+1/2)*I,H=$):($=d+b*V*I+A,H=d+b*(V+1)*I-A),B.startAngle=$,B.endAngle=H}})}else w=M/P,E=d,a.each(i,function(L,V){if(!isNaN(L)){var B=a.getItemLayout(V),$=B.angle===g?g:L*w,H=0,O=0;$<p?(H=E+b*$/2,O=H):(H=E+A,O=E+b*$-A),B.startAngle=H,B.endAngle=O,E+=b*$}})})}function OL(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 RL=Math.PI/180;function oy(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,_=0;_<m.list.length;_++){var w=m.list[_],S=Math.abs(w.label.y-r),T=n+w.len,C=T*T,N=Math.sqrt((1-Math.abs(S*S/y))*C),b=t+(N+w.len2)*a,x=b-w.label.x,A=w.targetTextWidth-x*a;Xb(w,A,!0),w.label.x=b}}function f(m){for(var g={list:[],maxY:0},y={list:[],maxY:0},_=0;_<m.length;_++)if(m[_].labelAlignTo==="none"){var w=m[_],S=w.label.y>r?y:g,T=Math.abs(w.label.y-r);if(T>=S.maxY){var C=w.label.x-t-w.len2*a,N=n+w.len,b=Math.abs(C)<N?Math.sqrt(T*T/(1-C*C/N/N)):N;S.rB=b,S.maxY=T}S.list.push(w)}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}UI(e,l,l+o)&&f(e)}function BL(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;nf(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(!nf(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,Xb(p,g)}}oy(u,t,r,n,1,a,i,o,s,f),oy(l,t,r,n,-1,a,i,o,s,c);for(var d=0;d<e.length;d++){var p=e[d];if(!nf(p)&&p.linePoints){var h=p.label,m=p.linePoints,y=p.labelAlignTo==="edge",_=h.style.padding,w=_?_[1]+_[3]:0,S=h.style.backgroundColor?0:w,T=p.rect.width+S,C=m[1][0]-m[2][0];y?h.x<t?m[2][0]=o+p.edgeDistance+T+p.labelDistance:m[2][0]=o+a-p.edgeDistance-T-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 Xb(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 nf(e){return e.position==="center"}function VL(e){var t=e.getData(),r=[],n,a,i=!1,o=(e.get("minShowLabelAngle")||0)*RL,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 N in C.states)if(C.states[N].ignore===!1)return!0;return!1}t.each(function(C){var N=t.getItemGraphicEl(C),b=N.shape,x=N.getTextContent(),A=N.getTextGuideLine(),D=t.getItemModel(C),M=D.getModel("label"),P=M.get("position")||D.get(["emphasis","label","position"]),E=M.get("distanceToLabelLine"),I=M.get("alignTo"),L=Ae(M.get("edgeDistance"),u),V=M.get("bleedMargin"),B=D.getModel("labelLine"),$=B.get("length");$=Ae($,u);var H=B.get("length2");if(H=Ae(H,u),Math.abs(b.endAngle-b.startAngle)<o){k(x.states,h),x.ignore=!0,A&&(k(A.states,h),A.ignore=!0);return}if(p(x)){var O=(b.startAngle+b.endAngle)/2,Y=Math.cos(O),J=Math.sin(O),K,ge,fe,ve;n=b.cx,a=b.cy;var ue=P==="inside"||P==="inner";if(P==="center")K=b.cx,ge=b.cy,ve="center";else{var me=(ue?(b.r+b.r0)/2*Y:b.r*Y)+n,ce=(ue?(b.r+b.r0)/2*J:b.r*J)+a;if(K=me+Y*3,ge=ce+J*3,!ue){var Z=me+Y*($+l-b.r),ee=ce+J*($+l-b.r),nt=Z+(Y<0?-1:1)*H,Be=ee;I==="edge"?K=Y<0?c+L:c+u-L:K=nt+(Y<0?-E:E),ge=Be,fe=[[me,ce],[Z,ee],[nt,Be]]}ve=ue?"center":I==="edge"?Y>0?"right":"left":Y>0?"left":"right"}var zt=Math.PI,Tt=0,Vr=M.get("rotate");if(Me(Vr))Tt=Vr*(zt/180);else if(P==="center")Tt=0;else if(Vr==="radial"||Vr===!0){var Fo=Y<0?-O+zt:-O;Tt=Fo}else if(Vr==="tangential"&&P!=="outside"&&P!=="outer"){var yr=Math.atan2(Y,J);yr<0&&(yr=zt*2+yr);var zo=J>0;zo&&(yr=zt+yr),Tt=yr-zt}if(i=!!Tt,x.x=K,x.y=ge,x.rotation=Tt,x.setStyle({verticalAlign:"middle"}),ue){x.setStyle({align:ve});var ca=x.states.select;ca&&(ca.x+=x.x,ca.y+=x.y)}else{var $r=x.getBoundingRect().clone();$r.applyTransform(x.getComputedTransform());var mi=(x.style.margin||0)+2.1;$r.y-=mi/2,$r.height+=mi,r.push({label:x,labelLine:A,position:P,len:$,len2:H,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new le(Y,J),linePoints:fe,textAlign:ve,labelDistance:E,labelAlignTo:I,edgeDistance:L,bleedMargin:V,rect:$r,unconstrainedWidth:$r.width,labelStyleWidth:x.style.width})}N.setTextConfig({inside:ue})}}),!i&&e.get("avoidLabelOverlap")&&BL(r,n,a,l,u,d,c,f);for(var m=0;m<r.length;m++){var g=r[m],y=g.label,_=g.labelLine,w=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),w&&(k(y.states,h),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(_){var T=g.linePoints;w||!T?(k(_.states,h),_.ignore=!0):(BI(T,g.minTurnAngle),VI(T,g.surfaceNormal,g.maxSurfaceAngle),_.setShape({points:T}),y.__hostTarget.textGuideLineConfig={anchor:new le(T[0][0],T[0][1])})}}}var $L=function(e){G(t,e);function t(r,n,a){var i=e.call(this)||this;i.z2=2;var o=new Ue;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=z(Ki(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?(Ct(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,Ct(o,{shape:{r:c.r}},s,n)):a!=null?(o.setShape({startAngle:a,endAngle:a}),Ct(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,rt(o,{shape:{endAngle:c.endAngle}},s,n))}else Bd(o),rt(o,{shape:f},s,n);o.useStyle(r.getItemVisual(n,"style")),fl(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=z({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Ki(u.getModel("itemStyle"),c)),z(o.ensureState("select"),{x:m,y:g,shape:Ki(l.getModel(["select","itemStyle"]),c)}),z(o.ensureState("blur"),{shape:Ki(l.getModel(["blur","itemStyle"]),c)});var _=o.getTextGuideLine(),w=o.getTextContent();_&&z(_.ensureState("select"),{x:m,y:g}),z(w.ensureState("select"),{x:m,y:g}),Jn(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;li(i,ia(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 oi,this.setTextGuideLine(h)),FI(this,zI(o),{stroke:u,opacity:on(s.get(["lineStyle","opacity"]),c,1)})}},t}(aa),FL=function(e){G(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 aa({shape:jb(r,a)});d.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add(function(h){var p=new $L(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);vl(p,r,h)}).execute(),VL(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}(Yt);const zL=FL;function GL(e,t,r){t=U(t)&&{coordDimensions:t}||z({encodeDefine:e.getEncode()},t);var n=e.getSource(),a=fb(n,t).dimensions,i=new ho(a,e);return i.initData(n,r),i}var HL=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 UL=HL;var WL=ke(),YL=function(e){G(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 UL(te(this.getData,this),te(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return GL(this,{coordDimensions:["value"],encodeDefaulter:Ne(Ok,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),a=WL(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=xD(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){ll(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}(Or);const qL=YL;function jL(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!(Me(o)&&!isNaN(o)&&o<0)})}}}function XL(e){e.registerChartView(zL),e.registerSeriesModel(qL),w5("pie",e.registerAction),e.registerLayout(Ne(LL,"pie")),e.registerProcessor(OL("pie")),e.registerProcessor(jL("pie"))}var ZL=function(e){G(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}(De);const KL=ZL;var Nh=function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",pt).models[0]},t.type="cartesian2dAxis",t}(De);Kt(Nh,TI);var Zb={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)"]}}},JL=_e({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Zb),gv=_e({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}}},Zb),QL=_e({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},gv),eO=pe({logBase:10},gv);const tO={category:JL,value:gv,time:QL,log:eO};var rO={value:1,category:1,time:1,log:1};function sy(e,t,r,n){k(rO,function(a,i){var o=_e(_e({},tO[i],!0),n,!0),s=function(l){G(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=Co(this),h=d?Ro(c):{},p=f.getTheme();_e(c,p.get(i+"Axis")),_e(c,this.getDefaultOption()),c.type=ly(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",ly)}function ly(e){return e.type||(e.data?"category":"value")}var nO=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(),je(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 aO=nO;var Dh=["x","y"];function uy(e){return e.type==="interval"||e.type==="time"}var iO=function(e){G(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(!(!uy(r)||!uy(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=md([],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 Ce(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 Ce(i,o,s,l)},t}(aO),oO=function(e){G(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}(RI);const sO=oO;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),cn(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 cy(e){return e.get("coordinateSystem")==="cartesian2d"}function fy(e){var t={xAxisModel:null,yAxisModel:null};return k(t,function(r,n){var a=n.replace(/Model$/,""),i=e.getReferringComponents(a,pt).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error(a+' "'+on(e.get(a+"Index"),e.get(a+"Id"),0)+'" not found');t[n]=i}),t}var af=Math.log;function lO(e,t,r){var n=Bo.prototype,a=n.getTicks.call(r),i=n.getTicks.call(r,!0),o=a.length-1,s=n.getInterval.call(r),l=Nb(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=af(e.base);u=[af(u[0])/d,af(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=Kc(p),g=u[0]+p*o;else if(f)for(m=u[1]-p*o;m>u[0]&&isFinite(m)&&isFinite(u[0]);)p=Kc(p),m=u[1]-p*o;else{var y=e.getTicks().length-1;y>o&&(p=Kc(p));var _=p*o;g=Math.ceil(u[1]/p)*p,m=$e(g-_),m<0&&u[0]>=0?(m=0,g=$e(_)):g>0&&u[1]<=0&&(g=0,m=-$e(_))}var w=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;if(n.setExtent.call(e,m+p*w,g+p*S),n.setInterval.call(e,p),(w||S)&&n.setNiceExtent.call(e,m+p,g-p),process.env.NODE_ENV!=="production"){var T=n.getTicks.call(e);T[1]&&(!YP(p)||Jf(T[1].value)>Jf(p))&&ze("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}}var uO=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=Te(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):(Vm(m,p),Sh(m)&&(s=h))}c.length&&(s||(s=c.pop(),Vm(s.scale,s.model)),k(c,function(g){lO(g.scale,g.model,s.scale)}))}}a(n.x),a(n.y);var i={};k(n.x,function(o){hy(n,"y",o,i)}),k(n.y,function(o){hy(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=ea(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=bI(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]),cO(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]}Q(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",pt).models[0],a=t.yAxisModel||r&&r.getReferringComponents("yAxis",pt).models[0],i=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,de(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 iO(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(of(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 sO(c,_I(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(cy(a)){var i=fy(a),o=i.xAxisModel,s=i.yAxisModel;if(!of(o,r)||!of(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(Ab(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);de(r,i)<0&&r.push(i),de(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(cy(a)){var i=fy(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!l)throw new Error('Grid "'+on(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 of(e,t){return e.getCoordSysModel()===t}function hy(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)dy(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&dy(a[u])&&!n[c(a[u])]){i=a[u];break}i&&(n[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function dy(e){return e&&e.type!=="category"&&e.type!=="time"&&wI(e)}function cO(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 fO=uO;var tn=Math.PI,qn=function(){function e(t,r){this.group=new Re,this.opt=r,this.axisModel=t,pe(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Re({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!vy[t]},e.prototype.add=function(t){vy[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var a=V_(r-t),i,o;return il(a)?(o=n>0?"top":"bottom",i="center"):il(a-tn)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<tn?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}(),vy={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=z({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new hn({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});wo(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"]);X(d)&&(d=[d,d]),(X(h)||Me(h))&&(h=[h,h]);var p=xu(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,_){if(d[_]!=="none"&&d[_]!=null){var w=Rr(d[_],-m/2,-g/2,m,g,c.stroke,!0),S=y.r+y.offset,T=u?l:s;w.attr({rotation:y.rotate,x:T[0]+S*Math.cos(e.rotation),y:T[1]-S*Math.sin(e.rotation),silent:!0,z2:11}),r.add(w)}})}}},axisTickLabel:function(e,t,r,n){var a=vO(r,n,t,e),i=gO(r,n,t,e);if(dO(t,i,a),pO(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=GI(q(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));WI(o)}},axisName:function(e,t,r,n){var a=cn(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,gy(i)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*tn/180);var p;gy(i)?d=qn.innerTextLayout(e.rotation,h??e.rotation,o):(d=hO(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,_=cn(e.nameTruncateMaxWidth,g.maxWidth,p),w=new Ue({x:f[0],y:f[1],rotation:d.rotation,silent:qn.isLabelSilent(t),style:jt(s,{text:a,font:m,overflow:"truncate",width:_,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($d({el:w,componentModel:t,itemName:a}),w.__fullText=a,w.anid="name",t.get("triggerEvent")){var S=qn.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,ye(w).eventData=S}n.add(w),w.updateTransform(),r.add(w),w.decomposeTransform()}}};function hO(e,t,r,n){var a=V_(r-e),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return il(a-tn/2)?(o=l?"bottom":"top",i="center"):il(a-tn*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<tn*1.5&&a>tn/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function dO(e,t,r){if(!Db(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?(Dt(i),Dt(u)):py(i,o)&&(n?(Dt(o),Dt(c)):(Dt(i),Dt(u))),a===!1?(Dt(s),Dt(f)):py(l,s)&&(a?(Dt(l),Dt(d)):(Dt(s),Dt(f)))}}function Dt(e){e&&(e.ignore=!0)}function py(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var a=pd([]);return gd(a,a,-e.rotation),r.applyTransform(Va([],a,e.getLocalTransform())),n.applyTransform(Va([],a,t.getLocalTransform())),r.intersect(n)}}function gy(e){return e==="middle"||e==="center"}function Kb(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 hn({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});wo(c.shape,c.style.lineWidth),c.anid=a+"_"+e[l].tickValue,i.push(c)}return i}function vO(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=Kb(u,t.transform,l,pe(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function pO(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=pe(s.getLineStyle(),pe(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=Kb(o[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function gO(e,t,r,n){var a=r.axis,i=cn(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(cn(n.labelRotate,o.get("rotate"))||0)*tn/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,_=m.formattedLabel,w=m.rawLabel,S=o;if(f&&f[y]){var T=f[y];Q(T)&&T.textStyle&&(S=new et(T.textStyle,o,r.ecModel))}var C=S.getTextColor()||r.get(["axisLine","lineStyle","color"]),N=a.dataToCoord(y),b=S.getShallow("align",!0)||c.textAlign,x=ie(S.getShallow("alignMinLabel",!0),b),A=ie(S.getShallow("alignMaxLabel",!0),b),D=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||c.textVerticalAlign,M=ie(S.getShallow("verticalAlignMinLabel",!0),D),P=ie(S.getShallow("verticalAlignMaxLabel",!0),D),E=new Ue({x:N,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(m.level||0),style:jt(S,{text:_,align:g===0?x:g===l.length-1?A:b,verticalAlign:g===0?M:g===l.length-1?P:D,fill:se(C)?C(a.type==="category"?w:a.type==="value"?y+"":y,g):C})});if(E.anid="label_"+y,p){var I=qn.makeAxisEventDataBase(r);I.targetType="axisLabel",I.value=w,I.tickIndex=g,a.type==="category"&&(I.dataIndex=y),ye(E).eventData=I}t.add(E),E.updateTransform(),d.push(E),e.add(E),E.decomposeTransform()}),d}}const Jb=qn;function mO(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return yO(r,e,t),r.seriesInvolved&&wO(r,e),r}function yO(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=Mo(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(k(s.getAxes(),Ne(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,Ne(m,h?"cross":!0,d)),h&&k(p.otherAxes,Ne(m,"cross",!1))}function m(g,y,_){var w=_.model.getModel("axisPointer",a),S=w.get("show");if(!(!S||S==="auto"&&!g&&!Mh(w))){y==null&&(y=w.get("triggerTooltip")),w=g?_O(_,f,a,t,g,y):w;var T=w.get("snap"),C=w.get("triggerEmphasis"),N=Mo(_.model),b=y||T||_.type==="category",x=e.axesInfo[N]={key:N,axis:_,coordSys:s,axisPointerModel:w,triggerTooltip:y,triggerEmphasis:C,involveSeries:b,snap:T,useHandle:Mh(w),seriesModels:[],linkGroup:null};u[N]=x,e.seriesInvolved=e.seriesInvolved||b;var A=bO(i,_);if(A!=null){var D=o[A]||(o[A]={axesInfo:{}});D.axesInfo[N]=x,D.mapper=i[A].mapper,x.linkGroup=D}}}})}function _O(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]=he(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&&pe(u,f.textStyle)}}return e.model.getModel("axisPointer",new et(l,r,n))}function wO(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[Mo(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 bO(e,t){for(var r=t.model,n=t.dim,a=0;a<e.length;a++){var i=e[a]||{};if(sf(i[n+"AxisId"],r.id)||sf(i[n+"AxisIndex"],r.componentIndex)||sf(i[n+"AxisName"],r.name))return a}}function sf(e,t){return e==="all"||U(e)&&de(e,t)>=0||e===t}function SO(e){var t=mv(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 mv(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Mo(e)]}function CO(e){var t=mv(e);return t&&t.axisPointerModel}function Mh(e){return!!e.get(["handle","show"])}function Mo(e){return e.type+"||"+e.id}var lf={},Qb=function(e){G(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&&SO(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=CO(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"&&lf[r])throw new Error("axisPointer "+r+" exists");lf[r]=n},t.getAxisPointerClass=function(r){return r&&lf[r]},t.type="axis",t}(Xt),kh=ke();function TO(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=oe(),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 _=a.toGlobalCoord(u[p].coord),w=void 0,S=void 0,T=void 0,C=void 0;a.isHorizontal()?(w=g,S=l.y,T=_-w,C=l.height,g=w+T):(w=l.x,S=g,T=l.width,C=_-S,g=S+C);var N=u[p-1].tickValue;N!=null&&d.set(N,h),t.add(new Ie({anid:N!=null?"area_"+N:null,shape:{x:w,y:S,width:T,height:C},style:pe({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%c}kh(e).splitAreaColors=d}}}function xO(e){kh(e).splitAreaColors=null}var NO=["axisLine","axisTickLabel","axisName"],DO=["splitArea","splitLine","minorSplitLine"],eS=function(e){G(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 Re,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=Ah(s,r),u=new Jb(r,z({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(NO,u.add,u),this._axisGroup.add(u.getGroup()),k(DO,function(f){r.get([f,"show"])&&AO[f](this,this._axisGroup,r,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||z1(o,this._axisGroup,r),e.prototype.render.call(this,r,n,a,i)}},t.prototype.remove=function(){xO(this)},t.type="cartesianAxis",t}(Qb),AO={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,_=f[m].tickValue,w=new hn({anid:_!=null?"line_"+f[m].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:pe({stroke:s[y]},p),silent:!0});wo(w.shape,p.lineWidth),t.add(w)}}},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 hn({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});wo(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,r,n){TO(e,t,r,n)}},tS=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(eS),MO=function(e){G(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=tS.type,r}return t.type="yAxis",t}(eS),kO=function(e){G(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 Ie({shape:r.coordinateSystem.getRect(),style:pe({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Xt),my={offset:0};function EO(e){e.registerComponentView(kO),e.registerComponentModel(KL),e.registerCoordinateSystem("cartesian2d",fO),sy(e,"x",Nh,my),sy(e,"y",Nh,my),e.registerComponentView(tS),e.registerComponentView(MO),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var yy="\0_ec_interaction_mutex";function _y(e,t){return!!PO(e)[t]}function PO(e){return e[yy]||(e[yy]={})}sa({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},lt);var IO=function(e){G(t,e);function t(r){var n=e.call(this)||this;n._zr=r;var a=te(n._mousedownHandler,n),i=te(n._mousemoveHandler,n),o=te(n._mouseupHandler,n),s=te(n._mousewheelHandler,n),l=te(n._pinchHandler,n);return n.enable=function(u,c){this.disable(),this._opt=pe(he(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(!sp(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||!Ys("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||_y(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),rS(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:i,oldY:o,newX:n,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){sp(r)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(r){var n=Ys("zoomOnMouseWheel",r,this._opt),a=Ys("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;uf(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);uf(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!_y(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;uf(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Jt);function uf(e,t,r,n,a){e.pointerChecker&&e.pointerChecker(n,a.originX,a.originY)&&(Xa(n.event),rS(e,t,r,n,a))}function rS(e,t,r,n,a){a.isAvailableBehavior=te(Ys,null,r,n),e.trigger(t,a)}function Ys(e,t,r){var n=r[e];return!e||n&&(!X(n)||t.event[n+"Key"])}const LO=IO;var wy=hn.prototype,cf=Id.prototype,nS=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){G(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(nS);function ff(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var OO=function(e){G(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 nS},t.prototype.buildPath=function(r,n){ff(n)?wy.buildPath.call(this,r,n):cf.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return ff(this.shape)?wy.pointAt.call(this,r):cf.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,a=ff(n)?[n.x2-n.x1,n.y2-n.y1]:cf.tangentAt.call(this,r);return dd(a,a)},t}(we),hf=["fromSymbol","toSymbol"];function by(e){return"_"+e+"Type"}function Sy(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=av(a),u=xu(o||0,l);return n+l+u+(i||"")+(s||"")}function Cy(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=av(a),u=xu(o||0,l),c=Rr(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 RO(e){var t=new OO({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 BO=function(e){G(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=RO(o);s.shape.percent=0,Ct(s,{shape:{percent:1}},i,n),this.add(s),k(hf,function(l){var u=Cy(l,r,n);this.add(u),this[by(l)]=Sy(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),rt(o,l,i,n),k(hf,function(u){var c=Sy(u,r,n),f=by(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=Cy(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=ia(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(hf,function(C){var N=this.childOfName(C);if(N){N.setColor(y),N.style.opacity=g.opacity;for(var b=0;b<gt.length;b++){var x=gt[b],A=o.getState(x);if(A){var D=A.style||{},M=N.ensureState(x),P=M.style||(M.style={});D.stroke!=null&&(P[N.__isEmptyBrush?"stroke":"fill"]=D.stroke),D.opacity!=null&&(P.opacity=D.opacity)}}N.markRedraw()}},this);var _=i.getRawValue(n);li(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(C,N){return i.getFormattedLabel(C,N,r.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(_==null?r.getName(n):isFinite(_)?$e(_):_)+""});var w=this.getTextContent();if(w){var S=c.normal;w.__align=w.style.align,w.__verticalAlign=w.style.verticalAlign,w.__position=S.get("position")||"middle";var T=S.get("distance");U(T)||(T=[T,T]),w.__labelDistance=T}this.setTextConfig({position:null,local:!0,inside:!1}),Jn(this,d,h,f)},t.prototype.highlight=function(){yo(this)},t.prototype.downplay=function(){_o(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=g_([],f,c);dd(d,d);function h(A,D){var M=A.__specifiedRotation;if(M==null){var P=l.tangentAt(D);A.attr("rotation",(D===1?-1:1)*Math.PI/2-Math.atan2(P[1],P[0]))}else A.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,_=g[1]*o,w=u/2,S=l.tangentAt(w),T=[S[1],-S[0]],C=l.pointAt(w);T[1]>0&&(T[0]=-T[0],T[1]=-T[1]);var N=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 x=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":x=-_,m="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":x=_,m="top";break;default:x=0,m="middle"}switch(i.__position){case"end":i.x=d[0]*y+f[0],i.y=d[1]*_+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]*_+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*N+c[0],i.y=c[1]+x,p=S[0]<0?"right":"left",i.originX=-y*N,i.originY=-x;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=C[0],i.y=C[1]+x,p="center",i.originY=-x;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*N+f[0],i.y=f[1]+x,p=S[0]>=0?"right":"left",i.originX=y*N,i.originY=-x;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||m,align:i.__align||p})}},t}(Re);const VO=BO;var $O=function(){function e(t){this.group=new Re,this._LineCtor=t||VO}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=Ty(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=Ty(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!FO(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var i=r.getItemLayout(a);if(df(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){si(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var a=t.getItemLayout(r);if(df(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(!df(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 FO(e){return e.animators&&e.animators.length>0}function Ty(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:ia(t)}}function xy(e){return isNaN(e[0])||isNaN(e[1])}function df(e){return e&&!xy(e[0])&&!xy(e[1])}const zO=$O;function Iu(e,t,r,n,a,i){e=e||0;var o=r[1]-r[0];if(a!=null&&(a=xa(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=xa(s,[0,o]),a=i=xa(s,[a,i]),n=0}t[0]=xa(t[0],r),t[1]=xa(t[1],r);var l=vf(t,n);t[n]+=e;var u=a||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=xa(t[n],c);var f;return f=vf(t,n),a!=null&&(f.sign!==l.sign||f.span<a)&&(t[1-n]=t[n]+l.sign*a),f=vf(t,n),i!=null&&f.span>i&&(t[1-n]=t[n]+f.sign*i),t}function vf(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 xa(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var Ny={color:"fill",borderColor:"stroke"},GO={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Er=ke(),HO=function(e){G(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 Au(null,this)},t.prototype.getDataParams=function(r,n,a){var i=e.prototype.getDataParams.call(this,r,n);return a&&(i.info=Er(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}(Or);const UO=HO;function WO(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 YO(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:te(WO,e)}}}function qO(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 jO(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:te(qO,e)}}}function XO(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 ZO(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:te(XO,e)}}}function KO(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 JO(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:te(KO,e)}}}function QO(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 Dy={};function eR(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||W(e,"text")))}function tR(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 Ay(o,e),k(o.rich,function(l){Ay(l,l)}),{textConfig:a,textContent:i}}function Ay(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 My(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";ky(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){ky(s,s)}),n}function ky(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 Ey(e,t){if(process.env.NODE_ENV!=="production"){var r=e+"^_^"+t;Dy[r]||(console.warn('[ECharts] DEPRECATED: "'+e+'" has been deprecated. '+t),Dy[r]=!0)}}var aS={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Py=Te(aS),El=Ir(vr,function(e,t){return e[t]=1,e},{}),Iy=vr.join(", "),Pl=["","style","shape","extra"],ei=ke();function yv(e,t,r,n,a){var i=e+"Animation",o=Od(e,n,a)||{},s=ei(t).userDuring;return o.duration>0&&(o.during=s?te(lR,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),z(o,r[i]),o}function rR(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(cR(e,t,f),Oy("shape",t,f),Oy("extra",t,f),!i&&s&&(uR(e,t,c),Ly("shape",e,t,c),Ly("extra",e,t,c),fR(e,t,u,c)),f.style=u,aR(e,f,o),oR(e,t),s)if(i){var d={};k(Pl,function(p){var m=p?t[p]:t;m&&m.enterFrom&&(p&&(d[p]=d[p]||{}),z(p?d[p]:d,m.enterFrom))});var h=yv("enter",e,t,r,a);h.duration>0&&e.animateFrom(d,h)}else iR(e,t,a||0,r,c);nR(e,t),u?e.dirty():e.markRedraw()}function nR(e,t){for(var r=ei(e).leaveToProps,n=0;n<Pl.length;n++){var a=Pl[n],i=a?t[a]:t;i&&i.leaveTo&&(r||(r=ei(e).leaveToProps={}),a&&(r[a]=r[a]||{}),z(a?r[a]:r,i.leaveTo))}}function _v(e,t,r,n){if(e){var a=e.parent,i=ei(e).leaveToProps;if(i){var o=yv("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 aR(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 iR(e,t,r,n,a){if(a){var i=yv("update",e,t,n,r);i.duration>0&&e.animateFrom(a,i)}}function oR(e,t){W(t,"silent")&&(e.silent=t.silent),W(t,"ignore")&&(e.ignore=t.ignore),e instanceof na&&W(t,"invisible")&&(e.invisible=t.invisible),e instanceof we&&W(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var sr={},sR={setTransform:function(e,t){return process.env.NODE_ENV!=="production"&&ne(W(El,e),"Only "+Iy+" available in `setTransform`."),sr.el[e]=t,this},getTransform:function(e){return process.env.NODE_ENV!=="production"&&ne(W(El,e),"Only "+Iy+" available in `getTransform`."),sr.el[e]},setShape:function(e,t){process.env.NODE_ENV!=="production"&&Na(e);var r=sr.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=sr.el.shape;if(t)return t[e]},setStyle:function(e,t){process.env.NODE_ENV!=="production"&&Na(e);var r=sr.el,n=r.style;return n&&(process.env.NODE_ENV!=="production"&&ja(t)&&ze("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=sr.el.style;if(t)return t[e]},setExtra:function(e,t){process.env.NODE_ENV!=="production"&&Na(e);var r=sr.el.extra||(sr.el.extra={});return r[e]=t,this},getExtra:function(e){process.env.NODE_ENV!=="production"&&Na(e);var t=sr.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 lR(){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}sr.el=t,n(sR)}}function Ly(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))z(o,i);else for(var u=He(l),c=0;c<u.length;c++){var f=u[c],d=i[f];o[f]=d}else if(Ua(s)||de(s,e)>=0){!o&&(o=n[e]={});for(var h=Te(i),c=0;c<h.length;c++){var f=h[c],d=i[f];hR(a[f],d)&&(o[f]=d)}}}}}function Oy(e,t,r){var n=t[e];if(n)for(var a=r[e]={},i=Te(n),o=0;o<i.length;o++){var s=i[o];a[s]=to(n[s])}}function uR(e,t,r){for(var n=t.transition,a=Ua(n)?vr:He(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"&&iS(o,"el.transition"),r[o]=s}}}function cR(e,t,r){for(var n=0;n<Py.length;n++){var a=Py[n],i=aS[a],o=t[a];o&&(r[i[0]]=o[0],r[i[1]]=o[1])}for(var n=0;n<vr.length;n++){var s=vr[n];t[s]!=null&&(r[s]=t[s])}}function fR(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=He(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)||de(s,"style")>=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!i&&(i=n.style={});for(var p=Te(r),u=0;u<p.length;u++){var c=p[u];if(h[c]){var f=a[c];i[c]=f}}}}}}}function hR(e,t){return ut(e)?e!==t:e!=null&&isFinite(e)}var iS;process.env.NODE_ENV!=="production"&&(iS=function(e,t){W(El,e)||ze("Prop `"+e+"` is not a permitted in `"+t+"`. Only `"+Te(El).join("`, `")+"` are permitted.")});var oS=ke(),dR=["percent","easing","shape","style","extra"];function vR(e){e.stopAnimation("keyframe"),e.attr(oS(e))}function sS(e,t,r){if(!(!r.isAnimationEnabled()||!t)){if(U(t)){k(t,function(s){sS(e,s,r)});return}var n=t.keyframes,a=t.duration;if(r&&a==null){var i=Od("enter",r,0);a=i&&i.duration}if(!(!n||!a)){var o=oS(e);k(Pl,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=Te(d);if(s||(h=je(h,function(g){return de(dR,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||ze("End frame with percent: 1 is missing in the keyframeAnimation.",!0)),l.delay(t.delay||0).duration(a).start(t.easing))}})}}}var Pr="emphasis",rn="normal",wv="blur",bv="select",dn=[rn,Pr,wv,bv],pf={normal:["itemStyle"],emphasis:[Pr,"itemStyle"],blur:[wv,"itemStyle"],select:[bv,"itemStyle"]},gf={normal:["label"],emphasis:[Pr,"label"],blur:[wv,"label"],select:[bv,"label"]},pR=["x","y"],gR="e\0\0",At={normal:{},emphasis:{},blur:{},select:{}},Ry={cartesian2d:YO,geo:jO,single:ZO,polar:JO,calendar:QO};function Il(e){return e instanceof we}function Ph(e){return e instanceof na}function mR(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,Il(t)&&Il(e)&&t.setShape(e.shape))}var yR=function(e){G(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=By(r,s,n,a);o||l.removeAll(),s.diff(o).add(function(f){mf(a,null,f,u(f,i),r,l,s)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&_v(d,Er(d).option,r)}).update(function(f,d){var h=o.getItemGraphicEl(d);mf(a,h,f,u(f,i),r,l,s)}).execute();var c=r.get("clip",!0)?Gb(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=By(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=mf(null,null,f,l(f,o),n,this.group,s);d&&(d.traverse(c),u.push(d))}},t.prototype.eachRendered=function(r){si(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}(Yt);const _R=yR;function Sv(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=cS(n);r=cu(i,null,a,n.layout||"center"),Er(r).customPathData=i}else if(t==="image")r=new pn({}),Er(r).customImagePath=e.style.image;else if(t==="text")r=new Ue({});else if(t==="group")r=new Re;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=O1(t);if(!o){var s="";process.env.NODE_ENV!=="production"&&(s='graphic type "'+t+'" can not be found.'),st(s)}r=new o}return Er(r).customGraphicType=t,r.name=e.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function Cv(e,t,r,n,a,i,o){vR(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=pR);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=Il(t)?l.decal:null;e&&f&&(f.dirty=!0,c=Nl(f,e)),l.__decalPattern=c}if(Ph(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}rR(t,n,i,{dataIndex:r,isInit:o,clearStyle:!0}),sS(t,n.keyframeAnimation,i)}function lS(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),f1(i)}}function wR(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<dn.length;s++)bR(n,t,dn[s])}}function bR(e,t,r){var n=r===rn,a=n?t:Ll(t,r),i=a?a.z2:null,o;i!=null&&(o=n?e:e.ensureState(r),o.z2=i||0)}function By(e,t,r,n){var a=e.get("renderItem"),i=e.coordinateSystem,o={};i&&(process.env.NODE_ENV!=="production"&&(ne(a,"series.render is required."),ne(i.prepareCustoms||Ry[i.type],"This coordSys does not support custom series.")),o=i.prepareCustoms?i.prepareCustoms(i):Ry[i.type](i));for(var s=pe({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:S,style:C,ordinalRawValue:T,styleEmphasis:N,visual:A,barLayout:D,currentSeriesIndices:M,font:P},o.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:SR(e.getData())},u,c,f={},d={},h={},p={},m=0;m<dn.length;m++){var g=dn[m];h[g]=e.getModel(pf[g]),p[g]=e.getModel(gf[g])}function y(E){return E===u?c||(c=t.getItemModel(E)):t.getItemModel(E)}function _(E,I){return t.hasItemOption?E===u?f[I]||(f[I]=y(E).getModel(pf[I])):y(E).getModel(pf[I]):h[I]}function w(E,I){return t.hasItemOption?E===u?d[I]||(d[I]=y(E).getModel(gf[I])):y(E).getModel(gf[I]):p[I]}return function(E,I){return u=E,c=null,f={},d={},a&&a(pe({dataIndexInside:E,dataIndex:t.getRawIndex(E),actionType:I?I.type:null},l),s)};function S(E,I){return I==null&&(I=u),t.getStore().get(t.getDimensionIndex(E||0),I)}function T(E,I){I==null&&(I=u),E=E||0;var L=t.getDimensionInfo(E);if(!L){var V=t.getDimensionIndex(E);return V>=0?t.getStore().get(V,I):void 0}var B=t.get(L.name,I),$=L&&L.ordinalMeta;return $?$.categories[B]:B}function C(E,I){process.env.NODE_ENV!=="production"&&Ey("api.style","Please write literal style directly instead."),I==null&&(I=u);var L=t.getItemVisual(I,"style"),V=L&&L.fill,B=L&&L.opacity,$=_(I,rn).getItemStyle();V!=null&&($.fill=V),B!=null&&($.opacity=B);var H={inheritColor:X(V)?V:"#000"},O=w(I,rn),Y=jt(O,null,H,!1,!0);Y.text=O.getShallow("show")?ie(e.getFormattedLabel(I,rn),Ao(t,I)):null;var J=ml(O,H,!1);return x(E,$),$=My($,Y,J),E&&b($,E),$.legacy=!0,$}function N(E,I){process.env.NODE_ENV!=="production"&&Ey("api.styleEmphasis","Please write literal style directly instead."),I==null&&(I=u);var L=_(I,Pr).getItemStyle(),V=w(I,Pr),B=jt(V,null,null,!0,!0);B.text=V.getShallow("show")?on(e.getFormattedLabel(I,Pr),e.getFormattedLabel(I,rn),Ao(t,I)):null;var $=ml(V,null,!0);return x(E,L),L=My(L,B,$),E&&b(L,E),L.legacy=!0,L}function b(E,I){for(var L in I)W(I,L)&&(E[L]=I[L])}function x(E,I){E&&(E.textFill&&(I.textFill=E.textFill),E.textPosition&&(I.textPosition=E.textPosition))}function A(E,I){if(I==null&&(I=u),W(Ny,E)){var L=t.getItemVisual(I,"style");return L?L[Ny[E]]:null}if(W(GO,E))return t.getItemVisual(I,E)}function D(E){if(i.type==="cartesian2d"){var I=i.getBaseAxis();return ZP(pe({axis:I},E))}}function M(){return r.getCurrentSeriesIndices()}function P(E){return H1(E,r)}}function SR(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 mf(e,t,r,n,a,i,o){if(!n){i.remove(t);return}var s=Tv(e,t,r,n,a,i);return s&&o.setItemGraphicEl(r,s),s&&Jn(s,n.focus,n.blurScope,n.emphasisDisabled),s}function Tv(e,t,r,n,a,i){process.env.NODE_ENV!=="production"&&ne(n,"should not have an null/undefined element setting");var o=-1,s=t;t&&uS(t,n,a)&&(o=de(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=Sv(n),s&&mR(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),At.normal.cfg=At.normal.conOpt=At.emphasis.cfg=At.emphasis.conOpt=At.blur.cfg=At.blur.conOpt=At.select.cfg=At.select.conOpt=null,At.isLegacy=!1,TR(u,r,n,a,l,At),CR(u,r,n,a,l),Cv(e,u,r,n,At,a,l),W(n,"info")&&(Er(u).info=n.info);for(var c=0;c<dn.length;c++){var f=dn[c];if(f!==rn){var d=Ll(n,f),h=xv(n,d,f);lS(f,u,d,h,At)}}return wR(u,n,a),n.type==="group"&&xR(e,u,r,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function uS(e,t,r){var n=Er(e),a=t.type,i=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&MR(i)&&cS(i)!==n.customPathData||a==="image"&&W(o,"image")&&o.image!==n.customImagePath}function CR(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&&uS(o,i,n)&&(o=null),o||(o=Sv(i),process.env.NODE_ENV!=="production"&&ne(Il(o),"Only any type of `path` can be used in `clipPath`, rather than "+o.type+"."),e.setClipPath(o)),Cv(null,o,t,i,null,n,a)}}function TR(e,t,r,n,a,i){if(!e.isGroup){Vy(r,null,i),Vy(r,Pr,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=Sv(o),e.setTextContent(c)),Cv(null,c,t,o,null,n,a);for(var f=o&&o.style,d=0;d<dn.length;d++){var h=dn[d];if(h!==rn){var p=i[h].conOpt;lS(h,c,p,xv(o,p,h),null)}}f?c.dirty():c.markRedraw()}}}}function Vy(e,t,r){var n=t?Ll(e,t):e,a=t?xv(e,n,Pr):e.style,i=e.type,o=n?n.textConfig:null,s=e.textContent,l=s?t?Ll(s,t):s:null;if(a&&(r.isLegacy||eR(a,i,!!o,!!l))){r.isLegacy=!0;var u=tR(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"&&ne(c.type==="text",'textContent.type must be "text"')}var f=t?r[t]:r.normal;f.cfg=o,f.conOpt=l}function Ll(e,t){return t?e?e[t]:null:e}function xv(e,t,r){var n=t&&t.style;return n==null&&r===Pr&&e&&(n=e.styleEmphasis),n}function xR(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){DR({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),Tv(e,d,r,f,a,t)):(process.env.NODE_ENV!=="production"&&ne(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);NR(t,p,a)}}}function NR(e,t,r){t&&_v(t,Er(e).option,r)}function DR(e){new ib(e.oldChildren,e.newChildren,$y,$y,e).add(Fy).update(Fy).remove(AR).execute()}function $y(e,t){var r=e&&e.name;return r??gR+t}function Fy(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,a=t!=null?r.oldChildren[t]:null;Tv(r.api,a,r.dataIndex,n,r.seriesModel,r.group)}function AR(e){var t=this.context,r=t.oldChildren[e];r&&_v(r,Er(r).option,t.seriesModel)}function cS(e){return e&&(e.pathData||e.d)}function MR(e){return e&&(W(e,"pathData")||W(e,"d"))}function kR(e){e.registerChartView(_R),e.registerSeriesModel(UO)}var Fn=ke(),zy=he,yf=te,ER=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 Re,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Ne(Gy,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}Uy(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=mv(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 nk[i.type](zy(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,a){if(r.label){var i=Fn(t).labelEl=new Ue(zy(r.label));t.add(i),Hy(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}),Hy(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=Vd(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Xa(u.event)},onmousedown:yf(this._onHandleDragMove,this,0,0),drift:yf(this._onHandleDragMove,this),ondragend:yf(this._onHandleDragEnd,this)}),n.add(a)),Uy(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){Gy(this._axisPointerModel,!r&&this._moveAnimation,this._handle,_f(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(_f(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(_f(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),bl(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 Gy(e,t,r,n){fS(Fn(r).lastProp,n)||(Fn(r).lastProp=n,t?rt(r,n,e):(r.stopAnimation(),r.attr(n)))}function fS(e,t){if(Q(e)&&Q(t)){var r=!0;return k(t,function(n,a){r=r&&fS(e[a],n)}),!!r}else return e===t}function Hy(e,t){e[t.get(["label","show"])?"show":"hide"]()}function _f(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Uy(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 PR=ER;function IR(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 LR(e,t,r,n,a){var i=r.get("value"),o=hS(i,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=wu(s.get("padding")||0),u=s.getFont(),c=wd(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),OR(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:jt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function OR(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 hS(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:dv(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)}),X(o)?i=o.replace("{value}",i):se(o)&&(i=o(s))}return i}function dS(e,t,r){var n=Ba();return gd(n,n,r.rotation),Ff(n,n,r.position),bo([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function RR(e,t,r,n,a,i){var o=Jb.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),LR(t,n,a,i,{position:dS(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function BR(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function VR(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var $R=function(e){G(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=Wy(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=IR(i),h=FR[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var p=Ah(l.model,a);RR(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=dS(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=Wy(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}(PR);function Wy(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var FR={line:function(e,t,r){var n=BR([t,r[0]],[t,r[1]],Yy(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:VR([t-n/2,r[0]],[n,a],Yy(e))}}};function Yy(e){return e.dim==="x"?0:1}const zR=$R;var GR=function(e){G(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}(De);const HR=GR;var Dr=ke(),UR=k;function vS(e,t,r){if(!ae.node){var n=t.getZr();Dr(n).records||(Dr(n).records={}),WR(n,t);var a=Dr(n).records[e]||(Dr(n).records[e]={});a.handler=r}}function WR(e,t){if(Dr(e).initialized)return;Dr(e).initialized=!0,r("click",Ne(qy,"click")),r("mousemove",Ne(qy,"mousemove")),r("globalout",qR);function r(n,a){e.on(n,function(i){var o=jR(t);UR(Dr(e).records,function(s){s&&a(s,i,o.dispatchAction)}),YR(o.pendings,t)})}}function YR(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 qR(e,t,r){e.handler("leave",null,r)}function qy(e,t,r,n){t.handler(e,r,n)}function jR(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(!ae.node){var r=t.getZr(),n=(Dr(r).records||{})[e];n&&(Dr(r).records[e]=null)}}var XR=function(e){G(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";vS("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}(Xt);const ZR=XR;function pS(e,t){var r=[],n=e.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=Zn(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 jy=ke();function KR(e,t,r){var n=e.currTrigger,a=[e.x,e.y],i=e,o=e.dispatchAction||te(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){qs(a)&&(a=pS({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=qs(a),u=i.axesInfo,c=s.axesInfo,f=n==="leave"||qs(a),d={},h={},p={list:[],map:{}},m={showPointer:Ne(QR,h),showTooltip:Ne(eB,p)};k(s.coordSysMap,function(y,_){var w=l||y.containPoint(a);k(s.coordSysAxesInfo[_],function(S,T){var C=S.axis,N=aB(u,S);if(!f&&w&&(!u||N)){var b=N&&N.value;b==null&&!l&&(b=C.pointToData(a)),b!=null&&Xy(S,b,m,!1,d)}})});var g={};return k(c,function(y,_){var w=y.linkGroup;w&&!h[_]&&k(w.axesInfo,function(S,T){var C=h[T];if(S!==y&&C){var N=C.value;w.mapper&&(N=y.axis.scale.parse(w.mapper(N,Zy(S),Zy(y)))),g[y.key]=N}})}),k(g,function(y,_){Xy(c[_],y,m,!0,d)}),tB(h,c,d),rB(p,a,e,o),nB(c,o,r),d}}function Xy(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=JR(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&z(a,s[0]),!n&&e.snap&&i.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function JR(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 QR(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function eB(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=Mo(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 tB(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 rB(e,t,r,n){if(qs(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 nB(e,t,r){var n=r.getZr(),a="axisPointerLastHighlights",i=jy(n)[a]||{},o=jy(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 aB(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 Zy(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 qs(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function gS(e){Qb.registerAxisPointerClass("CartesianAxisPointer",zR),e.registerComponentModel(HR),e.registerComponentView(ZR),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=mO(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},KR)}function iB(e){pr(EO),pr(gS)}var Ky=["x","y","radius","angle","single"],oB=["cartesian2d","polar","singleAxis"];function sB(e){var t=e.get("coordinateSystem");return de(oB,t)>=0}function nn(e){return process.env.NODE_ENV!=="production"&&ne(e),e+"Axis"}function lB(e,t){var r=oe(),n=[],a=oe();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 mS(e){var t=e.ecModel,r={infoList:[],infoMap:oe()};return e.eachTargetAxis(function(n,a){var i=t.getComponent(nn(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 wf=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}(),Ol=function(e){G(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=Jy(r);this.settledOption=i,this.mergeDefaultAndTheme(r,a),this._doInit(i)},t.prototype.mergeOption=function(r){var n=Jy(r);_e(this.option,r,!0),_e(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=oe(),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(Ky,function(a){var i=this.getReferringComponents(nn(a),UD);if(i.specified){n=!0;var o=new wf;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 wf;if(d.add(f.componentIndex),r.set(c,d),i=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",pt).models[0];h&&k(u,function(p){f.componentIndex!==p.componentIndex&&h===p.getReferringComponents("grid",pt).models[0]&&d.add(p.componentIndex)})}}}i&&k(Ky,function(u){if(i){var c=a.findComponents({mainType:nn(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new wf;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(nn(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"&&ne(r&&n!=null);var a=this._targetAxisInfoMap.get(r);if(a&&a.indexMap[n])return this.ecModel.getComponent(nn(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"&&ne(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}(De);function Jy(e){var t={};return k(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var uB=function(e){G(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}(Xt);const yS=uB;var ka=k,Qy=Yi,cB=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(sB(r)){var n=nn(this._dimName),a=r.getReferringComponents(n,pt).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 he(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(Ye(p,o,r))):(u=!0,m=m==null?r[h]:a.parse(m),p=Ye(m,r,o)),l[h]=m==null||isNaN(m)?r[h]:m,s[h]=p==null||isNaN(p)?o[h]:p}),Qy(l),Qy(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";Iu(0,d,p,"all",c["min"+y],c["max"+y]);for(var _=0;_<2;_++)h[_]=Ye(d[_],p,m,!0),g&&(h[_]=a.parse(h[_]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=fB(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 _=f.get(d[y],h),w=!isNaN(_),S=_<o[0],T=_>o[1];if(w&&!S&&!T)return!0;w&&(g=!0),S&&(p=!0),T&&(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=Ye(n[0]+o,n,[0,100],!0):i!=null&&(o=Ye(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=B_(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 fB(e,t,r){var n=[1/0,-1/0];ka(r,function(o){CI(n,o.getData(),t)});var a=e.getAxisModel(),i=xb(a.axis.scale,a,n).calculate();return[i.min,i.max]}var hB={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=e.getComponent(nn(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 cB(a,i,s,e),r.push(o.__dzAxisProxy))});var n=oe();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 dB=hB;function vB(e){e.registerAction("dataZoom",function(t,r){var n=lB(r,t);k(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var e0=!1;function _S(e){e0||(e0=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,dB),vB(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function pB(e,t){var r=wu(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Ie({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 gB=function(e){G(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}(De);const mB=gB;function wS(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function bS(e){if(ae.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var SS=bS(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),yB=bS(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function CS(e,t){if(!e)return t;t=nw(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function _B(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?t?r[t]:r:null}var wB=CS(yB,"transition"),Nv=CS(SS,"transform"),bB="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ae.transform3dSupported?"will-change:transform;":"");function SB(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function CB(e,t,r){if(!X(r)||r==="inside")return"";var n=e.get("backgroundColor"),a=e.get("borderWidth");t=Qn(t);var i=SB(r),o=Math.max(Math.round(a)*1.5,6),s="",l=Nv+":",u;de(["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 TB(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+=ae.transformSupported?","+Nv+n:",left"+n+",top"+n),wB+":"+a}function t0(e,t,r){var n=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!ae.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var i=ae.transform3dSupported,o="translate"+(i?"3d":"")+"("+n+","+a+(i?",0":"")+")";return r?"top:0;left:0;"+Nv+":"+o+";":[["top",0],["left",0],[SS,o]]}function xB(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 NB(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=Aw(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&a&&n.push(TB(a,r)),i&&n.push("background-color:"+i),k(["width","color","radius"],function(h){var p="border-"+h,m=nw(p),g=e.get(m);g!=null&&n.push(p+":"+g+(h==="color"?"":"px"))}),n.push(xB(c)),f!=null&&n.push("padding:"+wu(f).join("px ")+"px"),n.join(";")+";"}function r0(e,t,r,n,a){var i=t&&t.painter;if(r){var o=i&&i.getViewportRoot();o&&vN(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 DB=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,ae.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&&(X(i)?document.querySelector(i):qa(i)?i:se(i)&&i(t.getDom()));r0(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();kt(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=_B(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=bB+NB(t,!this._firstShow,this._longHide)+t0(i[0],i[1],!0)+("border-color:"+Qn(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(X(i)&&n.get("trigger")==="item"&&!wS(n)&&(s=CB(n,a,i)),X(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(r0(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var a=this.el.style,i=t0(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",ae.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(te(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 AB=DB;var MB=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),a0(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;Q(t)&&st(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 Ue({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:Aw(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=n0(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;a0(a,this._zr,t,r),t=a[0],r=a[1];var i=n.style,o=Zr(i.borderWidth||0),s=n0(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(te(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Zr(e){return Math.max(0,e)}function n0(e){var t=Zr(e.shadowBlur||0),r=Zr(e.shadowOffsetX||0),n=Zr(e.shadowOffsetY||0);return{left:Zr(t-r),right:Zr(t+r),top:Zr(t-n),bottom:Zr(t+n)}}function a0(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var kB=new Ie({shape:{x:-1,y:-1,width:2,height:2}}),EB=function(e){G(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(!(ae.node||!n.getDom())){var a=r.getComponent("tooltip"),i=this._renderMode=YD(a.get("renderMode"));this._tooltipContent=i==="richText"?new MB(n):new AB(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},t.prototype.render=function(r,n,a){if(!(ae.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"):bl(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");vS("itemTooltip",this._api,te(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||ae.node||!a.getDom())){var o=i0(i,a);this._ticket="";var s=i.dataByCoordSys,l=OB(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=kB;c.x=i.x,c.y=i.y,c.update(),ye(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=pS(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(i0(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=Bi([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=ye(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Zi(a,function(c){if(ye(c).dataIndex!=null)return l=c,!0;if(ye(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=te(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=Bi([n.tooltipOption],i),l=this._renderMode,u=[],c=ta("section",{blocks:[],noHeader:!0}),f=[],d=new $c;k(r,function(_){k(_.dataByAxis,function(w){var S=a.getComponent(w.axisDim+"Axis",w.axisIndex),T=w.value;if(!(!S||T==null)){var C=hS(T,S.axis,a,w.seriesDataIndices,w.valueLabelOpt),N=ta("section",{header:C,noHeader:!cr(C),sortBlocks:!0,blocks:[]});c.blocks.push(N),k(w.seriesDataIndices,function(b){var x=a.getSeriesByIndex(b.seriesIndex),A=b.dataIndexInside,D=x.getDataParams(A);if(!(D.dataIndex<0)){D.axisDim=w.axisDim,D.axisIndex=w.axisIndex,D.axisType=w.axisType,D.axisId=w.axisId,D.axisValue=dv(S.axis,{value:T}),D.axisValueLabel=C,D.marker=d.makeTooltipMarker("item",Qn(D.color),l);var M=qg(x.formatTooltip(A,!0,null)),P=M.frag;if(P){var E=Bi([x],i).get("valueFormatter");N.blocks.push(E?z({valueFormatter:E},P):P)}M.text&&f.push(M.text),u.push(D)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,p=s.get("order"),m=Jg(c,d,l,p,a.get("useUTC"),s.get("textStyle"));m&&f.unshift(m);var g=l==="richText"?`
|
|
41
|
+
`];function ra(e,t){return t.type=e,t}function dc(e){return e.type==="section"}function w8(e){return dc(e)?I4:L4}function F8(e){if(dc(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return k(e.blocks,function(a){var o=F8(a);o>=t&&(t=o+ +(n&&(!o||dc(a)&&!a.noHeader)))}),t}return 0}function I4(e,t,r,n){var a=t.noHeader,o=O4(F8(t)),i=[],s=t.blocks||[];oe(!s||Y(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(X(u,l)){var x=new E4(u[l],null);s.sort(function(v,g){return x.evaluate(v.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}k(s,function(v,g){var p=t.valueFormatter,m=w8(v)(p?H(H({},e),{valueFormatter:p}):e,v,g>0?o.html:0,n);m!=null&&i.push(m)});var c=e.renderMode==="richText"?i.join(o.richText):hc(i.join(""),a?r:o.html);if(a)return c;var d=uc(t.header,"ordinal",e.useUTC),f=_8(n,e.renderMode).nameStyle;return e.renderMode==="richText"?b8(e,d,f)+o.richText+c:hc('<div style="'+f+";"+D8+';">'+Ot(d)+"</div>"+c,r)}function L4(e,t,r,n){var a=e.renderMode,o=t.noName,i=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,x=t.valueFormatter||e.valueFormatter||function(B){return B=Y(B)?B:[B],q(B,function(D,A){return uc(D,Y(f)?f[A]:f,u)})};if(!(o&&i)){var c=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),d=o?"":uc(l,"ordinal",u),f=t.valueType,v=i?[]:x(t.value,t.dataIndex),g=!s||!o,p=!s&&o,m=_8(n,a),E=m.nameStyle,y=m.valueStyle;return a==="richText"?(s?"":c)+(o?"":b8(e,d,E))+(i?"":$4(e,v,g,p,y)):hc((s?"":c)+(o?"":R4(d,!s,E))+(i?"":V4(v,g,p,y)),r)}}function Qv(e,t,r,n,a,o){if(e){var i=w8(e),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return i(s,e,0,o)}}function O4(e){return{html:P4[e],richText:M4[e]}}function hc(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+D8+';">'+e+r+"</div>"}function R4(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Ot(e)+"</span>"}function V4(e,t,r,n){var a=r?"10px":"20px",o=t?"float:right;margin-left:"+a:"";return e=Y(e)?e:[e],'<span style="'+o+";"+n+'">'+q(e,function(i){return Ot(i)}).join(" ")+"</span>"}function b8(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function $4(e,t,r,n,a){var o=[a],i=n?10:20;return r&&o.push({padding:[0,0,0,i],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Y(t)?t.join(" "):t,o)}function z4(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return ea(n)}function S8(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var $u=function(){function e(){this.richTextStyles={},this._nextStyleNameId=G9()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var a=n==="richText"?this._generateStyleName():null,o=F_({color:r,type:t,renderMode:n,markerId:a});return K(o)?o:(process.env.NODE_ENV!=="production"&&oe(a),this.richTextStyles[a]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};Y(r)?k(r,function(o){return H(n,o)}):H(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},e}();function G4(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,a=t.getData(),o=a.mapDimensionsAll("defaultedTooltip"),i=o.length,s=t.getRawValue(r),l=Y(s),u=z4(t,r),x,c,d,f;if(i>1||l&&!i){var v=H4(s,t,r,o,u);x=v.inlineValues,c=v.inlineValueTypes,d=v.blocks,f=v.inlineValues[0]}else if(i){var g=a.getDimensionInfo(o[0]);f=x=eo(a,r,o[0]),c=g.type}else f=x=l?s[0]:s;var p=_f(t),m=p&&t.name||"",E=a.getName(r),y=n?m:E;return ra("section",{header:m,noHeader:n||!p,sortParam:f,blocks:[ra("nameValue",{markerType:"item",markerColor:u,name:y,noName:!hr(y),value:x,valueType:c,dataIndex:r})].concat(d||[])})}function H4(e,t,r,n,a){var o=t.getData(),i=Lr(e,function(c,d,f){var v=o.getDimensionInfo(f);return c=c||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?k(n,function(c){x(eo(o,r,c),c)}):k(e,x);function x(c,d){var f=o.getDimensionInfo(d);!f||f.otherDims.tooltip===!1||(i?u.push(ra("nameValue",{markerType:"subItem",markerColor:a,name:f.displayName,value:c,valueType:f.type})):(s.push(c),l.push(f.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Ur=Te();function ds(e,t){return e.getName(t)||e.getId(t)}var U4="__universalTransitionEnabled",Al=function(e){W(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=fi({count:Y4,reset:X4}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var o=Ur(this).sourceManager=new N4(this);o.prepareSource();var i=this.getInitialData(r,a);tp(i,this),this.dataTask.context.data=i,process.env.NODE_ENV!=="production"&&oe(i,"getInitialData returned invalid data."),Ur(this).dataBeforeProcessed=i,ep(this),this._initSelectedMapFromData(i)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=_i(this),o=a?Ri(r):{},i=this.subType;Fe.hasClass(i)&&(i+="Series"),Ee(r,n.getTheme().get(this.subType)),Ee(r,this.getDefaultOption()),l0(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&Qa(r,o,a)},t.prototype.mergeOption=function(r,n){r=Ee(this.option,r,!0),this.fillDataTextStyle(r.data);var a=_i(this);a&&Qa(this.option,r,a);var o=Ur(this).sourceManager;o.dirty(),o.prepareSource();var i=this.getInitialData(r,n);tp(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Ur(this).dataBeforeProcessed=i,ep(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(r){if(r&&!ht(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&l0(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=vc(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=vc(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 ue(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 G4({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(se.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 o=this.ecModel,i=Zf.prototype.getColorFromPalette.call(this,r,n,a);return i||(i=o.getColorFromPalette(r,n,a)),i},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 o=this.option.selectedMode,i=this.getData(n);if(o==="series"||a==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=ds(i,l);a[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var a=[],o=0;o<r.length;o++)a[0]=r[o],this.isSelected(r[o],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=De(r),a=[],o=0;o<n.length;o++){var i=r[n[o]];i>=0&&a.push(i)}return a},t.prototype.isSelected=function(r,n){var a=this.option.selectedMap;if(!a)return!1;var o=this.getData(n);return(a==="all"||a[ds(o,r)])&&!o.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[U4])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var a,o,i=this.option,s=i.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")i.selectedMap="all";else if(s==="multiple"){re(i.selectedMap)||(i.selectedMap={});for(var u=i.selectedMap,x=0;x<l;x++){var c=n[x],d=ds(r,c);u[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(c)}}else if(s==="single"||s===!0){var f=n[l-1],d=ds(r,f);i.selectedMap=(a={},a[d]=!0,a),this._selectedDataIndicesMap=(o={},o[d]=r.getRawIndex(f),o)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(a){var o=r.getRawDataItem(a);o&&o.selected&&n.push(a)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return Fe.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}(Fe);er(Al,y8);er(Al,Zf);j9(Al,Fe);function ep(e){var t=e.name;_f(e)||(e.name=W4(e)||t)}function W4(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return k(r,function(a){var o=t.getDimensionInfo(a);o.displayName&&n.push(o.displayName)}),n.join(" ")}function Y4(e){return e.model.getRawData().count()}function X4(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),j4}function j4(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function tp(e,t){k(iB(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,we(Z4,t))})}function Z4(e,t){var r=vc(e);return r&&r.setOutputEnd((t||this).count()),t}function vc(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=Al;var rd=function(){function e(){this.group=new Oe,this.uid=dl("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}();Ff(rd);al(rd);const Jt=rd;function nd(){var e=Te();return function(t){var r=e(t),n=t.pipelineContext,a=!!r.large,o=!!r.progressiveRender,i=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(a!==i||o!==s)&&"reset"}}var k8=Te(),q4=nd(),ad=function(){function e(){this.group=new Oe,this.uid=dl("viewChart"),this.renderTask=fi({plan:K4,reset:J4}),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 o=t.getData(a&&a.dataType);if(!o){process.env.NODE_ENV!=="production"&&it("Unknown dataType "+a.dataType);return}np(o,a,"emphasis")},e.prototype.downplay=function(t,r,n,a){var o=t.getData(a&&a.dataType);if(!o){process.env.NODE_ENV!=="production"&&it("Unknown dataType "+a.dataType);return}np(o,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){lo(this.group,t)},e.markUpdateMethod=function(t,r){k8(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function rp(e,t,r){e&&Ja(e)&&(t==="emphasis"?yi:Ci)(e,r)}function np(e,t,r){var n=Kn(e,t),a=t&&t.highlightKey!=null?xD(t.highlightKey):null;n!=null?k(je(n),function(o){rp(e.getItemGraphicEl(o),r,a)}):e.eachItemGraphicEl(function(o){rp(o,r,a)})}Ff(ad,["dispose"]);al(ad);function K4(e){return q4(e.model)}function J4(e){var t=e.model,r=e.ecModel,n=e.api,a=e.payload,o=t.pipelineContext.progressiveRender,i=e.view,s=a&&k8(a).updateMethod,l=o?"incrementalPrepareRender":s&&i[s]?s:"render";return l!=="render"&&i[l](t,r,n,a),Q4[l]}var Q4={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 Zt=ad;var y0="\0__throttleOriginMethod",ap="\0__throttleRate",op="\0__throttleType";function od(e,t,r){var n,a=0,o=0,i=null,s,l,u,x;t=t||0;function c(){o=new Date().getTime(),i=null,e.apply(l,u||[])}var d=function(){for(var f=[],v=0;v<arguments.length;v++)f[v]=arguments[v];n=new Date().getTime(),l=this,u=f;var g=x||t,p=x||r;x=null,s=n-(p?a:o)-g,clearTimeout(i),p?i=setTimeout(c,g):s>=0?c():i=setTimeout(c,-s),a=n};return d.clear=function(){i&&(clearTimeout(i),i=null)},d.debounceNextCall=function(f){x=f},d}function Dl(e,t,r,n){var a=e[t];if(a){var o=a[y0]||a,i=a[op],s=a[ap];if(s!==r||i!==n){if(r==null||!n)return e[t]=o;a=e[t]=od(o,r,n==="debounce"),a[y0]=o,a[op]=n,a[ap]=r}return a}}function C0(e,t){var r=e[t];r&&r[y0]&&(r.clear&&r.clear(),e[t]=r[y0])}var ip=Te(),sp={itemStyle:Ei(Y1,!0),lineStyle:Ei(W1,!0)},ew={lineStyle:"stroke",itemStyle:"fill"};function T8(e,t){var r=e.visualStyleMapper||sp[t];return r||(console.warn("Unknown style type '"+t+"'."),sp.itemStyle)}function N8(e,t){var r=e.visualDrawType||ew[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var tw={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=e.getModel(n),o=T8(e,n),i=o(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=N8(e,n),u=i[l],x=xe(u)?u:null,c=i.fill==="auto"||i.stroke==="auto";if(!i[l]||x||c){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());i[l]||(i[l]=d,r.setVisual("colorFromPalette",!0)),i.fill=i.fill==="auto"||xe(i.fill)?d:i.fill,i.stroke=i.stroke==="auto"||xe(i.stroke)?d:i.stroke}if(r.setVisual("style",i),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&x)return r.setVisual("colorFromPalette",!1),{dataEach:function(f,v){var g=e.getDataParams(v),p=H({},i);p[l]=x(g),f.setItemVisual(v,"style",p)}}}},Po=new ot,rw={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=T8(e,n),o=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(i,s){var l=i.getRawDataItem(s);if(l&&l[n]){Po.option=l[n];var u=a(Po),x=i.ensureUniqueItemVisual(s,"style");H(x,u),Po.option.decal&&(i.setItemVisual(s,"decal",Po.option.decal),Po.option.decal.dirty=!0),o in u&&i.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},nw={performRawSeries:!0,overallReset:function(e){var t=ue();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var a=r.type+"-"+n,o=t.get(a);o||(o={},t.set(a,o)),ip(r).scope=o}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),a={},o=r.getData(),i=ip(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=N8(r,s);o.each(function(u){var x=o.getRawIndex(u);a[x]=u}),n.each(function(u){var x=a[u],c=o.getItemVisual(x,"colorFromPalette");if(c){var d=o.ensureUniqueItemVisual(x,"style"),f=n.getName(u)||u+"",v=n.count();d[l]=r.getColorFromPalette(f,i,v)}})}})}},hs=Math.PI;function aw(e,t){t=t||{},ge(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 Oe,n=new Me({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var a=new Ze({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new Me({style:{fill:"none"},textContent:a,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(o);var i;return t.showSpinner&&(i=new Lf({shape:{startAngle:-hs/2,endAngle:-hs/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),i.animateShape(!0).when(1e3,{endAngle:hs*3/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:hs*3/2}).delay(300).start("circularInOut"),r.add(i)),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),x=e.getHeight()/2;t.showSpinner&&i.setShape({cx:u,cy:x}),o.setShape({x:u-l,y:x-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var P8=function(){function e(t,r,n,a){this._stageTaskMap=ue(),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,o=!r&&n.progressiveEnabled&&(!a||a.progressiveRender)&&t.__idxInPipeline>n.blockIndex,i=o?n.step:null,s=a&&a.modDataCount,l=s!=null?Math.ceil(s/i):null;return{step:i,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(),o=a.count(),i=n.progressiveEnabled&&r.incrementalPrepareRender&&o>=n.threshold,s=t.get("large")&&o>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?o:null;t.pipelineContext=n.context={progressiveRender:i,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=ue();t.eachSeries(function(a){var o=a.getProgressive(),i=a.uid;n.set(i,{id:i,head:null,tail:null,threshold:a.getProgressiveThreshold(),progressiveEnabled:o&&!(a.preventIncremental&&a.preventIncremental()),blockIndex:-1,step:Math.round(o||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 o=t.get(a.uid)||t.set(a.uid,{}),i="";process.env.NODE_ENV!=="production"&&(i='"reset" and "overallReset" must not be both specified.'),oe(!(a.reset&&a.overallReset),i),a.reset&&this._createSeriesStageTask(a,o,r,n),a.overallReset&&this._createOverallStageTask(a,o,r,n)},this)},e.prototype.prepareView=function(t,r,n,a){var o=t.renderTask,i=o.context;i.model=r,i.ecModel=n,i.api=a,o.__block=!t.incrementalPrepareRender,this._pipe(r,o)},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 o=!1,i=this;k(t,function(l,u){if(!(a.visualType&&a.visualType!==l.visualType)){var x=i._stageTaskMap.get(l.uid),c=x.seriesTaskMap,d=x.overallTask;if(d){var f,v=d.agentStubMap;v.each(function(p){s(a,p)&&(p.dirty(),f=!0)}),f&&d.dirty(),i.updatePayload(d,n);var g=i.getPerformArgs(d,a.block);v.each(function(p){p.perform(g)}),d.perform(g)&&(o=!0)}else c&&c.each(function(p,m){s(a,p)&&p.dirty();var E=i.getPerformArgs(p,a.block);E.skip=!l.performRawSeries&&r.isSeriesFiltered(p.context.model),i.updatePayload(p,n),p.perform(E)&&(o=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=o||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 o=this,i=r.seriesTaskMap,s=r.seriesTaskMap=ue(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(x):l?n.eachRawSeriesByType(l,x):u&&u(n,a).each(x);function x(c){var d=c.uid,f=s.set(d,i&&i.get(d)||fi({plan:uw,reset:xw,count:fw}));f.context={model:c,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(c,f)}},e.prototype._createOverallStageTask=function(t,r,n,a){var o=this,i=r.overallTask=r.overallTask||fi({reset:ow});i.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:o};var s=i.agentStubMap,l=i.agentStubMap=ue(),u=t.seriesType,x=t.getTargetSeries,c=!0,d=!1,f="";process.env.NODE_ENV!=="production"&&(f='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),oe(!t.createOnAllSeries,f),u?n.eachRawSeriesByType(u,v):x?x(n,a).each(v):(c=!1,k(n.getSeries(),v));function v(g){var p=g.uid,m=l.set(p,s&&s.get(p)||(d=!0,fi({reset:iw,onDirty:lw})));m.context={model:g,overallProgress:c},m.agent=i,m.__block=c,o._pipe(g,m)}d&&i.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 xe(t)&&(t={overallReset:t,seriesType:dw(t)}),t.uid=dl("stageHandler"),r&&(t.visualType=r),t},e}();function ow(e){e.overallReset(e.ecModel,e.api,e.payload)}function iw(e){return e.overallProgress&&sw}function sw(){this.agent.dirty(),this.getDownstream().dirty()}function lw(){this.agent&&this.agent.dirty()}function uw(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function xw(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=je(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?q(t,function(r,n){return M8(n)}):cw}var cw=M8(0);function M8(e){return function(t,r){var n=r.data,a=r.resetDefines[e];if(a&&a.dataEach)for(var o=t.start;o<t.end;o++)a.dataEach(n,o);else a&&a.progress&&a.progress(t,n)}}function fw(e){return e.data.count()}function dw(e){B0=null;try{e(Fi,I8)}catch{}return B0}var Fi={},I8={},B0;L8(Fi,qf);L8(I8,c8);Fi.eachSeriesByType=Fi.eachRawSeriesByType=function(e){B0=e};Fi.eachComponent=function(e){e.mainType==="series"&&e.subType&&(B0=e.subType)};function L8(e,t){for(var r in t.prototype)e[r]=ft}var lp=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const hw={color:lp,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],lp]};var lt="#B9B8CE",up="#100C2A",vs=function(){return{axisLine:{lineStyle:{color:lt}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},xp=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],O8={darkMode:!0,color:xp,backgroundColor:up,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:lt}},textStyle:{color:lt},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:lt}},dataZoom:{borderColor:"#71708A",textStyle:{color:lt},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:lt}},timeline:{lineStyle:{color:lt},label:{color:lt},controlStyle:{color:lt,borderColor:lt}},calendar:{itemStyle:{color:up},dayLabel:{color:lt},monthLabel:{color:lt},yearLabel:{color:lt}},timeAxis:vs(),logAxis:vs(),valueAxis:vs(),categoryAxis:vs(),line:{symbol:"circle"},graph:{color:xp},gauge:{title:{color:lt},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:lt},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};O8.categoryAxis.splitLine.show=!1;const vw=O8;var pw=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},a={};if(K(t)){var o=pr(t);r.mainType=o.main||null,r.subType=o.sub||null}else{var i=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};k(t,function(l,u){for(var x=!1,c=0;c<i.length;c++){var d=i[c],f=u.lastIndexOf(d);if(f>0&&f===u.length-d.length){var v=u.slice(0,f);v!=="data"&&(r.mainType=v,r[d.toLowerCase()]=l,x=!0)}}s.hasOwnProperty(u)&&(n[u]=l,x=!0),x||(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,o=n.packedEvent,i=n.model,s=n.view;if(!i||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return x(l,i,"mainType")&&x(l,i,"subType")&&x(l,i,"index","componentIndex")&&x(l,i,"name")&&x(l,i,"id")&&x(u,o,"name")&&x(u,o,"dataIndex")&&x(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,a,o));function x(c,d,f,v){return c[f]==null||d[v||f]===c[f]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),pc=["symbol","symbolSize","symbolRotate","symbolOffset"],cp=pc.concat(["symbolKeepAspect"]),gw={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={},o=!1,i=0;i<pc.length;i++){var s=pc[i],l=e.get(s);xe(l)?(o=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(H({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=De(a);function x(c,d){for(var f=e.getRawValue(d),v=e.getDataParams(d),g=0;g<u.length;g++){var p=u[g];c.setItemVisual(d,p,a[p](f,v))}}return{dataEach:o?x:null}}},mw={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(a,o){for(var i=a.getItemModel(o),s=0;s<cp.length;s++){var l=cp[s],u=i.getShallow(l,!0);u!=null&&a.setItemVisual(o,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function Ew(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 R8(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 yw(e,t){function r(n,a){var o=[];return n.eachComponent({mainType:"series",subType:e,query:a},function(i){o.push(i.seriesIndex)}),o}k([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(a,o,i){a=H({},a),process.env.NODE_ENV!=="production"&&Ye(a.type,n[1]),i.dispatchAction(H(a,{type:n[1],seriesIndex:r(o,a)}))})})}function Ba(e,t,r,n,a){var o=e+t;r.isSilent(o)||(process.env.NODE_ENV!=="production"&&qt("event "+o+" is deprecated."),n.eachComponent({mainType:"series",subType:"pie"},function(i){for(var s=i.seriesIndex,l=i.option.selectedMap,u=a.selected,x=0;x<u.length;x++)if(u[x].seriesIndex===s){var c=i.getData(),d=Kn(c,a.fromActionPayload);r.trigger(o,{type:o,seriesId:i.id,name:Y(d)?c.getName(d[0]):c.getName(d),selected:K(l)?l:H({},l)})}}))}function Cw(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 Jo(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var Bw=Math.round(Math.random()*9),Aw=typeof Object.defineProperty=="function",Dw=function(){function e(){this._id="__ec_inner_"+Bw++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return Aw?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}(),_w=ye.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,o=t.height/2;e.moveTo(r,n-o),e.lineTo(r+a,n+o),e.lineTo(r-a,n+o),e.closePath()}}),ww=ye.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,o=t.height/2;e.moveTo(r,n-o),e.lineTo(r+a,n),e.lineTo(r,n+o),e.lineTo(r-a,n),e.closePath()}}),Fw=ye.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,o=Math.max(a,t.height),i=a/2,s=i*i/(o-i),l=n-o+i+s,u=Math.asin(s/i),x=Math.cos(u)*i,c=Math.sin(u),d=Math.cos(u),f=i*.6,v=i*.7;e.moveTo(r-x,l+s),e.arc(r,l,i,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+x-c*f,l+s+d*f,r,n-v,r,n),e.bezierCurveTo(r,n-v,r-x+c*f,l+s+d*f,r-x,l+s),e.closePath()}}),bw=ye.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,o=t.y,i=n/3*2;e.moveTo(a,o),e.lineTo(a+i,o+r),e.lineTo(a,o+r/4*3),e.lineTo(a-i,o+r),e.lineTo(a,o),e.closePath()}}),Sw={line:dn,rect:Me,roundRect:Me,square:Me,circle:Pf,diamond:ww,pin:Fw,arrow:bw,triangle:_w},kw={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 o=Math.min(r,n);a.x=e,a.y=t,a.width=o,a.height=o},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}},A0={};k(Sw,function(e,t){A0[t]=new e});var Tw=ye.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=a0(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=A0[n];a||(n="rect",a=A0[n]),kw[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,r)}}});function Nw(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 Vr(e,t,r,n,a,o,i){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=O1(e.slice(8),new Ae(t,r,n,a),i?"center":"cover"):e.indexOf("path://")===0?l=xl(e.slice(7),{},new Ae(t,r,n,a),i?"center":"cover"):l=new Tw({shape:{symbolType:e,x:t,y:r,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=Nw,o&&l.setColor(o),l}function id(e){return Y(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function _l(e,t){if(e!=null)return Y(e)||(e=[e,e]),[be(e[0],t[0])||0,be(le(e[1],e[0]),t[1])||0]}function Hn(e){return isFinite(e)}function Pw(e,t,r){var n=t.x==null?0:t.x,a=t.x2==null?1:t.x2,o=t.y==null?0:t.y,i=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,a=a*r.width+r.x,o=o*r.height+r.y,i=i*r.height+r.y),n=Hn(n)?n:0,a=Hn(a)?a:1,o=Hn(o)?o:0,i=Hn(i)?i:0;var s=e.createLinearGradient(n,o,a,i);return s}function Mw(e,t,r){var n=r.width,a=r.height,o=Math.min(n,a),i=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(i=i*n+r.x,s=s*a+r.y,l=l*o),i=Hn(i)?i:.5,s=Hn(s)?s:.5,l=l>=0&&Hn(l)?l:.5;var u=e.createRadialGradient(i,s,0,i,s,l);return u}function gc(e,t,r){for(var n=t.type==="radial"?Mw(e,t,r):Pw(e,t,r),a=t.colorStops,o=0;o<a.length;o++)n.addColorStop(a[o].offset,a[o].color);return n}function Iw(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 ps(e){return parseInt(e,10)}function gs(e,t,r){var n=["width","height"][t],a=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],i=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[a]||ps(s[n])||ps(e.style[n]))-(ps(s[o])||0)-(ps(s[i])||0)|0}function Lw(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Se(e)?[e]:Y(e)?e:null}function V8(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&Lw(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(o){return o/a}),n/=a)}return[r,n]}var Ow=new Jn(!0);function D0(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function fp(e){return typeof e=="string"&&e!=="none"}function _0(e){var t=e.fill;return t!=null&&t!=="none"}function dp(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 hp(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 mc(e,t,r){var n=Z9(t.image,t.__image,r);if(ol(n)){var a=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&a&&a.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*sB),o.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(o)}return a}}function Rw(e,t,r,n){var a,o=D0(r),i=_0(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var x=t.path||Ow,c=t.__dirty;if(!n){var d=r.fill,f=r.stroke,v=i&&!!d.colorStops,g=o&&!!f.colorStops,p=i&&!!d.image,m=o&&!!f.image,E=void 0,y=void 0,B=void 0,D=void 0,A=void 0;(v||g)&&(A=t.getBoundingRect()),v&&(E=c?gc(e,d,A):t.__canvasFillGradient,t.__canvasFillGradient=E),g&&(y=c?gc(e,f,A):t.__canvasStrokeGradient,t.__canvasStrokeGradient=y),p&&(B=c||!t.__canvasFillPattern?mc(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=B),m&&(D=c||!t.__canvasStrokePattern?mc(e,f,t):t.__canvasStrokePattern,t.__canvasStrokePattern=B),v?e.fillStyle=E:p&&(B?e.fillStyle=B:i=!1),g?e.strokeStyle=y:m&&(D?e.strokeStyle=D:o=!1)}var _=t.getGlobalScale();x.setScale(_[0],_[1],t.segmentIgnoreThreshold);var C,w;e.setLineDash&&r.lineDash&&(a=V8(t),C=a[0],w=a[1]);var b=!0;(u||c&Sa)&&(x.setDPR(e.dpr),l?x.setContext(null):(x.setContext(e),b=!1),x.reset(),t.buildPath(x,t.shape,n),x.toStatic(),t.pathUpdated()),b&&x.rebuildPath(e,l?s:1),C&&(e.setLineDash(C),e.lineDashOffset=w),n||(r.strokeFirst?(o&&hp(e,r),i&&dp(e,r)):(i&&dp(e,r),o&&hp(e,r))),C&&e.setLineDash([])}function Vw(e,t,r){var n=t.__image=Z9(r.image,t.__image,t,t.onload);if(!(!n||!ol(n))){var a=r.x||0,o=r.y||0,i=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(i==null&&s!=null?i=s*l:s==null&&i!=null?s=i/l:i==null&&s==null&&(i=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,x=r.sy||0;e.drawImage(n,u,x,r.sWidth,r.sHeight,a,o,i,s)}else if(r.sx&&r.sy){var u=r.sx,x=r.sy,c=i-u,d=s-x;e.drawImage(n,u,x,c,d,a,o,i,s)}else e.drawImage(n,a,o,i,s)}}function $w(e,t,r){var n,a=r.text;if(a!=null&&(a+=""),a){e.font=r.font||qn,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var o=void 0,i=void 0;e.setLineDash&&r.lineDash&&(n=V8(t),o=n[0],i=n[1]),o&&(e.setLineDash(o),e.lineDashOffset=i),r.strokeFirst?(D0(r)&&e.strokeText(a,r.x,r.y),_0(r)&&e.fillText(a,r.x,r.y)):(_0(r)&&e.fillText(a,r.x,r.y),D0(r)&&e.strokeText(a,r.x,r.y)),o&&e.setLineDash([])}}var vp=["shadowBlur","shadowOffsetX","shadowOffsetY"],pp=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function $8(e,t,r,n,a){var o=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){mt(e,a),o=!0;var i=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(i)?Wn.opacity:i}(n||t.blend!==r.blend)&&(o||(mt(e,a),o=!0),e.globalCompositeOperation=t.blend||Wn.blend);for(var s=0;s<vp.length;s++){var l=vp[s];(n||t[l]!==r[l])&&(o||(mt(e,a),o=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(o||(mt(e,a),o=!0),e.shadowColor=t.shadowColor||Wn.shadowColor),o}function gp(e,t,r,n,a){var o=bi(t,a.inHover),i=n?null:r&&bi(r,a.inHover)||{};if(o===i)return!1;var s=$8(e,o,i,n,a);if((n||o.fill!==i.fill)&&(s||(mt(e,a),s=!0),fp(o.fill)&&(e.fillStyle=o.fill)),(n||o.stroke!==i.stroke)&&(s||(mt(e,a),s=!0),fp(o.stroke)&&(e.strokeStyle=o.stroke)),(n||o.opacity!==i.opacity)&&(s||(mt(e,a),s=!0),e.globalAlpha=o.opacity==null?1:o.opacity),t.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(mt(e,a),s=!0),e.lineWidth=u)}for(var x=0;x<pp.length;x++){var c=pp[x],d=c[0];(n||o[d]!==i[d])&&(s||(mt(e,a),s=!0),e[d]=o[d]||c[1])}return s}function zw(e,t,r,n,a){return $8(e,bi(t,a.inHover),r&&bi(r,a.inHover),n,a)}function z8(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 Gw(e,t,r){for(var n=!1,a=0;a<e.length;a++){var o=e[a];n=n||o.isZeroArea(),z8(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}r.allClipped=n}function Hw(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 mp=1,Ep=2,yp=3,Cp=4;function Uw(e){var t=_0(e),r=D0(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 mt(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function bi(e,t){return t&&e.__hoverStyle||e.style}function G8(e,t){Un(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Un(e,t,r,n){var a=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~wt,t.__isRendered=!1;return}var o=t.__clipPaths,i=r.prevElClipPaths,s=!1,l=!1;if((!i||Iw(o,i))&&(i&&i.length&&(mt(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),o&&o.length&&(mt(e,r),e.save(),Gw(o,e,r),s=!0),r.prevElClipPaths=o),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var x=t instanceof ye&&t.autoBatch&&Uw(t.style);s||Hw(a,u.transform)?(mt(e,r),z8(e,t)):x||mt(e,r);var c=bi(t,r.inHover);t instanceof ye?(r.lastDrawType!==mp&&(l=!0,r.lastDrawType=mp),gp(e,t,u,l,r),(!x||!r.batchFill&&!r.batchStroke)&&e.beginPath(),Rw(e,t,c,x),x&&(r.batchFill=c.fill||"",r.batchStroke=c.stroke||"")):t instanceof nc?(r.lastDrawType!==yp&&(l=!0,r.lastDrawType=yp),gp(e,t,u,l,r),$w(e,t,c)):t instanceof pn?(r.lastDrawType!==Ep&&(l=!0,r.lastDrawType=Ep),zw(e,t,u,l,r),Vw(e,t,c)):t.getTemporalDisplayables&&(r.lastDrawType!==Cp&&(l=!0,r.lastDrawType=Cp),Ww(e,t,r)),x&&n&&mt(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Ww(e,t,r){var n=t.getDisplayables(),a=t.getTemporalDisplayables();e.save();var o={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},i,s;for(i=t.getCursor(),s=n.length;i<s;i++){var l=n[i];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Un(e,l,o,i===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}for(var u=0,x=a.length;u<x;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Un(e,l,o,u===x-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var zu=new Dw,Bp=new Ii(100),Ap=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function w0(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";e.dirty&&zu.delete(e);var o=zu.get(e);if(o)return o;var i=ge(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});i.backgroundColor==="none"&&(i.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=i.rotation,s.scaleX=s.scaleY=a?1:1/r,zu.set(e,s),e.dirty=!1,s;function l(u){for(var x=[r],c=!0,d=0;d<Ap.length;++d){var f=i[Ap[d]];if(f!=null&&!Y(f)&&!K(f)&&!Se(f)&&typeof f!="boolean"){c=!1;break}x.push(f)}var v;if(c){v=x.join(",")+(a?"-svg":"");var g=Bp.get(v);g&&(a?u.svgElement=g:u.image=g)}var p=U8(i.dashArrayX),m=Yw(i.dashArrayY),E=H8(i.symbol),y=Xw(p),B=W8(m),D=!a&&ao.createCanvas(),A=a&&{tag:"g",attrs:{},key:"dcl",children:[]},_=w(),C;D&&(D.width=_.width*r,D.height=_.height*r,C=D.getContext("2d")),b(),c&&Bp.put(v,D||A),u.image=D,u.svgElement=A,u.svgWidth=_.width,u.svgHeight=_.height;function w(){for(var F=1,S=0,P=y.length;S<P;++S)F=Ih(F,y[S]);for(var T=1,S=0,P=E.length;S<P;++S)T=Ih(T,E[S].length);F*=T;var N=B*y.length*E.length;if(process.env.NODE_ENV!=="production"){var M=function(L){console.warn("Calculated decal size is greater than "+L+" due to decal option settings so "+L+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+L+" to be larger to avoid incontinuity.")};F>i.maxTileWidth&&M("maxTileWidth"),N>i.maxTileHeight&&M("maxTileHeight")}return{width:Math.max(1,Math.min(F,i.maxTileWidth)),height:Math.max(1,Math.min(N,i.maxTileHeight))}}function b(){C&&(C.clearRect(0,0,D.width,D.height),i.backgroundColor&&(C.fillStyle=i.backgroundColor,C.fillRect(0,0,D.width,D.height)));for(var F=0,S=0;S<m.length;++S)F+=m[S];if(F<=0)return;for(var P=-B,T=0,N=0,M=0;P<_.height;){if(T%2===0){for(var L=N/2%E.length,O=0,V=0,$=0;O<_.width*2;){for(var I=0,S=0;S<p[M].length;++S)I+=p[M][S];if(I<=0)break;if(V%2===0){var U=(1-i.symbolSize)*.5,j=O+p[M][V]*U,G=P+m[T]*U,he=p[M][V]*i.symbolSize,ee=m[T]*i.symbolSize,te=$/2%E[L].length;ie(j,G,he,ee,E[L][te])}O+=p[M][V],++$,++V,V===p[M].length&&(V=0)}++M,M===p.length&&(M=0)}P+=m[T],++N,++T,T===m.length&&(T=0)}function ie(ce,de,Z,Q,$e){var ke=a?1:r,Ge=Vr($e,ce*ke,de*ke,Z*ke,Q*ke,i.color,i.symbolKeepAspect);if(a){var Xe=n.painter.renderOneToVNode(Ge);Xe&&A.children.push(Xe)}else G8(C,Ge)}}}}function H8(e){if(!e||e.length===0)return[["rect"]];if(K(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!K(e[r])){t=!1;break}if(t)return H8([e]);for(var n=[],r=0;r<e.length;++r)K(e[r])?n.push([e[r]]):n.push(e[r]);return n}function U8(e){if(!e||e.length===0)return[[0,0]];if(Se(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!Se(e[n])){r=!1;break}if(r)return U8([e]);for(var a=[],n=0;n<e.length;++n)if(Se(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 Yw(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(Se(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 Xw(e){return q(e,function(t){return W8(t)})}function W8(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function jw(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(i){var s=n.getItemVisual(i,"decal");if(s){var l=n.ensureUniqueItemVisual(i,"style");l.decal=w0(s,t)}});var a=n.getVisual("decal");if(a){var o=n.getVisual("style");o.decal=w0(a,t)}}})}var jt=new tr,F0={};function Zw(e,t){process.env.NODE_ENV!=="production"&&F0[e]&&it("Already has an implementation of "+e+"."),F0[e]=t}function qw(e){return process.env.NODE_ENV!=="production"&&(F0[e]||it("Implementation of "+e+" doesn't exists.")),F0[e]}var Kw=1,Jw=800,Qw=900,e3=1e3,t3=2e3,r3=5e3,Y8=1e3,n3=1100,sd=2e3,X8=3e3,a3=4e3,wl=4500,o3=4600,i3=5e3,s3=6e3,j8=7e3,l3={PROCESSOR:{FILTER:e3,SERIES_FILTER:Jw,STATISTIC:r3},VISUAL:{LAYOUT:Y8,PROGRESSIVE_LAYOUT:n3,GLOBAL:sd,CHART:X8,POST_CHART_LAYOUT:o3,COMPONENT:a3,BRUSH:i3,CHART_ITEM:wl,ARIA:s3,DECAL:j8}},tt="__flagInMainProcess",pt="__pendingUpdate",Gu="__needsUpdateStatus",Dp=/^[a-zA-Z0-9_]+$/,Hu="__connectUpdateStatus",_p=0,u3=1,x3=2;function Z8(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){Dt(this.id);return}return K8(this,e,t)}}function q8(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return K8(this,e,t)}}function K8(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),tr.prototype[t].apply(e,r)}var J8=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(tr),Q8=J8.prototype;Q8.on=q8("on");Q8.off=q8("off");var Aa,Uu,ms,Wr,Wu,Yu,Xu,Mo,Io,wp,Fp,ju,bp,Es,Sp,eE,kt,kp,tE=function(e){W(t,e);function t(r,n,a){var o=e.call(this,new pw)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],a=a||{},K(n)&&(n=rE[n]),o._dom=r;var i="canvas",s="auto",l=!1;if(process.env.NODE_ENV!=="production"){var u=se.hasGlobalWindow?window:global;u&&(i=le(u.__ECHARTS__DEFAULT__RENDERER__,i),s=le(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=le(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l))}a.ssr;var x=o._zr=Ph(r,{renderer:a.renderer||i,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:le(a.useDirtyRect,l),useCoarsePointer:le(a.useCoarsePointer,s),pointerSize:a.pointerSize});o._ssr=a.ssr,o._throttledZrFlush=od(ne(x.flush,x),17),n=ve(n),n&&d8(n,!0),o._theme=n,o._locale=y_(a.locale||X1),o._coordSysMgr=new Kf;var c=o._api=Sp(o);function d(f,v){return f.__prio-v.__prio}return Os(S0,d),Os(Ec,d),o._scheduler=new P8(o,c,Ec,S0),o._messageCenter=new J8,o._initEvents(),o.resize=ne(o.resize,o),x.animation.on("frame",o._onframe,o),wp(x,o),Fp(x,o),Ix(o),o}return t.prototype._onframe=function(){if(!this._disposed){kp(this);var r=this._scheduler;if(this[pt]){var n=this[pt].silent;this[tt]=!0;try{Aa(this),Wr.update.call(this,null,this[pt].updateParams)}catch(l){throw this[tt]=!1,this[pt]=null,l}this._zr.flush(),this[tt]=!1,this[pt]=null,Mo.call(this,n),Io.call(this,n)}else if(r.unfinished){var a=Kw,o=this._model,i=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(o),r.performDataProcessorTasks(o),Yu(this,o),r.performVisualTasks(o),Es(this,this._model,i,"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[tt]){process.env.NODE_ENV!=="production"&&it("`setOption` should not be called during main process.");return}if(this._disposed){Dt(this.id);return}var o,i,s;if(re(n)&&(a=n.lazyUpdate,o=n.silent,i=n.replaceMerge,s=n.transition,n=n.notMerge),this[tt]=!0,!this._model||n){var l=new t4(this._api),u=this._theme,x=this._model=new qf;x.scheduler=this._scheduler,x.ssr=this._ssr,x.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:i},yc);var c={seriesTransition:s,optionChanged:!0};if(a)this[pt]={silent:o,updateParams:c},this[tt]=!1,this.getZr().wakeUp();else{try{Aa(this),Wr.update.call(this,null,c)}catch(d){throw this[pt]=null,this[tt]=!1,d}this._ssr||this._zr.flush(),this[pt]=null,this[tt]=!1,Mo.call(this,o),Io.call(this,o)}},t.prototype.setTheme=function(){qt("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||se.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return process.env.NODE_ENV!=="production"&&Ye("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(se.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){Dt(this.id);return}r=r||{};var n=r.excludeComponents,a=this._model,o=[],i=this;k(n,function(l){a.eachComponent({mainType:l},function(u){var x=i._componentsMap[u.__viewId];x.group.ignore||(o.push(x),x.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return k(o,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){Dt(this.id);return}var n=r.type==="svg",a=this.group,o=Math.min,i=Math.max,s=1/0;if(Tp[a]){var l=s,u=s,x=-s,c=-s,d=[],f=r&&r.pixelRatio||this.getDevicePixelRatio();k(hi,function(y,B){if(y.group===a){var D=n?y.getZr().painter.getSvgDom().innerHTML:y.renderToCanvas(ve(r)),A=y.getDom().getBoundingClientRect();l=o(A.left,l),u=o(A.top,u),x=i(A.right,x),c=i(A.bottom,c),d.push({dom:D,left:A.left,top:A.top})}}),l*=f,u*=f,x*=f,c*=f;var v=x-l,g=c-u,p=ao.createCanvas(),m=Ph(p,{renderer:n?"svg":"canvas"});if(m.resize({width:v,height:g}),n){var E="";return k(d,function(y){var B=y.left-l,D=y.top-u;E+='<g transform="translate('+B+","+D+')">'+y.dom+"</g>"}),m.painter.getSvgRoot().innerHTML=E,r.connectedBackgroundColor&&m.painter.setBackgroundColor(r.connectedBackgroundColor),m.refreshImmediately(),m.painter.toDataURL()}else return r.connectedBackgroundColor&&m.add(new Me({shape:{x:0,y:0,width:v,height:g},style:{fill:r.connectedBackgroundColor}})),k(d,function(y){var B=new pn({style:{x:y.left*f-l,y:y.top*f-u,image:y.dom}});m.add(B)}),m.refreshImmediately(),p.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return Wu(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Wu(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){Dt(this.id);return}var a=this._model,o,i=du(a,r);return k(i,function(s,l){l.indexOf("Models")>=0&&k(s,function(u){var x=u.coordinateSystem;if(x&&x.containPoint)o=o||!!x.containPoint(n);else if(l==="seriesModels"){var c=this._chartsMap[u.__viewId];c&&c.containPoint?o=o||c.containPoint(n,u):process.env.NODE_ENV!=="production"&&We(l+": "+(c?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&We(l+": containPoint is not supported")},this)},this),!!o},t.prototype.getVisual=function(r,n){var a=this._model,o=du(a,r,{defaultMainType:"series"}),i=o.seriesModel;process.env.NODE_ENV!=="production"&&(i||We("There is no specified series model"));var s=i.getData(),l=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?s.indexOfRawIndex(o.dataIndex):null;return l!=null?Ew(s,l,n):R8(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(c3,function(n){var a=function(o){var i=r.getModel(),s=o.target,l,u=n==="globalout";if(u?l={}:s&&Jo(s,function(v){var g=me(v);if(g&&g.dataIndex!=null){var p=g.dataModel||i.getSeriesByIndex(g.seriesIndex);return l=p&&p.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=H({},g.eventData),!0},!0),l){var x=l.componentType,c=l.componentIndex;(x==="markLine"||x==="markPoint"||x==="markArea")&&(x="series",c=l.seriesIndex);var d=x&&c!=null&&i.getComponent(x,c),f=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];process.env.NODE_ENV!=="production"&&!u&&!(d&&f)&&We("model or view can not be found by params"),l.event=o,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:f},r.trigger(n,l)}};a.zrEventfulCallAtLast=!0,r._zr.on(n,a,r)}),k(di,function(n,a){r._messageCenter.on(a,function(o){this.trigger(a,o)},r)}),k(["selectchanged"],function(n){r._messageCenter.on(n,function(a){this.trigger(n,a)},r)}),Cw(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){Dt(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){Dt(this.id);return}this._disposed=!0;var r=this.getDom();r&&Y9(this.getDom(),ud,"");var n=this,a=n._api,o=n._model;k(n._componentsViews,function(i){i.dispose(o,a)}),k(n._chartsViews,function(i){i.dispose(o,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 hi[n.id]},t.prototype.resize=function(r){if(this[tt]){process.env.NODE_ENV!=="production"&&it("`resize` should not be called during main process.");return}if(this._disposed){Dt(this.id);return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var a=n.resetOption("media"),o=r&&r.silent;this[pt]&&(o==null&&(o=this[pt].silent),a=!0,this[pt]=null),this[tt]=!0;try{a&&Aa(this),Wr.update.call(this,{type:"resize",animation:H({duration:0},r&&r.animation)})}catch(i){throw this[tt]=!1,i}this[tt]=!1,Mo.call(this,o),Io.call(this,o)}},t.prototype.showLoading=function(r,n){if(this._disposed){Dt(this.id);return}if(re(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!Cc[r]){process.env.NODE_ENV!=="production"&&We("Loading effects "+r+" not exists.");return}var a=Cc[r](this._api,n),o=this._zr;this._loadingFX=a,o.add(a)},t.prototype.hideLoading=function(){if(this._disposed){Dt(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=H({},r);return n.type=di[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){Dt(this.id);return}if(re(n)||(n={silent:!!n}),!!b0[r.type]&&this._model){if(this[tt]){this._pendingActions.push(r);return}var a=n.silent;Xu.call(this,r,a);var o=n.flush;o?this._zr.flush():o!==!1&&se.browser.weChat&&this._throttledZrFlush(),Mo.call(this,a),Io.call(this,a)}},t.prototype.updateLabelLayout=function(){jt.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){Dt(this.id);return}var n=r.seriesIndex,a=this.getModel(),o=a.getSeriesByIndex(n);process.env.NODE_ENV!=="production"&&oe(r.data&&o),o.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Aa=function(c){var d=c._scheduler;d.restorePipelines(c._model),d.prepareStageTasks(),Uu(c,!0),Uu(c,!1),d.plan()},Uu=function(c,d){for(var f=c._model,v=c._scheduler,g=d?c._componentsViews:c._chartsViews,p=d?c._componentsMap:c._chartsMap,m=c._zr,E=c._api,y=0;y<g.length;y++)g[y].__alive=!1;d?f.eachComponent(function(A,_){A!=="series"&&B(_)}):f.eachSeries(B);function B(A){var _=A.__requireNewView;A.__requireNewView=!1;var C="_ec_"+A.id+"_"+A.type,w=!_&&p[C];if(!w){var b=pr(A.type),F=d?Jt.getClass(b.main,b.sub):Zt.getClass(b.sub);process.env.NODE_ENV!=="production"&&oe(F,b.sub+" does not exist."),w=new F,w.init(f,E),p[C]=w,g.push(w),m.add(w.group)}A.__viewId=w.__id=C,w.__alive=!0,w.__model=A,w.group.__ecComponentInfo={mainType:A.mainType,index:A.componentIndex},!d&&v.prepareView(w,A,f,E)}for(var y=0;y<g.length;){var D=g[y];D.__alive?y++:(!d&&D.renderTask.dispose(),m.remove(D.group),D.dispose(f,E),g.splice(y,1),p[D.__id]===D&&delete p[D.__id],D.__id=D.group.__ecComponentInfo=null)}},ms=function(c,d,f,v,g){var p=c._model;if(p.setUpdatePayload(f),!v){k([].concat(c._componentsViews).concat(c._chartsViews),D);return}var m={};m[v+"Id"]=f[v+"Id"],m[v+"Index"]=f[v+"Index"],m[v+"Name"]=f[v+"Name"];var E={mainType:v,query:m};g&&(E.subType=g);var y=f.excludeSeriesId,B;y!=null&&(B=ue(),k(je(y),function(A){var _=gr(A,null);_!=null&&B.set(_,!0)})),p&&p.eachComponent(E,function(A){var _=B&&B.get(A.id)!=null;if(!_)if(cv(f))if(A instanceof Rr)f.type===Yn&&!f.notBlur&&!A.get(["emphasis","disabled"])&&rD(A,f,c._api);else{var C=Nf(A.mainType,A.componentIndex,f.name,c._api),w=C.focusSelf,b=C.dispatchers;f.type===Yn&&w&&!f.notBlur&&oc(A.mainType,A.componentIndex,c._api),b&&k(b,function(F){f.type===Yn?yi(F):Ci(F)})}else ic(f)&&A instanceof Rr&&(oD(A,f,c._api),uv(A),kt(c))},c),p&&p.eachComponent(E,function(A){var _=B&&B.get(A.id)!=null;_||D(c[v==="series"?"_chartsMap":"_componentsMap"][A.__viewId])},c);function D(A){A&&A.__alive&&A[d]&&A[d](A.__model,p,c._api,f)}},Wr={prepareAndUpdate:function(c){Aa(this),Wr.update.call(this,c,{optionChanged:c.newOption!=null})},update:function(c,d){var f=this._model,v=this._api,g=this._zr,p=this._coordSysMgr,m=this._scheduler;if(f){f.setUpdatePayload(c),m.restoreData(f,c),m.performSeriesTasks(f),p.create(f,v),m.performDataProcessorTasks(f,c),Yu(this,f),p.update(f,v),r(f),m.performVisualTasks(f,c),ju(this,f,v,c,d);var E=f.get("backgroundColor")||"transparent",y=f.get("darkMode");g.setBackgroundColor(E),y!=null&&y!=="auto"&&g.setDarkMode(y),jt.trigger("afterupdate",f,v)}},updateTransform:function(c){var d=this,f=this._model,v=this._api;if(f){f.setUpdatePayload(c);var g=[];f.eachComponent(function(m,E){if(m!=="series"){var y=d.getViewOfComponentModel(E);if(y&&y.__alive)if(y.updateTransform){var B=y.updateTransform(E,f,v,c);B&&B.update&&g.push(y)}else g.push(y)}});var p=ue();f.eachSeries(function(m){var E=d._chartsMap[m.__viewId];if(E.updateTransform){var y=E.updateTransform(m,f,v,c);y&&y.update&&p.set(m.uid,1)}else p.set(m.uid,1)}),r(f),this._scheduler.performVisualTasks(f,c,{setDirty:!0,dirtyMap:p}),Es(this,f,v,c,{},p),jt.trigger("afterupdate",f,v)}},updateView:function(c){var d=this._model;d&&(d.setUpdatePayload(c),Zt.markUpdateMethod(c,"updateView"),r(d),this._scheduler.performVisualTasks(d,c,{setDirty:!0}),ju(this,d,this._api,c,{}),jt.trigger("afterupdate",d,this._api))},updateVisual:function(c){var d=this,f=this._model;f&&(f.setUpdatePayload(c),f.eachSeries(function(v){v.getData().clearAllVisual()}),Zt.markUpdateMethod(c,"updateVisual"),r(f),this._scheduler.performVisualTasks(f,c,{visualType:"visual",setDirty:!0}),f.eachComponent(function(v,g){if(v!=="series"){var p=d.getViewOfComponentModel(g);p&&p.__alive&&p.updateVisual(g,f,d._api,c)}}),f.eachSeries(function(v){var g=d._chartsMap[v.__viewId];g.updateVisual(v,f,d._api,c)}),jt.trigger("afterupdate",f,this._api))},updateLayout:function(c){Wr.update.call(this,c)}},Wu=function(c,d,f,v){if(c._disposed){Dt(c.id);return}for(var g=c._model,p=c._coordSysMgr.getCoordinateSystems(),m,E=du(g,f),y=0;y<p.length;y++){var B=p[y];if(B[d]&&(m=B[d](g,E,v))!=null)return m}process.env.NODE_ENV!=="production"&&We("No coordinate system that supports "+d+" found by the given finder.")},Yu=function(c,d){var f=c._chartsMap,v=c._scheduler;d.eachSeries(function(g){v.updateStreamModes(g,f[g.__viewId])})},Xu=function(c,d){var f=this,v=this.getModel(),g=c.type,p=c.escapeConnect,m=b0[g],E=m.actionInfo,y=(E.update||"update").split(":"),B=y.pop(),D=y[0]!=null&&pr(y[0]);this[tt]=!0;var A=[c],_=!1;c.batch&&(_=!0,A=q(c.batch,function(T){return T=ge(H({},T),c),T.batch=null,T}));var C=[],w,b=ic(c),F=cv(c);if(F&&g1(this._api),k(A,function(T){if(w=m.action(T,f._model,f._api),w=w||H({},T),w.type=E.event||w.type,C.push(w),F){var N=wf(c),M=N.queryOptionMap,L=N.mainTypeSpecified,O=L?M.keys()[0]:"series";ms(f,B,T,O),kt(f)}else b?(ms(f,B,T,"series"),kt(f)):D&&ms(f,B,T,D.main,D.sub)}),B!=="none"&&!F&&!b&&!D)try{this[pt]?(Aa(this),Wr.update.call(this,c),this[pt]=null):Wr[B].call(this,c)}catch(T){throw this[tt]=!1,T}if(_?w={type:E.event||g,escapeConnect:p,batch:C}:w=C[0],this[tt]=!1,!d){var S=this._messageCenter;if(S.trigger(w.type,w),b){var P={type:"selectchanged",escapeConnect:p,selected:iD(v),isFromClick:c.isFromClick||!1,fromAction:c.type,fromActionPayload:c};S.trigger(P.type,P)}}},Mo=function(c){for(var d=this._pendingActions;d.length;){var f=d.shift();Xu.call(this,f,c)}},Io=function(c){!c&&this.trigger("updated")},wp=function(c,d){c.on("rendered",function(f){d.trigger("rendered",f),c.animation.isFinished()&&!d[pt]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},Fp=function(c,d){c.on("mouseover",function(f){var v=f.target,g=Jo(v,Ja);g&&(nD(g,f,d._api),kt(d))}).on("mouseout",function(f){var v=f.target,g=Jo(v,Ja);g&&(aD(g,f,d._api),kt(d))}).on("click",function(f){var v=f.target,g=Jo(v,function(E){return me(E).dataIndex!=null},!0);if(g){var p=g.selected?"unselect":"select",m=me(g);d._api.dispatchAction({type:p,dataType:m.dataType,dataIndexInside:m.dataIndex,seriesIndex:m.seriesIndex,isFromClick:!0})}})};function r(c){c.clearColorPalette(),c.eachSeries(function(d){d.clearColorPalette()})}function n(c){var d=[],f=[],v=!1;if(c.eachComponent(function(E,y){var B=y.get("zlevel")||0,D=y.get("z")||0,A=y.getZLevelKey();v=v||!!A,(E==="series"?f:d).push({zlevel:B,z:D,idx:y.componentIndex,type:E,key:A})}),v){var g=d.concat(f),p,m;Os(g,function(E,y){return E.zlevel===y.zlevel?E.z-y.z:E.zlevel-y.zlevel}),k(g,function(E){var y=c.getComponent(E.type,E.idx),B=E.zlevel,D=E.key;p!=null&&(B=Math.max(p,B)),D?(B===p&&D!==m&&B++,m=D):m&&(B===p&&B++,m=""),p=B,y.setZLevel(B)})}}ju=function(c,d,f,v,g){n(d),bp(c,d,f,v,g),k(c._chartsViews,function(p){p.__alive=!1}),Es(c,d,f,v,g),k(c._chartsViews,function(p){p.__alive||p.remove(d,f)})},bp=function(c,d,f,v,g,p){k(p||c._componentsViews,function(m){var E=m.__model;u(E,m),m.render(E,d,f,v),s(E,m),x(E,m)})},Es=function(c,d,f,v,g,p){var m=c._scheduler;g=H(g||{},{updatedSeries:d.getSeries()}),jt.trigger("series:beforeupdate",d,f,g);var E=!1;d.eachSeries(function(y){var B=c._chartsMap[y.__viewId];B.__alive=!0;var D=B.renderTask;m.updatePayload(D,v),u(y,B),p&&p.get(y.uid)&&D.dirty(),D.perform(m.getPerformArgs(D))&&(E=!0),B.group.silent=!!y.get("silent"),i(y,B),uv(y)}),m.unfinished=E||m.unfinished,jt.trigger("series:layoutlabels",d,f,g),jt.trigger("series:transition",d,f,g),d.eachSeries(function(y){var B=c._chartsMap[y.__viewId];s(y,B),x(y,B)}),o(c,d),jt.trigger("series:afterupdate",d,f,g)},kt=function(c){c[Gu]=!0,c.getZr().wakeUp()},kp=function(c){c[Gu]&&(c.getZr().storage.traverse(function(d){ui(d)||a(d)}),c[Gu]=!1)};function a(c){for(var d=[],f=c.currentStates,v=0;v<f.length;v++){var g=f[v];g==="emphasis"||g==="blur"||g==="select"||d.push(g)}c.selected&&c.states.select&&d.push("select"),c.hoverState===ll&&c.states.emphasis?d.push("emphasis"):c.hoverState===sl&&c.states.blur&&d.push("blur"),c.useStates(d)}function o(c,d){var f=c._zr,v=f.storage,g=0;v.traverse(function(p){p.isGroup||g++}),g>d.get("hoverLayerThreshold")&&!se.node&&!se.worker&&d.eachSeries(function(p){if(!p.preventUsingHoverLayer){var m=c._chartsMap[p.__viewId];m.__alive&&m.eachRendered(function(E){E.states.emphasis&&(E.states.emphasis.hoverLayer=!0)})}})}function i(c,d){var f=c.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=f)})}function s(c,d){if(!c.preventAutoZ){var f=c.get("z")||0,v=c.get("zlevel")||0;d.eachRendered(function(g){return l(g,f,v,-1/0),!0})}}function l(c,d,f,v){var g=c.getTextContent(),p=c.getTextGuideLine(),m=c.isGroup;if(m)for(var E=c.childrenRef(),y=0;y<E.length;y++)v=Math.max(l(E[y],d,f,v),v);else c.z=d,c.zlevel=f,v=Math.max(c.z2,v);if(g&&(g.z=d,g.zlevel=f,isFinite(v)&&(g.z2=v+2)),p){var B=c.textGuideLineConfig;p.z=d,p.zlevel=f,isFinite(v)&&(p.z2=v+(B&&B.showAbove?1:-1))}return v}function u(c,d){d.eachRendered(function(f){if(!ui(f)){var v=f.getTextContent(),g=f.getTextGuideLine();f.stateTransition&&(f.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),f.hasState()?(f.prevStates=f.currentStates,f.clearStates()):f.prevStates&&(f.prevStates=null)}})}function x(c,d){var f=c.getModel("stateAnimation"),v=c.isAnimationEnabled(),g=f.get("duration"),p=g>0?{duration:g,delay:f.get("delay"),easing:f.get("easing")}:null;d.eachRendered(function(m){if(m.states&&m.states.emphasis){if(ui(m))return;if(m instanceof ye&&cD(m),m.__dirty){var E=m.prevStates;E&&m.useStates(E)}if(v){m.stateTransition=p;var y=m.getTextContent(),B=m.getTextGuideLine();y&&(y.stateTransition=p),B&&(B.stateTransition=p)}m.__dirty&&a(m)}})}Sp=function(c){return new(function(d){W(f,d);function f(){return d!==null&&d.apply(this,arguments)||this}return f.prototype.getCoordinateSystems=function(){return c._coordSysMgr.getCoordinateSystems()},f.prototype.getComponentByElement=function(v){for(;v;){var g=v.__ecComponentInfo;if(g!=null)return c._model.getComponent(g.mainType,g.index);v=v.parent}},f.prototype.enterEmphasis=function(v,g){yi(v,g),kt(c)},f.prototype.leaveEmphasis=function(v,g){Ci(v,g),kt(c)},f.prototype.enterBlur=function(v){d1(v),kt(c)},f.prototype.leaveBlur=function(v){Tf(v),kt(c)},f.prototype.enterSelect=function(v){h1(v),kt(c)},f.prototype.leaveSelect=function(v){v1(v),kt(c)},f.prototype.getModel=function(){return c.getModel()},f.prototype.getViewOfComponentModel=function(v){return c.getViewOfComponentModel(v)},f.prototype.getViewOfSeriesModel=function(v){return c.getViewOfSeriesModel(v)},f}(c8))(c)},eE=function(c){function d(f,v){for(var g=0;g<f.length;g++){var p=f[g];p[Hu]=v}}k(di,function(f,v){c._messageCenter.on(v,function(g){if(Tp[c.group]&&c[Hu]!==_p){if(g&&g.escapeConnect)return;var p=c.makeActionFromEvent(g),m=[];k(hi,function(E){E!==c&&E.group===c.group&&m.push(E)}),d(m,_p),k(m,function(E){E[Hu]!==u3&&E.dispatchAction(p)}),d(m,x3)}})})}}(),t}(tr),ld=tE.prototype;ld.on=Z8("on");ld.off=Z8("off");ld.one=function(e,t,r){var n=this;qt("ECharts#one is deprecated.");function a(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];t&&t.apply&&t.apply(this,o),n.off(e,a)}this.on.call(this,e,a,r)};var c3=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Dt(e){process.env.NODE_ENV!=="production"&&We("Instance "+e+" has been disposed")}var b0={},di={},Ec=[],yc=[],S0=[],rE={},Cc={},hi={},Tp={},f3=+new Date-0,ud="_echarts_instance_";function d3(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=h3(e);if(a)return process.env.NODE_ENV!=="production"&&We("There is a chart instance already initialized on the dom."),a;process.env.NODE_ENV!=="production"&&ja(e)&&e.nodeName.toUpperCase()!=="CANVAS"&&(!e.clientWidth&&(!r||r.width==null)||!e.clientHeight&&(!r||r.height==null))&&We("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 o=new tE(e,t,r);return o.id="ec_"+f3++,hi[o.id]=o,n&&Y9(e,ud,o.id),eE(o),jt.trigger("afterinit",o),o}function h3(e){return hi[W7(e,ud)]}function Fl(e,t){rE[e]=t}function nE(e){pe(yc,e)<0&&yc.push(e)}function aE(e,t){cd(Ec,e,t,t3)}function v3(e){xd("afterinit",e)}function p3(e){xd("afterupdate",e)}function xd(e,t){jt.on(e,t)}function la(e,t,r){xe(t)&&(r=t,t="");var n=re(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!di[t]&&(oe(Dp.test(n)&&Dp.test(t)),b0[n]||(b0[n]={action:r,actionInfo:e}),di[t]=n)}function g3(e,t){Kf.register(e,t)}function m3(e,t){cd(S0,e,t,Y8,"layout")}function ua(e,t){cd(S0,e,t,X8,"visual")}var Np=[];function cd(e,t,r,n,a){if((xe(t)||re(t))&&(r=t,t=n),process.env.NODE_ENV!=="production"){if(isNaN(t)||t==null)throw new Error("Illegal priority");k(e,function(i){oe(i.__raw!==r)})}if(!(pe(Np,r)>=0)){Np.push(r);var o=P8.wrapStageHandler(r,a);o.__prio=t,o.__raw=r,e.push(o)}}function oE(e,t){Cc[e]=t}function E3(e,t,r){var n=qw("registerMap");n&&n(e,t,r)}var y3=w4;ua(sd,tw);ua(wl,rw);ua(wl,nw);ua(sd,gw);ua(wl,mw);ua(j8,jw);nE(d8);aE(Qw,u4);oE("default",aw);la({type:Yn,event:Yn,update:Yn},ft);la({type:zs,event:zs,update:zs},ft);la({type:ii,event:ii,update:ii},ft);la({type:Gs,event:Gs,update:Gs},ft);la({type:si,event:si,update:si},ft);Fl("light",hw);Fl("dark",vw);function Lo(e){return e==null?0:e.length||1}function Pp(e){return e}var C3=function(){function e(t,r,n,a,o,i){this._old=t,this._new=r,this._oldKeyGetter=n||Pp,this._newKeyGetter=a||Pp,this.context=o,this._diffModeMultiple=i==="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),o=new Array(r.length);this._initIndexMap(t,null,a,"_oldKeyGetter"),this._initIndexMap(r,n,o,"_newKeyGetter");for(var i=0;i<t.length;i++){var s=a[i],l=n[s],u=Lo(l);if(u>1){var x=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(x,i)}else u===1?(n[s]=null,this._update&&this._update(l,i)):this._remove&&this._remove(i)}this._performRestAdd(o,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},a={},o=[],i=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(r,a,i,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],u=n[l],x=a[l],c=Lo(u),d=Lo(x);if(c>1&&d===1)this._updateManyToOne&&this._updateManyToOne(x,u),a[l]=null;else if(c===1&&d>1)this._updateOneToMany&&this._updateOneToMany(x,u),a[l]=null;else if(c===1&&d===1)this._update&&this._update(x,u),a[l]=null;else if(c>1&&d>1)this._updateManyToMany&&this._updateManyToMany(x,u),a[l]=null;else if(c>1)for(var f=0;f<c;f++)this._remove&&this._remove(u[f]);else this._remove&&this._remove(u)}this._performRestAdd(i,a)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var a=t[n],o=r[a],i=Lo(o);if(i>1)for(var s=0;s<i;s++)this._add&&this._add(o[s]);else i===1&&this._add&&this._add(o);r[a]=null}},e.prototype._initIndexMap=function(t,r,n,a){for(var o=this._diffModeMultiple,i=0;i<t.length;i++){var s="_ec_"+this[a](t[i],i);if(o||(n[i]=s),!!r){var l=r[s],u=Lo(l);u===0?(r[s]=i,o&&n.push(s)):u===1?r[s]=[l,i]:l.push(i)}}},e}();const iE=C3;var B3=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 A3(e,t){var r={},n=r.encode={},a=ue(),o=[],i=[],s={};k(e.dimensions,function(d){var f=e.getDimensionInfo(d),v=f.coordDim;if(v){process.env.NODE_ENV!=="production"&&oe(xc.get(v)==null);var g=f.coordDimIndex;Zu(n,v)[g]=d,f.isExtraCoord||(a.set(v,1),_3(f.type)&&(o[0]=d),Zu(s,v)[g]=e.getDimensionIndex(f.name)),f.defaultTooltip&&i.push(d)}xc.each(function(p,m){var E=Zu(n,m),y=f.otherDims[m];y!=null&&y!==!1&&(E[y]=f.name)})});var l=[],u={};a.each(function(d,f){var v=n[f];u[f]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=q(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),r.encodeFirstDimNotExtra=u;var x=n.label;x&&x.length&&(o=x.slice());var c=n.tooltip;return c&&c.length?i=c.slice():i.length||(i=o.slice()),n.defaultedLabel=o,n.defaultedTooltip=i,r.userOutput=new B3(s,t),r}function Zu(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function D3(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function _3(e){return!(e==="ordinal"||e==="time")}var Ws=function(){function e(t){this.otherDims={},t!=null&&H(this,t)}return e}(),w3=Te(),F3={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},sE=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=xE(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return le(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=v8(this.source),n=!cE(t),a="",o=[],i=0,s=0;i<t;i++){var l=void 0,u=void 0,x=void 0,c=this.dimensions[s];if(c&&c.storeDimIndex===i)l=r?c.name:null,u=c.type,x=c.ordinalMeta,s++;else{var d=this.getSourceDimension(i);d&&(l=r?d.name:null,u=d.type)}o.push({property:l,type:u,ordinalMeta:x}),r&&l!=null&&(!c||!c.isCalculationCoord)&&(a+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),a+="$",a+=F3[u]||"f",x&&(a+=x.uid),a+="$"}var f=this.source,v=[f.seriesLayoutBy,f.startIndex,a].join("$$");return{dimensions:o,hash:v}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var a=void 0,o=this.dimensions[n];if(o&&o.storeDimIndex===r)o.isCalculationCoord||(a=o.name),n++;else{var i=this.getSourceDimension(r);i&&(a=i.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 lE(e){return e instanceof sE}function uE(e){for(var t=ue(),r=0;r<(e||[]).length;r++){var n=e[r],a=re(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,r)}return t}function xE(e){var t=w3(e);return t.dimNameMap||(t.dimNameMap=uE(e.dimensionsDefine))}function cE(e){return e>30}var Oo=re,Yr=q,b3=typeof Int32Array>"u"?Array:Int32Array,S3="e\0\0",Mp=-1,k3=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],T3=["_approximateExtent"],Ip,ys,Ro,Da,qu,Cs,Ku,vi=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;lE(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(a=!0,n=t),n=n||["x","y"];for(var o={},i=[],s={},l=!1,u={},x=0;x<n.length;x++){var c=n[x],d=K(c)?new Ws({name:c}):c instanceof Ws?c:new Ws(c),f=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=f,d.coordDimIndex=0);var v=d.otherDims=d.otherDims||{};i.push(f),o[f]=d,u[f]!=null&&(l=!0),d.createInvertedIndices&&(s[f]=[]),v.itemName===0&&(this._nameDimIdx=x),v.itemId===0&&(this._idDimIdx=x),process.env.NODE_ENV!=="production"&&oe(a||d.storeDimIndex>=0),a&&(d.storeDimIndex=x)}if(this.dimensions=i,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=ue();k(i,function(p){g.set(o[p].storeDimIndex,p)})}}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(Se(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,o;if(t instanceof fc&&(o=t),!o){var i=this.dimensions,s=Jf(t)||dt(t)?new p8(t,i.length):t;o=new fc;var l=Yr(i,function(u){return{type:a._dimInfos[u].type,property:u}});o.initData(s,l,n)}this._store=o,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.count()),this._dimSummary=A3(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,o=n.end,i=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=a;s<o;s++){var l=s-a;this._nameList[s]=r[l],i&&Ku(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!==Nr&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,a=n.getProvider();this._updateOrdinalMeta();var o=this._nameList,i=this._idList,s=a.getSource().sourceFormat,l=s===Ut;if(l&&!a.pure)for(var u=[],x=t;x<r;x++){var c=a.getItem(x,u);if(!this.hasItemOption&&P7(c)&&(this.hasItemOption=!0),c){var d=c.name;o[x]==null&&d!=null&&(o[x]=gr(d,null));var f=c.id;i[x]==null&&f!=null&&(i[x]=gr(f,null))}}if(this._shouldMakeIdFromName())for(var x=t;x<r;x++)Ku(this,x);Ip(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){Oo(t)?H(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=Ro(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 ys(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 Y(t)?a.getValues(Yr(t,function(o){return n._getStoreDimIndex(o)}),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)?Mp:a},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){xe(t)&&(n=r,r=t,t=[]);var a=n||this,o=Yr(Da(t),this._getStoreDimIndex,this);this._store.each(o,a?ne(r,a):r)},e.prototype.filterSelf=function(t,r,n){xe(t)&&(n=r,r=t,t=[]);var a=n||this,o=Yr(Da(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,a?ne(r,a):r),this},e.prototype.selectRange=function(t){var r=this,n={},a=De(t);return k(a,function(o){var i=r._getStoreDimIndex(o);n[i]=t[o]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){xe(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 o=n||a||this,i=Yr(Da(t),this._getStoreDimIndex,this),s=Cs(this);return s._store=this._store.map(i,o?ne(r,o):r),s},e.prototype.modify=function(t,r,n,a){var o=this,i=n||a||this;process.env.NODE_ENV!=="production"&&k(Da(t),function(l){var u=o.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=Yr(Da(t),this._getStoreDimIndex,this);this._store.modify(s,i?ne(r,i):r)},e.prototype.downSample=function(t,r,n,a){var o=Cs(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),r,n,a),o},e.prototype.lttbDownSample=function(t,r){var n=Cs(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 ot(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new iE(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return ys(t,n)},function(n){return ys(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||{},Oo(t)?H(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 o=a[r];return o==null&&(o=this.getVisual(r),Y(o)?o=o.slice():Oo(o)&&(o=H({},o)),a[r]=o),o},e.prototype.setItemVisual=function(t,r,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,Oo(r)?H(a,r):a[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Oo(t)?H(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?H(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;XA(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)),qu(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];xe(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(hf(arguments)))})},e.internalField=function(){Ip=function(t){var r=t._invertedIndicesMap;k(r,function(n,a){var o=t._dimInfos[a],i=o.ordinalMeta,s=t._store;if(i){n=r[a]=new b3(i.categories.length);for(var l=0;l<n.length;l++)n[l]=Mp;for(var l=0;l<s.count();l++)n[s.get(o.storeDimIndex,l)]=l}})},Ro=function(t,r,n){return gr(t._getCategory(r,n),null)},ys=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Ro(t,t._idDimIdx,r)),n==null&&(n=S3+r),n},Da=function(t){return Y(t)||(t=t!=null?[t]:[]),t},Cs=function(t){var r=new e(t._schema?t._schema:Yr(t.dimensions,t._getDimInfo,t),t.hostModel);return qu(r,t),r},qu=function(t,r){k(k3.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,k(T3,function(n){t[n]=ve(r[n])}),t._calculationInfo=H({},r._calculationInfo)},Ku=function(t,r){var n=t._nameList,a=t._idList,o=t._nameDimIdx,i=t._idDimIdx,s=n[r],l=a[r];if(s==null&&o!=null&&(n[r]=s=Ro(t,o,r)),l==null&&i!=null&&(a[r]=l=Ro(t,i,r)),l==null&&s!=null){var u=t._nameRepeatCount,x=u[s]=(u[s]||0)+1;l=s,x>1&&(l+="__ec__"+x),a[r]=l}}}(),e}();function fE(e,t){Jf(e)||(e=Qf(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],a=ue(),o=[],i=P3(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&cE(i),l=n===e.dimensionsDefine,u=l?xE(e):uE(n),x=t.encodeDefine;!x&&t.encodeDefaulter&&(x=t.encodeDefaulter(e,i));for(var c=ue(x),d=new B8(i),f=0;f<d.length;f++)d[f]=-1;function v(w){var b=d[w];if(b<0){var F=n[w],S=re(F)?F:{name:F},P=new Ws,T=S.name;T!=null&&u.get(T)!=null&&(P.name=P.displayName=T),S.type!=null&&(P.type=S.type),S.displayName!=null&&(P.displayName=S.displayName);var N=o.length;return d[w]=N,P.storeDimIndex=w,o.push(P),P}return o[b]}if(!s)for(var f=0;f<i;f++)v(f);c.each(function(w,b){var F=je(w).slice();if(F.length===1&&!K(F[0])&&F[0]<0){c.set(b,!1);return}var S=c.set(b,[]);k(F,function(P,T){var N=K(P)?u.get(P):P;N!=null&&N<i&&(S[T]=N,p(v(N),b,T))})});var g=0;k(r,function(w){var b,F,S,P;if(K(w))b=w,P={};else{P=w,b=P.name;var T=P.ordinalMeta;P.ordinalMeta=null,P=H({},P),P.ordinalMeta=T,F=P.dimsDef,S=P.otherDims,P.name=P.coordDim=P.coordDimIndex=P.dimsDef=P.otherDims=null}var N=c.get(b);if(N!==!1){if(N=je(N),!N.length)for(var M=0;M<(F&&F.length||1);M++){for(;g<i&&v(g).coordDim!=null;)g++;g<i&&N.push(g++)}k(N,function(L,O){var V=v(L);if(l&&P.type!=null&&(V.type=P.type),p(ge(V,P),b,O),V.name==null&&F){var $=F[O];!re($)&&($={name:$}),V.name=V.displayName=$.name,V.defaultTooltip=$.defaultTooltip}S&&ge(V.otherDims,S)})}});function p(w,b,F){xc.get(b)!=null?w.otherDims[b]=F:(w.coordDim=b,w.coordDimIndex=F,a.set(b,!0))}var m=t.generateCoord,E=t.generateCoordCount,y=E!=null;E=m?E||1:0;var B=m||"value";function D(w){w.name==null&&(w.name=w.coordDim)}if(s)k(o,function(w){D(w)}),o.sort(function(w,b){return w.storeDimIndex-b.storeDimIndex});else for(var A=0;A<i;A++){var _=v(A),C=_.coordDim;C==null&&(_.coordDim=M3(B,a,y),_.coordDimIndex=0,(!m||E<=0)&&(_.isExtraCoord=!0),E--),D(_),_.type==null&&(u8(e,A)===qe.Must||_.isExtraCoord&&(_.otherDims.itemName!=null||_.otherDims.seriesName!=null))&&(_.type="ordinal")}return N3(o),new sE({source:e,dimensions:o,fullDimensionCount:i,dimensionOmitted:s})}function N3(e){for(var t=ue(),r=0;r<e.length;r++){var n=e[r],a=n.name,o=t.get(a)||0;o>0&&(n.name=a+(o-1)),o++,t.set(a,o)}}function P3(e,t,r,n){var a=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return k(t,function(o){var i;re(o)&&(i=o.dimsDef)&&(a=Math.max(a,i.length))}),a}function M3(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 I3=function(){function e(t){this.coordSysDims=[],this.axisMap=ue(),this.categoryAxisMap=ue(),this.coordSysName=t}return e}();function L3(e){var t=e.get("coordinateSystem"),r=new I3(t),n=O3[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var O3={cartesian2d:function(e,t,r,n){var a=e.getReferringComponents("xAxis",Et).models[0],o=e.getReferringComponents("yAxis",Et).models[0];if(process.env.NODE_ENV!=="production"){if(!a)throw new Error('xAxis "'+cn(e.get("xAxisIndex"),e.get("xAxisId"),0)+'" not found');if(!o)throw new Error('yAxis "'+cn(e.get("xAxisIndex"),e.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],r.set("x",a),r.set("y",o),_a(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),_a(o)&&(n.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var a=e.getReferringComponents("singleAxis",Et).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error("singleAxis should be specified.");t.coordSysDims=["single"],r.set("single",a),_a(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var a=e.getReferringComponents("polar",Et).models[0],o=a.findAxisModel("radiusAxis"),i=a.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!i)throw new Error("angleAxis option not found");if(!o)throw new Error("radiusAxis option not found")}t.coordSysDims=["radius","angle"],r.set("radius",o),r.set("angle",i),_a(o)&&(n.set("radius",o),t.firstCategoryDimIndex=0),_a(i)&&(n.set("angle",i),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,o=a.getComponent("parallel",e.get("parallelIndex")),i=t.coordSysDims=o.dimensions.slice();k(o.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),x=i[l];r.set(x,u),_a(u)&&(n.set(x,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function _a(e){return e.get("type")==="category"}function R3(e,t,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,o,i,s;V3(t)?o=t:(i=t.schema,o=i.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,x,c,d;if(k(o,function(E,y){K(E)&&(o[y]=E={name:E}),l&&!E.isExtraCoord&&(!n&&!u&&E.ordinalMeta&&(u=E),!x&&E.type!=="ordinal"&&E.type!=="time"&&(!a||a===E.coordDim)&&(x=E))}),x&&!n&&!u&&(n=!0),x){c="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var f=x.coordDim,v=x.type,g=0;k(o,function(E){E.coordDim===f&&g++});var p={name:c,coordDim:f,coordDimIndex:g,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},m={name:d,coordDim:d,coordDimIndex:g+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};i?(s&&(p.storeDimIndex=s.ensureCalculationDimension(d,v),m.storeDimIndex=s.ensureCalculationDimension(c,v)),i.appendCalculationDimension(p),i.appendCalculationDimension(m)):(o.push(p),o.push(m))}return{stackedDimension:x&&x.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:c}}function V3(e){return!lE(e.schema)}function na(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function dE(e,t){return na(e,t)?e.getCalculationInfo("stackResultDimension"):t}function $3(e,t){var r=e.get("coordinateSystem"),n=Kf.get(r),a;return t&&t.coordSysDims&&(a=q(t.coordSysDims,function(o){var i={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");i.type=D3(l)}return i})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function z3(e,t,r){var n,a;return r&&k(e,function(o,i){var s=o.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=i),o.ordinalMeta=l.getOrdinalMeta(),t&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(a=!0)}),!a&&n!=null&&(e[n].otherDims.itemName=0),n}function bl(e,t,r){r=r||{};var n=t.getSourceManager(),a,o=!1;e?(o=!0,a=Qf(e)):(a=n.getSource(),o=a.sourceFormat===Ut);var i=L3(t),s=$3(t,i),l=r.useEncodeDefaulter,u=xe(l)?l:l?we(M_,s,t):null,x={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},c=fE(a,x),d=z3(c.dimensions,r.createInvertedIndices,i),f=o?null:n.getSharedDataStore(c),v=R3(t,{schema:c,store:f}),g=new vi(c,t);g.setCalculationInfo(v);var p=d!=null&&G3(a)?function(m,E,y,B){return B===d?y:this.defaultDimValueGetter(m,E,y,B)}:null;return g.hasItemOption=!1,g.initData(o?a:f,null,p),g}function G3(e){if(e.sourceFormat===Ut){var t=H3(e.data||[]);return!Y(Li(t))}}function H3(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var Cr=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}();al(Cr);var U3=0,Bc=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++U3}return e.createByAxisModel=function(t){var r=t.option,n=r.data,a=n&&q(n,W3);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(!K(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=ue(this.categories))},e}();function W3(e){return re(e)&&e.value!=null?e.value:e+""}function Y3(e){var t=Math.pow(10,rl(Math.abs(e))),r=Math.abs(e/t);return r===0||r===1||r===2||r===3||r===5}function Ac(e){return e.type==="interval"||e.type==="log"}function X3(e,t,r,n){var a={},o=e[1]-e[0],i=a.interval=$9(o/t,!0);r!=null&&i<r&&(i=a.interval=r),n!=null&&i>n&&(i=a.interval=n);var s=a.intervalPrecision=hE(i),l=a.niceTickExtent=[Ve(Math.ceil(e[0]/i)*i,s),Ve(Math.floor(e[1]/i)*i,s)];return j3(l,e),a}function Ju(e){var t=Math.pow(10,rl(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Ve(r*t)}function hE(e){return vr(e)+2}function Lp(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function j3(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Lp(e,0,t),Lp(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Sl(e,t){return e>=t[0]&&e<=t[1]}function kl(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Tl(e,t){return e*(t[1]-t[0])+t[0]}var vE=function(e){W(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new Bc({})),Y(a)&&(a=new Bc({categories:q(a,function(o){return re(o)?o.value:o})})),n._ordinalMeta=a,n._extent=n.getSetting("extent")||[0,a.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:K(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),Sl(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),kl(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(Tl(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=[],o=this._ticksByOrdinalNumber=[],i=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);i<l;++i){var u=n[i];a[i]=u,o[u]=i}for(var x=0;i<s;++i){for(;o[x]!=null;)x++;a.push(x),o[x]=i}},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}(Cr);Cr.registerClass(vE);const pE=vE;var Rn=Ve,gE=function(e){W(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 Sl(r,this._extent)},t.prototype.normalize=function(r){return kl(r,this._extent)},t.prototype.scale=function(r){return Tl(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=hE(r)},t.prototype.getTicks=function(r){var n=this._interval,a=this._extent,o=this._niceExtent,i=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;a[0]<o[0]&&(r?s.push({value:Rn(o[0]-n,i)}):s.push({value:a[0]}));for(var u=o[0];u<=o[1]&&(s.push({value:u}),u=Rn(u+n,i),u!==s[s.length-1].value);)if(s.length>l)return[];var x=s.length?s[s.length-1].value:o[1];return a[1]>x&&(r?s.push({value:Rn(x+n,i)}):s.push({value:a[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),a=[],o=this.getExtent(),i=1;i<n.length;i++){for(var s=n[i],l=n[i-1],u=0,x=[],c=s.value-l.value,d=c/r;u<r-1;){var f=Rn(l.value+(u+1)*d);f>o[0]&&f<o[1]&&x.push(f),u++}a.push(x)}return a},t.prototype.getLabel=function(r,n){if(r==null)return"";var a=n&&n.precision;a==null?a=vr(r.value)||0:a==="auto"&&(a=this._intervalPrecision);var o=Rn(r.value,a,!0);return n8(o)},t.prototype.calcNiceTicks=function(r,n,a){r=r||5;var o=this._extent,i=o[1]-o[0];if(isFinite(i)){i<0&&(i=-i,o.reverse());var s=X3(o,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 o=n[1]-n[0];isFinite(o)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var i=this._interval;r.fixMin||(n[0]=Rn(Math.floor(n[0]/i)*i)),r.fixMax||(n[1]=Rn(Math.ceil(n[1]/i)*i))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(Cr);Cr.registerClass(gE);const Vi=gE;var mE=typeof Float32Array<"u",Z3=mE?Float32Array:Array;function Sr(e){return Y(e)?mE?new Float32Array(e):e:new Z3(e)}var Dc="__ec_stack_";function fd(e){return e.get("stack")||Dc+e.seriesIndex}function dd(e){return e.dim+e.index}function q3(e){var t=[],r=e.axis,n="axis0";if(r.type==="category"){for(var a=r.getBandWidth(),o=0;o<e.count;o++)t.push(ge({bandWidth:a,axisKey:n,stackId:Dc+o},e));for(var i=CE(t),s=[],o=0;o<e.count;o++){var l=i[n][Dc+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function EE(e,t){var r=[];return t.eachSeriesByType(e,function(n){BE(n)&&r.push(n)}),r}function K3(e){var t={};k(e,function(l){var u=l.coordinateSystem,x=u.getBaseAxis();if(!(x.type!=="time"&&x.type!=="value"))for(var c=l.getData(),d=x.dim+"_"+x.index,f=c.getDimensionIndex(c.mapDimension(x.dim)),v=c.getStore(),g=0,p=v.count();g<p;++g){var m=v.get(f,g);t[d]?t[d].push(m):t[d]=[m]}});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 o=null,i=1;i<a.length;++i){var s=a[i]-a[i-1];s>0&&(o=o===null?s:Math.min(o,s))}r[n]=o}}return r}function yE(e){var t=K3(e),r=[];return k(e,function(n){var a=n.coordinateSystem,o=a.getBaseAxis(),i=o.getExtent(),s;if(o.type==="category")s=o.getBandWidth();else if(o.type==="value"||o.type==="time"){var l=o.dim+"_"+o.index,u=t[l],x=Math.abs(i[1]-i[0]),c=o.scale.getExtent(),d=Math.abs(c[1]-c[0]);s=u?x/d*u:x}else{var f=n.getData();s=Math.abs(i[1]-i[0])/f.count()}var v=be(n.get("barWidth"),s),g=be(n.get("barMaxWidth"),s),p=be(n.get("barMinWidth")||(AE(n)?.5:1),s),m=n.get("barGap"),E=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:g,barMinWidth:p,barGap:m,barCategoryGap:E,axisKey:dd(o),stackId:fd(n)})}),CE(r)}function CE(e){var t={};k(e,function(n,a){var o=n.axisKey,i=n.bandWidth,s=t[o]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[o]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var x=n.barWidth;x&&!l[u].width&&(l[u].width=x,x=Math.min(s.remainedWidth,x),s.remainedWidth-=x);var c=n.barMaxWidth;c&&(l[u].maxWidth=c);var d=n.barMinWidth;d&&(l[u].minWidth=d);var f=n.barGap;f!=null&&(s.gap=f);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var r={};return k(t,function(n,a){r[a]={};var o=n.stacks,i=n.bandWidth,s=n.categoryGap;if(s==null){var l=De(o).length;s=Math.max(35-l*4,15)+"%"}var u=be(s,i),x=be(n.gap,1),c=n.remainedWidth,d=n.autoWidthCount,f=(c-u)/(d+(d-1)*x);f=Math.max(f,0),k(o,function(m){var E=m.maxWidth,y=m.minWidth;if(m.width){var B=m.width;E&&(B=Math.min(B,E)),y&&(B=Math.max(B,y)),m.width=B,c-=B+x*B,d--}else{var B=f;E&&E<B&&(B=Math.min(E,c)),y&&y>B&&(B=y),B!==f&&(m.width=B,c-=B+x*B,d--)}}),f=(c-u)/(d+(d-1)*x),f=Math.max(f,0);var v=0,g;k(o,function(m,E){m.width||(m.width=f),g=m,v+=m.width*(1+x)}),g&&(v-=g.width*x);var p=-v/2;k(o,function(m,E){r[a][E]=r[a][E]||{bandWidth:i,offset:p,width:m.width},p+=m.width*(1+x)})}),r}function J3(e,t,r){if(e&&t){var n=e[dd(t)];return n!=null&&r!=null?n[fd(r)]:n}}function Q3(e,t){var r=EE(e,t),n=yE(r);k(r,function(a){var o=a.getData(),i=a.coordinateSystem,s=i.getBaseAxis(),l=fd(a),u=n[dd(s)][l],x=u.offset,c=u.width;o.setLayout({bandWidth:u.bandWidth,offset:x,size:c})})}function eF(e){return{seriesType:e,plan:nd(),reset:function(t){if(BE(t)){var r=t.getData(),n=t.coordinateSystem,a=n.getBaseAxis(),o=n.getOtherAxis(a),i=r.getDimensionIndex(r.mapDimension(o.dim)),s=r.getDimensionIndex(r.mapDimension(a.dim)),l=t.get("showBackground",!0),u=r.mapDimension(o.dim),x=r.getCalculationInfo("stackResultDimension"),c=na(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=o.isHorizontal(),f=tF(a,o),v=AE(t),g=t.get("barMinHeight")||0,p=x&&r.getDimensionIndex(x),m=r.getLayout("size"),E=r.getLayout("offset");return{progress:function(y,B){for(var D=y.count,A=v&&Sr(D*3),_=v&&l&&Sr(D*3),C=v&&Sr(D),w=n.master.getRect(),b=d?w.width:w.height,F,S=B.getStore(),P=0;(F=y.next())!=null;){var T=S.get(c?p:i,F),N=S.get(s,F),M=f,L=void 0;c&&(L=+T-S.get(i,F));var O=void 0,V=void 0,$=void 0,I=void 0;if(d){var U=n.dataToPoint([T,N]);if(c){var j=n.dataToPoint([L,N]);M=j[0]}O=M,V=U[1]+E,$=U[0]-M,I=m,Math.abs($)<g&&($=($<0?-1:1)*g)}else{var U=n.dataToPoint([N,T]);if(c){var j=n.dataToPoint([N,L]);M=j[1]}O=U[0]+E,V=M,$=m,I=U[1]-M,Math.abs(I)<g&&(I=(I<=0?-1:1)*g)}v?(A[P]=O,A[P+1]=V,A[P+2]=d?$:I,_&&(_[P]=d?w.x:O,_[P+1]=d?V:w.y,_[P+2]=b),C[F]=F):B.setItemLayout(F,{x:O,y:V,width:$,height:I}),P+=3}v&&B.setLayout({largePoints:A,largeDataIndices:C,largeBackgroundPoints:_,valueAxisHorizontal:d})}}}}}}function BE(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function AE(e){return e.pipelineContext&&e.pipelineContext.large}function tF(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var rF=function(e,t,r,n){for(;r<n;){var a=r+n>>>1;e[a][1]<t?r=a+1:n=a}return r},DE=function(e){W(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 vl(r.value,Fv[D_(Ga(this._minLevelUnit))]||Fv.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,a){var o=this.getSetting("useUTC"),i=this.getSetting("locale");return __(r,n,a,i,o)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,a=[];if(!r)return a;a.push({value:n[0],level:0});var o=this.getSetting("useUTC"),i=uF(this._minLevelUnit,this._approxInterval,o,n);return a=a.concat(i),a.push({value:n[1],level:0}),a},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=zt,n[1]+=zt),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]-zt}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,a){r=r||10;var o=this._extent,i=o[1]-o[0];this._approxInterval=i/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),a!=null&&this._approxInterval>a&&(this._approxInterval=a);var s=Bs.length,l=Math.min(rF(Bs,this._approxInterval,0,s),s-1);this._interval=Bs[l][1],this._minLevelUnit=Bs[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return Se(r)?r:+Or(r)},t.prototype.contain=function(r){return Sl(this.parse(r),this._extent)},t.prototype.normalize=function(r){return kl(this.parse(r),this._extent)},t.prototype.scale=function(r){return Tl(r,this._extent)},t.type="time",t}(Vi),Bs=[["second",Uf],["minute",Wf],["hour",xi],["quarter-day",xi*6],["half-day",xi*12],["day",zt*1.2],["half-week",zt*3.5],["week",zt*7],["month",zt*31],["quarter",zt*95],["half-year",wv/2],["year",wv]];function nF(e,t,r,n){var a=Or(t),o=Or(r),i=function(v){return bv(a,v,n)===bv(o,v,n)},s=function(){return i("year")},l=function(){return s()&&i("month")},u=function(){return l()&&i("day")},x=function(){return u()&&i("hour")},c=function(){return x()&&i("minute")},d=function(){return c()&&i("second")},f=function(){return d()&&i("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return x();case"minute":return c();case"second":return d();case"millisecond":return f()}}function aF(e,t){return e/=zt,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function oF(e){var t=30*zt;return e/=t,e>6?6:e>3?3:e>2?2:1}function iF(e){return e/=xi,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Op(e,t){return e/=t?Wf:Uf,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function sF(e){return $9(e,!0)}function lF(e,t,r){var n=new Date(e);switch(Ga(t)){case"year":case"month":n[K1(r)](0);case"day":n[J1(r)](1);case"hour":n[Q1(r)](0);case"minute":n[e8(r)](0);case"second":n[t8(r)](0),n[r8(r)](0)}return n.getTime()}function uF(e,t,r,n){var a=1e4,o=Z1,i=0;function s(b,F,S,P,T,N,M){for(var L=new Date(F),O=F,V=L[P]();O<S&&O<=n[1];)M.push({value:O}),V+=b,L[T](V),O=L.getTime();M.push({value:O,notAdd:!0})}function l(b,F,S){var P=[],T=!F.length;if(!nF(Ga(b),n[0],n[1],r)){T&&(F=[{value:lF(new Date(n[0]),b,r)},{value:n[1]}]);for(var N=0;N<F.length-1;N++){var M=F[N].value,L=F[N+1].value;if(M!==L){var O=void 0,V=void 0,$=void 0,I=!1;switch(b){case"year":O=Math.max(1,Math.round(t/zt/365)),V=Yf(r),$=w_(r);break;case"half-year":case"quarter":case"month":O=oF(t),V=Ha(r),$=K1(r);break;case"week":case"half-week":case"day":O=aF(t),V=pl(r),$=J1(r),I=!0;break;case"half-day":case"quarter-day":case"hour":O=iF(t),V=Di(r),$=Q1(r);break;case"minute":O=Op(t,!0),V=gl(r),$=e8(r);break;case"second":O=Op(t,!1),V=ml(r),$=t8(r);break;case"millisecond":O=sF(t),V=El(r),$=r8(r);break}s(O,M,L,V,$,I,P),b==="year"&&S.length>1&&N===0&&S.unshift({value:S[0].value-O})}}for(var N=0;N<P.length;N++)S.push(P[N]);return P}}for(var u=[],x=[],c=0,d=0,f=0;f<o.length&&i++<a;++f){var v=Ga(o[f]);if(A_(o[f])){l(o[f],u[u.length-1]||[],x);var g=o[f+1]?Ga(o[f+1]):null;if(v!==g){if(x.length){d=c,x.sort(function(b,F){return b.value-F.value});for(var p=[],m=0;m<x.length;++m){var E=x[m].value;(m===0||x[m-1].value!==E)&&(p.push(x[m]),E>=n[0]&&E<=n[1]&&c++)}var y=(n[1]-n[0])/t;if(c>y*1.5&&d>y/1.5||(u.push(p),c>y||e===o[f]))break}x=[]}}}process.env.NODE_ENV!=="production"&&i>=a&&We("Exceed safe limit.");for(var B=Qe(q(u,function(b){return Qe(b,function(F){return F.value>=n[0]&&F.value<=n[1]&&!F.notAdd})}),function(b){return b.length>0}),D=[],A=B.length-1,f=0;f<B.length;++f)for(var _=B[f],C=0;C<_.length;++C)D.push({value:_[C].value,level:A-f});D.sort(function(b,F){return b.value-F.value});for(var w=[],f=0;f<D.length;++f)(f===0||D[f].value!==D[f-1].value)&&w.push(D[f]);return w}Cr.registerClass(DE);const xF=DE;var Rp=Cr.prototype,pi=Vi.prototype,cF=Ve,fF=Math.floor,dF=Math.ceil,As=Math.pow,Wt=Math.log,hd=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Vi,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,a=this._extent,o=n.getExtent(),i=pi.getTicks.call(this,r);return q(i,function(s){var l=s.value,u=Ve(As(this.base,l));return u=l===a[0]&&this._fixMin?Ds(u,o[0]):u,u=l===a[1]&&this._fixMax?Ds(u,o[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var a=Wt(this.base);r=Wt(Math.max(0,r))/a,n=Wt(Math.max(0,n))/a,pi.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=Rp.getExtent.call(this);n[0]=As(r,n[0]),n[1]=As(r,n[1]);var a=this._originalScale,o=a.getExtent();return this._fixMin&&(n[0]=Ds(n[0],o[0])),this._fixMax&&(n[1]=Ds(n[1],o[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=Wt(r[0])/Wt(n),r[1]=Wt(r[1])/Wt(n),Rp.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 o=b7(a),i=r/a*o;for(i<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var s=[Ve(dF(n[0]/o)*o),Ve(fF(n[1]/o)*o)];this._interval=o,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){pi.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=Wt(r)/Wt(this.base),Sl(r,this._extent)},t.prototype.normalize=function(r){return r=Wt(r)/Wt(this.base),kl(r,this._extent)},t.prototype.scale=function(r){return r=Tl(r,this._extent),As(this.base,r)},t.type="log",t}(Cr),_E=hd.prototype;_E.getMinorTicks=pi.getMinorTicks;_E.getLabel=pi.getLabel;function Ds(e,t){return cF(e,vr(t))}Cr.registerClass(hd);const hF=hd;var vF=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 o=this._modelMinRaw=r.get("min",!0);xe(o)?this._modelMinNum=_s(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=_s(t,o));var i=this._modelMaxRaw=r.get("max",!0);if(xe(i)?this._modelMaxNum=_s(t,i({min:n[0],max:n[1]})):i!=="dataMax"&&(this._modelMaxNum=_s(t,i)),a)this._axisDataLen=r.getCategories().length;else{var s=r.get("boundaryGap"),l=Y(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=[fn(l[0],1),fn(l[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,a=this._axisDataLen,o=this._boundaryGapInner,i=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,x=l!=null;s==null&&(s=t?a?0:NaN:r-o[0]*i),l==null&&(l=t?a?a-1:NaN:n+o[1]*i),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var c=Za(s)||Za(l)||t&&!a;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!x&&(l=0));var d=this._determinedMin,f=this._determinedMax;return d!=null&&(s=d,u=!0),f!=null&&(l=f,x=!0),{min:s,max:l,minFixed:u,maxFixed:x,isBlank:c}},e.prototype.modifyDataMinMax=function(t,r){process.env.NODE_ENV!=="production"&&oe(!this.frozen),this[gF[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=pF[t];process.env.NODE_ENV!=="production"&&oe(!this.frozen&&this[n]==null),this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),pF={min:"_determinedMin",max:"_determinedMax"},gF={min:"_dataMin",max:"_dataMax"};function wE(e,t,r){var n=e.rawExtentInfo;return n||(n=new vF(e,t,r),e.rawExtentInfo=n,n)}function _s(e,t){return t==null?null:Za(t)?NaN:e.parse(t)}function FE(e,t){var r=e.type,n=wE(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var a=n.min,o=n.max,i=t.ecModel;if(i&&r==="time"){var s=EE("bar",i),l=!1;if(k(s,function(c){l=l||c.getBaseAxis()===t.axis}),l){var u=yE(s),x=mF(a,o,t,u);a=x.min,o=x.max}}return{extent:[a,o],fixMin:n.minFixed,fixMax:n.maxFixed}}function mF(e,t,r,n){var a=r.axis.getExtent(),o=a[1]-a[0],i=J3(n,r.axis);if(i===void 0)return{min:e,max:t};var s=1/0;k(i,function(f){s=Math.min(f.offset,s)});var l=-1/0;k(i,function(f){l=Math.max(f.offset+f.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,x=t-e,c=1-(s+l)/o,d=x/c-x;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function Vp(e,t){var r=t,n=FE(e,r),a=n.extent,o=r.get("splitNumber");e instanceof hF&&(e.base=r.get("logBase"));var i=e.type,s=r.get("interval"),l=i==="interval"||i==="time";e.setExtent(a[0],a[1]),e.calcNiceExtent({splitNumber:o,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 EF(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new pE({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new xF({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Cr.getClass(t)||Vi)}}function yF(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function $i(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,o){return e.scale.getFormattedLabel(a,o,n)}}(t):K(t)?function(n){return function(a){var o=e.scale.getLabel(a),i=n.replace("{value}",o??"");return i}}(t):xe(t)?function(n){return function(a,o){return r!=null&&(o=a.value-r),n(vd(e,a),o,a.level!=null?{level:a.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function vd(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function CF(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,a,o=r.getExtent();r instanceof pE?a=r.count():(n=r.getTicks(),a=n.length);var i=e.getLabelModel(),s=$i(e),l,u=1;a>40&&(u=Math.ceil(a/40));for(var x=0;x<a;x+=u){var c=n?n[x]:{value:o[0]+x},d=s(c,x),f=i.getTextRect(d),v=BF(f,i.get("rotate")||0);l?l.union(v):l=v}return l}}function BF(e,t){var r=t*Math.PI/180,n=e.width,a=e.height,o=n*Math.abs(Math.cos(r))+Math.abs(a*Math.sin(r)),i=n*Math.abs(Math.sin(r))+Math.abs(a*Math.cos(r)),s=new Ae(e.x,e.y,o,i);return s}function pd(e){var t=e.get("interval");return t??"auto"}function bE(e){return e.type==="category"&&pd(e.getLabelModel())===0}function SE(e,t){var r={};return k(e.mapDimensionsAll(t),function(n){r[dE(e,n)]=!0}),De(r)}function AF(e,t,r){t&&k(SE(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 DF=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),$p=[],_F={registerPreprocessor:nE,registerProcessor:aE,registerPostInit:v3,registerPostUpdate:p3,registerUpdateLifecycle:xd,registerAction:la,registerCoordinateSystem:g3,registerLayout:m3,registerVisual:ua,registerTransform:y3,registerLoading:oE,registerMap:E3,registerImpl:Zw,PRIORITY:l3,ComponentModel:Fe,ComponentView:Jt,SeriesModel:Rr,ChartView:Zt,registerComponentModel:function(e){Fe.registerClass(e)},registerComponentView:function(e){Jt.registerClass(e)},registerSeriesModel:function(e){Rr.registerClass(e)},registerChartView:function(e){Zt.registerClass(e)},registerSubTypeDefaulter:function(e,t){Fe.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){A7(e,t)}};function Er(e){if(Y(e)){k(e,function(t){Er(t)});return}pe($p,e)>=0||($p.push(e),xe(e)&&(e={install:e}),e.install(_F))}var Si=Te();function wF(e){return e.type==="category"?bF(e):kF(e)}function FF(e,t){return e.type==="category"?SF(e,t):{ticks:q(e.scale.getTicks(),function(r){return r.value})}}function bF(e){var t=e.getLabelModel(),r=kE(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function kE(e,t){var r=TE(e,"labels"),n=pd(t),a=NE(r,n);if(a)return a;var o,i;return xe(n)?o=IE(e,n):(i=n==="auto"?TF(e):n,o=ME(e,i)),PE(r,n,{labels:o,labelCategoryInterval:i})}function SF(e,t){var r=TE(e,"ticks"),n=pd(t),a=NE(r,n);if(a)return a;var o,i;if((!t.get("show")||e.scale.isBlank())&&(o=[]),xe(n))o=IE(e,n,!0);else if(n==="auto"){var s=kE(e,e.getLabelModel());i=s.labelCategoryInterval,o=q(s.labels,function(l){return l.tickValue})}else i=n,o=ME(e,i,!0);return PE(r,n,{ticks:o,tickCategoryInterval:i})}function kF(e){var t=e.scale.getTicks(),r=$i(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 TE(e,t){return Si(e)[t]||(Si(e)[t]=[])}function NE(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function PE(e,t,r){return e.push({key:t,value:r}),r}function TF(e){var t=Si(e).autoInterval;return t??(Si(e).autoInterval=e.calculateCategoryInterval())}function NF(e){var t=PF(e),r=$i(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,a=e.scale,o=a.getExtent(),i=a.count();if(o[1]-o[0]<1)return 0;var s=1;i>40&&(s=Math.max(1,Math.floor(i/40)));for(var l=o[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),x=Math.abs(u*Math.cos(n)),c=Math.abs(u*Math.sin(n)),d=0,f=0;l<=o[1];l+=s){var v=0,g=0,p=Bf(r({value:l}),t.font,"center","top");v=p.width*1.3,g=p.height*1.3,d=Math.max(d,v,7),f=Math.max(f,g,7)}var m=d/x,E=f/c;isNaN(m)&&(m=1/0),isNaN(E)&&(E=1/0);var y=Math.max(0,Math.floor(Math.min(m,E))),B=Si(e.model),D=e.getExtent(),A=B.lastAutoInterval,_=B.lastTickCount;return A!=null&&_!=null&&Math.abs(A-y)<=1&&Math.abs(_-i)<=1&&A>y&&B.axisExtent0===D[0]&&B.axisExtent1===D[1]?y=A:(B.lastTickCount=i,B.lastAutoInterval=y,B.axisExtent0=D[0],B.axisExtent1=D[1]),y}function PF(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 ME(e,t,r){var n=$i(e),a=e.scale,o=a.getExtent(),i=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],x=a.count();u!==0&&l>1&&x/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=bE(e),d=i.get("showMinLabel")||c,f=i.get("showMaxLabel")||c;d&&u!==o[0]&&g(o[0]);for(var v=u;v<=o[1];v+=l)g(v);f&&v-l!==o[1]&&g(o[1]);function g(p){var m={value:p};s.push(r?p:{formattedLabel:n(m),rawLabel:a.getLabel(m),tickValue:p})}return s}function IE(e,t,r){var n=e.scale,a=$i(e),o=[];return k(n.getTicks(),function(i){var s=n.getLabel(i),l=i.value;t(i.value,s)&&o.push(r?l:{formattedLabel:a(i),rawLabel:s,tickValue:l})}),o}var zp=[0,1],MF=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 R9(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(),Gp(n,a.count())),Ke(t,zp,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),Gp(n,a.count()));var o=Ke(t,n,zp,r);return this.scale.scale(o)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=FF(this,r),a=n.ticks,o=q(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),i=r.get("alignWithLabel");return IF(this,o,i,t.clamp),o},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(o){return q(o,function(i){return{coord:this.dataToCoord(i),tickValue:i}},this)},this);return a},e.prototype.getViewLabels=function(){return wF(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 NF(this)},e}();function Gp(e,t){var r=e[1]-e[0],n=t,a=r/n/2;e[0]+=a,e[1]-=a}function IF(e,t,r,n){var a=t.length;if(!e.onBand||r||!a)return;var o=e.getExtent(),i,s;if(a===1)t[0].coord=o[0],i=t[1]={coord:o[1]};else{var l=t[a-1].tickValue-t[0].tickValue,u=(t[a-1].coord-t[0].coord)/l;k(t,function(f){f.coord-=u/2});var x=e.scale.getExtent();s=1+x[1]-t[a-1].tickValue,i={coord:t[a-1].coord+u*s},t.push(i)}var c=o[0]>o[1];d(t[0].coord,o[0])&&(n?t[0].coord=o[0]:t.shift()),n&&d(o[0],t[0].coord)&&t.unshift({coord:o[0]}),d(o[1],i.coord)&&(n?i.coord=o[1]:t.pop()),n&&d(i.coord,o[1])&&t.push({coord:o[1]});function d(f,v){return f=Ve(f),v=Ve(v),c?f>v:f<v}}const LF=MF;function LE(e,t,r,n,a,o,i,s){var l=a-e,u=o-t,x=r-e,c=n-t,d=Math.sqrt(x*x+c*c);x/=d,c/=d;var f=l*x+u*c,v=f/d;s&&(v=Math.min(Math.max(v,0),1)),v*=d;var g=i[0]=e+v*x,p=i[1]=t+v*c;return Math.sqrt((g-a)*(g-a)+(p-o)*(p-o))}var en=new fe,Le=new fe,Je=new fe,tn=new fe,dr=new fe,k0=[],xt=new fe;function OF(e,t){if(t<=180&&t>0){t=t/180*Math.PI,en.fromArray(e[0]),Le.fromArray(e[1]),Je.fromArray(e[2]),fe.sub(tn,en,Le),fe.sub(dr,Je,Le);var r=tn.len(),n=dr.len();if(!(r<.001||n<.001)){tn.scale(1/r),dr.scale(1/n);var a=tn.dot(dr),o=Math.cos(t);if(o<a){var i=LE(Le.x,Le.y,Je.x,Je.y,en.x,en.y,k0,!1);xt.fromArray(k0),xt.scaleAndAdd(dr,i/Math.tan(Math.PI-t));var s=Je.x!==Le.x?(xt.x-Le.x)/(Je.x-Le.x):(xt.y-Le.y)/(Je.y-Le.y);if(isNaN(s))return;s<0?fe.copy(xt,Le):s>1&&fe.copy(xt,Je),xt.toArray(e[1])}}}}function RF(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,en.fromArray(e[0]),Le.fromArray(e[1]),Je.fromArray(e[2]),fe.sub(tn,Le,en),fe.sub(dr,Je,Le);var n=tn.len(),a=dr.len();if(!(n<.001||a<.001)){tn.scale(1/n),dr.scale(1/a);var o=tn.dot(t),i=Math.cos(r);if(o<i){var s=LE(Le.x,Le.y,Je.x,Je.y,en.x,en.y,k0,!1);xt.fromArray(k0);var l=Math.PI/2,u=Math.acos(dr.dot(t)),x=l+u-r;if(x>=l)fe.copy(xt,Je);else{xt.scaleAndAdd(dr,s/Math.tan(Math.PI/2-x));var c=Je.x!==Le.x?(xt.x-Le.x)/(Je.x-Le.x):(xt.y-Le.y)/(Je.y-Le.y);if(isNaN(c))return;c<0?fe.copy(xt,Le):c>1&&fe.copy(xt,Je)}xt.toArray(e[1])}}}}function Qu(e,t,r,n){var a=r==="normal",o=a?e:e.ensureState(r);o.ignore=t;var i=n.get("smooth");i&&i===!0&&(i=.3),o.shape=o.shape||{},i>0&&(o.shape.smooth=i);var s=n.getModel("lineStyle").getLineStyle();a?e.useStyle(s):o.style=s}function VF(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=Ox(n[0],n[1]),o=Ox(n[1],n[2]);if(!a||!o){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var i=Math.min(a,o)*r,s=Yl([],n[1],n[0],i/a),l=Yl([],n[1],n[2],i/o),u=Yl([],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 x=1;x<n.length;x++)e.lineTo(n[x][0],n[x][1])}function $F(e,t,r){var n=e.getTextGuideLine(),a=e.getTextContent();if(!a){n&&e.removeTextGuideLine();return}for(var o=t.normal,i=o.get("show"),s=a.ignore,l=0;l<u0.length;l++){var u=u0[l],x=t[u],c=u==="normal";if(x){var d=x.get("show"),f=c?s:le(a.states[u]&&a.states[u].ignore,s);if(f||!le(d,i)){var v=c?n:n&&n.states[u];v&&(v.ignore=!0),n&&Qu(n,!0,u,x);continue}n||(n=new so,e.setTextGuideLine(n),!c&&(s||!i)&&Qu(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),Qu(n,!1,u,x)}}if(n){ge(n.style,r),n.style.fill=null;var g=o.get("showAbove"),p=e.textGuideLineConfig=e.textGuideLineConfig||{};p.showAbove=g||!1,n.buildPath=VF}}function zF(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<yt.length;n++){var a=yt[n];r[a]=e.getModel([a,t])}return r}function GF(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var a=n.label,o=a.getComputedTransform(),i=a.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=a.style.margin||0,u=i.clone();u.applyTransform(o),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var x=s?new f0(i,o):null;t.push({label:a,labelLine:n.labelLine,rect:u,localRect:i,obb:x,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:o})}}return t}function HF(e,t,r,n,a,o){var i=e.length;if(i<2)return;e.sort(function(C,w){return C.rect[t]-w.rect[t]});for(var s=0,l,u=!1,x=0,c=0;c<i;c++){var d=e[c],f=d.rect;l=f[t]-s,l<0&&(f[t]-=l,d.label[t]-=l,u=!0);var v=Math.max(-l,0);x+=v,s=f[t]+f[r]}x>0&&o&&D(-x/i,0,i);var g=e[0],p=e[i-1],m,E;y(),m<0&&A(-m,.8),E<0&&A(E,.8),y(),B(m,E,1),B(E,m,-1),y(),m<0&&_(-m),E<0&&_(E);function y(){m=g.rect[t]-n,E=a-p.rect[t]-p.rect[r]}function B(C,w,b){if(C<0){var F=Math.min(w,-C);if(F>0){D(F*b,0,i);var S=F+C;S<0&&A(-S*b,1)}else A(-C*b,1)}}function D(C,w,b){C!==0&&(u=!0);for(var F=w;F<b;F++){var S=e[F],P=S.rect;P[t]+=C,S.label[t]+=C}}function A(C,w){for(var b=[],F=0,S=1;S<i;S++){var P=e[S-1].rect,T=Math.max(e[S].rect[t]-P[t]-P[r],0);b.push(T),F+=T}if(F){var N=Math.min(Math.abs(C)/F,w);if(C>0)for(var S=0;S<i-1;S++){var M=b[S]*N;D(M,0,S+1)}else for(var S=i-1;S>0;S--){var M=b[S-1]*N;D(-M,S,i)}}}function _(C){var w=C<0?-1:1;C=Math.abs(C);for(var b=Math.ceil(C/(i-1)),F=0;F<i-1;F++)if(w>0?D(b,0,F+1):D(-b,i-F-1,i),C-=b,C<=0)return}return u}function UF(e,t,r,n){return HF(e,"y","height",t,r,n)}function WF(e){var t=[];e.sort(function(g,p){return p.priority-g.priority});var r=new Ae(0,0,0,0);function n(g){if(!g.ignore){var p=g.ensureState("emphasis");p.ignore==null&&(p.ignore=!1)}g.ignore=!0}for(var a=0;a<e.length;a++){var o=e[a],i=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,x=o.labelLine;r.copy(o.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var c=o.obb,d=!1,f=0;f<t.length;f++){var v=t[f];if(r.intersect(v.rect)){if(i&&v.axisAligned){d=!0;break}if(v.obb||(v.obb=new f0(v.localRect,v.transform)),c||(c=new f0(s,l)),c.intersect(v.obb)){d=!0;break}}}d?(n(u),x&&n(x)):(u.attr("ignore",o.defaultAttr.ignore),x&&x.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}var YF=function(e){W(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 bl(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new Oe,a=Vr("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(a),a.setStyle(r.lineStyle);var o=this.getData().getVisual("symbol"),i=this.getData().getVisual("symbolRotate"),s=o==="none"?"circle":o,l=r.itemHeight*.8,u=Vr(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var x=r.iconRotate==="inherit"?i:r.iconRotate||0;return u.rotation=x*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 XF=YF;function ki(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var a=eo(e,t,r[0]);return a!=null?a+"":null}else if(n){for(var o=[],i=0;i<r.length;i++)o.push(eo(e,t,r[i]));return o.join(" ")}}function OE(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!Y(t))return t+"";for(var n=[],a=0;a<r.length;a++){var o=e.getDimensionIndex(r[a]);o>=0&&n.push(t[o])}return n.join(" ")}var gd=function(e){W(t,e);function t(r,n,a,o){var i=e.call(this)||this;return i.updateData(r,n,a,o),i}return t.prototype._createSymbol=function(r,n,a,o,i){this.removeAll();var s=Vr(r,-1,-1,2,2,null,i);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=jF,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(){yi(this.childAt(0))},t.prototype.downplay=function(){Ci(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,o){this.silent=!1;var i=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=i!==this._symbolType,x=o&&o.disableAnimation;if(u){var c=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(i,r,n,l,c)}else{var d=this.childAt(0);d.silent=!1;var f={scaleX:l[0]/2,scaleY:l[1]/2};x?d.attr(f):st(d,f,s,n),Vf(d)}if(this._updateCommon(r,n,l,a,o),u){var d=this.childAt(0);if(!x){var f={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,bt(d,f,s,n)}}x&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,a,o,i){var s=this.childAt(0),l=r.hostModel,u,x,c,d,f,v,g,p,m;if(o&&(u=o.emphasisItemStyle,x=o.blurItemStyle,c=o.selectItemStyle,d=o.focus,f=o.blurScope,g=o.labelStatesModels,p=o.hoverScale,m=o.cursorStyle,v=o.emphasisDisabled),!o||r.hasItemOption){var E=o&&o.itemModel?o.itemModel:r.getItemModel(n),y=E.getModel("emphasis");u=y.getModel("itemStyle").getItemStyle(),c=E.getModel(["select","itemStyle"]).getItemStyle(),x=E.getModel(["blur","itemStyle"]).getItemStyle(),d=y.get("focus"),f=y.get("blurScope"),v=y.get("disabled"),g=ia(E),p=y.getShallow("scale"),m=E.getShallow("cursor")}var B=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(B||0)*Math.PI/180||0);var D=_l(r.getItemVisual(n,"symbolOffset"),a);D&&(s.x=D[0],s.y=D[1]),m&&s.attr("cursor",m);var A=r.getItemVisual(n,"style"),_=A.fill;if(s instanceof pn){var C=s.style;s.useStyle(H({image:C.image,x:C.x,y:C.y,width:C.width,height:C.height},A))}else s.__isEmptyBrush?s.useStyle(H({},A)):s.useStyle(A),s.style.decal=null,s.setColor(_,i&&i.symbolInnerColor),s.style.strokeNoScale=!0;var w=r.getItemVisual(n,"liftZ"),b=this._z2;w!=null?b==null&&(this._z2=s.z2,s.z2+=w):b!=null&&(s.z2=b,this._z2=null);var F=i&&i.useNameLabel;uo(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:S,inheritColor:_,defaultOpacity:A.opacity});function S(N){return F?r.getName(N):ki(r,N)}this._sizeX=a[0]/2,this._sizeY=a[1]/2;var P=s.ensureState("emphasis");P.style=u,s.ensureState("select").style=c,s.ensureState("blur").style=x;var T=p==null||p===!0?Math.max(1.1,3/this._sizeY):isFinite(p)&&p>0?+p:1;P.scaleX=this._sizeX*T,P.scaleY=this._sizeY*T,this.setSymbolScale(1),Qn(this,d,f,v)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,a){var o=this.childAt(0),i=me(this).dataIndex,s=a&&a.animation;if(this.silent=o.silent=!0,a&&a.fadeLabel){var l=o.getTextContent();l&&d0(l,{style:{opacity:0}},n,{dataIndex:i,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();d0(o,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:i,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return id(r.getItemVisual(n,"symbolSize"))},t}(Oe);function jF(e,t){this.parent.drift(e,t)}function ex(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 Hp(e){return e!=null&&!re(e)&&(e={isIgnore:e}),e||{}}function Up(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:ia(t),cursorStyle:t.get("cursor")}}var ZF=function(){function e(t){this.group=new Oe,this._SymbolCtor=t||gd}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=Hp(r);var n=this.group,a=t.hostModel,o=this._data,i=this._SymbolCtor,s=r.disableAnimation,l=Up(t),u={disableAnimation:s},x=r.getSymbolPoint||function(c){return t.getItemLayout(c)};o||n.removeAll(),t.diff(o).add(function(c){var d=x(c);if(ex(t,d,c,r)){var f=new i(t,c,l,u);f.setPosition(d),t.setItemGraphicEl(c,f),n.add(f)}}).update(function(c,d){var f=o.getItemGraphicEl(d),v=x(c);if(!ex(t,v,c,r)){n.remove(f);return}var g=t.getItemVisual(c,"symbol")||"circle",p=f&&f.getSymbolType&&f.getSymbolType();if(!f||p&&p!==g)n.remove(f),f=new i(t,c,l,u),f.setPosition(v);else{f.updateData(t,c,l,u);var m={x:v[0],y:v[1]};s?f.attr(m):st(f,m,a)}n.add(f),t.setItemGraphicEl(c,f)}).remove(function(c){var d=o.getItemGraphicEl(c);d&&d.fadeOut(function(){n.remove(d)},a)}).execute(),this._getSymbolPoint=x,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,a){var o=t._getSymbolPoint(a);n.setPosition(o),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Up(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=Hp(n);function a(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var o=t.start;o<t.end;o++){var i=r.getItemLayout(o);if(ex(r,i,o,n)){var s=new this._SymbolCtor(r,o,this._seriesScope);s.traverse(a),s.setPosition(i),this.group.add(s),r.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){lo(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 RE(e,t,r){var n=e.getBaseAxis(),a=e.getOtherAxis(n),o=qF(a,r),i=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(i),x=s==="x"||s==="radius"?1:0,c=q(e.dimensions,function(v){return t.mapDimension(v)}),d=!1,f=t.getCalculationInfo("stackResultDimension");return na(t,c[0])&&(d=!0,c[0]=f),na(t,c[1])&&(d=!0,c[1]=f),{dataDimsForPoint:c,valueStart:o,valueAxisDim:s,baseAxisDim:i,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:x,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function qF(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:Se(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function VE(e,t,r,n){var a=NaN;e.stacked&&(a=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(a)&&(a=e.valueStart);var o=e.baseDataOffset,i=[];return i[o]=r.get(e.baseDim,n),i[1-o]=a,t.dataToPoint(i)}function KF(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 JF(e,t,r,n,a,o,i,s){for(var l=KF(e,t),u=[],x=[],c=[],d=[],f=[],v=[],g=[],p=RE(a,t,i),m=e.getLayout("points")||[],E=t.getLayout("points")||[],y=0;y<l.length;y++){var B=l[y],D=!0,A=void 0,_=void 0;switch(B.cmd){case"=":A=B.idx*2,_=B.idx1*2;var C=m[A],w=m[A+1],b=E[_],F=E[_+1];(isNaN(C)||isNaN(w))&&(C=b,w=F),u.push(C,w),x.push(b,F),c.push(r[A],r[A+1]),d.push(n[_],n[_+1]),g.push(t.getRawIndex(B.idx1));break;case"+":var S=B.idx,P=p.dataDimsForPoint,T=a.dataToPoint([t.get(P[0],S),t.get(P[1],S)]);_=S*2,u.push(T[0],T[1]),x.push(E[_],E[_+1]);var N=VE(p,a,t,S);c.push(N[0],N[1]),d.push(n[_],n[_+1]),g.push(t.getRawIndex(S));break;case"-":D=!1}D&&(f.push(B),v.push(v.length))}v.sort(function(he,ee){return g[he]-g[ee]});for(var M=u.length,L=Sr(M),O=Sr(M),V=Sr(M),$=Sr(M),I=[],y=0;y<v.length;y++){var U=v[y],j=y*2,G=U*2;L[j]=u[G],L[j+1]=u[G+1],O[j]=x[G],O[j+1]=x[G+1],V[j]=c[G],V[j+1]=c[G+1],$[j]=d[G],$[j+1]=d[G+1],I[y]=f[U]}return{current:L,next:O,stackedOnCurrent:V,stackedOnNext:$,status:I}}var Xr=Math.min,jr=Math.max;function Xn(e,t){return isNaN(e)||isNaN(t)}function _c(e,t,r,n,a,o,i,s,l){for(var u,x,c,d,f,v,g=r,p=0;p<n;p++){var m=t[g*2],E=t[g*2+1];if(g>=a||g<0)break;if(Xn(m,E)){if(l){g+=o;continue}break}if(g===r)e[o>0?"moveTo":"lineTo"](m,E),c=m,d=E;else{var y=m-u,B=E-x;if(y*y+B*B<.5){g+=o;continue}if(i>0){for(var D=g+o,A=t[D*2],_=t[D*2+1];A===m&&_===E&&p<n;)p++,D+=o,g+=o,A=t[D*2],_=t[D*2+1],m=t[g*2],E=t[g*2+1],y=m-u,B=E-x;var C=p+1;if(l)for(;Xn(A,_)&&C<n;)C++,D+=o,A=t[D*2],_=t[D*2+1];var w=.5,b=0,F=0,S=void 0,P=void 0;if(C>=n||Xn(A,_))f=m,v=E;else{b=A-u,F=_-x;var T=m-u,N=A-m,M=E-x,L=_-E,O=void 0,V=void 0;if(s==="x"){O=Math.abs(T),V=Math.abs(N);var $=b>0?1:-1;f=m-$*O*i,v=E,S=m+$*V*i,P=E}else if(s==="y"){O=Math.abs(M),V=Math.abs(L);var I=F>0?1:-1;f=m,v=E-I*O*i,S=m,P=E+I*V*i}else O=Math.sqrt(T*T+M*M),V=Math.sqrt(N*N+L*L),w=V/(V+O),f=m-b*i*(1-w),v=E-F*i*(1-w),S=m+b*i*w,P=E+F*i*w,S=Xr(S,jr(A,m)),P=Xr(P,jr(_,E)),S=jr(S,Xr(A,m)),P=jr(P,Xr(_,E)),b=S-m,F=P-E,f=m-b*O/V,v=E-F*O/V,f=Xr(f,jr(u,m)),v=Xr(v,jr(x,E)),f=jr(f,Xr(u,m)),v=jr(v,Xr(x,E)),b=m-f,F=E-v,S=m+b*V/O,P=E+F*V/O}e.bezierCurveTo(c,d,f,v,m,E),c=S,d=P}else e.lineTo(m,E)}u=m,x=E,g+=o}return p}var $E=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),QF=function(e){W(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 $E},t.prototype.buildPath=function(r,n){var a=n.points,o=0,i=a.length/2;if(n.connectNulls){for(;i>0&&Xn(a[i*2-2],a[i*2-1]);i--);for(;o<i&&Xn(a[o*2],a[o*2+1]);o++);}for(;o<i;)o+=_c(r,a,o,i,i,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,o=a.data,i=Jn.CMD,s,l,u=n==="x",x=[],c=0;c<o.length;){var d=o[c++],f=void 0,v=void 0,g=void 0,p=void 0,m=void 0,E=void 0,y=void 0;switch(d){case i.M:s=o[c++],l=o[c++];break;case i.L:if(f=o[c++],v=o[c++],y=u?(r-s)/(f-s):(r-l)/(v-l),y<=1&&y>=0){var B=u?(v-l)*y+l:(f-s)*y+s;return u?[r,B]:[B,r]}s=f,l=v;break;case i.C:f=o[c++],v=o[c++],g=o[c++],p=o[c++],m=o[c++],E=o[c++];var D=u?Qs(s,f,g,m,r,x):Qs(l,v,p,E,r,x);if(D>0)for(var A=0;A<D;A++){var _=x[A];if(_<=1&&_>=0){var B=u?Ue(l,v,p,E,_):Ue(s,f,g,m,_);return u?[r,B]:[B,r]}}s=m,l=E;break}}},t}(ye),eb=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}($E),tb=function(e){W(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 eb},t.prototype.buildPath=function(r,n){var a=n.points,o=n.stackedOnPoints,i=0,s=a.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Xn(a[s*2-2],a[s*2-1]);s--);for(;i<s&&Xn(a[i*2],a[i*2+1]);i++);}for(;i<s;){var u=_c(r,a,i,s,s,1,n.smooth,l,n.connectNulls);_c(r,o,i+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),i+=u+1,r.closePath()}},t}(ye);function zE(e,t,r,n,a){var o=e.getArea(),i=o.x,s=o.y,l=o.width,u=o.height,x=r.get(["lineStyle","width"])||2;i-=x/2,s-=x/2,l+=x,u+=x,l=Math.ceil(l),i!==Math.floor(i)&&(i=Math.floor(i),l++);var c=new Me({shape:{x:i,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),f=d.isHorizontal(),v=d.inverse;f?(v&&(c.shape.x+=l),c.shape.width=0):(v||(c.shape.y+=u),c.shape.height=0);var g=xe(a)?function(p){a(p,c)}:null;bt(c,{shape:{width:l,height:u,x:i,y:s}},r,null,n,g)}return c}function GE(e,t,r){var n=e.getArea(),a=Ve(n.r0,1),o=Ve(n.r,1),i=new oa({shape:{cx:Ve(e.cx,1),cy:Ve(e.cy,1),r0:a,r:o,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?i.shape.endAngle=n.startAngle:i.shape.r=a,bt(i,{shape:{endAngle:n.endAngle,r:o}},r)}return i}function HE(e,t,r,n,a){if(e){if(e.type==="polar")return GE(e,t,r);if(e.type==="cartesian2d")return zE(e,t,r,n,a)}else return null;return null}function Nl(e,t){return e.type===t}function Wp(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function Yp(e){for(var t=1/0,r=1/0,n=-1/0,a=-1/0,o=0;o<e.length;){var i=e[o++],s=e[o++];isNaN(i)||(t=Math.min(i,t),n=Math.max(i,n)),isNaN(s)||(r=Math.min(s,r),a=Math.max(s,a))}return[[t,r],[n,a]]}function Xp(e,t){var r=Yp(e),n=r[0],a=r[1],o=Yp(t),i=o[0],s=o[1];return Math.max(Math.abs(n[0]-i[0]),Math.abs(n[1]-i[1]),Math.abs(a[0]-s[0]),Math.abs(a[1]-s[1]))}function jp(e){return Se(e)?e:e?.5:0}function rb(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),a=Sr(n*2),o=0;o<n;o++){var i=VE(r,e,t,o);a[o*2]=i[0],a[o*2+1]=i[1]}return a}function Zr(e,t,r,n){var a=t.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,i=[],s=0,l=[],u=[],x=[],c=[];if(n){for(s=0;s<e.length;s+=2)!isNaN(e[s])&&!isNaN(e[s+1])&&c.push(e[s],e[s+1]);e=c}for(s=0;s<e.length-2;s+=2)switch(x[0]=e[s+2],x[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],i.push(u[0],u[1]),r){case"end":l[o]=x[o],l[1-o]=u[1-o],i.push(l[0],l[1]);break;case"middle":var d=(u[o]+x[o])/2,f=[];l[o]=f[o]=d,l[1-o]=u[1-o],f[1-o]=x[1-o],i.push(l[0],l[1]),i.push(f[0],f[1]);break;default:l[o]=u[o],l[1-o]=x[1-o],i.push(l[0],l[1])}return i.push(e[s++],e[s++]),i}function nb(e,t){var r=[],n=e.length,a,o;function i(x,c,d){var f=x.coord,v=(d-f)/(c.coord-f),g=ZB(v,[x.color,c.color]);return{coord:d,color:g}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)a=l;else if(u>t){o?r.push(i(o,l,t)):a&&r.push(i(a,l,0),i(a,l,t));break}else a&&(r.push(i(a,l,0)),a=null),r.push(l),o=l}return r}function ab(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,o,i=n.length-1;i>=0;i--){var s=e.getDimensionInfo(n[i].dimension);if(a=s&&s.coordDim,a==="x"||a==="y"){o=n[i];break}}if(!o){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(o.stops,function(y){return{coord:l.toGlobalCoord(l.dataToCoord(y.value)),color:y.color}}),x=u.length,c=o.outerColors.slice();x&&u[0].coord>u[x-1].coord&&(u.reverse(),c.reverse());var d=nb(u,a==="x"?r.getWidth():r.getHeight()),f=d.length;if(!f&&x)return u[0].coord<0?c[1]?c[1]:u[x-1].color:c[0]?c[0]:u[0].color;var v=10,g=d[0].coord-v,p=d[f-1].coord+v,m=p-g;if(m<.001)return"transparent";k(d,function(y){y.offset=(y.coord-g)/m}),d.push({offset:f?d[f-1].offset:.5,color:c[1]||"transparent"}),d.unshift({offset:f?d[0].offset:.5,color:c[0]||"transparent"});var E=new I1(0,0,0,0,d,!0);return E[a]=g,E[a+"2"]=p,E}}function ob(e,t,r){var n=e.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var o=r.getAxesByScale("ordinal")[0];if(o&&!(a&&ib(o,t))){var i=t.mapDimension(o.dim),s={};return k(o.getViewLabels(),function(l){var u=o.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(i,l))}}}}function ib(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(),o=Math.max(1,Math.round(a/5)),i=0;i<a;i+=o)if(gd.getSymbolSize(t,i)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function sb(e,t){return isNaN(e)||isNaN(t)}function lb(e){for(var t=e.length/2;t>0&&sb(e[t*2-2],e[t*2-1]);t--);return t-1}function Zp(e,t){return[e[t*2],e[t*2+1]]}function ub(e,t,r){for(var n=e.length/2,a=r==="x"?0:1,o,i,s=0,l=-1,u=0;u<n;u++)if(i=e[u*2+a],!(isNaN(i)||isNaN(e[u*2+1-a]))){if(u===0){o=i;continue}if(o<=t&&i>=t||o>=t&&i<=t){l=u;break}s=u,o=i}return{range:[s,l],t:(t-o)/(i-o)}}function UE(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<yt.length;t++)if(e.get([yt[t],"endLabel","show"]))return!0;return!1}function tx(e,t,r,n){if(Nl(t,"cartesian2d")){var a=n.getModel("endLabel"),o=a.get("valueAnimation"),i=n.getData(),s={lastFrameIndex:0},l=UE(n)?function(f,v){e._endLabelOnDuring(f,v,i,s,o,a,t)}:null,u=t.getBaseAxis().isHorizontal(),x=zE(t,r,n,function(){var f=e._endLabel;f&&r&&s.originalX!=null&&f.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var c=x.shape,d=Math.max(c.width,c.height);u?(c.y-=d,c.height+=d*2):(c.x-=d,c.width+=d*2)}return l&&l(1,x),x}else return process.env.NODE_ENV!=="production"&&n.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),GE(t,r,n)}function xb(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),a=r.inverse,o=n?a?"right":"left":"center",i=n?"middle":a?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||i}}}var cb=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new Oe,n=new ZF;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r},t.prototype.render=function(r,n,a){var o=this,i=r.coordinateSystem,s=this.group,l=r.getData(),u=r.getModel("lineStyle"),x=r.getModel("areaStyle"),c=l.getLayout("points")||[],d=i.type==="polar",f=this._coordSys,v=this._symbolDraw,g=this._polyline,p=this._polygon,m=this._lineGroup,E=!n.ssr&&r.get("animation"),y=!x.isEmpty(),B=x.get("origin"),D=RE(i,l,B),A=y&&rb(i,l,D),_=r.get("showSymbol"),C=r.get("connectNulls"),w=_&&!d&&ob(r,l,i),b=this._data;b&&b.eachItemGraphicEl(function(ee,te){ee.__temp&&(s.remove(ee),b.setItemGraphicEl(te,null))}),_||v.remove(),s.add(m);var F=d?!1:r.get("step"),S;i&&i.getArea&&r.get("clip",!0)&&(S=i.getArea(),S.width!=null?(S.x-=.1,S.y-=.1,S.width+=.2,S.height+=.2):S.r0&&(S.r0-=.5,S.r+=.5)),this._clipShapeForSymbol=S;var P=ab(l,i,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(g&&f.type===i.type&&F===this._step))_&&v.updateData(l,{isIgnore:w,clipShape:S,disableAnimation:!0,getSymbolPoint:function(ee){return[c[ee*2],c[ee*2+1]]}}),E&&this._initSymbolLabelAnimation(l,i,S),F&&(c=Zr(c,i,F,C),A&&(A=Zr(A,i,F,C))),g=this._newPolyline(c),y?p=this._newPolygon(c,A):p&&(m.remove(p),p=this._polygon=null),d||this._initOrUpdateEndLabel(r,i,ea(P)),m.setClipPath(tx(this,i,!0,r));else{y&&!p?p=this._newPolygon(c,A):p&&!y&&(m.remove(p),p=this._polygon=null),d||this._initOrUpdateEndLabel(r,i,ea(P));var T=m.getClipPath();if(T){var N=tx(this,i,!1,r);bt(T,{shape:N.shape},r)}else m.setClipPath(tx(this,i,!0,r));_&&v.updateData(l,{isIgnore:w,clipShape:S,disableAnimation:!0,getSymbolPoint:function(ee){return[c[ee*2],c[ee*2+1]]}}),(!Wp(this._stackedOnPoints,A)||!Wp(this._points,c))&&(E?this._doUpdateAnimation(l,A,i,a,F,B,C):(F&&(c=Zr(c,i,F,C),A&&(A=Zr(A,i,F,C))),g.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:A})))}var M=r.getModel("emphasis"),L=M.get("focus"),O=M.get("blurScope"),V=M.get("disabled");if(g.useStyle(ge(u.getLineStyle(),{fill:"none",stroke:P,lineJoin:"bevel"})),c0(g,r,"lineStyle"),g.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var $=g.getState("emphasis").style;$.lineWidth=+g.style.lineWidth+1}me(g).seriesIndex=r.seriesIndex,Qn(g,L,O,V);var I=jp(r.get("smooth")),U=r.get("smoothMonotone");if(g.setShape({smooth:I,smoothMonotone:U,connectNulls:C}),p){var j=l.getCalculationInfo("stackedOnSeries"),G=0;p.useStyle(ge(x.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),j&&(G=jp(j.get("smooth"))),p.setShape({smooth:I,stackedOnSmooth:G,smoothMonotone:U,connectNulls:C}),c0(p,r,"areaStyle"),me(p).seriesIndex=r.seriesIndex,Qn(p,L,O,V)}var he=function(ee){o._changePolyState(ee)};l.eachItemGraphicEl(function(ee){ee&&(ee.onHoverStateChange=he)}),this._polyline.onHoverStateChange=he,this._data=l,this._coordSys=i,this._stackedOnPoints=A,this._points=c,this._step=F,this._valueOrigin=B,r.get("triggerLineEvent")&&(this.packEventData(r,g),p&&this.packEventData(r,p))},t.prototype.packEventData=function(r,n){me(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,a,o){var i=r.getData(),s=Kn(i,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=i.getLayout("points"),u=i.getItemGraphicEl(s);if(!u){var x=l[s*2],c=l[s*2+1];if(isNaN(x)||isNaN(c)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(x,c))return;var d=r.get("zlevel")||0,f=r.get("z")||0;u=new gd(i,s),u.x=x,u.y=c,u.setZ(d,f);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=d,v.z=f,v.z2=this._polyline.z2+1),u.__temp=!0,i.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Zt.prototype.highlight.call(this,r,n,a,o)},t.prototype.downplay=function(r,n,a,o){var i=r.getData(),s=Kn(i,o);if(this._changePolyState("normal"),s!=null&&s>=0){var l=i.getItemGraphicEl(s);l&&(l.__temp?(i.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Zt.prototype.downplay.call(this,r,n,a,o)},t.prototype._changePolyState=function(r){var n=this._polygon;iv(this._polyline,r),n&&iv(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new QF({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 tb({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(r,n,a){var o,i,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(o=s.isHorizontal(),i=!1):n.type==="polar"&&(o=s.dim==="angle",i=!0);var u=r.hostModel,x=u.get("animationDuration");xe(x)&&(x=x(null));var c=u.get("animationDelay")||0,d=xe(c)?c(null):c;r.eachItemGraphicEl(function(f,v){var g=f;if(g){var p=[f.x,f.y],m=void 0,E=void 0,y=void 0;if(a)if(i){var B=a,D=n.pointToCoord(p);o?(m=B.startAngle,E=B.endAngle,y=-D[1]/180*Math.PI):(m=B.r0,E=B.r,y=D[0])}else{var A=a;o?(m=A.x,E=A.x+A.width,y=f.x):(m=A.y+A.height,E=A.y,y=f.y)}var _=E===m?0:(y-m)/(E-m);l&&(_=1-_);var C=xe(c)?c(v):x*_+d,w=g.getSymbolPath(),b=w.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:C}),w.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,a){var o=r.getModel("endLabel");if(UE(r)){var i=r.getData(),s=this._polyline,l=i.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Ze({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var x=lb(l);x>=0&&(uo(s,ia(r,"endLabel"),{inheritColor:a,labelFetcher:r,labelDataIndex:x,defaultText:function(c,d,f){return f!=null?OE(i,f):ki(i,c)},enableTextSetter:!0},xb(o,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,a,o,i,s,l){var u=this._endLabel,x=this._polyline;if(u){r<1&&o.originalX==null&&(o.originalX=u.x,o.originalY=u.y);var c=a.getLayout("points"),d=a.hostModel,f=d.get("connectNulls"),v=s.get("precision"),g=s.get("distance")||0,p=l.getBaseAxis(),m=p.isHorizontal(),E=p.inverse,y=n.shape,B=E?m?y.x:y.y+y.height:m?y.x+y.width:y.y,D=(m?g:0)*(E?-1:1),A=(m?0:-g)*(E?-1:1),_=m?"x":"y",C=ub(c,B,_),w=C.range,b=w[1]-w[0],F=void 0;if(b>=1){if(b>1&&!f){var S=Zp(c,w[0]);u.attr({x:S[0]+D,y:S[1]+A}),i&&(F=d.getRawValue(w[0]))}else{var S=x.getPointOn(B,_);S&&u.attr({x:S[0]+D,y:S[1]+A});var P=d.getRawValue(w[0]),T=d.getRawValue(w[1]);i&&(F=X7(a,v,P,T,C.t))}o.lastFrameIndex=w[0]}else{var N=r===1||o.lastFrameIndex>0?w[0]:0,S=Zp(c,N);i&&(F=d.getRawValue(N)),u.attr({x:S[0]+D,y:S[1]+A})}if(i){var M=fl(u);typeof M.setLabelText=="function"&&M.setLabelText(F)}}},t.prototype._doUpdateAnimation=function(r,n,a,o,i,s,l){var u=this._polyline,x=this._polygon,c=r.hostModel,d=JF(this._data,r,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),f=d.current,v=d.stackedOnCurrent,g=d.next,p=d.stackedOnNext;if(i&&(f=Zr(d.current,a,i,l),v=Zr(d.stackedOnCurrent,a,i,l),g=Zr(d.next,a,i,l),p=Zr(d.stackedOnNext,a,i,l)),Xp(f,g)>3e3||x&&Xp(v,p)>3e3){u.stopAnimation(),u.setShape({points:g}),x&&(x.stopAnimation(),x.setShape({points:g,stackedOnPoints:p}));return}u.shape.__points=d.current,u.shape.points=f;var m={shape:{points:g}};d.current!==f&&(m.shape.__points=d.next),u.stopAnimation(),st(u,m,c),x&&(x.setShape({points:f,stackedOnPoints:v}),x.stopAnimation(),st(x,{shape:{stackedOnPoints:p}},c),u.shape.points!==x.shape.points&&(x.shape.points=u.shape.points));for(var E=[],y=d.status,B=0;B<y.length;B++){var D=y[B].cmd;if(D==="="){var A=r.getItemGraphicEl(y[B].idx1);A&&E.push({el:A,ptIdx:B})}}u.animators&&u.animators.length&&u.animators[0].during(function(){x&&x.dirtyShape();for(var _=u.shape.__points,C=0;C<E.length;C++){var w=E[C].el,b=E[C].ptIdx*2;w.x=_[b],w.y=_[b+1],w.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(o,i){o.__temp&&(n.remove(o),a.setItemGraphicEl(i,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Zt);const fb=cb;function db(e,t){return{seriesType:e,plan:nd(),reset:function(r){var n=r.getData(),a=r.coordinateSystem,o=r.pipelineContext,i=t||o.large;if(a){var s=q(a.dimensions,function(f){return n.mapDimension(f)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");na(n,s[0])&&(s[0]=u),na(n,s[1])&&(s[1]=u);var x=n.getStore(),c=n.getDimensionIndex(s[0]),d=n.getDimensionIndex(s[1]);return l&&{progress:function(f,v){for(var g=f.end-f.start,p=i&&Sr(g*l),m=[],E=[],y=f.start,B=0;y<f.end;y++){var D=void 0;if(l===1){var A=x.get(c,y);D=a.dataToPoint(A,null,E)}else m[0]=x.get(c,y),m[1]=x.get(d,y),D=a.dataToPoint(m,null,E);i?(p[B++]=D[0],p[B++]=D[1]):v.setItemLayout(y,D.slice())}i&&v.setLayout("points",p)}}}}}}var hb={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],o=Math.abs(a);o>t&&(t=o,r=a)}return isFinite(r)?r:NaN},nearest:function(e){return e[0]}},vb=function(e){return Math.round(e.length/2)};function WE(e){return{seriesType:e,reset:function(t,r,n){var a=t.getData(),o=t.get("sampling"),i=t.coordinateSystem,s=a.count();if(s>10&&i.type==="cartesian2d"&&o){var l=i.getBaseAxis(),u=i.getOtherAxis(l),x=l.getExtent(),c=n.getDevicePixelRatio(),d=Math.abs(x[1]-x[0])*(c||1),f=Math.round(s/d);if(isFinite(f)&&f>1){o==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/f));var v=void 0;K(o)?v=hb[o]:xe(o)&&(v=o),v&&t.setData(a.downSample(a.mapDimension(u.dim),1/f,v,vb))}}}}}function pb(e){e.registerChartView(fb),e.registerSeriesModel(XF),e.registerLayout(db("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,WE("line"))}var wc=function(e){W(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 bl(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,a){var o=this.coordinateSystem;if(o&&o.clampData){var i=o.clampData(r),s=o.dataToPoint(i);if(a)k(o.getAxes(),function(d,f){if(d.type==="category"&&n!=null){var v=d.getTicksCoords(),g=d.getTickModel().get("alignWithLabel"),p=i[f],m=n[f]==="x1"||n[f]==="y1";if(m&&!g&&(p+=1),v.length<2)return;if(v.length===2){s[f]=d.toGlobalCoord(d.getExtent()[m?1:0]);return}for(var E=void 0,y=void 0,B=1,D=0;D<v.length;D++){var A=v[D].coord,_=D===v.length-1?v[D-1].tickValue+B:v[D].tickValue;if(_===p){y=A;break}else if(_<p)E=A;else if(E!=null&&_>p){y=(A+E)/2;break}D===1&&(B=_-v[0].tickValue)}y==null&&(E?E&&(y=v[v.length-1].coord):y=v[0].coord),s[f]=d.toGlobalCoord(y)}});else{var l=this.getData(),u=l.getLayout("offset"),x=l.getLayout("size"),c=o.getBaseAxis().isHorizontal()?0:1;s[c]+=u+x/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(wc);var gb=function(e){W(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 bl(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=hl(wc.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}(wc);const mb=gb;var Eb=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}(),qp=function(e){W(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new Eb},t.prototype.buildPath=function(r,n){var a=n.cx,o=n.cy,i=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-i)*.5,u=i+l,x=n.startAngle,c=n.endAngle,d=n.clockwise,f=Math.PI*2,v=d?c-x<f:x-c<f;v||(x=c-(d?f:-f));var g=Math.cos(x),p=Math.sin(x),m=Math.cos(c),E=Math.sin(c);v?(r.moveTo(g*i+a,p*i+o),r.arc(g*u+a,p*u+o,l,-Math.PI+x,x,!d)):r.moveTo(g*s+a,p*s+o),r.arc(a,o,s,x,c,!d),r.arc(m*u+a,E*u+o,l,c-Math.PI*2,c-Math.PI,!d),i!==0&&r.arc(a,o,i,c,x,d)},t}(ye);function yb(e,t){t=t||{};var r=t.isRoundCap;return function(n,a,o){var i=a.position;if(!i||i instanceof Array)return a0(n,a,o);var s=e(i),l=a.distance!=null?a.distance:5,u=this.shape,x=u.cx,c=u.cy,d=u.r,f=u.r0,v=(d+f)/2,g=u.startAngle,p=u.endAngle,m=(g+p)/2,E=r?Math.abs(d-f)/2:0,y=Math.cos,B=Math.sin,D=x+d*y(g),A=c+d*B(g),_="left",C="top";switch(s){case"startArc":D=x+(f-l)*y(m),A=c+(f-l)*B(m),_="center",C="top";break;case"insideStartArc":D=x+(f+l)*y(m),A=c+(f+l)*B(m),_="center",C="bottom";break;case"startAngle":D=x+v*y(g)+ws(g,l+E,!1),A=c+v*B(g)+Fs(g,l+E,!1),_="right",C="middle";break;case"insideStartAngle":D=x+v*y(g)+ws(g,-l+E,!1),A=c+v*B(g)+Fs(g,-l+E,!1),_="left",C="middle";break;case"middle":D=x+v*y(m),A=c+v*B(m),_="center",C="middle";break;case"endArc":D=x+(d+l)*y(m),A=c+(d+l)*B(m),_="center",C="bottom";break;case"insideEndArc":D=x+(d-l)*y(m),A=c+(d-l)*B(m),_="center",C="top";break;case"endAngle":D=x+v*y(p)+ws(p,l+E,!0),A=c+v*B(p)+Fs(p,l+E,!0),_="left",C="middle";break;case"insideEndAngle":D=x+v*y(p)+ws(p,-l+E,!0),A=c+v*B(p)+Fs(p,-l+E,!0),_="right",C="middle";break;default:return a0(n,a,o)}return n=n||{},n.x=D,n.y=A,n.align=_,n.verticalAlign=C,n}}function Cb(e,t,r,n){if(Se(n)){e.setTextConfig({rotation:n});return}else if(Y(t)){e.setTextConfig({rotation:0});return}var a=e.shape,o=a.clockwise?a.startAngle:a.endAngle,i=a.clockwise?a.endAngle:a.startAngle,s=(o+i)/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=o;break;case"endAngle":case"insideEndAngle":l=i;break;default:e.setTextConfig({rotation:0});return}var x=Math.PI*1.5-l;u==="middle"&&x>Math.PI/2&&x<Math.PI*1.5&&(x-=Math.PI),e.setTextConfig({rotation:x})}function ws(e,t,r){return t*Math.sin(e)*(r?-1:1)}function Fs(e,t,r){return t*Math.cos(e)*(r?1:-1)}function Qo(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;Y(n)||(n=[n,n,n,n]);var a=Math.abs(t.r||0-t.r0||0);return{cornerRadius:q(n,function(o){return fn(o,a)})}}var rx=Math.max,nx=Math.min;function Bb(e,t){var r=e.getArea&&e.getArea();if(Nl(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 Ab=function(e){W(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,o){this._model=r,this._removeOnRenderedListener(a),this._updateDrawMode(r);var i=r.get("coordinateSystem");i==="cartesian2d"||i==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,a):this._renderNormal(r,n,a,o)):process.env.NODE_ENV!=="production"&&We("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){lo(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,o){var i=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,x=u.getBaseAxis(),c;u.type==="cartesian2d"?c=x.isHorizontal():u.type==="polar"&&(c=x.dim==="angle");var d=r.isAnimationEnabled()?r:null,f=Db(r,u);f&&this._enableRealtimeSort(f,s,a);var v=r.get("clip",!0)||f,g=Bb(u,s);i.removeClipPath();var p=r.get("roundCap",!0),m=r.get("showBackground",!0),E=r.getModel("backgroundStyle"),y=E.get("borderRadius")||0,B=[],D=this._backgroundEls,A=o&&o.isInitSort,_=o&&o.type==="changeAxisOrder";function C(F){var S=bs[u.type](s,F),P=Tb(u,c,S);return P.useStyle(E.getItemStyle()),u.type==="cartesian2d"?P.setShape("r",y):P.setShape("cornerRadius",y),B[F]=P,P}s.diff(l).add(function(F){var S=s.getItemModel(F),P=bs[u.type](s,F,S);if(m&&C(F),!(!s.hasValue(F)||!tg[u.type](P))){var T=!1;v&&(T=Kp[u.type](g,P));var N=Jp[u.type](r,s,F,P,c,d,x.model,!1,p);f&&(N.forceLabelAnimation=!0),rg(N,s,F,S,P,r,c,u.type==="polar"),A?N.attr({shape:P}):f?Qp(f,d,N,P,F,c,!1,!1):bt(N,{shape:P},r,F),s.setItemGraphicEl(F,N),i.add(N),N.ignore=T}}).update(function(F,S){var P=s.getItemModel(F),T=bs[u.type](s,F,P);if(m){var N=void 0;D.length===0?N=C(S):(N=D[S],N.useStyle(E.getItemStyle()),u.type==="cartesian2d"?N.setShape("r",y):N.setShape("cornerRadius",y),B[F]=N);var M=bs[u.type](s,F),L=XE(c,M,u);st(N,{shape:L},d,F)}var O=l.getItemGraphicEl(S);if(!s.hasValue(F)||!tg[u.type](T)){i.remove(O);return}var V=!1;if(v&&(V=Kp[u.type](g,T),V&&i.remove(O)),O?Vf(O):O=Jp[u.type](r,s,F,T,c,d,x.model,!!O,p),f&&(O.forceLabelAnimation=!0),_){var $=O.getTextContent();if($){var I=fl($);I.prevValue!=null&&(I.prevValue=I.value)}}else rg(O,s,F,P,T,r,c,u.type==="polar");A?O.attr({shape:T}):f?Qp(f,d,O,T,F,c,!0,_):st(O,{shape:T},r,F,null),s.setItemGraphicEl(F,O),O.ignore=V,i.add(O)}).remove(function(F){var S=l.getItemGraphicEl(F);S&&h0(S,r,F)}).execute();var w=this._backgroundGroup||(this._backgroundGroup=new Oe);w.removeAll();for(var b=0;b<B.length;++b)w.add(B[b]);i.add(w),this._backgroundEls=B,this._data=s},t.prototype._renderLarge=function(r,n,a){this._clear(),ag(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),ag(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&HE(r.coordinateSystem,!1,r),a=this.group;n?a.setClipPath(n):a.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,a){var o=this;if(n.count()){var i=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,a),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),x=u&&u.shape;return x&&Math.abs(i.isHorizontal()?x.height:x.width)||0};this._onRendered=function(){o._updateSortWithinSameData(n,s,i,a)},a.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,a){var o=[];return r.each(r.mapDimension(n.dim),function(i,s){var l=a(s);l=l??NaN,o.push({dataIndex:s,mappedValue:l,ordinalNumber:i})}),o.sort(function(i,s){return s.mappedValue-i.mappedValue}),{ordinalNumbers:q(o,function(i){return i.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,a){for(var o=a.scale,i=r.mapDimension(a.dim),s=Number.MAX_VALUE,l=0,u=o.getOrdinalMeta().categories.length;l<u;++l){var x=r.rawIndexOf(i,o.getRawOrdinalNumber(l)),c=x<0?Number.MIN_VALUE:n(r.indexOfRawIndex(x));if(c>s)return!0;s=c}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var a=n.scale,o=a.getExtent(),i=Math.max(0,o[0]),s=Math.min(o[1],a.getOrdinalMeta().categories.length-1);i<=s;++i)if(r.ordinalNumbers[i]!==a.getRawOrdinalNumber(i))return!0},t.prototype._updateSortWithinSameData=function(r,n,a,o){if(this._isOrderChangedWithinSameData(r,n,a)){var i=this._dataSort(r,a,n);this._isOrderDifferentInView(i,a)&&(this._removeOnRenderedListener(o),o.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",axisId:a.index,sortInfo:i}))}},t.prototype._dispatchInitSort=function(r,n,a){var o=n.baseAxis,i=this._dataSort(r,o,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});a.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",isInitSort:!0,axisId:o.index,sortInfo:i})},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(o){h0(o,r,me(o).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}(Zt),Kp={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,o=e.y+e.height,i=rx(t.x,e.x),s=nx(t.x+t.width,a),l=rx(t.y,e.y),u=nx(t.y+t.height,o),x=s<i,c=u<l;return t.x=x&&i>a?s:i,t.y=c&&l>o?u:l,t.width=x?0:s-i,t.height=c?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),x||c},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=nx(t.r,e.r),o=rx(t.r0,e.r0);t.r=a,t.r0=o;var i=a-o<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return i}},Jp={cartesian2d:function(e,t,r,n,a,o,i,s,l){var u=new Me({shape:H({},n),z2:1});if(u.__dataIndex=r,u.name="item",o){var x=u.shape,c=a?"height":"width";x[c]=0}return u},polar:function(e,t,r,n,a,o,i,s,l){var u=!a&&l?qp:oa,x=new u({shape:n,z2:1});x.name="item";var c=YE(a);if(x.calculateTextPosition=yb(c,{isRoundCap:u===qp}),o){var d=x.shape,f=a?"r":"endAngle",v={};d[f]=a?n.r0:n.startAngle,v[f]=n[f],(s?st:bt)(x,{shape:v},o)}return x}};function Db(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(process.env.NODE_ENV!=="production"&&r&&(n.type!=="category"&&We("`realtimeSort` will not work because this bar series is not based on a category axis."),t.type!=="cartesian2d"&&We("`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 Qp(e,t,r,n,a,o,i,s){var l,u;o?(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||(i?st:bt)(r,{shape:l},t,a,null);var x=t?e.baseAxis.model:null;(i?st:bt)(r,{shape:u},x,a)}function eg(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var _b=["x","y","width","height"],wb=["cx","cy","r","startAngle","endAngle"],tg={cartesian2d:function(e){return!eg(e,_b)},polar:function(e){return!eg(e,wb)}},bs={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),a=r?bb(r,n):0,o=n.width>0?1:-1,i=n.height>0?1:-1;return{x:n.x+o*a/2,y:n.y+i*a/2,width:n.width-o*a,height:n.height-i*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 Fb(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function YE(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 rg(e,t,r,n,a,o,i,s){var l=t.getItemVisual(r,"style");if(s){if(!o.get("roundCap")){var x=e.shape,c=Qo(n.getModel("itemStyle"),x,!0);H(x,c),e.setShape(x)}}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 f=s?i?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":i?a.height>=0?"bottom":"top":a.width>=0?"right":"left",v=ia(n);uo(e,v,{labelFetcher:o,labelDataIndex:r,defaultText:ki(o.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:f});var g=e.getTextContent();if(s&&g){var p=n.get(["label","position"]);e.textConfig.inside=p==="middle"?!0:null,Cb(e,p==="outside"?f:p,YE(i),n.get(["label","rotate"]))}s_(g,v,o.getRawValue(r),function(E){return OE(t,E)});var m=n.getModel(["emphasis"]);Qn(e,m.get("focus"),m.get("blurScope"),m.get("disabled")),c0(e,n),Fb(a)&&(e.style.fill="none",e.style.stroke="none",k(e.states,function(E){E.style&&(E.style.fill=E.style.stroke="none")}))}function bb(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),o=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,a,o)}var Sb=function(){function e(){}return e}(),ng=function(e){W(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new Sb},t.prototype.buildPath=function(r,n){for(var a=n.points,o=this.baseDimIdx,i=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,x=0;x<a.length;x+=3)l[o]=u,l[i]=a[x+2],s[o]=a[x+o],s[i]=a[x+i],r.rect(s[0],s[1],l[0],l[1])},t}(ye);function ag(e,t,r,n){var a=e.getData(),o=a.getLayout("valueAxisHorizontal")?1:0,i=a.getLayout("largeDataIndices"),s=a.getLayout("size"),l=e.getModel("backgroundStyle"),u=a.getLayout("largeBackgroundPoints");if(u){var x=new ng({shape:{points:u},incremental:!!n,silent:!0,z2:0});x.baseDimIdx=o,x.largeDataIndices=i,x.barWidth=s,x.useStyle(l.getItemStyle()),t.add(x),r&&r.push(x)}var c=new ng({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});c.baseDimIdx=o,c.largeDataIndices=i,c.barWidth=s,t.add(c),c.useStyle(a.getVisual("style")),me(c).seriesIndex=e.seriesIndex,e.get("silent")||(c.on("mousedown",og),c.on("mousemove",og)),r&&r.push(c)}var og=od(function(e){var t=this,r=kb(t,e.offsetX,e.offsetY);me(t).dataIndex=r>=0?r:null},30,!1);function kb(e,t,r){for(var n=e.baseDimIdx,a=1-n,o=e.shape.points,i=e.largeDataIndices,s=[],l=[],u=e.barWidth,x=0,c=o.length/3;x<c;x++){var d=x*3;if(l[n]=u,l[a]=o[d+2],s[n]=o[d+n],s[a]=o[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 i[x]}return-1}function XE(e,t,r){if(Nl(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(),o=t;return{cx:a.cx,cy:a.cy,r0:e?a.r0:o.r0,r:e?a.r:o.r,startAngle:e?o.startAngle:0,endAngle:e?o.endAngle:Math.PI*2}}}function Tb(e,t,r){var n=e.type==="polar"?oa:Me;return new n({shape:XE(t,r,e),silent:!0,z2:0})}const Nb=Ab;function Pb(e){e.registerChartView(Nb),e.registerSeriesModel(mb),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,we(Q3,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,eF("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,WE("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 ig=Math.PI*2,Ss=Math.PI/180;function jE(e,t){return ta(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function ZE(e,t){var r=jE(e,t),n=e.get("center"),a=e.get("radius");Y(a)||(a=[0,a]);var o=be(r.width,t.getWidth()),i=be(r.height,t.getHeight()),s=Math.min(o,i),l=be(a[0],s/2),u=be(a[1],s/2),x,c,d=e.coordinateSystem;if(d){var f=d.dataToPoint(n);x=f[0]||0,c=f[1]||0}else Y(n)||(n=[n,n]),x=be(n[0],o)+r.x,c=be(n[1],i)+r.y;return{cx:x,cy:c,r0:l,r:u}}function Mb(e,t,r){t.eachSeriesByType(e,function(n){var a=n.getData(),o=a.mapDimension("value"),i=jE(n,r),s=ZE(n,r),l=s.cx,u=s.cy,x=s.r,c=s.r0,d=-n.get("startAngle")*Ss,f=n.get("endAngle"),v=n.get("padAngle")*Ss;f=f==="auto"?d-ig:-f*Ss;var g=n.get("minAngle")*Ss,p=g+v,m=0;a.each(o,function(M){!isNaN(M)&&m++});var E=a.getSum(o),y=Math.PI/(E||m)*2,B=n.get("clockwise"),D=n.get("roseType"),A=n.get("stillShowZeroSum"),_=a.getDataExtent(o);_[0]=0;var C=B?1:-1,w=[d,f],b=C*v/2;Q9(w,!B),d=w[0],f=w[1];var F=Math.abs(f-d),S=F,P=0,T=d;if(a.setLayout({viewRect:i,r:x}),a.each(o,function(M,L){var O;if(isNaN(M)){a.setItemLayout(L,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:B,cx:l,cy:u,r0:c,r:D?NaN:x});return}D!=="area"?O=E===0&&A?y:M*y:O=F/m,O<p?(O=p,S-=p):P+=M;var V=T+C*O,$=0,I=0;v>O?($=T+C*O/2,I=$):($=T+b,I=V-b),a.setItemLayout(L,{angle:O,startAngle:$,endAngle:I,clockwise:B,cx:l,cy:u,r0:c,r:D?Ke(M,_,[c,x]):x}),T=V}),S<ig&&m)if(S<=.001){var N=F/m;a.each(o,function(M,L){if(!isNaN(M)){var O=a.getItemLayout(L);O.angle=N;var V=0,$=0;N<v?(V=d+C*(L+1/2)*N,$=V):(V=d+C*L*N+b,$=d+C*(L+1)*N-b),O.startAngle=V,O.endAngle=$}})}else y=S/P,T=d,a.each(o,function(M,L){if(!isNaN(M)){var O=a.getItemLayout(L),V=O.angle===p?p:M*y,$=0,I=0;V<v?($=T+C*V/2,I=$):($=T+b,I=T+C*V-b),O.startAngle=$,O.endAngle=I,T+=C*V}})})}function Ib(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(o){for(var i=a.getName(o),s=0;s<n.length;s++)if(!n[s].isSelected(i))return!1;return!0})}}}}var Lb=Math.PI/180;function sg(e,t,r,n,a,o,i,s,l,u){if(e.length<2)return;function x(g){for(var p=g.rB,m=p*p,E=0;E<g.list.length;E++){var y=g.list[E],B=Math.abs(y.label.y-r),D=n+y.len,A=D*D,_=Math.sqrt((1-Math.abs(B*B/m))*A),C=t+(_+y.len2)*a,w=C-y.label.x,b=y.targetTextWidth-w*a;qE(y,b,!0),y.label.x=C}}function c(g){for(var p={list:[],maxY:0},m={list:[],maxY:0},E=0;E<g.length;E++)if(g[E].labelAlignTo==="none"){var y=g[E],B=y.label.y>r?m:p,D=Math.abs(y.label.y-r);if(D>=B.maxY){var A=y.label.x-t-y.len2*a,_=n+y.len,C=Math.abs(A)<_?Math.sqrt(D*D/(1-A*A/_/_)):_;B.rB=C,B.maxY=D}B.list.push(y)}x(p),x(m)}for(var d=e.length,f=0;f<d;f++)if(e[f].position==="outer"&&e[f].labelAlignTo==="labelLine"){var v=e[f].label.x-u;e[f].linePoints[1][0]+=v,e[f].label.x=u}UF(e,l,l+i)&&c(e)}function Ob(e,t,r,n,a,o,i,s){for(var l=[],u=[],x=Number.MAX_VALUE,c=-Number.MAX_VALUE,d=0;d<e.length;d++){var f=e[d].label;ax(e[d])||(f.x<t?(x=Math.min(x,f.x),l.push(e[d])):(c=Math.max(c,f.x),u.push(e[d])))}for(var d=0;d<e.length;d++){var v=e[d];if(!ax(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var f=v.label,g=v.linePoints,p=void 0;v.labelAlignTo==="edge"?f.x<t?p=g[2][0]-v.labelDistance-i-v.edgeDistance:p=i+a-v.edgeDistance-g[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?f.x<t?p=x-i-v.bleedMargin:p=i+a-c-v.bleedMargin:f.x<t?p=f.x-i-v.bleedMargin:p=i+a-f.x-v.bleedMargin,v.targetTextWidth=p,qE(v,p)}}sg(u,t,r,n,1,a,o,i,s,c),sg(l,t,r,n,-1,a,o,i,s,x);for(var d=0;d<e.length;d++){var v=e[d];if(!ax(v)&&v.linePoints){var f=v.label,g=v.linePoints,m=v.labelAlignTo==="edge",E=f.style.padding,y=E?E[1]+E[3]:0,B=f.style.backgroundColor?0:y,D=v.rect.width+B,A=g[1][0]-g[2][0];m?f.x<t?g[2][0]=i+v.edgeDistance+D+v.labelDistance:g[2][0]=i+a-v.edgeDistance-D-v.labelDistance:(f.x<t?g[2][0]=f.x+v.labelDistance:g[2][0]=f.x-v.labelDistance,g[1][0]=g[2][0]+A),g[1][1]=g[2][1]=f.y}}}function qE(e,t,r){if(r===void 0&&(r=!1),e.labelStyleWidth==null){var n=e.label,a=n.style,o=e.rect,i=a.backgroundColor,s=a.padding,l=s?s[1]+s[3]:0,u=a.overflow,x=o.width+(i?0:l);if(t<x||r){var c=o.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",i)}else{var f=t-l,v=t<x?f:r?f>e.unconstrainedWidth?null:f:null;n.setStyle("width",v)}var g=n.getBoundingRect();o.width=g.width;var p=(n.style.margin||0)+2.1;o.height=g.height+p,o.y-=(o.height-c)/2}}}function ax(e){return e.position==="center"}function Rb(e){var t=e.getData(),r=[],n,a,o=!1,i=(e.get("minShowLabelAngle")||0)*Lb,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,x=s.x,c=s.y,d=s.height;function f(A){A.ignore=!0}function v(A){if(!A.ignore)return!0;for(var _ in A.states)if(A.states[_].ignore===!1)return!0;return!1}t.each(function(A){var _=t.getItemGraphicEl(A),C=_.shape,w=_.getTextContent(),b=_.getTextGuideLine(),F=t.getItemModel(A),S=F.getModel("label"),P=S.get("position")||F.get(["emphasis","label","position"]),T=S.get("distanceToLabelLine"),N=S.get("alignTo"),M=be(S.get("edgeDistance"),u),L=S.get("bleedMargin"),O=F.getModel("labelLine"),V=O.get("length");V=be(V,u);var $=O.get("length2");if($=be($,u),Math.abs(C.endAngle-C.startAngle)<i){k(w.states,f),w.ignore=!0,b&&(k(b.states,f),b.ignore=!0);return}if(v(w)){var I=(C.startAngle+C.endAngle)/2,U=Math.cos(I),j=Math.sin(I),G,he,ee,te;n=C.cx,a=C.cy;var ie=P==="inside"||P==="inner";if(P==="center")G=C.cx,he=C.cy,te="center";else{var ce=(ie?(C.r+C.r0)/2*U:C.r*U)+n,de=(ie?(C.r+C.r0)/2*j:C.r*j)+a;if(G=ce+U*3,he=de+j*3,!ie){var Z=ce+U*(V+l-C.r),Q=de+j*(V+l-C.r),$e=Z+(U<0?-1:1)*$,ke=Q;N==="edge"?G=U<0?x+M:x+u-M:G=$e+(U<0?-T:T),he=ke,ee=[[ce,de],[Z,Q],[$e,ke]]}te=ie?"center":N==="edge"?U>0?"right":"left":U>0?"left":"right"}var Ge=Math.PI,Xe=0,At=S.get("rotate");if(Se(At))Xe=At*(Ge/180);else if(P==="center")Xe=0;else if(At==="radial"||At===!0){var or=U<0?-I+Ge:-I;Xe=or}else if(At==="tangential"&&P!=="outside"&&P!=="outer"){var ze=Math.atan2(U,j);ze<0&&(ze=Ge*2+ze);var Gi=j>0;Gi&&(ze=Ge+ze),Xe=ze-Ge}if(o=!!Xe,w.x=G,w.y=he,w.rotation=Xe,w.setStyle({verticalAlign:"middle"}),ie){w.setStyle({align:te});var ca=w.states.select;ca&&(ca.x+=w.x,ca.y+=w.y)}else{var He=w.getBoundingRect().clone();He.applyTransform(w.getComputedTransform());var Eo=(w.style.margin||0)+2.1;He.y-=Eo/2,He.height+=Eo,r.push({label:w,labelLine:b,position:P,len:V,len2:$,minTurnAngle:O.get("minTurnAngle"),maxSurfaceAngle:O.get("maxSurfaceAngle"),surfaceNormal:new fe(U,j),linePoints:ee,textAlign:te,labelDistance:T,labelAlignTo:N,edgeDistance:M,bleedMargin:L,rect:He,unconstrainedWidth:He.width,labelStyleWidth:w.style.width})}_.setTextConfig({inside:ie})}}),!o&&e.get("avoidLabelOverlap")&&Ob(r,n,a,l,u,d,x,c);for(var g=0;g<r.length;g++){var p=r[g],m=p.label,E=p.labelLine,y=isNaN(m.x)||isNaN(m.y);if(m){m.setStyle({align:p.textAlign}),y&&(k(m.states,f),m.ignore=!0);var B=m.states.select;B&&(B.x+=m.x,B.y+=m.y)}if(E){var D=p.linePoints;y||!D?(k(E.states,f),E.ignore=!0):(OF(D,p.minTurnAngle),RF(D,p.surfaceNormal,p.maxSurfaceAngle),E.setShape({points:D}),m.__hostTarget.textGuideLineConfig={anchor:new fe(D[0][0],D[0][1])})}}}var Vb=function(e){W(t,e);function t(r,n,a){var o=e.call(this)||this;o.z2=2;var i=new Ze;return o.setTextContent(i),o.updateData(r,n,a,!0),o}return t.prototype.updateData=function(r,n,a,o){var i=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),x=r.getItemLayout(n),c=H(Qo(l.getModel("itemStyle"),x,!0),x);if(isNaN(c.startAngle)){i.setShape(c);return}if(o){i.setShape(c);var d=s.getShallow("animationType");s.ecModel.ssr?(bt(i,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),i.originX=c.cx,i.originY=c.cy):d==="scale"?(i.shape.r=x.r0,bt(i,{shape:{r:x.r}},s,n)):a!=null?(i.setShape({startAngle:a,endAngle:a}),bt(i,{shape:{startAngle:x.startAngle,endAngle:x.endAngle}},s,n)):(i.shape.endAngle=x.startAngle,st(i,{shape:{endAngle:x.endAngle}},s,n))}else Vf(i),st(i,{shape:c},s,n);i.useStyle(r.getItemVisual(n,"style")),c0(i,l);var f=(x.startAngle+x.endAngle)/2,v=s.get("selectedOffset"),g=Math.cos(f)*v,p=Math.sin(f)*v,m=l.getShallow("cursor");m&&i.attr("cursor",m),this._updateLabel(s,r,n),i.ensureState("emphasis").shape=H({r:x.r+(u.get("scale")&&u.get("scaleSize")||0)},Qo(u.getModel("itemStyle"),x)),H(i.ensureState("select"),{x:g,y:p,shape:Qo(l.getModel(["select","itemStyle"]),x)}),H(i.ensureState("blur"),{shape:Qo(l.getModel(["blur","itemStyle"]),x)});var E=i.getTextGuideLine(),y=i.getTextContent();E&&H(E.ensureState("select"),{x:g,y:p}),H(y.ensureState("select"),{x:g,y:p}),Qn(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,a){var o=this,i=n.getItemModel(a),s=i.getModel("labelLine"),l=n.getItemVisual(a,"style"),u=l&&l.fill,x=l&&l.opacity;uo(o,ia(i),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:x,defaultText:r.getFormattedLabel(a,"normal")||n.getName(a)});var c=o.getTextContent();o.setTextConfig({position:null,rotation:null}),c.attr({z2:10});var d=r.get(["label","position"]);if(d!=="outside"&&d!=="outer")o.removeTextGuideLine();else{var f=this.getTextGuideLine();f||(f=new so,this.setTextGuideLine(f)),$F(this,zF(i),{stroke:u,opacity:sn(s.get(["lineStyle","opacity"]),x,1)})}},t}(oa),$b=function(e){W(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,o){var i=r.getData(),s=this._data,l=this.group,u;if(!s&&i.count()>0){for(var x=i.getItemLayout(0),c=1;isNaN(x&&x.startAngle)&&c<i.count();++c)x=i.getItemLayout(c);x&&(u=x.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),i.count()===0&&r.get("showEmptyCircle")){var d=new oa({shape:ZE(r,a)});d.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}i.diff(s).add(function(f){var v=new Vb(i,f,u);i.setItemGraphicEl(f,v),l.add(v)}).update(function(f,v){var g=s.getItemGraphicEl(v);g.updateData(i,f,u),g.off("click"),l.add(g),i.setItemGraphicEl(f,g)}).remove(function(f){var v=s.getItemGraphicEl(f);h0(v,r,f)}).execute(),Rb(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=i)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var a=n.getData(),o=a.getItemLayout(0);if(o){var i=r[0]-o.cx,s=r[1]-o.cy,l=Math.sqrt(i*i+s*s);return l<=o.r&&l>=o.r0}},t.type="pie",t}(Zt);const zb=$b;function Gb(e,t,r){t=Y(t)&&{coordDimensions:t}||H({encodeDefine:e.getEncode()},t);var n=e.getSource(),a=fE(n,t).dimensions,o=new vi(a,e);return o.initData(n,r),o}var Hb=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 Ub=Hb;var Wb=Te(),Yb=function(e){W(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 Ub(ne(this.getData,this),ne(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Gb(this,{coordDimensions:["value"],encodeDefaulter:we(I_,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),a=Wb(n),o=a.seats;if(!o){var i=[];n.each(n.mapDimension("value"),function(l){i.push(l)}),o=a.seats=_7(i,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=o[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){l0(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 Xb=Yb;function jb(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(a){var o=n.mapDimension("value"),i=n.get(o,a);return!(Se(i)&&!isNaN(i)&&i<0)})}}}function Zb(e){e.registerChartView(zb),e.registerSeriesModel(Xb),yw("pie",e.registerAction),e.registerLayout(we(Mb,"pie")),e.registerProcessor(Ib("pie")),e.registerProcessor(jb("pie"))}var qb=function(e){W(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}(Fe);const Kb=qb;var Fc=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Et).models[0]},t.type="cartesian2dAxis",t}(Fe);er(Fc,DF);var KE={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)"]}}},Jb=Ee({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},KE),md=Ee({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}}},KE),Qb=Ee({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},md),eS=ge({logBase:10},md);const tS={category:Jb,value:md,time:Qb,log:eS};var rS={value:1,category:1,time:1,log:1};function lg(e,t,r,n){k(rS,function(a,o){var i=Ee(Ee({},tS[o],!0),n,!0),s=function(l){W(u,l);function u(){var x=l!==null&&l.apply(this,arguments)||this;return x.type=t+"Axis."+o,x}return u.prototype.mergeDefaultAndTheme=function(x,c){var d=_i(this),f=d?Ri(x):{},v=c.getTheme();Ee(x,v.get(o+"Axis")),Ee(x,this.getDefaultOption()),x.type=ug(x),d&&Qa(x,f,d)},u.prototype.optionUpdated=function(){var x=this.option;x.type==="category"&&(this.__ordinalMeta=Bc.createByAxisModel(this))},u.prototype.getCategories=function(x){var c=this.option;if(c.type==="category")return x?c.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+o,u.defaultOption=i,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",ug)}function ug(e){return e.type||(e.data?"category":"value")}var nS=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 aS=nS;var bc=["x","y"];function xg(e){return e.type==="interval"||e.type==="time"}var oS=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=bc,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!xg(r)||!xg(n))){var a=r.getExtent(),o=n.getExtent(),i=this.dataToPoint([a[0],o[0]]),s=this.dataToPoint([a[1],o[1]]),l=a[1]-a[0],u=o[1]-o[0];if(!(!l||!u)){var x=(s[0]-i[0])/l,c=(s[1]-i[1])/u,d=i[0]-a[0]*x,f=i[1]-o[0]*c,v=this._transform=[x,0,0,c,d,f];this._invTransform=Ef([],v)}}},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),o=this.dataToPoint(n),i=this.getArea(),s=new Ae(a[0],a[1],o[0]-a[0],o[1]-a[1]);return i.intersect(s)},t.prototype.dataToPoint=function(r,n,a){a=a||[];var o=r[0],i=r[1];if(this._transform&&o!=null&&isFinite(o)&&i!=null&&isFinite(i))return Gt(a,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return a[0]=s.toGlobalCoord(s.dataToCoord(o,n)),a[1]=l.toGlobalCoord(l.dataToCoord(i,n)),a},t.prototype.clampData=function(r,n){var a=this.getAxis("x").scale,o=this.getAxis("y").scale,i=a.getExtent(),s=o.getExtent(),l=a.parse(r[0]),u=o.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(i[0],i[1]),l),Math.max(i[0],i[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 Gt(a,r,this._invTransform);var o=this.getAxis("x"),i=this.getAxis("y");return a[0]=o.coordToData(o.toLocalCoord(r[0]),n),a[1]=i.coordToData(i.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(),o=Math.min(n[0],n[1])-r,i=Math.min(a[0],a[1])-r,s=Math.max(n[0],n[1])-o+r,l=Math.max(a[0],a[1])-i+r;return new Ae(o,i,s,l)},t}(aS),iS=function(e){W(t,e);function t(r,n,a,o,i){var s=e.call(this,r,n,a)||this;return s.index=0,s.type=o||"value",s.position=i||"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}(LF);const sS=iS;function Sc(e,t,r){r=r||{};var n=e.coordinateSystem,a=t.axis,o={},i=a.getAxesOnZeroOf()[0],s=a.position,l=i?"onZero":s,u=a.dim,x=n.getRect(),c=[x.x,x.x+x.width,x.y,x.y+x.height],d={left:0,right:1,top:0,bottom:1,onZero:2},f=t.get("offset")||0,v=u==="x"?[c[2]-f,c[3]+f]:[c[0]-f,c[1]+f];if(i){var g=i.toGlobalCoord(i.dataToCoord(0));v[d.onZero]=Math.max(Math.min(g,v[1]),v[0])}o.position=[u==="y"?v[d[l]]:c[0],u==="x"?v[d[l]]:c[3]],o.rotation=Math.PI/2*(u==="x"?0:1);var p={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=p[s],o.labelOffset=i?v[d[s]]-v[d.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),cn(r.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var m=t.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-m:m,o.z2=1,o}function cg(e){return e.get("coordinateSystem")==="cartesian2d"}function fg(e){var t={xAxisModel:null,yAxisModel:null};return k(t,function(r,n){var a=n.replace(/Model$/,""),o=e.getReferringComponents(a,Et).models[0];if(process.env.NODE_ENV!=="production"&&!o)throw new Error(a+' "'+sn(e.get(a+"Index"),e.get(a+"Id"),0)+'" not found');t[n]=o}),t}var ox=Math.log;function lS(e,t,r){var n=Vi.prototype,a=n.getTicks.call(r),o=n.getTicks.call(r,!0),i=a.length-1,s=n.getInterval.call(r),l=FE(e,t),u=l.extent,x=l.fixMin,c=l.fixMax;if(e.type==="log"){var d=ox(e.base);u=[ox(u[0])/d,ox(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:i,fixMin:x,fixMax:c});var f=n.getExtent.call(e);x&&(u[0]=f[0]),c&&(u[1]=f[1]);var v=n.getInterval.call(e),g=u[0],p=u[1];if(x&&c)v=(p-g)/i;else if(x)for(p=u[0]+v*i;p<u[1]&&isFinite(p)&&isFinite(u[1]);)v=Ju(v),p=u[0]+v*i;else if(c)for(g=u[1]-v*i;g>u[0]&&isFinite(g)&&isFinite(u[0]);)v=Ju(v),g=u[1]-v*i;else{var m=e.getTicks().length-1;m>i&&(v=Ju(v));var E=v*i;p=Math.ceil(u[1]/v)*v,g=Ve(p-E),g<0&&u[0]>=0?(g=0,p=Ve(E)):p>0&&u[1]<=0&&(p=0,g=-Ve(E))}var y=(a[0].value-o[0].value)/s,B=(a[i].value-o[i].value)/s;if(n.setExtent.call(e,g+v*y,p+v*B),n.setInterval.call(e,v),(y||B)&&n.setNiceExtent.call(e,g+v,p-v),process.env.NODE_ENV!=="production"){var D=n.getTicks.call(e);D[1]&&(!Y3(v)||Qx(D[1].value)>Qx(v))&&We("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}}var uS=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=bc,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(i){var s,l=De(i),u=l.length;if(u){for(var x=[],c=u-1;c>=0;c--){var d=+l[c],f=i[d],v=f.model,g=f.scale;Ac(g)&&v.get("alignTicks")&&v.get("interval")==null?x.push(f):(Vp(g,v),Ac(g)&&(s=f))}x.length&&(s||(s=x.pop(),Vp(s.scale,s.model)),k(x,function(p){lS(p.scale,p.model,s.scale)}))}}a(n.x),a(n.y);var o={};k(n.x,function(i){dg(n,"y",i,o)}),k(n.y,function(i){dg(n,"x",i,o)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var a=t.getBoxLayoutParams(),o=!n&&t.get("containLabel"),i=ta(a,{width:r.getWidth(),height:r.getHeight()});this._rect=i;var s=this._axesList;l(),o&&(k(s,function(u){if(!u.model.get(["axisLabel","inside"])){var x=CF(u);if(x){var c=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);i[c]-=x[c]+d,u.position==="top"?i.y+=x.height+d:u.position==="left"&&(i.x+=x.width+d)}}}),l()),k(this._coordsList,function(u){u.calcAffineTransform()});function l(){k(s,function(u){var x=u.isHorizontal(),c=x?[0,i.width]:[0,i.height],d=u.inverse?1:0;u.setExtent(c[d],c[1-d]),xS(u,x?i.x:i.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]}re(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var a=0,o=this._coordsList;a<o.length;a++)if(o[a].getAxis("x").index===t||o[a].getAxis("y").index===r)return o[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",Et).models[0],a=t.yAxisModel||r&&r.getReferringComponents("yAxis",Et).models[0],o=t.gridModel,i=this._coordsList,s,l;if(r)s=r.coordinateSystem,pe(i,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(o){var u=o.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,o=this,i={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(x,c){k(s.y,function(d,f){var v="x"+c+"y"+f,g=new oS(v);g.master=a,g.model=t,a._coordsMap[v]=g,a._coordsList.push(g),g.addAxis(x),g.addAxis(d)})});function u(x){return function(c,d){if(ix(c,t)){var f=c.get("position");x==="x"?f!=="top"&&f!=="bottom"&&(f=i.bottom?"top":"bottom"):f!=="left"&&f!=="right"&&(f=i.left?"right":"left"),i[f]=!0;var v=new sS(x,EF(c),[0,0],c.get("type"),f),g=v.type==="category";v.onBand=g&&c.get("boundaryGap"),v.inverse=c.get("inverse"),c.axis=v,v.model=c,v.grid=o,v.index=d,o._axesList.push(v),s[x][d]=v,l[x]++}}}},e.prototype._updateScale=function(t,r){k(this._axesList,function(a){if(a.scale.setExtent(1/0,-1/0),a.type==="category"){var o=a.model.get("categorySortInfo");a.scale.setSortInfo(o)}}),t.eachSeries(function(a){if(cg(a)){var o=fg(a),i=o.xAxisModel,s=o.yAxisModel;if(!ix(i,r)||!ix(s,r))return;var l=this.getCartesian(i.componentIndex,s.componentIndex),u=a.getData(),x=l.getAxis("x"),c=l.getAxis("y");n(u,x),n(u,c)}},this);function n(a,o){k(SE(a,o.dim),function(i){o.scale.unionExtentFromData(a,i)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return k(this.getCartesians(),function(a){var o=t!=null&&t!=="auto"?a.getAxis(t):a.getBaseAxis(),i=a.getOtherAxis(o);pe(r,o)<0&&r.push(o),pe(n,i)<0&&n.push(i)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(a,o){var i=new e(a,t,r);i.name="grid_"+o,i.resize(a,r,!0),a.coordinateSystem=i,n.push(i)}),t.eachSeries(function(a){if(cg(a)){var o=fg(a),i=o.xAxisModel,s=o.yAxisModel,l=i.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!l)throw new Error('Grid "'+sn(i.get("gridIndex"),i.get("gridId"),0)+'" not found');if(i.getCoordSysModel()!==s.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var u=l.coordinateSystem;a.coordinateSystem=u.getCartesian(i.componentIndex,s.componentIndex)}}),n},e.dimensions=bc,e}();function ix(e,t){return e.getCoordSysModel()===t}function dg(e,t,r,n){r.getAxesOnZeroOf=function(){return o?[o]:[]};var a=e[t],o,i=r.model,s=i.get(["axisLine","onZero"]),l=i.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)hg(a[l])&&(o=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&hg(a[u])&&!n[x(a[u])]){o=a[u];break}o&&(n[x(o)]=!0);function x(c){return c.dim+"_"+c.index}}function hg(e){return e&&e.type!=="category"&&e.type!=="time"&&yF(e)}function xS(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 cS=uS;var rn=Math.PI,jn=function(){function e(t,r){this.group=new Oe,this.opt=r,this.axisModel=t,ge(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Oe({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!vg[t]},e.prototype.add=function(t){vg[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var a=V9(r-t),o,i;return o0(a)?(i=n>0?"top":"bottom",o="center"):o0(a-rn)?(i=n>0?"bottom":"top",o="center"):(i="middle",a>0&&a<rn?o=n>0?"right":"left":o=n>0?"left":"right"),{rotation:a,textAlign:o,textVerticalAlign:i}},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}(),vg={axisLine:function(e,t,r,n){var a=t.get(["axisLine","show"]);if(a==="auto"&&e.handleAutoShown&&(a=e.handleAutoShown("axisLine")),!!a){var o=t.axis.getExtent(),i=n.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];i&&(Gt(s,s,i),Gt(l,l,i));var x=H({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new dn({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:x,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Bi(c.shape,c.style.lineWidth),c.anid="line",r.add(c);var d=t.get(["axisLine","symbol"]);if(d!=null){var f=t.get(["axisLine","symbolSize"]);K(d)&&(d=[d,d]),(K(f)||Se(f))&&(f=[f,f]);var v=_l(t.get(["axisLine","symbolOffset"])||0,f),g=f[0],p=f[1];k([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(m,E){if(d[E]!=="none"&&d[E]!=null){var y=Vr(d[E],-g/2,-p/2,g,p,x.stroke,!0),B=m.r+m.offset,D=u?l:s;y.attr({rotation:m.rotate,x:D[0]+B*Math.cos(e.rotation),y:D[1]-B*Math.sin(e.rotation),silent:!0,z2:11}),r.add(y)}})}}},axisTickLabel:function(e,t,r,n){var a=hS(r,n,t,e),o=pS(r,n,t,e);if(dS(t,o,a),vS(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var i=GF(q(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));WF(i)}},axisName:function(e,t,r,n){var a=cn(e.axisName,t.get("name"));if(a){var o=t.get("nameLocation"),i=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),x=u[0]>u[1]?-1:1,c=[o==="start"?u[0]-x*l:o==="end"?u[1]+x*l:(u[0]+u[1])/2,gg(o)?e.labelOffset+i*l:0],d,f=t.get("nameRotate");f!=null&&(f=f*rn/180);var v;gg(o)?d=jn.innerTextLayout(e.rotation,f??e.rotation,i):(d=fS(e.rotation,o,f||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(d.rotation)),!isFinite(v)&&(v=null)));var g=s.getFont(),p=t.get("nameTruncate",!0)||{},m=p.ellipsis,E=cn(e.nameTruncateMaxWidth,p.maxWidth,v),y=new Ze({x:c[0],y:c[1],rotation:d.rotation,silent:jn.isLabelSilent(t),style:Kt(s,{text:a,font:g,overflow:"truncate",width:E,ellipsis:m,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(zf({el:y,componentModel:t,itemName:a}),y.__fullText=a,y.anid="name",t.get("triggerEvent")){var B=jn.makeAxisEventDataBase(t);B.targetType="axisName",B.name=a,me(y).eventData=B}n.add(y),y.updateTransform(),r.add(y),y.decomposeTransform()}}};function fS(e,t,r,n){var a=V9(r-e),o,i,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return o0(a-rn/2)?(i=l?"bottom":"top",o="center"):o0(a-rn*1.5)?(i=l?"top":"bottom",o="center"):(i="middle",a<rn*1.5&&a>rn/2?o=l?"left":"right":o=l?"right":"left"),{rotation:a,textAlign:o,textVerticalAlign:i}}function dS(e,t,r){if(!bE(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),a=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var o=t[0],i=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],x=r[1],c=r[r.length-1],d=r[r.length-2];n===!1?(Tt(o),Tt(u)):pg(o,i)&&(n?(Tt(i),Tt(x)):(Tt(o),Tt(u))),a===!1?(Tt(s),Tt(c)):pg(l,s)&&(a?(Tt(l),Tt(d)):(Tt(s),Tt(c)))}}function Tt(e){e&&(e.ignore=!0)}function pg(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var a=gf([]);return mf(a,a,-e.rotation),r.applyTransform(Va([],a,e.getLocalTransform())),n.applyTransform(Va([],a,t.getLocalTransform())),r.intersect(n)}}function gg(e){return e==="middle"||e==="center"}function JE(e,t,r,n,a){for(var o=[],i=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;i[0]=u,i[1]=0,s[0]=u,s[1]=r,t&&(Gt(i,i,t),Gt(s,s,t));var x=new dn({shape:{x1:i[0],y1:i[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Bi(x.shape,x.style.lineWidth),x.anid=a+"_"+e[l].tickValue,o.push(x)}return o}function hS(e,t,r,n){var a=r.axis,o=r.getModel("axisTick"),i=o.get("show");if(i==="auto"&&n.handleAutoShown&&(i=n.handleAutoShown("axisTick")),!(!i||a.scale.isBlank())){for(var s=o.getModel("lineStyle"),l=n.tickDirection*o.get("length"),u=a.getTicksCoords(),x=JE(u,t.transform,l,ge(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;c<x.length;c++)e.add(x[c]);return x}}function vS(e,t,r,n){var a=r.axis,o=r.getModel("minorTick");if(!(!o.get("show")||a.scale.isBlank())){var i=a.getMinorTicksCoords();if(i.length)for(var s=o.getModel("lineStyle"),l=n*o.get("length"),u=ge(s.getLineStyle(),ge(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),x=0;x<i.length;x++)for(var c=JE(i[x],t.transform,l,u,"minorticks_"+x),d=0;d<c.length;d++)e.add(c[d])}}function pS(e,t,r,n){var a=r.axis,o=cn(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!o||a.scale.isBlank())){var i=r.getModel("axisLabel"),s=i.get("margin"),l=a.getViewLabels(),u=(cn(n.labelRotate,i.get("rotate"))||0)*rn/180,x=jn.innerTextLayout(n.rotation,u,n.labelDirection),c=r.getCategories&&r.getCategories(!0),d=[],f=jn.isLabelSilent(r),v=r.get("triggerEvent");return k(l,function(g,p){var m=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,E=g.formattedLabel,y=g.rawLabel,B=i;if(c&&c[m]){var D=c[m];re(D)&&D.textStyle&&(B=new ot(D.textStyle,i,r.ecModel))}var A=B.getTextColor()||r.get(["axisLine","lineStyle","color"]),_=a.dataToCoord(m),C=B.getShallow("align",!0)||x.textAlign,w=le(B.getShallow("alignMinLabel",!0),C),b=le(B.getShallow("alignMaxLabel",!0),C),F=B.getShallow("verticalAlign",!0)||B.getShallow("baseline",!0)||x.textVerticalAlign,S=le(B.getShallow("verticalAlignMinLabel",!0),F),P=le(B.getShallow("verticalAlignMaxLabel",!0),F),T=new Ze({x:_,y:n.labelOffset+n.labelDirection*s,rotation:x.rotation,silent:f,z2:10+(g.level||0),style:Kt(B,{text:E,align:p===0?w:p===l.length-1?b:C,verticalAlign:p===0?S:p===l.length-1?P:F,fill:xe(A)?A(a.type==="category"?y:a.type==="value"?m+"":m,p):A})});if(T.anid="label_"+m,v){var N=jn.makeAxisEventDataBase(r);N.targetType="axisLabel",N.value=y,N.tickIndex=p,a.type==="category"&&(N.dataIndex=m),me(T).eventData=N}t.add(T),T.updateTransform(),d.push(T),e.add(T),T.decomposeTransform()}),d}}const QE=jn;function gS(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return mS(r,e,t),r.seriesInvolved&&yS(r,e),r}function mS(e,t,r){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),o=a.get("link",!0)||[],i=[];k(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Ti(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var x=s.model,c=x.getModel("tooltip",n);if(k(s.getAxes(),we(g,!1,null)),s.getTooltipAxes&&n&&c.get("show")){var d=c.get("trigger")==="axis",f=c.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(c.get(["axisPointer","axis"]));(d||f)&&k(v.baseAxes,we(g,f?"cross":!0,d)),f&&k(v.otherAxes,we(g,"cross",!1))}function g(p,m,E){var y=E.model.getModel("axisPointer",a),B=y.get("show");if(!(!B||B==="auto"&&!p&&!kc(y))){m==null&&(m=y.get("triggerTooltip")),y=p?ES(E,c,a,t,p,m):y;var D=y.get("snap"),A=y.get("triggerEmphasis"),_=Ti(E.model),C=m||D||E.type==="category",w=e.axesInfo[_]={key:_,axis:E,coordSys:s,axisPointerModel:y,triggerTooltip:m,triggerEmphasis:A,involveSeries:C,snap:D,useHandle:kc(y),seriesModels:[],linkGroup:null};u[_]=w,e.seriesInvolved=e.seriesInvolved||C;var b=CS(o,E);if(b!=null){var F=i[b]||(i[b]={axesInfo:{}});F.axesInfo[_]=w,F.mapper=o[b].mapper,w.linkGroup=F}}}})}function ES(e,t,r,n,a,o){var i=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};k(s,function(d){l[d]=ve(i.get(d))}),l.snap=e.type!=="category"&&!!o,i.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),a==="cross"){var x=i.get(["label","show"]);if(u.show=x??!0,!o){var c=l.lineStyle=i.get("crossStyle");c&&ge(u,c.textStyle)}}return e.model.getModel("axisPointer",new ot(l,r,n))}function yS(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,a=r.get(["tooltip","trigger"],!0),o=r.get(["tooltip","show"],!0);!n||a==="none"||a===!1||a==="item"||o===!1||r.get(["axisPointer","show"],!0)===!1||k(e.coordSysAxesInfo[Ti(n.model)],function(i){var s=i.axis;n.getAxis(s.dim)===s&&(i.seriesModels.push(r),i.seriesDataCount==null&&(i.seriesDataCount=0),i.seriesDataCount+=r.getData().count())})})}function CS(e,t){for(var r=t.model,n=t.dim,a=0;a<e.length;a++){var o=e[a]||{};if(sx(o[n+"AxisId"],r.id)||sx(o[n+"AxisIndex"],r.componentIndex)||sx(o[n+"AxisName"],r.name))return a}}function sx(e,t){return e==="all"||Y(e)&&pe(e,t)>=0||e===t}function BS(e){var t=Ed(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,a=r.option,o=r.get("status"),i=r.get("value");i!=null&&(i=n.parse(i));var s=kc(r);o==null&&(a.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(i==null||i>l[1])&&(i=l[1]),i<l[0]&&(i=l[0]),a.value=i,s&&(a.status=t.axis.scale.isBlank()?"hide":"show")}}function Ed(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Ti(e)]}function AS(e){var t=Ed(e);return t&&t.axisPointerModel}function kc(e){return!!e.get(["handle","show"])}function Ti(e){return e.type+"||"+e.id}var lx={},ey=function(e){W(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,o){this.axisPointerClass&&BS(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,a,!0)},t.prototype.updateAxisPointer=function(r,n,a,o){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 o=t.getAxisPointerClass(this.axisPointerClass);if(o){var i=AS(r);i?(this._axisPointer||(this._axisPointer=new o)).render(r,i,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"&&lx[r])throw new Error("axisPointer "+r+" exists");lx[r]=n},t.getAxisPointerClass=function(r){return r&&lx[r]},t.type="axis",t}(Jt),Tc=Te();function DS(e,t,r,n){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitArea"),i=o.getModel("areaStyle"),s=i.get("color"),l=n.coordinateSystem.getRect(),u=a.getTicksCoords({tickModel:o,clamp:!0});if(u.length){var x=s.length,c=Tc(e).splitAreaColors,d=ue(),f=0;if(c)for(var v=0;v<u.length;v++){var g=c.get(u[v].tickValue);if(g!=null){f=(g+(x-1)*v)%x;break}}var p=a.toGlobalCoord(u[0].coord),m=i.getAreaStyle();s=Y(s)?s:[s];for(var v=1;v<u.length;v++){var E=a.toGlobalCoord(u[v].coord),y=void 0,B=void 0,D=void 0,A=void 0;a.isHorizontal()?(y=p,B=l.y,D=E-y,A=l.height,p=y+D):(y=l.x,B=p,D=l.width,A=E-B,p=B+A);var _=u[v-1].tickValue;_!=null&&d.set(_,f),t.add(new Me({anid:_!=null?"area_"+_:null,shape:{x:y,y:B,width:D,height:A},style:ge({fill:s[f]},m),autoBatch:!0,silent:!0})),f=(f+1)%x}Tc(e).splitAreaColors=d}}}function _S(e){Tc(e).splitAreaColors=null}var wS=["axisLine","axisTickLabel","axisName"],FS=["splitArea","splitLine","minorSplitLine"],ty=function(e){W(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,o){this.group.removeAll();var i=this._axisGroup;if(this._axisGroup=new Oe,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=Sc(s,r),u=new QE(r,H({handleAutoShown:function(c){for(var d=s.coordinateSystem.getCartesians(),f=0;f<d.length;f++)if(Ac(d[f].getOtherAxis(r.axis).scale))return!0;return!1}},l));k(wS,u.add,u),this._axisGroup.add(u.getGroup()),k(FS,function(c){r.get([c,"show"])&&bS[c](this,this._axisGroup,r,s)},this);var x=o&&o.type==="changeAxisOrder"&&o.isInitSort;x||G1(i,this._axisGroup,r),e.prototype.render.call(this,r,n,a,o)}},t.prototype.remove=function(){_S(this)},t.type="cartesianAxis",t}(ey),bS={splitLine:function(e,t,r,n){var a=r.axis;if(!a.scale.isBlank()){var o=r.getModel("splitLine"),i=o.getModel("lineStyle"),s=i.get("color");s=Y(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=a.isHorizontal(),x=0,c=a.getTicksCoords({tickModel:o}),d=[],f=[],v=i.getLineStyle(),g=0;g<c.length;g++){var p=a.toGlobalCoord(c[g].coord);u?(d[0]=p,d[1]=l.y,f[0]=p,f[1]=l.y+l.height):(d[0]=l.x,d[1]=p,f[0]=l.x+l.width,f[1]=p);var m=x++%s.length,E=c[g].tickValue,y=new dn({anid:E!=null?"line_"+c[g].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:f[0],y2:f[1]},style:ge({stroke:s[m]},v),silent:!0});Bi(y.shape,v.lineWidth),t.add(y)}}},minorSplitLine:function(e,t,r,n){var a=r.axis,o=r.getModel("minorSplitLine"),i=o.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=a.isHorizontal(),u=a.getMinorTicksCoords();if(u.length)for(var x=[],c=[],d=i.getLineStyle(),f=0;f<u.length;f++)for(var v=0;v<u[f].length;v++){var g=a.toGlobalCoord(u[f][v].coord);l?(x[0]=g,x[1]=s.y,c[0]=g,c[1]=s.y+s.height):(x[0]=s.x,x[1]=g,c[0]=s.x+s.width,c[1]=g);var p=new dn({anid:"minor_line_"+u[f][v].tickValue,autoBatch:!0,shape:{x1:x[0],y1:x[1],x2:c[0],y2:c[1]},style:d,silent:!0});Bi(p.shape,d.lineWidth),t.add(p)}},splitArea:function(e,t,r,n){DS(e,t,r,n)}},ry=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(ty),SS=function(e){W(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=ry.type,r}return t.type="yAxis",t}(ty),kS=function(e){W(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 Me({shape:r.coordinateSystem.getRect(),style:ge({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Jt),mg={offset:0};function TS(e){e.registerComponentView(kS),e.registerComponentModel(Kb),e.registerCoordinateSystem("cartesian2d",cS),lg(e,"x",Fc,mg),lg(e,"y",Fc,mg),e.registerComponentView(ry),e.registerComponentView(SS),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var Eg="\0_ec_interaction_mutex";function yg(e,t){return!!NS(e)[t]}function NS(e){return e[Eg]||(e[Eg]={})}la({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},ft);var PS=function(e){W(t,e);function t(r){var n=e.call(this)||this;n._zr=r;var a=ne(n._mousedownHandler,n),o=ne(n._mousemoveHandler,n),i=ne(n._mouseupHandler,n),s=ne(n._mousewheelHandler,n),l=ne(n._pinchHandler,n);return n.enable=function(u,x){this.disable(),this._opt=ge(ve(x)||{},{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",o),r.on("mouseup",i)),(u===!0||u==="scale"||u==="zoom")&&(r.on("mousewheel",s),r.on("pinch",l))},n.disable=function(){r.off("mousedown",a),r.off("mousemove",o),r.off("mouseup",i),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(!lh(r)){for(var n=r.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var a=r.offsetX,o=r.offsetY;this.pointerChecker&&this.pointerChecker(r,a,o)&&(this._x=a,this._y=o,this._dragging=!0)}},t.prototype._mousemoveHandler=function(r){if(!(!this._dragging||!Ys("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||yg(this._zr,"globalPan"))){var n=r.offsetX,a=r.offsetY,o=this._x,i=this._y,s=n-o,l=a-i;this._x=n,this._y=a,this._opt.preventDefaultMouseMove&&qa(r.event),ny(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:o,oldY:i,newX:n,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){lh(r)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(r){var n=Ys("zoomOnMouseWheel",r,this._opt),a=Ys("moveOnMouseWheel",r,this._opt),o=r.wheelDelta,i=Math.abs(o),s=r.offsetX,l=r.offsetY;if(!(o===0||!n&&!a)){if(n){var u=i>3?1.4:i>1?1.2:1.1,x=o>0?u:1/u;ux(this,"zoom","zoomOnMouseWheel",r,{scale:x,originX:s,originY:l,isAvailableBehavior:null})}if(a){var c=Math.abs(o),d=(o>0?1:-1)*(c>3?.4:c>1?.15:.05);ux(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!yg(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;ux(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(tr);function ux(e,t,r,n,a){e.pointerChecker&&e.pointerChecker(n,a.originX,a.originY)&&(qa(n.event),ny(e,t,r,n,a))}function ny(e,t,r,n,a){a.isAvailableBehavior=ne(Ys,null,r,n),e.trigger(t,a)}function Ys(e,t,r){var n=r[e];return!e||n&&(!K(n)||t.event[n+"Key"])}const MS=PS;var Cg=dn.prototype,xx=If.prototype,ay=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(ay);function cx(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var IS=function(e){W(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 ay},t.prototype.buildPath=function(r,n){cx(n)?Cg.buildPath.call(this,r,n):xx.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return cx(this.shape)?Cg.pointAt.call(this,r):xx.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,a=cx(n)?[n.x2-n.x1,n.y2-n.y1]:xx.tangentAt.call(this,r);return vf(a,a)},t}(ye),fx=["fromSymbol","toSymbol"];function Bg(e){return"_"+e+"Type"}function Ag(e,t,r){var n=t.getItemVisual(r,e);if(!n||n==="none")return n;var a=t.getItemVisual(r,e+"Size"),o=t.getItemVisual(r,e+"Rotate"),i=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=id(a),u=_l(i||0,l);return n+l+u+(o||"")+(s||"")}function Dg(e,t,r){var n=t.getItemVisual(r,e);if(!(!n||n==="none")){var a=t.getItemVisual(r,e+"Size"),o=t.getItemVisual(r,e+"Rotate"),i=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=id(a),u=_l(i||0,l),x=Vr(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return x.__specifiedRotation=o==null||isNaN(o)?void 0:+o*Math.PI/180||0,x.name=e,x}}function LS(e){var t=new IS({name:"line",subPixelOptimize:!0});return Nc(t.shape,e),t}function Nc(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 OS=function(e){W(t,e);function t(r,n,a){var o=e.call(this)||this;return o._createLine(r,n,a),o}return t.prototype._createLine=function(r,n,a){var o=r.hostModel,i=r.getItemLayout(n),s=LS(i);s.shape.percent=0,bt(s,{shape:{percent:1}},o,n),this.add(s),k(fx,function(l){var u=Dg(l,r,n);this.add(u),this[Bg(l)]=Ag(l,r,n)},this),this._updateCommonStl(r,n,a)},t.prototype.updateData=function(r,n,a){var o=r.hostModel,i=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};Nc(l.shape,s),st(i,l,o,n),k(fx,function(u){var x=Ag(u,r,n),c=Bg(u);if(this[c]!==x){this.remove(this.childOfName(u));var d=Dg(u,r,n);this.add(d)}this[c]=x},this),this._updateCommonStl(r,n,a)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(r,n,a){var o=r.hostModel,i=this.childOfName("line"),s=a&&a.emphasisLineStyle,l=a&&a.blurLineStyle,u=a&&a.selectLineStyle,x=a&&a.labelStatesModels,c=a&&a.emphasisDisabled,d=a&&a.focus,f=a&&a.blurScope;if(!a||r.hasItemOption){var v=r.getItemModel(n),g=v.getModel("emphasis");s=g.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),u=v.getModel(["select","lineStyle"]).getLineStyle(),c=g.get("disabled"),d=g.get("focus"),f=g.get("blurScope"),x=ia(v)}var p=r.getItemVisual(n,"style"),m=p.stroke;i.useStyle(p),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=s,i.ensureState("blur").style=l,i.ensureState("select").style=u,k(fx,function(A){var _=this.childOfName(A);if(_){_.setColor(m),_.style.opacity=p.opacity;for(var C=0;C<yt.length;C++){var w=yt[C],b=i.getState(w);if(b){var F=b.style||{},S=_.ensureState(w),P=S.style||(S.style={});F.stroke!=null&&(P[_.__isEmptyBrush?"stroke":"fill"]=F.stroke),F.opacity!=null&&(P.opacity=F.opacity)}}_.markRedraw()}},this);var E=o.getRawValue(n);uo(this,x,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(A,_){return o.getFormattedLabel(A,_,r.dataType)}},inheritColor:m||"#000",defaultOpacity:p.opacity,defaultText:(E==null?r.getName(n):isFinite(E)?Ve(E):E)+""});var y=this.getTextContent();if(y){var B=x.normal;y.__align=y.style.align,y.__verticalAlign=y.style.verticalAlign,y.__position=B.get("position")||"middle";var D=B.get("distance");Y(D)||(D=[D,D]),y.__labelDistance=D}this.setTextConfig({position:null,local:!0,inside:!1}),Qn(this,d,f,c)},t.prototype.highlight=function(){yi(this)},t.prototype.downplay=function(){Ci(this)},t.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},t.prototype.setLinePoints=function(r){var n=this.childOfName("line");Nc(n.shape,r),n.dirty()},t.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),a=r.childOfName("toSymbol"),o=r.getTextContent();if(!n&&!a&&(!o||o.ignore))return;for(var i=1,s=this.parent;s;)s.scaleX&&(i/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,x=l.pointAt(0),c=l.pointAt(u),d=g9([],c,x);vf(d,d);function f(b,F){var S=b.__specifiedRotation;if(S==null){var P=l.tangentAt(F);b.attr("rotation",(F===1?-1:1)*Math.PI/2-Math.atan2(P[1],P[0]))}else b.attr("rotation",S)}if(n&&(n.setPosition(x),f(n,0),n.scaleX=n.scaleY=i*u,n.markRedraw()),a&&(a.setPosition(c),f(a,1),a.scaleX=a.scaleY=i*u,a.markRedraw()),o&&!o.ignore){o.x=o.y=0,o.originX=o.originY=0;var v=void 0,g=void 0,p=o.__labelDistance,m=p[0]*i,E=p[1]*i,y=u/2,B=l.tangentAt(y),D=[B[1],-B[0]],A=l.pointAt(y);D[1]>0&&(D[0]=-D[0],D[1]=-D[1]);var _=B[0]<0?-1:1;if(o.__position!=="start"&&o.__position!=="end"){var C=-Math.atan2(B[1],B[0]);c[0]<x[0]&&(C=Math.PI+C),o.rotation=C}var w=void 0;switch(o.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":w=-E,g="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":w=E,g="top";break;default:w=0,g="middle"}switch(o.__position){case"end":o.x=d[0]*m+c[0],o.y=d[1]*E+c[1],v=d[0]>.8?"left":d[0]<-.8?"right":"center",g=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":o.x=-d[0]*m+x[0],o.y=-d[1]*E+x[1],v=d[0]>.8?"right":d[0]<-.8?"left":"center",g=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":o.x=m*_+x[0],o.y=x[1]+w,v=B[0]<0?"right":"left",o.originX=-m*_,o.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":o.x=A[0],o.y=A[1]+w,v="center",o.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":o.x=-m*_+c[0],o.y=c[1]+w,v=B[0]>=0?"right":"left",o.originX=m*_,o.originY=-w;break}o.scaleX=o.scaleY=i,o.setStyle({verticalAlign:o.__verticalAlign||g,align:o.__align||v})}},t}(Oe);const RS=OS;var VS=function(){function e(t){this.group=new Oe,this._LineCtor=t||RS}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,a=n.group,o=n._lineData;n._lineData=t,o||a.removeAll();var i=_g(t);t.diff(o).add(function(s){r._doAdd(t,s,i)}).update(function(s,l){r._doUpdate(o,t,l,s,i)}).remove(function(s){a.remove(o.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=_g(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!$S(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=r.getItemLayout(a);if(dx(o)){var i=new this._LineCtor(r,a,this._seriesScope);i.traverse(n),this.group.add(i),r.setItemGraphicEl(a,i),this._progressiveEls.push(i)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){lo(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var a=t.getItemLayout(r);if(dx(a)){var o=new this._LineCtor(t,r,n);t.setItemGraphicEl(r,o),this.group.add(o)}},e.prototype._doUpdate=function(t,r,n,a,o){var i=t.getItemGraphicEl(n);if(!dx(r.getItemLayout(a))){this.group.remove(i);return}i?i.updateData(r,a,o):i=new this._LineCtor(r,a,o),r.setItemGraphicEl(a,i),this.group.add(i)},e}();function $S(e){return e.animators&&e.animators.length>0}function _g(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:ia(t)}}function wg(e){return isNaN(e[0])||isNaN(e[1])}function dx(e){return e&&!wg(e[0])&&!wg(e[1])}const zS=VS;function Pl(e,t,r,n,a,o){e=e||0;var i=r[1]-r[0];if(a!=null&&(a=wa(a,[0,i])),o!=null&&(o=Math.max(o,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=wa(s,[0,i]),a=o=wa(s,[a,o]),n=0}t[0]=wa(t[0],r),t[1]=wa(t[1],r);var l=hx(t,n);t[n]+=e;var u=a||0,x=r.slice();l.sign<0?x[0]+=u:x[1]-=u,t[n]=wa(t[n],x);var c;return c=hx(t,n),a!=null&&(c.sign!==l.sign||c.span<a)&&(t[1-n]=t[n]+l.sign*a),c=hx(t,n),o!=null&&c.span>o&&(t[1-n]=t[n]+c.sign*o),t}function hx(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 wa(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var Fg={color:"fill",borderColor:"stroke"},GS={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Mr=Te(),HS=function(e){W(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 bl(null,this)},t.prototype.getDataParams=function(r,n,a){var o=e.prototype.getDataParams.call(this,r,n);return a&&(o.info=Mr(a).info),o},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Rr);const US=HS;function WS(e,t){return t=t||[0,0],q(["x","y"],function(r,n){var a=this.getAxis(r),o=t[n],i=e[n]/2;return a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-i)-a.dataToCoord(o+i))},this)}function YS(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:ne(WS,e)}}}function XS(e,t){return t=t||[0,0],q([0,1],function(r){var n=t[r],a=e[r]/2,o=[],i=[];return o[r]=n-a,i[r]=n+a,o[1-r]=i[1-r]=t[1-r],Math.abs(this.dataToPoint(o)[r]-this.dataToPoint(i)[r])},this)}function jS(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:ne(XS,e)}}}function ZS(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 qS(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:ne(ZS,e)}}}function KS(e,t){return t=t||[0,0],q(["Radius","Angle"],function(r,n){var a="get"+r+"Axis",o=this[a](),i=t[n],s=e[n]/2,l=o.type==="category"?o.getBandWidth():Math.abs(o.dataToCoord(i-s)-o.dataToCoord(i+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function JS(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 o=t.dataToRadius(a[0]),i=r.dataToAngle(a[1]),s=e.coordToPoint([o,i]);return s.push(o,i*Math.PI/180),s},size:ne(KS,e)}}}function QS(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 bg={};function ek(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||X(e,"text")))}function tk(e,t,r){var n=e,a,o,i;if(t==="text")i=n;else{i={},X(n,"text")&&(i.text=n.text),X(n,"rich")&&(i.rich=n.rich),X(n,"textFill")&&(i.fill=n.textFill),X(n,"textStroke")&&(i.stroke=n.textStroke),X(n,"fontFamily")&&(i.fontFamily=n.fontFamily),X(n,"fontSize")&&(i.fontSize=n.fontSize),X(n,"fontStyle")&&(i.fontStyle=n.fontStyle),X(n,"fontWeight")&&(i.fontWeight=n.fontWeight),o={type:"text",style:i,silent:!0},a={};var s=X(n,"textPosition");r?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),X(n,"textPosition")&&(a.position=n.textPosition),X(n,"textOffset")&&(a.offset=n.textOffset),X(n,"textRotation")&&(a.rotation=n.textRotation),X(n,"textDistance")&&(a.distance=n.textDistance)}return Sg(i,e),k(i.rich,function(l){Sg(l,l)}),{textConfig:a,textContent:o}}function Sg(e,t){t&&(t.font=t.textFont||t.font,X(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),X(t,"textAlign")&&(e.align=t.textAlign),X(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),X(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),X(t,"textWidth")&&(e.width=t.textWidth),X(t,"textHeight")&&(e.height=t.textHeight),X(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),X(t,"textPadding")&&(e.padding=t.textPadding),X(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),X(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),X(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),X(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),X(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),X(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),X(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function kg(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,o=e.fill||"#000";Tg(n,t);var i=n.textFill==null;return a?i&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=o),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(i&&(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){Tg(s,s)}),n}function Tg(e,t){t&&(X(t,"fill")&&(e.textFill=t.fill),X(t,"stroke")&&(e.textStroke=t.fill),X(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),X(t,"font")&&(e.font=t.font),X(t,"fontStyle")&&(e.fontStyle=t.fontStyle),X(t,"fontWeight")&&(e.fontWeight=t.fontWeight),X(t,"fontSize")&&(e.fontSize=t.fontSize),X(t,"fontFamily")&&(e.fontFamily=t.fontFamily),X(t,"align")&&(e.textAlign=t.align),X(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),X(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),X(t,"width")&&(e.textWidth=t.width),X(t,"height")&&(e.textHeight=t.height),X(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),X(t,"padding")&&(e.textPadding=t.padding),X(t,"borderColor")&&(e.textBorderColor=t.borderColor),X(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),X(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),X(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),X(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),X(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),X(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),X(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),X(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),X(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),X(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}function Ng(e,t){if(process.env.NODE_ENV!=="production"){var r=e+"^_^"+t;bg[r]||(console.warn('[ECharts] DEPRECATED: "'+e+'" has been deprecated. '+t),bg[r]=!0)}}var oy={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Pg=De(oy),T0=Lr(mr,function(e,t){return e[t]=1,e},{}),Mg=mr.join(", "),N0=["","style","shape","extra"],to=Te();function yd(e,t,r,n,a){var o=e+"Animation",i=Of(e,n,a)||{},s=to(t).userDuring;return i.duration>0&&(i.during=s?ne(lk,{el:t,userDuring:s}):null,i.setToFinal=!0,i.scope=e),H(i,r[o]),i}function rk(e,t,r,n){n=n||{};var a=n.dataIndex,o=n.isInit,i=n.clearStyle,s=r.isAnimationEnabled(),l=to(e),u=t.style;l.userDuring=t.during;var x={},c={};if(xk(e,t,c),Lg("shape",t,c),Lg("extra",t,c),!o&&s&&(uk(e,t,x),Ig("shape",e,t,x),Ig("extra",e,t,x),ck(e,t,u,x)),c.style=u,ak(e,c,i),ik(e,t),s)if(o){var d={};k(N0,function(v){var g=v?t[v]:t;g&&g.enterFrom&&(v&&(d[v]=d[v]||{}),H(v?d[v]:d,g.enterFrom))});var f=yd("enter",e,t,r,a);f.duration>0&&e.animateFrom(d,f)}else ok(e,t,a||0,r,x);nk(e,t),u?e.dirty():e.markRedraw()}function nk(e,t){for(var r=to(e).leaveToProps,n=0;n<N0.length;n++){var a=N0[n],o=a?t[a]:t;o&&o.leaveTo&&(r||(r=to(e).leaveToProps={}),a&&(r[a]=r[a]||{}),H(a?r[a]:r,o.leaveTo))}}function Cd(e,t,r,n){if(e){var a=e.parent,o=to(e).leaveToProps;if(o){var i=yd("update",e,t,r,0);i.done=function(){a.remove(e),n&&n()},e.animateTo(o,i)}else a.remove(e),n&&n()}}function Wa(e){return e==="all"}function ak(e,t,r){var n=t.style;if(!e.isGroup&&n){if(r){e.useStyle({});for(var a=e.animators,o=0;o<a.length;o++){var i=a[o];i.targetName==="style"&&i.changeTarget(e.style)}}e.setStyle(n)}t&&(t.style=null,t&&e.attr(t),t.style=n)}function ok(e,t,r,n,a){if(a){var o=yd("update",e,t,n,r);o.duration>0&&e.animateFrom(a,o)}}function ik(e,t){X(t,"silent")&&(e.silent=t.silent),X(t,"ignore")&&(e.ignore=t.ignore),e instanceof aa&&X(t,"invisible")&&(e.invisible=t.invisible),e instanceof ye&&X(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var cr={},sk={setTransform:function(e,t){return process.env.NODE_ENV!=="production"&&oe(X(T0,e),"Only "+Mg+" available in `setTransform`."),cr.el[e]=t,this},getTransform:function(e){return process.env.NODE_ENV!=="production"&&oe(X(T0,e),"Only "+Mg+" available in `getTransform`."),cr.el[e]},setShape:function(e,t){process.env.NODE_ENV!=="production"&&Fa(e);var r=cr.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){process.env.NODE_ENV!=="production"&&Fa(e);var t=cr.el.shape;if(t)return t[e]},setStyle:function(e,t){process.env.NODE_ENV!=="production"&&Fa(e);var r=cr.el,n=r.style;return n&&(process.env.NODE_ENV!=="production"&&Za(t)&&We("style."+e+" must not be assigned with NaN."),n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){process.env.NODE_ENV!=="production"&&Fa(e);var t=cr.el.style;if(t)return t[e]},setExtra:function(e,t){process.env.NODE_ENV!=="production"&&Fa(e);var r=cr.el.extra||(cr.el.extra={});return r[e]=t,this},getExtra:function(e){process.env.NODE_ENV!=="production"&&Fa(e);var t=cr.el.extra;if(t)return t[e]}};function Fa(e){if(process.env.NODE_ENV!=="production"&&(e==="transition"||e==="enterFrom"||e==="leaveTo"))throw new Error('key must not be "'+e+'"')}function lk(){var e=this,t=e.el;if(t){var r=to(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}cr.el=t,n(sk)}}function Ig(e,t,r,n){var a=r[e];if(a){var o=t[e],i;if(o){var s=r.transition,l=a.transition;if(l)if(!i&&(i=n[e]={}),Wa(l))H(i,o);else for(var u=je(l),x=0;x<u.length;x++){var c=u[x],d=o[c];i[c]=d}else if(Wa(s)||pe(s,e)>=0){!i&&(i=n[e]={});for(var f=De(o),x=0;x<f.length;x++){var c=f[x],d=o[c];fk(a[c],d)&&(i[c]=d)}}}}}function Lg(e,t,r){var n=t[e];if(n)for(var a=r[e]={},o=De(n),i=0;i<o.length;i++){var s=o[i];a[s]=ai(n[s])}}function uk(e,t,r){for(var n=t.transition,a=Wa(n)?mr:je(n||[]),o=0;o<a.length;o++){var i=a[o];if(!(i==="style"||i==="shape"||i==="extra")){var s=e[i];process.env.NODE_ENV!=="production"&&iy(i,"el.transition"),r[i]=s}}}function xk(e,t,r){for(var n=0;n<Pg.length;n++){var a=Pg[n],o=oy[a],i=t[a];i&&(r[o[0]]=i[0],r[o[1]]=i[1])}for(var n=0;n<mr.length;n++){var s=mr[n];t[s]!=null&&(r[s]=t[s])}}function ck(e,t,r,n){if(r){var a=e.style,o;if(a){var i=r.transition,s=t.transition;if(i&&!Wa(i)){var l=je(i);!o&&(o=n.style={});for(var u=0;u<l.length;u++){var x=l[u],c=a[x];o[x]=c}}else if(e.getAnimationStyleProps&&(Wa(s)||Wa(i)||pe(s,"style")>=0)){var d=e.getAnimationStyleProps(),f=d?d.style:null;if(f){!o&&(o=n.style={});for(var v=De(r),u=0;u<v.length;u++){var x=v[u];if(f[x]){var c=a[x];o[x]=c}}}}}}}function fk(e,t){return dt(e)?e!==t:e!=null&&isFinite(e)}var iy;process.env.NODE_ENV!=="production"&&(iy=function(e,t){X(T0,e)||We("Prop `"+e+"` is not a permitted in `"+t+"`. Only `"+De(T0).join("`, `")+"` are permitted.")});var sy=Te(),dk=["percent","easing","shape","style","extra"];function hk(e){e.stopAnimation("keyframe"),e.attr(sy(e))}function ly(e,t,r){if(!(!r.isAnimationEnabled()||!t)){if(Y(t)){k(t,function(s){ly(e,s,r)});return}var n=t.keyframes,a=t.duration;if(r&&a==null){var o=Of("enter",r,0);a=o&&o.duration}if(!(!n||!a)){var i=sy(e);k(N0,function(s){if(!(s&&!e[s])){var l,u=!1;n.sort(function(x,c){return x.percent-c.percent}),k(n,function(x){var c=e.animators,d=s?x[s]:x;if(process.env.NODE_ENV!=="production"&&x.percent>=1&&(u=!0),!!d){var f=De(d);if(s||(f=Qe(f,function(p){return pe(dk,p)<0})),!!f.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var v=0;v<c.length;v++)c[v]!==l&&c[v].targetName===l.targetName&&c[v].stopTracks(f);s&&(i[s]=i[s]||{});var g=s?i[s]:i;k(f,function(p){g[p]=((s?e[s]:e)||{})[p]}),l.whenWithKeys(a*x.percent,d,f,x.easing)}}}),l&&(process.env.NODE_ENV!=="production"&&(u||We("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",Bd="blur",Ad="select",hn=[nn,Ir,Bd,Ad],vx={normal:["itemStyle"],emphasis:[Ir,"itemStyle"],blur:[Bd,"itemStyle"],select:[Ad,"itemStyle"]},px={normal:["label"],emphasis:[Ir,"label"],blur:[Bd,"label"],select:[Ad,"label"]},vk=["x","y"],pk="e\0\0",Nt={normal:{},emphasis:{},blur:{},select:{}},Og={cartesian2d:YS,geo:jS,single:qS,polar:JS,calendar:QS};function P0(e){return e instanceof ye}function Pc(e){return e instanceof aa}function gk(e,t){t.copyTransform(e),Pc(t)&&Pc(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,P0(t)&&P0(e)&&t.setShape(e.shape))}var mk=function(e){W(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,o){this._progressiveEls=null;var i=this._data,s=r.getData(),l=this.group,u=Rg(r,s,n,a);i||l.removeAll(),s.diff(i).add(function(c){gx(a,null,c,u(c,o),r,l,s)}).remove(function(c){var d=i.getItemGraphicEl(c);d&&Cd(d,Mr(d).option,r)}).update(function(c,d){var f=i.getItemGraphicEl(d);gx(a,f,c,u(c,o),r,l,s)}).execute();var x=r.get("clip",!0)?HE(r.coordinateSystem,!1,r):null;x?l.setClipPath(x):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,o,i){var s=n.getData(),l=Rg(n,s,a,o),u=this._progressiveEls=[];function x(f){f.isGroup||(f.incremental=!0,f.ensureState("emphasis").hoverLayer=!0)}for(var c=r.start;c<r.end;c++){var d=gx(null,null,c,l(c,i),n,this.group,s);d&&(d.traverse(x),u.push(d))}},t.prototype.eachRendered=function(r){lo(this._progressiveEls||this.group,r)},t.prototype.filterForExposedEvent=function(r,n,a,o){var i=n.element;if(i==null||a.name===i)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===i)return!0;return!1},t.type="custom",t}(Zt);const Ek=mk;function Dd(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,o=cy(n);r=xl(o,null,a,n.layout||"center"),Mr(r).customPathData=o}else if(t==="image")r=new pn({}),Mr(r).customImagePath=e.style.image;else if(t==="text")r=new Ze({});else if(t==="group")r=new Oe;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var i=L1(t);if(!i){var s="";process.env.NODE_ENV!=="production"&&(s='graphic type "'+t+'" can not be found.'),ct(s)}r=new i}return Mr(r).customGraphicType=t,r.name=e.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function _d(e,t,r,n,a,o,i){hk(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=vk);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;X(u,"textFill")&&(u.fill=u.textFill),X(u,"textStroke")&&(u.stroke=u.textStroke)}var x=void 0,c=P0(t)?l.decal:null;e&&c&&(c.dirty=!0,x=w0(c,e)),l.__decalPattern=x}if(Pc(t)&&l){var x=l.__decalPattern;x&&(l.decal=x)}rk(t,n,o,{dataIndex:r,isInit:i,clearStyle:!0}),ly(t,n.keyframeAnimation,o)}function uy(e,t,r,n,a){var o=t.isGroup?null:t,i=a&&a[e].cfg;if(o){var s=o.ensureState(e);if(n===!1){var l=o.getState(e);l&&(l.style=null)}else s.style=n||null;i&&(s.textConfig=i),f1(o)}}function yk(e,t,r){if(!e.isGroup){var n=e,a=r.currentZ,o=r.currentZLevel;n.z=a,n.zlevel=o;var i=t.z2;i!=null&&(n.z2=i||0);for(var s=0;s<hn.length;s++)Ck(n,t,hn[s])}}function Ck(e,t,r){var n=r===nn,a=n?t:M0(t,r),o=a?a.z2:null,i;o!=null&&(i=n?e:e.ensureState(r),i.z2=o||0)}function Rg(e,t,r,n){var a=e.get("renderItem"),o=e.coordinateSystem,i={};o&&(process.env.NODE_ENV!=="production"&&(oe(a,"series.render is required."),oe(o.prepareCustoms||Og[o.type],"This coordSys does not support custom series.")),i=o.prepareCustoms?o.prepareCustoms(o):Og[o.type](o));for(var s=ge({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:B,style:A,ordinalRawValue:D,styleEmphasis:_,visual:b,barLayout:F,currentSeriesIndices:S,font:P},i.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:i.coordSys,dataInsideLength:t.count(),encode:Bk(e.getData())},u,x,c={},d={},f={},v={},g=0;g<hn.length;g++){var p=hn[g];f[p]=e.getModel(vx[p]),v[p]=e.getModel(px[p])}function m(T){return T===u?x||(x=t.getItemModel(T)):t.getItemModel(T)}function E(T,N){return t.hasItemOption?T===u?c[N]||(c[N]=m(T).getModel(vx[N])):m(T).getModel(vx[N]):f[N]}function y(T,N){return t.hasItemOption?T===u?d[N]||(d[N]=m(T).getModel(px[N])):m(T).getModel(px[N]):v[N]}return function(T,N){return u=T,x=null,c={},d={},a&&a(ge({dataIndexInside:T,dataIndex:t.getRawIndex(T),actionType:N?N.type:null},l),s)};function B(T,N){return N==null&&(N=u),t.getStore().get(t.getDimensionIndex(T||0),N)}function D(T,N){N==null&&(N=u),T=T||0;var M=t.getDimensionInfo(T);if(!M){var L=t.getDimensionIndex(T);return L>=0?t.getStore().get(L,N):void 0}var O=t.get(M.name,N),V=M&&M.ordinalMeta;return V?V.categories[O]:O}function A(T,N){process.env.NODE_ENV!=="production"&&Ng("api.style","Please write literal style directly instead."),N==null&&(N=u);var M=t.getItemVisual(N,"style"),L=M&&M.fill,O=M&&M.opacity,V=E(N,nn).getItemStyle();L!=null&&(V.fill=L),O!=null&&(V.opacity=O);var $={inheritColor:K(L)?L:"#000"},I=y(N,nn),U=Kt(I,null,$,!1,!0);U.text=I.getShallow("show")?le(e.getFormattedLabel(N,nn),ki(t,N)):null;var j=g0(I,$,!1);return w(T,V),V=kg(V,U,j),T&&C(V,T),V.legacy=!0,V}function _(T,N){process.env.NODE_ENV!=="production"&&Ng("api.styleEmphasis","Please write literal style directly instead."),N==null&&(N=u);var M=E(N,Ir).getItemStyle(),L=y(N,Ir),O=Kt(L,null,null,!0,!0);O.text=L.getShallow("show")?sn(e.getFormattedLabel(N,Ir),e.getFormattedLabel(N,nn),ki(t,N)):null;var V=g0(L,null,!0);return w(T,M),M=kg(M,O,V),T&&C(M,T),M.legacy=!0,M}function C(T,N){for(var M in N)X(N,M)&&(T[M]=N[M])}function w(T,N){T&&(T.textFill&&(N.textFill=T.textFill),T.textPosition&&(N.textPosition=T.textPosition))}function b(T,N){if(N==null&&(N=u),X(Fg,T)){var M=t.getItemVisual(N,"style");return M?M[Fg[T]]:null}if(X(GS,T))return t.getItemVisual(N,T)}function F(T){if(o.type==="cartesian2d"){var N=o.getBaseAxis();return q3(ge({axis:N},T))}}function S(){return r.getCurrentSeriesIndices()}function P(T){return U1(T,r)}}function Bk(e){var t={};return k(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var a=n.coordDim,o=t[a]=t[a]||[];o[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function gx(e,t,r,n,a,o,i){if(!n){o.remove(t);return}var s=wd(e,t,r,n,a,o);return s&&i.setItemGraphicEl(r,s),s&&Qn(s,n.focus,n.blurScope,n.emphasisDisabled),s}function wd(e,t,r,n,a,o){process.env.NODE_ENV!=="production"&&oe(n,"should not have an null/undefined element setting");var i=-1,s=t;t&&xy(t,n,a)&&(i=pe(o.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=Dd(n),s&&gk(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,Dk(u,r,n,a,l,Nt),Ak(u,r,n,a,l),_d(e,u,r,n,Nt,a,l),X(n,"info")&&(Mr(u).info=n.info);for(var x=0;x<hn.length;x++){var c=hn[x];if(c!==nn){var d=M0(n,c),f=Fd(n,d,c);uy(c,u,d,f,Nt)}}return yk(u,n,a),n.type==="group"&&_k(e,u,r,n,a),i>=0?o.replaceAt(u,i):o.add(u),u}function xy(e,t,r){var n=Mr(e),a=t.type,o=t.shape,i=t.style;return r.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&Sk(o)&&cy(o)!==n.customPathData||a==="image"&&X(i,"image")&&i.image!==n.customImagePath}function Ak(e,t,r,n,a){var o=r.clipPath;if(o===!1)e&&e.getClipPath()&&e.removeClipPath();else if(o){var i=e.getClipPath();i&&xy(i,o,n)&&(i=null),i||(i=Dd(o),process.env.NODE_ENV!=="production"&&oe(P0(i),"Only any type of `path` can be used in `clipPath`, rather than "+i.type+"."),e.setClipPath(i)),_d(null,i,t,o,null,n,a)}}function Dk(e,t,r,n,a,o){if(!e.isGroup){Vg(r,null,o),Vg(r,Ir,o);var i=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(i!=null||s!=null||u!=null||l!=null){var x=e.getTextContent();if(i===!1)x&&e.removeTextContent();else{i=o.normal.conOpt=i||{type:"text"},x?x.clearStates():(x=Dd(i),e.setTextContent(x)),_d(null,x,t,i,null,n,a);for(var c=i&&i.style,d=0;d<hn.length;d++){var f=hn[d];if(f!==nn){var v=o[f].conOpt;uy(f,x,v,Fd(i,v,f),null)}}c?x.dirty():x.markRedraw()}}}}function Vg(e,t,r){var n=t?M0(e,t):e,a=t?Fd(e,n,Ir):e.style,o=e.type,i=n?n.textConfig:null,s=e.textContent,l=s?t?M0(s,t):s:null;if(a&&(r.isLegacy||ek(a,o,!!i,!!l))){r.isLegacy=!0;var u=tk(a,o,!t);!i&&u.textConfig&&(i=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var x=l;!x.type&&(x.type="text"),process.env.NODE_ENV!=="production"&&oe(x.type==="text",'textContent.type must be "text"')}var c=t?r[t]:r.normal;c.cfg=i,c.conOpt=l}function M0(e,t){return t?e?e[t]:null:e}function Fd(e,t,r){var n=t&&t.style;return n==null&&r===Ir&&e&&(n=e.styleEmphasis),n}function _k(e,t,r,n,a){var o=n.children,i=o?o.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!i&&!l&&!u)){if(l){Fk({api:e,oldChildren:t.children()||[],newChildren:o||[],dataIndex:r,seriesModel:a,group:t});return}u&&t.removeAll();for(var x=0;x<i;x++){var c=o[x],d=t.childAt(x);c?(c.ignore==null&&(c.ignore=!1),wd(e,d,r,c,a,t)):(process.env.NODE_ENV!=="production"&&oe(d,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),d.ignore=!0)}for(var f=t.childCount()-1;f>=x;f--){var v=t.childAt(f);wk(t,v,a)}}}function wk(e,t,r){t&&Cd(t,Mr(e).option,r)}function Fk(e){new iE(e.oldChildren,e.newChildren,$g,$g,e).add(zg).update(zg).remove(bk).execute()}function $g(e,t){var r=e&&e.name;return r??pk+t}function zg(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,a=t!=null?r.oldChildren[t]:null;wd(r.api,a,r.dataIndex,n,r.seriesModel,r.group)}function bk(e){var t=this.context,r=t.oldChildren[e];r&&Cd(r,Mr(r).option,t.seriesModel)}function cy(e){return e&&(e.pathData||e.d)}function Sk(e){return e&&(X(e,"pathData")||X(e,"d"))}function kk(e){e.registerChartView(Ek),e.registerSeriesModel(US)}var zn=Te(),Gg=ve,mx=ne,Tk=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,a){var o=r.get("value"),i=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!a&&this._lastValue===o&&this._lastStatus===i)){this._lastValue=o,this._lastStatus=i;var s=this._group,l=this._handle;if(!i||i==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,o,t,r,n);var x=u.graphicKey;x!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=x;var c=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new Oe,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=we(Hg,r,c);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}Wg(s,r,!0),this._renderHandle(o)}},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,o=a.type==="category",i=r.get("snap");if(!i&&!o)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(o&&a.getBandWidth()>s)return!0;if(i){var l=Ed(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,o){},e.prototype.createPointerEl=function(t,r,n,a){var o=r.pointer;if(o){var i=zn(t).pointerEl=new n_[o.type](Gg(r.pointer));t.add(i)}},e.prototype.createLabelEl=function(t,r,n,a){if(r.label){var o=zn(t).labelEl=new Ze(Gg(r.label));t.add(o),Ug(o,a)}},e.prototype.updatePointerEl=function(t,r,n){var a=zn(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 o=zn(t).labelEl;o&&(o.setStyle(r.label.style),n(o,{x:r.label.x,y:r.label.y}),Ug(o,a))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),a=this._handle,o=r.getModel("handle"),i=r.get("status");if(!o.get("show")||!i||i==="hide"){a&&n.remove(a),this._handle=null;return}var s;this._handle||(s=!0,a=this._handle=$f(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){qa(u.event)},onmousedown:mx(this._onHandleDragMove,this,0,0),drift:mx(this._onHandleDragMove,this),ondragend:mx(this._onHandleDragEnd,this)}),n.add(a)),Wg(a,r,!1),a.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");Y(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Dl(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){Hg(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Ex(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(Ex(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(Ex(a)),zn(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),C0(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 Hg(e,t,r,n){fy(zn(r).lastProp,n)||(zn(r).lastProp=n,t?st(r,n,e):(r.stopAnimation(),r.attr(n)))}function fy(e,t){if(re(e)&&re(t)){var r=!0;return k(t,function(n,a){r=r&&fy(e[a],n)}),!!r}else return e===t}function Ug(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Ex(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function Wg(e,t,r){var n=t.get("z"),a=t.get("zlevel");e&&e.traverse(function(o){o.type!=="group"&&(n!=null&&(o.z=n),a!=null&&(o.zlevel=a),o.silent=r)})}const Nk=Tk;function Pk(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 Mk(e,t,r,n,a){var o=r.get("value"),i=dy(o,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=yl(s.get("padding")||0),u=s.getFont(),x=Bf(i,u),c=a.position,d=x.width+l[1]+l[3],f=x.height+l[0]+l[2],v=a.align;v==="right"&&(c[0]-=d),v==="center"&&(c[0]-=d/2);var g=a.verticalAlign;g==="bottom"&&(c[1]-=f),g==="middle"&&(c[1]-=f/2),Ik(c,d,f,n);var p=s.get("backgroundColor");(!p||p==="auto")&&(p=t.get(["axisLine","lineStyle","color"])),e.label={x:c[0],y:c[1],style:Kt(s,{text:i,font:u,fill:s.getTextColor(),padding:l,backgroundColor:p}),z2:10}}function Ik(e,t,r,n){var a=n.getWidth(),o=n.getHeight();e[0]=Math.min(e[0]+t,a)-t,e[1]=Math.min(e[1]+r,o)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function dy(e,t,r,n,a){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:a.precision}),i=a.formatter;if(i){var s={value:vd(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};k(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),x=l.dataIndexInside,c=u&&u.getDataParams(x);c&&s.seriesData.push(c)}),K(i)?o=i.replace("{value}",o):xe(i)&&(o=i(s))}return o}function hy(e,t,r){var n=Ra();return mf(n,n,r.rotation),zx(n,n,r.position),Ai([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function Lk(e,t,r,n,a,o){var i=QE.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),Mk(t,n,a,o,{position:hy(n.axis,e,r),align:i.textAlign,verticalAlign:i.textVerticalAlign})}function Ok(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function Rk(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var Vk=function(e){W(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,o,i){var s=a.axis,l=s.grid,u=o.get("type"),x=Yg(l,s).getOtherAxis(s).getGlobalExtent(),c=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=Pk(o),f=$k[u](s,c,x);f.style=d,r.graphicKey=f.type,r.pointer=f}var v=Sc(l.model,a);Lk(n,r,v,a,o,i)},t.prototype.getHandleTransform=function(r,n,a){var o=Sc(n.axis.grid.model,n,{labelInside:!1});o.labelMargin=a.get(["handle","margin"]);var i=hy(n.axis,r,o);return{x:i[0],y:i[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,a,o){var i=a.axis,s=i.grid,l=i.getGlobalExtent(!0),u=Yg(s,i).getOtherAxis(i).getGlobalExtent(),x=i.dim==="x"?0:1,c=[r.x,r.y];c[x]+=n[x],c[x]=Math.min(l[1],c[x]),c[x]=Math.max(l[0],c[x]);var d=(u[1]+u[0])/2,f=[d,d];f[x]=c[x];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:f,tooltipOption:v[x]}},t}(Nk);function Yg(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var $k={line:function(e,t,r){var n=Ok([t,r[0]],[t,r[1]],Xg(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:Rk([t-n/2,r[0]],[n,a],Xg(e))}}};function Xg(e){return e.dim==="x"?0:1}const zk=Vk;var Gk=function(e){W(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}(Fe);const Hk=Gk;var kr=Te(),Uk=k;function vy(e,t,r){if(!se.node){var n=t.getZr();kr(n).records||(kr(n).records={}),Wk(n,t);var a=kr(n).records[e]||(kr(n).records[e]={});a.handler=r}}function Wk(e,t){if(kr(e).initialized)return;kr(e).initialized=!0,r("click",we(jg,"click")),r("mousemove",we(jg,"mousemove")),r("globalout",Xk);function r(n,a){e.on(n,function(o){var i=jk(t);Uk(kr(e).records,function(s){s&&a(s,o,i.dispatchAction)}),Yk(i.pendings,t)})}}function Yk(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 Xk(e,t,r){e.handler("leave",null,r)}function jg(e,t,r,n){t.handler(e,r,n)}function jk(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 Mc(e,t){if(!se.node){var r=t.getZr(),n=(kr(r).records||{})[e];n&&(kr(r).records[e]=null)}}var Zk=function(e){W(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 o=n.getComponent("tooltip"),i=r.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";vy("axisPointer",a,function(s,l,u){i!=="none"&&(s==="leave"||i.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){Mc("axisPointer",n)},t.prototype.dispose=function(r,n){Mc("axisPointer",n)},t.type="axisPointer",t}(Jt);const qk=Zk;function py(e,t){var r=[],n=e.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var o=a.getData(),i=Kn(o,e);if(i==null||i<0||Y(i))return{point:[]};var s=o.getItemGraphicEl(i),l=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(i)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),x=l.getOtherAxis(u),c=x.dim,d=u.dim,f=c==="x"||c==="radius"?1:0,v=o.mapDimension(d),g=[];g[f]=o.get(v,i),g[1-f]=o.get(o.getCalculationInfo("stackResultDimension"),i),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(o.getValues(q(l.dimensions,function(m){return o.mapDimension(m)}),i))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),r=[p.x+p.width/2,p.y+p.height/2]}return{point:r,el:s}}var Zg=Te();function Kk(e,t,r){var n=e.currTrigger,a=[e.x,e.y],o=e,i=e.dispatchAction||ne(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Xs(a)&&(a=py({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=Xs(a),u=o.axesInfo,x=s.axesInfo,c=n==="leave"||Xs(a),d={},f={},v={list:[],map:{}},g={showPointer:we(Qk,f),showTooltip:we(eT,v)};k(s.coordSysMap,function(m,E){var y=l||m.containPoint(a);k(s.coordSysAxesInfo[E],function(B,D){var A=B.axis,_=aT(u,B);if(!c&&y&&(!u||_)){var C=_&&_.value;C==null&&!l&&(C=A.pointToData(a)),C!=null&&qg(B,C,g,!1,d)}})});var p={};return k(x,function(m,E){var y=m.linkGroup;y&&!f[E]&&k(y.axesInfo,function(B,D){var A=f[D];if(B!==m&&A){var _=A.value;y.mapper&&(_=m.axis.scale.parse(y.mapper(_,Kg(B),Kg(m)))),p[m.key]=_}})}),k(p,function(m,E){qg(x[E],m,g,!0,d)}),tT(f,x,d),rT(v,a,e,i),nT(x,i,r),d}}function qg(e,t,r,n,a){var o=e.axis;if(!(o.scale.isBlank()||!o.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var i=Jk(t,e),s=i.payloadBatch,l=i.snapToValue;s[0]&&a.seriesIndex==null&&H(a,s[0]),!n&&e.snap&&o.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,i,l)}}function Jk(e,t){var r=t.axis,n=r.dim,a=e,o=[],i=Number.MAX_VALUE,s=-1;return k(t.seriesModels,function(l,u){var x=l.getData().mapDimensionsAll(n),c,d;if(l.getAxisTooltipData){var f=l.getAxisTooltipData(x,e,r);d=f.dataIndices,c=f.nestestValue}else{if(d=l.getData().indicesOfNearest(x[0],e,r.type==="category"?.5:null),!d.length)return;c=l.getData().get(x[0],d[0])}if(!(c==null||!isFinite(c))){var v=e-c,g=Math.abs(v);g<=i&&((g<i||v>=0&&s<0)&&(i=g,s=v,a=c,o.length=0),k(d,function(p){o.push({seriesIndex:l.seriesIndex,dataIndexInside:p,dataIndex:l.getData().getRawIndex(p)})}))}}),{payloadBatch:o,snapToValue:a}}function Qk(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function eT(e,t,r,n){var a=r.payloadBatch,o=t.axis,i=o.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!a.length)){var l=t.coordSys.model,u=Ti(l),x=e.map[u];x||(x=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(x)),x.dataByAxis.push({axisDim:o.dim,axisIndex:i.componentIndex,axisType:i.type,axisId:i.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:a.slice()})}}function tT(e,t,r){var n=r.axesInfo=[];k(t,function(a,o){var i=a.axisPointerModel.option,s=e[o];s?(!a.useHandle&&(i.status="show"),i.value=s.value,i.seriesDataIndices=(s.payloadBatch||[]).slice()):!a.useHandle&&(i.status="hide"),i.status==="show"&&n.push({axisDim:a.axis.dim,axisIndex:a.axis.model.componentIndex,value:i.value})})}function rT(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 nT(e,t,r){var n=r.getZr(),a="axisPointerLastHighlights",o=Zg(n)[a]||{},i=Zg(n)[a]={};k(e,function(u,x){var c=u.axisPointerModel.option;c.status==="show"&&u.triggerEmphasis&&k(c.seriesDataIndices,function(d){var f=d.seriesIndex+" | "+d.dataIndex;i[f]=d})});var s=[],l=[];k(o,function(u,x){!i[x]&&l.push(u)}),k(i,function(u,x){!o[x]&&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 aT(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 Kg(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 gy(e){ey.registerAxisPointerClass("CartesianAxisPointer",zk),e.registerComponentModel(Hk),e.registerComponentView(qk),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!Y(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=gS(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Kk)}function oT(e){Er(TS),Er(gy)}var Jg=["x","y","radius","angle","single"],iT=["cartesian2d","polar","singleAxis"];function sT(e){var t=e.get("coordinateSystem");return pe(iT,t)>=0}function an(e){return process.env.NODE_ENV!=="production"&&oe(e),e+"Axis"}function lT(e,t){var r=ue(),n=[],a=ue();e.eachComponent({mainType:"dataZoom",query:t},function(x){a.get(x.uid)||s(x)});var o;do o=!1,e.eachComponent("dataZoom",i);while(o);function i(x){!a.get(x.uid)&&l(x)&&(s(x),o=!0)}function s(x){a.set(x.uid,!0),n.push(x),u(x)}function l(x){var c=!1;return x.eachTargetAxis(function(d,f){var v=r.get(d);v&&v[f]&&(c=!0)}),c}function u(x){x.eachTargetAxis(function(c,d){(r.get(c)||r.set(c,[]))[d]=!0})}return n}function my(e){var t=e.ecModel,r={infoList:[],infoMap:ue()};return e.eachTargetAxis(function(n,a){var o=t.getComponent(an(n),a);if(o){var i=o.getCoordSysModel();if(i){var s=i.uid,l=r.infoMap.get(s);l||(l={model:i,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(o)}}}),r}var yx=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}(),I0=function(e){W(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 o=Qg(r);this.settledOption=o,this.mergeDefaultAndTheme(r,a),this._doInit(o)},t.prototype.mergeOption=function(r){var n=Qg(r);Ee(this.option,r,!0),Ee(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(o,i){this._rangePropMode[i]==="value"&&(n[o[0]]=a[o[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=ue(),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(o){o.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return k(Jg,function(a){var o=this.getReferringComponents(an(a),U7);if(o.specified){n=!0;var i=new yx;k(o.models,function(s){i.add(s.componentIndex)}),r.set(a,i)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var a=this.ecModel,o=!0;if(o){var i=n==="vertical"?"y":"x",s=a.findComponents({mainType:i+"Axis"});l(s,i)}if(o){var s=a.findComponents({mainType:"singleAxis",filter:function(x){return x.get("orient",!0)===n}});l(s,"single")}function l(u,x){var c=u[0];if(c){var d=new yx;if(d.add(c.componentIndex),r.set(x,d),o=!1,x==="x"||x==="y"){var f=c.getReferringComponents("grid",Et).models[0];f&&k(u,function(v){c.componentIndex!==v.componentIndex&&f===v.getReferringComponents("grid",Et).models[0]&&d.add(v.componentIndex)})}}}o&&k(Jg,function(u){if(o){var x=a.findComponents({mainType:an(u),filter:function(d){return d.get("type",!0)==="category"}});if(x[0]){var c=new yx;c.add(x[0].componentIndex),r.set(u,c),o=!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(o,i){var s=r[o[0]]!=null,l=r[o[1]]!=null;s&&!l?n[i]="percent":!s&&l?n[i]="value":a?n[i]=a[i]:s&&(n[i]="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,o){k(a.indexList,function(i){r.call(n,o,i)})})},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"&&oe(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(o){(r[o[0]]!=null||r[o[1]]!=null)&&(n[o[0]]=a[o[0]]=r[o[0]],n[o[1]]=a[o[1]]=r[o[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(),o=0;o<a.length;o++)for(var i=a[o],s=this._targetAxisInfoMap.get(i),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(i,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"&&oe(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}(Fe);function Qg(e){var t={};return k(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var uT=function(e){W(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,o){this.dataZoomModel=r,this.ecModel=n,this.api=a},t.type="dataZoom",t}(Jt);const Ey=uT;var Ta=k,em=jo,xT=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(sT(r)){var n=an(this._dimName),a=r.getReferringComponents(n,Et).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 ve(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var r=this._dataExtent,n=this.getAxisModel(),a=n.axis.scale,o=this._dataZoomModel.getRangePropMode(),i=[0,100],s=[],l=[],u;Ta(["start","end"],function(d,f){var v=t[d],g=t[d+"Value"];o[f]==="percent"?(v==null&&(v=i[f]),g=a.parse(Ke(v,i,r))):(u=!0,g=g==null?r[f]:a.parse(g),v=Ke(g,r,i)),l[f]=g==null||isNaN(g)?r[f]:g,s[f]=v==null||isNaN(v)?i[f]:v}),em(l),em(s);var x=this._minMaxSpan;u?c(l,s,r,i,!1):c(s,l,i,r,!0);function c(d,f,v,g,p){var m=p?"Span":"ValueSpan";Pl(0,d,v,"all",x["min"+m],x["max"+m]);for(var E=0;E<2;E++)f[E]=Ke(d[E],v,g,!0),p&&(f[E]=a.parse(f[E]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=cT(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(),o=t.get("filterMode"),i=this._valueWindow;if(o==="none")return;Ta(a,function(l){var u=l.getData(),x=u.mapDimensionsAll(n);if(x.length){if(o==="weakFilter"){var c=u.getStore(),d=q(x,function(f){return u.getDimensionIndex(f)},u);u.filterSelf(function(f){for(var v,g,p,m=0;m<x.length;m++){var E=c.get(d[m],f),y=!isNaN(E),B=E<i[0],D=E>i[1];if(y&&!B&&!D)return!0;y&&(p=!0),B&&(v=!0),D&&(g=!0)}return p&&v&&g})}else Ta(x,function(f){if(o==="empty")l.setData(u=u.map(f,function(g){return s(g)?g:NaN}));else{var v={};v[f]=i,u.selectRange(v)}});Ta(x,function(f){u.setApproximateExtent(i,f)})}});function s(l){return l>=i[0]&&l<=i[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;Ta(["min","max"],function(a){var o=r.get(a+"Span"),i=r.get(a+"ValueSpan");i!=null&&(i=this.getAxisModel().axis.scale.parse(i)),i!=null?o=Ke(n[0]+i,n,[0,100],!0):o!=null&&(i=Ke(o,[0,100],n,!0)-n[0]),t[a+"Span"]=o,t[a+"ValueSpan"]=i},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var a=R9(n,[0,500]);a=Math.min(a,20);var o=t.axis.scale.rawExtentInfo;r[0]!==0&&o.setDeterminedMinMax("min",+n[0].toFixed(a)),r[1]!==100&&o.setDeterminedMinMax("max",+n[1].toFixed(a)),o.freeze()}},e}();function cT(e,t,r){var n=[1/0,-1/0];Ta(r,function(i){AF(n,i.getData(),t)});var a=e.getAxisModel(),o=wE(a.axis.scale,a,n).calculate();return[o.min,o.max]}var fT={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(o){o.eachTargetAxis(function(i,s){var l=e.getComponent(an(i),s);a(i,s,l,o)})})}t(function(a,o,i,s){i.__dzAxisProxy=null});var r=[];t(function(a,o,i,s){i.__dzAxisProxy||(i.__dzAxisProxy=new xT(a,o,s,e),r.push(i.__dzAxisProxy))});var n=ue();return k(r,function(a){k(a.getTargetSeriesModels(),function(o){n.set(o.uid,o)})}),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(),o=n.getDataValueWindow();r.setCalculatedRange({start:a[0],end:a[1],startValue:o[0],endValue:o[1]})}})}};const dT=fT;function hT(e){e.registerAction("dataZoom",function(t,r){var n=lT(r,t);k(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var tm=!1;function yy(e){tm||(tm=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,dT),hT(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function vT(e,t){var r=yl(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Me({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 pT=function(e){W(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}(Fe);const gT=pT;function Cy(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function By(e){if(se.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var Ay=By(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),mT=By(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Dy(e,t){if(!e)return t;t=a8(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function ET(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?t?r[t]:r:null}var yT=Dy(mT,"transition"),bd=Dy(Ay,"transform"),CT="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(se.transform3dSupported?"will-change:transform;":"");function BT(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function AT(e,t,r){if(!K(r)||r==="inside")return"";var n=e.get("backgroundColor"),a=e.get("borderWidth");t=ea(t);var o=BT(r),i=Math.max(Math.round(a)*1.5,6),s="",l=bd+":",u;pe(["left","right"],o)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=o==="top"?225:45)+"deg)");var x=u*Math.PI/180,c=i+a,d=c*Math.abs(Math.cos(x))+c*Math.abs(Math.sin(x)),f=Math.round(((d-Math.SQRT2*a)/2+Math.SQRT2*a-(d-c)/2)*100)/100;s+=";"+o+":-"+f+"px";var v=t+" solid "+a+"px;",g=["position:absolute;width:"+i+"px;height:"+i+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'<div style="'+g.join("")+'"></div>'}function DT(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+=se.transformSupported?","+bd+n:",left"+n+",top"+n),yT+":"+a}function rm(e,t,r){var n=e.toFixed(0)+"px",a=t.toFixed(0)+"px";if(!se.transformSupported)return r?"top:"+a+";left:"+n+";":[["top",a],["left",n]];var o=se.transform3dSupported,i="translate"+(o?"3d":"")+"("+n+","+a+(o?",0":"")+")";return r?"top:0;left:0;"+bd+":"+i+";":[["top",0],["left",0],[Ay,i]]}function _T(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"),o=e.get("textShadowBlur")||0,i=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+i+"px "+s+"px "+o+"px "+a),k(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function wT(e,t,r){var n=[],a=e.get("transitionDuration"),o=e.get("backgroundColor"),i=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),x=e.getModel("textStyle"),c=S8(e,"html"),d=l+"px "+u+"px "+i+"px "+s;return n.push("box-shadow:"+d),t&&a&&n.push(DT(a,r)),o&&n.push("background-color:"+o),k(["width","color","radius"],function(f){var v="border-"+f,g=a8(v),p=e.get(g);p!=null&&n.push(v+":"+p+(f==="color"?"":"px"))}),n.push(_T(x)),c!=null&&n.push("padding:"+yl(c).join("px ")+"px"),n.join(";")+";"}function nm(e,t,r,n,a){var o=t&&t.painter;if(r){var i=o&&o.getViewportRoot();i&&hB(e,i,r,n,a)}else{e[0]=n,e[1]=a;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var FT=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,se.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var a=this._zr=t.getZr(),o=r.appendTo,i=o&&(K(o)?document.querySelector(o):ja(o)?o:xe(o)&&o(t.getDom()));nm(this._styleCoord,a,i,t.getWidth()/2,t.getHeight()/2),(i||t.getDom()).appendChild(n),this._api=t,this._container=i;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,x=a.painter.getViewportRoot();Mt(x,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=ET(r,"position"),a=r.style;a.position!=="absolute"&&n!=="absolute"&&(a.position="relative")}var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,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,o=this._styleCoord;n.innerHTML?a.cssText=CT+wT(t,!this._firstShow,this._longHide)+rm(o[0],o[1],!0)+("border-color:"+ea(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,o){var i=this.el;if(t==null){i.innerHTML="";return}var s="";if(K(o)&&n.get("trigger")==="item"&&!Cy(n)&&(s=AT(n,a,o)),K(t))i.innerHTML=t+s;else if(t){i.innerHTML="",Y(t)||(t=[t]);for(var l=0;l<t.length;l++)ja(t[l])&&t[l].parentNode!==i&&i.appendChild(t[l]);if(s&&i.childNodes.length){var u=document.createElement("div");u.innerHTML=s,i.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(nm(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var a=this.el.style,o=rm(n[0],n[1]);k(o,function(i){a[i[0]]=i[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",se.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(ne(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 bT=FT;var ST=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),om(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,o){var i=this;re(t)&&ct(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 Ze({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:a,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:S8(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),k(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){i.el.style[u]=n.get(u)}),k(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){i.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=am(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;om(a,this._zr,t,r),t=a[0],r=a[1];var o=n.style,i=Kr(o.borderWidth||0),s=am(o);n.x=t+i+s.left,n.y=r+i+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(ne(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 am(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 om(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var kT=new Me({shape:{x:-1,y:-1,width:2,height:2}}),TT=function(e){W(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(!(se.node||!n.getDom())){var a=r.getComponent("tooltip"),o=this._renderMode=Y7(a.get("renderMode"));this._tooltipContent=o==="richText"?new ST(n):new bT(n,{appendTo:a.get("appendToBody",!0)?"body":a.get("appendTo",!0)})}},t.prototype.render=function(r,n,a){if(!(se.node||!a.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=a;var o=this._tooltipContent;o.update(r),o.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Dl(this,"_updatePosition",50,"fixRate"):C0(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");vy("itemTooltip",this._api,ne(function(a,o,i){n!=="none"&&(n.indexOf(a)>=0?this._tryShow(o,i):a==="leave"&&this._hide(i))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,a=this._api,o=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!a.isDisposed()&&i.manuallyShowTip(r,n,a,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,a,o){if(!(o.from===this.uid||se.node||!a.getDom())){var i=im(o,a);this._ticket="";var s=o.dataByCoordSys,l=IT(o,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:o.position,positionDefault:"bottom"},i)}else if(o.tooltip&&o.x!=null&&o.y!=null){var x=kT;x.x=o.x,x.y=o.y,x.update(),me(x).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:x},i)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},i);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,a,o))return;var c=py(o,n),d=c.point[0],f=c.point[1];d!=null&&f!=null&&this._tryShow({offsetX:d,offsetY:f,target:c.el,position:o.position,positionDefault:"bottom"},i)}else o.x!=null&&o.y!=null&&(a.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:a.getZr().findHover(o.x,o.y).target},i))}},t.prototype.manuallyHideTip=function(r,n,a,o){var i=this._tooltipContent;this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(im(o,a))},t.prototype._manuallyAxisShowTip=function(r,n,a,o){var i=o.seriesIndex,s=o.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(i==null||s==null||l==null)){var u=n.getSeriesByIndex(i);if(u){var x=u.getData(),c=Vo([x.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(c.get("trigger")==="axis")return a.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:s,position:o.position}),!0}}},t.prototype._tryShow=function(r,n){var a=r.target,o=this._tooltipModel;if(o){this._lastX=r.offsetX,this._lastY=r.offsetY;var i=r.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,r);else if(a){var s=me(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Jo(a,function(x){if(me(x).dataIndex!=null)return l=x,!0;if(me(x).tooltipConfig!=null)return u=x,!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=ne(n,this),clearTimeout(this._showTimout),a>0?this._showTimout=setTimeout(n,a):n()},t.prototype._showAxisTooltip=function(r,n){var a=this._ecModel,o=this._tooltipModel,i=[n.offsetX,n.offsetY],s=Vo([n.tooltipOption],o),l=this._renderMode,u=[],x=ra("section",{blocks:[],noHeader:!0}),c=[],d=new $u;k(r,function(E){k(E.dataByAxis,function(y){var B=a.getComponent(y.axisDim+"Axis",y.axisIndex),D=y.value;if(!(!B||D==null)){var A=dy(D,B.axis,a,y.seriesDataIndices,y.valueLabelOpt),_=ra("section",{header:A,noHeader:!hr(A),sortBlocks:!0,blocks:[]});x.blocks.push(_),k(y.seriesDataIndices,function(C){var w=a.getSeriesByIndex(C.seriesIndex),b=C.dataIndexInside,F=w.getDataParams(b);if(!(F.dataIndex<0)){F.axisDim=y.axisDim,F.axisIndex=y.axisIndex,F.axisType=y.axisType,F.axisId=y.axisId,F.axisValue=vd(B.axis,{value:D}),F.axisValueLabel=A,F.marker=d.makeTooltipMarker("item",ea(F.color),l);var S=jv(w.formatTooltip(b,!0,null)),P=S.frag;if(P){var T=Vo([w],o).get("valueFormatter");_.blocks.push(T?H({valueFormatter:T},P):P)}S.text&&c.push(S.text),u.push(F)}})}})}),x.blocks.reverse(),c.reverse();var f=n.position,v=s.get("order"),g=Qv(x,d,l,v,a.get("useUTC"),s.get("textStyle"));g&&c.unshift(g);var p=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=ye(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=Bi([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),_=new $c;y.marker=_.makeTooltipMarker("item",Qn(y.color),h);var w=qg(u.formatTooltip(c,!1,f)),S=m.get("order"),T=m.get("valueFormatter"),C=w.frag,N=C?Jg(T?z({valueFormatter:T},C):C,_,h,S,i.get("useUTC"),m.get("textStyle")):w.text,b="item_"+u.name+"_"+c;this._showOrMove(m,function(){this._showTooltipContent(m,N,y,b,r.offsetX,r.offsetY,r.position,r.target,_)}),a({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,a){var i=ye(n),o=i.tooltipConfig,s=o.option||{};if(X(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=Bi(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),p=Math.random()+"",m=new $c;this._showOrMove(d,function(){var g=he(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(X(d)){var g=r.ecModel.get("useUTC"),y=U(a)?a[0]:a,_=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=d,_&&(h=pu(y.axisValue,h,g)),h=aw(h,a,!0)}else if(se(d)){var w=te(function(S,T){S===this._ticket&&(f.setContent(T,c,r,m,l),this._updatePosition(r,l,o,s,f,a,u))},this);this._ticket=i,h=d(a,i,w)}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),se(n)&&(n=n([a,i],s,o.el,p,{viewSize:[u,c],contentSize:f.slice()})),U(n))a=Ae(n[0],u),i=Ae(n[1],c);else if(Q(n)){var m=n;m.width=f[0],m.height=f[1];var g=ea(m,{width:u,height:c});a=g.x,i=g.y,d=null,h=null}else if(X(n)&&l){var y=LB(n,p,f,r.get("borderWidth"));a=y[0],i=y[1]}else{var y=PB(a,i,o,u,c,d?null:20,h?null:20);a=y[0],i=y[1]}if(d&&(a-=o0(d)?f[0]/2:d==="right"?f[0]:0),h&&(i-=o0(h)?f[1]/2:h==="bottom"?f[1]:0),wS(r)){var y=IB(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,_){var w=g[_];o=o&&y.seriesIndex===w.seriesIndex&&y.dataIndex===w.dataIndex}),i&&k(d.seriesDataIndices,function(y){var _=y.seriesIndex,w=n[_],S=i[_];w&&S&&S.data!==w.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){ae.node||!n.getDom()||(bl(this,"_updatePosition"),this._tooltipContent.dispose(),Ih("itemTooltip",n))},t.type="tooltip",t}(Xt);function Bi(e,t,r){var n=t.ecModel,a;r?(a=new et(r,n,n),a=new et(t.option,a,n)):a=t;for(var i=e.length-1;i>=0;i--){var o=e[i];o&&(o instanceof et&&(o=o.get("tooltip",!0)),X(o)&&(o={formatter:o}),o&&(a=new et(o,a,n)))}return a}function i0(e,t){return e.dispatchAction||te(t.dispatchAction,t)}function PB(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 IB(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 LB(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 o0(e){return e==="center"||e==="middle"}function OB(e,t,r){var n=Td(e).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=Oo(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=ye(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const RB=EB;function BB(e){pr(gS),e.registerComponentModel(mB),e.registerComponentView(RB),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},lt),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},lt)}var VB=function(e){G(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}(De),$B=function(e){G(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=ie(r.get("textBaseline"),r.get("textVerticalAlign")),c=new Ue({style:jt(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),h=new Ue({style:jt(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(){Mg(p,"_"+r.get("target"))}),m&&h.on("click",function(){Mg(m,"_"+r.get("subtarget"))}),ye(c).eventData=ye(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,i.add(c),d&&i.add(h);var y=i.getBoundingRect(),_=r.getBoxLayoutParams();_.width=y.width,_.height=y.height;var w=ea(_,{width:a.getWidth(),height:a.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?w.x+=w.width:l==="center"&&(w.x+=w.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?w.y+=w.height:u==="middle"&&(w.y+=w.height/2),u=u||"top"),i.x=w.x,i.y=w.y,i.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),y=i.getBoundingRect();var T=w.margin,C=r.getItemStyle(["color","opacity"]);C.fill=r.get("backgroundColor");var N=new Ie({shape:{x:y.x-T[3],y:y.y-T[0],width:y.width+T[1]+T[3],height:y.height+T[0]+T[2],r:r.get("borderRadius")},style:C,subPixelOptimize:!0,silent:!0});i.add(N)}},t.type="title",t}(Xt);function FB(e){e.registerComponentModel(VB),e.registerComponentView($B)}function zB(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 Ms(e){ll(e,"label",["show"])}var ks=ke(),TS=function(e){G(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(ae.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=ks(s)[o];if(!l||!l.data){ks(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&Ms(l),k(l.data,function(c){c instanceof Array?(Ms(c[0]),Ms(c[1])):Ms(c)}),u=this.createMarkerModelFromSeries(l,this,n),z(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),ks(s)[o]=u},this)},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r);return ta("section",{header:this.name,blocks:[ta("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 ks(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(De);Kt(TS,_w.prototype);const Rl=TS;function GB(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function HB(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function Es(e,t,r,n,a,i){var o=[],s=ra(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=Dv(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=fr(t.get(n,c));return d=Math.min(d,20),d>=0&&(o[i]=+o[i].toFixed(d)),[o,f]}var bf={min:Ne(Es,"min"),max:Ne(Es,"max"),average:Ne(Es,"average"),median:Ne(Es,"median")};function s0(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,a=n&&n.dimensions;if(!HB(t)&&!U(t.coord)&&U(a)){var i=xS(t,r,n,e);if(t=he(t),t.type&&bf[t.type]&&i.baseAxis&&i.valueAxis){var o=de(a,i.baseAxis.dim),s=de(a,i.valueAxis.dim),l=bf[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++)bf[u[c]]&&(u[c]=Dv(r,r.mapDimension(a[c]),u[c]));return t}}function xS(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(UB(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 UB(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function l0(e,t){return e&&e.containData&&t.coord&&!GB(t)?e.containData(t.coord):!0}function WB(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 Dv(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 Sf=ke(),YB=function(e){G(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=oe()},t.prototype.render=function(r,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){Sf(s).keep=!1}),n.eachSeries(function(s){var l=Rl.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!Sf(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(r){Sf(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var a=this;k(r,function(i){var o=Rl.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?h1(l):Md(l))})}})},t.type="marker",t}(Xt);const qB=YB;var jB=function(e){G(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}(Rl);const XB=jB;var Ps=ke(),ZB=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=cn(n.yAxis,n.xAxis);else{var u=xS(n,a,t,e);s=u.valueAxis;var c=hb(a,u.valueDataDim);l=Dv(a,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=he(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&&Me(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"&&an("Invalid markLine data."),i=[]}var g=[s0(e,i[0]),s0(e,i[1]),z({},i[2])];return g[2].type=g[2].type||null,_e(g[2],g[0]),_e(g[2],g[1]),g};function Bl(e){return!isNaN(e)&&!isFinite(e)}function u0(e,t,r,n){var a=1-e,i=n.dimensions[e];return Bl(t[a])&&Bl(r[a])&&t[e]===r[e]&&n.getAxis(i).containData(t[e])}function KB(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(u0(1,r,n,e)||u0(0,r,n,e)))return!0}return l0(e,t[0])&&l0(e,t[1])}function Cf(e,t,r,n,a){var i=n.coordinateSystem,o=e.getItemModel(t),s,l=Ae(o.get("x"),a.getWidth()),u=Ae(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(Pu(i,"cartesian2d")){var h=i.getAxis("x"),p=i.getAxis("y"),c=i.dimensions;Bl(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):Bl(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 JB=function(e){G(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=Rl.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Ps(o).from,u=Ps(o).to;l.each(function(c){Cf(l,c,!0,i,a),Cf(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 zO);this.group.add(c.group);var f=QB(o,r,n),d=f.from,h=f.to,p=f.line;Ps(n).from=d,Ps(n).to=h,n.setData(p);var m=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),_=n.get("symbolOffset");U(m)||(m=[m,m]),U(g)||(g=[g,g]),U(y)||(y=[y,y]),U(_)||(_=[_,_]),f.from.each(function(S){w(d,S,!0),w(h,S,!1)}),p.each(function(S){var T=p.getItemModel(S).getModel("lineStyle").getLineStyle();p.setItemLayout(S,[d.getItemLayout(S),h.getItemLayout(S)]),T.stroke==null&&(T.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:T})}),c.updateData(p),f.line.eachItemGraphicEl(function(S){ye(S).dataModel=n,S.traverse(function(T){ye(T).dataModel=n})});function w(S,T,C){var N=S.getItemModel(T);Cf(S,T,C,r,i);var b=N.getModel("itemStyle").getItemStyle();b.fill==null&&(b.fill=Bw(l,"color")),S.setItemVisual(T,{symbolKeepAspect:N.get("symbolKeepAspect"),symbolOffset:ie(N.get("symbolOffset",!0),_[C?0:1]),symbolRotate:ie(N.get("symbolRotate",!0),y[C?0:1]),symbolSize:ie(N.get("symbolSize"),g[C?0:1]),symbol:ie(N.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}(qB);function QB(e,t,r){var n;e?n=q(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return z(z({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new ho(n,r),i=new ho(n,r),o=new ho([],r),s=q(r.get("data"),Ne(ZB,t,e,r));e&&(s=je(s,Ne(KB,e)));var l=WB(!!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 eV=JB;function tV(e){e.registerComponentModel(XB),e.registerComponentView(eV),e.registerPreprocessor(function(t){zB(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var rV=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"])}},nV=function(e){G(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){X(i)&&(i={type:i}),n[o]=_e(i,rV(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&&Cd(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=oe(),s=q(i,function(l){return(X(l)||Me(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new et(l,this,this.ecModel))},this);this._data=je(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])&&de(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}(De);const Lh=nV;var Da=Ne,Oh=k,Is=Re,aV=function(e){G(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 Is),this.group.add(this._selectorGroup=new Is),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=ea(c,f,d),p=this.layoutInner(r,o,h,i,l,u),m=ea(pe({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=pB(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=oe(),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
|
|
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 lV(e){e.registerAction("legendToggleSelect","legendselectchanged",Ne(Vi,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Ne(Vi,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Ne(Vi,"inverseSelect")),e.registerAction("legendSelect","legendselected",Ne(Vi,"select")),e.registerAction("legendUnSelect","legendunselected",Ne(Vi,"unSelect"))}function AS(e){e.registerComponentModel(Lh),e.registerComponentView(DS),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,sV),e.registerSubTypeDefaulter("legend",function(){return"plain"}),lV(e)}var uV=function(e){G(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=Ro(r);e.prototype.init.call(this,r,n,a),f0(this,r,i)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),f0(this,this.option,r)},t.type="legend.scroll",t.defaultOption=vu(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 f0(e,t,r){var n=e.getOrient(),a=[1,1];a[n.index]=0,Ja(t,r,{type:"box",ignoreSize:!!a})}const cV=uV;var h0=Re,Tf=["width","height"],xf=["x","y"],fV=function(e){G(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 h0),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new h0)},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 Ue({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",_=Vd(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:te(u._pageGo,u,y,n,i)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});_.name=m,c.add(_)}},t.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=Tf[u],f=xf[u],d=Tf[1-u],h=xf[1-u];o&&lo("horizontal",l,r.get("selectorItemGap",!0));var p=r.get("selectorButtonGap",!0),m=l.getBoundingRect(),g=[-m.x,-m.y],y=he(a);o&&(y[c]=a[c]-m[c]-p);var _=this._layoutContentAndController(r,i,y,u,c,d,h,f);if(o){if(s==="end")g[u]+=_[c]+p;else{var w=m[c]+p;g[u]-=w,_[f]-=w}_[c]+=m[c]+p,g[1-u]+=_[h]+_[d]/2-m[d]/2,_[d]=Math.max(_[d],m[d]),_[h]=Math.min(_[h],m[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return _},t.prototype._layoutContentAndController=function(r,n,a,i,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;lo(r.get("orient"),c,r.get("itemGap"),i?a.width:null,i?null:a.height),lo("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],_=[-p.x,-p.y],w=ie(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(m){var S=r.get("pageButtonPosition",!0);S==="end"?_[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(_);var T={x:0,y:0};if(T[o]=m?a[o]:h[o],T[s]=Math.max(h[s],p[s]),T[l]=Math.min(0,p[l]+_[1-i]),f.__rectSize=a[o],m){var C={x:0,y:0};C[o]=Math.max(a[o]-p[o]-w,0),C[s]=T[s],f.setClipPath(new Ie({shape:C})),f.__rectSize=C[o]}else d.eachChild(function(b){b.attr({invisible:!0,silent:!0})});var N=this._getPageInfo(r);return N.pageIndex!=null&&rt(c,{x:N.contentPosition[0],y:N.contentPosition[1]},m?r:null),this._updatePageInfoView(r,N),T},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",X(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=Tf[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,_=m,w=null;g<=d;++g)w=S(c[g]),(!w&&_.e>y.s+i||w&&!T(w,y.s))&&(_.i>y.i?y=_:y=w,y&&(p.pageNextDataIndex==null&&(p.pageNextDataIndex=y.i),++p.pageCount)),_=w;for(var g=u-1,y=m,_=m,w=null;g>=-1;--g)w=S(c[g]),(!w||!T(_,w.s))&&y.i<_.i&&(_=y,p.pagePrevDataIndex==null&&(p.pagePrevDataIndex=y.i),++p.pageCount,++p.pageIndex),y=w;return p;function S(C){if(C){var N=C.getBoundingRect(),b=N[l]+C[l];return{s:b,e:b+N[s],i:C.__legendDataIndex}}}function T(C,N){return C.e>=N&&C.s<=N+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}(DS);const hV=fV;function dV(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 vV(e){pr(AS),e.registerComponentModel(cV),e.registerComponentView(hV),dV(e)}function pV(e){pr(AS),pr(vV)}var gV=function(e){G(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=vu(Ol.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(Ol);const mV=gV;var Av=ke();function yV(e,t,r){Av(e).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=r)})}function _V(e,t){for(var r=Av(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||MS(r,o))}}}function MS(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function wV(e,t){var r={model:t,containsPoint:Ne(SV,t),dispatchAction:Ne(bV,e),dataZoomInfoMap:null,controller:null},n=r.controller=new LO(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 bV(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function SV(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function CV(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 TV(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=Av(r),a=n.coordSysRecordMap||(n.coordSysRecordMap=oe());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=mS(i);k(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,wV(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=oe());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){MS(a,i);return}var c=CV(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),Tu(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var xV=function(e){G(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(),yV(a,r,{pan:te(Nf.pan,this),zoom:te(Nf.zoom,this),scrollMove:te(Nf.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){_V(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(yS),Nf={zoom:function(e,t,r,n){var a=this.range,i=a.slice(),o=e.axisModels[0];if(o){var s=Df[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(Iu(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:d0(function(e,t,r,n,a,i){var o=Df[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:d0(function(e,t,r,n,a,i){var o=Df[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,r);return o.signal*(e[1]-e[0])*i.scrollDelta})};function d0(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(Iu(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var Df={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 NV=xV;function DV(e){_S(e),e.registerComponentModel(mV),e.registerComponentView(NV),TV(e)}var AV=function(e){G(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=vu(Ol.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}(Ol);const MV=AV;var $i=Ie,v0=7,kV=1,Af=30,EV=7,Fi="horizontal",p0="vertical",PV=5,IV=["line","bar","candlestick","scatter"],LV={easing:"cubicOut",duration:100,delay:0},OV=function(e){G(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=te(this._onBrush,this),this._onBrushEnd=te(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(){bl(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 Re;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?EV:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Fi?{right:s.width-o.x-o.width,top:s.height-Af-v0-i,width:o.width,height:Af}:{right:v0,top:o.y,width:Af,height:o.height},u=Ro(r.option);k(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=ea(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===p0&&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===Fi&&!o?{scaleY:l?1:-1,scaleX:1}:a===Fi&&o?{scaleY:l?1:-1,scaleX:-1}:a===p0&&!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 $i({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new $i({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:te(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),_=0,w=Math.round(o.count()/n[0]),S;o.each([l],function(x,A){if(w>0&&A%w){_+=y;return}var D=x==null||isNaN(x)||x==="",M=D?0:Ye(x,f,h,!0);D&&!S&&A?(m.push([m[m.length-1][0],0]),g.push([g[g.length-1][0],0])):!D&&S&&(m.push([_,0]),g.push([_,0])),m.push([_,M]),g.push([_,M]),_+=y,S=D}),u=this._shadowPolygonPts=m,c=this._shadowPolylinePts=g}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var T=this.dataZoomModel;function C(x){var A=T.getModel(x?"selectedDataBackground":"dataBackground"),D=new Re,M=new Pd({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new oi({shape:{points:c},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(M),D.add(P),D}for(var N=0;N<3;N++){var b=C(N===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&&de(IV,u.get("type"))<0)){var c=i.getComponent(nn(o),s).axis,f=RV(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 $i({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new $i({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:kV,fill:"rgba(0,0,0,0)"}})),k([0,1],function(w){var S=l.get("handleIcon");!Cl[S]&&S.indexOf("path://")<0&&S.indexOf("image://")<0&&(S="path://"+S,process.env.NODE_ENV!=="production"&&qt("handleIcon now needs 'path://' prefix when using a path string"));var T=Rr(S,-1,0,2,2,null,!0);T.attr({cursor:g0(this._orient),draggable:!0,drift:te(this._onDragMove,this,w),ondragend:te(this._onDragEnd,this),onmouseover:te(this._showDataInfo,this,!0),onmouseout:te(this._showDataInfo,this,!1),z2:5});var C=T.getBoundingRect(),N=l.get("handleSize");this._handleHeight=Ae(N,this._size[1]),this._handleWidth=C.width/C.height*this._handleHeight,T.setStyle(l.getModel("handleStyle").getItemStyle()),T.style.strokeNoScale=!0,T.rectHover=!0,T.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),cl(T);var b=l.get("handleColor");b!=null&&(T.style.fill=b),o.add(a[w]=T);var x=l.getModel("textStyle");r.add(i[w]=new Ue({silent:!0,invisible:!0,style:jt(x,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:x.getTextColor(),font:x.getFont()}),z2:10}))},this);var h=d;if(f){var p=Ae(l.get("moveHandleSize"),s[1]),m=n.moveHandle=new Ie({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=Rr(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 _=Math.min(s[1]/2,Math.max(p,10));h=n.moveZone=new Ie({invisible:!0,shape:{y:s[1]-_,height:p+_}}),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:g0(this._orient),drift:te(this._onDragMove,this,"all"),ondragstart:te(this._showDataInfo,this,!0),ondragend:te(this._onDragEnd,this),onmouseover:te(this._showDataInfo,this,!0),onmouseout:te(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Ye(r[0],[0,100],n,!0),Ye(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];Iu(n,i,o,a.get("zoomLock")?"all":r,s.minSpan!=null?Ye(s.minSpan,l,o,!0):null,s.maxSpan!=null?Ye(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Yi([Ye(i[0],o,l,!0),Ye(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=Yi(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 Ie,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=Yi(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(p){var m=$1(a.handles[p].parent,this.group),g=F1(p===0?"right":"left",m),y=this._handleWidth/2+PV,_=bo([d[p]+(p===0?-y:y),this._size[1]/2],m);i[p].setStyle({x:_[0],y:_[1],verticalAlign:o===Fi?"middle":g,align:o===Fi?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 se(i)?i(r,s):X(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=bo([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 le(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=Yi([Ye(a.x,o,s,!0),Ye(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 $i({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?LV:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=mS(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}(yS);function RV(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function g0(e){return e==="vertical"?"ns-resize":"ew-resize"}const BV=OV;function VV(e){e.registerComponentModel(MV),e.registerComponentView(BV),_S(e)}function $V(e){pr(DV),pr(VV)}function m0(e,t,r){var n=ni.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 FV=function(e){G(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||nl,typeof r=="string"?o=m0(r,n,a):Q(r)&&(o=r,r=o.id),i.id=r,i.dom=o;var s=o.style;return s&&(p_(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=m0("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 Ce(0,0,0,0);function c(_){if(!(!_.isFinite()||_.isZero()))if(o.length===0){var w=new Ce(0,0,0,0);w.copy(_),o.push(w)}else{for(var S=!1,T=1/0,C=0,N=0;N<o.length;++N){var b=o[N];if(b.intersect(_)){var x=new Ce(0,0,0,0);x.copy(b),x.union(_),o[N]=x,S=!0;break}else if(l){u.copy(_),u.union(b);var A=_.width*_.height,D=b.width*b.height,M=u.width*u.height,P=M-A-D;P<T&&(T=P,C=N)}}if(l&&(o[C].union(_),S=!0),!S){var w=new Ce(0,0,0,0);w.copy(_),o.push(w)}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&bt||!h)?d.getPrevPaintRect():null;p&&c(p);var m=h&&(d.__dirty&bt||!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,_){if(o.clearRect(m,g,y,_),n&&n!=="transparent"){var w=void 0;if(Ql(n)){var S=n.global||n.__width===y&&n.__height===_;w=S&&n.__canvasGradient||gh(o,n,{x:0,y:0,width:y,height:_}),n.__canvasGradient=w,n.__width=y,n.__height=_}else tN(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,w=mh(o,n,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));o.save(),o.fillStyle=w||n,o.fillRect(m,g,y,_),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(h,m,g,y,_),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}(Jt);const Mf=FV;var y0=1e5,Vn=314159,Ls=.01,zV=.001;function GV(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function HV(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 UV=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=z({},n||{}),this.dpr=n.devicePixelRatio||nl,this._singleCanvas=i,this.root=t;var o=t.style;o&&(p_(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 Mf(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[Vn]=h,h.zlevel=Vn,s.push(Vn),this._domRoot=t}else{this._width=gs(t,0,n),this._height=gs(t,1,n);var u=this._domRoot=HV(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(y0)),i||(i=n.ctx,i.save()),Hn(i,s,a,o===r-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(y0)},e.prototype.paintOne=function(t,r){zw(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,_=o&&g.createRepaintRects(t,r,h._width,h._height),w=n?g.__startIndex:g.__drawIndex,S=!n&&g.incremental&&Date.now,T=S&&Date.now(),C=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,C,_);else if(w===g.__startIndex){var N=t[w];(!N.incremental||!N.notClear||n)&&g.clear(!1,C,_)}w===-1&&(console.error("For some unknown reason. drawIndex is -1"),w=g.__startIndex);var b,x=function(P){var E={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(b=w;b<g.__endIndex;b++){var I=t[b];if(I.__inHover&&(f=!0),a._doPaintEl(I,g,o,P,E,b===g.__endIndex-1),S){var L=Date.now()-T;if(L>15)break}}E.prevElClipPaths&&y.restore()};if(_)if(_.length===0)b=g.__endIndex;else for(var A=h.dpr,D=0;D<_.length;++D){var M=_[D];y.save(),y.beginPath(),y.rect(M.x*A,M.y*A,M.width*A,M.height*A),y.clip(),x(M),y.restore()}else y.save(),x(),y.restore();g.__drawIndex=b,g.__drawIndex<g.__endIndex&&(c=!1)},h=this,p=0;p<i.length;p++)d(p);return ae.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 Mf("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?_e(n,this._layerConfig[t],!0):this._layerConfig[t-Ls]&&_e(n,this._layerConfig[t-Ls],!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"&&an("ZLevel "+t+" has been used already");return}if(!GV(r)){process.env.NODE_ENV!=="production"&&an("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+zV,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?Ls:0),this._needsManuallyCompositing),c.__builtin__||an("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&bt&&!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]?_e(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+Ls){var o=this._layers[i];_e(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(de(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=gs(i,0,a),r=gs(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 Mf("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 WV=UV;function YV(e){e.registerPainter("canvas",WV)}const qV={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:"OneUI"},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"}}}},jV={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:"OneUI"},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"}}}};Du("white",qV);Du("dark",jV);pr([IL,gL,XL,kR,FB,BB,iB,YV,pV,$V,tV]);const XV={display:"flex",flexDirection:"column",width:"100%",height:"100%"},or=new WeakMap,kS=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(()=>j.theme,()=>{this.dispose(),this.init()}),this.init()},created(){window.onload=()=>{or.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:j.theme?"dark":"white",a=dP(e,n,{renderer:t,devicePixelRatio:window.devicePixelRatio});or.set(this,a),r(or.get(this))})})},setOption(){if(!or.get(this))return;const e=this.notMerge,t=this.lazyUpdate,r=this.silent,n=this.options,a=or.get(this);a==null||a.setOption(n,{notMerge:e,lazyUpdate:t,silent:r})},resizeChart(){this.$nextTick(()=>{var e;(e=or.get(this))==null||e.resize()})},getInstance(){return or.get(this)},dispose(){var e;this.resizeAble&&window.removeEventListener("resize",this.resizeChart),(e=or.get(this))==null||e.dispose(),or.set(this,null),or.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({},XV,e||{});return v.h("div",{style:t})}}),ZV=v.defineComponent({name:"OcError",components:{NButton:R.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=()=>{Cr.push(j.platformUrl)},a=v.ref();return v.onMounted(()=>{r.value=t[e.type],a.value=setInterval(()=>{Cr.push(j.platformUrl)},3e3)}),v.onBeforeUnmount(()=>{clearInterval(a.value)}),{goBack:n,content:r}}}),KV={class:"com-card flex-center oc-error"},JV=["src","alt"],QV={class:"oc-miss-txt"},e3={class:"oc-miss-title"},t3={class:"oc-miss-title2"};function r3(e,t,r,n,a,i){const o=v.resolveComponent("NButton");return v.openBlock(),v.createElementBlock("div",KV,[v.createElementVNode("img",{src:e.content.img,alt:e.content.txt,width:"360"},null,8,JV),v.createElementVNode("div",QV,v.toDisplayString(e.content.txt),1),v.createElementVNode("p",e3,v.toDisplayString(e.content.title),1),v.createElementVNode("p",t3,v.toDisplayString(e.content.title2),1),v.createVNode(o,{tertiary:"",onClick:e.goBack},{default:v.withCtx(()=>[v.createTextVNode("返回首页")]),_:1},8,["onClick"])])}const ES=re(ZV,[["render",r3]]),n3=v.defineComponent({name:"OcFooter",props:{version:{type:String,default:""}}}),a3={class:"oc-footer"},i3=v.createElementVNode("span",{style:{"font-family":"Arial, Helvetica, sans-serif"}},"©",-1),o3=v.createElementVNode("a",{href:"https://beian.miit.gov.cn/",target:"_blank",class:"oc-footer-record"}," 沪ICP备 18025935号-3 ",-1);function s3(e,t,r,n,a,i){return v.openBlock(),v.createElementBlock("footer",a3,[v.createTextVNode(" Copyright "),i3,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),o3])}const PS=re(n3,[["render",s3]]);var Os=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Mv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function l3(){this.__data__=[],this.size=0}var u3=l3;function c3(e,t){return e===t||e!==e&&t!==t}var IS=c3,f3=IS;function h3(e,t){for(var r=e.length;r--;)if(f3(e[r][0],t))return r;return-1}var Lu=h3,d3=Lu,v3=Array.prototype,p3=v3.splice;function g3(e){var t=this.__data__,r=d3(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():p3.call(t,r,1),--this.size,!0}var m3=g3,y3=Lu;function _3(e){var t=this.__data__,r=y3(t,e);return r<0?void 0:t[r][1]}var w3=_3,b3=Lu;function S3(e){return b3(this.__data__,e)>-1}var C3=S3,T3=Lu;function x3(e,t){var r=this.__data__,n=T3(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var N3=x3,D3=u3,A3=m3,M3=w3,k3=C3,E3=N3;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=D3;fi.prototype.delete=A3;fi.prototype.get=M3;fi.prototype.has=k3;fi.prototype.set=E3;var Ou=fi,P3=Ou;function I3(){this.__data__=new P3,this.size=0}var L3=I3;function O3(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var R3=O3;function B3(e){return this.__data__.get(e)}var V3=B3;function $3(e){return this.__data__.has(e)}var F3=$3,z3=typeof Os=="object"&&Os&&Os.Object===Object&&Os,LS=z3,G3=LS,H3=typeof self=="object"&&self&&self.Object===Object&&self,U3=G3||H3||Function("return this")(),tr=U3,W3=tr,Y3=W3.Symbol,kv=Y3,_0=kv,OS=Object.prototype,q3=OS.hasOwnProperty,j3=OS.toString,zi=_0?_0.toStringTag:void 0;function X3(e){var t=q3.call(e,zi),r=e[zi];try{e[zi]=void 0;var n=!0}catch{}var a=j3.call(e);return n&&(t?e[zi]=r:delete e[zi]),a}var Z3=X3,K3=Object.prototype,J3=K3.toString;function Q3(e){return J3.call(e)}var e$=Q3,w0=kv,t$=Z3,r$=e$,n$="[object Null]",a$="[object Undefined]",b0=w0?w0.toStringTag:void 0;function i$(e){return e==null?e===void 0?a$:n$:b0&&b0 in Object(e)?t$(e):r$(e)}var $o=i$;function o$(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var gn=o$,s$=$o,l$=gn,u$="[object AsyncFunction]",c$="[object Function]",f$="[object GeneratorFunction]",h$="[object Proxy]";function d$(e){if(!l$(e))return!1;var t=s$(e);return t==c$||t==f$||t==u$||t==h$}var RS=d$,v$=tr,p$=v$["__core-js_shared__"],g$=p$,kf=g$,S0=function(){var e=/[^.]+$/.exec(kf&&kf.keys&&kf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function m$(e){return!!S0&&S0 in e}var y$=m$,_$=Function.prototype,w$=_$.toString;function b$(e){if(e!=null){try{return w$.call(e)}catch{}try{return e+""}catch{}}return""}var BS=b$,S$=RS,C$=y$,T$=gn,x$=BS,N$=/[\\^$.*+?()[\]{}|]/g,D$=/^\[object .+?Constructor\]$/,A$=Function.prototype,M$=Object.prototype,k$=A$.toString,E$=M$.hasOwnProperty,P$=RegExp("^"+k$.call(E$).replace(N$,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function I$(e){if(!T$(e)||C$(e))return!1;var t=S$(e)?P$:D$;return t.test(x$(e))}var L$=I$;function O$(e,t){return e==null?void 0:e[t]}var R$=O$,B$=L$,V$=R$;function $$(e,t){var r=V$(e,t);return B$(r)?r:void 0}var ua=$$,F$=ua,z$=tr,G$=F$(z$,"Map"),Ev=G$,H$=ua,U$=H$(Object,"create"),Ru=U$,C0=Ru;function W$(){this.__data__=C0?C0(null):{},this.size=0}var Y$=W$;function q$(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var j$=q$,X$=Ru,Z$="__lodash_hash_undefined__",K$=Object.prototype,J$=K$.hasOwnProperty;function Q$(e){var t=this.__data__;if(X$){var r=t[e];return r===Z$?void 0:r}return J$.call(t,e)?t[e]:void 0}var e7=Q$,t7=Ru,r7=Object.prototype,n7=r7.hasOwnProperty;function a7(e){var t=this.__data__;return t7?t[e]!==void 0:n7.call(t,e)}var i7=a7,o7=Ru,s7="__lodash_hash_undefined__";function l7(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=o7&&t===void 0?s7:t,this}var u7=l7,c7=Y$,f7=j$,h7=e7,d7=i7,v7=u7;function hi(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])}}hi.prototype.clear=c7;hi.prototype.delete=f7;hi.prototype.get=h7;hi.prototype.has=d7;hi.prototype.set=v7;var p7=hi,T0=p7,g7=Ou,m7=Ev;function y7(){this.size=0,this.__data__={hash:new T0,map:new(m7||g7),string:new T0}}var _7=y7;function w7(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var b7=w7,S7=b7;function C7(e,t){var r=e.__data__;return S7(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Bu=C7,T7=Bu;function x7(e){var t=T7(this,e).delete(e);return this.size-=t?1:0,t}var N7=x7,D7=Bu;function A7(e){return D7(this,e).get(e)}var M7=A7,k7=Bu;function E7(e){return k7(this,e).has(e)}var P7=E7,I7=Bu;function L7(e,t){var r=I7(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var O7=L7,R7=_7,B7=N7,V7=M7,$7=P7,F7=O7;function di(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])}}di.prototype.clear=R7;di.prototype.delete=B7;di.prototype.get=V7;di.prototype.has=$7;di.prototype.set=F7;var z7=di,G7=Ou,H7=Ev,U7=z7,W7=200;function Y7(e,t){var r=this.__data__;if(r instanceof G7){var n=r.__data__;if(!H7||n.length<W7-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new U7(n)}return r.set(e,t),this.size=r.size,this}var q7=Y7,j7=Ou,X7=L3,Z7=R3,K7=V3,J7=F3,Q7=q7;function vi(e){var t=this.__data__=new j7(e);this.size=t.size}vi.prototype.clear=X7;vi.prototype.delete=Z7;vi.prototype.get=K7;vi.prototype.has=J7;vi.prototype.set=Q7;var e4=vi;function t4(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var r4=t4,n4=ua,a4=function(){try{var e=n4(Object,"defineProperty");return e({},"",{}),e}catch{}}(),i4=a4,x0=i4;function o4(e,t,r){t=="__proto__"&&x0?x0(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var VS=o4,s4=VS,l4=IS,u4=Object.prototype,c4=u4.hasOwnProperty;function f4(e,t,r){var n=e[t];(!(c4.call(e,t)&&l4(n,r))||r===void 0&&!(t in e))&&s4(e,t,r)}var $S=f4,h4=$S,d4=VS;function v4(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?d4(r,s,l):h4(r,s,l)}return r}var Vu=v4;function p4(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var g4=p4;function m4(e){return e!=null&&typeof e=="object"}var pi=m4,y4=$o,_4=pi,w4="[object Arguments]";function b4(e){return _4(e)&&y4(e)==w4}var S4=b4,N0=S4,C4=pi,FS=Object.prototype,T4=FS.hasOwnProperty,x4=FS.propertyIsEnumerable,N4=N0(function(){return arguments}())?N0:function(e){return C4(e)&&T4.call(e,"callee")&&!x4.call(e,"callee")},D4=N4,A4=Array.isArray,Pv=A4,Vl={exports:{}};function M4(){return!1}var k4=M4;Vl.exports;(function(e,t){var r=tr,n=k4,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})(Vl,Vl.exports);var zS=Vl.exports,E4=9007199254740991,P4=/^(?:0|[1-9]\d*)$/;function I4(e,t){var r=typeof e;return t=t??E4,!!t&&(r=="number"||r!="symbol"&&P4.test(e))&&e>-1&&e%1==0&&e<t}var L4=I4,O4=9007199254740991;function R4(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=O4}var GS=R4,B4=$o,V4=GS,$4=pi,F4="[object Arguments]",z4="[object Array]",G4="[object Boolean]",H4="[object Date]",U4="[object Error]",W4="[object Function]",Y4="[object Map]",q4="[object Number]",j4="[object Object]",X4="[object RegExp]",Z4="[object Set]",K4="[object String]",J4="[object WeakMap]",Q4="[object ArrayBuffer]",eF="[object DataView]",tF="[object Float32Array]",rF="[object Float64Array]",nF="[object Int8Array]",aF="[object Int16Array]",iF="[object Int32Array]",oF="[object Uint8Array]",sF="[object Uint8ClampedArray]",lF="[object Uint16Array]",uF="[object Uint32Array]",Pe={};Pe[tF]=Pe[rF]=Pe[nF]=Pe[aF]=Pe[iF]=Pe[oF]=Pe[sF]=Pe[lF]=Pe[uF]=!0;Pe[F4]=Pe[z4]=Pe[Q4]=Pe[G4]=Pe[eF]=Pe[H4]=Pe[U4]=Pe[W4]=Pe[Y4]=Pe[q4]=Pe[j4]=Pe[X4]=Pe[Z4]=Pe[K4]=Pe[J4]=!1;function cF(e){return $4(e)&&V4(e.length)&&!!Pe[B4(e)]}var fF=cF;function hF(e){return function(t){return e(t)}}var Iv=hF,$l={exports:{}};$l.exports;(function(e,t){var r=LS,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})($l,$l.exports);var Lv=$l.exports,dF=fF,vF=Iv,D0=Lv,A0=D0&&D0.isTypedArray,pF=A0?vF(A0):dF,gF=pF,mF=g4,yF=D4,_F=Pv,wF=zS,bF=L4,SF=gF,CF=Object.prototype,TF=CF.hasOwnProperty;function xF(e,t){var r=_F(e),n=!r&&yF(e),a=!r&&!n&&wF(e),i=!r&&!n&&!a&&SF(e),o=r||n||a||i,s=o?mF(e.length,String):[],l=s.length;for(var u in e)(t||TF.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||bF(u,l)))&&s.push(u);return s}var HS=xF,NF=Object.prototype;function DF(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||NF;return e===r}var Ov=DF;function AF(e,t){return function(r){return e(t(r))}}var US=AF,MF=US,kF=MF(Object.keys,Object),EF=kF,PF=Ov,IF=EF,LF=Object.prototype,OF=LF.hasOwnProperty;function RF(e){if(!PF(e))return IF(e);var t=[];for(var r in Object(e))OF.call(e,r)&&r!="constructor"&&t.push(r);return t}var BF=RF,VF=RS,$F=GS;function FF(e){return e!=null&&$F(e.length)&&!VF(e)}var WS=FF,zF=HS,GF=BF,HF=WS;function UF(e){return HF(e)?zF(e):GF(e)}var Rv=UF,WF=Vu,YF=Rv;function qF(e,t){return e&&WF(t,YF(t),e)}var jF=qF;function XF(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var ZF=XF,KF=gn,JF=Ov,QF=ZF,ez=Object.prototype,tz=ez.hasOwnProperty;function rz(e){if(!KF(e))return QF(e);var t=JF(e),r=[];for(var n in e)n=="constructor"&&(t||!tz.call(e,n))||r.push(n);return r}var nz=rz,az=HS,iz=nz,oz=WS;function sz(e){return oz(e)?az(e,!0):iz(e)}var Bv=sz,lz=Vu,uz=Bv;function cz(e,t){return e&&lz(t,uz(t),e)}var fz=cz,Fl={exports:{}};Fl.exports;(function(e,t){var r=tr,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})(Fl,Fl.exports);var hz=Fl.exports;function dz(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var vz=dz;function pz(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 gz=pz;function mz(){return[]}var YS=mz,yz=gz,_z=YS,wz=Object.prototype,bz=wz.propertyIsEnumerable,M0=Object.getOwnPropertySymbols,Sz=M0?function(e){return e==null?[]:(e=Object(e),yz(M0(e),function(t){return bz.call(e,t)}))}:_z,Vv=Sz,Cz=Vu,Tz=Vv;function xz(e,t){return Cz(e,Tz(e),t)}var Nz=xz;function Dz(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var qS=Dz,Az=US,Mz=Az(Object.getPrototypeOf,Object),jS=Mz,kz=qS,Ez=jS,Pz=Vv,Iz=YS,Lz=Object.getOwnPropertySymbols,Oz=Lz?function(e){for(var t=[];e;)kz(t,Pz(e)),e=Ez(e);return t}:Iz,XS=Oz,Rz=Vu,Bz=XS;function Vz(e,t){return Rz(e,Bz(e),t)}var $z=Vz,Fz=qS,zz=Pv;function Gz(e,t,r){var n=t(e);return zz(e)?n:Fz(n,r(e))}var ZS=Gz,Hz=ZS,Uz=Vv,Wz=Rv;function Yz(e){return Hz(e,Wz,Uz)}var qz=Yz,jz=ZS,Xz=XS,Zz=Bv;function Kz(e){return jz(e,Zz,Xz)}var Jz=Kz,Qz=ua,e8=tr,t8=Qz(e8,"DataView"),r8=t8,n8=ua,a8=tr,i8=n8(a8,"Promise"),o8=i8,s8=ua,l8=tr,u8=s8(l8,"Set"),c8=u8,f8=ua,h8=tr,d8=f8(h8,"WeakMap"),v8=d8,Vh=r8,$h=Ev,Fh=o8,zh=c8,Gh=v8,KS=$o,gi=BS,k0="[object Map]",p8="[object Object]",E0="[object Promise]",P0="[object Set]",I0="[object WeakMap]",L0="[object DataView]",g8=gi(Vh),m8=gi($h),y8=gi(Fh),_8=gi(zh),w8=gi(Gh),$n=KS;(Vh&&$n(new Vh(new ArrayBuffer(1)))!=L0||$h&&$n(new $h)!=k0||Fh&&$n(Fh.resolve())!=E0||zh&&$n(new zh)!=P0||Gh&&$n(new Gh)!=I0)&&($n=function(e){var t=KS(e),r=t==p8?e.constructor:void 0,n=r?gi(r):"";if(n)switch(n){case g8:return L0;case m8:return k0;case y8:return E0;case _8:return P0;case w8:return I0}return t});var $v=$n,b8=Object.prototype,S8=b8.hasOwnProperty;function C8(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&S8.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var T8=C8,x8=tr,N8=x8.Uint8Array,D8=N8,O0=D8;function A8(e){var t=new e.constructor(e.byteLength);return new O0(t).set(new O0(e)),t}var Fv=A8,M8=Fv;function k8(e,t){var r=t?M8(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var E8=k8,P8=/\w*$/;function I8(e){var t=new e.constructor(e.source,P8.exec(e));return t.lastIndex=e.lastIndex,t}var L8=I8,R0=kv,B0=R0?R0.prototype:void 0,V0=B0?B0.valueOf:void 0;function O8(e){return V0?Object(V0.call(e)):{}}var R8=O8,B8=Fv;function V8(e,t){var r=t?B8(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var $8=V8,F8=Fv,z8=E8,G8=L8,H8=R8,U8=$8,W8="[object Boolean]",Y8="[object Date]",q8="[object Map]",j8="[object Number]",X8="[object RegExp]",Z8="[object Set]",K8="[object String]",J8="[object Symbol]",Q8="[object ArrayBuffer]",e6="[object DataView]",t6="[object Float32Array]",r6="[object Float64Array]",n6="[object Int8Array]",a6="[object Int16Array]",i6="[object Int32Array]",o6="[object Uint8Array]",s6="[object Uint8ClampedArray]",l6="[object Uint16Array]",u6="[object Uint32Array]";function c6(e,t,r){var n=e.constructor;switch(t){case Q8:return F8(e);case W8:case Y8:return new n(+e);case e6:return z8(e,r);case t6:case r6:case n6:case a6:case i6:case o6:case s6:case l6:case u6:return U8(e,r);case q8:return new n;case j8:case K8:return new n(e);case X8:return G8(e);case Z8:return new n;case J8:return H8(e)}}var f6=c6,h6=gn,$0=Object.create,d6=function(){function e(){}return function(t){if(!h6(t))return{};if($0)return $0(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),v6=d6,p6=v6,g6=jS,m6=Ov;function y6(e){return typeof e.constructor=="function"&&!m6(e)?p6(g6(e)):{}}var _6=y6,w6=$v,b6=pi,S6="[object Map]";function C6(e){return b6(e)&&w6(e)==S6}var T6=C6,x6=T6,N6=Iv,F0=Lv,z0=F0&&F0.isMap,D6=z0?N6(z0):x6,A6=D6,M6=$v,k6=pi,E6="[object Set]";function P6(e){return k6(e)&&M6(e)==E6}var I6=P6,L6=I6,O6=Iv,G0=Lv,H0=G0&&G0.isSet,R6=H0?O6(H0):L6,B6=R6,V6=e4,$6=r4,F6=$S,z6=jF,G6=fz,H6=hz,U6=vz,W6=Nz,Y6=$z,q6=qz,j6=Jz,X6=$v,Z6=T8,K6=f6,J6=_6,Q6=Pv,eG=zS,tG=A6,rG=gn,nG=B6,aG=Rv,iG=Bv,oG=1,sG=2,lG=4,JS="[object Arguments]",uG="[object Array]",cG="[object Boolean]",fG="[object Date]",hG="[object Error]",QS="[object Function]",dG="[object GeneratorFunction]",vG="[object Map]",pG="[object Number]",eC="[object Object]",gG="[object RegExp]",mG="[object Set]",yG="[object String]",_G="[object Symbol]",wG="[object WeakMap]",bG="[object ArrayBuffer]",SG="[object DataView]",CG="[object Float32Array]",TG="[object Float64Array]",xG="[object Int8Array]",NG="[object Int16Array]",DG="[object Int32Array]",AG="[object Uint8Array]",MG="[object Uint8ClampedArray]",kG="[object Uint16Array]",EG="[object Uint32Array]",Ee={};Ee[JS]=Ee[uG]=Ee[bG]=Ee[SG]=Ee[cG]=Ee[fG]=Ee[CG]=Ee[TG]=Ee[xG]=Ee[NG]=Ee[DG]=Ee[vG]=Ee[pG]=Ee[eC]=Ee[gG]=Ee[mG]=Ee[yG]=Ee[_G]=Ee[AG]=Ee[MG]=Ee[kG]=Ee[EG]=!0;Ee[hG]=Ee[QS]=Ee[wG]=!1;function js(e,t,r,n,a,i){var o,s=t&oG,l=t&sG,u=t&lG;if(r&&(o=a?r(e,n,a,i):r(e)),o!==void 0)return o;if(!rG(e))return e;var c=Q6(e);if(c){if(o=Z6(e),!s)return U6(e,o)}else{var f=X6(e),d=f==QS||f==dG;if(eG(e))return H6(e,s);if(f==eC||f==JS||d&&!a){if(o=l||d?{}:J6(e),!s)return l?Y6(e,G6(o,e)):W6(e,z6(o,e))}else{if(!Ee[f])return a?e:{};o=K6(e,f,s)}}i||(i=new V6);var h=i.get(e);if(h)return h;i.set(e,o),nG(e)?e.forEach(function(g){o.add(js(g,t,r,g,e,i))}):tG(e)&&e.forEach(function(g,y){o.set(y,js(g,t,r,y,e,i))});var p=u?l?j6:q6:l?iG:aG,m=c?void 0:p(e);return $6(m||e,function(g,y){m&&(y=g,g=e[y]),F6(o,y,js(g,t,r,y,e,i))}),o}var PG=js,IG=PG,LG=1,OG=4;function RG(e){return IG(e,LG|OG)}var BG=RG;const Qe=Mv(BG),VG=v.defineComponent({name:"OcFormItem",components:{NIcon:R.NIcon,NInput:R.NInput,NSelect:R.NSelect,NInputNumber:R.NInputNumber,NDatePicker:R.NDatePicker,NTimePicker:R.NTimePicker,NSwitch:R.NSwitch,NUpload:R.NUpload,NUploadDragger:R.NUploadDragger,NDivider:R.NDivider,NColorPicker:R.NColorPicker,NCheckbox:R.NCheckbox,NCheckboxGroup:R.NCheckboxGroup,NFlex:R.NFlex,NCascader:R.NCascader,IconMailInboxAdd:Eo},props:{item:{required:!0,type:Object,default:()=>[]},formValue:{required:!0,type:Object,default:()=>({})},edit:{type:Boolean,default:!1}},setup(e){const{t}=Zt.useI18n();return{updateValue:(o,s)=>{if(o.updateValue){const l=Qe(e.formValue);if(typeof o.updateValue=="string"){const u=o.updateValue;new Function("value","formValue",u)(s,l)}else o.updateValue(s,l)}},beforeUpload:(o,s)=>new Promise((l,u)=>{o.file.file&&(e.formValue[s]=o.file.file,l()),u()}),uploadChange:(o,s)=>{o.length===0&&(e.formValue[s]="")},selectFallback:o=>o.fallbackOption?typeof o.fallbackOption=="boolean"?()=>({label:()=>t("Common.message.all"),value:"",disabled:!0}):o.fallbackOption:!1}}}),$G=v.createElementVNode("br",null,null,-1),FG=v.createElementVNode("p",null,"点击或者拖动文件到该区域来上传",-1),zG=v.createElementVNode("p",null,"请不要上传敏感数据,比如你的银行卡号和密码,信用卡号有效期和安全码",-1);function GG(e,t,r,n,a,i){const o=v.resolveComponent("NDivider"),s=v.resolveComponent("NInput"),l=v.resolveComponent("NInputNumber"),u=v.resolveComponent("NDatePicker"),c=v.resolveComponent("NSelect"),f=v.resolveComponent("NCascader"),d=v.resolveComponent("NColorPicker"),h=v.resolveComponent("NCheckbox"),p=v.resolveComponent("NFlex"),m=v.resolveComponent("NCheckboxGroup"),g=v.resolveComponent("NTimePicker"),y=v.resolveComponent("NSwitch"),_=v.resolveComponent("IconMailInboxAdd"),w=v.resolveComponent("NIcon"),S=v.resolveComponent("NUploadDragger"),T=v.resolveComponent("NUpload");return v.openBlock(),v.createElementBlock(v.Fragment,null,[e.item.input==="divider"?(v.openBlock(),v.createBlock(o,{key:0,"title-placement":e.item.placement},{default:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(typeof e.item.label=="function"?e.item.label():e.item.label),1)]),_:1},8,["title-placement"])):v.createCommentVNode("",!0),e.item.input==="input"?(v.openBlock(),v.createBlock(s,{key:1,value:e.formValue[e.item.key],"onUpdate:value":t[0]||(t[0]=C=>e.formValue[e.item.key]=C),type:e.item.type,placeholder:typeof e.item.placeholder=="function"?e.item.placeholder():e.item.placeholder,disabled:e.edit&&e.item.edit?e.item.edit.disabled:e.item.disabled,readonly:e.edit&&e.item.edit?e.item.edit.readonly:e.item.readonly,clearable:e.item.clearable,minlength:e.item.minlength,maxlength:e.item.maxlength,rows:e.item.rows,"show-count":!!e.item.maxlength,"on-update:value":C=>{e.formValue[e.item.key]=C.trim(),e.updateValue(e.item,C.trim())}},null,8,["value","type","placeholder","disabled","readonly","clearable","minlength","maxlength","rows","show-count","on-update:value"])):v.createCommentVNode("",!0),e.item.input==="number"?(v.openBlock(),v.createBlock(l,{key:2,value:e.formValue[e.item.key],"onUpdate:value":t[1]||(t[1]=C=>e.formValue[e.item.key]=C),placeholder:typeof e.item.placeholder=="function"?e.item.placeholder():e.item.placeholder,disabled:e.edit&&e.item.edit?e.item.edit.disabled:e.item.disabled,readonly:e.edit&&e.item.edit?e.item.edit.readonly:e.item.readonly,clearable:e.item.clearable,min:e.item.min,max:e.item.max,step:e.item.step,showButton:e.item.showButton,"update-value-on-input":!1,parse:C=>{const N=e.item;return N.precision&&N.precision>-1?Number(Number(C).toFixed(N.precision)):Number(C)},"on-update:value":C=>{e.formValue[e.item.key]=C,e.updateValue(e.item,C)}},null,8,["value","placeholder","disabled","readonly","clearable","min","max","step","showButton","parse","on-update:value"])):v.createCommentVNode("",!0),e.item.input==="date"&&!e.item.format?(v.openBlock(),v.createBlock(u,{key:3,value:e.formValue[e.item.key],"onUpdate:value":t[2]||(t[2]=C=>e.formValue[e.item.key]=C),type:e.item.type,placeholder:typeof e.item.placeholder=="function"?e.item.placeholder():e.item.placeholder,disabled:e.edit&&e.item.edit?e.item.edit.disabled:e.item.disabled,"input-readonly":e.edit&&e.item.edit?e.item.edit.readonly:e.item.readonly,clearable:e.item.clearable,"time-picker-props":e.item.timePickerProps,"is-date-disabled":(C,N)=>{const b=e.item;return b.isDateDisabled?b.isDateDisabled(C,N):!1},"close-on-select":"","on-update:value":C=>{e.formValue[e.item.key]=C,e.updateValue(e.item,C)}},null,8,["value","type","placeholder","disabled","input-readonly","clearable","time-picker-props","is-date-disabled","on-update:value"])):v.createCommentVNode("",!0),e.item.input==="date"&&e.item.format?(v.openBlock(),v.createBlock(u,{key:4,"formatted-value":e.formValue[e.item.key],"onUpdate:formattedValue":t[3]||(t[3]=C=>e.formValue[e.item.key]=C),type:e.item.type,placeholder:typeof e.item.placeholder=="function"?e.item.placeholder():e.item.placeholder,disabled:e.edit&&e.item.edit?e.item.edit.disabled:e.item.disabled,"input-readonly":e.edit&&e.item.edit?e.item.edit.readonly:e.item.readonly,clearable:e.item.clearable,format:e.item.format,"time-picker-props":e.item.timePickerProps,"is-date-disabled":(C,N)=>{const b=e.item;return b.isDateDisabled?b.isDateDisabled(C,N):!1},"close-on-select":"","on-update:formatted-value":C=>{e.formValue[e.item.key]=C,e.updateValue(e.item,C)}},null,8,["formatted-value","type","placeholder","disabled","input-readonly","clearable","format","time-picker-props","is-date-disabled","on-update:formatted-value"])):v.createCommentVNode("",!0),e.item.input==="select"?(v.openBlock(),v.createBlock(c,{key:5,value:e.formValue[e.item.key],"onUpdate:value":t[4]||(t[4]=C=>e.formValue[e.item.key]=C),placeholder:typeof e.item.placeholder=="function"?e.item.placeholder():e.item.placeholder,options:e.item.options,disabled:e.edit&&e.item.edit?e.item.edit.disabled:e.item.disabled,readonly:e.edit&&e.item.edit?e.item.edit.readonly:e.item.readonly,clearable:e.item.clearable,filterable:e.item.filterable,multiple:e.item.multiple,"fallback-option":e.selectFallback(e.item),maxTagCount:e.item.maxTagCount,"render-label":e.item.renderLabel,"render-option":e.item.renderOption,"render-tag":e.item.renderTag,"on-update:value":C=>{const N=e.item;let b=C,x=C;if(N.multiple){let A=C.filter(D=>D);A.length===0?(b=[""],x=[]):(b=A,x=A)}e.formValue[e.item.key]=b,e.updateValue(e.item,x)}},null,8,["value","placeholder","options","disabled","readonly","clearable","filterable","multiple","fallback-option","maxTagCount","render-label","render-option","render-tag","on-update:value"])):v.createCommentVNode("",!0),e.item.input==="cascader"?(v.openBlock(),v.createBlock(f,{key:6,value:e.formValue[e.item.key],"onUpdate:value":t[5]||(t[5]=C=>e.formValue[e.item.key]=C),placeholder:typeof e.item.placeholder=="function"?e.item.placeholder():e.item.placeholder,options:e.item.options,disabled:e.edit&&e.item.edit?e.item.edit.disabled:e.item.disabled,readonly:e.edit&&e.item.edit?e.item.edit.readonly:e.item.readonly,clearable:e.item.clearable,filterable:e.item.filterable,multiple:e.item.multiple,maxTagCount:e.item.maxTagCount,"on-update:value":C=>{const N=e.item;let b=C,x=C;if(N.multiple){let A=C.filter(D=>D);A.length===0?(b=[""],x=[]):(b=A,x=A)}e.formValue[e.item.key]=b,e.updateValue(e.item,x)}},null,8,["value","placeholder","options","disabled","readonly","clearable","filterable","multiple","maxTagCount","on-update:value"])):v.createCommentVNode("",!0),e.item.input==="color"?(v.openBlock(),v.createBlock(d,{key:7,value:e.formValue[e.item.key],"onUpdate:value":t[6]||(t[6]=C=>e.formValue[e.item.key]=C),disabled:e.edit&&e.item.edit?e.item.edit.disabled:e.item.disabled,"show-alpha":!0,"show-preview":!0,swatches:["#FFFFFF","#18A058","#2080F0","#F0A020","rgba(208, 48, 80, 1)"]},null,8,["value","disabled","swatches"])):v.createCommentVNode("",!0),e.item.input==="checkbox"?(v.openBlock(),v.createBlock(m,{key:8,value:e.formValue[e.item.key],"onUpdate:value":t[7]||(t[7]=C=>e.formValue[e.item.key]=C),disabled:e.edit&&e.item.edit?e.item.edit.disabled:e.item.disabled},{default:v.withCtx(()=>[v.createVNode(p,null,{default:v.withCtx(()=>[(v.openBlock(!0),v.createElementBlock(v.Fragment,null,v.renderList(e.item.options,C=>(v.openBlock(),v.createBlock(h,{label:C.label,value:C.value},null,8,["label","value"]))),256))]),_:1})]),_:1},8,["value","disabled"])):v.createCommentVNode("",!0),e.item.input==="time"?(v.openBlock(),v.createBlock(g,{key:9,value:e.formValue[e.item.key],"onUpdate:value":t[8]||(t[8]=C=>e.formValue[e.item.key]=C),placeholder:typeof e.item.placeholder=="function"?e.item.placeholder():e.item.placeholder,format:e.item.format,disabled:e.edit&&e.item.edit?e.item.edit.disabled:e.item.disabled,readonly:e.edit&&e.item.edit?e.item.edit.readonly:e.item.readonly,clearable:e.item.clearable,"on-update:value":C=>{e.formValue[e.item.key]=C,e.updateValue(e.item,C)}},null,8,["value","placeholder","format","disabled","readonly","clearable","on-update:value"])):v.createCommentVNode("",!0),e.item.input==="switch"?(v.openBlock(),v.createBlock(y,{key:10,value:e.formValue[e.item.key],"onUpdate:value":t[9]||(t[9]=C=>e.formValue[e.item.key]=C),disabled:e.edit&&e.item.edit?e.item.edit.disabled:e.item.disabled,size:"large","on-update:value":C=>{e.formValue[e.item.key]=C,e.updateValue(e.item,C)}},v.createSlots({_:2},[e.item.checked?{name:"checked",fn:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(e.item.checked),1)]),key:"0"}:void 0,e.item.unchecked?{name:"unchecked",fn:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(e.item.unchecked),1)]),key:"1"}:void 0]),1032,["value","disabled","on-update:value"])):v.createCommentVNode("",!0),e.item.input==="upload"?(v.openBlock(),v.createBlock(T,{key:11,"default-file-list":e.formValue[e.item.key]?[{id:"1",name:"File",status:"finished",url:e.formValue[e.item.key]}]:void 0,"on-before-upload":C=>{e.beforeUpload(C,e.item.key)},accept:e.item.accept,disabled:e.edit&&e.item.edit?e.item.edit.disabled:e.item.disabled,max:e.item.max,"on-update:file-list":C=>{e.uploadChange(C,e.item.key)},"directory-dnd":""},{default:v.withCtx(()=>[v.withDirectives(v.createVNode(S,null,{default:v.withCtx(()=>[v.createVNode(w,{size:"32"},{default:v.withCtx(()=>[v.createVNode(_)]),_:1}),$G,FG,zG]),_:1},512),[[v.vShow,!e.formValue[e.item.key]]])]),_:1},8,["default-file-list","on-before-upload","accept","disabled","max","on-update:file-list"])):v.createCommentVNode("",!0)],64)}const HG=re(VG,[["render",GG]]),UG=v.defineComponent({name:"OcForm",components:{NGrid:R.NGrid,NForm:R.NForm,NFormItem:R.NFormItem,OcFormItem:HG,Draggable:Z0},props:{items:{required:!0,type:Array,default:()=>[]},data:{required:!0,type:Object,default:()=>({})},edit:{type:Boolean,default:!1},mode:{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"}},emits:["on-update:mode","on-update:add"],setup(e,{expose:t,emit:r}){const n=v.ref(),a=v.ref({}),i=v.ref([]),o=h=>!((h==null?void 0:h.show)===!1||e.edit&&h.edit&&!h.edit.show),s=(h,p)=>{r("on-update:mode",{item:Qe(h),index:p})},l=()=>{const h=Qe(e.items);h.forEach(p=>{if(typeof p.show>"u"&&(p.show=!0),p.input!=="divider"&&p.rule&&p.rule.validator&&typeof p.rule.validator=="string"){const m=p.rule.validator,g=new Function("rule","value",m);p.rule.validator=(y,_)=>g(y,_)}if(p.input==="date"&&p.isDateDisabled&&typeof p.isDateDisabled=="string"){const m=p.isDateDisabled,g=new Function("ts","detail",m);p.isDateDisabled=(y,_)=>g(y,_)}p.input==="select"&&p.fallbackOption&&p.multiple&&(!a.value[p.key]||a.value[p.key].length===0)&&(a.value[p.key]=[""])}),i.value=h},u=()=>new Promise((h,p)=>{var m;(m=n.value)==null||m.validate(g=>{if(g)p();else{const y=Qe(a.value),_=JSON.stringify(y,(w,S)=>S===void 0?null:Array.isArray(S)?S.filter(T=>T!==""):S);h(JSON.parse(_))}})}),c=()=>{var h;(h=n.value)==null||h.restoreValidation()},f=()=>{r("on-update:mode",{item:void 0,index:-1})},d=()=>{e.mode&&r("on-update:add",Qe(i.value))};return v.onMounted(()=>{a.value=Qe(e.data),l()}),t({validate:u,restoreValidation:c}),v.watch(()=>e.items,()=>{l()},{deep:!0}),v.watch(()=>e.data,h=>{a.value=Qe(h)},{deep:!0}),{formRef:n,formValue:a,formItems:i,onDragEnd:f,onDragAdd:d,cloneDeep:Qe,elementShow:o,onModeClick:s}}}),WG={key:1,class:"oc-form-grid"};function YG(e,t,r,n,a,i){const o=v.resolveComponent("OcFormItem"),s=v.resolveComponent("NFormItem"),l=v.resolveComponent("Draggable"),u=v.resolveComponent("NForm");return v.openBlock(),v.createBlock(u,{ref:"formRef",model:e.formValue,disabled:e.disabled,inline:e.inline,labelWidth:e.labelWidth,labelAlign:e.labelAlign,labelPlacement:e.labelPlacement},{default:v.withCtx(()=>[e.mode?(v.openBlock(),v.createBlock(l,v.mergeProps({key:0,modelValue:e.formItems,"onUpdate:modelValue":t[0]||(t[0]=c=>e.formItems=c)},{animation:200},{"item-key":"key",group:"oc-form",handle:".oc-form-grid-item",class:"oc-form-grid",onAdd:e.onDragAdd,onEnd:e.onDragEnd}),{item:v.withCtx(({element:c,index:f})=>{var d;return[(v.openBlock(),v.createBlock(s,{label:c.input!=="divider"?typeof c.label=="function"?c.label():c.label:"",path:c.key,rule:(d=c.rule)!=null&&d.required?c.rule:void 0,class:v.normalizeClass(["oc-form-grid-item",e.mode?"oc-form-mode":""]),onClick:h=>e.mode?e.onModeClick(c,f):void 0,key:f,style:v.normalizeStyle(`grid-column: span ${c.span||6} / span ${c.span||6};`),"show-feedback":c.input!=="divider"},{default:v.withCtx(()=>[v.createVNode(o,{item:c,formValue:e.formValue,edit:e.edit},null,8,["item","formValue","edit"])]),_:2},1032,["label","path","rule","class","onClick","style","show-feedback"]))]}),_:1},16,["modelValue","onAdd","onEnd"])):(v.openBlock(),v.createElementBlock("div",WG,[(v.openBlock(!0),v.createElementBlock(v.Fragment,null,v.renderList(e.formItems,(c,f)=>{var d;return v.openBlock(),v.createElementBlock(v.Fragment,{key:f},[c.show?(v.openBlock(),v.createBlock(s,{key:0,label:c.input!=="divider"?typeof c.label=="function"?c.label():c.label:"",path:c.key,rule:(d=c.rule)!=null&&d.required?c.rule:void 0,class:v.normalizeClass(["oc-form-grid-item",e.mode?"oc-form-mode":""]),onClick:h=>e.mode?e.onModeClick(c,f):void 0,style:v.normalizeStyle(`grid-column: span ${c.span||6} / span ${c.span||6};`),"show-feedback":c.input!=="divider"},{default:v.withCtx(()=>[v.createVNode(o,{item:c,formValue:e.formValue,edit:e.edit},null,8,["item","formValue","edit"])]),_:2},1032,["label","path","rule","class","onClick","style","show-feedback"])):v.createCommentVNode("",!0)],64)}),128))]))]),_:1},8,["model","disabled","inline","labelWidth","labelAlign","labelPlacement"])}const tC=re(UG,[["render",YG]]),U0=e=>{const t=JSON.parse(JSON.stringify(e));return t.password=Rs(t.password),yt("api/user/v2/login",t)},qG=()=>new Promise(async(e,t)=>{yt("api/auth/user/getCurrentUserInfo",{},"json",1e4).then(async r=>{await a_();try{const n=["046459"];r.commissioner=!1,n.includes(String(r.tenantLoginCode))&&(r.commissioner=!0);const a=r.ownedProducts?JSON.parse(r.ownedProducts):[],i=[{label:()=>un.global.t("Platform.iot"),key:r.industryCategory==="0"?"/iot/home/all":"/prt/home/all"}];switch(Object.keys(j.owned).forEach(o=>{const s=a.includes(Number(o));if(r[j.owned[o]]=s,s){const l=j.owned[o].split("_")[1],u=j.platformList[l];u&&i.push({label:()=>un.global.t(u.platformName),key:u.platformUrl})}}),gx(i),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(n){console.log(n)}}).catch(r=>{t(r)})}),jG=()=>yt("api/auth/user/logout"),XG=()=>yt("api/manager/message/markReadAll"),ZG=()=>yt("api/auth/user/updateTenantRenewalStatus"),KG=e=>yt(j.options.removeUrl,e),JG=e=>yt("api/manager/job/retry",{jobId:e}),QG=(e,t={})=>r_(e,t,"blob"),rC=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])}),sd(j.options.importUrl,t)},nC=e=>new Promise((t,r)=>{const n=Kl(e);yt(j.options.pageUrl,n).then(a=>{const i=Zl(a);t(i)}).catch(()=>{r()})}),zv=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])}),sd(j.options.importUrl,n).then(()=>{ld(!0),t()}).catch(a=>{r(a)})}),e9=e=>new Promise((t,r)=>{const n=Kl(e);n.status===-1&&(n.status=""),yt("api/manager/message/messagePage",n).then(a=>{const i=Zl(a);t({data:i,unRead:a.unRead})}).catch(()=>{r()})}),t9=e=>yt("api/manager/message/markRead",{messageId:e});let aC=!0;const F=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 r9(e){aC=e}function Gv(e){try{const t=window.location.host;if(t.includes("partexiot.cn")){const r=dt("token",!1);F.industryCategory=e.industryCategory||"0",(!t.includes("test")||!t.includes("vpn"))&&aC&&(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(F.commissioner=e.commissioner,F.factoryId=e.factoryId,F.tenantLoginCode=e.tenantLoginCode,F.userId=e.userId,F.email=e.email,F.name=e.name,F.realName=e.realName,F.tenantName=e.tenantName,F.phone=e.phone,F.info=e.info,F.kind=e.kind,F.oeeStatus=e.oeeStatus||0,F.ncFlg=e.ncFlg||0,F.systemType=e.systemType,F.platform_tdm=e.platform_tdm,F.platform_qms=e.platform_qms,F.platform_twin=e.platform_twin,F.platform_maintain=e.platform_maintain,F.platform_order=e.platform_order,F.platform_simple_tdm=e.platform_simple_tdm,F.authorizationGroupArray=e.authorizationGroupArray||[],F.authorizationMachineArray=e.authorizationMachineArray||[],F.iot_menu_authorization=e.iot_menu_authorization||[],F.tdm_menu_authorization=e.tdm_menu_authorization||[],F.qms_menu_authorization=e.qms_menu_authorization||[],F.maintain_menu_authorization=e.maintain_menu_authorization||[],F.order_menu_authorization=e.order_menu_authorization||[],F.endTime=e.endTime??0,F.tenantStatus=e.tenantStatus??1,F.renewalStatus=e.renewalStatus??0,F.roleId=e.roleId||0,F.kind===1){const r=e.info,n=String(e.info.type);n==="0"&&Cr.replace(`/dashboard/list?machGroupId=${r.id}&theme=${r.theme||"light"}`),n==="1"&&Cr.replace(`/dashboard/single?machId=${r.id}&type=${r.viewType??1}&theme=${r.theme||"light"}`),n==="2"&&Cr.push(`/dashboard/carousel?theme=${r.theme||"light"}`),n==="3"&&Cr.push(`/dashboard/carouselist?theme=${r.theme||"light"}`),n==="4"&&Cr.push(`/dashboard/performance?schemeId=${r.id}&theme=${r.theme||"light"}`)}}catch(t){console.log(t)}}function $u(){return new Promise((e,t)=>{qG().then(r=>{Gv(r),e(r)}).catch(()=>{t()})})}function Fu(){F.factoryId="",F.commissioner=!1,F.tenantLoginCode="",F.userId="",F.email="",F.name="",F.realName="",F.tenantName="",F.phone="",F.description="",F.info={type:0,id:"",viewType:1,interval:5,theme:"light"},F.kind=0,F.systemType=0,F.oeeStatus=0,F.ncFlg=0,F.password="",F.enable=!0,F.platform_tdm=!1,F.platform_qms=!1,F.platform_twin=!1,F.platform_maintain=!1,F.platform_order=!1,F.platform_simple_tdm=!1,F.authorizationGroupArray=[],F.authorizationMachineArray=[],F.iot_menu_authorization=[],F.tdm_menu_authorization=[],F.qms_menu_authorization=[],F.maintain_menu_authorization=[],F.order_menu_authorization=[],F.endTime=0,F.tenantStatus=1,F.renewalStatus=0,F.roleId=1}async function Hv(){await jG().catch(()=>null),ti("token"),Fu(),window.location.href="/login"}const n9=v.defineComponent({name:"HeaderPop",components:{NFlex:R.NFlex,NInput:R.NInput,NPopover:R.NPopover,NTooltip:R.NTooltip,NButton:R.NButton,NIcon:R.NIcon,NDataTable:R.NDataTable,IconSearch:Ul,IconArrowClockwise:Wa,IconArrowSquareDown:jh},setup(){const{t:e}=Zt.useI18n(),t=v.ref(!1),r=R.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:()=>{KG([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:()=>{JG(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:ko,color:"success",tooltipText:()=>e("Common.importer.btnDownload")}),vn(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,nC({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=>{ld(h),t.value=h};return f(),v.watch(()=>j.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}}}),a9={class:"oc-header-download"};function i9(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,null,{default:v.withCtx(()=>[v.createVNode(o)]),_:1})]),_:1})]),default:v.withCtx(()=>[v.createVNode(h,{justify:"end",wrap:!1},{default:v.withCtx(()=>[v.createElementVNode("span",a9,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 o9=re(n9,[["render",i9]]),s9=v.defineComponent({name:"HeaderPop",components:{NBadge:R.NBadge,NPopover:R.NPopover,NFlex:R.NFlex,NTooltip:R.NTooltip,NButton:R.NButton,NIcon:R.NIcon,NDataTable:R.NDataTable,NRadioGroup:R.NRadioGroup,NRadioButton:R.NRadioButton,IconAlert:Wh,IconClear:Yh,IconArrowClockwise:Wa},setup(){const{t:e}=Zt.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?vn([{type:"custom",color:"primary",tooltipText:()=>e("Common.message.read"),buttonText:()=>e("Common.message.read"),onClick:()=>{t9(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=()=>{XG().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,e9({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}}}),l9={class:"com-title"};function u9(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,offset:[5,-10]},{default:v.withCtx(()=>[v.createVNode(l,{text:"",style:{"margin-left":"30px"}},{icon:v.withCtx(()=>[v.createVNode(s,null,{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",l9,v.toDisplayString(e.$t("Common.message.title")),1),v.createVNode(f,{value:e.radios,"onUpdate:value":t[0]||(t[0]=_=>e.radios=_),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 c9=re(s9,[["render",u9]]),f9=v.defineComponent({name:"OcHeader",components:{Pop:o9,Message:c9,NDropdown:R.NDropdown,NMenu:R.NMenu,NIcon:R.NIcon,NButton:R.NButton,NDrawer:R.NDrawer,NFlex:R.NFlex,NDrawerContent:R.NDrawerContent,NCard:R.NCard,IconWeatherSunny:Hl,IconWeatherMoon:Gl,IconGridDots:Xh,IconDismiss:jn,IconNavigation:jl,IconUser:nd},props:{menuOptions:{required:!0,type:Array,default:()=>[]},platformShow:{type:Boolean,default:!0},report:{type:Boolean,default:!1},download:{type:Boolean,default:!0},message:{type:Boolean,default:!0}},setup(e){const{t}=Zt.useI18n(),r=$t.useRoute(),n=$t.useRouter(),a=R.useNotification(),i=v.ref(j.platformUrl),o=v.ref(!1),s=v.ref(void 0),l=v.ref(10),u=v.ref(j.platformMenu),c=x=>{Po(x),wt("theme",x,0)},f=x=>{x.indexOf("/iot/home")>-1&&(x="/iot/home/all"),x.indexOf("/iot/timeline")>-1&&(x="/iot/timeline/all"),i.value=x,Xs()},d=x=>{x.disabled||(f(x.key),n.push(x.key))},h=x=>{if(!x.disabled){if(x.children)return;f(x.key),n.push(x.key),o.value=!1}},p=x=>v.h("div",{onClick:()=>d(x)},{default:()=>typeof x.label=="function"?x.label():x.label}),m=x=>v.h("div",{onClick:()=>h(x)},{default:()=>typeof x.label=="function"?x.label():x.label}),g=x=>x.icon?v.h(R.NIcon,{size:24,onClick:()=>d(x)},{default:()=>x.icon&&x.icon()}):!1,y=x=>{n.replace(x)},_=()=>{o.value=!1},w=()=>{const x=[{label:F.tenantName,key:"tenantName"},{label:`${t("Common.dropdownMenu.theme")} ${j.theme?t("Common.dropdownMenu.light"):t("Common.dropdownMenu.dark")}`,key:"theme"}];return j.language&&x.push({label:`${t("Common.dropdownMenu.language")} ${j.lang==="zh-CN"?"EN":"中文"}`,key:"language"}),x.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&&x.push({label:t("Common.dropdownMenu.report"),key:"report"}),x.push({label:t("Common.dropdownMenu.info"),key:"info"},{label:t("Common.dropdownMenu.logout"),key:"logout"}),x},S=async x=>{x==="logout"&&Hv(),x==="theme"&&c(!j.theme),x==="language"&&Ya(),x==="info"&&n.push("/custom/my"),x==="report"&&n.push("/custom/report"),x==="android"&&window.open("http://miiot.partexiot.cn/dk7u"),x==="ios"&&window.open("https://apps.apple.com/cn/app/id1587313547"),x==="chrome"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/chrome_installer.exe"),x==="edge"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/MicrosoftEdgeSetup.exe"),x==="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"),x==="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")},T=()=>{ZG().then(()=>{a.success({content:"续订请求已发送,七个工作日内将会有专人联系",duration:3e3})}).catch(()=>{a.error({content:()=>t("Notice.error"),duration:3e3})})},C=()=>{if(F.tenantStatus===0&&F.renewalStatus===0){const x=document.getElementById("app");x&&x.classList.add("outrange"),a.info({action:()=>v.h(R.NFlex,{size:[15,15]},{default:()=>v.h(R.NButton,{class:"button-primary","on-click":()=>{T()}},{default:()=>"立即续订"})}),closable:!1,content:`您的订阅已于${Tr(F.endTime)}到期,如需继续使用请联系我们`,title:"到期提示"})}if(F.tenantStatus===2&&F.renewalStatus===0){let x=`您的订阅即将于${Tr(F.endTime)}到期,请联系管理员进行续订`,A=[v.h(R.NButton,{secondary:!0,"on-click":()=>{a.destroyAll()}},{default:()=>"了解"})];F.kind===99&&(x=`您的订阅即将于${Tr(F.endTime)}到期,为保证持续有效的提供服务请立即续订`,A=[v.h(R.NButton,{secondary:!0,"on-click":()=>{a.destroyAll()}},{default:()=>"稍后提示我"}),v.h(R.NButton,{class:"button-primary","on-click":()=>{T()}},{default:()=>"立即续订"})]),a.info({action:()=>v.h(R.NFlex,{size:[15,15]},{default:()=>A}),closable:!1,content:x,title:"温馨提示"})}},N=()=>{n.push(j.platformUrl)};"backdropFilter"in document.documentElement.style||"WebkitBackdropFilter"in document.documentElement.style||document.body.classList.add("not-support-backdrop");const b=()=>{if(F.tenantStatus===0){const x=document.body;x&&x.classList.add("outrange")}};return v.onMounted(()=>{C(),f(r.path),b()}),v.watch(()=>r.path,x=>{f(x),b()}),v.watch(()=>j.needUpdate,x=>{if(x){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(R.NFlex,{justify:"space-between"},{default:()=>[v.h(R.NButton,{quaternary:!0,onClick:()=>{clearInterval(window.versionMonitor),A.destroy()}},{default:()=>"稍后"}),v.h(R.NButton,{type:"primary",onClick:()=>{window.location.reload()}},{default:()=>"更新"})]})})}}),{userStore:F,commonStore:j,activeMenu:i,platformOption:u,showMenu:o,fnSetLang:Ya,setDropdownMenu:w,renderMenuLabel:p,renderMenuLabel2:m,renderMenuIcon:g,indexClick:N,platformClick:y,dropdownClick:S,changeTheme:c,closeModel:_}}}),h9={class:"oc-header"},d9={class:"menu"};function v9(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"),_=v.resolveComponent("NDrawer");return v.openBlock(),v.createElementBlock("header",h9,[e.platformOption.length>1&&e.platformShow?(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]=(...w)=>e.indexClick&&e.indexClick(...w))}),e.commonStore.isPad?v.createCommentVNode("",!0):(v.openBlock(),v.createElementBlock("a",{key:1,href:"javascript:;",class:"platform-txt",onClick:t[1]||(t[1]=(...w)=>e.indexClick&&e.indexClick(...w))}," | "+v.toDisplayString(e.commonStore.platformName()),1)),v.createElementVNode("div",d9,[e.commonStore.isPad?(v.openBlock(),v.createBlock(l,{key:0,onClick:t[2]||(t[2]=w=>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]=w=>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,onClick:t[4]||(t[4]=w=>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(_,{show:e.showMenu,"onUpdate:show":t[5]||(t[5]=w=>e.showMenu=w)},{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 iC=re(f9,[["render",v9]]),p9=v.defineComponent({name:"OcImporter",components:{IconDismiss:jn,IconArrowClockwise:Wa,IconMailInboxAdd:Eo,IconCloudArrowDown:ql,NModal:R.NModal,NCard:R.NCard,NFlex:R.NFlex,NUpload:R.NUpload,NButton:R.NButton,NTooltip:R.NTooltip,NIcon:R.NIcon,NDataTable:R.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}=Zt.useI18n(),n=R.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 vn([{type:"custom",disabled:m.jobStatus===0,onClick:()=>{window.open(m.downloadUrl)},icon:ko,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&&rC({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,nC({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?QG(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}}}),g9={class:"oc-header-download"};function m9(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]=_=>e.modal=_),"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",g9,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 Uv=re(p9,[["render",m9]]),y9=v.defineComponent({name:"OcLogin",components:{NTabs:R.NTabs,NTabPane:R.NTabPane,NForm:R.NForm,NFormItem:R.NFormItem,NDropdown:R.NDropdown,NInput:R.NInput,NButton:R.NButton,NGrid:R.NGrid,NGi:R.NGi,NIcon:R.NIcon,NPopover:R.NPopover,IconWeatherSunny:Hl,IconWeatherMoon:Gl},props:{bg:{type:String,default:void 0},version:{type:String,default:""},info:{required:!1,type:Object,default:()=>({href:"",text:""})}},setup(){const{t:e}=Zt.useI18n(),t=R.useNotification(),r=$t.useRouter(),n=v.ref(dt("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:(L,V)=>V?/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(V):!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([]),_=()=>{const L=dt("loginOption",{}),V=[];Object.keys(L).forEach(B=>{V.push({label:B,key:B})}),p.value=V,m.value=V},w=()=>{const L=dt("phoneOption",{}),V=[];Object.keys(L).forEach(B=>{V.push({label:B,key:B})}),g.value=V,y.value=V},S=L=>{wt("token",L,0),$u().then(V=>{t.success({content:()=>e("Notice.success"),duration:3e3}),V.kind!==1&&r.replace(j.platformUrl)}).catch(()=>{t.error({content:()=>e("Notice.error"),duration:3e3}),d.value.password="",u.value=!1})},T=()=>{var L,V;u.value||(u.value=!0,n.value==="0"?(L=i.value)==null||L.validate(B=>{B?u.value=!1:U0({type:n.value,...d.value}).then($=>{const H=dt("loginOption",{});H[d.value.name]=!0,wt("loginOption",H,0),S($)}).catch(()=>{d.value.password="",u.value=!1})}):(V=a.value)==null||V.validate(B=>{B?u.value=!1:U0({type:n.value,...d.value}).then($=>{const H=dt("phoneOption",{});H[d.value.name]=!0,wt("phoneOption",H,0),S($)}).catch(()=>{d.value.password="",u.value=!1})}))},C=L=>{d.value.name=L;const V=m.value.filter(B=>B.label.indexOf(L)>-1);p.value=V,V.length===0?f.value=!1:f.value=!0},N=L=>{d.value.name=L,f.value=!1,o.value.focus(),setTimeout(()=>{var V;(V=i.value)==null||V.restoreValidation()},80)},b=L=>{var V;p.value.length===0?f.value=!1:f.value=L,(V=i.value)==null||V.restoreValidation()},x=L=>{d.value.phone=L;const V=y.value.filter(B=>B.label.indexOf(L)>-1);g.value=V,V.length===0?c.value=!1:c.value=!0},A=L=>{d.value.phone=L,c.value=!1,s.value.focus(),setTimeout(()=>{var V;(V=a.value)==null||V.restoreValidation()},80)},D=L=>{var V;g.value.length===0?c.value=!1:c.value=L,(V=a.value)==null||V.restoreValidation()},M=L=>{l.value=L,Po(L),wt("theme",L,0)},P=L=>{var V,B;n.value=L,d.value={phone:"",name:"",password:""},wt("loginTab",L,0),(V=i.value)==null||V.restoreValidation(),(B=a.value)==null||B.restoreValidation()},E=L=>v.h("div",{style:{position:"relative"}},{default:()=>[v.h("div",{},{default:()=>L.label}),v.h(jn,{class:"oc-login-drop-menu",onclick:V=>{V.stopPropagation(),V.stopImmediatePropagation();const B=dt("loginOption",{});delete B[L.label],wt("loginOption",B,0),_();const $=d.value.name,H=m.value.filter(O=>O.label.indexOf($)>-1);p.value=H}},{default:()=>""})]}),I=L=>v.h("div",{style:{position:"relative"}},{default:()=>[v.h("div",{},{default:()=>L.label}),v.h(jn,{class:"oc-login-drop-menu",onclick:V=>{V.stopPropagation(),V.stopImmediatePropagation();const B=dt("phoneOption",{});delete B[L.label],wt("phoneOption",B,0),w();const $=d.value.name,H=y.value.filter(O=>O.label.indexOf($)>-1);g.value=H}},{default:()=>""})]});return Fu(),ti("token"),_(),w(),{tabs:n,commonStore:j,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:T,tabChange:P,nameChange:C,phoneChange:x,changeTheme:M,fnSetLang:Ya,dropNameSelect:N,dropPhoneSelect:A,showDropdownNameChange:b,showDropdownPhoneChange:D,renderDropdownNameLabel:E,renderDropdownPhoneLabel:I}}}),_9={class:"oc-login"},w9=v.createElementVNode("img",{src:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/login.png",alt:"logo",class:"oc-login-img"},null,-1),b9=[w9],S9={class:"oc-login-right"},C9={class:"oc-login-language"},T9=v.createElementVNode("div",{class:"oc-login-title"},null,-1),x9={class:"oc-login-platform"},N9={class:"oc-login-form"},D9=v.createElementVNode("br",null,null,-1),A9=v.createElementVNode("br",null,null,-1),M9={class:"oc-login-submit"},k9=["href"],E9=v.createElementVNode("div",{class:"oc-google-play"},null,-1),P9=v.createElementVNode("img",{src:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/android_qr.png",alt:"AndroidQr",width:"300",height:"300"},null,-1),I9=v.createElementVNode("div",{class:"oc-app-store"},null,-1),L9=v.createElementVNode("img",{src:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/ios_qr.png",alt:"iOSQr",width:"300",height:"300"},null,-1),O9={class:"oc-login-footer"},R9=v.createElementVNode("span",{style:{"font-family":"Arial, Helvetica, sans-serif"}},"©",-1),B9=v.createElementVNode("a",{href:"https://beian.miit.gov.cn/",target:"_blank",class:"oc-footer-record"}," 沪ICP备 18025935号-3 ",-1);function V9(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"),_=v.resolveComponent("NGrid");return v.openBlock(),v.createElementBlock("div",_9,[v.createElementVNode("div",{class:"oc-login-left",style:v.normalizeStyle(e.bg?`background-image: url(${e.bg})`:"")},b9,4),v.createElementVNode("div",S9,[v.createElementVNode("div",C9,[v.createVNode(u,{onClick:t[0]||(t[0]=w=>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]=w=>e.fnSetLang())},{default:v.withCtx(()=>[v.createTextVNode(v.toDisplayString(e.commonStore.lang==="zh-CN"?"EN":"中文"),1)]),_:1})):v.createCommentVNode("",!0)]),T9,v.createElementVNode("div",x9,v.toDisplayString(e.commonStore.platformName()),1),v.createElementVNode("div",N9,[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(()=>[D9,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]=w=>e.formValue.phone=w),placeholder:e.$t("Common.login.mobilePlaceholder"),"on-update:value":e.phoneChange,onClick:t[3]||(t[3]=w=>e.showDropdownPhoneChange(!0)),onFocus:t[4]||(t[4]=w=>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]=w=>e.formValue.password=w),type:"password","show-password-on":"click",placeholder:e.$t("Common.login.passwordPlaceholder"),onFocus:t[7]||(t[7]=w=>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(()=>[A9,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]=w=>e.formValue.name=w),placeholder:e.$t("Common.login.userNamePlaceholder"),"on-update:value":e.nameChange,onClick:t[9]||(t[9]=w=>e.showDropdownNameChange(!0)),onFocus:t[10]||(t[10]=w=>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]=w=>e.formValue.password=w),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",M9,[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,k9)):v.createCommentVNode("",!0),v.createVNode(_,{"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(()=>[E9]),default:v.withCtx(()=>[P9]),_:1})]),_:1}),v.createVNode(y,null,{default:v.withCtx(()=>[v.createVNode(g,{trigger:"hover",placement:"top"},{trigger:v.withCtx(()=>[I9]),default:v.withCtx(()=>[L9]),_:1})]),_:1})]),_:1})]),v.createElementVNode("footer",O9,[v.createTextVNode(" Copyright "),R9,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),B9])])])}const oC=re(y9,[["render",V9]]),$9=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 F9(e,t,r,n,a,i){return v.toDisplayString(e.displayedValueRef)}const Wv=re($9,[["render",F9]]),z9=v.defineComponent({name:"OcLogo",components:{NGrid:R.NGrid,NGi:R.NGi,NDivider:R.NDivider,NumberRoll:Wv},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}}}),G9=v.createElementVNode("div",{class:"oc-logo"},null,-1);function H9(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(()=>[G9]),_: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 sC=re(z9,[["render",H9]]);R.darkTheme.common.cardColor="#32323b";R.darkTheme.common.primaryColor="#b274ef";R.darkTheme.common.primaryColorHover="#b274ef";R.darkTheme.common.borderRadius="16px";R.darkTheme.common.borderRadiusSmall="8px";R.darkTheme.DataTable.tdColor="#2d2d31";const lC={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"}},uC=R.darkTheme,U9=v.defineComponent({name:"OcMain",components:{NConfigProvider:R.NConfigProvider,NDialogProvider:R.NDialogProvider,NNotificationProvider:R.NNotificationProvider},props:{hljs:{type:Object,default:void 0}},setup(){return{zhCN:R.zhCN,dateZhCN:R.dateZhCN,commonStore:j,lightTheme:lC,darkTheme:uC}}});function W9(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 cC=re(U9,[["render",W9]]),Y9=e=>{const t=JSON.parse(JSON.stringify(e));return t.oldPassword=Rs(t.oldPassword),t.newPassword=Rs(t.newPassword),t.comfirmPassword=Rs(t.comfirmPassword),yt("api/auth/user/modifyPassword",t)},q9=e=>yt("api/auth/user/update",e),j9=v.defineComponent({name:"OcMy",components:{NGrid:R.NGrid,NGi:R.NGi,NForm:R.NForm,NFormItem:R.NFormItem,NInput:R.NInput,NButton:R.NButton},setup(){const{t:e}=Zt.useI18n(),t=R.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(F),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:Y9(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:q9(s.value).then(()=>{t.success({content:()=>e("Notice.success"),duration:3e3}),a.value=!1,$u().catch(()=>null)}).catch(()=>{a.value=!1})}))}}}}),X9={class:"com-card"},Z9={class:"com-title"},K9=v.createElementVNode("br",null,null,-1),J9={class:"text-right"},Q9={class:"com-card"},eH={class:"com-title"},tH=v.createElementVNode("br",null,null,-1),rH={class:"text-right"};function nH(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",X9,[v.createElementVNode("div",Z9,v.toDisplayString(e.$t("Common.my.title")),1),K9,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",J9,[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",Q9,[v.createElementVNode("div",eH,v.toDisplayString(e.$t("Common.my.password")),1),tH,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",rH,[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 fC=re(j9,[["render",nH]]);function aH(e){return new Promise((t,r)=>{yt("api/manager/factory-params/detail",{keyName:e}).then(n=>{const a=JSON.parse(n.valueJson??"[]");t(a)}).catch(()=>{r()})})}const iH=v.defineComponent({name:"OcReport",components:{NFlex:R.NFlex,NDataTable:R.NDataTable,NDatePicker:R.NDatePicker,NInputGroup:R.NInputGroup,NInputGroupLabel:R.NInputGroupLabel},setup(){const{t:e}=Zt.useI18n(),t=v.ref(!0),r=R.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 vn([{type:"custom",onClick:()=>{o(l.key)},icon:ko,color:"success",tooltipText:"下载"}])}}]),a=v.ref([]),i=v.ref([Date.now(),Date.now()]),o=l=>{t.value=!0,rC({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}),ld(!0)}).catch(()=>{t.value=!1,r.error({content:()=>e("Notice.error"),duration:3e3})})},s=l=>l>Date.now();return aH("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}}}),oH={class:"com-card"},sH=v.createElementVNode("br",null,null,-1);function lH(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",oH,[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}),sH,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 hC=re(iH,[["render",lH]]);var uH=tr,cH=function(){return uH.Date.now()},fH=cH,hH=/\s/;function dH(e){for(var t=e.length;t--&&hH.test(e.charAt(t)););return t}var vH=dH,pH=vH,gH=/^\s+/;function mH(e){return e&&e.slice(0,pH(e)+1).replace(gH,"")}var yH=mH,_H=$o,wH=pi,bH="[object Symbol]";function SH(e){return typeof e=="symbol"||wH(e)&&_H(e)==bH}var CH=SH,TH=yH,W0=gn,xH=CH,Y0=NaN,NH=/^[-+]0x[0-9a-f]+$/i,DH=/^0b[01]+$/i,AH=/^0o[0-7]+$/i,MH=parseInt;function kH(e){if(typeof e=="number")return e;if(xH(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=TH(e);var r=DH.test(e);return r||AH.test(e)?MH(e.slice(2),r?2:8):NH.test(e)?Y0:+e}var EH=kH,PH=gn,Ef=fH,q0=EH,IH="Expected a function",LH=Math.max,OH=Math.min;function RH(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(IH);t=q0(t)||0,PH(r)&&(c=!!r.leading,f="maxWait"in r,i=f?LH(q0(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d);function h(C){var N=n,b=a;return n=a=void 0,u=C,o=e.apply(b,N),o}function p(C){return u=C,s=setTimeout(y,t),c?h(C):o}function m(C){var N=C-l,b=C-u,x=t-N;return f?OH(x,i-b):x}function g(C){var N=C-l,b=C-u;return l===void 0||N>=t||N<0||f&&b>=i}function y(){var C=Ef();if(g(C))return _(C);s=setTimeout(y,m(C))}function _(C){return s=void 0,d&&n?h(C):(n=a=void 0,o)}function w(){s!==void 0&&clearTimeout(s),u=0,n=l=a=s=void 0}function S(){return s===void 0?o:_(Ef())}function T(){var C=Ef(),N=g(C);if(n=arguments,a=this,l=C,N){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 T.cancel=w,T.flush=S,T}var dC=RH;const vC=Mv(dC);function Yv(e,t=1e3){const r=vC(e,t);return{run:r,cancel:r.cancel,flush:r.flush}}var BH=dC,VH=gn,$H="Expected a function";function FH(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError($H);return VH(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),BH(e,t,{leading:n,maxWait:t,trailing:a})}var zH=FH;const GH=Mv(zH);function HH(e,t=1e3){const r=v.ref(e),n=v.computed(()=>GH((...a)=>r.value([...a]),t));return v.onUnmounted(()=>{n.value.cancel()}),{run:n.value,cancel:n.value.cancel,flush:n.value.flush}}function UH(e,t){const r=()=>dt(e,t==null?void 0:t.defaultValue);return[v.ref(r()),i=>{typeof i>"u"?ti(e):wt(e,i,(t==null?void 0:t.expired)||"1 Day")}]}function WH(e,t,r){const n=`useQuery-${e}`,a=v.ref(),i=v.ref(),o=v.ref(),s=v.ref(!1),l=v.ref("idle"),u=v.ref(),c=v.ref(0),f=v.ref(0),d=async()=>{if(!s.value){m(!0,"loading");try{let S;if(Array.isArray(t))S=await new Promise((C,N)=>{a.value=N,Promise.all(t.map(b=>b.call(null))).then(b=>{C(b)}).catch(b=>{N(b)})});else{const T=new Promise((C,N)=>{a.value=N});S=await Promise.race([T,t()])}m(!1,"success"),p(S),wt(n,S,0)}catch(S){g(S),m(!1,"error"),c.value>0&&(c.value=c.value-1,setTimeout(()=>{d()},f.value))}}},{run:h}=Yv(d,r!=null&&r.pollingInterval?r.pollingInterval-100>0?r.pollingInterval-100:0:300),p=S=>{let T=S;r!=null&&r.formatResult&&(T=r.formatResult(S)),i.value=T},m=(S,T)=>{s.value=S,T&&(l.value=T)},g=S=>{u.value=S},y=()=>{t_(),a.value&&a.value()},_=()=>{y(),h()},w=()=>{clearInterval(o.value)};if(r!=null&&r.retry&&r.pollingInterval===void 0&&(c.value=r.retry.retryCount||3,f.value=r.retry.retryInterval||1e3*2**3),r!=null&&r.initialData&&p(r.initialData()),r===void 0||r.initialData===void 0||r.cache===void 0||r.cache===!0)try{const S=dt(n,!1);S&&p(S)}catch{p(!1)}return(r===void 0||r.manual===void 0||r.manual===!1)&&h(),r!=null&&r.pollingInterval&&(o.value=setInterval(()=>{h()},r==null?void 0:r.pollingInterval)),v.onBeforeUnmount(()=>{w()}),{status:l,data:i,loading:s,error:u,stopPollingInterval:w,cancel:y,refetch:_}}const YH=v.defineComponent({name:"OcScan",components:{NButton:R.NButton,NModal:R.NModal,NCard:R.NCard,NFlex:R.NFlex,NIcon:R.NIcon,IconDismiss:jn},emits:["on-update:value"],setup(e,{emit:t}){const r=v.ref(),n=v.ref(),a=v.ref(!1),i=v.ref(!1),o=R.useNotification(),s=1280,l=720;let u=null,c=null;const f=(T,C)=>{u.beginPath(),u.moveTo(T.x,T.y),u.lineTo(C.x,C.y),u.lineWidth=2,u.strokeStyle="green",u.stroke()},d=()=>{i.value&&requestAnimationFrame(h)},h=()=>{if(c&&c.readyState===c.HAVE_ENOUGH_DATA){c.width=s,c.height=l,u.drawImage(r.value,0,0,s,l);const T=u.getImageData(0,0,s,l);try{const C=DC(T.data,s,l);if(C){const{location:N,data:b}=C;f(N.topLeftCorner,N.topRightCorner),f(N.topRightCorner,N.bottomRightCorner),f(N.bottomRightCorner,N.bottomLeftCorner),f(N.bottomLeftCorner,N.topLeftCorner),t("on-update:value",b),p()}}catch{i.value=!1,o.error({content:"扫描失败,请重试",duration:3e3})}}d()},p=()=>{r.value&&r.value.srcObject&&(r.value.srcObject.getTracks().forEach(T=>T.stop()),i.value=!1,u=null,c=null,r.value.srcObject=null,r.value.src=null),a.value=!1},m=T=>{r.value.srcObject!==void 0?r.value.srcObject=T:window.videoEl.mozSrcObject!==void 0?r.value.mozSrcObject=T:window.URL.createObjectURL?r.value.src=window.URL.createObjectURL(T):window.webkitURL?r.value.src=window.webkitURL.createObjectURL(T):r.value.src=T,r.value.play().then(d)},g=()=>{var T,C;(T=n.value)==null||T.focus(),(C=n.value)==null||C.select(),a.value=!0,v.nextTick(()=>{navigator.mediaDevices&&navigator.mediaDevices.getUserMedia?(i.value=!0,c=document.getElementById("oc-scan-canvas"),c&&(u=c.getContext("2d",{willReadFrequently:!0})),navigator.mediaDevices.getUserMedia({video:!0}).then(m).catch(()=>{i.value=!1,o.error({content:"未获取到摄像头权限,请确认赋予相关权限",duration:3e3})})):(i.value=!1,o.error({content:"您的设备未检测到摄像头,无法进行扫码识别",duration:3e3}))})};let y="",_=0;const{run:w}=Yv(()=>{y&&t("on-update:value",y),y="",_=0},300);function S(T){let C=new Date().getTime();C-_<=50?w():y="",_=C,y+=T.key}return v.onMounted(()=>{window.addEventListener("keypress",S)}),v.onBeforeUnmount(()=>{window.removeEventListener("keypress",S),p()}),{videoRef:r,inputRef:n,modal:a,loading:i,doScan:g,closeAll:p}}}),qH=v.createElementVNode("div",{class:"oc-scan-canvas-main"},[v.createElementVNode("canvas",{id:"oc-scan-canvas",width:"1280",height:"720"})],-1),jH={class:"oc-scan-video"},XH={ref:"videoRef",playsInline:""},ZH={ref:"inputRef",type:"text",class:"oc-scan-input"};function KH(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(v.toDisplayString(e.$t("Common.scan.label")),1)]),_: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(v.toDisplayString(e.$t("Common.scan.label")),1)]),"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(()=>[qH]),_:1})]),_:1},8,["show","on-mask-click"]),v.createElementVNode("div",jH,[v.createElementVNode("video",XH,null,512)]),v.createElementVNode("input",ZH,null,512)],64)}const pC=re(YH,[["render",KH]]),JH=v.defineComponent({name:"OcTimePickRange",components:{NInputGroup:R.NInputGroup,NTimePicker:R.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}}}),QH=v.createElementVNode("span",{class:"oc-time-picker-separator"},"-",-1);function eU(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"]),QH,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 tU=re(JH,[["render",eU]]),rU=v.defineComponent({name:"OcSearchBarItem",components:{NIcon:R.NIcon,NButton:R.NButton,NGrid:R.NGrid,NGridItem:R.NGridItem,NInput:R.NInput,NInputNumber:R.NInputNumber,NSelect:R.NSelect,NTooltip:R.NTooltip,NPopover:R.NPopover,NDataTable:R.NDataTable,NCascader:R.NCascader,NTreeSelect:R.NTreeSelect,NDatePicker:R.NDatePicker,NInputGroup:R.NInputGroup,NInputGroupLabel:R.NInputGroupLabel,OcTimePickRange:tU,IconArrowDown:Xl,IconArrowUp:td},props:{cols:{type:Number,default:4},small:{type:Boolean,default:!1}},setup(e,{expose:t,slots:r}){const{t:n}=Zt.useI18n(),a=v.ref(!!r.header),i=v.ref({}),o=v.ref(!0),s=v.ref(!1),l=v.ref(0),u=v.ref({}),c=v.ref({}),f=v.ref([{key:"label"}]),d=w=>w.fallbackOption?typeof w.fallbackOption=="boolean"?()=>({label:n("Common.message.all"),value:"",disabled:!0}):w.fallbackOption:!1,h=(w,S,T)=>{const C=T.options.filter(N=>String(N.label).toLocaleLowerCase().indexOf(String(S).toLocaleLowerCase())>-1)||[];u.value[w].options=C,C.length===0?u.value[w].display=!1:u.value[w].display=!0},p=w=>{var b;Object.keys(w).forEach(x=>{var D,M,P;const A=w[x];A.show=A.show??!0,A.type==="dropdown"&&(u.value[x]={display:!1,options:A.options}),A.type==="select"&&A.fallbackOption&&A.multiple&&c.value[x].length===0&&(c.value[x]=[""]),A.type==="group"&&(c.value[x]||(c.value[x]=A.options[0].value),A.inputTemp=A.input.options[c.value[x]?c.value[x]:A.options[0].value],((D=A.inputTemp)==null?void 0:D.type)==="select"&&((M=A.inputTemp)!=null&&M.fallbackOption)&&((P=A.inputTemp)!=null&&P.multiple)&&c.value[A.input.key].length===0&&(c.value[A.input.key]=[""]))});let S=0;const T=e.small?1:e.cols,C=Object.keys(w);if(Object.keys(w).length>0)for(let x=0;x<=T;x++)(b=w[C[x]])!=null&&b.show&&(S=S+1);let N=T-S>=0?T-S-1:-1;a.value&&(N=N-1,S=S+1),l.value=N,S>T?s.value=!0:s.value=!1,e.small&&(o.value=!1,s.value=!1),i.value=w},m=w=>{u.value[w].options.length===0?u.value[w].display=!1:u.value[w].display=!0},g=()=>{o.value=!o.value},y=()=>{const w=JSON.stringify(c.value,(S,T)=>T===void 0?null:Array.isArray(T)?T.filter(C=>C!==""):T);return JSON.parse(w)},_=w=>{w&&(c.value=w)};return t({getValues:y,setValues:_,dataFactory:p}),{more:s,offset:l,dataList:i,collapsed:o,searchData:c,dropDisplay:u,columnsPopover:f,isSlotHeader:a,showMore:g,setValues:_,dropValueChange:h,dropDisplayToggle:m,getDefaultDate:Ea,selectFallback:d}}}),nU={class:"oc-search-bar-line"},aU={class:"oc-search-bar-title"},iU={key:0,class:"oc-search-action-more"};function oU(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"),_=v.resolveComponent("NGrid"),w=v.resolveComponent("IconArrowDown"),S=v.resolveComponent("NIcon"),T=v.resolveComponent("IconArrowUp"),C=v.resolveComponent("NButton"),N=v.resolveComponent("NTooltip");return v.openBlock(),v.createElementBlock("div",nU,[v.createVNode(_,{"x-gap":"15","y-gap":"15",cols:e.small?1:e.cols,"collapsed-rows":1,collapsed:e.collapsed,responsive:"screen","item-responsive":""},{default:v.withCtx(()=>[e.isSlotHeader?(v.openBlock(),v.createBlock(o,{key:0,span:e.small?1:`${e.cols} s:2 l:1`},{default:v.withCtx(()=>[v.createElementVNode("div",aU,[v.renderSlot(e.$slots,"header")])]),_:3},8,["span"])):v.createCommentVNode("",!0),e.offset>-1?(v.openBlock(),v.createBlock(o,{key:1,offset:e.offset},null,8,["offset"])):v.createCommentVNode("",!0),(v.openBlock(!0),v.createElementBlock(v.Fragment,null,v.renderList(e.dataList,(b,x,A)=>(v.openBlock(),v.createBlock(o,{key:`${x}_${A}`,span:b.show?e.small?1:b.span?b.span:`${e.cols} s:2 l:1`:0},{default:v.withCtx(()=>[b.type!=="group"?(v.openBlock(),v.createBlock(y,{key:0},{default:v.withCtx(()=>{var D;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[x],"onUpdate:value":M=>e.searchData[x]=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)),P=>e.setValues(P)):e.searchData[x]=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[x],"onUpdate:value":M=>e.searchData[x]=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)),P=>e.setValues(P)):e.searchData[x]=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[x],"onUpdate:value":M=>e.searchData[x]=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 P=M,E=M;if(b.multiple){let I=M.filter(L=>L!=="");I.length===0?(P=[""],E=[]):(P=I,E=I)}b.updateValue?b.updateValue(E,JSON.parse(JSON.stringify(e.searchData)),I=>e.setValues(I)):e.searchData[x]=P},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:(D=e.dropDisplay[x])==null?void 0:D.display,"on-clickoutside":()=>{e.dropDisplay[x].display=!1}},{trigger:v.withCtx(()=>[v.createVNode(l,{value:e.searchData[x],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[x]=M.trim(),e.dropValueChange(x,M.trim(),b)},onClick:M=>e.dropDisplayToggle(x),onFocus:M=>e.dropDisplayToggle(x)},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[x])==null?void 0:M.options)||[],"max-height":300,bordered:!1,"bottom-bordered":!1,"row-props":P=>({style:"cursor: pointer;",onClick:()=>{e.searchData[x]=P.value,e.dropDisplay[x].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[x],"onUpdate:value":M=>e.searchData[x]=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)),P=>e.setValues(P)):e.searchData[x]=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[x],"onUpdate:value":M=>e.searchData[x]=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)),P=>e.setValues(P)):e.searchData[x]=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[x],"onUpdate:value":M=>e.searchData[x]=M,disabled:b==null?void 0:b.disabled,"onOnUpdate:value":M=>{b.updateValue?b.updateValue(M,JSON.parse(JSON.stringify(e.searchData)),P=>e.setValues(P)):e.searchData[x]=[...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[x],"onUpdate:value":M=>e.searchData[x]=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)),P=>e.setValues(P)):e.searchData[x]=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 D,M,P,E,I,L,V,B,$,H,O,Y,J,K,ge,fe,ve,ue,me,ce,Z,ee,nt,Be,zt,Tt,Vr,Fo,yr,zo,$r,mi,ca;return[v.createVNode(c,{value:e.searchData[x],"onUpdate:value":xe=>e.searchData[x]=xe,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":xe=>{if(b.inputTemp=b.input.options[xe],b.inputTemp.type==="datePicker"){let Le=0;(b.inputTemp.dateType.indexOf("date")>-1||b.inputTemp.dateType.indexOf("quarter")>-1||b.inputTemp.dateType.indexOf("week")>-1)&&(Le=e.getDefaultDate()),b.inputTemp.dateType.indexOf("month")>-1&&(Le=e.getDefaultDate(void 0,void 0,1)),b.inputTemp.dateType.indexOf("year")>-1&&(Le=e.getDefaultDate(void 0,1,1)),b.inputTemp.dateType.indexOf("range")>-1&&(Le=[Le,Le]),e.searchData[b.input.key]=Le}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(xe,JSON.parse(JSON.stringify(e.searchData)),Le=>e.setValues(Le)):e.searchData[x]=xe},class:"oc-group-select",placeholder:" "},null,8,["value","onUpdate:value","options","style","on-update:value"]),((D=b.inputTemp)==null?void 0:D.type)==="input"?(v.openBlock(),v.createBlock(l,{key:0,value:e.searchData[b.input.key],"onUpdate:value":xe=>e.searchData[b.input.key]=xe,disabled:(M=b.inputTemp)==null?void 0:M.disabled,placeholder:typeof((P=b.inputTemp)==null?void 0:P.placeholder)=="string"?(E=b.inputTemp)==null?void 0:E.placeholder:((I=b.inputTemp)==null?void 0:I.placeholder)&&((L=b.inputTemp)==null?void 0:L.placeholder()),"on-update:value":xe=>{var Le;(Le=b.inputTemp)!=null&&Le.updateValue?b.inputTemp.updateValue(xe.trim(),JSON.parse(JSON.stringify(e.searchData)),_r=>e.setValues(_r)):e.searchData[b.input.key]=xe.trim()},clearable:b.inputTemp.clearable??!0,style:{flex:"1"}},null,8,["value","onUpdate:value","disabled","placeholder","on-update:value","clearable"])):v.createCommentVNode("",!0),((V=b.inputTemp)==null?void 0:V.type)==="number"?(v.openBlock(),v.createBlock(u,{key:1,value:e.searchData[b.input.key],"onUpdate:value":xe=>e.searchData[b.input.key]=xe,disabled:(B=b.inputTemp)==null?void 0:B.disabled,placeholder:typeof(($=b.inputTemp)==null?void 0:$.placeholder)=="string"?(H=b.inputTemp)==null?void 0:H.placeholder:((O=b.inputTemp)==null?void 0:O.placeholder)&&((Y=b.inputTemp)==null?void 0:Y.placeholder()),min:(J=b.inputTemp)==null?void 0:J.min,max:(K=b.inputTemp)==null?void 0:K.max,step:((ge=b.inputTemp)==null?void 0:ge.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":xe=>{var Le;(Le=b.inputTemp)!=null&&Le.updateValue?b.inputTemp.updateValue(xe,JSON.parse(JSON.stringify(e.searchData)),_r=>e.setValues(_r)):e.searchData[b.input.key]=xe},clearable:b.inputTemp.clearable??!0,style:{flex:"1"}},v.createSlots({_:2},[(ue=b.inputTemp)!=null&&ue.suffix?{name:"suffix",fn:v.withCtx(()=>{var xe;return[v.createTextVNode(v.toDisplayString((xe=b.inputTemp)==null?void 0:xe.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),((me=b.inputTemp)==null?void 0:me.type)==="datePicker"?(v.openBlock(),v.createBlock(g,{key:2,value:e.searchData[b.input.key],"onUpdate:value":xe=>e.searchData[b.input.key]=xe,disabled:(ce=b.inputTemp)==null?void 0:ce.disabled,placeholder:typeof((Z=b.inputTemp)==null?void 0:Z.placeholder)=="string"?(ee=b.inputTemp)==null?void 0:ee.placeholder:((nt=b.inputTemp)==null?void 0:nt.placeholder)&&((Be=b.inputTemp)==null?void 0:Be.placeholder()),type:b.inputTemp.dateType,format:(zt=b.inputTemp)==null?void 0:zt.format,"is-date-disabled":(Tt=b.inputTemp)==null?void 0:Tt.isDateDisabled,shortcuts:(Vr=b.inputTemp)==null?void 0:Vr.shortcuts,"update-value-on-close":b.inputTemp.dateType!=="year","on-update:value":xe=>{var Le;(Le=b.inputTemp)!=null&&Le.updateValue?b.inputTemp.updateValue(xe,JSON.parse(JSON.stringify(e.searchData)),_r=>e.setValues(_r)):e.searchData[b.input.key]=xe},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),((Fo=b.inputTemp)==null?void 0:Fo.type)==="select"?(v.openBlock(),v.createBlock(c,{key:3,value:e.searchData[b.input.key],"onUpdate:value":xe=>e.searchData[b.input.key]=xe,"show-checkmark":!1,disabled:(yr=b.inputTemp)==null?void 0:yr.disabled,placeholder:typeof((zo=b.inputTemp)==null?void 0:zo.placeholder)=="string"?($r=b.inputTemp)==null?void 0:$r.placeholder:((mi=b.inputTemp)==null?void 0:mi.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":xe=>{var Zv,Kv,Jv;let Le=xe,_r=xe;if(((Zv=b.inputTemp)==null?void 0:Zv.type)==="select"&&((Kv=b.inputTemp)!=null&&Kv.multiple)){let yi=xe.filter(TC=>TC!=="");yi.length===0?(Le=[""],_r=[]):(Le=yi,_r=yi)}(Jv=b.inputTemp)!=null&&Jv.updateValue?b.inputTemp.updateValue(_r,JSON.parse(JSON.stringify(e.searchData)),yi=>e.setValues(yi)):e.searchData[b.input.key]=Le},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"]))),128))]),_:3},8,["cols","collapsed"]),e.more?(v.openBlock(),v.createElementBlock("div",iU,[v.createVNode(N,{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(w)]),_:1})):(v.openBlock(),v.createBlock(S,{key:1},{default:v.withCtx(()=>[v.createVNode(T)]),_:1}))]),_:1},8,["onClick"])]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.more")),1)]),_:1})])):v.createCommentVNode("",!0)])}const sU=re(rU,[["render",oU]]),lU=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)}}}}),uU={class:"oc-search-bar-pop"},cU={class:"oc-search-bar-pop-plan"},fU={class:"oc-search-bar-pop-action"},hU={class:"oc-search-bar-pop-content"};function dU(e,t,r,n,a,i){return v.withDirectives((v.openBlock(),v.createElementBlock("div",uU,[v.createElementVNode("div",{class:"oc-search-bar-pop-mask",onClick:t[0]||(t[0]=(...o)=>e.close&&e.close(...o))}),v.createElementVNode("div",cU,[v.createElementVNode("div",fU,[v.renderSlot(e.$slots,"action")]),v.createElementVNode("div",hU,[v.renderSlot(e.$slots,"default")])])],512)),[[v.vShow,e.value]])}const vU=re(lU,[["render",dU]]),pU=v.defineComponent({name:"OcSearchBar",components:{NFlex:R.NFlex,NIcon:R.NIcon,NTooltip:R.NTooltip,NButton:R.NButton,NPopover:R.NPopover,IconArrowDown:Xl,IconReset:rd,IconSearch:Ul,IconFilter:Wl,OcSearchBarItem:sU,OcSearchBarPop:vU},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,_=Kr(g),w=Kr(y);i.replace(`${y}?cursor=${_}&routerId=${w}`)}}},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,_=Kr(m),w=Kr(y);i.replace(`${y}?cursor=${_}&routerId=${w}`)}},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 _=a.path,w=go(y),S=go(g);w===_&&(m=S)}}o.value&&(o.value.setValues(JSON.parse(JSON.stringify(m))),o.value.dataFactory(e.data)),e.autoSubmit&&f(!0)},100)}),{itemRef:o,drawer:l,isSlotHeader:u,isSlotAction:c,commonStore:j,itemData:s,doSearch:f,clearAll:d}}}),gU={key:1,class:"oc-search-bar-popover"},mU={key:0},yU={class:"oc-search-bar-center"};function _U(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.small||e.commonStore.isMobile)&&e.isSlotHeader?(v.openBlock(),v.createElementBlock("div",{key:0,class:v.normalizeClass(["oc-search-bar-title",e.commonStore.isMobile?"tiny":""])},[v.renderSlot(e.$slots,"header")],2)):v.createCommentVNode("",!0),e.small||e.commonStore.isMobile?(v.openBlock(),v.createElementBlock("div",gU,[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",mU)):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",yU,[v.createVNode(o,{ref:"itemRef",loading:e.loading,cols:e.cols},v.createSlots({_:2},[e.isSlotHeader?{name:"header",fn:v.withCtx(()=>[v.renderSlot(e.$slots,"header")]),key:"0"}:void 0]),1032,["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 qv=re(pU,[["render",_U]]),wU=v.defineComponent({name:"OcSkeleton",components:{NGrid:R.NGrid,NGi:R.NGi,NSkeleton:R.NSkeleton},props:{cols:{type:Number,default:6},num:{type:Array,default:()=>[[12,1]]}},setup(){return{}}}),bU={class:"com-skeleton"};function SU(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",bU,[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 gC=re(wU,[["render",SU]]),CU=v.defineComponent({name:"OcTable",components:{NDataTable:R.NDataTable,NTooltip:R.NTooltip,NPopover:R.NPopover,NButton:R.NButton,NIcon:R.NIcon,NFlex:R.NFlex,NPopconfirm:R.NPopconfirm,IconFilter:Wl,IconNavigation:jl,IconEye:Yl,IconEyeOff:Kh,IconPin:Qh,IconPinOff:ed,IconAdd:Uh,IconMailInboxAdd:Eo,IconCloudArrowDown:ql,Draggable:Z0,OcSearchBar:qv,OcImporter:Uv},props:{columns:{required:!0,type:Array,default:()=>[]},fetch:{required:!0,type:Function,default:()=>Promise.resolve()},actions:{type:Array,default:void 0},filters:{type:Object,default:void 0},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","on-update:filter"],setup(e,{emit:t,expose:r,slots:n}){const a=v.ref(!!n.header),i=v.ref(),{t:o}=Zt.useI18n(),s=$t.useRoute(),l=$t.useRouter(),u=R.useNotification(),c=v.ref(!1),f=v.ref(!1),d=v.ref(!1),h=v.ref([]),p=v.ref([]),m=v.ref([]),g=v.ref({query:{page:1}}),y=v.ref({}),_=v.ref({}),w=v.ref(void 0),S=v.ref(void 0),T=s.path,C=O=>{c.value=!0,t("update:loading",!0),O&&(g.value.query={...g.value.query,...O});const Y=Kl(g.value);e.fetch&&e.fetch(Y).then(J=>{const K=Zl(J);g.value.query=K.query,m.value=K.records,i.value&&i.value.setValues(g.value),c.value=!1,t("on-update:value",Qe(g.value)),t("update:loading",!1)}).catch(()=>{c.value=!1,t("update:loading",!1)})},N=O=>{g.value.query.page=O,Xs(),C()},b=O=>{g.value.query.pageSize=O,g.value.query.page=1,Xs(),C()},x=O=>{O?(g.value.query.columnKey=O.columnKey,g.value.query.order=O.order):(g.value.query.columnKey=null,g.value.query.order=null),C()},A=O=>{O.pin=!O.pin,O.pin?O.fixed="left":O.fixed=void 0,H()},D=O=>{O.show=!O.show,H()},M=()=>{const O=[];p.value.forEach(Y=>{Y.show&&O.push(Y)}),h.value=O},P=O=>{if(g.value=O,e.cache){const Y=Kr(T),J=Kr(g.value);l.replace(`${T}?cursor=${J}&routerId=${Y}`)}C()},E=()=>{f.value=!0,zv({...e.exporter,jobParams:JSON.stringify(g.value)}).then(()=>{u.success({content:()=>o("Notice.success"),duration:3e3}),setTimeout(()=>{f.value=!1},2e3)}).catch(()=>{f.value=!1})},I=O=>{const Y=Qe(e.columns),J=[],K=new Set,ge={};O||(O=e.filters),Y.forEach(ve=>{if(!K.has(ve.key)){const ue=O==null?void 0:O.find(ce=>ce.key===ve.key),me=O==null?void 0:O.findIndex(ce=>ce.key===ve.key);ue?(ve.show=ue.show,ve.hide=ue.hide,ve.pin=ue.pin,ve.fixed=ue.fixed,ge[me]=ve,K.add(ve.key)):J.push(ve)}});const fe=Object.keys(ge).map(ve=>ge[ve]);return K.clear(),[...fe,...J]},L=O=>new Promise(async Y=>{var ge,fe,ve,ue,me,ce,Z;const J={},K={};if(O.search.title||(O.search.title=O.title),O.search.defaultValue!==void 0)K[O.search.key||O.key]=O.search.defaultValue;else{if(O.search.type==="input"&&(K[O.search.key||O.key]=""),O.search.type==="number"&&(K[O.search.key||O.key]=null),O.search.type==="dropdown"&&(K[O.search.key||O.key]=null),(O.search.type==="cascader"||O.search.type==="treeSelect")&&((ge=O.search)!=null&&ge.multiple?K[O.search.key||O.key]=[]:K[O.search.key||O.key]=null),O.search.type==="datePicker"){let ee=0;(O.search.dateType.indexOf("date")>-1||O.search.dateType.indexOf("quarter")>-1||O.search.dateType.indexOf("week")>-1)&&(ee=Ea()),O.search.dateType.indexOf("month")>-1&&(ee=Ea(void 0,void 0,1)),O.search.dateType.indexOf("year")>-1&&(ee=Ea(void 0,1,1)),O.search.dateType.indexOf("range")>-1&&(ee=[ee,ee]),K[((fe=O.search)==null?void 0:fe.key)||O.key]=ee}O.search.type==="select"&&((ve=O.search)!=null&&ve.multiple?O.search.fallbackOption?K[((ue=O.search)==null?void 0:ue.key)||O.key]=[""]:K[((me=O.search)==null?void 0:me.key)||O.key]=[]:K[((ce=O.search)==null?void 0:ce.key)||O.key]=null)}O.search.type==="select"&&typeof O.search.options=="function"&&await O.search.options().then(ee=>{O.search.options=ee}),J[((Z=O.search)==null?void 0:Z.key)||O.key]=O.search,Y({value:K,data:J})}),V=async(O=!1,Y)=>{const J=[],K=[];let ge={},fe={};const ve=I(Y);for await(const ue of ve){if(ue.search){const{value:ce,data:Z}=await L(Qe(ue));ge={...ge,...ce},fe={...fe,...Z}}if(delete ue.search,ue.render&&typeof ue.render=="string"){const ce=ue.render,Z=new Function("rowData","rowIndex","h",ce);ue.render=(ee,nt)=>Z(ee,nt,v.h)}const me=Qe(ue);J.push(me),y.value=Qe(ge),K.push({...me,show:(ue==null?void 0:ue.show)??!0,pin:!!ue.fixed})}if(e.actions&&e.actions.length>0){const ue=Qe(e.actions),me={title:()=>o("Common.action"),key:"action",align:"center",fixed:"right",width:e.actionsWidth,resizable:!0,checked:!0,show:!0,hide:!0,render(ce,Z){return vn(ue,ce,Z)}};J.push(me),K.push(me)}if(O&&e.cache){const{cursor:ue,routerId:me}=s.query;if(ue&&me){const ce=go(me),Z=go(ue);ce===T&&(g.value={...g.value,...Z})}else g.value={...g.value,...ge}}else g.value={...g.value,...ge};h.value=J,_.value=fe,p.value=K,i.value&&i.value.setValues(Qe(g.value)),i.value&&i.value.setData(Qe(_.value))},B=O=>typeof O=="number"?`${O}px`:O,$=()=>{if(e.height){const O=B(e.height);w.value=O,S.value=O;return}e.minHeight&&(w.value=B(e.minHeight)),e.maxHeight&&(S.value=B(e.maxHeight))},H=()=>{const O=[];p.value.forEach(Y=>{Y.key!=="action"&&O.push({key:Y.key,show:Y.show,hide:Y.hide,fixed:Y.fixed})}),t("on-update:filter",O)};return r({init:C}),v.onMounted(()=>{V(!0),$()}),v.watch(()=>p.value,()=>{M()},{deep:!0}),v.watch(()=>e.columns,()=>{e.realtime&&V()},{deep:!0}),v.watch(()=>e.actions,()=>{e.realtime&&V()},{deep:!0}),v.watch(()=>e.filters,O=>{V(!1,O)},{deep:!0}),{loading:c,minH:w,maxH:S,searchRef:i,exportLoading:f,tableColumns:h,tableData:m,tableQuery:g,searchDefaultValue:y,searchData:_,baseColumns:p,showImporter:d,isSlotHeader:a,pageChange:N,pageSizeChange:b,pageSorter:x,pinChange:A,showChange:D,submit:P,exportData:E,getDefaultDate:Ea,handleColumnChange:H}}}),TU={class:"com-card"};function xU(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"),_=v.resolveComponent("IconEyeOff"),w=v.resolveComponent("Draggable"),S=v.resolveComponent("NPopover"),T=v.resolveComponent("OcSearchBar"),C=v.resolveComponent("NDataTable"),N=v.resolveComponent("OcImporter");return v.openBlock(),v.createElementBlock(v.Fragment,null,[v.createVNode(T,{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},v.createSlots({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(w,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",onEnd:e.handleColumnChange}),{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:x=>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:x=>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(_,{key:1}))]),_:2},1024)]),_:2},1032,["onClick"])]))]),_:1},16,["modelValue","onEnd"])]),_:1})]),default:v.withCtx(()=>[v.createTextVNode(" "+v.toDisplayString(e.$t("Common.filter")),1)]),_:1})):v.createCommentVNode("",!0),v.renderSlot(e.$slots,"action")]),_:2},[e.isSlotHeader?{name:"header",fn:v.withCtx(()=>[v.renderSlot(e.$slots,"header")]),key:"0"}:void 0]),1032,["value","defaultValue","data","loading","autoSubmit","resetButton","onOnUpdate:value"]),v.createElementVNode("div",TU,[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(N,{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 mC=re(CU,[["render",xU]]),j0=Object.freeze(Object.defineProperty({__proto__:null,IconAdd:Uh,IconAlert:Wh,IconArrowClockwise:Wa,IconArrowDown:Xl,IconArrowSquareDown:jh,IconArrowUp:td,IconCalendarArrowDown:ko,IconChevronLeft:qh,IconClear:Yh,IconCloudArrowDown:ql,IconDelete:Zh,IconDismiss:jn,IconDrafts:Jh,IconEye:Yl,IconEyeOff:Kh,IconFilter:Wl,IconFullScreenMaximize:J0,IconGridDots:Xh,IconMailInboxAdd:Eo,IconNavigation:jl,IconPin:Qh,IconPinOff:ed,IconReset:rd,IconSearch:Ul,IconUser:nd,IconWeatherMoon:Gl,IconWeatherSunny:Hl,OcActionButton:K0,OcAuth:o_,OcBack:s_,OcCircle:l_,OcEcharts:kS,OcError:ES,OcFooter:PS,OcForm:tC,OcHeader:iC,OcImporter:Uv,OcLogin:oC,OcLogo:sC,OcMain:cC,OcMy:fC,OcNumberRoll:Wv,OcReport:hC,OcScan:pC,OcSearchBar:qv,OcSkeleton:gC,OcTable:mC,commonStore:j,fnClearUser:Fu,fnDownload:zv,fnGetUser:$u,fnRenderAction:vn,fnSetLang:Ya,fnSetTheme:Po,fnSetUser:Gv,fnUserLogout:Hv,i18n:un,userStore:F},Symbol.toStringTag,{value:"Module"}));let jv=3840,Xv=2160;const yC=v.reactive({scale:1});function NU(e,t){jv=e,Xv=t}function _C(){let e=1;const t=window.innerWidth,r=window.innerHeight,n=jv,a=Xv,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}yC.scale=e}function DU(){const e=vC(_C,200);return e(),window.addEventListener("resize",e),()=>{jv=3840,Xv=2160,window.removeEventListener("resize",e)}}const AU=e=>!!(F.kind===-1||F.kind===99||F.iot_menu_authorization.includes(e)),MU=e=>F.platform_tdm?F.kind===-1||F.kind===99||e==="home"?!0:F.tdm_menu_authorization.includes(e):!1,kU=e=>F.platform_qms?F.kind===-1||F.kind===99||e==="home"?!0:F.qms_menu_authorization.includes(e):!1,EU=e=>F.platform_twin?(F.kind===-1||F.kind===99||e==="home",!0):!1,PU=e=>!!(F.kind===-1||F.kind===99||F.maintain_menu_authorization.includes(e)),IU=e=>!!(F.kind===-1||F.kind===99||F.order_menu_authorization.includes(e)),LU="2.1.13";let po="";const Se=navigator.userAgent.toLocaleUpperCase(),OU=()=>{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(Se))return"Windows XP";if(t.test(Se))return"Windows 7";if(r.test(Se))return"Windows 8";if(n.test(Se))return"Windows 10";if(a.test(Se))return"Windows 11";if(i.test(Se)){const u=i.exec(Se);return`Android ${u?u[0].split(" ")[1]:""}`}if(o.test(Se)){const c=/OS [\d_]+/.exec(Se);return`iPhone ${c?c[0].split(" ")[1].replace(/_/g,"."):""}`}if(s.test(Se)){const c=/OS [\d_]+/.exec(Se);return`iPad${c?c[0].split(" ")[1].replace(/_/g,"."):""}`}if(l.test(Se)){const c=/ [\d_]+/.exec(Se);return`MAC ${c?c[0].replace(/_/g,".").replace(/ /g,""):""}`}return"Other Platform"},RU=()=>{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(Se)&&o.test(Se))return"SogouIE";if(o.test(Se))return"SogouFast";if(s.test(Se))return"UC";if(l.test(Se))return"Android";if(i.test(Se))return"Opera";if(e.test(Se)){const u=e.exec(Se);return`IE ${u?u[0].split("/")[1]:""}`}if(t.test(Se)){const u=t.exec(Se);return`Edge ${u?u[0].split("/")[1]:""}`}if(n.test(Se)){const u=n.exec(Se);return`Chrome ${u?u[0].split("/")[1]:""}`}if(r.test(Se)){const u=r.exec(Se);return`Firefox ${u?u[0].split("/")[1]:""}`}if(a.test(Se)){const u=a.exec(Se);return`Safari ${u?u[0].split("/")[1]:""}`}return"Others"};function X0(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 BU(e,t,r,n=!1){e.addEventListener(t,r,n)}function VU(){if(!("XMLHttpRequest"in window))return;const e=XMLHttpRequest.prototype;X0(e,"open",t=>function(...r){this.xhr={method:r[0].toUpperCase(),url:r[1],startTime:Date.now(),type:"xhr"},t.apply(this,r)}),X0(e,"send",t=>function(...r){const{url:n}=this.xhr;this.ontimeout=function(){zl(3,n,"Network Timeout")},BU(this,"loadend",function(){try{const a=JSON.parse(this.response);(this.status===500||this.status===405)&&zl(3,n,`${r[0]}-${this.status}-${this.response}`)}catch{}}),t.apply(this,r)})}function $U(e,t){po=typeof t=="string"?t:po,!(!t||!po)&&(VU(),window.addEventListener("error",function(r){zl(1,window.location.href,r)}),window.addEventListener("unhandledrejection",function(r){r.preventDefault()}),e.config.errorHandler=r=>{zl(2,window.location.href,r)})}const zl=(e,t,r)=>{try{if(!F.userId||r&&r.indexOf("ResizeObserver")>-1||r&&r.message&&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:RU(),platform:OU(),system:j.platformName,message:e===1||e===2?r.message:r,user:{userId:F.userId,name:F.name,factoryId:F.factoryId,systemType:F.systemType,tenantLoginCode:F.tenantLoginCode,tenantName:F.tenantName,tenantStatus:F.tenantStatus,userAgent:Se}},a=Kr(n);if(window.navigator.sendBeacon)window.navigator.sendBeacon(po,a);else{const i=document.body;let o=new Image;o.src=po+"?data="+a,o.onload=o.onerror=function(){i.removeChild(o),o=null},i.append(o)}}catch{}};let wC;async function bC(){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 FU(){const e=await bC();wC!==e&&_x(!0)}async function zU(){wC=await bC(),window.versionMonitor&&clearInterval(window.versionMonitor),window.versionMonitor=setInterval(()=>{FU()},60*1e3)}function SC({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=dt("theme",!1),h=dt("lang",f);yx(o),r9(u),mx(c),Ya(h),Po(d),un.global.locale.value=h,l&&zU(),s&&$U(a,s),i.options&&bx(i.options)}}return{version:LU,install:n}}const CC=SC({components:Object.keys(j0).map(e=>j0[e])}),GU=CC.install;exports.CUSTOM=n_;exports.FILE=sd;exports.GET=r_;exports.IconAdd=Uh;exports.IconAlert=Wh;exports.IconArrowClockwise=Wa;exports.IconArrowDown=Xl;exports.IconArrowSquareDown=jh;exports.IconArrowUp=td;exports.IconCalendarArrowDown=ko;exports.IconChevronLeft=qh;exports.IconClear=Yh;exports.IconCloudArrowDown=ql;exports.IconDelete=Zh;exports.IconDismiss=jn;exports.IconDrafts=Jh;exports.IconEye=Yl;exports.IconEyeOff=Kh;exports.IconFilter=Wl;exports.IconFullScreenMaximize=J0;exports.IconGridDots=Xh;exports.IconMailInboxAdd=Eo;exports.IconNavigation=jl;exports.IconPin=Qh;exports.IconPinOff=ed;exports.IconReset=rd;exports.IconSearch=Ul;exports.IconUser=nd;exports.IconWeatherMoon=Gl;exports.IconWeatherSunny=Hl;exports.OcActionButton=K0;exports.OcAuth=o_;exports.OcBack=s_;exports.OcCircle=l_;exports.OcEcharts=kS;exports.OcError=ES;exports.OcFooter=PS;exports.OcForm=tC;exports.OcHeader=iC;exports.OcImporter=Uv;exports.OcLogin=oC;exports.OcLogo=sC;exports.OcMain=cC;exports.OcMy=fC;exports.OcNumberRoll=Wv;exports.OcReport=hC;exports.OcScan=pC;exports.OcSearchBar=qv;exports.OcSkeleton=gC;exports.OcTable=mC;exports.POST=yt;exports.commonStore=j;exports.create=SC;exports.darkTheme=uC;exports.default=CC;exports.fnCancelFetch=t_;exports.fnCheckDashRole=EU;exports.fnCheckIoTRole=AU;exports.fnCheckMaintainRole=PU;exports.fnCheckOrderRole=IU;exports.fnCheckQMSRole=kU;exports.fnCheckTDMRole=MU;exports.fnClearUser=Fu;exports.fnComputedScale=_C;exports.fnDecodeCursor=go;exports.fnDelStorage=ti;exports.fnDeleteLoad=Q0;exports.fnDownload=zv;exports.fnEncodeCursor=Kr;exports.fnFormatTime=Tr;exports.fnFormatUnits=ux;exports.fnFullScreen=lx;exports.fnGetStorage=dt;exports.fnGetUser=$u;exports.fnListenerScale=DU;exports.fnPageModel2Naive=Zl;exports.fnPageNaive2Model=Kl;exports.fnRenderAction=vn;exports.fnScrollTop=Xs;exports.fnSetLang=Ya;exports.fnSetNormalWidthAndHeight=NU;exports.fnSetStorage=wt;exports.fnSetTheme=Po;exports.fnSetUser=Gv;exports.fnThrottle=sx;exports.fnUserLogout=Hv;exports.getDefaultDate=Ea;exports.i18n=un;exports.install=GU;exports.lightTheme=lC;exports.scaleStore=yC;exports.useDebounceFn=Yv;exports.useLocalStorage=UH;exports.useQuery=WH;exports.useThrottleFn=HH;exports.userStore=F;
|
|
43
|
+
`:"<br/>",m=c.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,f,i[0],i[1],this._tooltipContent,u):this._showTooltipContent(s,m,u,Math.random()+"",i[0],i[1],f,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,a){var o=this._ecModel,i=me(n),s=i.seriesIndex,l=o.getSeriesByIndex(s),u=i.dataModel||l,x=i.dataIndex,c=i.dataType,d=u.getData(c),f=this._renderMode,v=r.positionDefault,g=Vo([d.getItemModel(x),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var m=u.getDataParams(x,c),E=new $u;m.marker=E.makeTooltipMarker("item",ea(m.color),f);var y=jv(u.formatTooltip(x,!1,c)),B=g.get("order"),D=g.get("valueFormatter"),A=y.frag,_=A?Qv(D?H({valueFormatter:D},A):A,E,f,B,o.get("useUTC"),g.get("textStyle")):y.text,C="item_"+u.name+"_"+x;this._showOrMove(g,function(){this._showTooltipContent(g,_,m,C,r.offsetX,r.offsetY,r.position,r.target,E)}),a({type:"showTip",dataIndexInside:x,dataIndex:d.getRawIndex(x),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,a){var o=me(n),i=o.tooltipConfig,s=i.option||{};if(K(s)){var l=s;s={content:l,formatter:l}}var u=[s],x=this._ecModel.getComponent(o.componentMainType,o.componentIndex);x&&u.push(x),u.push({formatter:s.content});var c=r.positionDefault,d=Vo(u,this._tooltipModel,c?{position:c}:null),f=d.get("content"),v=Math.random()+"",g=new $u;this._showOrMove(d,function(){var p=ve(d.get("formatterParams")||{});this._showTooltipContent(d,f,p,v,r.offsetX,r.offsetY,r.position,n,g)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,a,o,i,s,l,u,x){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var c=this._tooltipContent;c.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var f=n,v=this._getNearestPoint([i,s],a,r.get("trigger"),r.get("borderColor")),g=v.color;if(d)if(K(d)){var p=r.ecModel.get("useUTC"),m=Y(a)?a[0]:a,E=m&&m.axisType&&m.axisType.indexOf("time")>=0;f=d,E&&(f=vl(m.axisValue,f,p)),f=o8(f,a,!0)}else if(xe(d)){var y=ne(function(B,D){B===this._ticket&&(c.setContent(D,x,r,g,l),this._updatePosition(r,l,i,s,c,a,u))},this);this._ticket=o,f=d(a,o,y)}else f=d;c.setContent(f,x,r,g,l),c.show(r,g),this._updatePosition(r,l,i,s,c,a,u)}},t.prototype._getNearestPoint=function(r,n,a,o){if(a==="axis"||Y(n))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!Y(n))return{color:o||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,a,o,i,s,l){var u=this._api.getWidth(),x=this._api.getHeight();n=n||r.get("position");var c=i.getSize(),d=r.get("align"),f=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),xe(n)&&(n=n([a,o],s,i.el,v,{viewSize:[u,x],contentSize:c.slice()})),Y(n))a=be(n[0],u),o=be(n[1],x);else if(re(n)){var g=n;g.width=c[0],g.height=c[1];var p=ta(g,{width:u,height:x});a=p.x,o=p.y,d=null,f=null}else if(K(n)&&l){var m=MT(n,v,c,r.get("borderWidth"));a=m[0],o=m[1]}else{var m=NT(a,o,i,u,x,d?null:20,f?null:20);a=m[0],o=m[1]}if(d&&(a-=sm(d)?c[0]/2:d==="right"?c[0]:0),f&&(o-=sm(f)?c[1]/2:f==="bottom"?c[1]:0),Cy(r)){var m=PT(a,o,i,u,x);a=m[0],o=m[1]}i.moveTo(a,o)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var a=this._lastDataByCoordSys,o=this._cbParamsList,i=!!a&&a.length===r.length;return i&&k(a,function(s,l){var u=s.dataByAxis||[],x=r[l]||{},c=x.dataByAxis||[];i=i&&u.length===c.length,i&&k(u,function(d,f){var v=c[f]||{},g=d.seriesDataIndices||[],p=v.seriesDataIndices||[];i=i&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&g.length===p.length,i&&k(g,function(m,E){var y=p[E];i=i&&m.seriesIndex===y.seriesIndex&&m.dataIndex===y.dataIndex}),o&&k(d.seriesDataIndices,function(m){var E=m.seriesIndex,y=n[E],B=o[E];y&&B&&B.data!==y.data&&(i=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!i},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){se.node||!n.getDom()||(C0(this,"_updatePosition"),this._tooltipContent.dispose(),Mc("itemTooltip",n))},t.type="tooltip",t}(Jt);function Vo(e,t,r){var n=t.ecModel,a;r?(a=new ot(r,n,n),a=new ot(t.option,a,n)):a=t;for(var o=e.length-1;o>=0;o--){var i=e[o];i&&(i instanceof ot&&(i=i.get("tooltip",!0)),K(i)&&(i={formatter:i}),i&&(a=new ot(i,a,n)))}return a}function im(e,t){return e.dispatchAction||ne(t.dispatchAction,t)}function NT(e,t,r,n,a,o,i){var s=r.getSize(),l=s[0],u=s[1];return o!=null&&(e+l+o+2>n?e-=l+o:e+=o),i!=null&&(t+u+i>a?t-=u+i:t+=i),[e,t]}function PT(e,t,r,n,a){var o=r.getSize(),i=o[0],s=o[1];return e=Math.min(e+i,n)-i,t=Math.min(t+s,a)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function MT(e,t,r,n){var a=r[0],o=r[1],i=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,x=t.height;switch(e){case"inside":s=t.x+u/2-a/2,l=t.y+x/2-o/2;break;case"top":s=t.x+u/2-a/2,l=t.y-o-i;break;case"bottom":s=t.x+u/2-a/2,l=t.y+x+i;break;case"left":s=t.x-a-i,l=t.y+x/2-o/2;break;case"right":s=t.x+u+i,l=t.y+x/2-o/2}return[s,l]}function sm(e){return e==="center"||e==="middle"}function IT(e,t,r){var n=wf(e).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var o=Oi(t,a,n.get(a),{useDefault:!1,enableAll:!1,enableNone:!1}),i=o.models[0];if(i){var s=r.getViewOfComponentModel(i),l;if(s.group.traverse(function(u){var x=me(u).tooltipConfig;if(x&&x.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:i.componentIndex,el:l}}}}const LT=TT;function OT(e){Er(gy),e.registerComponentModel(gT),e.registerComponentView(LT),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},ft),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},ft)}var RT=function(e){W(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}(Fe),VT=function(e){W(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 o=this.group,i=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=le(r.get("textBaseline"),r.get("textVerticalAlign")),x=new Ze({style:Kt(i,{text:r.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),c=x.getBoundingRect(),d=r.get("subtext"),f=new Ze({style:Kt(s,{text:d,fill:s.getTextColor(),y:c.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),g=r.get("sublink"),p=r.get("triggerEvent",!0);x.silent=!v&&!p,f.silent=!g&&!p,v&&x.on("click",function(){kv(v,"_"+r.get("target"))}),g&&f.on("click",function(){kv(g,"_"+r.get("subtarget"))}),me(x).eventData=me(f).eventData=p?{componentType:"title",componentIndex:r.componentIndex}:null,o.add(x),d&&o.add(f);var m=o.getBoundingRect(),E=r.getBoxLayoutParams();E.width=m.width,E.height=m.height;var y=ta(E,{width:a.getWidth(),height:a.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?y.x+=y.width:l==="center"&&(y.x+=y.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?y.y+=y.height:u==="middle"&&(y.y+=y.height/2),u=u||"top"),o.x=y.x,o.y=y.y,o.markRedraw();var B={align:l,verticalAlign:u};x.setStyle(B),f.setStyle(B),m=o.getBoundingRect();var D=y.margin,A=r.getItemStyle(["color","opacity"]);A.fill=r.get("backgroundColor");var _=new Me({shape:{x:m.x-D[3],y:m.y-D[0],width:m.width+D[1]+D[3],height:m.height+D[0]+D[2],r:r.get("borderRadius")},style:A,subPixelOptimize:!0,silent:!0});o.add(_)}},t.type="title",t}(Jt);function $T(e){e.registerComponentModel(RT),e.registerComponentView(VT)}function zT(e,t){if(!e)return!1;for(var r=Y(e)?e:[e],n=0;n<r.length;n++)if(r[n]&&r[n][t])return!0;return!1}function ks(e){l0(e,"label",["show"])}var Ts=Te(),_y=function(e){W(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(se.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,o){var i=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=Ts(s)[i];if(!l||!l.data){Ts(s)[i]=null;return}u?u._mergeOption(l,n,!0):(o&&ks(l),k(l.data,function(x){x instanceof Array?(ks(x[0]),ks(x[1])):ks(x)}),u=this.createMarkerModelFromSeries(l,this,n),H(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),Ts(s)[i]=u},this)},t.prototype.formatTooltip=function(r,n,a){var o=this.getData(),i=this.getRawValue(r),s=o.getName(r);return ra("section",{header:this.name,blocks:[ra("nameValue",{name:s,value:i,noName:!s,noValue:i==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(r){this._data=r},t.getMarkerModelFromSeries=function(r,n){return Ts(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Fe);er(_y,y8.prototype);const L0=_y;function GT(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function HT(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function Ns(e,t,r,n,a,o){var i=[],s=na(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=Sd(t,l,e),x=t.indicesOfNearest(l,u)[0];i[a]=t.get(r,x),i[o]=t.get(l,x);var c=t.get(n,x),d=vr(t.get(n,x));return d=Math.min(d,20),d>=0&&(i[o]=+i[o].toFixed(d)),[i,c]}var Cx={min:we(Ns,"min"),max:we(Ns,"max"),average:we(Ns,"average"),median:we(Ns,"median")};function lm(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,a=n&&n.dimensions;if(!HT(t)&&!Y(t.coord)&&Y(a)){var o=wy(t,r,n,e);if(t=ve(t),t.type&&Cx[t.type]&&o.baseAxis&&o.valueAxis){var i=pe(a,o.baseAxis.dim),s=pe(a,o.valueAxis.dim),l=Cx[t.type](r,o.baseDataDim,o.valueDataDim,i,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||!Y(a))t.coord=[];else for(var u=t.coord,x=0;x<2;x++)Cx[u[x]]&&(u[x]=Sd(r,r.mapDimension(a[x]),u[x]));return t}}function wy(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(UT(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 UT(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function um(e,t){return e&&e.containData&&t.coord&&!GT(t)?e.containData(t.coord):!0}function WT(e,t){return e?function(r,n,a,o){var i=o<2?r.coord&&r.coord[o]:r.value;return Ua(i,t[o])}:function(r,n,a,o){return Ua(r.value,t[o])}}function Sd(e,t,r){if(r==="average"){var n=0,a=0;return e.each(t,function(o,i){isNaN(o)||(n+=o,a++)}),n/a}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var Bx=Te(),YT=function(e){W(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=ue()},t.prototype.render=function(r,n,a){var o=this,i=this.markerGroupMap;i.each(function(s){Bx(s).keep=!1}),n.eachSeries(function(s){var l=L0.getMarkerModelFromSeries(s,o.type);l&&o.renderSeries(s,l,n,a)}),i.each(function(s){!Bx(s).keep&&o.group.remove(s.group)})},t.prototype.markKeep=function(r){Bx(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var a=this;k(r,function(o){var i=L0.getMarkerModelFromSeries(o,a.type);if(i){var s=i.getData();s.eachItemGraphicEl(function(l){l&&(n?d1(l):Tf(l))})}})},t.type="marker",t}(Jt);const XT=YT;var jT=function(e){W(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}(L0);const ZT=jT;var Ps=Te(),qT=function(e,t,r,n){var a=e.getData(),o;if(Y(n))o=n;else{var i=n.type;if(i==="min"||i==="max"||i==="average"||i==="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=cn(n.yAxis,n.xAxis);else{var u=wy(n,a,t,e);s=u.valueAxis;var x=dE(a,u.valueDataDim);l=Sd(a,x,i)}var c=s.dim==="x"?0:1,d=1-c,f=ve(n),v={coord:[]};f.type=null,f.coord=[],f.coord[d]=-1/0,v.coord[d]=1/0;var g=r.get("precision");g>=0&&Se(l)&&(l=+l.toFixed(Math.min(g,20))),f.coord[c]=v.coord[c]=l,o=[f,v,{type:i,valueIndex:n.valueIndex,value:l}]}else process.env.NODE_ENV!=="production"&&on("Invalid markLine data."),o=[]}var p=[lm(e,o[0]),lm(e,o[1]),H({},o[2])];return p[2].type=p[2].type||null,Ee(p[2],p[0]),Ee(p[2],p[1]),p};function O0(e){return!isNaN(e)&&!isFinite(e)}function xm(e,t,r,n){var a=1-e,o=n.dimensions[e];return O0(t[a])&&O0(r[a])&&t[e]===r[e]&&n.getAxis(o).containData(t[e])}function KT(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(xm(1,r,n,e)||xm(0,r,n,e)))return!0}return um(e,t[0])&&um(e,t[1])}function Ax(e,t,r,n,a){var o=n.coordinateSystem,i=e.getItemModel(t),s,l=be(i.get("x"),a.getWidth()),u=be(i.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 x=o.dimensions,c=e.get(x[0],t),d=e.get(x[1],t);s=o.dataToPoint([c,d])}if(Nl(o,"cartesian2d")){var f=o.getAxis("x"),v=o.getAxis("y"),x=o.dimensions;O0(e.get(x[0],t))?s[0]=f.toGlobalCoord(f.getExtent()[r?0:1]):O0(e.get(x[1],t))&&(s[1]=v.toGlobalCoord(v.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var JT=function(e){W(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(o){var i=L0.getMarkerModelFromSeries(o,"markLine");if(i){var s=i.getData(),l=Ps(i).from,u=Ps(i).to;l.each(function(x){Ax(l,x,!0,o,a),Ax(u,x,!1,o,a)}),s.each(function(x){s.setItemLayout(x,[l.getItemLayout(x),u.getItemLayout(x)])}),this.markerGroupMap.get(o.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,a,o){var i=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,x=u.get(s)||u.set(s,new zS);this.group.add(x.group);var c=QT(i,r,n),d=c.from,f=c.to,v=c.line;Ps(n).from=d,Ps(n).to=f,n.setData(v);var g=n.get("symbol"),p=n.get("symbolSize"),m=n.get("symbolRotate"),E=n.get("symbolOffset");Y(g)||(g=[g,g]),Y(p)||(p=[p,p]),Y(m)||(m=[m,m]),Y(E)||(E=[E,E]),c.from.each(function(B){y(d,B,!0),y(f,B,!1)}),v.each(function(B){var D=v.getItemModel(B).getModel("lineStyle").getLineStyle();v.setItemLayout(B,[d.getItemLayout(B),f.getItemLayout(B)]),D.stroke==null&&(D.stroke=d.getItemVisual(B,"style").fill),v.setItemVisual(B,{fromSymbolKeepAspect:d.getItemVisual(B,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(B,"symbolOffset"),fromSymbolRotate:d.getItemVisual(B,"symbolRotate"),fromSymbolSize:d.getItemVisual(B,"symbolSize"),fromSymbol:d.getItemVisual(B,"symbol"),toSymbolKeepAspect:f.getItemVisual(B,"symbolKeepAspect"),toSymbolOffset:f.getItemVisual(B,"symbolOffset"),toSymbolRotate:f.getItemVisual(B,"symbolRotate"),toSymbolSize:f.getItemVisual(B,"symbolSize"),toSymbol:f.getItemVisual(B,"symbol"),style:D})}),x.updateData(v),c.line.eachItemGraphicEl(function(B){me(B).dataModel=n,B.traverse(function(D){me(D).dataModel=n})});function y(B,D,A){var _=B.getItemModel(D);Ax(B,D,A,r,o);var C=_.getModel("itemStyle").getItemStyle();C.fill==null&&(C.fill=R8(l,"color")),B.setItemVisual(D,{symbolKeepAspect:_.get("symbolKeepAspect"),symbolOffset:le(_.get("symbolOffset",!0),E[A?0:1]),symbolRotate:le(_.get("symbolRotate",!0),m[A?0:1]),symbolSize:le(_.get("symbolSize"),p[A?0:1]),symbol:le(_.get("symbol",!0),g[A?0:1]),style:C})}this.markKeep(x),x.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(XT);function QT(e,t,r){var n;e?n=q(e&&e.dimensions,function(u){var x=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return H(H({},x),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new vi(n,r),o=new vi(n,r),i=new vi([],r),s=q(r.get("data"),we(qT,t,e,r));e&&(s=Qe(s,we(KT,e)));var l=WT(!!e,n);return a.initData(q(s,function(u){return u[0]}),null,l),o.initData(q(s,function(u){return u[1]}),null,l),i.initData(q(s,function(u){return u[2]})),i.hasItemOption=!0,{from:a,to:o,line:i}}const eN=JT;function tN(e){e.registerComponentModel(ZT),e.registerComponentView(eN),e.registerPreprocessor(function(t){zT(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var rN=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"])}},nN=function(e){W(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"]),Y(n)&&k(n,function(o,i){K(o)&&(o={type:o}),n[i]=Ee(o,rN(a,o.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 o=r[a].get("name");if(this.isSelected(o)){this.select(o),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 x;if(l.legendVisualProvider){var c=l.legendVisualProvider,d=c.getAllNames();r.isSeriesFiltered(l)||(a=a.concat(d)),d.length?n=n.concat(d):x=!0}else x=!0;x&&_f(l)&&n.push(l.name)}),this._availableNames=a;var o=this.get("data")||n,i=ue(),s=q(o,function(l){return(K(l)||Se(l))&&(l={name:l}),i.get(l.name)?null:(i.set(l.name,!0),new ot(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 o=this._data;k(o,function(i){n[i.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 o=a.get("name",!0);n.hasOwnProperty(o)||(n[o]=!0),n[o]=!n[o]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&pe(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}(Fe);const Ic=nN;var ba=we,Lc=k,Ms=Oe,aN=function(e){W(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 Ms),this.group.add(this._selectorGroup=new Ms),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 o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var i=r.get("align"),s=r.get("orient");(!i||i==="auto")&&(i=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(i,r,n,a,l,s,u);var x=r.getBoxLayoutParams(),c={width:a.getWidth(),height:a.getHeight()},d=r.get("padding"),f=ta(x,c,d),v=this.layoutInner(r,i,f,o,l,u),g=ta(ge({width:v.width,height:v.height},x),c,d);this.group.x=g.x-v.x,this.group.y=g.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=vT(v,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,o,i,s,l){var u=this.getContentGroup(),x=ue(),c=n.get("selectedMode"),d=[];a.eachRawSeries(function(f){!f.get("legendHoverLink")&&d.push(f.id)}),Lc(n.getData(),function(f,v){var g=f.get("name");if(!this.newlineDisabled&&(g===""||g===`
|
|
44
|
+
`)){var p=new Ms;p.newline=!0,u.add(p);return}var m=a.getSeriesByName(g)[0];if(!x.get(g)){if(m){var E=m.getData(),y=E.getVisual("legendLineStyle")||{},B=E.getVisual("legendIcon"),D=E.getVisual("style"),A=this._createItem(m,g,v,f,n,r,y,D,B,c,o);A.on("click",ba(cm,g,null,o,d)).on("mouseover",ba(Oc,m.name,null,o,d)).on("mouseout",ba(Rc,m.name,null,o,d)),a.ssr&&A.eachChild(function(_){var C=me(_);C.seriesIndex=m.seriesIndex,C.dataIndex=v,C.ssrType="legend"}),x.set(g,!0)}else a.eachRawSeries(function(_){if(!x.get(g)&&_.legendVisualProvider){var C=_.legendVisualProvider;if(!C.containName(g))return;var w=C.indexOfName(g),b=C.getItemVisual(w,"style"),F=C.getItemVisual(w,"legendIcon"),S=Tr(b.fill);S&&S[3]===0&&(S[3]=.2,b=H(H({},b),{fill:tl(S,"rgba")}));var P=this._createItem(_,g,v,f,n,r,{},b,F,c,o);P.on("click",ba(cm,null,g,o,d)).on("mouseover",ba(Oc,null,g,o,d)).on("mouseout",ba(Rc,null,g,o,d)),a.ssr&&P.eachChild(function(T){var N=me(T);N.seriesIndex=_.seriesIndex,N.dataIndex=v,N.ssrType="legend"}),x.set(g,!0)}},this);process.env.NODE_ENV!=="production"&&(x.get(g)||console.warn(g+" series not exists. Legend data should be same with series name or data name."))}},this),i&&this._createSelector(i,n,o,s,l)},t.prototype._createSelector=function(r,n,a,o,i){var s=this.getSelectorGroup();Lc(r,function(u){var x=u.type,c=new Ze({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:x==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(c);var d=n.getModel("selectorLabel"),f=n.getModel(["emphasis","selectorLabel"]);uo(c,{normal:d,emphasis:f},{defaultText:u.title}),x0(c)})},t.prototype._createItem=function(r,n,a,o,i,s,l,u,x,c,d){var f=r.visualDrawType,v=i.get("itemWidth"),g=i.get("itemHeight"),p=i.isSelected(n),m=o.get("symbolRotate"),E=o.get("symbolKeepAspect"),y=o.get("icon");x=y||x||"roundRect";var B=oN(x,o,l,u,f,p,d),D=new Ms,A=o.getModel("textStyle");if(xe(r.getLegendIcon)&&(!y||y==="inherit"))D.add(r.getLegendIcon({itemWidth:v,itemHeight:g,icon:x,iconRotate:m,itemStyle:B.itemStyle,lineStyle:B.lineStyle,symbolKeepAspect:E}));else{var _=y==="inherit"&&r.getData().getVisual("symbol")?m==="inherit"?r.getData().getVisual("symbolRotate"):m:0;D.add(iN({itemWidth:v,itemHeight:g,icon:x,iconRotate:_,itemStyle:B.itemStyle,lineStyle:B.lineStyle,symbolKeepAspect:E}))}var C=s==="left"?v+5:-5,w=s,b=i.get("formatter"),F=n;K(b)&&b?F=b.replace("{name}",n??""):xe(b)&&(F=b(n));var S=p?A.getTextColor():o.get("inactiveColor");D.add(new Ze({style:Kt(A,{text:F,x:C,y:g/2,fill:S,align:w,verticalAlign:"middle"},{inheritColor:S})}));var P=new Me({shape:D.getBoundingRect(),style:{fill:"transparent"}}),T=o.getModel("tooltip");return T.get("show")&&zf({el:P,componentModel:i,itemName:n,itemTooltipOption:T.option}),D.add(P),D.eachChild(function(N){N.silent=!0}),P.silent=!c,this.getContentGroup().add(D),x0(D),D.__legendDataIndex=a,D},t.prototype.layoutInner=function(r,n,a,o,i,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ci(r.get("orient"),l,r.get("itemGap"),a.width,a.height);var x=l.getBoundingRect(),c=[-x.x,-x.y];if(u.markRedraw(),l.markRedraw(),i){ci("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),f=[-d.x,-d.y],v=r.get("selectorButtonGap",!0),g=r.getOrient().index,p=g===0?"width":"height",m=g===0?"height":"width",E=g===0?"y":"x";s==="end"?f[g]+=x[p]+v:c[g]+=d[p]+v,f[1-g]+=x[m]/2-d[m]/2,u.x=f[0],u.y=f[1],l.x=c[0],l.y=c[1];var y={x:0,y:0};return y[p]=x[p]+v+d[p],y[m]=Math.max(x[m],d[m]),y[E]=Math.min(0,d[E]+f[1-g]),y}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Jt);function oN(e,t,r,n,a,o,i){function s(p,m){p.lineWidth==="auto"&&(p.lineWidth=m.lineWidth>0?2:0),Lc(p,function(E,y){p[y]==="inherit"&&(p[y]=m[y])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),x=e.lastIndexOf("empty",0)===0?"fill":"stroke",c=l.getShallow("decal");u.decal=!c||c==="inherit"?n.decal:w0(c,i),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[x]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),f=d.getLineStyle();if(s(f,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),f.stroke==="auto"&&(f.stroke=n.fill),!o){var v=t.get("inactiveBorderWidth"),g=u[x];u.lineWidth=v==="auto"?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),f.stroke=d.get("inactiveColor"),f.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:f}}function iN(e){var t=e.icon||"roundRect",r=Vr(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 cm(e,t,r,n){Rc(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),Oc(e,t,r,n)}function Fy(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 Oc(e,t,r,n){Fy(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function Rc(e,t,r,n){Fy(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}const by=aN;function sN(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 $o(e,t,r){var n={},a=e==="toggleSelected",o;return r.eachComponent("legend",function(i){a&&o!=null?i[o?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?i[e]():(i[e](t.name),o=i.isSelected(t.name));var s=i.getData();k(s,function(l){var u=l.get("name");if(!(u===`
|
|
45
|
+
`||u==="")){var x=i.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&x:n[u]=x}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function lN(e){e.registerAction("legendToggleSelect","legendselectchanged",we($o,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",we($o,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",we($o,"inverseSelect")),e.registerAction("legendSelect","legendselected",we($o,"select")),e.registerAction("legendUnSelect","legendunselected",we($o,"unSelect"))}function Sy(e){e.registerComponentModel(Ic),e.registerComponentView(by),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,sN),e.registerSubTypeDefaulter("legend",function(){return"plain"}),lN(e)}var uN=function(e){W(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 o=Ri(r);e.prototype.init.call(this,r,n,a),fm(this,r,o)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),fm(this,this.option,r)},t.type="legend.scroll",t.defaultOption=hl(Ic.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}(Ic);function fm(e,t,r){var n=e.getOrient(),a=[1,1];a[n.index]=0,Qa(t,r,{type:"box",ignoreSize:!!a})}const xN=uN;var dm=Oe,Dx=["width","height"],_x=["x","y"],cN=function(e){W(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 dm),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new dm)},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,o,i,s,l){var u=this;e.prototype.renderInner.call(this,r,n,a,o,i,s,l);var x=this._controllerGroup,c=n.get("pageIconSize",!0),d=Y(c)?c:[c,c];v("pagePrev",0);var f=n.getModel("pageTextStyle");x.add(new Ze({name:"pageText",style:{text:"xx/xx",fill:f.getTextColor(),font:f.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(g,p){var m=g+"DataIndex",E=$f(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:ne(u._pageGo,u,m,n,o)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});E.name=g,x.add(E)}},t.prototype.layoutInner=function(r,n,a,o,i,s){var l=this.getSelectorGroup(),u=r.getOrient().index,x=Dx[u],c=_x[u],d=Dx[1-u],f=_x[1-u];i&&ci("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),g=l.getBoundingRect(),p=[-g.x,-g.y],m=ve(a);i&&(m[x]=a[x]-g[x]-v);var E=this._layoutContentAndController(r,o,m,u,x,d,f,c);if(i){if(s==="end")p[u]+=E[x]+v;else{var y=g[x]+v;p[u]-=y,E[c]-=y}E[x]+=g[x]+v,p[1-u]+=E[f]+E[d]/2-g[d]/2,E[d]=Math.max(E[d],g[d]),E[f]=Math.min(E[f],g[f]+p[1-u]),l.x=p[0],l.y=p[1],l.markRedraw()}return E},t.prototype._layoutContentAndController=function(r,n,a,o,i,s,l,u){var x=this.getContentGroup(),c=this._containerGroup,d=this._controllerGroup;ci(r.get("orient"),x,r.get("itemGap"),o?a.width:null,o?null:a.height),ci("horizontal",d,r.get("pageButtonItemGap",!0));var f=x.getBoundingRect(),v=d.getBoundingRect(),g=this._showController=f[i]>a[i],p=[-f.x,-f.y];n||(p[o]=x[u]);var m=[0,0],E=[-v.x,-v.y],y=le(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(g){var B=r.get("pageButtonPosition",!0);B==="end"?E[o]+=a[i]-v[i]:m[o]+=v[i]+y}E[1-o]+=f[s]/2-v[s]/2,x.setPosition(p),c.setPosition(m),d.setPosition(E);var D={x:0,y:0};if(D[i]=g?a[i]:f[i],D[s]=Math.max(f[s],v[s]),D[l]=Math.min(0,v[l]+E[1-o]),c.__rectSize=a[i],g){var A={x:0,y:0};A[i]=Math.max(a[i]-v[i]-y,0),A[s]=D[s],c.setClipPath(new Me({shape:A})),c.__rectSize=A[i]}else d.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var _=this._getPageInfo(r);return _.pageIndex!=null&&st(x,{x:_.contentPosition[0],y:_.contentPosition[1]},g?r:null),this._updatePageInfoView(r,_),D},t.prototype._pageGo=function(r,n,a){var o=this._getPageInfo(n)[r];o!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var a=this._controllerGroup;k(["pagePrev","pageNext"],function(x){var c=x+"DataIndex",d=n[c]!=null,f=a.childOfName(x);f&&(f.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),f.cursor=d?"pointer":"default")});var o=a.childOfName("pageText"),i=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;o&&i&&o.setStyle("text",K(i)?i.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):i({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),a=this.getContentGroup(),o=this._containerGroup.__rectSize,i=r.getOrient().index,s=Dx[i],l=_x[i],u=this._findTargetItemIndex(n),x=a.children(),c=x[u],d=x.length,f=d?1:0,v={contentPosition:[a.x,a.y],pageCount:f,pageIndex:f-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!c)return v;var g=B(c);v.contentPosition[i]=-g.s;for(var p=u+1,m=g,E=g,y=null;p<=d;++p)y=B(x[p]),(!y&&E.e>m.s+o||y&&!D(y,m.s))&&(E.i>m.i?m=E:m=y,m&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=m.i),++v.pageCount)),E=y;for(var p=u-1,m=g,E=g,y=null;p>=-1;--p)y=B(x[p]),(!y||!D(E,y.s))&&m.i<E.i&&(E=m,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=m.i),++v.pageCount,++v.pageIndex),m=y;return v;function B(A){if(A){var _=A.getBoundingRect(),C=_[l]+A[l];return{s:C,e:C+_[s],i:A.__legendDataIndex}}}function D(A,_){return A.e>=_&&A.s<=_+o}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,a=this.getContentGroup(),o;return a.eachChild(function(i,s){var l=i.__legendDataIndex;o==null&&l!=null&&(o=s),l===r&&(n=s)}),n??o},t.type="legend.scroll",t}(by);const fN=cN;function dN(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 hN(e){Er(Sy),e.registerComponentModel(xN),e.registerComponentView(fN),dN(e)}function vN(e){Er(Sy),Er(hN)}var pN=function(e){W(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=hl(I0.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(I0);const gN=pN;var kd=Te();function mN(e,t,r){kd(e).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=r)})}function EN(e,t){for(var r=kd(e).coordSysRecordMap,n=r.keys(),a=0;a<n.length;a++){var o=n[a],i=r.get(o),s=i.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||ky(r,i))}}}function ky(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function yN(e,t){var r={model:t,containsPoint:we(BN,t),dispatchAction:we(CN,e),dataZoomInfoMap:null,controller:null},n=r.controller=new MS(e.getZr());return k(["pan","zoom","scrollMove"],function(a){n.on(a,function(o){var i=[];r.dataZoomInfoMap.each(function(s){if(o.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[a],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,o);!s.model.get("disabled",!0)&&u&&i.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),i.length&&r.dispatchAction(i)})}),r}function CN(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function BN(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function AN(e){var t,r="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},a=!0;return e.each(function(o){var i=o.model,s=i.get("disabled",!0)?!1:i.get("zoomLock",!0)?"move":!0;n[r+s]>n[r+t]&&(t=s),a=a&&i.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!a}}}function DN(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=kd(r),a=n.coordSysRecordMap||(n.coordSysRecordMap=ue());a.each(function(o){o.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){var i=my(o);k(i.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,yN(r,s.model)),x=u.dataZoomInfoMap||(u.dataZoomInfoMap=ue());x.set(o.uid,{dzReferCoordSysInfo:s,model:o,getRange:null})})}),a.each(function(o){var i=o.controller,s,l=o.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){ky(a,o);return}var x=AN(l);i.enable(x.controlType,x.opt),i.setPointerChecker(o.containsPoint),Dl(o,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var _N=function(e){W(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(),mN(a,r,{pan:ne(Fx.pan,this),zoom:ne(Fx.zoom,this),scrollMove:ne(Fx.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){EN(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(Ey),Fx={zoom:function(e,t,r,n){var a=this.range,o=a.slice(),i=e.axisModels[0];if(i){var s=bx[t](null,[n.originX,n.originY],i,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/n.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var x=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Pl(0,o,[0,100],0,x.minSpan,x.maxSpan),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}},pan:hm(function(e,t,r,n,a,o){var i=bx[n]([o.oldX,o.oldY],[o.newX,o.newY],t,a,r);return i.signal*(e[1]-e[0])*i.pixel/i.pixelLength}),scrollMove:hm(function(e,t,r,n,a,o){var i=bx[n]([0,0],[o.scrollDelta,o.scrollDelta],t,a,r);return i.signal*(e[1]-e[0])*o.scrollDelta})};function hm(e){return function(t,r,n,a){var o=this.range,i=o.slice(),s=t.axisModels[0];if(s){var l=e(i,s,t,r,n,a);if(Pl(l,i,[0,100],"all"),this.range=i,o[0]!==i[0]||o[1]!==i[1])return i}}}var bx={grid:function(e,t,r,n,a){var o=r.axis,i={},s=a.model.coordinateSystem.getRect();return e=e||[0,0],o.dim==="x"?(i.pixel=t[0]-e[0],i.pixelLength=s.width,i.pixelStart=s.x,i.signal=o.inverse?1:-1):(i.pixel=t[1]-e[1],i.pixelLength=s.height,i.pixelStart=s.y,i.signal=o.inverse?-1:1),i},polar:function(e,t,r,n,a){var o=r.axis,i={},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"?(i.pixel=t[0]-e[0],i.pixelLength=l[1]-l[0],i.pixelStart=l[0],i.signal=o.inverse?1:-1):(i.pixel=t[1]-e[1],i.pixelLength=u[1]-u[0],i.pixelStart=u[0],i.signal=o.inverse?-1:1),i},singleAxis:function(e,t,r,n,a){var o=r.axis,i=a.model.coordinateSystem.getRect(),s={};return e=e||[0,0],o.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=i.width,s.pixelStart=i.x,s.signal=o.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=i.height,s.pixelStart=i.y,s.signal=o.inverse?-1:1),s}};const wN=_N;function FN(e){yy(e),e.registerComponentModel(gN),e.registerComponentView(wN),DN(e)}var bN=function(e){W(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=hl(I0.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}(I0);const SN=bN;var zo=Me,vm=7,kN=1,Sx=30,TN=7,Go="horizontal",pm="vertical",NN=5,PN=["line","bar","candlestick","scatter"],MN={easing:"cubicOut",duration:100,delay:0},IN=function(e){W(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=ne(this._onBrush,this),this._onBrushEnd=ne(this._onBrushEnd,this)},t.prototype.render=function(r,n,a,o){if(e.prototype.render.apply(this,arguments),Dl(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}(!o||o.type!=="dataZoom"||o.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){C0(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 Oe;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"),o=a?TN:0,i=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Go?{right:s.width-i.x-i.width,top:s.height-Sx-vm-o,width:i.width,height:Sx}:{right:vm,top:i.y,width:Sx,height:i.height},u=Ri(r.option);k(["right","top","width","height"],function(c){u[c]==="ph"&&(u[c]=l[c])});var x=ta(u,s);this._location={x:x.x,y:x.y},this._size=[x.width,x.height],this._orient===pm&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,a=this._orient,o=this.dataZoomModel.getFirstTargetAxisModel(),i=o&&o.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(a===Go&&!i?{scaleY:l?1:-1,scaleX:1}:a===Go&&i?{scaleY:l?1:-1,scaleX:-1}:a===pm&&!i?{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,o=r.get("brushSelect");a.add(new zo({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var i=new zo({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:ne(this._onClickPanel,this)}),s=this.api.getZr();o?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),a.add(i)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,a=this._shadowSize||[],o=r.series,i=o.getRawData(),s=o.getShadowDim&&o.getShadowDim(),l=s&&i.getDimensionInfo(s)?o.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,x=this._shadowPolylinePts;if(i!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var c=i.getDataExtent(l),d=(c[1]-c[0])*.3;c=[c[0]-d,c[1]+d];var f=[0,n[1]],v=[0,n[0]],g=[[n[0],0],[0,0]],p=[],m=v[1]/(i.count()-1),E=0,y=Math.round(i.count()/n[0]),B;i.each([l],function(w,b){if(y>0&&b%y){E+=m;return}var F=w==null||isNaN(w)||w==="",S=F?0:Ke(w,c,f,!0);F&&!B&&b?(g.push([g[g.length-1][0],0]),p.push([p[p.length-1][0],0])):!F&&B&&(g.push([E,0]),p.push([E,0])),g.push([E,S]),p.push([E,S]),E+=m,B=F}),u=this._shadowPolygonPts=g,x=this._shadowPolylinePts=p}this._shadowData=i,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var D=this.dataZoomModel;function A(w){var b=D.getModel(w?"selectedDataBackground":"dataBackground"),F=new Oe,S=new Mf({shape:{points:u},segmentIgnoreThreshold:1,style:b.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new so({shape:{points:x},segmentIgnoreThreshold:1,style:b.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return F.add(S),F.add(P),F}for(var _=0;_<3;_++){var C=A(_===1);this._displayables.sliderGroup.add(C),this._displayables.dataShadowSegs.push(C)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var a,o=this.ecModel;return r.eachTargetAxis(function(i,s){var l=r.getAxisProxy(i,s).getTargetSeriesModels();k(l,function(u){if(!a&&!(n!==!0&&pe(PN,u.get("type"))<0)){var x=o.getComponent(an(i),s).axis,c=LN(i),d,f=u.coordinateSystem;c!=null&&f.getOtherAxis&&(d=f.getOtherAxis(x).inverse),c=u.getData().mapDimension(c),a={thisAxis:x,series:u,thisDim:i,otherDim:c,otherAxisInverse:d}}},this)},this),a}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,a=n.handles=[null,null],o=n.handleLabels=[null,null],i=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,x=l.get("borderRadius")||0,c=l.get("brushSelect"),d=n.filler=new zo({silent:c,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});i.add(d),i.add(new zo({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:x},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:kN,fill:"rgba(0,0,0,0)"}})),k([0,1],function(y){var B=l.get("handleIcon");!A0[B]&&B.indexOf("path://")<0&&B.indexOf("image://")<0&&(B="path://"+B,process.env.NODE_ENV!=="production"&&qt("handleIcon now needs 'path://' prefix when using a path string"));var D=Vr(B,-1,0,2,2,null,!0);D.attr({cursor:gm(this._orient),draggable:!0,drift:ne(this._onDragMove,this,y),ondragend:ne(this._onDragEnd,this),onmouseover:ne(this._showDataInfo,this,!0),onmouseout:ne(this._showDataInfo,this,!1),z2:5});var A=D.getBoundingRect(),_=l.get("handleSize");this._handleHeight=be(_,this._size[1]),this._handleWidth=A.width/A.height*this._handleHeight,D.setStyle(l.getModel("handleStyle").getItemStyle()),D.style.strokeNoScale=!0,D.rectHover=!0,D.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),x0(D);var C=l.get("handleColor");C!=null&&(D.style.fill=C),i.add(a[y]=D);var w=l.getModel("textStyle");r.add(o[y]=new Ze({silent:!0,invisible:!0,style:Kt(w,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:w.getTextColor(),font:w.getFont()}),z2:10}))},this);var f=d;if(c){var v=be(l.get("moveHandleSize"),s[1]),g=n.moveHandle=new Me({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),p=v*.8,m=n.moveHandleIcon=Vr(l.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);m.silent=!0,m.y=s[1]+v/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var E=Math.min(s[1]/2,Math.max(v,10));f=n.moveZone=new Me({invisible:!0,shape:{y:s[1]-E,height:v+E}}),f.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),i.add(g),i.add(m),i.add(f)}f.attr({draggable:!0,cursor:gm(this._orient),drift:ne(this._onDragMove,this,"all"),ondragstart:ne(this._showDataInfo,this,!0),ondragend:ne(this._onDragEnd,this),onmouseover:ne(this._showDataInfo,this,!0),onmouseout:ne(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Ke(r[0],[0,100],n,!0),Ke(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var a=this.dataZoomModel,o=this._handleEnds,i=this._getViewExtent(),s=a.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Pl(n,o,i,a.get("zoomLock")?"all":r,s.minSpan!=null?Ke(s.minSpan,l,i,!0):null,s.maxSpan!=null?Ke(s.maxSpan,l,i,!0):null);var u=this._range,x=this._range=jo([Ke(o[0],i,l,!0),Ke(o[1],i,l,!0)]);return!u||u[0]!==x[0]||u[1]!==x[1]},t.prototype._updateView=function(r){var n=this._displayables,a=this._handleEnds,o=jo(a.slice()),i=this._size;k([0,1],function(f){var v=n.handles[f],g=this._handleHeight;v.attr({scaleX:g/2,scaleY:g/2,x:a[f]+(f?-1:1),y:i[1]/2-g/2})},this),n.filler.setShape({x:o[0],y:0,width:o[1]-o[0],height:i[1]});var s={x:o[0],width:o[1]-o[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,o[0],o[1],i[0]],x=0;x<l.length;x++){var c=l[x],d=c.getClipPath();d||(d=new Me,c.setClipPath(d)),d.setShape({x:u[x],y:0,width:u[x+1]-u[x],height:i[1]})}this._updateDataInfo(r)},t.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,a=this._displayables,o=a.handleLabels,i=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,x=this._range,c=r?l.calculateDataWindow({start:x[0],end:x[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(c[0],u),this._formatLabel(c[1],u)]}}var d=jo(this._handleEnds.slice());f.call(this,0),f.call(this,1);function f(v){var g=$1(a.handles[v].parent,this.group),p=z1(v===0?"right":"left",g),m=this._handleWidth/2+NN,E=Ai([d[v]+(v===0?-m:m),this._size[1]/2],g);o[v].setStyle({x:E[0],y:E[1],verticalAlign:i===Go?"middle":p,align:i===Go?p:"center",text:s[v]})}},t.prototype._formatLabel=function(r,n){var a=this.dataZoomModel,o=a.get("labelFormatter"),i=a.get("labelPrecision");(i==null||i==="auto")&&(i=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(i,20));return xe(o)?o(r,s):K(o)?o.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,o){this._dragging=!0,qa(o.event);var i=this._displayables.sliderGroup.getLocalTransform(),s=Ai([n,a],i,!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 o=this._handleEnds,i=(o[0]+o[1])/2,s=this._updateInterval("all",a[0]-i);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,a=r.offsetY;this._brushStart=new fe(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,o=+new Date;if(!(o-this._brushStartTime<200&&Math.abs(a.width)<5)){var i=this._getViewExtent(),s=[0,100];this._range=jo([Ke(a.x,i,s,!0),Ke(a.x+a.width,i,s,!0)]),this._handleEnds=[a.x,a.x+a.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(qa(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var a=this._displayables,o=this.dataZoomModel,i=a.brushRect;i||(i=a.brushRect=new zo({silent:!0,style:o.getModel("brushStyle").getItemStyle()}),a.sliderGroup.add(i)),i.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),x=l.transformCoordToLocal(s.x,s.y),c=this._size;u[0]=Math.max(Math.min(c[0],u[0]),0),i.setShape({x:x[0],y:0,width:u[0]-x[0],height:c[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?MN:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=my(this.dataZoomModel).infoList;if(!r&&n.length){var a=n[0].model.coordinateSystem;r=a.getRect&&a.getRect()}if(!r){var o=this.api.getWidth(),i=this.api.getHeight();r={x:o*.2,y:i*.2,width:o*.6,height:i*.6}}return r},t.type="dataZoom.slider",t}(Ey);function LN(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function gm(e){return e==="vertical"?"ns-resize":"ew-resize"}const ON=IN;function RN(e){e.registerComponentModel(SN),e.registerComponentView(ON),yy(e)}function VN(e){Er(FN),Er(RN)}function mm(e,t,r){var n=ao.createCanvas(),a=t.getWidth(),o=t.getHeight(),i=n.style;return i&&(i.position="absolute",i.left="0",i.top="0",i.width=a+"px",i.height=o+"px",n.setAttribute("data-zr-dom-id",e)),n.width=a*r,n.height=o*r,n}var $N=function(e){W(t,e);function t(r,n,a){var o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null;var i;a=a||n0,typeof r=="string"?i=mm(r,n,a):re(r)&&(i=r,r=i.id),o.id=r,o.dom=i;var s=i.style;return s&&(p9(i),i.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=n,o.dpr=a,o}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=mm("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,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i=[],s=this.maxRepaintRectCount,l=!1,u=new Ae(0,0,0,0);function x(E){if(!(!E.isFinite()||E.isZero()))if(i.length===0){var y=new Ae(0,0,0,0);y.copy(E),i.push(y)}else{for(var B=!1,D=1/0,A=0,_=0;_<i.length;++_){var C=i[_];if(C.intersect(E)){var w=new Ae(0,0,0,0);w.copy(C),w.union(E),i[_]=w,B=!0;break}else if(l){u.copy(E),u.union(C);var b=E.width*E.height,F=C.width*C.height,S=u.width*u.height,P=S-b-F;P<D&&(D=P,A=_)}}if(l&&(i[A].union(E),B=!0),!B){var y=new Ae(0,0,0,0);y.copy(E),i.push(y)}l||(l=i.length>=s)}}for(var c=this.__startIndex;c<this.__endIndex;++c){var d=r[c];if(d){var f=d.shouldBePainted(a,o,!0,!0),v=d.__isRendered&&(d.__dirty&wt||!f)?d.getPrevPaintRect():null;v&&x(v);var g=f&&(d.__dirty&wt||!d.__isRendered)?d.getPaintRect():null;g&&x(g)}}for(var c=this.__prevStartIndex;c<this.__prevEndIndex;++c){var d=n[c],f=d&&d.shouldBePainted(a,o,!0,!0);if(d&&(!f||!d.__zr)&&d.__isRendered){var v=d.getPrevPaintRect();v&&x(v)}}var p;do{p=!1;for(var c=0;c<i.length;){if(i[c].isZero()){i.splice(c,1);continue}for(var m=c+1;m<i.length;)i[c].intersect(i[m])?(p=!0,i[c].union(i[m]),i.splice(m,1)):m++;c++}}while(p);return this._paintRects=i,i},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var a=this.dpr,o=this.dom,i=o.style,s=this.domBack;i&&(i.width=r+"px",i.height=n+"px"),o.width=r*a,o.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 o=this.dom,i=this.ctx,s=o.width,l=o.height;n=n||this.clearColor;var u=this.motionBlur&&!r,x=this.lastFrameAlpha,c=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/c,l/c));var f=this.domBack;function v(g,p,m,E){if(i.clearRect(g,p,m,E),n&&n!=="transparent"){var y=void 0;if(Q0(n)){var B=n.global||n.__width===m&&n.__height===E;y=B&&n.__canvasGradient||gc(i,n,{x:0,y:0,width:m,height:E}),n.__canvasGradient=y,n.__width=m,n.__height=E}else tB(n)&&(n.scaleX=n.scaleX||c,n.scaleY=n.scaleY||c,y=mc(i,n,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));i.save(),i.fillStyle=y||n,i.fillRect(g,p,m,E),i.restore()}u&&(i.save(),i.globalAlpha=x,i.drawImage(f,g,p,m,E),i.restore())}!a||u?v(0,0,s,l):a.length&&k(a,function(g){v(g.x*c,g.y*c,g.width*c,g.height*c)})},t}(tr);const kx=$N;var Em=1e5,Vn=314159,Is=.01,zN=.001;function GN(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function HN(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 UN=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 o=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=H({},n||{}),this.dpr=n.devicePixelRatio||n0,this._singleCanvas=o,this.root=t;var i=t.style;i&&(p9(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(o){var x=t,c=x.width,d=x.height;n.width!=null&&(c=n.width),n.height!=null&&(d=n.height),this.dpr=n.devicePixelRatio||1,x.width=c*this.dpr,x.height=d*this.dpr,this._width=c,this._height=d;var f=new kx(x,this,this.dpr);f.__builtin__=!0,f.initContext(),l[Vn]=f,f.zlevel=Vn,s.push(Vn),this._domRoot=t}else{this._width=gs(t,0,n),this._height=gs(t,1,n);var u=this._domRoot=HN(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 o=0;o<a.length;o++){var i=a[o],s=this._layers[i];if(!s.__builtin__&&s.refresh){var l=o===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},o,i=0;i<r;i++){var s=t[i];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(Em)),o||(o=n.ctx,o.save()),Un(o,s,a,i===r-1))}o&&o.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(Em)},e.prototype.paintOne=function(t,r){G8(t,r)},e.prototype._paintList=function(t,r,n,a){if(this._redrawId===a){n=n||!1,this._updateLayerStatus(t);var o=this._doPaintList(t,r,n),i=o.finished,s=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),i)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;Gx(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,o=[],i=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)&&o.push(u)}for(var x=!0,c=!1,d=function(g){var p=o[g],m=p.ctx,E=i&&p.createRepaintRects(t,r,f._width,f._height),y=n?p.__startIndex:p.__drawIndex,B=!n&&p.incremental&&Date.now,D=B&&Date.now(),A=p.zlevel===f._zlevelList[0]?f._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,A,E);else if(y===p.__startIndex){var _=t[y];(!_.incremental||!_.notClear||n)&&p.clear(!1,A,E)}y===-1&&(console.error("For some unknown reason. drawIndex is -1"),y=p.__startIndex);var C,w=function(P){var T={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(C=y;C<p.__endIndex;C++){var N=t[C];if(N.__inHover&&(c=!0),a._doPaintEl(N,p,i,P,T,C===p.__endIndex-1),B){var M=Date.now()-D;if(M>15)break}}T.prevElClipPaths&&m.restore()};if(E)if(E.length===0)C=p.__endIndex;else for(var b=f.dpr,F=0;F<E.length;++F){var S=E[F];m.save(),m.beginPath(),m.rect(S.x*b,S.y*b,S.width*b,S.height*b),m.clip(),w(S),m.restore()}else m.save(),w(),m.restore();p.__drawIndex=C,p.__drawIndex<p.__endIndex&&(x=!1)},f=this,v=0;v<o.length;v++)d(v);return se.wxa&&k(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:x,needsRefreshHover:c}},e.prototype._doPaintEl=function(t,r,n,a,o,i){var s=r.ctx;if(n){var l=t.getPaintRect();(!a||l&&l.intersect(a))&&(Un(s,t,o,i),t.setPrevPaintRect(l))}else Un(s,t,o,i)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Vn);var n=this._layers[t];return n||(n=new kx("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?Ee(n,this._layerConfig[t],!0):this._layerConfig[t-Is]&&Ee(n,this._layerConfig[t-Is],!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,o=a.length,i=this._domRoot,s=null,l=-1;if(n[t]){process.env.NODE_ENV!=="production"&&on("ZLevel "+t+" has been used already");return}if(!GN(r)){process.env.NODE_ENV!=="production"&&on("Layer of zlevel "+t+" is not valid");return}if(o>0&&t>a[0]){for(l=0;l<o-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?i.insertBefore(r.dom,u.nextSibling):i.appendChild(r.dom)}else i.firstChild?i.insertBefore(r.dom,i.firstChild):i.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 o=n[a];t.call(r,this._layers[o],o)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var o=n[a],i=this._layers[o];i.__builtin__&&t.call(r,i,o)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,a=0;a<n.length;a++){var o=n[a],i=this._layers[o];i.__builtin__||t.call(r,i,o)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(c,d){c.__dirty=c.__used=!1});function r(c){o&&(o.__endIndex!==c&&(o.__dirty=!0),o.__endIndex=c)}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 o=null,i=0,s,l;for(l=0;l<t.length;l++){var a=t[l],u=a.zlevel,x=void 0;s!==u&&(s=u,i=0),a.incremental?(x=this.getLayer(u+zN,this._needsManuallyCompositing),x.incremental=!0,i=1):x=this.getLayer(u+(i>0?Is:0),this._needsManuallyCompositing),x.__builtin__||on("ZLevel "+u+" has been used by unkown layer "+x.id),x!==o&&(x.__used=!0,x.__startIndex!==l&&(x.__dirty=!0),x.__startIndex=l,x.incremental?x.__drawIndex=-1:x.__drawIndex=l,r(l),o=x),a.__dirty&wt&&!a.__inHover&&(x.__dirty=!0,x.incremental&&x.__drawIndex<0&&(x.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(c,d){!c.__used&&c.getElementCount()>0&&(c.__dirty=!0,c.__startIndex=c.__endIndex=c.__drawIndex=0),c.__dirty&&c.__drawIndex<0&&(c.__drawIndex=c.__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]?Ee(n[t],r,!0):n[t]=r;for(var a=0;a<this._zlevelList.length;a++){var o=this._zlevelList[a];if(o===t||o===t+Is){var i=this._layers[o];Ee(i,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(pe(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,o=this.root;if(t!=null&&(a.width=t),r!=null&&(a.height=r),t=gs(o,0,a),r=gs(o,1,a),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var i in this._layers)this._layers.hasOwnProperty(i)&&this._layers[i].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 kx("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,o=r.dom.height;this.eachLayer(function(c){c.__builtin__?n.drawImage(c.dom,0,0,a,o):c.renderToCanvas&&(n.save(),c.renderToCanvas(n),n.restore())})}else for(var i={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var x=s[l];Un(n,x,i,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const WN=UN;function YN(e){e.registerPainter("canvas",WN)}const XN={color:["#8e54c8","#fe9546","#4895ef","#56bd0d","#ffd500","#cc3195","#086470","#f0d22b","#7eb7ca","#ff90b3","#b571fb","#ffba7a","#4cc9f0","#68de14","#ffee32","#f72585","#1594a5","#f2d740","#78fecf","#ffadcf"],backgroundColor:"transparent",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"}}}},jN={color:["#8e54c8","#fe9546","#4895ef","#56bd0d","#ffd500","#cc3195","#086470","#f0d22b","#7eb7ca","#ff90b3","#b571fb","#ffba7a","#4cc9f0","#68de14","#ffee32","#f72585","#1594a5","#f2d740","#78fecf","#ffadcf"],backgroundColor:"transparent",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"}}}};Fl("white",XN);Fl("dark",jN);Er([Pb,pb,Zb,kk,$T,OT,oT,YN,vN,VN,tN]);const ZN={display:"flex",flexDirection:"column",width:"100%",height:"100%"},xr=new WeakMap,Ty=h.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(()=>J.theme,()=>{this.dispose(),this.init()}),this.init()},created(){window.onload=()=>{xr.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:J.theme?"dark":"white",a=d3(e,n,{renderer:t,devicePixelRatio:window.devicePixelRatio});xr.set(this,a),r(xr.get(this))})})},setOption(){if(!xr.get(this))return;const e=this.notMerge,t=this.lazyUpdate,r=this.silent,n=this.options,a=xr.get(this);a==null||a.setOption(n,{notMerge:e,lazyUpdate:t,silent:r})},resizeChart(){this.$nextTick(()=>{var e;(e=xr.get(this))==null||e.resize()})},getInstance(){return xr.get(this)},dispose(){var e;this.resizeAble&&window.removeEventListener("resize",this.resizeChart),(e=xr.get(this))==null||e.dispose(),xr.set(this,null),xr.delete(this)},bindEvents(e,t){const r=(n,a)=>{typeof n=="string"&&typeof a=="function"&&e.on(n,o=>{a(o,e)})};for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&r(n,t[n])}},render(){const{style:e}=this,t=Object.assign({},ZN,e||{});return h.h("div",{style:t})}}),qN=h.defineComponent({name:"OcError",components:{NButton:R.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=h.ref({img:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/404.jpg",txt:"404",title:"404 页面走丢了",title2:"Something's missing."}),n=()=>{wr.push(J.platformUrl)},a=h.ref();return h.onMounted(()=>{r.value=t[e.type],a.value=setInterval(()=>{wr.push(J.platformUrl)},3e3)}),h.onBeforeUnmount(()=>{clearInterval(a.value)}),{goBack:n,content:r}}}),KN={class:"com-card flex-center oc-error"},JN=["src","alt"],QN={class:"oc-miss-txt"},eP={class:"oc-miss-title"},tP={class:"oc-miss-title2"};function rP(e,t,r,n,a,o){const i=h.resolveComponent("NButton");return h.openBlock(),h.createElementBlock("div",KN,[h.createElementVNode("img",{src:e.content.img,alt:e.content.txt,width:"360"},null,8,JN),h.createElementVNode("div",QN,h.toDisplayString(e.content.txt),1),h.createElementVNode("p",eP,h.toDisplayString(e.content.title),1),h.createElementVNode("p",tP,h.toDisplayString(e.content.title2),1),h.createVNode(i,{tertiary:"",onClick:e.goBack},{default:h.withCtx(()=>[h.createTextVNode("返回首页")]),_:1},8,["onClick"])])}const Ny=ae(qN,[["render",rP]]),nP=h.defineComponent({name:"OcFooter",props:{version:{type:String,default:""}}}),aP={class:"oc-footer"},oP=h.createElementVNode("span",{style:{"font-family":"Arial, Helvetica, sans-serif"}},"©",-1),iP=h.createElementVNode("a",{href:"https://beian.miit.gov.cn/",target:"_blank",class:"oc-footer-record"}," 沪ICP备 18025935号-3 ",-1);function sP(e,t,r,n,a,o){return h.openBlock(),h.createElementBlock("footer",aP,[h.createTextVNode(" Copyright "),oP,h.createTextVNode(" 2020-2024 "+h.toDisplayString(e.$t("Common.title"))+" ",1),e.version?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[h.createTextVNode("v"+h.toDisplayString(e.version)+" ",1)],64)):h.createCommentVNode("",!0),iP])}const Py=ae(nP,[["render",sP]]);var ei=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ml(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function lP(){this.__data__=[],this.size=0}var uP=lP;function xP(e,t){return e===t||e!==e&&t!==t}var My=xP,cP=My;function fP(e,t){for(var r=e.length;r--;)if(cP(e[r][0],t))return r;return-1}var Il=fP,dP=Il,hP=Array.prototype,vP=hP.splice;function pP(e){var t=this.__data__,r=dP(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():vP.call(t,r,1),--this.size,!0}var gP=pP,mP=Il;function EP(e){var t=this.__data__,r=mP(t,e);return r<0?void 0:t[r][1]}var yP=EP,CP=Il;function BP(e){return CP(this.__data__,e)>-1}var AP=BP,DP=Il;function _P(e,t){var r=this.__data__,n=DP(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var wP=_P,FP=uP,bP=gP,SP=yP,kP=AP,TP=wP;function fo(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])}}fo.prototype.clear=FP;fo.prototype.delete=bP;fo.prototype.get=SP;fo.prototype.has=kP;fo.prototype.set=TP;var Ll=fo,NP=Ll;function PP(){this.__data__=new NP,this.size=0}var MP=PP;function IP(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var LP=IP;function OP(e){return this.__data__.get(e)}var RP=OP;function VP(e){return this.__data__.has(e)}var $P=VP,zP=typeof ei=="object"&&ei&&ei.Object===Object&&ei,Iy=zP,GP=Iy,HP=typeof self=="object"&&self&&self.Object===Object&&self,UP=GP||HP||Function("return this")(),ar=UP,WP=ar,YP=WP.Symbol,Td=YP,ym=Td,Ly=Object.prototype,XP=Ly.hasOwnProperty,jP=Ly.toString,Ho=ym?ym.toStringTag:void 0;function ZP(e){var t=XP.call(e,Ho),r=e[Ho];try{e[Ho]=void 0;var n=!0}catch{}var a=jP.call(e);return n&&(t?e[Ho]=r:delete e[Ho]),a}var qP=ZP,KP=Object.prototype,JP=KP.toString;function QP(e){return JP.call(e)}var eM=QP,Cm=Td,tM=qP,rM=eM,nM="[object Null]",aM="[object Undefined]",Bm=Cm?Cm.toStringTag:void 0;function oM(e){return e==null?e===void 0?aM:nM:Bm&&Bm in Object(e)?tM(e):rM(e)}var zi=oM;function iM(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var gn=iM,sM=zi,lM=gn,uM="[object AsyncFunction]",xM="[object Function]",cM="[object GeneratorFunction]",fM="[object Proxy]";function dM(e){if(!lM(e))return!1;var t=sM(e);return t==xM||t==cM||t==uM||t==fM}var Oy=dM,hM=ar,vM=hM["__core-js_shared__"],pM=vM,Tx=pM,Am=function(){var e=/[^.]+$/.exec(Tx&&Tx.keys&&Tx.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function gM(e){return!!Am&&Am in e}var mM=gM,EM=Function.prototype,yM=EM.toString;function CM(e){if(e!=null){try{return yM.call(e)}catch{}try{return e+""}catch{}}return""}var Ry=CM,BM=Oy,AM=mM,DM=gn,_M=Ry,wM=/[\\^$.*+?()[\]{}|]/g,FM=/^\[object .+?Constructor\]$/,bM=Function.prototype,SM=Object.prototype,kM=bM.toString,TM=SM.hasOwnProperty,NM=RegExp("^"+kM.call(TM).replace(wM,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function PM(e){if(!DM(e)||AM(e))return!1;var t=BM(e)?NM:FM;return t.test(_M(e))}var MM=PM;function IM(e,t){return e==null?void 0:e[t]}var LM=IM,OM=MM,RM=LM;function VM(e,t){var r=RM(e,t);return OM(r)?r:void 0}var xa=VM,$M=xa,zM=ar,GM=$M(zM,"Map"),Nd=GM,HM=xa,UM=HM(Object,"create"),Ol=UM,Dm=Ol;function WM(){this.__data__=Dm?Dm(null):{},this.size=0}var YM=WM;function XM(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var jM=XM,ZM=Ol,qM="__lodash_hash_undefined__",KM=Object.prototype,JM=KM.hasOwnProperty;function QM(e){var t=this.__data__;if(ZM){var r=t[e];return r===qM?void 0:r}return JM.call(t,e)?t[e]:void 0}var eI=QM,tI=Ol,rI=Object.prototype,nI=rI.hasOwnProperty;function aI(e){var t=this.__data__;return tI?t[e]!==void 0:nI.call(t,e)}var oI=aI,iI=Ol,sI="__lodash_hash_undefined__";function lI(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=iI&&t===void 0?sI:t,this}var uI=lI,xI=YM,cI=jM,fI=eI,dI=oI,hI=uI;function ho(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])}}ho.prototype.clear=xI;ho.prototype.delete=cI;ho.prototype.get=fI;ho.prototype.has=dI;ho.prototype.set=hI;var vI=ho,_m=vI,pI=Ll,gI=Nd;function mI(){this.size=0,this.__data__={hash:new _m,map:new(gI||pI),string:new _m}}var EI=mI;function yI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var CI=yI,BI=CI;function AI(e,t){var r=e.__data__;return BI(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Rl=AI,DI=Rl;function _I(e){var t=DI(this,e).delete(e);return this.size-=t?1:0,t}var wI=_I,FI=Rl;function bI(e){return FI(this,e).get(e)}var SI=bI,kI=Rl;function TI(e){return kI(this,e).has(e)}var NI=TI,PI=Rl;function MI(e,t){var r=PI(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var II=MI,LI=EI,OI=wI,RI=SI,VI=NI,$I=II;function vo(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])}}vo.prototype.clear=LI;vo.prototype.delete=OI;vo.prototype.get=RI;vo.prototype.has=VI;vo.prototype.set=$I;var zI=vo,GI=Ll,HI=Nd,UI=zI,WI=200;function YI(e,t){var r=this.__data__;if(r instanceof GI){var n=r.__data__;if(!HI||n.length<WI-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new UI(n)}return r.set(e,t),this.size=r.size,this}var XI=YI,jI=Ll,ZI=MP,qI=LP,KI=RP,JI=$P,QI=XI;function po(e){var t=this.__data__=new jI(e);this.size=t.size}po.prototype.clear=ZI;po.prototype.delete=qI;po.prototype.get=KI;po.prototype.has=JI;po.prototype.set=QI;var eL=po;function tL(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var rL=tL,nL=xa,aL=function(){try{var e=nL(Object,"defineProperty");return e({},"",{}),e}catch{}}(),oL=aL,wm=oL;function iL(e,t,r){t=="__proto__"&&wm?wm(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Vy=iL,sL=Vy,lL=My,uL=Object.prototype,xL=uL.hasOwnProperty;function cL(e,t,r){var n=e[t];(!(xL.call(e,t)&&lL(n,r))||r===void 0&&!(t in e))&&sL(e,t,r)}var $y=cL,fL=$y,dL=Vy;function hL(e,t,r,n){var a=!r;r||(r={});for(var o=-1,i=t.length;++o<i;){var s=t[o],l=n?n(r[s],e[s],s,r,e):void 0;l===void 0&&(l=e[s]),a?dL(r,s,l):fL(r,s,l)}return r}var Vl=hL;function vL(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var pL=vL;function gL(e){return e!=null&&typeof e=="object"}var go=gL,mL=zi,EL=go,yL="[object Arguments]";function CL(e){return EL(e)&&mL(e)==yL}var BL=CL,Fm=BL,AL=go,zy=Object.prototype,DL=zy.hasOwnProperty,_L=zy.propertyIsEnumerable,wL=Fm(function(){return arguments}())?Fm:function(e){return AL(e)&&DL.call(e,"callee")&&!_L.call(e,"callee")},FL=wL,bL=Array.isArray,Pd=bL,R0={exports:{}};function SL(){return!1}var kL=SL;R0.exports;(function(e,t){var r=ar,n=kL,a=t&&!t.nodeType&&t,o=a&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===a,s=i?r.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||n;e.exports=u})(R0,R0.exports);var Gy=R0.exports,TL=9007199254740991,NL=/^(?:0|[1-9]\d*)$/;function PL(e,t){var r=typeof e;return t=t??TL,!!t&&(r=="number"||r!="symbol"&&NL.test(e))&&e>-1&&e%1==0&&e<t}var ML=PL,IL=9007199254740991;function LL(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=IL}var Hy=LL,OL=zi,RL=Hy,VL=go,$L="[object Arguments]",zL="[object Array]",GL="[object Boolean]",HL="[object Date]",UL="[object Error]",WL="[object Function]",YL="[object Map]",XL="[object Number]",jL="[object Object]",ZL="[object RegExp]",qL="[object Set]",KL="[object String]",JL="[object WeakMap]",QL="[object ArrayBuffer]",eO="[object DataView]",tO="[object Float32Array]",rO="[object Float64Array]",nO="[object Int8Array]",aO="[object Int16Array]",oO="[object Int32Array]",iO="[object Uint8Array]",sO="[object Uint8ClampedArray]",lO="[object Uint16Array]",uO="[object Uint32Array]",Pe={};Pe[tO]=Pe[rO]=Pe[nO]=Pe[aO]=Pe[oO]=Pe[iO]=Pe[sO]=Pe[lO]=Pe[uO]=!0;Pe[$L]=Pe[zL]=Pe[QL]=Pe[GL]=Pe[eO]=Pe[HL]=Pe[UL]=Pe[WL]=Pe[YL]=Pe[XL]=Pe[jL]=Pe[ZL]=Pe[qL]=Pe[KL]=Pe[JL]=!1;function xO(e){return VL(e)&&RL(e.length)&&!!Pe[OL(e)]}var cO=xO;function fO(e){return function(t){return e(t)}}var Md=fO,V0={exports:{}};V0.exports;(function(e,t){var r=Iy,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o&&r.process,s=function(){try{var l=a&&a.require&&a.require("util").types;return l||i&&i.binding&&i.binding("util")}catch{}}();e.exports=s})(V0,V0.exports);var Id=V0.exports,dO=cO,hO=Md,bm=Id,Sm=bm&&bm.isTypedArray,vO=Sm?hO(Sm):dO,pO=vO,gO=pL,mO=FL,EO=Pd,yO=Gy,CO=ML,BO=pO,AO=Object.prototype,DO=AO.hasOwnProperty;function _O(e,t){var r=EO(e),n=!r&&mO(e),a=!r&&!n&&yO(e),o=!r&&!n&&!a&&BO(e),i=r||n||a||o,s=i?gO(e.length,String):[],l=s.length;for(var u in e)(t||DO.call(e,u))&&!(i&&(u=="length"||a&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||CO(u,l)))&&s.push(u);return s}var Uy=_O,wO=Object.prototype;function FO(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||wO;return e===r}var Ld=FO;function bO(e,t){return function(r){return e(t(r))}}var Wy=bO,SO=Wy,kO=SO(Object.keys,Object),TO=kO,NO=Ld,PO=TO,MO=Object.prototype,IO=MO.hasOwnProperty;function LO(e){if(!NO(e))return PO(e);var t=[];for(var r in Object(e))IO.call(e,r)&&r!="constructor"&&t.push(r);return t}var OO=LO,RO=Oy,VO=Hy;function $O(e){return e!=null&&VO(e.length)&&!RO(e)}var Yy=$O,zO=Uy,GO=OO,HO=Yy;function UO(e){return HO(e)?zO(e):GO(e)}var Od=UO,WO=Vl,YO=Od;function XO(e,t){return e&&WO(t,YO(t),e)}var jO=XO;function ZO(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var qO=ZO,KO=gn,JO=Ld,QO=qO,eR=Object.prototype,tR=eR.hasOwnProperty;function rR(e){if(!KO(e))return QO(e);var t=JO(e),r=[];for(var n in e)n=="constructor"&&(t||!tR.call(e,n))||r.push(n);return r}var nR=rR,aR=Uy,oR=nR,iR=Yy;function sR(e){return iR(e)?aR(e,!0):oR(e)}var Rd=sR,lR=Vl,uR=Rd;function xR(e,t){return e&&lR(t,uR(t),e)}var cR=xR,$0={exports:{}};$0.exports;(function(e,t){var r=ar,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===n,i=o?r.Buffer:void 0,s=i?i.allocUnsafe:void 0;function l(u,x){if(x)return u.slice();var c=u.length,d=s?s(c):new u.constructor(c);return u.copy(d),d}e.exports=l})($0,$0.exports);var fR=$0.exports;function dR(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var hR=dR;function vR(e,t){for(var r=-1,n=e==null?0:e.length,a=0,o=[];++r<n;){var i=e[r];t(i,r,e)&&(o[a++]=i)}return o}var pR=vR;function gR(){return[]}var Xy=gR,mR=pR,ER=Xy,yR=Object.prototype,CR=yR.propertyIsEnumerable,km=Object.getOwnPropertySymbols,BR=km?function(e){return e==null?[]:(e=Object(e),mR(km(e),function(t){return CR.call(e,t)}))}:ER,Vd=BR,AR=Vl,DR=Vd;function _R(e,t){return AR(e,DR(e),t)}var wR=_R;function FR(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var jy=FR,bR=Wy,SR=bR(Object.getPrototypeOf,Object),Zy=SR,kR=jy,TR=Zy,NR=Vd,PR=Xy,MR=Object.getOwnPropertySymbols,IR=MR?function(e){for(var t=[];e;)kR(t,NR(e)),e=TR(e);return t}:PR,qy=IR,LR=Vl,OR=qy;function RR(e,t){return LR(e,OR(e),t)}var VR=RR,$R=jy,zR=Pd;function GR(e,t,r){var n=t(e);return zR(e)?n:$R(n,r(e))}var Ky=GR,HR=Ky,UR=Vd,WR=Od;function YR(e){return HR(e,WR,UR)}var XR=YR,jR=Ky,ZR=qy,qR=Rd;function KR(e){return jR(e,qR,ZR)}var JR=KR,QR=xa,eV=ar,tV=QR(eV,"DataView"),rV=tV,nV=xa,aV=ar,oV=nV(aV,"Promise"),iV=oV,sV=xa,lV=ar,uV=sV(lV,"Set"),xV=uV,cV=xa,fV=ar,dV=cV(fV,"WeakMap"),hV=dV,Vc=rV,$c=Nd,zc=iV,Gc=xV,Hc=hV,Jy=zi,mo=Ry,Tm="[object Map]",vV="[object Object]",Nm="[object Promise]",Pm="[object Set]",Mm="[object WeakMap]",Im="[object DataView]",pV=mo(Vc),gV=mo($c),mV=mo(zc),EV=mo(Gc),yV=mo(Hc),$n=Jy;(Vc&&$n(new Vc(new ArrayBuffer(1)))!=Im||$c&&$n(new $c)!=Tm||zc&&$n(zc.resolve())!=Nm||Gc&&$n(new Gc)!=Pm||Hc&&$n(new Hc)!=Mm)&&($n=function(e){var t=Jy(e),r=t==vV?e.constructor:void 0,n=r?mo(r):"";if(n)switch(n){case pV:return Im;case gV:return Tm;case mV:return Nm;case EV:return Pm;case yV:return Mm}return t});var $d=$n,CV=Object.prototype,BV=CV.hasOwnProperty;function AV(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&BV.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var DV=AV,_V=ar,wV=_V.Uint8Array,FV=wV,Lm=FV;function bV(e){var t=new e.constructor(e.byteLength);return new Lm(t).set(new Lm(e)),t}var zd=bV,SV=zd;function kV(e,t){var r=t?SV(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var TV=kV,NV=/\w*$/;function PV(e){var t=new e.constructor(e.source,NV.exec(e));return t.lastIndex=e.lastIndex,t}var MV=PV,Om=Td,Rm=Om?Om.prototype:void 0,Vm=Rm?Rm.valueOf:void 0;function IV(e){return Vm?Object(Vm.call(e)):{}}var LV=IV,OV=zd;function RV(e,t){var r=t?OV(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var VV=RV,$V=zd,zV=TV,GV=MV,HV=LV,UV=VV,WV="[object Boolean]",YV="[object Date]",XV="[object Map]",jV="[object Number]",ZV="[object RegExp]",qV="[object Set]",KV="[object String]",JV="[object Symbol]",QV="[object ArrayBuffer]",e$="[object DataView]",t$="[object Float32Array]",r$="[object Float64Array]",n$="[object Int8Array]",a$="[object Int16Array]",o$="[object Int32Array]",i$="[object Uint8Array]",s$="[object Uint8ClampedArray]",l$="[object Uint16Array]",u$="[object Uint32Array]";function x$(e,t,r){var n=e.constructor;switch(t){case QV:return $V(e);case WV:case YV:return new n(+e);case e$:return zV(e,r);case t$:case r$:case n$:case a$:case o$:case i$:case s$:case l$:case u$:return UV(e,r);case XV:return new n;case jV:case KV:return new n(e);case ZV:return GV(e);case qV:return new n;case JV:return HV(e)}}var c$=x$,f$=gn,$m=Object.create,d$=function(){function e(){}return function(t){if(!f$(t))return{};if($m)return $m(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),h$=d$,v$=h$,p$=Zy,g$=Ld;function m$(e){return typeof e.constructor=="function"&&!g$(e)?v$(p$(e)):{}}var E$=m$,y$=$d,C$=go,B$="[object Map]";function A$(e){return C$(e)&&y$(e)==B$}var D$=A$,_$=D$,w$=Md,zm=Id,Gm=zm&&zm.isMap,F$=Gm?w$(Gm):_$,b$=F$,S$=$d,k$=go,T$="[object Set]";function N$(e){return k$(e)&&S$(e)==T$}var P$=N$,M$=P$,I$=Md,Hm=Id,Um=Hm&&Hm.isSet,L$=Um?I$(Um):M$,O$=L$,R$=eL,V$=rL,$$=$y,z$=jO,G$=cR,H$=fR,U$=hR,W$=wR,Y$=VR,X$=XR,j$=JR,Z$=$d,q$=DV,K$=c$,J$=E$,Q$=Pd,ez=Gy,tz=b$,rz=gn,nz=O$,az=Od,oz=Rd,iz=1,sz=2,lz=4,Qy="[object Arguments]",uz="[object Array]",xz="[object Boolean]",cz="[object Date]",fz="[object Error]",eC="[object Function]",dz="[object GeneratorFunction]",hz="[object Map]",vz="[object Number]",tC="[object Object]",pz="[object RegExp]",gz="[object Set]",mz="[object String]",Ez="[object Symbol]",yz="[object WeakMap]",Cz="[object ArrayBuffer]",Bz="[object DataView]",Az="[object Float32Array]",Dz="[object Float64Array]",_z="[object Int8Array]",wz="[object Int16Array]",Fz="[object Int32Array]",bz="[object Uint8Array]",Sz="[object Uint8ClampedArray]",kz="[object Uint16Array]",Tz="[object Uint32Array]",Ne={};Ne[Qy]=Ne[uz]=Ne[Cz]=Ne[Bz]=Ne[xz]=Ne[cz]=Ne[Az]=Ne[Dz]=Ne[_z]=Ne[wz]=Ne[Fz]=Ne[hz]=Ne[vz]=Ne[tC]=Ne[pz]=Ne[gz]=Ne[mz]=Ne[Ez]=Ne[bz]=Ne[Sz]=Ne[kz]=Ne[Tz]=!0;Ne[fz]=Ne[eC]=Ne[yz]=!1;function js(e,t,r,n,a,o){var i,s=t&iz,l=t&sz,u=t&lz;if(r&&(i=a?r(e,n,a,o):r(e)),i!==void 0)return i;if(!rz(e))return e;var x=Q$(e);if(x){if(i=q$(e),!s)return U$(e,i)}else{var c=Z$(e),d=c==eC||c==dz;if(ez(e))return H$(e,s);if(c==tC||c==Qy||d&&!a){if(i=l||d?{}:J$(e),!s)return l?Y$(e,G$(i,e)):W$(e,z$(i,e))}else{if(!Ne[c])return a?e:{};i=K$(e,c,s)}}o||(o=new R$);var f=o.get(e);if(f)return f;o.set(e,i),nz(e)?e.forEach(function(p){i.add(js(p,t,r,p,e,o))}):tz(e)&&e.forEach(function(p,m){i.set(m,js(p,t,r,m,e,o))});var v=u?l?j$:X$:l?oz:az,g=x?void 0:v(e);return V$(g||e,function(p,m){g&&(m=p,p=e[m]),$$(i,m,js(p,t,r,m,e,o))}),i}var Nz=js,Pz=Nz,Mz=1,Iz=4;function Lz(e){return Pz(e,Mz|Iz)}var Oz=Lz;const at=Ml(Oz),Rz=h.defineComponent({name:"OcFormItem",components:{NIcon:R.NIcon,NInput:R.NInput,NSelect:R.NSelect,NInputNumber:R.NInputNumber,NDatePicker:R.NDatePicker,NTimePicker:R.NTimePicker,NSwitch:R.NSwitch,NUpload:R.NUpload,NUploadDragger:R.NUploadDragger,NDivider:R.NDivider,NColorPicker:R.NColorPicker,NCheckbox:R.NCheckbox,NCheckboxGroup:R.NCheckboxGroup,NFlex:R.NFlex,NCascader:R.NCascader,IconMailInboxAdd:Pi},props:{item:{required:!0,type:Object,default:()=>[]},formValue:{required:!0,type:Object,default:()=>({})},edit:{type:Boolean,default:!1}},setup(e){const{t}=Qt.useI18n();return{updateValue:(i,s)=>{if(i.updateValue){const l=at(e.formValue);if(typeof i.updateValue=="string"){const u=i.updateValue;new Function("value","formValue",u)(s,l)}else i.updateValue(s,l)}},beforeUpload:(i,s)=>new Promise((l,u)=>{i.file.file&&(e.formValue[s]=i.file.file,l()),u()}),uploadChange:(i,s)=>{i.length===0&&(e.formValue[s]="")},selectFallback:i=>i.fallbackOption?typeof i.fallbackOption=="boolean"?()=>({label:()=>t("Common.message.all"),value:"",disabled:!0}):i.fallbackOption:!1}}}),Vz=h.createElementVNode("br",null,null,-1),$z=h.createElementVNode("p",null,"点击或者拖动文件到该区域来上传",-1),zz=h.createElementVNode("p",null,"请不要上传敏感数据,比如你的银行卡号和密码,信用卡号有效期和安全码",-1);function Gz(e,t,r,n,a,o){const i=h.resolveComponent("NDivider"),s=h.resolveComponent("NInput"),l=h.resolveComponent("NInputNumber"),u=h.resolveComponent("NDatePicker"),x=h.resolveComponent("NSelect"),c=h.resolveComponent("NCascader"),d=h.resolveComponent("NColorPicker"),f=h.resolveComponent("NCheckbox"),v=h.resolveComponent("NFlex"),g=h.resolveComponent("NCheckboxGroup"),p=h.resolveComponent("NTimePicker"),m=h.resolveComponent("NSwitch"),E=h.resolveComponent("IconMailInboxAdd"),y=h.resolveComponent("NIcon"),B=h.resolveComponent("NUploadDragger"),D=h.resolveComponent("NUpload");return h.openBlock(),h.createElementBlock(h.Fragment,null,[e.item.input==="divider"?(h.openBlock(),h.createBlock(i,{key:0,"title-placement":e.item.placement},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(typeof e.item.label=="function"?e.item.label():e.item.label),1)]),_:1},8,["title-placement"])):h.createCommentVNode("",!0),e.item.input==="input"?(h.openBlock(),h.createBlock(s,{key:1,value:e.formValue[e.item.key],"onUpdate:value":t[0]||(t[0]=A=>e.formValue[e.item.key]=A),type:e.item.type,placeholder:typeof e.item.placeholder=="function"?e.item.placeholder():e.item.placeholder,disabled:e.edit&&e.item.edit?e.item.edit.disabled:e.item.disabled,readonly:e.edit&&e.item.edit?e.item.edit.readonly:e.item.readonly,clearable:e.item.clearable,minlength:e.item.minlength,maxlength:e.item.maxlength,rows:e.item.rows,"show-count":!!e.item.maxlength,"on-update:value":A=>{e.formValue[e.item.key]=A.trim(),e.updateValue(e.item,A.trim())}},null,8,["value","type","placeholder","disabled","readonly","clearable","minlength","maxlength","rows","show-count","on-update:value"])):h.createCommentVNode("",!0),e.item.input==="number"?(h.openBlock(),h.createBlock(l,{key:2,value:e.formValue[e.item.key],"onUpdate:value":t[1]||(t[1]=A=>e.formValue[e.item.key]=A),placeholder:typeof e.item.placeholder=="function"?e.item.placeholder():e.item.placeholder,disabled:e.edit&&e.item.edit?e.item.edit.disabled:e.item.disabled,readonly:e.edit&&e.item.edit?e.item.edit.readonly:e.item.readonly,clearable:e.item.clearable,min:e.item.min,max:e.item.max,step:e.item.step,showButton:e.item.showButton,"update-value-on-input":!1,parse:A=>{const _=e.item;return _.precision&&_.precision>-1?Number(Number(A).toFixed(_.precision)):Number(A)},"on-update:value":A=>{e.formValue[e.item.key]=A,e.updateValue(e.item,A)}},null,8,["value","placeholder","disabled","readonly","clearable","min","max","step","showButton","parse","on-update:value"])):h.createCommentVNode("",!0),e.item.input==="date"&&!e.item.format?(h.openBlock(),h.createBlock(u,{key:3,value:e.formValue[e.item.key],"onUpdate:value":t[2]||(t[2]=A=>e.formValue[e.item.key]=A),type:e.item.type,placeholder:typeof e.item.placeholder=="function"?e.item.placeholder():e.item.placeholder,disabled:e.edit&&e.item.edit?e.item.edit.disabled:e.item.disabled,"input-readonly":e.edit&&e.item.edit?e.item.edit.readonly:e.item.readonly,clearable:e.item.clearable,"time-picker-props":e.item.timePickerProps,"is-date-disabled":(A,_)=>{const C=e.item;return C.isDateDisabled?C.isDateDisabled(A,_):!1},"close-on-select":"","on-update:value":A=>{e.formValue[e.item.key]=A,e.updateValue(e.item,A)}},null,8,["value","type","placeholder","disabled","input-readonly","clearable","time-picker-props","is-date-disabled","on-update:value"])):h.createCommentVNode("",!0),e.item.input==="date"&&e.item.format?(h.openBlock(),h.createBlock(u,{key:4,"formatted-value":e.formValue[e.item.key],"onUpdate:formattedValue":t[3]||(t[3]=A=>e.formValue[e.item.key]=A),type:e.item.type,placeholder:typeof e.item.placeholder=="function"?e.item.placeholder():e.item.placeholder,disabled:e.edit&&e.item.edit?e.item.edit.disabled:e.item.disabled,"input-readonly":e.edit&&e.item.edit?e.item.edit.readonly:e.item.readonly,clearable:e.item.clearable,format:e.item.format,"time-picker-props":e.item.timePickerProps,"is-date-disabled":(A,_)=>{const C=e.item;return C.isDateDisabled?C.isDateDisabled(A,_):!1},"close-on-select":"","on-update:formatted-value":A=>{e.formValue[e.item.key]=A,e.updateValue(e.item,A)}},null,8,["formatted-value","type","placeholder","disabled","input-readonly","clearable","format","time-picker-props","is-date-disabled","on-update:formatted-value"])):h.createCommentVNode("",!0),e.item.input==="select"?(h.openBlock(),h.createBlock(x,{key:5,value:e.formValue[e.item.key],"onUpdate:value":t[4]||(t[4]=A=>e.formValue[e.item.key]=A),placeholder:typeof e.item.placeholder=="function"?e.item.placeholder():e.item.placeholder,options:e.item.options,disabled:e.edit&&e.item.edit?e.item.edit.disabled:e.item.disabled,readonly:e.edit&&e.item.edit?e.item.edit.readonly:e.item.readonly,clearable:e.item.clearable,filterable:e.item.filterable,multiple:e.item.multiple,"fallback-option":e.selectFallback(e.item),maxTagCount:e.item.maxTagCount,"render-label":e.item.renderLabel,"render-option":e.item.renderOption,"render-tag":e.item.renderTag,"on-update:value":A=>{const _=e.item;let C=A,w=A;if(_.multiple){let b=A.filter(F=>F);b.length===0?(C=[""],w=[]):(C=b,w=b)}e.formValue[e.item.key]=C,e.updateValue(e.item,w)}},null,8,["value","placeholder","options","disabled","readonly","clearable","filterable","multiple","fallback-option","maxTagCount","render-label","render-option","render-tag","on-update:value"])):h.createCommentVNode("",!0),e.item.input==="cascader"?(h.openBlock(),h.createBlock(c,{key:6,value:e.formValue[e.item.key],"onUpdate:value":t[5]||(t[5]=A=>e.formValue[e.item.key]=A),placeholder:typeof e.item.placeholder=="function"?e.item.placeholder():e.item.placeholder,options:e.item.options,disabled:e.edit&&e.item.edit?e.item.edit.disabled:e.item.disabled,readonly:e.edit&&e.item.edit?e.item.edit.readonly:e.item.readonly,clearable:e.item.clearable,filterable:e.item.filterable,multiple:e.item.multiple,maxTagCount:e.item.maxTagCount,"on-update:value":A=>{const _=e.item;let C=A,w=A;if(_.multiple){let b=A.filter(F=>F);b.length===0?(C=[""],w=[]):(C=b,w=b)}e.formValue[e.item.key]=C,e.updateValue(e.item,w)}},null,8,["value","placeholder","options","disabled","readonly","clearable","filterable","multiple","maxTagCount","on-update:value"])):h.createCommentVNode("",!0),e.item.input==="color"?(h.openBlock(),h.createBlock(d,{key:7,value:e.formValue[e.item.key],"onUpdate:value":t[6]||(t[6]=A=>e.formValue[e.item.key]=A),disabled:e.edit&&e.item.edit?e.item.edit.disabled:e.item.disabled,"show-alpha":!0,"show-preview":!0,swatches:["#FFFFFF","#18A058","#2080F0","#F0A020","rgba(208, 48, 80, 1)"]},null,8,["value","disabled","swatches"])):h.createCommentVNode("",!0),e.item.input==="checkbox"?(h.openBlock(),h.createBlock(g,{key:8,value:e.formValue[e.item.key],"onUpdate:value":t[7]||(t[7]=A=>e.formValue[e.item.key]=A),disabled:e.edit&&e.item.edit?e.item.edit.disabled:e.item.disabled},{default:h.withCtx(()=>[h.createVNode(v,null,{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.item.options,A=>(h.openBlock(),h.createBlock(f,{label:A.label,value:A.value},null,8,["label","value"]))),256))]),_:1})]),_:1},8,["value","disabled"])):h.createCommentVNode("",!0),e.item.input==="time"?(h.openBlock(),h.createBlock(p,{key:9,value:e.formValue[e.item.key],"onUpdate:value":t[8]||(t[8]=A=>e.formValue[e.item.key]=A),placeholder:typeof e.item.placeholder=="function"?e.item.placeholder():e.item.placeholder,format:e.item.format,disabled:e.edit&&e.item.edit?e.item.edit.disabled:e.item.disabled,readonly:e.edit&&e.item.edit?e.item.edit.readonly:e.item.readonly,clearable:e.item.clearable,"on-update:value":A=>{e.formValue[e.item.key]=A,e.updateValue(e.item,A)}},null,8,["value","placeholder","format","disabled","readonly","clearable","on-update:value"])):h.createCommentVNode("",!0),e.item.input==="switch"?(h.openBlock(),h.createBlock(m,{key:10,value:e.formValue[e.item.key],"onUpdate:value":t[9]||(t[9]=A=>e.formValue[e.item.key]=A),disabled:e.edit&&e.item.edit?e.item.edit.disabled:e.item.disabled,size:"large","on-update:value":A=>{e.formValue[e.item.key]=A,e.updateValue(e.item,A)}},h.createSlots({_:2},[e.item.checked?{name:"checked",fn:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(e.item.checked),1)]),key:"0"}:void 0,e.item.unchecked?{name:"unchecked",fn:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(e.item.unchecked),1)]),key:"1"}:void 0]),1032,["value","disabled","on-update:value"])):h.createCommentVNode("",!0),e.item.input==="upload"?(h.openBlock(),h.createBlock(D,{key:11,"default-file-list":e.formValue[e.item.key]?[{id:"1",name:"File",status:"finished",url:e.formValue[e.item.key]}]:void 0,"on-before-upload":A=>{e.beforeUpload(A,e.item.key)},accept:e.item.accept,disabled:e.edit&&e.item.edit?e.item.edit.disabled:e.item.disabled,max:e.item.max,"on-update:file-list":A=>{e.uploadChange(A,e.item.key)},"directory-dnd":""},{default:h.withCtx(()=>[h.withDirectives(h.createVNode(B,null,{default:h.withCtx(()=>[h.createVNode(y,{size:"32"},{default:h.withCtx(()=>[h.createVNode(E)]),_:1}),Vz,$z,zz]),_:1},512),[[h.vShow,!e.formValue[e.item.key]]])]),_:1},8,["default-file-list","on-before-upload","accept","disabled","max","on-update:file-list"])):h.createCommentVNode("",!0)],64)}const Hz=ae(Rz,[["render",Gz]]),Uz=h.defineComponent({name:"OcForm",components:{NGrid:R.NGrid,NForm:R.NForm,NFormItem:R.NFormItem,OcFormItem:Hz,Draggable:Km},props:{items:{required:!0,type:Array,default:()=>[]},data:{required:!0,type:Object,default:()=>({})},edit:{type:Boolean,default:!1},mode:{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"}},emits:["on-update:mode","on-update:add"],setup(e,{expose:t,emit:r}){const n=h.ref(),a=h.ref({}),o=h.ref([]),i=f=>!((f==null?void 0:f.show)===!1||e.edit&&f.edit&&!f.edit.show),s=(f,v)=>{r("on-update:mode",{item:at(f),index:v})},l=()=>{const f=at(e.items);f.forEach(v=>{if(typeof v.show>"u"&&(v.show=!0),v.input!=="divider"&&v.rule&&v.rule.validator&&typeof v.rule.validator=="string"){const g=v.rule.validator,p=new Function("rule","value",g);v.rule.validator=(m,E)=>p(m,E)}if(v.input==="date"&&v.isDateDisabled&&typeof v.isDateDisabled=="string"){const g=v.isDateDisabled,p=new Function("ts","detail",g);v.isDateDisabled=(m,E)=>p(m,E)}v.input==="select"&&v.fallbackOption&&v.multiple&&(!a.value[v.key]||a.value[v.key].length===0)&&(a.value[v.key]=[""])}),o.value=f},u=()=>new Promise((f,v)=>{var g;(g=n.value)==null||g.validate(p=>{if(p)v();else{const m=at(a.value),E=JSON.stringify(m,(y,B)=>B===void 0?null:Array.isArray(B)?B.filter(D=>D!==""):B);f(JSON.parse(E))}})}),x=()=>{var f;(f=n.value)==null||f.restoreValidation()},c=()=>{r("on-update:mode",{item:void 0,index:-1})},d=()=>{e.mode&&r("on-update:add",at(o.value))};return h.onMounted(()=>{a.value=at(e.data),l()}),t({validate:u,restoreValidation:x}),h.watch(()=>e.items,()=>{l()},{deep:!0}),h.watch(()=>e.data,f=>{a.value=at(f)},{deep:!0}),{formRef:n,formValue:a,formItems:o,onDragEnd:c,onDragAdd:d,cloneDeep:at,elementShow:i,onModeClick:s}}}),Wz={key:1,class:"oc-form-grid"};function Yz(e,t,r,n,a,o){const i=h.resolveComponent("OcFormItem"),s=h.resolveComponent("NFormItem"),l=h.resolveComponent("Draggable"),u=h.resolveComponent("NForm");return h.openBlock(),h.createBlock(u,{ref:"formRef",model:e.formValue,disabled:e.disabled,inline:e.inline,labelWidth:e.labelWidth,labelAlign:e.labelAlign,labelPlacement:e.labelPlacement},{default:h.withCtx(()=>[e.mode?(h.openBlock(),h.createBlock(l,h.mergeProps({key:0,modelValue:e.formItems,"onUpdate:modelValue":t[0]||(t[0]=x=>e.formItems=x)},{animation:200},{"item-key":"key",group:"oc-form",handle:".oc-form-grid-item",class:"oc-form-grid",onAdd:e.onDragAdd,onEnd:e.onDragEnd}),{item:h.withCtx(({element:x,index:c})=>{var d;return[(h.openBlock(),h.createBlock(s,{label:x.input!=="divider"?typeof x.label=="function"?x.label():x.label:"",path:x.key,rule:(d=x.rule)!=null&&d.required?x.rule:void 0,class:h.normalizeClass(["oc-form-grid-item",e.mode?"oc-form-mode":""]),onClick:f=>e.mode?e.onModeClick(x,c):void 0,key:c,style:h.normalizeStyle(`grid-column: span ${x.span||6} / span ${x.span||6};`),"show-feedback":x.input!=="divider"},{default:h.withCtx(()=>[h.createVNode(i,{item:x,formValue:e.formValue,edit:e.edit},null,8,["item","formValue","edit"])]),_:2},1032,["label","path","rule","class","onClick","style","show-feedback"]))]}),_:1},16,["modelValue","onAdd","onEnd"])):(h.openBlock(),h.createElementBlock("div",Wz,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.formItems,(x,c)=>{var d;return h.openBlock(),h.createElementBlock(h.Fragment,{key:c},[x.show?(h.openBlock(),h.createBlock(s,{key:0,label:x.input!=="divider"?typeof x.label=="function"?x.label():x.label:"",path:x.key,rule:(d=x.rule)!=null&&d.required?x.rule:void 0,class:h.normalizeClass(["oc-form-grid-item",e.mode?"oc-form-mode":""]),onClick:f=>e.mode?e.onModeClick(x,c):void 0,style:h.normalizeStyle(`grid-column: span ${x.span||6} / span ${x.span||6};`),"show-feedback":x.input!=="divider"},{default:h.withCtx(()=>[h.createVNode(i,{item:x,formValue:e.formValue,edit:e.edit},null,8,["item","formValue","edit"])]),_:2},1032,["label","path","rule","class","onClick","style","show-feedback"])):h.createCommentVNode("",!0)],64)}),128))]))]),_:1},8,["model","disabled","inline","labelWidth","labelAlign","labelPlacement"])}const rC=ae(Uz,[["render",Yz]]),Wm=e=>{const t=JSON.parse(JSON.stringify(e));return t.password=Ls(t.password),Bt("api/user/v2/login",t)},Xz=()=>new Promise(async(e,t)=>{Bt("api/auth/user/getCurrentUserInfo",{},"json",1e4).then(async r=>{await o9();try{const n=["046459"];r.commissioner=!1,n.includes(String(r.tenantLoginCode))&&(r.commissioner=!0);const a=r.ownedProducts?JSON.parse(r.ownedProducts):[],o=[{label:()=>xn.global.t("Platform.iot"),key:r.industryCategory==="0"?"/iot/home/all":"/prt/home/all"}];switch(Object.keys(J.owned).forEach(i=>{const s=a.includes(Number(i));if(r[J.owned[i]]=s,s){const l=J.owned[i].split("_")[1],u=J.platformList[l];u&&o.push({label:()=>xn.global.t(u.platformName),key:u.platformUrl})}}),g6(o),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(n){console.log(n)}}).catch(r=>{t(r)})}),jz=()=>Bt("api/auth/user/logout"),Zz=()=>Bt("api/manager/message/markReadAll"),qz=()=>Bt("api/auth/user/updateTenantRenewalStatus"),Kz=e=>Bt(J.options.removeUrl,e),Jz=e=>Bt("api/manager/job/retry",{jobId:e}),Qz=(e,t={})=>n9(e,t,"blob"),nC=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])}),uf(J.options.importUrl,t)},aC=e=>new Promise((t,r)=>{const n=K0(e);Bt(J.options.pageUrl,n).then(a=>{const o=q0(a);t(o)}).catch(()=>{r()})}),Gd=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])}),uf(J.options.importUrl,n).then(()=>{xf(!0),t()}).catch(a=>{r(a)})}),eG=e=>new Promise((t,r)=>{const n=K0(e);n.status===-1&&(n.status=""),Bt("api/manager/message/messagePage",n).then(a=>{const o=q0(a);t({data:o,unRead:a.unRead})}).catch(()=>{r()})}),tG=e=>Bt("api/manager/message/markRead",{messageId:e});let oC=!0;const z=h.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 rG(e){oC=e}function Hd(e){try{const t=window.location.host;if(t.includes("partexiot.cn")){const r=gt("token",!1);z.industryCategory=e.industryCategory||"0",(!t.includes("test")||!t.includes("vpn"))&&oC&&(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(z.commissioner=e.commissioner,z.factoryId=e.factoryId,z.tenantLoginCode=e.tenantLoginCode,z.userId=e.userId,z.email=e.email,z.name=e.name,z.realName=e.realName,z.tenantName=e.tenantName,z.phone=e.phone,z.info=e.info,z.kind=e.kind,z.oeeStatus=e.oeeStatus||0,z.ncFlg=e.ncFlg||0,z.systemType=e.systemType,z.platform_tdm=e.platform_tdm,z.platform_qms=e.platform_qms,z.platform_twin=e.platform_twin,z.platform_maintain=e.platform_maintain,z.platform_order=e.platform_order,z.platform_simple_tdm=e.platform_simple_tdm,z.authorizationGroupArray=e.authorizationGroupArray||[],z.authorizationMachineArray=e.authorizationMachineArray||[],z.iot_menu_authorization=e.iot_menu_authorization||[],z.tdm_menu_authorization=e.tdm_menu_authorization||[],z.qms_menu_authorization=e.qms_menu_authorization||[],z.maintain_menu_authorization=e.maintain_menu_authorization||[],z.order_menu_authorization=e.order_menu_authorization||[],z.endTime=e.endTime??0,z.tenantStatus=e.tenantStatus??1,z.renewalStatus=e.renewalStatus??0,z.roleId=e.roleId||0,z.kind===1){const r=e.info,n=String(e.info.type);n==="0"&&wr.replace(`/dashboard/list?machGroupId=${r.id}&theme=${r.theme||"light"}`),n==="1"&&wr.replace(`/dashboard/single?machId=${r.id}&type=${r.viewType??1}&theme=${r.theme||"light"}`),n==="2"&&wr.push(`/dashboard/carousel?theme=${r.theme||"light"}`),n==="3"&&wr.push(`/dashboard/carouselist?theme=${r.theme||"light"}`),n==="4"&&wr.push(`/dashboard/performance?schemeId=${r.id}&theme=${r.theme||"light"}`)}}catch(t){console.log(t)}}function $l(){return new Promise((e,t)=>{Xz().then(r=>{Hd(r),e(r)}).catch(()=>{t()})})}function zl(){z.factoryId="",z.commissioner=!1,z.tenantLoginCode="",z.userId="",z.email="",z.name="",z.realName="",z.tenantName="",z.phone="",z.description="",z.info={type:0,id:"",viewType:1,interval:5,theme:"light"},z.kind=0,z.systemType=0,z.oeeStatus=0,z.ncFlg=0,z.password="",z.enable=!0,z.platform_tdm=!1,z.platform_qms=!1,z.platform_twin=!1,z.platform_maintain=!1,z.platform_order=!1,z.platform_simple_tdm=!1,z.authorizationGroupArray=[],z.authorizationMachineArray=[],z.iot_menu_authorization=[],z.tdm_menu_authorization=[],z.qms_menu_authorization=[],z.maintain_menu_authorization=[],z.order_menu_authorization=[],z.endTime=0,z.tenantStatus=1,z.renewalStatus=0,z.roleId=1}async function Ud(){await jz().catch(()=>null),ro("token"),zl(),window.location.href="/login"}const nG=h.defineComponent({name:"HeaderPop",components:{NFlex:R.NFlex,NInput:R.NInput,NPopover:R.NPopover,NTooltip:R.NTooltip,NButton:R.NButton,NIcon:R.NIcon,NDataTable:R.NDataTable,IconSearch:U0,IconArrowClockwise:Ya,IconArrowSquareDown:Zc},setup(){const{t:e}=Qt.useI18n(),t=h.ref(!1),r=R.useNotification(),n=h.ref([]),a=h.ref(""),o=h.ref(!1),i=h.ref({page:1,pageCount:1,pageSize:30}),s=h.ref([{title:()=>e("Common.importer.fileName"),key:"jobName",width:300,render(f){return h.h("div",{},{default:()=>[h.h("p",{},{default:()=>f.jobName||"--"}),h.h("p",{style:{color:"rgba(var(--font), 0.6)"}},{default:()=>Fr(f.commitTime,"yyyy-MM-dd hh:mm:ss")})]})}},{title:()=>e("Common.importer.status"),key:"jobStatus",align:"center",width:90,render(f){let v=e("Common.processing");return f.jobStatus===1&&(v=e("Common.success")),f.jobStatus===2&&(v=e("Common.failed")),h.h("span",{},{default:()=>v})}},{title:()=>e("Common.action"),key:"action",align:"center",fixed:"right",width:90,render(f){const v=[{type:"delete",onClick:()=>{Kz([f.jobId]).then(()=>{r.success({content:()=>e("Notice.success"),duration:3e3}),c()}).catch(()=>{r.error({content:()=>e("Notice.error"),duration:3e3})})}}];return f.jobStatus===2?v.unshift({type:"custom",onClick:()=>{Jz(f.jobId).then(()=>{r.success({content:()=>e("Notice.success"),duration:3e3}),c()}).catch(()=>{r.error({content:()=>e("Notice.error"),duration:3e3})})},icon:Ya,color:"info",tooltipText:()=>e("Common.importer.retry")}):v.unshift({type:"custom",disabled:f.jobStatus!==1,onClick:()=>{window.open(f.downloadUrl)},icon:Ni,color:"success",tooltipText:()=>e("Common.importer.btnDownload")}),vn(v)}}]),l=f=>{i.value.page=f,c()},u=f=>{i.value.pageSize=f,i.value.page=1,c()},x=()=>{i.value.page=1,c()},c=()=>{o.value||(o.value=!0,aC({jobType:"EXPORT",jobName:a.value,query:i.value}).then(f=>{i.value=f.query,n.value=f.records,o.value=!1}).catch(()=>{o.value=!1}))},d=f=>{xf(f),t.value=f};return c(),h.watch(()=>J.download,f=>{t.value=f,f&&c()}),{jobName:a,loading:o,columns:s,coldata:n,query:i,popDownload:t,init:c,pageChange:l,pageSizeChange:u,doSearch:x,popDownloadUpdate:d}}}),aG={class:"oc-header-download"};function oG(e,t,r,n,a,o){const i=h.resolveComponent("IconArrowSquareDown"),s=h.resolveComponent("NIcon"),l=h.resolveComponent("NButton"),u=h.resolveComponent("NInput"),x=h.resolveComponent("IconSearch"),c=h.resolveComponent("NTooltip"),d=h.resolveComponent("IconArrowClockwise"),f=h.resolveComponent("NFlex"),v=h.resolveComponent("NDataTable"),g=h.resolveComponent("NPopover");return h.openBlock(),h.createBlock(g,{trigger:"click",placement:"bottom-end",show:e.popDownload,"show-arrow":!1,"on-update:show":e.popDownloadUpdate,style:{width:"650px"}},{trigger:h.withCtx(()=>[h.createVNode(l,{text:"",style:{"margin-left":"15px"}},{icon:h.withCtx(()=>[h.createVNode(s,null,{default:h.withCtx(()=>[h.createVNode(i)]),_:1})]),_:1})]),default:h.withCtx(()=>[h.createVNode(f,{justify:"end",wrap:!1},{default:h.withCtx(()=>[h.createElementVNode("span",aG,h.toDisplayString(e.$t("Common.validDays")),1),h.createVNode(u,{value:e.jobName,"onUpdate:value":t[0]||(t[0]=p=>e.jobName=p),type:"text",clearable:"",autosize:"",style:{width:"200px"},placeholder:e.$t("Common.importer.fileName")},null,8,["value","placeholder"]),h.createVNode(c,{trigger:"hover"},{trigger:h.withCtx(()=>[h.createVNode(l,{loading:e.loading,class:"button-primary",onClick:e.doSearch},{icon:h.withCtx(()=>[h.createVNode(s,null,{default:h.withCtx(()=>[h.createVNode(x)]),_:1})]),_:1},8,["loading","onClick"])]),default:h.withCtx(()=>[h.createTextVNode(" "+h.toDisplayString(e.$t("Common.search")),1)]),_:1}),h.createVNode(c,{trigger:"hover"},{trigger:h.withCtx(()=>[h.createVNode(l,{onClick:e.init},{icon:h.withCtx(()=>[h.createVNode(s,null,{default:h.withCtx(()=>[h.createVNode(d)]),_:1})]),_:1},8,["onClick"])]),default:h.withCtx(()=>[h.createTextVNode(" "+h.toDisplayString(e.$t("Common.refresh")),1)]),_:1})]),_:1}),h.createVNode(v,{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 iG=ae(nG,[["render",oG]]),sG=h.defineComponent({name:"HeaderPop",components:{NBadge:R.NBadge,NPopover:R.NPopover,NFlex:R.NFlex,NTooltip:R.NTooltip,NButton:R.NButton,NIcon:R.NIcon,NDataTable:R.NDataTable,NRadioGroup:R.NRadioGroup,NRadioButton:R.NRadioButton,IconAlert:Yc,IconClear:Xc,IconArrowClockwise:Ya},setup(){const{t:e}=Qt.useI18n(),t=h.ref(0),r=h.ref(0),n=h.ref([]),a=h.ref(""),o=h.ref(!1),i=h.ref({page:1,pageCount:1,pageSize:30}),s=h.ref([{title:()=>e("Common.message.title2"),key:"messageContent",width:300,render(f){return[h.h("div",{class:f.status===1?"card-grey-txt":""},{default:()=>f.messageContent}),h.h("div",{class:"card-grey-txt"},{default:()=>Fr(f.createTime,"yyyy-MM-dd hh:mm:ss")})]}},{title:()=>e("Common.action"),key:"action",align:"center",fixed:"right",width:90,render(f){return f.status===0?vn([{type:"custom",color:"primary",tooltipText:()=>e("Common.message.read"),buttonText:()=>e("Common.message.read"),onClick:()=>{tG(f.messageId).then(()=>{d()}).catch(()=>{d()})}}]):h.h("div",{},{default:()=>`${f.updateByName} ${e("Common.message.read")}`})}}]),l=f=>{i.value.page=1,t.value=f,d()},u=()=>{Zz().then(()=>{d()}).catch(()=>{d()})},x=f=>{i.value.page=f,d()},c=f=>{i.value.pageSize=f,i.value.page=1,d()},d=()=>{o.value||(o.value=!0,eG({status:t.value,query:i.value}).then(f=>{r.value=f.unRead,i.value=f.data.query,n.value=f.data.records,o.value=!1}).catch(()=>{o.value=!1}))};return d(),{badge:r,radios:t,jobName:a,loading:o,columns:s,coldata:n,query:i,clearAll:u,pageChange:x,pageSizeChange:c,init:d,radiosChecked:l}}}),lG={class:"com-title"};function uG(e,t,r,n,a,o){const i=h.resolveComponent("IconAlert"),s=h.resolveComponent("NIcon"),l=h.resolveComponent("NButton"),u=h.resolveComponent("NBadge"),x=h.resolveComponent("NRadioButton"),c=h.resolveComponent("NRadioGroup"),d=h.resolveComponent("IconClear"),f=h.resolveComponent("NTooltip"),v=h.resolveComponent("IconArrowClockwise"),g=h.resolveComponent("NFlex"),p=h.resolveComponent("NDataTable"),m=h.resolveComponent("NPopover");return h.openBlock(),h.createBlock(m,{trigger:"click",placement:"bottom-end","show-arrow":!1,style:{width:"650px"}},{trigger:h.withCtx(()=>[h.createVNode(u,{value:e.badge,max:99,offset:[5,-10]},{default:h.withCtx(()=>[h.createVNode(l,{text:"",style:{"margin-left":"30px"}},{icon:h.withCtx(()=>[h.createVNode(s,null,{default:h.withCtx(()=>[h.createVNode(i)]),_:1})]),_:1})]),_:1},8,["value"])]),default:h.withCtx(()=>[h.createVNode(g,{justify:"space-between"},{default:h.withCtx(()=>[h.createElementVNode("div",lG,h.toDisplayString(e.$t("Common.message.title")),1),h.createVNode(c,{value:e.radios,"onUpdate:value":t[0]||(t[0]=E=>e.radios=E),name:"radios","on-update:value":e.radiosChecked},{default:h.withCtx(()=>[h.createVNode(x,{key:"0",value:0,label:e.$t("Common.message.unRead")},null,8,["label"]),h.createVNode(x,{key:"-1",value:-1,label:e.$t("Common.message.all")},null,8,["label"]),h.createVNode(x,{key:"1",value:1,label:e.$t("Common.message.read")},null,8,["label"])]),_:1},8,["value","on-update:value"]),h.createElementVNode("div",null,[h.createVNode(f,{trigger:"hover"},{trigger:h.withCtx(()=>[h.createVNode(l,{onClick:e.clearAll},{icon:h.withCtx(()=>[h.createVNode(s,null,{default:h.withCtx(()=>[h.createVNode(d)]),_:1})]),_:1},8,["onClick"])]),default:h.withCtx(()=>[h.createTextVNode(" "+h.toDisplayString(e.$t("Common.message.readAll")),1)]),_:1}),h.createVNode(f,{trigger:"hover"},{trigger:h.withCtx(()=>[h.createVNode(l,{onClick:e.init},{icon:h.withCtx(()=>[h.createVNode(s,null,{default:h.withCtx(()=>[h.createVNode(v)]),_:1})]),_:1},8,["onClick"])]),default:h.withCtx(()=>[h.createTextVNode(" "+h.toDisplayString(e.$t("Common.refresh")),1)]),_:1})])]),_:1}),h.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})}const xG=ae(sG,[["render",uG]]),cG=h.defineComponent({name:"OcHeader",components:{Pop:iG,Message:xG,NDropdown:R.NDropdown,NMenu:R.NMenu,NIcon:R.NIcon,NButton:R.NButton,NDrawer:R.NDrawer,NFlex:R.NFlex,NDrawerContent:R.NDrawerContent,NCard:R.NCard,IconWeatherSunny:H0,IconWeatherMoon:G0,IconGridDots:qc,IconDismiss:Zn,IconNavigation:j0,IconUser:af},props:{menuOptions:{required:!0,type:Array,default:()=>[]},platformShow:{type:Boolean,default:!0},report:{type:Boolean,default:!1},download:{type:Boolean,default:!0},message:{type:Boolean,default:!0}},setup(e){const{t}=Qt.useI18n(),r=Ht.useRoute(),n=Ht.useRouter(),a=R.useNotification(),o=h.ref(J.platformUrl),i=h.ref(!1),s=h.ref(void 0),l=h.ref(10),u=h.ref(J.platformMenu),x=w=>{Mi(w),_t("theme",w,0)},c=w=>{w.indexOf("/iot/home")>-1&&(w="/iot/home/all"),w.indexOf("/iot/timeline")>-1&&(w="/iot/timeline/all"),o.value=w,Zs()},d=w=>{w.disabled||(c(w.key),n.push(w.key))},f=w=>{if(!w.disabled){if(w.children)return;c(w.key),n.push(w.key),i.value=!1}},v=w=>h.h("div",{onClick:()=>d(w)},{default:()=>typeof w.label=="function"?w.label():w.label}),g=w=>h.h("div",{onClick:()=>f(w)},{default:()=>typeof w.label=="function"?w.label():w.label}),p=w=>w.icon?h.h(R.NIcon,{size:24,onClick:()=>d(w)},{default:()=>w.icon&&w.icon()}):!1,m=w=>{n.replace(w)},E=()=>{i.value=!1},y=()=>{const w=[{label:z.tenantName,key:"tenantName"},{label:`${t("Common.dropdownMenu.theme")} ${J.theme?t("Common.dropdownMenu.light"):t("Common.dropdownMenu.dark")}`,key:"theme"}];return J.language&&w.push({label:`${t("Common.dropdownMenu.language")} ${J.lang==="zh-CN"?"EN":"中文"}`,key:"language"}),w.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&&w.push({label:t("Common.dropdownMenu.report"),key:"report"}),w.push({label:t("Common.dropdownMenu.info"),key:"info"},{label:t("Common.dropdownMenu.logout"),key:"logout"}),w},B=async w=>{w==="logout"&&Ud(),w==="theme"&&x(!J.theme),w==="language"&&Xa(),w==="info"&&n.push("/custom/my"),w==="report"&&n.push("/custom/report"),w==="android"&&window.open("http://miiot.partexiot.cn/dk7u"),w==="ios"&&window.open("https://apps.apple.com/cn/app/id1587313547"),w==="chrome"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/chrome_installer.exe"),w==="edge"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/MicrosoftEdgeSetup.exe"),w==="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"),w==="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")},D=()=>{qz().then(()=>{a.success({content:"续订请求已发送,七个工作日内将会有专人联系",duration:3e3})}).catch(()=>{a.error({content:()=>t("Notice.error"),duration:3e3})})},A=()=>{if(z.tenantStatus===0&&z.renewalStatus===0){const w=document.getElementById("app");w&&w.classList.add("outrange"),a.info({action:()=>h.h(R.NFlex,{size:[15,15]},{default:()=>h.h(R.NButton,{class:"button-primary","on-click":()=>{D()}},{default:()=>"立即续订"})}),closable:!1,content:`您的订阅已于${Fr(z.endTime)}到期,如需继续使用请联系我们`,title:"到期提示"})}if(z.tenantStatus===2&&z.renewalStatus===0){let w=`您的订阅即将于${Fr(z.endTime)}到期,请联系管理员进行续订`,b=[h.h(R.NButton,{secondary:!0,"on-click":()=>{a.destroyAll()}},{default:()=>"了解"})];z.kind===99&&(w=`您的订阅即将于${Fr(z.endTime)}到期,为保证持续有效的提供服务请立即续订`,b=[h.h(R.NButton,{secondary:!0,"on-click":()=>{a.destroyAll()}},{default:()=>"稍后提示我"}),h.h(R.NButton,{class:"button-primary","on-click":()=>{D()}},{default:()=>"立即续订"})]),a.info({action:()=>h.h(R.NFlex,{size:[15,15]},{default:()=>b}),closable:!1,content:w,title:"温馨提示"})}},_=()=>{n.push(J.platformUrl)};"backdropFilter"in document.documentElement.style||"WebkitBackdropFilter"in document.documentElement.style||document.body.classList.add("not-support-backdrop");const C=()=>{if(z.tenantStatus===0){const w=document.body;w&&w.classList.add("outrange")}};return h.onMounted(()=>{A(),c(r.path),C()}),h.watch(()=>r.path,w=>{c(w),C()}),h.watch(()=>J.needUpdate,w=>{if(w){s.value=setInterval(()=>{l.value=l.value-1,l.value<=0&&(clearInterval(window.versionMonitor),clearInterval(s.value),s.value=void 0,b.destroy())},1e3);const b=a.create({title:"检测到系统有新版本需要更新",content:()=>`是否立即更新?更新需要重新加载页面,请确保所有项目都已经保存完毕。${l.value}秒后自动关闭`,meta:Fr(new Date,"yyyy-MM-dd hh:mm:ss"),onClose:()=>{clearInterval(window.versionMonitor)},action:()=>h.h(R.NFlex,{justify:"space-between"},{default:()=>[h.h(R.NButton,{quaternary:!0,onClick:()=>{clearInterval(window.versionMonitor),b.destroy()}},{default:()=>"稍后"}),h.h(R.NButton,{type:"primary",onClick:()=>{window.location.reload()}},{default:()=>"更新"})]})})}}),{userStore:z,commonStore:J,activeMenu:o,platformOption:u,showMenu:i,fnSetLang:Xa,setDropdownMenu:y,renderMenuLabel:v,renderMenuLabel2:g,renderMenuIcon:p,indexClick:_,platformClick:m,dropdownClick:B,changeTheme:x,closeModel:E}}}),fG={class:"oc-header"},dG={class:"menu"};function hG(e,t,r,n,a,o){const i=h.resolveComponent("IconGridDots"),s=h.resolveComponent("NIcon"),l=h.resolveComponent("NButton"),u=h.resolveComponent("NDropdown"),x=h.resolveComponent("IconNavigation"),c=h.resolveComponent("NMenu"),d=h.resolveComponent("Pop"),f=h.resolveComponent("Message"),v=h.resolveComponent("IconWeatherMoon"),g=h.resolveComponent("IconWeatherSunny"),p=h.resolveComponent("IconUser"),m=h.resolveComponent("NDrawerContent"),E=h.resolveComponent("NDrawer");return h.openBlock(),h.createElementBlock("header",fG,[e.platformOption.length>1&&e.platformShow?(h.openBlock(),h.createBlock(u,{key:0,trigger:"hover",placement:"bottom-start",size:"huge",options:e.platformOption,onSelect:e.platformClick},{default:h.withCtx(()=>[h.createVNode(l,{style:{padding:"0 14px 0 0"}},{icon:h.withCtx(()=>[h.createVNode(s,null,{default:h.withCtx(()=>[h.createVNode(i)]),_:1})]),_:1})]),_:1},8,["options","onSelect"])):h.createCommentVNode("",!0),h.createElementVNode("a",{href:"javascript:;",class:"logo",onClick:t[0]||(t[0]=(...y)=>e.indexClick&&e.indexClick(...y))}),e.commonStore.isPad?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("a",{key:1,href:"javascript:;",class:"platform-txt",onClick:t[1]||(t[1]=(...y)=>e.indexClick&&e.indexClick(...y))}," | "+h.toDisplayString(e.commonStore.platformName()),1)),h.createElementVNode("div",dG,[e.commonStore.isPad?(h.openBlock(),h.createBlock(l,{key:0,onClick:t[2]||(t[2]=y=>e.showMenu=!0)},{icon:h.withCtx(()=>[h.createVNode(s,null,{default:h.withCtx(()=>[h.createVNode(x)]),_:1})]),_:1})):(h.openBlock(),h.createBlock(c,{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?(h.openBlock(),h.createBlock(d,{key:2})):h.createCommentVNode("",!0),e.message&&!e.commonStore.isPad?(h.openBlock(),h.createBlock(f,{key:3})):h.createCommentVNode("",!0),e.commonStore.isPad?h.createCommentVNode("",!0):(h.openBlock(),h.createBlock(l,{key:4,style:{"margin-left":"15px"},onClick:t[3]||(t[3]=y=>e.changeTheme(!e.commonStore.theme))},{icon:h.withCtx(()=>[h.withDirectives(h.createVNode(s,{color:"#8e54c8"},{default:h.withCtx(()=>[h.createVNode(v)]),_:1},512),[[h.vShow,e.commonStore.theme]]),h.withDirectives(h.createVNode(s,{color:"#f2a651"},{default:h.withCtx(()=>[h.createVNode(g)]),_:1},512),[[h.vShow,!e.commonStore.theme]])]),_:1})),e.commonStore.language&&!e.commonStore.isPad?(h.openBlock(),h.createBlock(l,{key:5,onClick:t[4]||(t[4]=y=>e.fnSetLang())},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(e.commonStore.lang==="zh-CN"?"EN":"中文"),1)]),_:1})):h.createCommentVNode("",!0),e.userStore.name?(h.openBlock(),h.createBlock(u,{key:6,trigger:"click",placement:"bottom-end",options:e.setDropdownMenu(),onSelect:e.dropdownClick},{default:h.withCtx(()=>[h.createVNode(l,{text:"",class:"user",title:e.userStore.name},h.createSlots({default:h.withCtx(()=>[e.commonStore.isPad?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[h.createTextVNode(h.toDisplayString(e.userStore.name),1)],64))]),_:2},[e.commonStore.isPad?{name:"icon",fn:h.withCtx(()=>[h.createVNode(s,null,{default:h.withCtx(()=>[h.createVNode(p)]),_:1})]),key:"0"}:void 0]),1032,["title"])]),_:1},8,["options","onSelect"])):h.createCommentVNode("",!0)]),h.createVNode(E,{show:e.showMenu,"onUpdate:show":t[5]||(t[5]=y=>e.showMenu=y)},{default:h.withCtx(()=>[h.createVNode(m,{title:e.commonStore.platformName(),"native-scrollbar":!1,closable:""},{default:h.withCtx(()=>[h.createVNode(c,{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 iC=ae(cG,[["render",hG]]),vG=h.defineComponent({name:"OcImporter",components:{IconDismiss:Zn,IconArrowClockwise:Ya,IconMailInboxAdd:Pi,IconCloudArrowDown:X0,NModal:R.NModal,NCard:R.NCard,NFlex:R.NFlex,NUpload:R.NUpload,NButton:R.NButton,NTooltip:R.NTooltip,NIcon:R.NIcon,NDataTable:R.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}=Qt.useI18n(),n=R.useNotification(),a=h.ref(!1),o=h.ref(!1),i=h.ref({page:1,pageCount:1,pageSize:30}),s=h.ref([{title:"#",width:60,align:"center",key:"index",render(g,p){return h.h("span",{},{default:()=>p+1})}},{title:r("Common.importer.fileName"),key:"jobName",fixed:"left"},{title:r("Common.importer.status"),key:"jobStatus",width:120,render(g){let p=r("Common.processing");return g.jobStatus===1&&(p=r("Common.success")),g.jobStatus===2&&(p=r("Common.failed")),h.h("span",{},{default:()=>p})}},{title:r("Common.importer.createTime"),key:"commitTime",width:200,render(g){return h.h("div",{},{default:()=>Fr(g.commitTime,"yyyy-MM-dd hh:mm:ss")})}},{title:r("Common.action"),key:"action",align:"center",fixed:"right",width:120,render(g){return vn([{type:"custom",disabled:g.jobStatus===0,onClick:()=>{window.open(g.downloadUrl)},icon:Ni,color:"success",tooltipText:()=>r("Common.importer.btnDownload")}])}}]),l=h.ref([]),u=()=>{t("update:show",!1)},x=g=>{i.value.page=g,f()},c=g=>{i.value.pageSize=g,i.value.page=1,f()},d=g=>new Promise((p,m)=>{g.file.file&&nC({jobType:"IMPORT",jobTypeName:e.data.type,jobParams:e.data.params,file:g.file.file}).then(()=>{f(),p()}).catch(()=>{f(),m()}),m()}),f=()=>{o.value=!0,aC({jobType:"IMPORT",jobTypeName:e.data.type,query:i.value}).then(g=>{o.value=!1,l.value=g.records,i.value=g.query}).catch(()=>{o.value=!1})},v=()=>{e.data.steam?Qz(e.data.file).then(g=>{const p=document.createElement("a");p.style.display="none",p.download="刀组品号导入模板.xls",p.href=URL.createObjectURL(g),document.body.appendChild(p),p.click(),URL.revokeObjectURL(p.href),document.body.removeChild(p)}).catch(()=>{n.error({content:()=>r("Notice.error"),duration:3e3})}):window.open(`${e.data.file}?v=${Date.now()}`)};return h.watch(()=>e.show,g=>{a.value=g,g&&(i.value={page:1,pageCount:1,pageSize:30},f())}),{modal:a,columns:s,coldata:l,query:i,loading:o,init:f,closeModel:u,pageChange:x,pageSizeChange:c,beforeUpload:d,downloadFile:v}}}),pG={class:"oc-header-download"};function gG(e,t,r,n,a,o){const i=h.resolveComponent("IconMailInboxAdd"),s=h.resolveComponent("NIcon"),l=h.resolveComponent("NButton"),u=h.resolveComponent("NUpload"),x=h.resolveComponent("IconCloudArrowDown"),c=h.resolveComponent("IconArrowClockwise"),d=h.resolveComponent("NTooltip"),f=h.resolveComponent("IconDismiss"),v=h.resolveComponent("NFlex"),g=h.resolveComponent("NDataTable"),p=h.resolveComponent("NCard"),m=h.resolveComponent("NModal");return h.openBlock(),h.createBlock(m,{show:e.modal,"onUpdate:show":t[0]||(t[0]=E=>e.modal=E),"on-mask-click":e.closeModel},{default:h.withCtx(()=>[h.createVNode(p,{style:{width:"900px"}},{header:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(e.$t("Common.importer.title"))+" ",1),h.createElementVNode("span",pG,h.toDisplayString(e.$t("Common.validDays")),1)]),"header-extra":h.withCtx(()=>[h.createVNode(v,{justify:"end",wrap:!1},{default:h.withCtx(()=>[h.createVNode(u,{"on-before-upload":e.beforeUpload,accept:".xlsx,.xls","show-file-list":!1},{default:h.withCtx(()=>[h.createVNode(l,null,{icon:h.withCtx(()=>[h.createVNode(s,null,{default:h.withCtx(()=>[h.createVNode(i)]),_:1})]),default:h.withCtx(()=>[h.createTextVNode(" "+h.toDisplayString(e.$t("Common.importer.file")),1)]),_:1})]),_:1},8,["on-before-upload"]),h.renderSlot(e.$slots,"default"),h.createVNode(l,{onClick:e.downloadFile},{icon:h.withCtx(()=>[h.createVNode(s,null,{default:h.withCtx(()=>[h.createVNode(x)]),_:1})]),default:h.withCtx(()=>[h.createTextVNode(" "+h.toDisplayString(e.$t("Common.importer.download")),1)]),_:1},8,["onClick"]),h.createVNode(d,{trigger:"hover"},{trigger:h.withCtx(()=>[h.createVNode(l,{loading:e.loading,onClick:e.init},{icon:h.withCtx(()=>[h.createVNode(s,null,{default:h.withCtx(()=>[h.createVNode(c)]),_:1})]),_:1},8,["loading","onClick"])]),default:h.withCtx(()=>[h.createTextVNode(" "+h.toDisplayString(e.$t("Common.refresh")),1)]),_:1}),h.createVNode(l,{quaternary:"",onClick:e.closeModel},{icon:h.withCtx(()=>[h.createVNode(s,null,{default:h.withCtx(()=>[h.createVNode(f)]),_:1})]),_:1},8,["onClick"])]),_:3})]),default:h.withCtx(()=>[h.createVNode(g,{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 Wd=ae(vG,[["render",gG]]),mG=h.defineComponent({name:"OcLogin",components:{NTabs:R.NTabs,NTabPane:R.NTabPane,NForm:R.NForm,NFormItem:R.NFormItem,NDropdown:R.NDropdown,NInput:R.NInput,NButton:R.NButton,NGrid:R.NGrid,NGi:R.NGi,NIcon:R.NIcon,NPopover:R.NPopover,IconWeatherSunny:H0,IconWeatherMoon:G0},props:{bg:{type:String,default:void 0},version:{type:String,default:""},info:{required:!1,type:Object,default:()=>({href:"",text:""})}},setup(){const{t:e}=Qt.useI18n(),t=R.useNotification(),r=Ht.useRouter(),n=h.ref(gt("loginTab","1")),a=h.ref(),o=h.ref(),i=h.ref(),s=h.ref(),l=h.ref(!1),u=h.ref(!1),x=h.ref(!1),c=h.ref(!1),d=h.ref({phone:"",name:"",password:""}),f=h.ref({name:{required:!0,message:()=>e("Common.login.userNameMessage"),trigger:"blur"},phone:{required:!0,validator:(M,L)=>L?/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(L):!1,message:()=>e("Common.login.mobileMessage"),trigger:"blur"},password:{required:!0,message:()=>e("Common.login.passwordMessage"),trigger:"input"}}),v=h.ref([]),g=h.ref([]),p=h.ref([]),m=h.ref([]),E=()=>{const M=gt("loginOption",{}),L=[];Object.keys(M).forEach(O=>{L.push({label:O,key:O})}),v.value=L,g.value=L},y=()=>{const M=gt("phoneOption",{}),L=[];Object.keys(M).forEach(O=>{L.push({label:O,key:O})}),p.value=L,m.value=L},B=M=>{_t("token",M,0),$l().then(L=>{t.success({content:()=>e("Notice.success"),duration:3e3}),L.kind!==1&&r.replace(J.platformUrl)}).catch(()=>{t.error({content:()=>e("Notice.error"),duration:3e3}),d.value.password="",u.value=!1})},D=()=>{var M,L;u.value||(u.value=!0,n.value==="0"?(M=o.value)==null||M.validate(O=>{O?u.value=!1:Wm({type:n.value,...d.value}).then(V=>{const $=gt("loginOption",{});$[d.value.name]=!0,_t("loginOption",$,0),B(V)}).catch(()=>{d.value.password="",u.value=!1})}):(L=a.value)==null||L.validate(O=>{O?u.value=!1:Wm({type:n.value,...d.value}).then(V=>{const $=gt("phoneOption",{});$[d.value.name]=!0,_t("phoneOption",$,0),B(V)}).catch(()=>{d.value.password="",u.value=!1})}))},A=M=>{d.value.name=M;const L=g.value.filter(O=>O.label.indexOf(M)>-1);v.value=L,L.length===0?c.value=!1:c.value=!0},_=M=>{d.value.name=M,c.value=!1,i.value.focus(),setTimeout(()=>{var L;(L=o.value)==null||L.restoreValidation()},80)},C=M=>{var L;v.value.length===0?c.value=!1:c.value=M,(L=o.value)==null||L.restoreValidation()},w=M=>{d.value.phone=M;const L=m.value.filter(O=>O.label.indexOf(M)>-1);p.value=L,L.length===0?x.value=!1:x.value=!0},b=M=>{d.value.phone=M,x.value=!1,s.value.focus(),setTimeout(()=>{var L;(L=a.value)==null||L.restoreValidation()},80)},F=M=>{var L;p.value.length===0?x.value=!1:x.value=M,(L=a.value)==null||L.restoreValidation()},S=M=>{l.value=M,Mi(M),_t("theme",M,0)},P=M=>{var L,O;n.value=M,d.value={phone:"",name:"",password:""},_t("loginTab",M,0),(L=o.value)==null||L.restoreValidation(),(O=a.value)==null||O.restoreValidation()},T=M=>h.h("div",{style:{position:"relative"}},{default:()=>[h.h("div",{},{default:()=>M.label}),h.h(Zn,{class:"oc-login-drop-menu",onclick:L=>{L.stopPropagation(),L.stopImmediatePropagation();const O=gt("loginOption",{});delete O[M.label],_t("loginOption",O,0),E();const V=d.value.name,$=g.value.filter(I=>I.label.indexOf(V)>-1);v.value=$}},{default:()=>""})]}),N=M=>h.h("div",{style:{position:"relative"}},{default:()=>[h.h("div",{},{default:()=>M.label}),h.h(Zn,{class:"oc-login-drop-menu",onclick:L=>{L.stopPropagation(),L.stopImmediatePropagation();const O=gt("phoneOption",{});delete O[M.label],_t("phoneOption",O,0),y();const V=d.value.name,$=m.value.filter(I=>I.label.indexOf(V)>-1);p.value=$}},{default:()=>""})]});return zl(),ro("token"),E(),y(),{tabs:n,commonStore:J,pwdRef:i,pwdPhoneRef:s,formRef:o,formPhoneRef:a,formValue:d,formRules:f,showPhoneDropdown:x,showNameDropdown:c,optionsName:v,optionsPhone:p,loading:u,theme:l,submit:D,tabChange:P,nameChange:A,phoneChange:w,changeTheme:S,fnSetLang:Xa,dropNameSelect:_,dropPhoneSelect:b,showDropdownNameChange:C,showDropdownPhoneChange:F,renderDropdownNameLabel:T,renderDropdownPhoneLabel:N}}}),EG={class:"oc-login"},yG=h.createElementVNode("img",{src:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/login.png",alt:"logo",class:"oc-login-img"},null,-1),CG=[yG],BG={class:"oc-login-right"},AG={class:"oc-login-language"},DG=h.createElementVNode("div",{class:"oc-login-title"},null,-1),_G={class:"oc-login-platform"},wG={class:"oc-login-form"},FG=h.createElementVNode("br",null,null,-1),bG=h.createElementVNode("br",null,null,-1),SG={class:"oc-login-submit"},kG=["href"],TG=h.createElementVNode("div",{class:"oc-google-play"},null,-1),NG=h.createElementVNode("img",{src:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/android_qr.png",alt:"AndroidQr",width:"300",height:"300"},null,-1),PG=h.createElementVNode("div",{class:"oc-app-store"},null,-1),MG=h.createElementVNode("img",{src:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/ios_qr.png",alt:"iOSQr",width:"300",height:"300"},null,-1),IG={class:"oc-login-footer"},LG=h.createElementVNode("span",{style:{"font-family":"Arial, Helvetica, sans-serif"}},"©",-1),OG=h.createElementVNode("a",{href:"https://beian.miit.gov.cn/",target:"_blank",class:"oc-footer-record"}," 沪ICP备 18025935号-3 ",-1);function RG(e,t,r,n,a,o){const i=h.resolveComponent("IconWeatherMoon"),s=h.resolveComponent("NIcon"),l=h.resolveComponent("IconWeatherSunny"),u=h.resolveComponent("NButton"),x=h.resolveComponent("NInput"),c=h.resolveComponent("NDropdown"),d=h.resolveComponent("NFormItem"),f=h.resolveComponent("NForm"),v=h.resolveComponent("NTabPane"),g=h.resolveComponent("NTabs"),p=h.resolveComponent("NPopover"),m=h.resolveComponent("NGi"),E=h.resolveComponent("NGrid");return h.openBlock(),h.createElementBlock("div",EG,[h.createElementVNode("div",{class:"oc-login-left",style:h.normalizeStyle(e.bg?`background-image: url(${e.bg})`:"")},CG,4),h.createElementVNode("div",BG,[h.createElementVNode("div",AG,[h.createVNode(u,{onClick:t[0]||(t[0]=y=>e.changeTheme(!e.theme))},{icon:h.withCtx(()=>[h.withDirectives(h.createVNode(s,{color:"#8e54c8"},{default:h.withCtx(()=>[h.createVNode(i)]),_:1},512),[[h.vShow,e.theme]]),h.withDirectives(h.createVNode(s,{color:"#f2a651"},{default:h.withCtx(()=>[h.createVNode(l)]),_:1},512),[[h.vShow,!e.theme]])]),_:1}),e.commonStore.language?(h.openBlock(),h.createBlock(u,{key:0,onClick:t[1]||(t[1]=y=>e.fnSetLang())},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(e.commonStore.lang==="zh-CN"?"EN":"中文"),1)]),_:1})):h.createCommentVNode("",!0)]),DG,h.createElementVNode("div",_G,h.toDisplayString(e.commonStore.platformName()),1),h.createElementVNode("div",wG,[h.createVNode(g,{value:e.tabs,"on-update:value":e.tabChange,type:"segment","justify-content":"end",animated:""},{default:h.withCtx(()=>[h.createVNode(v,{name:"1",tab:e.$t("Common.login.mobile")},{default:h.withCtx(()=>[FG,h.createVNode(f,{ref:"formPhoneRef",model:e.formValue,rules:e.formRules,"show-require-mark":!1,"label-placement":"top",onKeyup:h.withKeys(e.submit,["enter"])},{default:h.withCtx(()=>[h.createVNode(d,{label:e.$t("Common.login.mobile"),path:"phone"},{default:h.withCtx(()=>[h.createVNode(c,{show:e.showPhoneDropdown,options:e.optionsPhone,"render-label":e.renderDropdownPhoneLabel,width:"trigger",onClickoutside:t[5]||(t[5]=()=>{e.showPhoneDropdown=!1}),onSelect:e.dropPhoneSelect},{default:h.withCtx(()=>[h.createVNode(x,{value:e.formValue.phone,"onUpdate:value":t[2]||(t[2]=y=>e.formValue.phone=y),placeholder:e.$t("Common.login.mobilePlaceholder"),"on-update:value":e.phoneChange,onClick:t[3]||(t[3]=y=>e.showDropdownPhoneChange(!0)),onFocus:t[4]||(t[4]=y=>e.showDropdownPhoneChange(!0))},null,8,["value","placeholder","on-update:value"])]),_:1},8,["show","options","render-label","onSelect"])]),_:1},8,["label"]),h.createVNode(d,{label:e.$t("Common.login.password"),path:"password"},{default:h.withCtx(()=>[h.createVNode(x,{ref:"pwdPhoneRef",value:e.formValue.password,"onUpdate:value":t[6]||(t[6]=y=>e.formValue.password=y),type:"password","show-password-on":"click",placeholder:e.$t("Common.login.passwordPlaceholder"),onFocus:t[7]||(t[7]=y=>e.showDropdownPhoneChange(!1))},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules","onKeyup"])]),_:1},8,["tab"]),h.createVNode(v,{name:"0",tab:e.$t("Common.login.userName")},{default:h.withCtx(()=>[bG,h.createVNode(f,{ref:"formRef",model:e.formValue,rules:e.formRules,"show-require-mark":!1,"label-placement":"top",onKeyup:h.withKeys(e.submit,["enter"])},{default:h.withCtx(()=>[h.createVNode(d,{label:e.$t("Common.login.userName"),path:"name"},{default:h.withCtx(()=>[h.createVNode(c,{show:e.showNameDropdown,options:e.optionsName,"render-label":e.renderDropdownNameLabel,width:"trigger",onClickoutside:t[11]||(t[11]=()=>{e.showNameDropdown=!1}),onSelect:e.dropNameSelect},{default:h.withCtx(()=>[h.createVNode(x,{value:e.formValue.name,"onUpdate:value":t[8]||(t[8]=y=>e.formValue.name=y),placeholder:e.$t("Common.login.userNamePlaceholder"),"on-update:value":e.nameChange,onClick:t[9]||(t[9]=y=>e.showDropdownNameChange(!0)),onFocus:t[10]||(t[10]=y=>e.showDropdownNameChange(!0))},null,8,["value","placeholder","on-update:value"])]),_:1},8,["show","options","render-label","onSelect"])]),_:1},8,["label"]),h.createVNode(d,{label:e.$t("Common.login.password"),path:"password"},{default:h.withCtx(()=>[h.createVNode(x,{ref:"pwdRef",value:e.formValue.password,"onUpdate:value":t[12]||(t[12]=y=>e.formValue.password=y),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"]),h.createElementVNode("div",SG,[h.createVNode(u,{loading:e.loading,class:"button-primary",onClick:e.submit},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(e.$t("Common.login.in")),1)]),_:1},8,["loading","onClick"])]),e.info.href?(h.openBlock(),h.createElementBlock("a",{key:0,href:e.info.href,class:"oc-login-other"},h.toDisplayString(e.info.text),9,kG)):h.createCommentVNode("",!0),h.createVNode(E,{"x-gap":"15",cols:2},{default:h.withCtx(()=>[h.createVNode(m,null,{default:h.withCtx(()=>[h.createVNode(p,{trigger:"hover",placement:"top"},{trigger:h.withCtx(()=>[TG]),default:h.withCtx(()=>[NG]),_:1})]),_:1}),h.createVNode(m,null,{default:h.withCtx(()=>[h.createVNode(p,{trigger:"hover",placement:"top"},{trigger:h.withCtx(()=>[PG]),default:h.withCtx(()=>[MG]),_:1})]),_:1})]),_:1})]),h.createElementVNode("footer",IG,[h.createTextVNode(" Copyright "),LG,h.createTextVNode(" 2020-2024 "+h.toDisplayString(e.$t("Common.title"))+" ",1),e.version?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[h.createTextVNode("v"+h.toDisplayString(e.version)+" ",1)],64)):h.createCommentVNode("",!0),OG])])])}const sC=ae(mG,[["render",RG]]),VG=h.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=h.ref(!1),r=h.ref(0),n=s=>1-Math.pow(1-s,5),a=s=>e.format?e.format(s):s;function o(s,l,u=e.duration){const x=()=>{const d=performance.now(),f=Math.min(d-c,u),v=s+(l-s)*n(f/u);if(f===u){r.value=a(Number(e.value)),t.value=!1;return}const g=Number(v.toFixed(e.precision));r.value=a(g),requestAnimationFrame(x)},c=performance.now();x()}const i=(s=0,l=e.value)=>{t.value=!0,r.value=a(s),String(s)!==String(l)&&o(s,Number(l))};return h.watch(()=>e.value,(s,l)=>{i(Number(l)||0,Number(s))}),h.onMounted(()=>{i()}),{displayedValueRef:r}}});function $G(e,t,r,n,a,o){return h.toDisplayString(e.displayedValueRef)}const Yd=ae(VG,[["render",$G]]),zG=h.defineComponent({name:"OcLogo",components:{NGrid:R.NGrid,NGi:R.NGi,NDivider:R.NDivider,NumberRoll:Yd},props:{text:{type:String,default:"智能效率监测平台"}},setup(){const e=h.ref(Date.now()),t=h.ref(void 0),r=n=>Fr(n,"yyyy-MM-dd hh:mm:ss");return h.onMounted(()=>{t.value=setInterval(()=>{e.value=Date.now()},1e3)}),h.onBeforeUnmount(()=>{clearInterval(t.value),t.value=void 0}),{time:e,numFormat:r}}}),GG=h.createElementVNode("div",{class:"oc-logo"},null,-1);function HG(e,t,r,n,a,o){const i=h.resolveComponent("NGi"),s=h.resolveComponent("NDivider"),l=h.resolveComponent("NumberRoll"),u=h.resolveComponent("NGrid");return h.openBlock(),h.createBlock(u,{cols:5,class:"oc-dashboard-logo"},{default:h.withCtx(()=>[h.createVNode(i,{span:"1",class:"flex-center-left"},{default:h.withCtx(()=>[GG]),_:1}),h.createVNode(i,{span:"3",class:"flex-center"},{default:h.withCtx(()=>[h.createVNode(s,{class:"oc-dashboard-title-show"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(e.text),1)]),_:1})]),_:1}),h.createVNode(i,{span:"1",class:"flex-center-right oc-time"},{default:h.withCtx(()=>[h.createVNode(l,{value:e.time,format:e.numFormat},null,8,["value","format"])]),_:1})]),_:1})}const lC=ae(zG,[["render",HG]]);R.darkTheme.common.cardColor="#32323b";R.darkTheme.common.primaryColor="#b274ef";R.darkTheme.common.primaryColorHover="#b274ef";R.darkTheme.common.borderRadius="16px";R.darkTheme.common.borderRadiusSmall="8px";R.darkTheme.DataTable.tdColor="#2d2d31";const uC={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"}},xC=R.darkTheme,UG=h.defineComponent({name:"OcMain",components:{NConfigProvider:R.NConfigProvider,NDialogProvider:R.NDialogProvider,NNotificationProvider:R.NNotificationProvider},setup(){return{zhCN:R.zhCN,dateZhCN:R.dateZhCN,commonStore:J,lightTheme:uC,darkTheme:xC}}});function WG(e,t,r,n,a,o){const i=h.resolveComponent("NNotificationProvider"),s=h.resolveComponent("NDialogProvider"),l=h.resolveComponent("NConfigProvider");return h.openBlock(),h.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,"inline-theme-disabled":"",abstract:""},{default:h.withCtx(()=>[h.createVNode(s,null,{default:h.withCtx(()=>[h.createVNode(i,{placement:"top"},{default:h.withCtx(()=>[h.renderSlot(e.$slots,"default")]),_:3})]),_:3})]),_:3},8,["theme","theme-overrides","locale","date-locale"])}const cC=ae(UG,[["render",WG]]),YG=e=>{const t=JSON.parse(JSON.stringify(e));return t.oldPassword=Ls(t.oldPassword),t.newPassword=Ls(t.newPassword),t.comfirmPassword=Ls(t.comfirmPassword),Bt("api/auth/user/modifyPassword",t)},XG=e=>Bt("api/auth/user/update",e),jG=h.defineComponent({name:"OcMy",components:{NGrid:R.NGrid,NGi:R.NGi,NForm:R.NForm,NFormItem:R.NFormItem,NInput:R.NInput,NButton:R.NButton},setup(){const{t:e}=Qt.useI18n(),t=R.useNotification(),r=h.ref(),n=h.ref(),a=h.ref(!1),o=h.ref({oldPassword:"",newPassword:"",comfirmPassword:""}),i=h.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=h.ref(z),l=h.ref({email:{required:!1,trigger:"blur",validator:(c,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:(c,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:o,formValue:s,pwdRules:i,formRules:l,loading:a,pwdSubmit:()=>{var c;a.value||(a.value=!0,(c=r.value)==null||c.validate(d=>{d?a.value=!1:YG(o.value).then(()=>{var f;o.value={oldPassword:"",newPassword:"",comfirmPassword:""},(f=r.value)==null||f.restoreValidation(),t.success({content:()=>e("Notice.success"),duration:3e3}),setTimeout(()=>{window.location.href="/login"},1e3)}).catch(()=>{a.value=!1})}))},formSubmit:()=>{var c;a.value||(a.value=!0,(c=n.value)==null||c.validate(d=>{d?a.value=!1:XG(s.value).then(()=>{t.success({content:()=>e("Notice.success"),duration:3e3}),a.value=!1,$l().catch(()=>null)}).catch(()=>{a.value=!1})}))}}}}),ZG={class:"com-card"},qG={class:"com-title"},KG=h.createElementVNode("br",null,null,-1),JG={class:"text-right"},QG={class:"com-card"},eH={class:"com-title"},tH=h.createElementVNode("br",null,null,-1),rH={class:"text-right"};function nH(e,t,r,n,a,o){const i=h.resolveComponent("NInput"),s=h.resolveComponent("NFormItem"),l=h.resolveComponent("NForm"),u=h.resolveComponent("NButton"),x=h.resolveComponent("NGi"),c=h.resolveComponent("NGrid");return h.openBlock(),h.createBlock(c,{"x-gap":"15","y-gap":"15",cols:2},{default:h.withCtx(()=>[h.createVNode(x,{span:"1"},{default:h.withCtx(()=>[h.createElementVNode("div",ZG,[h.createElementVNode("div",qG,h.toDisplayString(e.$t("Common.my.title")),1),KG,h.createVNode(l,{ref:"formRef",model:e.formValue,rules:e.formRules,"label-placement":"top"},{default:h.withCtx(()=>[h.createVNode(s,{label:e.$t("Common.my.tenantCode"),path:"tenantLoginCode"},{default:h.withCtx(()=>[h.createVNode(i,{value:e.formValue.tenantLoginCode,"onUpdate:value":t[0]||(t[0]=d=>e.formValue.tenantLoginCode=d),readonly:""},null,8,["value"])]),_:1},8,["label"]),h.createVNode(s,{label:e.$t("Common.my.tenantName"),path:"tenantName"},{default:h.withCtx(()=>[h.createVNode(i,{value:e.formValue.tenantName,"onUpdate:value":t[1]||(t[1]=d=>e.formValue.tenantName=d),readonly:""},null,8,["value"])]),_:1},8,["label"]),h.createVNode(s,{label:e.$t("Common.my.name"),path:"name"},{default:h.withCtx(()=>[h.createVNode(i,{value:e.formValue.name,"onUpdate:value":t[2]||(t[2]=d=>e.formValue.name=d),readonly:""},null,8,["value"])]),_:1},8,["label"]),h.createVNode(s,{label:e.$t("Common.my.email"),path:"email"},{default:h.withCtx(()=>[h.createVNode(i,{value:e.formValue.email,"onUpdate:value":t[3]||(t[3]=d=>e.formValue.email=d),placeholder:"邮箱"},null,8,["value"])]),_:1},8,["label"]),h.createVNode(s,{label:e.$t("Common.my.realName"),path:"realName"},{default:h.withCtx(()=>[h.createVNode(i,{value:e.formValue.realName,"onUpdate:value":t[4]||(t[4]=d=>e.formValue.realName=d),placeholder:"真实姓名"},null,8,["value"])]),_:1},8,["label"]),h.createVNode(s,{label:e.$t("Common.my.phone"),path:"phone"},{default:h.withCtx(()=>[h.createVNode(i,{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"]),h.createElementVNode("div",JG,[h.createVNode(u,{loading:e.loading,class:"button-primary",onClick:e.formSubmit},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(e.$t("Common.my.submit")),1)]),_:1},8,["loading","onClick"])])])]),_:1}),h.createVNode(x,{span:"1"},{default:h.withCtx(()=>[h.createElementVNode("div",QG,[h.createElementVNode("div",eH,h.toDisplayString(e.$t("Common.my.password")),1),tH,h.createVNode(l,{ref:"pwdRef",model:e.pwdValue,rules:e.pwdRules,"label-placement":"top"},{default:h.withCtx(()=>[h.createVNode(s,{label:e.$t("Common.my.oldPassword"),path:"oldPassword"},{default:h.withCtx(()=>[h.createVNode(i,{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"]),h.createVNode(s,{label:e.$t("Common.my.newPassword"),path:"newPassword"},{default:h.withCtx(()=>[h.createVNode(i,{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"]),h.createVNode(s,{label:e.$t("Common.my.checkPassword"),path:"comfirmPassword"},{default:h.withCtx(()=>[h.createVNode(i,{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"]),h.createElementVNode("div",rH,[h.createVNode(u,{loading:e.loading,class:"button-primary",onClick:e.pwdSubmit},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(e.$t("Common.my.submit")),1)]),_:1},8,["loading","onClick"])])])]),_:1})]),_:1})}const fC=ae(jG,[["render",nH]]);function aH(e){return new Promise((t,r)=>{Bt("api/manager/factory-params/detail",{keyName:e}).then(n=>{const a=JSON.parse(n.valueJson??"[]");t(a)}).catch(()=>{r()})})}const oH=h.defineComponent({name:"OcReport",components:{NFlex:R.NFlex,NDataTable:R.NDataTable,NDatePicker:R.NDatePicker,NInputGroup:R.NInputGroup,NInputGroupLabel:R.NInputGroupLabel},setup(){const{t:e}=Qt.useI18n(),t=h.ref(!0),r=R.useNotification(),n=h.ref([{title:"#",width:60,align:"center",key:"index",render(l,u){return h.h("span",{},{default:()=>u+1})}},{title:"名称",key:"name"},{title:"备注",key:"content"},{title:"操作",key:"action",align:"center",fixed:"right",width:120,render(l){return vn([{type:"custom",onClick:()=>{i(l.key)},icon:Ni,color:"success",tooltipText:"下载"}])}}]),a=h.ref([]),o=h.ref([Date.now(),Date.now()]),i=l=>{t.value=!0,nC({jobType:"EXPORT",jobTypeName:l,jobParams:JSON.stringify({startDate:o.value[0],endDate:o.value[1]})}).then(()=>{t.value=!1,r.success({content:()=>e("Notice.success"),duration:3e3}),xf(!0)}).catch(()=>{t.value=!1,r.error({content:()=>e("Notice.error"),duration:3e3})})},s=l=>l>Date.now();return aH("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:o,isRangeDateDisabled:s}}}),iH={class:"com-card"},sH=h.createElementVNode("br",null,null,-1);function lH(e,t,r,n,a,o){const i=h.resolveComponent("NInputGroupLabel"),s=h.resolveComponent("NDatePicker"),l=h.resolveComponent("NInputGroup"),u=h.resolveComponent("NFlex"),x=h.resolveComponent("n-data-table");return h.openBlock(),h.createElementBlock("div",iH,[h.createVNode(u,{justify:"end"},{default:h.withCtx(()=>[h.createVNode(l,null,{default:h.withCtx(()=>[h.createVNode(i,{class:"oc-group-label"},{default:h.withCtx(()=>[h.createTextVNode("日期")]),_:1}),h.createVNode(s,{value:e.range,"onUpdate:value":t[0]||(t[0]=c=>e.range=c),type:"daterange","is-date-disabled":e.isRangeDateDisabled,style:{width:"300px"}},null,8,["value","is-date-disabled"])]),_:1})]),_:1}),sH,h.createVNode(x,{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 dC=ae(oH,[["render",lH]]);var uH=ar,xH=function(){return uH.Date.now()},cH=xH,fH=/\s/;function dH(e){for(var t=e.length;t--&&fH.test(e.charAt(t)););return t}var hH=dH,vH=hH,pH=/^\s+/;function gH(e){return e&&e.slice(0,vH(e)+1).replace(pH,"")}var mH=gH,EH=zi,yH=go,CH="[object Symbol]";function BH(e){return typeof e=="symbol"||yH(e)&&EH(e)==CH}var AH=BH,DH=mH,Ym=gn,_H=AH,Xm=NaN,wH=/^[-+]0x[0-9a-f]+$/i,FH=/^0b[01]+$/i,bH=/^0o[0-7]+$/i,SH=parseInt;function kH(e){if(typeof e=="number")return e;if(_H(e))return Xm;if(Ym(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ym(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=DH(e);var r=FH.test(e);return r||bH.test(e)?SH(e.slice(2),r?2:8):wH.test(e)?Xm:+e}var TH=kH,NH=gn,Nx=cH,jm=TH,PH="Expected a function",MH=Math.max,IH=Math.min;function LH(e,t,r){var n,a,o,i,s,l,u=0,x=!1,c=!1,d=!0;if(typeof e!="function")throw new TypeError(PH);t=jm(t)||0,NH(r)&&(x=!!r.leading,c="maxWait"in r,o=c?MH(jm(r.maxWait)||0,t):o,d="trailing"in r?!!r.trailing:d);function f(A){var _=n,C=a;return n=a=void 0,u=A,i=e.apply(C,_),i}function v(A){return u=A,s=setTimeout(m,t),x?f(A):i}function g(A){var _=A-l,C=A-u,w=t-_;return c?IH(w,o-C):w}function p(A){var _=A-l,C=A-u;return l===void 0||_>=t||_<0||c&&C>=o}function m(){var A=Nx();if(p(A))return E(A);s=setTimeout(m,g(A))}function E(A){return s=void 0,d&&n?f(A):(n=a=void 0,i)}function y(){s!==void 0&&clearTimeout(s),u=0,n=l=a=s=void 0}function B(){return s===void 0?i:E(Nx())}function D(){var A=Nx(),_=p(A);if(n=arguments,a=this,l=A,_){if(s===void 0)return v(l);if(c)return clearTimeout(s),s=setTimeout(m,t),f(l)}return s===void 0&&(s=setTimeout(m,t)),i}return D.cancel=y,D.flush=B,D}var hC=LH;const vC=Ml(hC);function Xd(e,t=1e3){const r=vC(e,t);return{run:r,cancel:r.cancel,flush:r.flush}}var OH=hC,RH=gn,VH="Expected a function";function $H(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(VH);return RH(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),OH(e,t,{leading:n,maxWait:t,trailing:a})}var zH=$H;const GH=Ml(zH);function HH(e,t=1e3){const r=h.ref(e),n=h.computed(()=>GH((...a)=>r.value([...a]),t));return h.onUnmounted(()=>{n.value.cancel()}),{run:n.value,cancel:n.value.cancel,flush:n.value.flush}}function UH(e,t){const r=()=>gt(e,t==null?void 0:t.defaultValue);return[h.ref(r()),o=>{typeof o>"u"?ro(e):_t(e,o,(t==null?void 0:t.expired)||"1 Day")}]}function WH(e,t,r){const n=`useQuery-${e}`,a=h.ref(),o=h.ref(),i=h.ref(),s=h.ref(!1),l=h.ref("idle"),u=h.ref(),x=h.ref(0),c=h.ref(0),d=async()=>{if(!s.value){g(!0,"loading");try{let B;if(Array.isArray(t))B=await new Promise((A,_)=>{a.value=_,Promise.all(t.map(C=>C.call(null))).then(C=>{A(C)}).catch(C=>{_(C)})});else{const D=new Promise((A,_)=>{a.value=_});B=await Promise.race([D,t()])}g(!1,"success"),v(B),_t(n,B,0)}catch(B){p(B),g(!1,"error"),x.value>0&&(x.value=x.value-1,setTimeout(()=>{d()},c.value))}}},{run:f}=Xd(d,r!=null&&r.pollingInterval?r.pollingInterval-100>0?r.pollingInterval-100:0:300),v=B=>{let D=B;r!=null&&r.formatResult&&(D=r.formatResult(B)),o.value=D},g=(B,D)=>{s.value=B,D&&(l.value=D)},p=B=>{u.value=B},m=()=>{r9(),a.value&&a.value()},E=()=>{m(),f()},y=()=>{clearInterval(i.value)};if(r!=null&&r.retry&&r.pollingInterval===void 0&&(x.value=r.retry.retryCount||3,c.value=r.retry.retryInterval||1e3*2**3),r!=null&&r.initialData&&v(r.initialData()),r===void 0||r.initialData===void 0||r.cache===void 0||r.cache===!0)try{const B=gt(n,!1);B&&v(B)}catch{v(!1)}return(r===void 0||r.manual===void 0||r.manual===!1)&&f(),r!=null&&r.pollingInterval&&(i.value=setInterval(()=>{f()},r==null?void 0:r.pollingInterval)),h.onBeforeUnmount(()=>{y()}),{status:l,data:o,loading:s,error:u,stopPollingInterval:y,cancel:m,refetch:E}}var pC={exports:{}};(function(e,t){(function(n,a){e.exports=a()})(typeof self<"u"?self:ei,function(){return function(r){var n={};function a(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return r[o].call(i.exports,i,i.exports,a),i.l=!0,i.exports}return a.m=r,a.c=n,a.d=function(o,i,s){a.o(o,i)||Object.defineProperty(o,i,{configurable:!1,enumerable:!0,get:s})},a.n=function(o){var i=o&&o.__esModule?function(){return o.default}:function(){return o};return a.d(i,"a",i),i},a.o=function(o,i){return Object.prototype.hasOwnProperty.call(o,i)},a.p="",a(a.s=3)}([function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function i(s,l){this.width=l,this.height=s.length/l,this.data=s}return i.createEmpty=function(s,l){return new i(new Uint8ClampedArray(s*l),s)},i.prototype.get=function(s,l){return s<0||s>=this.width||l<0||l>=this.height?!1:!!this.data[l*this.width+s]},i.prototype.set=function(s,l,u){this.data[l*this.width+s]=u?1:0},i.prototype.setRegion=function(s,l,u,x,c){for(var d=l;d<l+x;d++)for(var f=s;f<s+u;f++)this.set(f,d,!!c)},i}();n.BitMatrix=o},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});var o=a(2);function i(l,u){return l^u}n.addOrSubtractGF=i;var s=function(){function l(u,x,c){this.primitive=u,this.size=x,this.generatorBase=c,this.expTable=new Array(this.size),this.logTable=new Array(this.size);for(var d=1,f=0;f<this.size;f++)this.expTable[f]=d,d=d*2,d>=this.size&&(d=(d^this.primitive)&this.size-1);for(var f=0;f<this.size-1;f++)this.logTable[this.expTable[f]]=f;this.zero=new o.default(this,Uint8ClampedArray.from([0])),this.one=new o.default(this,Uint8ClampedArray.from([1]))}return l.prototype.multiply=function(u,x){return u===0||x===0?0:this.expTable[(this.logTable[u]+this.logTable[x])%(this.size-1)]},l.prototype.inverse=function(u){if(u===0)throw new Error("Can't invert 0");return this.expTable[this.size-this.logTable[u]-1]},l.prototype.buildMonomial=function(u,x){if(u<0)throw new Error("Invalid monomial degree less than 0");if(x===0)return this.zero;var c=new Uint8ClampedArray(u+1);return c[0]=x,new o.default(this,c)},l.prototype.log=function(u){if(u===0)throw new Error("Can't take log(0)");return this.logTable[u]},l.prototype.exp=function(u){return this.expTable[u]},l}();n.default=s},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});var o=a(1),i=function(){function s(l,u){if(u.length===0)throw new Error("No coefficients.");this.field=l;var x=u.length;if(x>1&&u[0]===0){for(var c=1;c<x&&u[c]===0;)c++;if(c===x)this.coefficients=l.zero.coefficients;else{this.coefficients=new Uint8ClampedArray(x-c);for(var d=0;d<this.coefficients.length;d++)this.coefficients[d]=u[c+d]}}else this.coefficients=u}return s.prototype.degree=function(){return this.coefficients.length-1},s.prototype.isZero=function(){return this.coefficients[0]===0},s.prototype.getCoefficient=function(l){return this.coefficients[this.coefficients.length-1-l]},s.prototype.addOrSubtract=function(l){var u;if(this.isZero())return l;if(l.isZero())return this;var x=this.coefficients,c=l.coefficients;x.length>c.length&&(u=[c,x],x=u[0],c=u[1]);for(var d=new Uint8ClampedArray(c.length),f=c.length-x.length,v=0;v<f;v++)d[v]=c[v];for(var v=f;v<c.length;v++)d[v]=o.addOrSubtractGF(x[v-f],c[v]);return new s(this.field,d)},s.prototype.multiply=function(l){if(l===0)return this.field.zero;if(l===1)return this;for(var u=this.coefficients.length,x=new Uint8ClampedArray(u),c=0;c<u;c++)x[c]=this.field.multiply(this.coefficients[c],l);return new s(this.field,x)},s.prototype.multiplyPoly=function(l){if(this.isZero()||l.isZero())return this.field.zero;for(var u=this.coefficients,x=u.length,c=l.coefficients,d=c.length,f=new Uint8ClampedArray(x+d-1),v=0;v<x;v++)for(var g=u[v],p=0;p<d;p++)f[v+p]=o.addOrSubtractGF(f[v+p],this.field.multiply(g,c[p]));return new s(this.field,f)},s.prototype.multiplyByMonomial=function(l,u){if(l<0)throw new Error("Invalid degree less than 0");if(u===0)return this.field.zero;for(var x=this.coefficients.length,c=new Uint8ClampedArray(x+l),d=0;d<x;d++)c[d]=this.field.multiply(this.coefficients[d],u);return new s(this.field,c)},s.prototype.evaluateAt=function(l){var u=0;if(l===0)return this.getCoefficient(0);var x=this.coefficients.length;if(l===1)return this.coefficients.forEach(function(d){u=o.addOrSubtractGF(u,d)}),u;u=this.coefficients[0];for(var c=1;c<x;c++)u=o.addOrSubtractGF(this.field.multiply(l,u),this.coefficients[c]);return u},s}();n.default=i},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});var o=a(4),i=a(5),s=a(11),l=a(12);function u(d){var f=l.locate(d);if(!f)return null;for(var v=0,g=f;v<g.length;v++){var p=g[v],m=s.extract(d,p),E=i.decode(m.matrix);if(E)return{binaryData:E.bytes,data:E.text,chunks:E.chunks,version:E.version,location:{topRightCorner:m.mappingFunction(p.dimension,0),topLeftCorner:m.mappingFunction(0,0),bottomRightCorner:m.mappingFunction(p.dimension,p.dimension),bottomLeftCorner:m.mappingFunction(0,p.dimension),topRightFinderPattern:p.topRight,topLeftFinderPattern:p.topLeft,bottomLeftFinderPattern:p.bottomLeft,bottomRightAlignmentPattern:p.alignmentPattern}}}return null}var x={inversionAttempts:"attemptBoth"};function c(d,f,v,g){g===void 0&&(g={});var p=x;Object.keys(p||{}).forEach(function(_){p[_]=g[_]||p[_]});var m=p.inversionAttempts==="attemptBoth"||p.inversionAttempts==="invertFirst",E=p.inversionAttempts==="onlyInvert"||p.inversionAttempts==="invertFirst",y=o.binarize(d,f,v,m),B=y.binarized,D=y.inverted,A=u(E?D:B);return!A&&(p.inversionAttempts==="attemptBoth"||p.inversionAttempts==="invertFirst")&&(A=u(E?B:D)),A}c.default=c,n.default=c},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});var o=a(0),i=8,s=24;function l(c,d,f){return c<d?d:c>f?f:c}var u=function(){function c(d,f){this.width=d,this.data=new Uint8ClampedArray(d*f)}return c.prototype.get=function(d,f){return this.data[f*this.width+d]},c.prototype.set=function(d,f,v){this.data[f*this.width+d]=v},c}();function x(c,d,f,v){if(c.length!==d*f*4)throw new Error("Malformed data passed to binarizer.");for(var g=new u(d,f),p=0;p<d;p++)for(var m=0;m<f;m++){var E=c[(m*d+p)*4+0],y=c[(m*d+p)*4+1],B=c[(m*d+p)*4+2];g.set(p,m,.2126*E+.7152*y+.0722*B)}for(var D=Math.ceil(d/i),A=Math.ceil(f/i),_=new u(D,A),C=0;C<A;C++)for(var w=0;w<D;w++){for(var b=0,F=1/0,S=0,m=0;m<i;m++)for(var p=0;p<i;p++){var P=g.get(w*i+p,C*i+m);b+=P,F=Math.min(F,P),S=Math.max(S,P)}var T=b/Math.pow(i,2);if(S-F<=s&&(T=F/2,C>0&&w>0)){var N=(_.get(w,C-1)+2*_.get(w-1,C)+_.get(w-1,C-1))/4;F<N&&(T=N)}_.set(w,C,T)}var M=o.BitMatrix.createEmpty(d,f),L=null;v&&(L=o.BitMatrix.createEmpty(d,f));for(var C=0;C<A;C++)for(var w=0;w<D;w++){for(var O=l(w,2,D-3),V=l(C,2,A-3),b=0,$=-2;$<=2;$++)for(var I=-2;I<=2;I++)b+=_.get(O+$,V+I);for(var U=b/25,$=0;$<i;$++)for(var I=0;I<i;I++){var p=w*i+$,m=C*i+I,j=g.get(p,m);M.set(p,m,j<=U),v&&L.set(p,m,!(j<=U))}}return v?{binarized:M,inverted:L}:{binarized:M}}n.binarize=x},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});var o=a(0),i=a(6),s=a(9),l=a(10);function u(B,D){for(var A=B^D,_=0;A;)_++,A&=A-1;return _}function x(B,D){return D<<1|B}var c=[{bits:21522,formatInfo:{errorCorrectionLevel:1,dataMask:0}},{bits:20773,formatInfo:{errorCorrectionLevel:1,dataMask:1}},{bits:24188,formatInfo:{errorCorrectionLevel:1,dataMask:2}},{bits:23371,formatInfo:{errorCorrectionLevel:1,dataMask:3}},{bits:17913,formatInfo:{errorCorrectionLevel:1,dataMask:4}},{bits:16590,formatInfo:{errorCorrectionLevel:1,dataMask:5}},{bits:20375,formatInfo:{errorCorrectionLevel:1,dataMask:6}},{bits:19104,formatInfo:{errorCorrectionLevel:1,dataMask:7}},{bits:30660,formatInfo:{errorCorrectionLevel:0,dataMask:0}},{bits:29427,formatInfo:{errorCorrectionLevel:0,dataMask:1}},{bits:32170,formatInfo:{errorCorrectionLevel:0,dataMask:2}},{bits:30877,formatInfo:{errorCorrectionLevel:0,dataMask:3}},{bits:26159,formatInfo:{errorCorrectionLevel:0,dataMask:4}},{bits:25368,formatInfo:{errorCorrectionLevel:0,dataMask:5}},{bits:27713,formatInfo:{errorCorrectionLevel:0,dataMask:6}},{bits:26998,formatInfo:{errorCorrectionLevel:0,dataMask:7}},{bits:5769,formatInfo:{errorCorrectionLevel:3,dataMask:0}},{bits:5054,formatInfo:{errorCorrectionLevel:3,dataMask:1}},{bits:7399,formatInfo:{errorCorrectionLevel:3,dataMask:2}},{bits:6608,formatInfo:{errorCorrectionLevel:3,dataMask:3}},{bits:1890,formatInfo:{errorCorrectionLevel:3,dataMask:4}},{bits:597,formatInfo:{errorCorrectionLevel:3,dataMask:5}},{bits:3340,formatInfo:{errorCorrectionLevel:3,dataMask:6}},{bits:2107,formatInfo:{errorCorrectionLevel:3,dataMask:7}},{bits:13663,formatInfo:{errorCorrectionLevel:2,dataMask:0}},{bits:12392,formatInfo:{errorCorrectionLevel:2,dataMask:1}},{bits:16177,formatInfo:{errorCorrectionLevel:2,dataMask:2}},{bits:14854,formatInfo:{errorCorrectionLevel:2,dataMask:3}},{bits:9396,formatInfo:{errorCorrectionLevel:2,dataMask:4}},{bits:8579,formatInfo:{errorCorrectionLevel:2,dataMask:5}},{bits:11994,formatInfo:{errorCorrectionLevel:2,dataMask:6}},{bits:11245,formatInfo:{errorCorrectionLevel:2,dataMask:7}}],d=[function(B){return(B.y+B.x)%2===0},function(B){return B.y%2===0},function(B){return B.x%3===0},function(B){return(B.y+B.x)%3===0},function(B){return(Math.floor(B.y/2)+Math.floor(B.x/3))%2===0},function(B){return B.x*B.y%2+B.x*B.y%3===0},function(B){return(B.y*B.x%2+B.y*B.x%3)%2===0},function(B){return((B.y+B.x)%2+B.y*B.x%3)%2===0}];function f(B){var D=17+4*B.versionNumber,A=o.BitMatrix.createEmpty(D,D);A.setRegion(0,0,9,9,!0),A.setRegion(D-8,0,8,9,!0),A.setRegion(0,D-8,9,8,!0);for(var _=0,C=B.alignmentPatternCenters;_<C.length;_++)for(var w=C[_],b=0,F=B.alignmentPatternCenters;b<F.length;b++){var S=F[b];w===6&&S===6||w===6&&S===D-7||w===D-7&&S===6||A.setRegion(w-2,S-2,5,5,!0)}return A.setRegion(6,9,1,D-17,!0),A.setRegion(9,6,D-17,1,!0),B.versionNumber>6&&(A.setRegion(D-11,0,3,6,!0),A.setRegion(0,D-11,6,3,!0)),A}function v(B,D,A){for(var _=d[A.dataMask],C=B.height,w=f(D),b=[],F=0,S=0,P=!0,T=C-1;T>0;T-=2){T===6&&T--;for(var N=0;N<C;N++)for(var M=P?C-1-N:N,L=0;L<2;L++){var O=T-L;if(!w.get(O,M)){S++;var V=B.get(O,M);_({y:M,x:O})&&(V=!V),F=x(V,F),S===8&&(b.push(F),S=0,F=0)}}P=!P}return b}function g(B){var D=B.height,A=Math.floor((D-17)/4);if(A<=6)return l.VERSIONS[A-1];for(var _=0,C=5;C>=0;C--)for(var w=D-9;w>=D-11;w--)_=x(B.get(w,C),_);for(var b=0,w=5;w>=0;w--)for(var C=D-9;C>=D-11;C--)b=x(B.get(w,C),b);for(var F=1/0,S,P=0,T=l.VERSIONS;P<T.length;P++){var N=T[P];if(N.infoBits===_||N.infoBits===b)return N;var M=u(_,N.infoBits);M<F&&(S=N,F=M),M=u(b,N.infoBits),M<F&&(S=N,F=M)}if(F<=3)return S}function p(B){for(var D=0,A=0;A<=8;A++)A!==6&&(D=x(B.get(A,8),D));for(var _=7;_>=0;_--)_!==6&&(D=x(B.get(8,_),D));for(var C=B.height,w=0,_=C-1;_>=C-7;_--)w=x(B.get(8,_),w);for(var A=C-8;A<C;A++)w=x(B.get(A,8),w);for(var b=1/0,F=null,S=0,P=c;S<P.length;S++){var T=P[S],N=T.bits,M=T.formatInfo;if(N===D||N===w)return M;var L=u(D,N);L<b&&(F=M,b=L),D!==w&&(L=u(w,N),L<b&&(F=M,b=L))}return b<=3?F:null}function m(B,D,A){var _=D.errorCorrectionLevels[A],C=[],w=0;if(_.ecBlocks.forEach(function(V){for(var $=0;$<V.numBlocks;$++)C.push({numDataCodewords:V.dataCodewordsPerBlock,codewords:[]}),w+=V.dataCodewordsPerBlock+_.ecCodewordsPerBlock}),B.length<w)return null;B=B.slice(0,w);for(var b=_.ecBlocks[0].dataCodewordsPerBlock,F=0;F<b;F++)for(var S=0,P=C;S<P.length;S++){var T=P[S];T.codewords.push(B.shift())}if(_.ecBlocks.length>1)for(var N=_.ecBlocks[0].numBlocks,M=_.ecBlocks[1].numBlocks,F=0;F<M;F++)C[N+F].codewords.push(B.shift());for(;B.length>0;)for(var L=0,O=C;L<O.length;L++){var T=O[L];T.codewords.push(B.shift())}return C}function E(B){var D=g(B);if(!D)return null;var A=p(B);if(!A)return null;var _=v(B,D,A),C=m(_,D,A.errorCorrectionLevel);if(!C)return null;for(var w=C.reduce(function(L,O){return L+O.numDataCodewords},0),b=new Uint8ClampedArray(w),F=0,S=0,P=C;S<P.length;S++){var T=P[S],N=s.decode(T.codewords,T.codewords.length-T.numDataCodewords);if(!N)return null;for(var M=0;M<T.numDataCodewords;M++)b[F++]=N[M]}try{return i.decode(b,D.versionNumber)}catch{return null}}function y(B){if(B==null)return null;var D=E(B);if(D)return D;for(var A=0;A<B.width;A++)for(var _=A+1;_<B.height;_++)B.get(A,_)!==B.get(_,A)&&(B.set(A,_,!B.get(A,_)),B.set(_,A,!B.get(_,A)));return E(B)}n.decode=y},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});var o=a(7),i=a(8),s;(function(g){g.Numeric="numeric",g.Alphanumeric="alphanumeric",g.Byte="byte",g.Kanji="kanji",g.ECI="eci"})(s=n.Mode||(n.Mode={}));var l;(function(g){g[g.Terminator=0]="Terminator",g[g.Numeric=1]="Numeric",g[g.Alphanumeric=2]="Alphanumeric",g[g.Byte=4]="Byte",g[g.Kanji=8]="Kanji",g[g.ECI=7]="ECI"})(l||(l={}));function u(g,p){for(var m=[],E="",y=[10,12,14][p],B=g.readBits(y);B>=3;){var D=g.readBits(10);if(D>=1e3)throw new Error("Invalid numeric value above 999");var A=Math.floor(D/100),_=Math.floor(D/10)%10,C=D%10;m.push(48+A,48+_,48+C),E+=A.toString()+_.toString()+C.toString(),B-=3}if(B===2){var D=g.readBits(7);if(D>=100)throw new Error("Invalid numeric value above 99");var A=Math.floor(D/10),_=D%10;m.push(48+A,48+_),E+=A.toString()+_.toString()}else if(B===1){var D=g.readBits(4);if(D>=10)throw new Error("Invalid numeric value above 9");m.push(48+D),E+=D.toString()}return{bytes:m,text:E}}var x=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function c(g,p){for(var m=[],E="",y=[9,11,13][p],B=g.readBits(y);B>=2;){var D=g.readBits(11),A=Math.floor(D/45),_=D%45;m.push(x[A].charCodeAt(0),x[_].charCodeAt(0)),E+=x[A]+x[_],B-=2}if(B===1){var A=g.readBits(6);m.push(x[A].charCodeAt(0)),E+=x[A]}return{bytes:m,text:E}}function d(g,p){for(var m=[],E="",y=[8,16,16][p],B=g.readBits(y),D=0;D<B;D++){var A=g.readBits(8);m.push(A)}try{E+=decodeURIComponent(m.map(function(_){return"%"+("0"+_.toString(16)).substr(-2)}).join(""))}catch{}return{bytes:m,text:E}}function f(g,p){for(var m=[],E="",y=[8,10,12][p],B=g.readBits(y),D=0;D<B;D++){var A=g.readBits(13),_=Math.floor(A/192)<<8|A%192;_<7936?_+=33088:_+=49472,m.push(_>>8,_&255),E+=String.fromCharCode(i.shiftJISTable[_])}return{bytes:m,text:E}}function v(g,p){for(var m,E,y,B,D=new o.BitStream(g),A=p<=9?0:p<=26?1:2,_={text:"",bytes:[],chunks:[],version:p};D.available()>=4;){var C=D.readBits(4);if(C===l.Terminator)return _;if(C===l.ECI)D.readBits(1)===0?_.chunks.push({type:s.ECI,assignmentNumber:D.readBits(7)}):D.readBits(1)===0?_.chunks.push({type:s.ECI,assignmentNumber:D.readBits(14)}):D.readBits(1)===0?_.chunks.push({type:s.ECI,assignmentNumber:D.readBits(21)}):_.chunks.push({type:s.ECI,assignmentNumber:-1});else if(C===l.Numeric){var w=u(D,A);_.text+=w.text,(m=_.bytes).push.apply(m,w.bytes),_.chunks.push({type:s.Numeric,text:w.text})}else if(C===l.Alphanumeric){var b=c(D,A);_.text+=b.text,(E=_.bytes).push.apply(E,b.bytes),_.chunks.push({type:s.Alphanumeric,text:b.text})}else if(C===l.Byte){var F=d(D,A);_.text+=F.text,(y=_.bytes).push.apply(y,F.bytes),_.chunks.push({type:s.Byte,bytes:F.bytes,text:F.text})}else if(C===l.Kanji){var S=f(D,A);_.text+=S.text,(B=_.bytes).push.apply(B,S.bytes),_.chunks.push({type:s.Kanji,bytes:S.bytes,text:S.text})}}if(D.available()===0||D.readBits(D.available())===0)return _}n.decode=v},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});var o=function(){function i(s){this.byteOffset=0,this.bitOffset=0,this.bytes=s}return i.prototype.readBits=function(s){if(s<1||s>32||s>this.available())throw new Error("Cannot read "+s.toString()+" bits");var l=0;if(this.bitOffset>0){var u=8-this.bitOffset,x=s<u?s:u,c=u-x,d=255>>8-x<<c;l=(this.bytes[this.byteOffset]&d)>>c,s-=x,this.bitOffset+=x,this.bitOffset===8&&(this.bitOffset=0,this.byteOffset++)}if(s>0){for(;s>=8;)l=l<<8|this.bytes[this.byteOffset]&255,this.byteOffset++,s-=8;if(s>0){var c=8-s,d=255>>c<<c;l=l<<s|(this.bytes[this.byteOffset]&d)>>c,this.bitOffset+=s}}return l},i.prototype.available=function(){return 8*(this.bytes.length-this.byteOffset)-this.bitOffset},i}();n.BitStream=o},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0}),n.shiftJISTable={32:32,33:33,34:34,35:35,36:36,37:37,38:38,39:39,40:40,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,58:58,59:59,60:60,61:61,62:62,63:63,64:64,65:65,66:66,67:67,68:68,69:69,70:70,71:71,72:72,73:73,74:74,75:75,76:76,77:77,78:78,79:79,80:80,81:81,82:82,83:83,84:84,85:85,86:86,87:87,88:88,89:89,90:90,91:91,92:165,93:93,94:94,95:95,96:96,97:97,98:98,99:99,100:100,101:101,102:102,103:103,104:104,105:105,106:106,107:107,108:108,109:109,110:110,111:111,112:112,113:113,114:114,115:115,116:116,117:117,118:118,119:119,120:120,121:121,122:122,123:123,124:124,125:125,126:8254,33088:12288,33089:12289,33090:12290,33091:65292,33092:65294,33093:12539,33094:65306,33095:65307,33096:65311,33097:65281,33098:12443,33099:12444,33100:180,33101:65344,33102:168,33103:65342,33104:65507,33105:65343,33106:12541,33107:12542,33108:12445,33109:12446,33110:12291,33111:20189,33112:12293,33113:12294,33114:12295,33115:12540,33116:8213,33117:8208,33118:65295,33119:92,33120:12316,33121:8214,33122:65372,33123:8230,33124:8229,33125:8216,33126:8217,33127:8220,33128:8221,33129:65288,33130:65289,33131:12308,33132:12309,33133:65339,33134:65341,33135:65371,33136:65373,33137:12296,33138:12297,33139:12298,33140:12299,33141:12300,33142:12301,33143:12302,33144:12303,33145:12304,33146:12305,33147:65291,33148:8722,33149:177,33150:215,33152:247,33153:65309,33154:8800,33155:65308,33156:65310,33157:8806,33158:8807,33159:8734,33160:8756,33161:9794,33162:9792,33163:176,33164:8242,33165:8243,33166:8451,33167:65509,33168:65284,33169:162,33170:163,33171:65285,33172:65283,33173:65286,33174:65290,33175:65312,33176:167,33177:9734,33178:9733,33179:9675,33180:9679,33181:9678,33182:9671,33183:9670,33184:9633,33185:9632,33186:9651,33187:9650,33188:9661,33189:9660,33190:8251,33191:12306,33192:8594,33193:8592,33194:8593,33195:8595,33196:12307,33208:8712,33209:8715,33210:8838,33211:8839,33212:8834,33213:8835,33214:8746,33215:8745,33224:8743,33225:8744,33226:172,33227:8658,33228:8660,33229:8704,33230:8707,33242:8736,33243:8869,33244:8978,33245:8706,33246:8711,33247:8801,33248:8786,33249:8810,33250:8811,33251:8730,33252:8765,33253:8733,33254:8757,33255:8747,33256:8748,33264:8491,33265:8240,33266:9839,33267:9837,33268:9834,33269:8224,33270:8225,33271:182,33276:9711,33359:65296,33360:65297,33361:65298,33362:65299,33363:65300,33364:65301,33365:65302,33366:65303,33367:65304,33368:65305,33376:65313,33377:65314,33378:65315,33379:65316,33380:65317,33381:65318,33382:65319,33383:65320,33384:65321,33385:65322,33386:65323,33387:65324,33388:65325,33389:65326,33390:65327,33391:65328,33392:65329,33393:65330,33394:65331,33395:65332,33396:65333,33397:65334,33398:65335,33399:65336,33400:65337,33401:65338,33409:65345,33410:65346,33411:65347,33412:65348,33413:65349,33414:65350,33415:65351,33416:65352,33417:65353,33418:65354,33419:65355,33420:65356,33421:65357,33422:65358,33423:65359,33424:65360,33425:65361,33426:65362,33427:65363,33428:65364,33429:65365,33430:65366,33431:65367,33432:65368,33433:65369,33434:65370,33439:12353,33440:12354,33441:12355,33442:12356,33443:12357,33444:12358,33445:12359,33446:12360,33447:12361,33448:12362,33449:12363,33450:12364,33451:12365,33452:12366,33453:12367,33454:12368,33455:12369,33456:12370,33457:12371,33458:12372,33459:12373,33460:12374,33461:12375,33462:12376,33463:12377,33464:12378,33465:12379,33466:12380,33467:12381,33468:12382,33469:12383,33470:12384,33471:12385,33472:12386,33473:12387,33474:12388,33475:12389,33476:12390,33477:12391,33478:12392,33479:12393,33480:12394,33481:12395,33482:12396,33483:12397,33484:12398,33485:12399,33486:12400,33487:12401,33488:12402,33489:12403,33490:12404,33491:12405,33492:12406,33493:12407,33494:12408,33495:12409,33496:12410,33497:12411,33498:12412,33499:12413,33500:12414,33501:12415,33502:12416,33503:12417,33504:12418,33505:12419,33506:12420,33507:12421,33508:12422,33509:12423,33510:12424,33511:12425,33512:12426,33513:12427,33514:12428,33515:12429,33516:12430,33517:12431,33518:12432,33519:12433,33520:12434,33521:12435,33600:12449,33601:12450,33602:12451,33603:12452,33604:12453,33605:12454,33606:12455,33607:12456,33608:12457,33609:12458,33610:12459,33611:12460,33612:12461,33613:12462,33614:12463,33615:12464,33616:12465,33617:12466,33618:12467,33619:12468,33620:12469,33621:12470,33622:12471,33623:12472,33624:12473,33625:12474,33626:12475,33627:12476,33628:12477,33629:12478,33630:12479,33631:12480,33632:12481,33633:12482,33634:12483,33635:12484,33636:12485,33637:12486,33638:12487,33639:12488,33640:12489,33641:12490,33642:12491,33643:12492,33644:12493,33645:12494,33646:12495,33647:12496,33648:12497,33649:12498,33650:12499,33651:12500,33652:12501,33653:12502,33654:12503,33655:12504,33656:12505,33657:12506,33658:12507,33659:12508,33660:12509,33661:12510,33662:12511,33664:12512,33665:12513,33666:12514,33667:12515,33668:12516,33669:12517,33670:12518,33671:12519,33672:12520,33673:12521,33674:12522,33675:12523,33676:12524,33677:12525,33678:12526,33679:12527,33680:12528,33681:12529,33682:12530,33683:12531,33684:12532,33685:12533,33686:12534,33695:913,33696:914,33697:915,33698:916,33699:917,33700:918,33701:919,33702:920,33703:921,33704:922,33705:923,33706:924,33707:925,33708:926,33709:927,33710:928,33711:929,33712:931,33713:932,33714:933,33715:934,33716:935,33717:936,33718:937,33727:945,33728:946,33729:947,33730:948,33731:949,33732:950,33733:951,33734:952,33735:953,33736:954,33737:955,33738:956,33739:957,33740:958,33741:959,33742:960,33743:961,33744:963,33745:964,33746:965,33747:966,33748:967,33749:968,33750:969,33856:1040,33857:1041,33858:1042,33859:1043,33860:1044,33861:1045,33862:1025,33863:1046,33864:1047,33865:1048,33866:1049,33867:1050,33868:1051,33869:1052,33870:1053,33871:1054,33872:1055,33873:1056,33874:1057,33875:1058,33876:1059,33877:1060,33878:1061,33879:1062,33880:1063,33881:1064,33882:1065,33883:1066,33884:1067,33885:1068,33886:1069,33887:1070,33888:1071,33904:1072,33905:1073,33906:1074,33907:1075,33908:1076,33909:1077,33910:1105,33911:1078,33912:1079,33913:1080,33914:1081,33915:1082,33916:1083,33917:1084,33918:1085,33920:1086,33921:1087,33922:1088,33923:1089,33924:1090,33925:1091,33926:1092,33927:1093,33928:1094,33929:1095,33930:1096,33931:1097,33932:1098,33933:1099,33934:1100,33935:1101,33936:1102,33937:1103,33951:9472,33952:9474,33953:9484,33954:9488,33955:9496,33956:9492,33957:9500,33958:9516,33959:9508,33960:9524,33961:9532,33962:9473,33963:9475,33964:9487,33965:9491,33966:9499,33967:9495,33968:9507,33969:9523,33970:9515,33971:9531,33972:9547,33973:9504,33974:9519,33975:9512,33976:9527,33977:9535,33978:9501,33979:9520,33980:9509,33981:9528,33982:9538,34975:20124,34976:21782,34977:23043,34978:38463,34979:21696,34980:24859,34981:25384,34982:23030,34983:36898,34984:33909,34985:33564,34986:31312,34987:24746,34988:25569,34989:28197,34990:26093,34991:33894,34992:33446,34993:39925,34994:26771,34995:22311,34996:26017,34997:25201,34998:23451,34999:22992,35e3:34427,35001:39156,35002:32098,35003:32190,35004:39822,35005:25110,35006:31903,35007:34999,35008:23433,35009:24245,35010:25353,35011:26263,35012:26696,35013:38343,35014:38797,35015:26447,35016:20197,35017:20234,35018:20301,35019:20381,35020:20553,35021:22258,35022:22839,35023:22996,35024:23041,35025:23561,35026:24799,35027:24847,35028:24944,35029:26131,35030:26885,35031:28858,35032:30031,35033:30064,35034:31227,35035:32173,35036:32239,35037:32963,35038:33806,35039:34915,35040:35586,35041:36949,35042:36986,35043:21307,35044:20117,35045:20133,35046:22495,35047:32946,35048:37057,35049:30959,35050:19968,35051:22769,35052:28322,35053:36920,35054:31282,35055:33576,35056:33419,35057:39983,35058:20801,35059:21360,35060:21693,35061:21729,35062:22240,35063:23035,35064:24341,35065:39154,35066:28139,35067:32996,35068:34093,35136:38498,35137:38512,35138:38560,35139:38907,35140:21515,35141:21491,35142:23431,35143:28879,35144:32701,35145:36802,35146:38632,35147:21359,35148:40284,35149:31418,35150:19985,35151:30867,35152:33276,35153:28198,35154:22040,35155:21764,35156:27421,35157:34074,35158:39995,35159:23013,35160:21417,35161:28006,35162:29916,35163:38287,35164:22082,35165:20113,35166:36939,35167:38642,35168:33615,35169:39180,35170:21473,35171:21942,35172:23344,35173:24433,35174:26144,35175:26355,35176:26628,35177:27704,35178:27891,35179:27945,35180:29787,35181:30408,35182:31310,35183:38964,35184:33521,35185:34907,35186:35424,35187:37613,35188:28082,35189:30123,35190:30410,35191:39365,35192:24742,35193:35585,35194:36234,35195:38322,35196:27022,35197:21421,35198:20870,35200:22290,35201:22576,35202:22852,35203:23476,35204:24310,35205:24616,35206:25513,35207:25588,35208:27839,35209:28436,35210:28814,35211:28948,35212:29017,35213:29141,35214:29503,35215:32257,35216:33398,35217:33489,35218:34199,35219:36960,35220:37467,35221:40219,35222:22633,35223:26044,35224:27738,35225:29989,35226:20985,35227:22830,35228:22885,35229:24448,35230:24540,35231:25276,35232:26106,35233:27178,35234:27431,35235:27572,35236:29579,35237:32705,35238:35158,35239:40236,35240:40206,35241:40644,35242:23713,35243:27798,35244:33659,35245:20740,35246:23627,35247:25014,35248:33222,35249:26742,35250:29281,35251:20057,35252:20474,35253:21368,35254:24681,35255:28201,35256:31311,35257:38899,35258:19979,35259:21270,35260:20206,35261:20309,35262:20285,35263:20385,35264:20339,35265:21152,35266:21487,35267:22025,35268:22799,35269:23233,35270:23478,35271:23521,35272:31185,35273:26247,35274:26524,35275:26550,35276:27468,35277:27827,35278:28779,35279:29634,35280:31117,35281:31166,35282:31292,35283:31623,35284:33457,35285:33499,35286:33540,35287:33655,35288:33775,35289:33747,35290:34662,35291:35506,35292:22057,35293:36008,35294:36838,35295:36942,35296:38686,35297:34442,35298:20420,35299:23784,35300:25105,35301:29273,35302:30011,35303:33253,35304:33469,35305:34558,35306:36032,35307:38597,35308:39187,35309:39381,35310:20171,35311:20250,35312:35299,35313:22238,35314:22602,35315:22730,35316:24315,35317:24555,35318:24618,35319:24724,35320:24674,35321:25040,35322:25106,35323:25296,35324:25913,35392:39745,35393:26214,35394:26800,35395:28023,35396:28784,35397:30028,35398:30342,35399:32117,35400:33445,35401:34809,35402:38283,35403:38542,35404:35997,35405:20977,35406:21182,35407:22806,35408:21683,35409:23475,35410:23830,35411:24936,35412:27010,35413:28079,35414:30861,35415:33995,35416:34903,35417:35442,35418:37799,35419:39608,35420:28012,35421:39336,35422:34521,35423:22435,35424:26623,35425:34510,35426:37390,35427:21123,35428:22151,35429:21508,35430:24275,35431:25313,35432:25785,35433:26684,35434:26680,35435:27579,35436:29554,35437:30906,35438:31339,35439:35226,35440:35282,35441:36203,35442:36611,35443:37101,35444:38307,35445:38548,35446:38761,35447:23398,35448:23731,35449:27005,35450:38989,35451:38990,35452:25499,35453:31520,35454:27179,35456:27263,35457:26806,35458:39949,35459:28511,35460:21106,35461:21917,35462:24688,35463:25324,35464:27963,35465:28167,35466:28369,35467:33883,35468:35088,35469:36676,35470:19988,35471:39993,35472:21494,35473:26907,35474:27194,35475:38788,35476:26666,35477:20828,35478:31427,35479:33970,35480:37340,35481:37772,35482:22107,35483:40232,35484:26658,35485:33541,35486:33841,35487:31909,35488:21e3,35489:33477,35490:29926,35491:20094,35492:20355,35493:20896,35494:23506,35495:21002,35496:21208,35497:21223,35498:24059,35499:21914,35500:22570,35501:23014,35502:23436,35503:23448,35504:23515,35505:24178,35506:24185,35507:24739,35508:24863,35509:24931,35510:25022,35511:25563,35512:25954,35513:26577,35514:26707,35515:26874,35516:27454,35517:27475,35518:27735,35519:28450,35520:28567,35521:28485,35522:29872,35523:29976,35524:30435,35525:30475,35526:31487,35527:31649,35528:31777,35529:32233,35530:32566,35531:32752,35532:32925,35533:33382,35534:33694,35535:35251,35536:35532,35537:36011,35538:36996,35539:37969,35540:38291,35541:38289,35542:38306,35543:38501,35544:38867,35545:39208,35546:33304,35547:20024,35548:21547,35549:23736,35550:24012,35551:29609,35552:30284,35553:30524,35554:23721,35555:32747,35556:36107,35557:38593,35558:38929,35559:38996,35560:39e3,35561:20225,35562:20238,35563:21361,35564:21916,35565:22120,35566:22522,35567:22855,35568:23305,35569:23492,35570:23696,35571:24076,35572:24190,35573:24524,35574:25582,35575:26426,35576:26071,35577:26082,35578:26399,35579:26827,35580:26820,35648:27231,35649:24112,35650:27589,35651:27671,35652:27773,35653:30079,35654:31048,35655:23395,35656:31232,35657:32e3,35658:24509,35659:35215,35660:35352,35661:36020,35662:36215,35663:36556,35664:36637,35665:39138,35666:39438,35667:39740,35668:20096,35669:20605,35670:20736,35671:22931,35672:23452,35673:25135,35674:25216,35675:25836,35676:27450,35677:29344,35678:30097,35679:31047,35680:32681,35681:34811,35682:35516,35683:35696,35684:25516,35685:33738,35686:38816,35687:21513,35688:21507,35689:21931,35690:26708,35691:27224,35692:35440,35693:30759,35694:26485,35695:40653,35696:21364,35697:23458,35698:33050,35699:34384,35700:36870,35701:19992,35702:20037,35703:20167,35704:20241,35705:21450,35706:21560,35707:23470,35708:24339,35709:24613,35710:25937,35712:26429,35713:27714,35714:27762,35715:27875,35716:28792,35717:29699,35718:31350,35719:31406,35720:31496,35721:32026,35722:31998,35723:32102,35724:26087,35725:29275,35726:21435,35727:23621,35728:24040,35729:25298,35730:25312,35731:25369,35732:28192,35733:34394,35734:35377,35735:36317,35736:37624,35737:28417,35738:31142,35739:39770,35740:20136,35741:20139,35742:20140,35743:20379,35744:20384,35745:20689,35746:20807,35747:31478,35748:20849,35749:20982,35750:21332,35751:21281,35752:21375,35753:21483,35754:21932,35755:22659,35756:23777,35757:24375,35758:24394,35759:24623,35760:24656,35761:24685,35762:25375,35763:25945,35764:27211,35765:27841,35766:29378,35767:29421,35768:30703,35769:33016,35770:33029,35771:33288,35772:34126,35773:37111,35774:37857,35775:38911,35776:39255,35777:39514,35778:20208,35779:20957,35780:23597,35781:26241,35782:26989,35783:23616,35784:26354,35785:26997,35786:29577,35787:26704,35788:31873,35789:20677,35790:21220,35791:22343,35792:24062,35793:37670,35794:26020,35795:27427,35796:27453,35797:29748,35798:31105,35799:31165,35800:31563,35801:32202,35802:33465,35803:33740,35804:34943,35805:35167,35806:35641,35807:36817,35808:37329,35809:21535,35810:37504,35811:20061,35812:20534,35813:21477,35814:21306,35815:29399,35816:29590,35817:30697,35818:33510,35819:36527,35820:39366,35821:39368,35822:39378,35823:20855,35824:24858,35825:34398,35826:21936,35827:31354,35828:20598,35829:23507,35830:36935,35831:38533,35832:20018,35833:27355,35834:37351,35835:23633,35836:23624,35904:25496,35905:31391,35906:27795,35907:38772,35908:36705,35909:31402,35910:29066,35911:38536,35912:31874,35913:26647,35914:32368,35915:26705,35916:37740,35917:21234,35918:21531,35919:34219,35920:35347,35921:32676,35922:36557,35923:37089,35924:21350,35925:34952,35926:31041,35927:20418,35928:20670,35929:21009,35930:20804,35931:21843,35932:22317,35933:29674,35934:22411,35935:22865,35936:24418,35937:24452,35938:24693,35939:24950,35940:24935,35941:25001,35942:25522,35943:25658,35944:25964,35945:26223,35946:26690,35947:28179,35948:30054,35949:31293,35950:31995,35951:32076,35952:32153,35953:32331,35954:32619,35955:33550,35956:33610,35957:34509,35958:35336,35959:35427,35960:35686,35961:36605,35962:38938,35963:40335,35964:33464,35965:36814,35966:39912,35968:21127,35969:25119,35970:25731,35971:28608,35972:38553,35973:26689,35974:20625,35975:27424,35976:27770,35977:28500,35978:31348,35979:32080,35980:34880,35981:35363,35982:26376,35983:20214,35984:20537,35985:20518,35986:20581,35987:20860,35988:21048,35989:21091,35990:21927,35991:22287,35992:22533,35993:23244,35994:24314,35995:25010,35996:25080,35997:25331,35998:25458,35999:26908,36e3:27177,36001:29309,36002:29356,36003:29486,36004:30740,36005:30831,36006:32121,36007:30476,36008:32937,36009:35211,36010:35609,36011:36066,36012:36562,36013:36963,36014:37749,36015:38522,36016:38997,36017:39443,36018:40568,36019:20803,36020:21407,36021:21427,36022:24187,36023:24358,36024:28187,36025:28304,36026:29572,36027:29694,36028:32067,36029:33335,36030:35328,36031:35578,36032:38480,36033:20046,36034:20491,36035:21476,36036:21628,36037:22266,36038:22993,36039:23396,36040:24049,36041:24235,36042:24359,36043:25144,36044:25925,36045:26543,36046:28246,36047:29392,36048:31946,36049:34996,36050:32929,36051:32993,36052:33776,36053:34382,36054:35463,36055:36328,36056:37431,36057:38599,36058:39015,36059:40723,36060:20116,36061:20114,36062:20237,36063:21320,36064:21577,36065:21566,36066:23087,36067:24460,36068:24481,36069:24735,36070:26791,36071:27278,36072:29786,36073:30849,36074:35486,36075:35492,36076:35703,36077:37264,36078:20062,36079:39881,36080:20132,36081:20348,36082:20399,36083:20505,36084:20502,36085:20809,36086:20844,36087:21151,36088:21177,36089:21246,36090:21402,36091:21475,36092:21521,36160:21518,36161:21897,36162:22353,36163:22434,36164:22909,36165:23380,36166:23389,36167:23439,36168:24037,36169:24039,36170:24055,36171:24184,36172:24195,36173:24218,36174:24247,36175:24344,36176:24658,36177:24908,36178:25239,36179:25304,36180:25511,36181:25915,36182:26114,36183:26179,36184:26356,36185:26477,36186:26657,36187:26775,36188:27083,36189:27743,36190:27946,36191:28009,36192:28207,36193:28317,36194:30002,36195:30343,36196:30828,36197:31295,36198:31968,36199:32005,36200:32024,36201:32094,36202:32177,36203:32789,36204:32771,36205:32943,36206:32945,36207:33108,36208:33167,36209:33322,36210:33618,36211:34892,36212:34913,36213:35611,36214:36002,36215:36092,36216:37066,36217:37237,36218:37489,36219:30783,36220:37628,36221:38308,36222:38477,36224:38917,36225:39321,36226:39640,36227:40251,36228:21083,36229:21163,36230:21495,36231:21512,36232:22741,36233:25335,36234:28640,36235:35946,36236:36703,36237:40633,36238:20811,36239:21051,36240:21578,36241:22269,36242:31296,36243:37239,36244:40288,36245:40658,36246:29508,36247:28425,36248:33136,36249:29969,36250:24573,36251:24794,36252:39592,36253:29403,36254:36796,36255:27492,36256:38915,36257:20170,36258:22256,36259:22372,36260:22718,36261:23130,36262:24680,36263:25031,36264:26127,36265:26118,36266:26681,36267:26801,36268:28151,36269:30165,36270:32058,36271:33390,36272:39746,36273:20123,36274:20304,36275:21449,36276:21766,36277:23919,36278:24038,36279:24046,36280:26619,36281:27801,36282:29811,36283:30722,36284:35408,36285:37782,36286:35039,36287:22352,36288:24231,36289:25387,36290:20661,36291:20652,36292:20877,36293:26368,36294:21705,36295:22622,36296:22971,36297:23472,36298:24425,36299:25165,36300:25505,36301:26685,36302:27507,36303:28168,36304:28797,36305:37319,36306:29312,36307:30741,36308:30758,36309:31085,36310:25998,36311:32048,36312:33756,36313:35009,36314:36617,36315:38555,36316:21092,36317:22312,36318:26448,36319:32618,36320:36001,36321:20916,36322:22338,36323:38442,36324:22586,36325:27018,36326:32948,36327:21682,36328:23822,36329:22524,36330:30869,36331:40442,36332:20316,36333:21066,36334:21643,36335:25662,36336:26152,36337:26388,36338:26613,36339:31364,36340:31574,36341:32034,36342:37679,36343:26716,36344:39853,36345:31545,36346:21273,36347:20874,36348:21047,36416:23519,36417:25334,36418:25774,36419:25830,36420:26413,36421:27578,36422:34217,36423:38609,36424:30352,36425:39894,36426:25420,36427:37638,36428:39851,36429:30399,36430:26194,36431:19977,36432:20632,36433:21442,36434:23665,36435:24808,36436:25746,36437:25955,36438:26719,36439:29158,36440:29642,36441:29987,36442:31639,36443:32386,36444:34453,36445:35715,36446:36059,36447:37240,36448:39184,36449:26028,36450:26283,36451:27531,36452:20181,36453:20180,36454:20282,36455:20351,36456:21050,36457:21496,36458:21490,36459:21987,36460:22235,36461:22763,36462:22987,36463:22985,36464:23039,36465:23376,36466:23629,36467:24066,36468:24107,36469:24535,36470:24605,36471:25351,36472:25903,36473:23388,36474:26031,36475:26045,36476:26088,36477:26525,36478:27490,36480:27515,36481:27663,36482:29509,36483:31049,36484:31169,36485:31992,36486:32025,36487:32043,36488:32930,36489:33026,36490:33267,36491:35222,36492:35422,36493:35433,36494:35430,36495:35468,36496:35566,36497:36039,36498:36060,36499:38604,36500:39164,36501:27503,36502:20107,36503:20284,36504:20365,36505:20816,36506:23383,36507:23546,36508:24904,36509:25345,36510:26178,36511:27425,36512:28363,36513:27835,36514:29246,36515:29885,36516:30164,36517:30913,36518:31034,36519:32780,36520:32819,36521:33258,36522:33940,36523:36766,36524:27728,36525:40575,36526:24335,36527:35672,36528:40235,36529:31482,36530:36600,36531:23437,36532:38635,36533:19971,36534:21489,36535:22519,36536:22833,36537:23241,36538:23460,36539:24713,36540:28287,36541:28422,36542:30142,36543:36074,36544:23455,36545:34048,36546:31712,36547:20594,36548:26612,36549:33437,36550:23649,36551:34122,36552:32286,36553:33294,36554:20889,36555:23556,36556:25448,36557:36198,36558:26012,36559:29038,36560:31038,36561:32023,36562:32773,36563:35613,36564:36554,36565:36974,36566:34503,36567:37034,36568:20511,36569:21242,36570:23610,36571:26451,36572:28796,36573:29237,36574:37196,36575:37320,36576:37675,36577:33509,36578:23490,36579:24369,36580:24825,36581:20027,36582:21462,36583:23432,36584:25163,36585:26417,36586:27530,36587:29417,36588:29664,36589:31278,36590:33131,36591:36259,36592:37202,36593:39318,36594:20754,36595:21463,36596:21610,36597:23551,36598:25480,36599:27193,36600:32172,36601:38656,36602:22234,36603:21454,36604:21608,36672:23447,36673:23601,36674:24030,36675:20462,36676:24833,36677:25342,36678:27954,36679:31168,36680:31179,36681:32066,36682:32333,36683:32722,36684:33261,36685:33311,36686:33936,36687:34886,36688:35186,36689:35728,36690:36468,36691:36655,36692:36913,36693:37195,36694:37228,36695:38598,36696:37276,36697:20160,36698:20303,36699:20805,36700:21313,36701:24467,36702:25102,36703:26580,36704:27713,36705:28171,36706:29539,36707:32294,36708:37325,36709:37507,36710:21460,36711:22809,36712:23487,36713:28113,36714:31069,36715:32302,36716:31899,36717:22654,36718:29087,36719:20986,36720:34899,36721:36848,36722:20426,36723:23803,36724:26149,36725:30636,36726:31459,36727:33308,36728:39423,36729:20934,36730:24490,36731:26092,36732:26991,36733:27529,36734:28147,36736:28310,36737:28516,36738:30462,36739:32020,36740:24033,36741:36981,36742:37255,36743:38918,36744:20966,36745:21021,36746:25152,36747:26257,36748:26329,36749:28186,36750:24246,36751:32210,36752:32626,36753:26360,36754:34223,36755:34295,36756:35576,36757:21161,36758:21465,36759:22899,36760:24207,36761:24464,36762:24661,36763:37604,36764:38500,36765:20663,36766:20767,36767:21213,36768:21280,36769:21319,36770:21484,36771:21736,36772:21830,36773:21809,36774:22039,36775:22888,36776:22974,36777:23100,36778:23477,36779:23558,36780:23567,36781:23569,36782:23578,36783:24196,36784:24202,36785:24288,36786:24432,36787:25215,36788:25220,36789:25307,36790:25484,36791:25463,36792:26119,36793:26124,36794:26157,36795:26230,36796:26494,36797:26786,36798:27167,36799:27189,36800:27836,36801:28040,36802:28169,36803:28248,36804:28988,36805:28966,36806:29031,36807:30151,36808:30465,36809:30813,36810:30977,36811:31077,36812:31216,36813:31456,36814:31505,36815:31911,36816:32057,36817:32918,36818:33750,36819:33931,36820:34121,36821:34909,36822:35059,36823:35359,36824:35388,36825:35412,36826:35443,36827:35937,36828:36062,36829:37284,36830:37478,36831:37758,36832:37912,36833:38556,36834:38808,36835:19978,36836:19976,36837:19998,36838:20055,36839:20887,36840:21104,36841:22478,36842:22580,36843:22732,36844:23330,36845:24120,36846:24773,36847:25854,36848:26465,36849:26454,36850:27972,36851:29366,36852:30067,36853:31331,36854:33976,36855:35698,36856:37304,36857:37664,36858:22065,36859:22516,36860:39166,36928:25325,36929:26893,36930:27542,36931:29165,36932:32340,36933:32887,36934:33394,36935:35302,36936:39135,36937:34645,36938:36785,36939:23611,36940:20280,36941:20449,36942:20405,36943:21767,36944:23072,36945:23517,36946:23529,36947:24515,36948:24910,36949:25391,36950:26032,36951:26187,36952:26862,36953:27035,36954:28024,36955:28145,36956:30003,36957:30137,36958:30495,36959:31070,36960:31206,36961:32051,36962:33251,36963:33455,36964:34218,36965:35242,36966:35386,36967:36523,36968:36763,36969:36914,36970:37341,36971:38663,36972:20154,36973:20161,36974:20995,36975:22645,36976:22764,36977:23563,36978:29978,36979:23613,36980:33102,36981:35338,36982:36805,36983:38499,36984:38765,36985:31525,36986:35535,36987:38920,36988:37218,36989:22259,36990:21416,36992:36887,36993:21561,36994:22402,36995:24101,36996:25512,36997:27700,36998:28810,36999:30561,37e3:31883,37001:32736,37002:34928,37003:36930,37004:37204,37005:37648,37006:37656,37007:38543,37008:29790,37009:39620,37010:23815,37011:23913,37012:25968,37013:26530,37014:36264,37015:38619,37016:25454,37017:26441,37018:26905,37019:33733,37020:38935,37021:38592,37022:35070,37023:28548,37024:25722,37025:23544,37026:19990,37027:28716,37028:30045,37029:26159,37030:20932,37031:21046,37032:21218,37033:22995,37034:24449,37035:24615,37036:25104,37037:25919,37038:25972,37039:26143,37040:26228,37041:26866,37042:26646,37043:27491,37044:28165,37045:29298,37046:29983,37047:30427,37048:31934,37049:32854,37050:22768,37051:35069,37052:35199,37053:35488,37054:35475,37055:35531,37056:36893,37057:37266,37058:38738,37059:38745,37060:25993,37061:31246,37062:33030,37063:38587,37064:24109,37065:24796,37066:25114,37067:26021,37068:26132,37069:26512,37070:30707,37071:31309,37072:31821,37073:32318,37074:33034,37075:36012,37076:36196,37077:36321,37078:36447,37079:30889,37080:20999,37081:25305,37082:25509,37083:25666,37084:25240,37085:35373,37086:31363,37087:31680,37088:35500,37089:38634,37090:32118,37091:33292,37092:34633,37093:20185,37094:20808,37095:21315,37096:21344,37097:23459,37098:23554,37099:23574,37100:24029,37101:25126,37102:25159,37103:25776,37104:26643,37105:26676,37106:27849,37107:27973,37108:27927,37109:26579,37110:28508,37111:29006,37112:29053,37113:26059,37114:31359,37115:31661,37116:32218,37184:32330,37185:32680,37186:33146,37187:33307,37188:33337,37189:34214,37190:35438,37191:36046,37192:36341,37193:36984,37194:36983,37195:37549,37196:37521,37197:38275,37198:39854,37199:21069,37200:21892,37201:28472,37202:28982,37203:20840,37204:31109,37205:32341,37206:33203,37207:31950,37208:22092,37209:22609,37210:23720,37211:25514,37212:26366,37213:26365,37214:26970,37215:29401,37216:30095,37217:30094,37218:30990,37219:31062,37220:31199,37221:31895,37222:32032,37223:32068,37224:34311,37225:35380,37226:38459,37227:36961,37228:40736,37229:20711,37230:21109,37231:21452,37232:21474,37233:20489,37234:21930,37235:22766,37236:22863,37237:29245,37238:23435,37239:23652,37240:21277,37241:24803,37242:24819,37243:25436,37244:25475,37245:25407,37246:25531,37248:25805,37249:26089,37250:26361,37251:24035,37252:27085,37253:27133,37254:28437,37255:29157,37256:20105,37257:30185,37258:30456,37259:31379,37260:31967,37261:32207,37262:32156,37263:32865,37264:33609,37265:33624,37266:33900,37267:33980,37268:34299,37269:35013,37270:36208,37271:36865,37272:36973,37273:37783,37274:38684,37275:39442,37276:20687,37277:22679,37278:24974,37279:33235,37280:34101,37281:36104,37282:36896,37283:20419,37284:20596,37285:21063,37286:21363,37287:24687,37288:25417,37289:26463,37290:28204,37291:36275,37292:36895,37293:20439,37294:23646,37295:36042,37296:26063,37297:32154,37298:21330,37299:34966,37300:20854,37301:25539,37302:23384,37303:23403,37304:23562,37305:25613,37306:26449,37307:36956,37308:20182,37309:22810,37310:22826,37311:27760,37312:35409,37313:21822,37314:22549,37315:22949,37316:24816,37317:25171,37318:26561,37319:33333,37320:26965,37321:38464,37322:39364,37323:39464,37324:20307,37325:22534,37326:23550,37327:32784,37328:23729,37329:24111,37330:24453,37331:24608,37332:24907,37333:25140,37334:26367,37335:27888,37336:28382,37337:32974,37338:33151,37339:33492,37340:34955,37341:36024,37342:36864,37343:36910,37344:38538,37345:40667,37346:39899,37347:20195,37348:21488,37349:22823,37350:31532,37351:37261,37352:38988,37353:40441,37354:28381,37355:28711,37356:21331,37357:21828,37358:23429,37359:25176,37360:25246,37361:25299,37362:27810,37363:28655,37364:29730,37365:35351,37366:37944,37367:28609,37368:35582,37369:33592,37370:20967,37371:34552,37372:21482,37440:21481,37441:20294,37442:36948,37443:36784,37444:22890,37445:33073,37446:24061,37447:31466,37448:36799,37449:26842,37450:35895,37451:29432,37452:40008,37453:27197,37454:35504,37455:20025,37456:21336,37457:22022,37458:22374,37459:25285,37460:25506,37461:26086,37462:27470,37463:28129,37464:28251,37465:28845,37466:30701,37467:31471,37468:31658,37469:32187,37470:32829,37471:32966,37472:34507,37473:35477,37474:37723,37475:22243,37476:22727,37477:24382,37478:26029,37479:26262,37480:27264,37481:27573,37482:30007,37483:35527,37484:20516,37485:30693,37486:22320,37487:24347,37488:24677,37489:26234,37490:27744,37491:30196,37492:31258,37493:32622,37494:33268,37495:34584,37496:36933,37497:39347,37498:31689,37499:30044,37500:31481,37501:31569,37502:33988,37504:36880,37505:31209,37506:31378,37507:33590,37508:23265,37509:30528,37510:20013,37511:20210,37512:23449,37513:24544,37514:25277,37515:26172,37516:26609,37517:27880,37518:34411,37519:34935,37520:35387,37521:37198,37522:37619,37523:39376,37524:27159,37525:28710,37526:29482,37527:33511,37528:33879,37529:36015,37530:19969,37531:20806,37532:20939,37533:21899,37534:23541,37535:24086,37536:24115,37537:24193,37538:24340,37539:24373,37540:24427,37541:24500,37542:25074,37543:25361,37544:26274,37545:26397,37546:28526,37547:29266,37548:30010,37549:30522,37550:32884,37551:33081,37552:33144,37553:34678,37554:35519,37555:35548,37556:36229,37557:36339,37558:37530,37559:38263,37560:38914,37561:40165,37562:21189,37563:25431,37564:30452,37565:26389,37566:27784,37567:29645,37568:36035,37569:37806,37570:38515,37571:27941,37572:22684,37573:26894,37574:27084,37575:36861,37576:37786,37577:30171,37578:36890,37579:22618,37580:26626,37581:25524,37582:27131,37583:20291,37584:28460,37585:26584,37586:36795,37587:34086,37588:32180,37589:37716,37590:26943,37591:28528,37592:22378,37593:22775,37594:23340,37595:32044,37596:29226,37597:21514,37598:37347,37599:40372,37600:20141,37601:20302,37602:20572,37603:20597,37604:21059,37605:35998,37606:21576,37607:22564,37608:23450,37609:24093,37610:24213,37611:24237,37612:24311,37613:24351,37614:24716,37615:25269,37616:25402,37617:25552,37618:26799,37619:27712,37620:30855,37621:31118,37622:31243,37623:32224,37624:33351,37625:35330,37626:35558,37627:36420,37628:36883,37696:37048,37697:37165,37698:37336,37699:40718,37700:27877,37701:25688,37702:25826,37703:25973,37704:28404,37705:30340,37706:31515,37707:36969,37708:37841,37709:28346,37710:21746,37711:24505,37712:25764,37713:36685,37714:36845,37715:37444,37716:20856,37717:22635,37718:22825,37719:23637,37720:24215,37721:28155,37722:32399,37723:29980,37724:36028,37725:36578,37726:39003,37727:28857,37728:20253,37729:27583,37730:28593,37731:3e4,37732:38651,37733:20814,37734:21520,37735:22581,37736:22615,37737:22956,37738:23648,37739:24466,37740:26007,37741:26460,37742:28193,37743:30331,37744:33759,37745:36077,37746:36884,37747:37117,37748:37709,37749:30757,37750:30778,37751:21162,37752:24230,37753:22303,37754:22900,37755:24594,37756:20498,37757:20826,37758:20908,37760:20941,37761:20992,37762:21776,37763:22612,37764:22616,37765:22871,37766:23445,37767:23798,37768:23947,37769:24764,37770:25237,37771:25645,37772:26481,37773:26691,37774:26812,37775:26847,37776:30423,37777:28120,37778:28271,37779:28059,37780:28783,37781:29128,37782:24403,37783:30168,37784:31095,37785:31561,37786:31572,37787:31570,37788:31958,37789:32113,37790:21040,37791:33891,37792:34153,37793:34276,37794:35342,37795:35588,37796:35910,37797:36367,37798:36867,37799:36879,37800:37913,37801:38518,37802:38957,37803:39472,37804:38360,37805:20685,37806:21205,37807:21516,37808:22530,37809:23566,37810:24999,37811:25758,37812:27934,37813:30643,37814:31461,37815:33012,37816:33796,37817:36947,37818:37509,37819:23776,37820:40199,37821:21311,37822:24471,37823:24499,37824:28060,37825:29305,37826:30563,37827:31167,37828:31716,37829:27602,37830:29420,37831:35501,37832:26627,37833:27233,37834:20984,37835:31361,37836:26932,37837:23626,37838:40182,37839:33515,37840:23493,37841:37193,37842:28702,37843:22136,37844:23663,37845:24775,37846:25958,37847:27788,37848:35930,37849:36929,37850:38931,37851:21585,37852:26311,37853:37389,37854:22856,37855:37027,37856:20869,37857:20045,37858:20970,37859:34201,37860:35598,37861:28760,37862:25466,37863:37707,37864:26978,37865:39348,37866:32260,37867:30071,37868:21335,37869:26976,37870:36575,37871:38627,37872:27741,37873:20108,37874:23612,37875:24336,37876:36841,37877:21250,37878:36049,37879:32905,37880:34425,37881:24319,37882:26085,37883:20083,37884:20837,37952:22914,37953:23615,37954:38894,37955:20219,37956:22922,37957:24525,37958:35469,37959:28641,37960:31152,37961:31074,37962:23527,37963:33905,37964:29483,37965:29105,37966:24180,37967:24565,37968:25467,37969:25754,37970:29123,37971:31896,37972:20035,37973:24316,37974:20043,37975:22492,37976:22178,37977:24745,37978:28611,37979:32013,37980:33021,37981:33075,37982:33215,37983:36786,37984:35223,37985:34468,37986:24052,37987:25226,37988:25773,37989:35207,37990:26487,37991:27874,37992:27966,37993:29750,37994:30772,37995:23110,37996:32629,37997:33453,37998:39340,37999:20467,38e3:24259,38001:25309,38002:25490,38003:25943,38004:26479,38005:30403,38006:29260,38007:32972,38008:32954,38009:36649,38010:37197,38011:20493,38012:22521,38013:23186,38014:26757,38016:26995,38017:29028,38018:29437,38019:36023,38020:22770,38021:36064,38022:38506,38023:36889,38024:34687,38025:31204,38026:30695,38027:33833,38028:20271,38029:21093,38030:21338,38031:25293,38032:26575,38033:27850,38034:30333,38035:31636,38036:31893,38037:33334,38038:34180,38039:36843,38040:26333,38041:28448,38042:29190,38043:32283,38044:33707,38045:39361,38046:40614,38047:20989,38048:31665,38049:30834,38050:31672,38051:32903,38052:31560,38053:27368,38054:24161,38055:32908,38056:30033,38057:30048,38058:20843,38059:37474,38060:28300,38061:30330,38062:37271,38063:39658,38064:20240,38065:32624,38066:25244,38067:31567,38068:38309,38069:40169,38070:22138,38071:22617,38072:34532,38073:38588,38074:20276,38075:21028,38076:21322,38077:21453,38078:21467,38079:24070,38080:25644,38081:26001,38082:26495,38083:27710,38084:27726,38085:29256,38086:29359,38087:29677,38088:30036,38089:32321,38090:33324,38091:34281,38092:36009,38093:31684,38094:37318,38095:29033,38096:38930,38097:39151,38098:25405,38099:26217,38100:30058,38101:30436,38102:30928,38103:34115,38104:34542,38105:21290,38106:21329,38107:21542,38108:22915,38109:24199,38110:24444,38111:24754,38112:25161,38113:25209,38114:25259,38115:26e3,38116:27604,38117:27852,38118:30130,38119:30382,38120:30865,38121:31192,38122:32203,38123:32631,38124:32933,38125:34987,38126:35513,38127:36027,38128:36991,38129:38750,38130:39131,38131:27147,38132:31800,38133:20633,38134:23614,38135:24494,38136:26503,38137:27608,38138:29749,38139:30473,38140:32654,38208:40763,38209:26570,38210:31255,38211:21305,38212:30091,38213:39661,38214:24422,38215:33181,38216:33777,38217:32920,38218:24380,38219:24517,38220:30050,38221:31558,38222:36924,38223:26727,38224:23019,38225:23195,38226:32016,38227:30334,38228:35628,38229:20469,38230:24426,38231:27161,38232:27703,38233:28418,38234:29922,38235:31080,38236:34920,38237:35413,38238:35961,38239:24287,38240:25551,38241:30149,38242:31186,38243:33495,38244:37672,38245:37618,38246:33948,38247:34541,38248:39981,38249:21697,38250:24428,38251:25996,38252:27996,38253:28693,38254:36007,38255:36051,38256:38971,38257:25935,38258:29942,38259:19981,38260:20184,38261:22496,38262:22827,38263:23142,38264:23500,38265:20904,38266:24067,38267:24220,38268:24598,38269:25206,38270:25975,38272:26023,38273:26222,38274:28014,38275:29238,38276:31526,38277:33104,38278:33178,38279:33433,38280:35676,38281:36e3,38282:36070,38283:36212,38284:38428,38285:38468,38286:20398,38287:25771,38288:27494,38289:33310,38290:33889,38291:34154,38292:37096,38293:23553,38294:26963,38295:39080,38296:33914,38297:34135,38298:20239,38299:21103,38300:24489,38301:24133,38302:26381,38303:31119,38304:33145,38305:35079,38306:35206,38307:28149,38308:24343,38309:25173,38310:27832,38311:20175,38312:29289,38313:39826,38314:20998,38315:21563,38316:22132,38317:22707,38318:24996,38319:25198,38320:28954,38321:22894,38322:31881,38323:31966,38324:32027,38325:38640,38326:25991,38327:32862,38328:19993,38329:20341,38330:20853,38331:22592,38332:24163,38333:24179,38334:24330,38335:26564,38336:20006,38337:34109,38338:38281,38339:38491,38340:31859,38341:38913,38342:20731,38343:22721,38344:30294,38345:30887,38346:21029,38347:30629,38348:34065,38349:31622,38350:20559,38351:22793,38352:29255,38353:31687,38354:32232,38355:36794,38356:36820,38357:36941,38358:20415,38359:21193,38360:23081,38361:24321,38362:38829,38363:20445,38364:33303,38365:37610,38366:22275,38367:25429,38368:27497,38369:29995,38370:35036,38371:36628,38372:31298,38373:21215,38374:22675,38375:24917,38376:25098,38377:26286,38378:27597,38379:31807,38380:33769,38381:20515,38382:20472,38383:21253,38384:21574,38385:22577,38386:22857,38387:23453,38388:23792,38389:23791,38390:23849,38391:24214,38392:25265,38393:25447,38394:25918,38395:26041,38396:26379,38464:27861,38465:27873,38466:28921,38467:30770,38468:32299,38469:32990,38470:33459,38471:33804,38472:34028,38473:34562,38474:35090,38475:35370,38476:35914,38477:37030,38478:37586,38479:39165,38480:40179,38481:40300,38482:20047,38483:20129,38484:20621,38485:21078,38486:22346,38487:22952,38488:24125,38489:24536,38490:24537,38491:25151,38492:26292,38493:26395,38494:26576,38495:26834,38496:20882,38497:32033,38498:32938,38499:33192,38500:35584,38501:35980,38502:36031,38503:37502,38504:38450,38505:21536,38506:38956,38507:21271,38508:20693,38509:21340,38510:22696,38511:25778,38512:26420,38513:29287,38514:30566,38515:31302,38516:37350,38517:21187,38518:27809,38519:27526,38520:22528,38521:24140,38522:22868,38523:26412,38524:32763,38525:20961,38526:30406,38528:25705,38529:30952,38530:39764,38531:40635,38532:22475,38533:22969,38534:26151,38535:26522,38536:27598,38537:21737,38538:27097,38539:24149,38540:33180,38541:26517,38542:39850,38543:26622,38544:40018,38545:26717,38546:20134,38547:20451,38548:21448,38549:25273,38550:26411,38551:27819,38552:36804,38553:20397,38554:32365,38555:40639,38556:19975,38557:24930,38558:28288,38559:28459,38560:34067,38561:21619,38562:26410,38563:39749,38564:24051,38565:31637,38566:23724,38567:23494,38568:34588,38569:28234,38570:34001,38571:31252,38572:33032,38573:22937,38574:31885,38575:27665,38576:30496,38577:21209,38578:22818,38579:28961,38580:29279,38581:30683,38582:38695,38583:40289,38584:26891,38585:23167,38586:23064,38587:20901,38588:21517,38589:21629,38590:26126,38591:30431,38592:36855,38593:37528,38594:40180,38595:23018,38596:29277,38597:28357,38598:20813,38599:26825,38600:32191,38601:32236,38602:38754,38603:40634,38604:25720,38605:27169,38606:33538,38607:22916,38608:23391,38609:27611,38610:29467,38611:30450,38612:32178,38613:32791,38614:33945,38615:20786,38616:26408,38617:40665,38618:30446,38619:26466,38620:21247,38621:39173,38622:23588,38623:25147,38624:31870,38625:36016,38626:21839,38627:24758,38628:32011,38629:38272,38630:21249,38631:20063,38632:20918,38633:22812,38634:29242,38635:32822,38636:37326,38637:24357,38638:30690,38639:21380,38640:24441,38641:32004,38642:34220,38643:35379,38644:36493,38645:38742,38646:26611,38647:34222,38648:37971,38649:24841,38650:24840,38651:27833,38652:30290,38720:35565,38721:36664,38722:21807,38723:20305,38724:20778,38725:21191,38726:21451,38727:23461,38728:24189,38729:24736,38730:24962,38731:25558,38732:26377,38733:26586,38734:28263,38735:28044,38736:29494,38737:29495,38738:30001,38739:31056,38740:35029,38741:35480,38742:36938,38743:37009,38744:37109,38745:38596,38746:34701,38747:22805,38748:20104,38749:20313,38750:19982,38751:35465,38752:36671,38753:38928,38754:20653,38755:24188,38756:22934,38757:23481,38758:24248,38759:25562,38760:25594,38761:25793,38762:26332,38763:26954,38764:27096,38765:27915,38766:28342,38767:29076,38768:29992,38769:31407,38770:32650,38771:32768,38772:33865,38773:33993,38774:35201,38775:35617,38776:36362,38777:36965,38778:38525,38779:39178,38780:24958,38781:25233,38782:27442,38784:27779,38785:28020,38786:32716,38787:32764,38788:28096,38789:32645,38790:34746,38791:35064,38792:26469,38793:33713,38794:38972,38795:38647,38796:27931,38797:32097,38798:33853,38799:37226,38800:20081,38801:21365,38802:23888,38803:27396,38804:28651,38805:34253,38806:34349,38807:35239,38808:21033,38809:21519,38810:23653,38811:26446,38812:26792,38813:29702,38814:29827,38815:30178,38816:35023,38817:35041,38818:37324,38819:38626,38820:38520,38821:24459,38822:29575,38823:31435,38824:33870,38825:25504,38826:30053,38827:21129,38828:27969,38829:28316,38830:29705,38831:30041,38832:30827,38833:31890,38834:38534,38835:31452,38836:40845,38837:20406,38838:24942,38839:26053,38840:34396,38841:20102,38842:20142,38843:20698,38844:20001,38845:20940,38846:23534,38847:26009,38848:26753,38849:28092,38850:29471,38851:30274,38852:30637,38853:31260,38854:31975,38855:33391,38856:35538,38857:36988,38858:37327,38859:38517,38860:38936,38861:21147,38862:32209,38863:20523,38864:21400,38865:26519,38866:28107,38867:29136,38868:29747,38869:33256,38870:36650,38871:38563,38872:40023,38873:40607,38874:29792,38875:22593,38876:28057,38877:32047,38878:39006,38879:20196,38880:20278,38881:20363,38882:20919,38883:21169,38884:23994,38885:24604,38886:29618,38887:31036,38888:33491,38889:37428,38890:38583,38891:38646,38892:38666,38893:40599,38894:40802,38895:26278,38896:27508,38897:21015,38898:21155,38899:28872,38900:35010,38901:24265,38902:24651,38903:24976,38904:28451,38905:29001,38906:31806,38907:32244,38908:32879,38976:34030,38977:36899,38978:37676,38979:21570,38980:39791,38981:27347,38982:28809,38983:36034,38984:36335,38985:38706,38986:21172,38987:23105,38988:24266,38989:24324,38990:26391,38991:27004,38992:27028,38993:28010,38994:28431,38995:29282,38996:29436,38997:31725,38998:32769,38999:32894,39e3:34635,39001:37070,39002:20845,39003:40595,39004:31108,39005:32907,39006:37682,39007:35542,39008:20525,39009:21644,39010:35441,39011:27498,39012:36036,39013:33031,39014:24785,39015:26528,39016:40434,39017:20121,39018:20120,39019:39952,39020:35435,39021:34241,39022:34152,39023:26880,39024:28286,39025:30871,39026:33109,39071:24332,39072:19984,39073:19989,39074:20010,39075:20017,39076:20022,39077:20028,39078:20031,39079:20034,39080:20054,39081:20056,39082:20098,39083:20101,39084:35947,39085:20106,39086:33298,39087:24333,39088:20110,39089:20126,39090:20127,39091:20128,39092:20130,39093:20144,39094:20147,39095:20150,39096:20174,39097:20173,39098:20164,39099:20166,39100:20162,39101:20183,39102:20190,39103:20205,39104:20191,39105:20215,39106:20233,39107:20314,39108:20272,39109:20315,39110:20317,39111:20311,39112:20295,39113:20342,39114:20360,39115:20367,39116:20376,39117:20347,39118:20329,39119:20336,39120:20369,39121:20335,39122:20358,39123:20374,39124:20760,39125:20436,39126:20447,39127:20430,39128:20440,39129:20443,39130:20433,39131:20442,39132:20432,39133:20452,39134:20453,39135:20506,39136:20520,39137:20500,39138:20522,39139:20517,39140:20485,39141:20252,39142:20470,39143:20513,39144:20521,39145:20524,39146:20478,39147:20463,39148:20497,39149:20486,39150:20547,39151:20551,39152:26371,39153:20565,39154:20560,39155:20552,39156:20570,39157:20566,39158:20588,39159:20600,39160:20608,39161:20634,39162:20613,39163:20660,39164:20658,39232:20681,39233:20682,39234:20659,39235:20674,39236:20694,39237:20702,39238:20709,39239:20717,39240:20707,39241:20718,39242:20729,39243:20725,39244:20745,39245:20737,39246:20738,39247:20758,39248:20757,39249:20756,39250:20762,39251:20769,39252:20794,39253:20791,39254:20796,39255:20795,39256:20799,39257:20800,39258:20818,39259:20812,39260:20820,39261:20834,39262:31480,39263:20841,39264:20842,39265:20846,39266:20864,39267:20866,39268:22232,39269:20876,39270:20873,39271:20879,39272:20881,39273:20883,39274:20885,39275:20886,39276:20900,39277:20902,39278:20898,39279:20905,39280:20906,39281:20907,39282:20915,39283:20913,39284:20914,39285:20912,39286:20917,39287:20925,39288:20933,39289:20937,39290:20955,39291:20960,39292:34389,39293:20969,39294:20973,39296:20976,39297:20981,39298:20990,39299:20996,39300:21003,39301:21012,39302:21006,39303:21031,39304:21034,39305:21038,39306:21043,39307:21049,39308:21071,39309:21060,39310:21067,39311:21068,39312:21086,39313:21076,39314:21098,39315:21108,39316:21097,39317:21107,39318:21119,39319:21117,39320:21133,39321:21140,39322:21138,39323:21105,39324:21128,39325:21137,39326:36776,39327:36775,39328:21164,39329:21165,39330:21180,39331:21173,39332:21185,39333:21197,39334:21207,39335:21214,39336:21219,39337:21222,39338:39149,39339:21216,39340:21235,39341:21237,39342:21240,39343:21241,39344:21254,39345:21256,39346:30008,39347:21261,39348:21264,39349:21263,39350:21269,39351:21274,39352:21283,39353:21295,39354:21297,39355:21299,39356:21304,39357:21312,39358:21318,39359:21317,39360:19991,39361:21321,39362:21325,39363:20950,39364:21342,39365:21353,39366:21358,39367:22808,39368:21371,39369:21367,39370:21378,39371:21398,39372:21408,39373:21414,39374:21413,39375:21422,39376:21424,39377:21430,39378:21443,39379:31762,39380:38617,39381:21471,39382:26364,39383:29166,39384:21486,39385:21480,39386:21485,39387:21498,39388:21505,39389:21565,39390:21568,39391:21548,39392:21549,39393:21564,39394:21550,39395:21558,39396:21545,39397:21533,39398:21582,39399:21647,39400:21621,39401:21646,39402:21599,39403:21617,39404:21623,39405:21616,39406:21650,39407:21627,39408:21632,39409:21622,39410:21636,39411:21648,39412:21638,39413:21703,39414:21666,39415:21688,39416:21669,39417:21676,39418:21700,39419:21704,39420:21672,39488:21675,39489:21698,39490:21668,39491:21694,39492:21692,39493:21720,39494:21733,39495:21734,39496:21775,39497:21780,39498:21757,39499:21742,39500:21741,39501:21754,39502:21730,39503:21817,39504:21824,39505:21859,39506:21836,39507:21806,39508:21852,39509:21829,39510:21846,39511:21847,39512:21816,39513:21811,39514:21853,39515:21913,39516:21888,39517:21679,39518:21898,39519:21919,39520:21883,39521:21886,39522:21912,39523:21918,39524:21934,39525:21884,39526:21891,39527:21929,39528:21895,39529:21928,39530:21978,39531:21957,39532:21983,39533:21956,39534:21980,39535:21988,39536:21972,39537:22036,39538:22007,39539:22038,39540:22014,39541:22013,39542:22043,39543:22009,39544:22094,39545:22096,39546:29151,39547:22068,39548:22070,39549:22066,39550:22072,39552:22123,39553:22116,39554:22063,39555:22124,39556:22122,39557:22150,39558:22144,39559:22154,39560:22176,39561:22164,39562:22159,39563:22181,39564:22190,39565:22198,39566:22196,39567:22210,39568:22204,39569:22209,39570:22211,39571:22208,39572:22216,39573:22222,39574:22225,39575:22227,39576:22231,39577:22254,39578:22265,39579:22272,39580:22271,39581:22276,39582:22281,39583:22280,39584:22283,39585:22285,39586:22291,39587:22296,39588:22294,39589:21959,39590:22300,39591:22310,39592:22327,39593:22328,39594:22350,39595:22331,39596:22336,39597:22351,39598:22377,39599:22464,39600:22408,39601:22369,39602:22399,39603:22409,39604:22419,39605:22432,39606:22451,39607:22436,39608:22442,39609:22448,39610:22467,39611:22470,39612:22484,39613:22482,39614:22483,39615:22538,39616:22486,39617:22499,39618:22539,39619:22553,39620:22557,39621:22642,39622:22561,39623:22626,39624:22603,39625:22640,39626:27584,39627:22610,39628:22589,39629:22649,39630:22661,39631:22713,39632:22687,39633:22699,39634:22714,39635:22750,39636:22715,39637:22712,39638:22702,39639:22725,39640:22739,39641:22737,39642:22743,39643:22745,39644:22744,39645:22757,39646:22748,39647:22756,39648:22751,39649:22767,39650:22778,39651:22777,39652:22779,39653:22780,39654:22781,39655:22786,39656:22794,39657:22800,39658:22811,39659:26790,39660:22821,39661:22828,39662:22829,39663:22834,39664:22840,39665:22846,39666:31442,39667:22869,39668:22864,39669:22862,39670:22874,39671:22872,39672:22882,39673:22880,39674:22887,39675:22892,39676:22889,39744:22904,39745:22913,39746:22941,39747:20318,39748:20395,39749:22947,39750:22962,39751:22982,39752:23016,39753:23004,39754:22925,39755:23001,39756:23002,39757:23077,39758:23071,39759:23057,39760:23068,39761:23049,39762:23066,39763:23104,39764:23148,39765:23113,39766:23093,39767:23094,39768:23138,39769:23146,39770:23194,39771:23228,39772:23230,39773:23243,39774:23234,39775:23229,39776:23267,39777:23255,39778:23270,39779:23273,39780:23254,39781:23290,39782:23291,39783:23308,39784:23307,39785:23318,39786:23346,39787:23248,39788:23338,39789:23350,39790:23358,39791:23363,39792:23365,39793:23360,39794:23377,39795:23381,39796:23386,39797:23387,39798:23397,39799:23401,39800:23408,39801:23411,39802:23413,39803:23416,39804:25992,39805:23418,39806:23424,39808:23427,39809:23462,39810:23480,39811:23491,39812:23495,39813:23497,39814:23508,39815:23504,39816:23524,39817:23526,39818:23522,39819:23518,39820:23525,39821:23531,39822:23536,39823:23542,39824:23539,39825:23557,39826:23559,39827:23560,39828:23565,39829:23571,39830:23584,39831:23586,39832:23592,39833:23608,39834:23609,39835:23617,39836:23622,39837:23630,39838:23635,39839:23632,39840:23631,39841:23409,39842:23660,39843:23662,39844:20066,39845:23670,39846:23673,39847:23692,39848:23697,39849:23700,39850:22939,39851:23723,39852:23739,39853:23734,39854:23740,39855:23735,39856:23749,39857:23742,39858:23751,39859:23769,39860:23785,39861:23805,39862:23802,39863:23789,39864:23948,39865:23786,39866:23819,39867:23829,39868:23831,39869:23900,39870:23839,39871:23835,39872:23825,39873:23828,39874:23842,39875:23834,39876:23833,39877:23832,39878:23884,39879:23890,39880:23886,39881:23883,39882:23916,39883:23923,39884:23926,39885:23943,39886:23940,39887:23938,39888:23970,39889:23965,39890:23980,39891:23982,39892:23997,39893:23952,39894:23991,39895:23996,39896:24009,39897:24013,39898:24019,39899:24018,39900:24022,39901:24027,39902:24043,39903:24050,39904:24053,39905:24075,39906:24090,39907:24089,39908:24081,39909:24091,39910:24118,39911:24119,39912:24132,39913:24131,39914:24128,39915:24142,39916:24151,39917:24148,39918:24159,39919:24162,39920:24164,39921:24135,39922:24181,39923:24182,39924:24186,39925:40636,39926:24191,39927:24224,39928:24257,39929:24258,39930:24264,39931:24272,39932:24271,4e4:24278,40001:24291,40002:24285,40003:24282,40004:24283,40005:24290,40006:24289,40007:24296,40008:24297,40009:24300,40010:24305,40011:24307,40012:24304,40013:24308,40014:24312,40015:24318,40016:24323,40017:24329,40018:24413,40019:24412,40020:24331,40021:24337,40022:24342,40023:24361,40024:24365,40025:24376,40026:24385,40027:24392,40028:24396,40029:24398,40030:24367,40031:24401,40032:24406,40033:24407,40034:24409,40035:24417,40036:24429,40037:24435,40038:24439,40039:24451,40040:24450,40041:24447,40042:24458,40043:24456,40044:24465,40045:24455,40046:24478,40047:24473,40048:24472,40049:24480,40050:24488,40051:24493,40052:24508,40053:24534,40054:24571,40055:24548,40056:24568,40057:24561,40058:24541,40059:24755,40060:24575,40061:24609,40062:24672,40064:24601,40065:24592,40066:24617,40067:24590,40068:24625,40069:24603,40070:24597,40071:24619,40072:24614,40073:24591,40074:24634,40075:24666,40076:24641,40077:24682,40078:24695,40079:24671,40080:24650,40081:24646,40082:24653,40083:24675,40084:24643,40085:24676,40086:24642,40087:24684,40088:24683,40089:24665,40090:24705,40091:24717,40092:24807,40093:24707,40094:24730,40095:24708,40096:24731,40097:24726,40098:24727,40099:24722,40100:24743,40101:24715,40102:24801,40103:24760,40104:24800,40105:24787,40106:24756,40107:24560,40108:24765,40109:24774,40110:24757,40111:24792,40112:24909,40113:24853,40114:24838,40115:24822,40116:24823,40117:24832,40118:24820,40119:24826,40120:24835,40121:24865,40122:24827,40123:24817,40124:24845,40125:24846,40126:24903,40127:24894,40128:24872,40129:24871,40130:24906,40131:24895,40132:24892,40133:24876,40134:24884,40135:24893,40136:24898,40137:24900,40138:24947,40139:24951,40140:24920,40141:24921,40142:24922,40143:24939,40144:24948,40145:24943,40146:24933,40147:24945,40148:24927,40149:24925,40150:24915,40151:24949,40152:24985,40153:24982,40154:24967,40155:25004,40156:24980,40157:24986,40158:24970,40159:24977,40160:25003,40161:25006,40162:25036,40163:25034,40164:25033,40165:25079,40166:25032,40167:25027,40168:25030,40169:25018,40170:25035,40171:32633,40172:25037,40173:25062,40174:25059,40175:25078,40176:25082,40177:25076,40178:25087,40179:25085,40180:25084,40181:25086,40182:25088,40183:25096,40184:25097,40185:25101,40186:25100,40187:25108,40188:25115,40256:25118,40257:25121,40258:25130,40259:25134,40260:25136,40261:25138,40262:25139,40263:25153,40264:25166,40265:25182,40266:25187,40267:25179,40268:25184,40269:25192,40270:25212,40271:25218,40272:25225,40273:25214,40274:25234,40275:25235,40276:25238,40277:25300,40278:25219,40279:25236,40280:25303,40281:25297,40282:25275,40283:25295,40284:25343,40285:25286,40286:25812,40287:25288,40288:25308,40289:25292,40290:25290,40291:25282,40292:25287,40293:25243,40294:25289,40295:25356,40296:25326,40297:25329,40298:25383,40299:25346,40300:25352,40301:25327,40302:25333,40303:25424,40304:25406,40305:25421,40306:25628,40307:25423,40308:25494,40309:25486,40310:25472,40311:25515,40312:25462,40313:25507,40314:25487,40315:25481,40316:25503,40317:25525,40318:25451,40320:25449,40321:25534,40322:25577,40323:25536,40324:25542,40325:25571,40326:25545,40327:25554,40328:25590,40329:25540,40330:25622,40331:25652,40332:25606,40333:25619,40334:25638,40335:25654,40336:25885,40337:25623,40338:25640,40339:25615,40340:25703,40341:25711,40342:25718,40343:25678,40344:25898,40345:25749,40346:25747,40347:25765,40348:25769,40349:25736,40350:25788,40351:25818,40352:25810,40353:25797,40354:25799,40355:25787,40356:25816,40357:25794,40358:25841,40359:25831,40360:33289,40361:25824,40362:25825,40363:25260,40364:25827,40365:25839,40366:25900,40367:25846,40368:25844,40369:25842,40370:25850,40371:25856,40372:25853,40373:25880,40374:25884,40375:25861,40376:25892,40377:25891,40378:25899,40379:25908,40380:25909,40381:25911,40382:25910,40383:25912,40384:30027,40385:25928,40386:25942,40387:25941,40388:25933,40389:25944,40390:25950,40391:25949,40392:25970,40393:25976,40394:25986,40395:25987,40396:35722,40397:26011,40398:26015,40399:26027,40400:26039,40401:26051,40402:26054,40403:26049,40404:26052,40405:26060,40406:26066,40407:26075,40408:26073,40409:26080,40410:26081,40411:26097,40412:26482,40413:26122,40414:26115,40415:26107,40416:26483,40417:26165,40418:26166,40419:26164,40420:26140,40421:26191,40422:26180,40423:26185,40424:26177,40425:26206,40426:26205,40427:26212,40428:26215,40429:26216,40430:26207,40431:26210,40432:26224,40433:26243,40434:26248,40435:26254,40436:26249,40437:26244,40438:26264,40439:26269,40440:26305,40441:26297,40442:26313,40443:26302,40444:26300,40512:26308,40513:26296,40514:26326,40515:26330,40516:26336,40517:26175,40518:26342,40519:26345,40520:26352,40521:26357,40522:26359,40523:26383,40524:26390,40525:26398,40526:26406,40527:26407,40528:38712,40529:26414,40530:26431,40531:26422,40532:26433,40533:26424,40534:26423,40535:26438,40536:26462,40537:26464,40538:26457,40539:26467,40540:26468,40541:26505,40542:26480,40543:26537,40544:26492,40545:26474,40546:26508,40547:26507,40548:26534,40549:26529,40550:26501,40551:26551,40552:26607,40553:26548,40554:26604,40555:26547,40556:26601,40557:26552,40558:26596,40559:26590,40560:26589,40561:26594,40562:26606,40563:26553,40564:26574,40565:26566,40566:26599,40567:27292,40568:26654,40569:26694,40570:26665,40571:26688,40572:26701,40573:26674,40574:26702,40576:26803,40577:26667,40578:26713,40579:26723,40580:26743,40581:26751,40582:26783,40583:26767,40584:26797,40585:26772,40586:26781,40587:26779,40588:26755,40589:27310,40590:26809,40591:26740,40592:26805,40593:26784,40594:26810,40595:26895,40596:26765,40597:26750,40598:26881,40599:26826,40600:26888,40601:26840,40602:26914,40603:26918,40604:26849,40605:26892,40606:26829,40607:26836,40608:26855,40609:26837,40610:26934,40611:26898,40612:26884,40613:26839,40614:26851,40615:26917,40616:26873,40617:26848,40618:26863,40619:26920,40620:26922,40621:26906,40622:26915,40623:26913,40624:26822,40625:27001,40626:26999,40627:26972,40628:27e3,40629:26987,40630:26964,40631:27006,40632:26990,40633:26937,40634:26996,40635:26941,40636:26969,40637:26928,40638:26977,40639:26974,40640:26973,40641:27009,40642:26986,40643:27058,40644:27054,40645:27088,40646:27071,40647:27073,40648:27091,40649:27070,40650:27086,40651:23528,40652:27082,40653:27101,40654:27067,40655:27075,40656:27047,40657:27182,40658:27025,40659:27040,40660:27036,40661:27029,40662:27060,40663:27102,40664:27112,40665:27138,40666:27163,40667:27135,40668:27402,40669:27129,40670:27122,40671:27111,40672:27141,40673:27057,40674:27166,40675:27117,40676:27156,40677:27115,40678:27146,40679:27154,40680:27329,40681:27171,40682:27155,40683:27204,40684:27148,40685:27250,40686:27190,40687:27256,40688:27207,40689:27234,40690:27225,40691:27238,40692:27208,40693:27192,40694:27170,40695:27280,40696:27277,40697:27296,40698:27268,40699:27298,40700:27299,40768:27287,40769:34327,40770:27323,40771:27331,40772:27330,40773:27320,40774:27315,40775:27308,40776:27358,40777:27345,40778:27359,40779:27306,40780:27354,40781:27370,40782:27387,40783:27397,40784:34326,40785:27386,40786:27410,40787:27414,40788:39729,40789:27423,40790:27448,40791:27447,40792:30428,40793:27449,40794:39150,40795:27463,40796:27459,40797:27465,40798:27472,40799:27481,40800:27476,40801:27483,40802:27487,40803:27489,40804:27512,40805:27513,40806:27519,40807:27520,40808:27524,40809:27523,40810:27533,40811:27544,40812:27541,40813:27550,40814:27556,40815:27562,40816:27563,40817:27567,40818:27570,40819:27569,40820:27571,40821:27575,40822:27580,40823:27590,40824:27595,40825:27603,40826:27615,40827:27628,40828:27627,40829:27635,40830:27631,40832:40638,40833:27656,40834:27667,40835:27668,40836:27675,40837:27684,40838:27683,40839:27742,40840:27733,40841:27746,40842:27754,40843:27778,40844:27789,40845:27802,40846:27777,40847:27803,40848:27774,40849:27752,40850:27763,40851:27794,40852:27792,40853:27844,40854:27889,40855:27859,40856:27837,40857:27863,40858:27845,40859:27869,40860:27822,40861:27825,40862:27838,40863:27834,40864:27867,40865:27887,40866:27865,40867:27882,40868:27935,40869:34893,40870:27958,40871:27947,40872:27965,40873:27960,40874:27929,40875:27957,40876:27955,40877:27922,40878:27916,40879:28003,40880:28051,40881:28004,40882:27994,40883:28025,40884:27993,40885:28046,40886:28053,40887:28644,40888:28037,40889:28153,40890:28181,40891:28170,40892:28085,40893:28103,40894:28134,40895:28088,40896:28102,40897:28140,40898:28126,40899:28108,40900:28136,40901:28114,40902:28101,40903:28154,40904:28121,40905:28132,40906:28117,40907:28138,40908:28142,40909:28205,40910:28270,40911:28206,40912:28185,40913:28274,40914:28255,40915:28222,40916:28195,40917:28267,40918:28203,40919:28278,40920:28237,40921:28191,40922:28227,40923:28218,40924:28238,40925:28196,40926:28415,40927:28189,40928:28216,40929:28290,40930:28330,40931:28312,40932:28361,40933:28343,40934:28371,40935:28349,40936:28335,40937:28356,40938:28338,40939:28372,40940:28373,40941:28303,40942:28325,40943:28354,40944:28319,40945:28481,40946:28433,40947:28748,40948:28396,40949:28408,40950:28414,40951:28479,40952:28402,40953:28465,40954:28399,40955:28466,40956:28364,161:65377,162:65378,163:65379,164:65380,165:65381,166:65382,167:65383,168:65384,169:65385,170:65386,171:65387,172:65388,173:65389,174:65390,175:65391,176:65392,177:65393,178:65394,179:65395,180:65396,181:65397,182:65398,183:65399,184:65400,185:65401,186:65402,187:65403,188:65404,189:65405,190:65406,191:65407,192:65408,193:65409,194:65410,195:65411,196:65412,197:65413,198:65414,199:65415,200:65416,201:65417,202:65418,203:65419,204:65420,205:65421,206:65422,207:65423,208:65424,209:65425,210:65426,211:65427,212:65428,213:65429,214:65430,215:65431,216:65432,217:65433,218:65434,219:65435,220:65436,221:65437,222:65438,223:65439,57408:28478,57409:28435,57410:28407,57411:28550,57412:28538,57413:28536,57414:28545,57415:28544,57416:28527,57417:28507,57418:28659,57419:28525,57420:28546,57421:28540,57422:28504,57423:28558,57424:28561,57425:28610,57426:28518,57427:28595,57428:28579,57429:28577,57430:28580,57431:28601,57432:28614,57433:28586,57434:28639,57435:28629,57436:28652,57437:28628,57438:28632,57439:28657,57440:28654,57441:28635,57442:28681,57443:28683,57444:28666,57445:28689,57446:28673,57447:28687,57448:28670,57449:28699,57450:28698,57451:28532,57452:28701,57453:28696,57454:28703,57455:28720,57456:28734,57457:28722,57458:28753,57459:28771,57460:28825,57461:28818,57462:28847,57463:28913,57464:28844,57465:28856,57466:28851,57467:28846,57468:28895,57469:28875,57470:28893,57472:28889,57473:28937,57474:28925,57475:28956,57476:28953,57477:29029,57478:29013,57479:29064,57480:29030,57481:29026,57482:29004,57483:29014,57484:29036,57485:29071,57486:29179,57487:29060,57488:29077,57489:29096,57490:29100,57491:29143,57492:29113,57493:29118,57494:29138,57495:29129,57496:29140,57497:29134,57498:29152,57499:29164,57500:29159,57501:29173,57502:29180,57503:29177,57504:29183,57505:29197,57506:29200,57507:29211,57508:29224,57509:29229,57510:29228,57511:29232,57512:29234,57513:29243,57514:29244,57515:29247,57516:29248,57517:29254,57518:29259,57519:29272,57520:29300,57521:29310,57522:29314,57523:29313,57524:29319,57525:29330,57526:29334,57527:29346,57528:29351,57529:29369,57530:29362,57531:29379,57532:29382,57533:29380,57534:29390,57535:29394,57536:29410,57537:29408,57538:29409,57539:29433,57540:29431,57541:20495,57542:29463,57543:29450,57544:29468,57545:29462,57546:29469,57547:29492,57548:29487,57549:29481,57550:29477,57551:29502,57552:29518,57553:29519,57554:40664,57555:29527,57556:29546,57557:29544,57558:29552,57559:29560,57560:29557,57561:29563,57562:29562,57563:29640,57564:29619,57565:29646,57566:29627,57567:29632,57568:29669,57569:29678,57570:29662,57571:29858,57572:29701,57573:29807,57574:29733,57575:29688,57576:29746,57577:29754,57578:29781,57579:29759,57580:29791,57581:29785,57582:29761,57583:29788,57584:29801,57585:29808,57586:29795,57587:29802,57588:29814,57589:29822,57590:29835,57591:29854,57592:29863,57593:29898,57594:29903,57595:29908,57596:29681,57664:29920,57665:29923,57666:29927,57667:29929,57668:29934,57669:29938,57670:29936,57671:29937,57672:29944,57673:29943,57674:29956,57675:29955,57676:29957,57677:29964,57678:29966,57679:29965,57680:29973,57681:29971,57682:29982,57683:29990,57684:29996,57685:30012,57686:30020,57687:30029,57688:30026,57689:30025,57690:30043,57691:30022,57692:30042,57693:30057,57694:30052,57695:30055,57696:30059,57697:30061,57698:30072,57699:30070,57700:30086,57701:30087,57702:30068,57703:30090,57704:30089,57705:30082,57706:30100,57707:30106,57708:30109,57709:30117,57710:30115,57711:30146,57712:30131,57713:30147,57714:30133,57715:30141,57716:30136,57717:30140,57718:30129,57719:30157,57720:30154,57721:30162,57722:30169,57723:30179,57724:30174,57725:30206,57726:30207,57728:30204,57729:30209,57730:30192,57731:30202,57732:30194,57733:30195,57734:30219,57735:30221,57736:30217,57737:30239,57738:30247,57739:30240,57740:30241,57741:30242,57742:30244,57743:30260,57744:30256,57745:30267,57746:30279,57747:30280,57748:30278,57749:30300,57750:30296,57751:30305,57752:30306,57753:30312,57754:30313,57755:30314,57756:30311,57757:30316,57758:30320,57759:30322,57760:30326,57761:30328,57762:30332,57763:30336,57764:30339,57765:30344,57766:30347,57767:30350,57768:30358,57769:30355,57770:30361,57771:30362,57772:30384,57773:30388,57774:30392,57775:30393,57776:30394,57777:30402,57778:30413,57779:30422,57780:30418,57781:30430,57782:30433,57783:30437,57784:30439,57785:30442,57786:34351,57787:30459,57788:30472,57789:30471,57790:30468,57791:30505,57792:30500,57793:30494,57794:30501,57795:30502,57796:30491,57797:30519,57798:30520,57799:30535,57800:30554,57801:30568,57802:30571,57803:30555,57804:30565,57805:30591,57806:30590,57807:30585,57808:30606,57809:30603,57810:30609,57811:30624,57812:30622,57813:30640,57814:30646,57815:30649,57816:30655,57817:30652,57818:30653,57819:30651,57820:30663,57821:30669,57822:30679,57823:30682,57824:30684,57825:30691,57826:30702,57827:30716,57828:30732,57829:30738,57830:31014,57831:30752,57832:31018,57833:30789,57834:30862,57835:30836,57836:30854,57837:30844,57838:30874,57839:30860,57840:30883,57841:30901,57842:30890,57843:30895,57844:30929,57845:30918,57846:30923,57847:30932,57848:30910,57849:30908,57850:30917,57851:30922,57852:30956,57920:30951,57921:30938,57922:30973,57923:30964,57924:30983,57925:30994,57926:30993,57927:31001,57928:31020,57929:31019,57930:31040,57931:31072,57932:31063,57933:31071,57934:31066,57935:31061,57936:31059,57937:31098,57938:31103,57939:31114,57940:31133,57941:31143,57942:40779,57943:31146,57944:31150,57945:31155,57946:31161,57947:31162,57948:31177,57949:31189,57950:31207,57951:31212,57952:31201,57953:31203,57954:31240,57955:31245,57956:31256,57957:31257,57958:31264,57959:31263,57960:31104,57961:31281,57962:31291,57963:31294,57964:31287,57965:31299,57966:31319,57967:31305,57968:31329,57969:31330,57970:31337,57971:40861,57972:31344,57973:31353,57974:31357,57975:31368,57976:31383,57977:31381,57978:31384,57979:31382,57980:31401,57981:31432,57982:31408,57984:31414,57985:31429,57986:31428,57987:31423,57988:36995,57989:31431,57990:31434,57991:31437,57992:31439,57993:31445,57994:31443,57995:31449,57996:31450,57997:31453,57998:31457,57999:31458,58e3:31462,58001:31469,58002:31472,58003:31490,58004:31503,58005:31498,58006:31494,58007:31539,58008:31512,58009:31513,58010:31518,58011:31541,58012:31528,58013:31542,58014:31568,58015:31610,58016:31492,58017:31565,58018:31499,58019:31564,58020:31557,58021:31605,58022:31589,58023:31604,58024:31591,58025:31600,58026:31601,58027:31596,58028:31598,58029:31645,58030:31640,58031:31647,58032:31629,58033:31644,58034:31642,58035:31627,58036:31634,58037:31631,58038:31581,58039:31641,58040:31691,58041:31681,58042:31692,58043:31695,58044:31668,58045:31686,58046:31709,58047:31721,58048:31761,58049:31764,58050:31718,58051:31717,58052:31840,58053:31744,58054:31751,58055:31763,58056:31731,58057:31735,58058:31767,58059:31757,58060:31734,58061:31779,58062:31783,58063:31786,58064:31775,58065:31799,58066:31787,58067:31805,58068:31820,58069:31811,58070:31828,58071:31823,58072:31808,58073:31824,58074:31832,58075:31839,58076:31844,58077:31830,58078:31845,58079:31852,58080:31861,58081:31875,58082:31888,58083:31908,58084:31917,58085:31906,58086:31915,58087:31905,58088:31912,58089:31923,58090:31922,58091:31921,58092:31918,58093:31929,58094:31933,58095:31936,58096:31941,58097:31938,58098:31960,58099:31954,58100:31964,58101:31970,58102:39739,58103:31983,58104:31986,58105:31988,58106:31990,58107:31994,58108:32006,58176:32002,58177:32028,58178:32021,58179:32010,58180:32069,58181:32075,58182:32046,58183:32050,58184:32063,58185:32053,58186:32070,58187:32115,58188:32086,58189:32078,58190:32114,58191:32104,58192:32110,58193:32079,58194:32099,58195:32147,58196:32137,58197:32091,58198:32143,58199:32125,58200:32155,58201:32186,58202:32174,58203:32163,58204:32181,58205:32199,58206:32189,58207:32171,58208:32317,58209:32162,58210:32175,58211:32220,58212:32184,58213:32159,58214:32176,58215:32216,58216:32221,58217:32228,58218:32222,58219:32251,58220:32242,58221:32225,58222:32261,58223:32266,58224:32291,58225:32289,58226:32274,58227:32305,58228:32287,58229:32265,58230:32267,58231:32290,58232:32326,58233:32358,58234:32315,58235:32309,58236:32313,58237:32323,58238:32311,58240:32306,58241:32314,58242:32359,58243:32349,58244:32342,58245:32350,58246:32345,58247:32346,58248:32377,58249:32362,58250:32361,58251:32380,58252:32379,58253:32387,58254:32213,58255:32381,58256:36782,58257:32383,58258:32392,58259:32393,58260:32396,58261:32402,58262:32400,58263:32403,58264:32404,58265:32406,58266:32398,58267:32411,58268:32412,58269:32568,58270:32570,58271:32581,58272:32588,58273:32589,58274:32590,58275:32592,58276:32593,58277:32597,58278:32596,58279:32600,58280:32607,58281:32608,58282:32616,58283:32617,58284:32615,58285:32632,58286:32642,58287:32646,58288:32643,58289:32648,58290:32647,58291:32652,58292:32660,58293:32670,58294:32669,58295:32666,58296:32675,58297:32687,58298:32690,58299:32697,58300:32686,58301:32694,58302:32696,58303:35697,58304:32709,58305:32710,58306:32714,58307:32725,58308:32724,58309:32737,58310:32742,58311:32745,58312:32755,58313:32761,58314:39132,58315:32774,58316:32772,58317:32779,58318:32786,58319:32792,58320:32793,58321:32796,58322:32801,58323:32808,58324:32831,58325:32827,58326:32842,58327:32838,58328:32850,58329:32856,58330:32858,58331:32863,58332:32866,58333:32872,58334:32883,58335:32882,58336:32880,58337:32886,58338:32889,58339:32893,58340:32895,58341:32900,58342:32902,58343:32901,58344:32923,58345:32915,58346:32922,58347:32941,58348:20880,58349:32940,58350:32987,58351:32997,58352:32985,58353:32989,58354:32964,58355:32986,58356:32982,58357:33033,58358:33007,58359:33009,58360:33051,58361:33065,58362:33059,58363:33071,58364:33099,58432:38539,58433:33094,58434:33086,58435:33107,58436:33105,58437:33020,58438:33137,58439:33134,58440:33125,58441:33126,58442:33140,58443:33155,58444:33160,58445:33162,58446:33152,58447:33154,58448:33184,58449:33173,58450:33188,58451:33187,58452:33119,58453:33171,58454:33193,58455:33200,58456:33205,58457:33214,58458:33208,58459:33213,58460:33216,58461:33218,58462:33210,58463:33225,58464:33229,58465:33233,58466:33241,58467:33240,58468:33224,58469:33242,58470:33247,58471:33248,58472:33255,58473:33274,58474:33275,58475:33278,58476:33281,58477:33282,58478:33285,58479:33287,58480:33290,58481:33293,58482:33296,58483:33302,58484:33321,58485:33323,58486:33336,58487:33331,58488:33344,58489:33369,58490:33368,58491:33373,58492:33370,58493:33375,58494:33380,58496:33378,58497:33384,58498:33386,58499:33387,58500:33326,58501:33393,58502:33399,58503:33400,58504:33406,58505:33421,58506:33426,58507:33451,58508:33439,58509:33467,58510:33452,58511:33505,58512:33507,58513:33503,58514:33490,58515:33524,58516:33523,58517:33530,58518:33683,58519:33539,58520:33531,58521:33529,58522:33502,58523:33542,58524:33500,58525:33545,58526:33497,58527:33589,58528:33588,58529:33558,58530:33586,58531:33585,58532:33600,58533:33593,58534:33616,58535:33605,58536:33583,58537:33579,58538:33559,58539:33560,58540:33669,58541:33690,58542:33706,58543:33695,58544:33698,58545:33686,58546:33571,58547:33678,58548:33671,58549:33674,58550:33660,58551:33717,58552:33651,58553:33653,58554:33696,58555:33673,58556:33704,58557:33780,58558:33811,58559:33771,58560:33742,58561:33789,58562:33795,58563:33752,58564:33803,58565:33729,58566:33783,58567:33799,58568:33760,58569:33778,58570:33805,58571:33826,58572:33824,58573:33725,58574:33848,58575:34054,58576:33787,58577:33901,58578:33834,58579:33852,58580:34138,58581:33924,58582:33911,58583:33899,58584:33965,58585:33902,58586:33922,58587:33897,58588:33862,58589:33836,58590:33903,58591:33913,58592:33845,58593:33994,58594:33890,58595:33977,58596:33983,58597:33951,58598:34009,58599:33997,58600:33979,58601:34010,58602:34e3,58603:33985,58604:33990,58605:34006,58606:33953,58607:34081,58608:34047,58609:34036,58610:34071,58611:34072,58612:34092,58613:34079,58614:34069,58615:34068,58616:34044,58617:34112,58618:34147,58619:34136,58620:34120,58688:34113,58689:34306,58690:34123,58691:34133,58692:34176,58693:34212,58694:34184,58695:34193,58696:34186,58697:34216,58698:34157,58699:34196,58700:34203,58701:34282,58702:34183,58703:34204,58704:34167,58705:34174,58706:34192,58707:34249,58708:34234,58709:34255,58710:34233,58711:34256,58712:34261,58713:34269,58714:34277,58715:34268,58716:34297,58717:34314,58718:34323,58719:34315,58720:34302,58721:34298,58722:34310,58723:34338,58724:34330,58725:34352,58726:34367,58727:34381,58728:20053,58729:34388,58730:34399,58731:34407,58732:34417,58733:34451,58734:34467,58735:34473,58736:34474,58737:34443,58738:34444,58739:34486,58740:34479,58741:34500,58742:34502,58743:34480,58744:34505,58745:34851,58746:34475,58747:34516,58748:34526,58749:34537,58750:34540,58752:34527,58753:34523,58754:34543,58755:34578,58756:34566,58757:34568,58758:34560,58759:34563,58760:34555,58761:34577,58762:34569,58763:34573,58764:34553,58765:34570,58766:34612,58767:34623,58768:34615,58769:34619,58770:34597,58771:34601,58772:34586,58773:34656,58774:34655,58775:34680,58776:34636,58777:34638,58778:34676,58779:34647,58780:34664,58781:34670,58782:34649,58783:34643,58784:34659,58785:34666,58786:34821,58787:34722,58788:34719,58789:34690,58790:34735,58791:34763,58792:34749,58793:34752,58794:34768,58795:38614,58796:34731,58797:34756,58798:34739,58799:34759,58800:34758,58801:34747,58802:34799,58803:34802,58804:34784,58805:34831,58806:34829,58807:34814,58808:34806,58809:34807,58810:34830,58811:34770,58812:34833,58813:34838,58814:34837,58815:34850,58816:34849,58817:34865,58818:34870,58819:34873,58820:34855,58821:34875,58822:34884,58823:34882,58824:34898,58825:34905,58826:34910,58827:34914,58828:34923,58829:34945,58830:34942,58831:34974,58832:34933,58833:34941,58834:34997,58835:34930,58836:34946,58837:34967,58838:34962,58839:34990,58840:34969,58841:34978,58842:34957,58843:34980,58844:34992,58845:35007,58846:34993,58847:35011,58848:35012,58849:35028,58850:35032,58851:35033,58852:35037,58853:35065,58854:35074,58855:35068,58856:35060,58857:35048,58858:35058,58859:35076,58860:35084,58861:35082,58862:35091,58863:35139,58864:35102,58865:35109,58866:35114,58867:35115,58868:35137,58869:35140,58870:35131,58871:35126,58872:35128,58873:35148,58874:35101,58875:35168,58876:35166,58944:35174,58945:35172,58946:35181,58947:35178,58948:35183,58949:35188,58950:35191,58951:35198,58952:35203,58953:35208,58954:35210,58955:35219,58956:35224,58957:35233,58958:35241,58959:35238,58960:35244,58961:35247,58962:35250,58963:35258,58964:35261,58965:35263,58966:35264,58967:35290,58968:35292,58969:35293,58970:35303,58971:35316,58972:35320,58973:35331,58974:35350,58975:35344,58976:35340,58977:35355,58978:35357,58979:35365,58980:35382,58981:35393,58982:35419,58983:35410,58984:35398,58985:35400,58986:35452,58987:35437,58988:35436,58989:35426,58990:35461,58991:35458,58992:35460,58993:35496,58994:35489,58995:35473,58996:35493,58997:35494,58998:35482,58999:35491,59e3:35524,59001:35533,59002:35522,59003:35546,59004:35563,59005:35571,59006:35559,59008:35556,59009:35569,59010:35604,59011:35552,59012:35554,59013:35575,59014:35550,59015:35547,59016:35596,59017:35591,59018:35610,59019:35553,59020:35606,59021:35600,59022:35607,59023:35616,59024:35635,59025:38827,59026:35622,59027:35627,59028:35646,59029:35624,59030:35649,59031:35660,59032:35663,59033:35662,59034:35657,59035:35670,59036:35675,59037:35674,59038:35691,59039:35679,59040:35692,59041:35695,59042:35700,59043:35709,59044:35712,59045:35724,59046:35726,59047:35730,59048:35731,59049:35734,59050:35737,59051:35738,59052:35898,59053:35905,59054:35903,59055:35912,59056:35916,59057:35918,59058:35920,59059:35925,59060:35938,59061:35948,59062:35960,59063:35962,59064:35970,59065:35977,59066:35973,59067:35978,59068:35981,59069:35982,59070:35988,59071:35964,59072:35992,59073:25117,59074:36013,59075:36010,59076:36029,59077:36018,59078:36019,59079:36014,59080:36022,59081:36040,59082:36033,59083:36068,59084:36067,59085:36058,59086:36093,59087:36090,59088:36091,59089:36100,59090:36101,59091:36106,59092:36103,59093:36111,59094:36109,59095:36112,59096:40782,59097:36115,59098:36045,59099:36116,59100:36118,59101:36199,59102:36205,59103:36209,59104:36211,59105:36225,59106:36249,59107:36290,59108:36286,59109:36282,59110:36303,59111:36314,59112:36310,59113:36300,59114:36315,59115:36299,59116:36330,59117:36331,59118:36319,59119:36323,59120:36348,59121:36360,59122:36361,59123:36351,59124:36381,59125:36382,59126:36368,59127:36383,59128:36418,59129:36405,59130:36400,59131:36404,59132:36426,59200:36423,59201:36425,59202:36428,59203:36432,59204:36424,59205:36441,59206:36452,59207:36448,59208:36394,59209:36451,59210:36437,59211:36470,59212:36466,59213:36476,59214:36481,59215:36487,59216:36485,59217:36484,59218:36491,59219:36490,59220:36499,59221:36497,59222:36500,59223:36505,59224:36522,59225:36513,59226:36524,59227:36528,59228:36550,59229:36529,59230:36542,59231:36549,59232:36552,59233:36555,59234:36571,59235:36579,59236:36604,59237:36603,59238:36587,59239:36606,59240:36618,59241:36613,59242:36629,59243:36626,59244:36633,59245:36627,59246:36636,59247:36639,59248:36635,59249:36620,59250:36646,59251:36659,59252:36667,59253:36665,59254:36677,59255:36674,59256:36670,59257:36684,59258:36681,59259:36678,59260:36686,59261:36695,59262:36700,59264:36706,59265:36707,59266:36708,59267:36764,59268:36767,59269:36771,59270:36781,59271:36783,59272:36791,59273:36826,59274:36837,59275:36834,59276:36842,59277:36847,59278:36999,59279:36852,59280:36869,59281:36857,59282:36858,59283:36881,59284:36885,59285:36897,59286:36877,59287:36894,59288:36886,59289:36875,59290:36903,59291:36918,59292:36917,59293:36921,59294:36856,59295:36943,59296:36944,59297:36945,59298:36946,59299:36878,59300:36937,59301:36926,59302:36950,59303:36952,59304:36958,59305:36968,59306:36975,59307:36982,59308:38568,59309:36978,59310:36994,59311:36989,59312:36993,59313:36992,59314:37002,59315:37001,59316:37007,59317:37032,59318:37039,59319:37041,59320:37045,59321:37090,59322:37092,59323:25160,59324:37083,59325:37122,59326:37138,59327:37145,59328:37170,59329:37168,59330:37194,59331:37206,59332:37208,59333:37219,59334:37221,59335:37225,59336:37235,59337:37234,59338:37259,59339:37257,59340:37250,59341:37282,59342:37291,59343:37295,59344:37290,59345:37301,59346:37300,59347:37306,59348:37312,59349:37313,59350:37321,59351:37323,59352:37328,59353:37334,59354:37343,59355:37345,59356:37339,59357:37372,59358:37365,59359:37366,59360:37406,59361:37375,59362:37396,59363:37420,59364:37397,59365:37393,59366:37470,59367:37463,59368:37445,59369:37449,59370:37476,59371:37448,59372:37525,59373:37439,59374:37451,59375:37456,59376:37532,59377:37526,59378:37523,59379:37531,59380:37466,59381:37583,59382:37561,59383:37559,59384:37609,59385:37647,59386:37626,59387:37700,59388:37678,59456:37657,59457:37666,59458:37658,59459:37667,59460:37690,59461:37685,59462:37691,59463:37724,59464:37728,59465:37756,59466:37742,59467:37718,59468:37808,59469:37804,59470:37805,59471:37780,59472:37817,59473:37846,59474:37847,59475:37864,59476:37861,59477:37848,59478:37827,59479:37853,59480:37840,59481:37832,59482:37860,59483:37914,59484:37908,59485:37907,59486:37891,59487:37895,59488:37904,59489:37942,59490:37931,59491:37941,59492:37921,59493:37946,59494:37953,59495:37970,59496:37956,59497:37979,59498:37984,59499:37986,59500:37982,59501:37994,59502:37417,59503:38e3,59504:38005,59505:38007,59506:38013,59507:37978,59508:38012,59509:38014,59510:38017,59511:38015,59512:38274,59513:38279,59514:38282,59515:38292,59516:38294,59517:38296,59518:38297,59520:38304,59521:38312,59522:38311,59523:38317,59524:38332,59525:38331,59526:38329,59527:38334,59528:38346,59529:28662,59530:38339,59531:38349,59532:38348,59533:38357,59534:38356,59535:38358,59536:38364,59537:38369,59538:38373,59539:38370,59540:38433,59541:38440,59542:38446,59543:38447,59544:38466,59545:38476,59546:38479,59547:38475,59548:38519,59549:38492,59550:38494,59551:38493,59552:38495,59553:38502,59554:38514,59555:38508,59556:38541,59557:38552,59558:38549,59559:38551,59560:38570,59561:38567,59562:38577,59563:38578,59564:38576,59565:38580,59566:38582,59567:38584,59568:38585,59569:38606,59570:38603,59571:38601,59572:38605,59573:35149,59574:38620,59575:38669,59576:38613,59577:38649,59578:38660,59579:38662,59580:38664,59581:38675,59582:38670,59583:38673,59584:38671,59585:38678,59586:38681,59587:38692,59588:38698,59589:38704,59590:38713,59591:38717,59592:38718,59593:38724,59594:38726,59595:38728,59596:38722,59597:38729,59598:38748,59599:38752,59600:38756,59601:38758,59602:38760,59603:21202,59604:38763,59605:38769,59606:38777,59607:38789,59608:38780,59609:38785,59610:38778,59611:38790,59612:38795,59613:38799,59614:38800,59615:38812,59616:38824,59617:38822,59618:38819,59619:38835,59620:38836,59621:38851,59622:38854,59623:38856,59624:38859,59625:38876,59626:38893,59627:40783,59628:38898,59629:31455,59630:38902,59631:38901,59632:38927,59633:38924,59634:38968,59635:38948,59636:38945,59637:38967,59638:38973,59639:38982,59640:38991,59641:38987,59642:39019,59643:39023,59644:39024,59712:39025,59713:39028,59714:39027,59715:39082,59716:39087,59717:39089,59718:39094,59719:39108,59720:39107,59721:39110,59722:39145,59723:39147,59724:39171,59725:39177,59726:39186,59727:39188,59728:39192,59729:39201,59730:39197,59731:39198,59732:39204,59733:39200,59734:39212,59735:39214,59736:39229,59737:39230,59738:39234,59739:39241,59740:39237,59741:39248,59742:39243,59743:39249,59744:39250,59745:39244,59746:39253,59747:39319,59748:39320,59749:39333,59750:39341,59751:39342,59752:39356,59753:39391,59754:39387,59755:39389,59756:39384,59757:39377,59758:39405,59759:39406,59760:39409,59761:39410,59762:39419,59763:39416,59764:39425,59765:39439,59766:39429,59767:39394,59768:39449,59769:39467,59770:39479,59771:39493,59772:39490,59773:39488,59774:39491,59776:39486,59777:39509,59778:39501,59779:39515,59780:39511,59781:39519,59782:39522,59783:39525,59784:39524,59785:39529,59786:39531,59787:39530,59788:39597,59789:39600,59790:39612,59791:39616,59792:39631,59793:39633,59794:39635,59795:39636,59796:39646,59797:39647,59798:39650,59799:39651,59800:39654,59801:39663,59802:39659,59803:39662,59804:39668,59805:39665,59806:39671,59807:39675,59808:39686,59809:39704,59810:39706,59811:39711,59812:39714,59813:39715,59814:39717,59815:39719,59816:39720,59817:39721,59818:39722,59819:39726,59820:39727,59821:39730,59822:39748,59823:39747,59824:39759,59825:39757,59826:39758,59827:39761,59828:39768,59829:39796,59830:39827,59831:39811,59832:39825,59833:39830,59834:39831,59835:39839,59836:39840,59837:39848,59838:39860,59839:39872,59840:39882,59841:39865,59842:39878,59843:39887,59844:39889,59845:39890,59846:39907,59847:39906,59848:39908,59849:39892,59850:39905,59851:39994,59852:39922,59853:39921,59854:39920,59855:39957,59856:39956,59857:39945,59858:39955,59859:39948,59860:39942,59861:39944,59862:39954,59863:39946,59864:39940,59865:39982,59866:39963,59867:39973,59868:39972,59869:39969,59870:39984,59871:40007,59872:39986,59873:40006,59874:39998,59875:40026,59876:40032,59877:40039,59878:40054,59879:40056,59880:40167,59881:40172,59882:40176,59883:40201,59884:40200,59885:40171,59886:40195,59887:40198,59888:40234,59889:40230,59890:40367,59891:40227,59892:40223,59893:40260,59894:40213,59895:40210,59896:40257,59897:40255,59898:40254,59899:40262,59900:40264,59968:40285,59969:40286,59970:40292,59971:40273,59972:40272,59973:40281,59974:40306,59975:40329,59976:40327,59977:40363,59978:40303,59979:40314,59980:40346,59981:40356,59982:40361,59983:40370,59984:40388,59985:40385,59986:40379,59987:40376,59988:40378,59989:40390,59990:40399,59991:40386,59992:40409,59993:40403,59994:40440,59995:40422,59996:40429,59997:40431,59998:40445,59999:40474,6e4:40475,60001:40478,60002:40565,60003:40569,60004:40573,60005:40577,60006:40584,60007:40587,60008:40588,60009:40594,60010:40597,60011:40593,60012:40605,60013:40613,60014:40617,60015:40632,60016:40618,60017:40621,60018:38753,60019:40652,60020:40654,60021:40655,60022:40656,60023:40660,60024:40668,60025:40670,60026:40669,60027:40672,60028:40677,60029:40680,60030:40687,60032:40692,60033:40694,60034:40695,60035:40697,60036:40699,60037:40700,60038:40701,60039:40711,60040:40712,60041:30391,60042:40725,60043:40737,60044:40748,60045:40766,60046:40778,60047:40786,60048:40788,60049:40803,60050:40799,60051:40800,60052:40801,60053:40806,60054:40807,60055:40812,60056:40810,60057:40823,60058:40818,60059:40822,60060:40853,60061:40860,60062:40864,60063:22575,60064:27079,60065:36953,60066:29796,60067:20956,60068:29081}},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});var o=a(1),i=a(2);function s(c,d,f,v){var g;d.degree()<f.degree()&&(g=[f,d],d=g[0],f=g[1]);for(var p=d,m=f,E=c.zero,y=c.one;m.degree()>=v/2;){var B=p,D=E;if(p=m,E=y,p.isZero())return null;m=B;for(var A=c.zero,_=p.getCoefficient(p.degree()),C=c.inverse(_);m.degree()>=p.degree()&&!m.isZero();){var w=m.degree()-p.degree(),b=c.multiply(m.getCoefficient(m.degree()),C);A=A.addOrSubtract(c.buildMonomial(w,b)),m=m.addOrSubtract(p.multiplyByMonomial(w,b))}if(y=A.multiplyPoly(E).addOrSubtract(D),m.degree()>=p.degree())return null}var F=y.getCoefficient(0);if(F===0)return null;var S=c.inverse(F);return[y.multiply(S),m.multiply(S)]}function l(c,d){var f=d.degree();if(f===1)return[d.getCoefficient(1)];for(var v=new Array(f),g=0,p=1;p<c.size&&g<f;p++)d.evaluateAt(p)===0&&(v[g]=c.inverse(p),g++);return g!==f?null:v}function u(c,d,f){for(var v=f.length,g=new Array(v),p=0;p<v;p++){for(var m=c.inverse(f[p]),E=1,y=0;y<v;y++)p!==y&&(E=c.multiply(E,o.addOrSubtractGF(1,c.multiply(f[y],m))));g[p]=c.multiply(d.evaluateAt(m),c.inverse(E)),c.generatorBase!==0&&(g[p]=c.multiply(g[p],m))}return g}function x(c,d){var f=new Uint8ClampedArray(c.length);f.set(c);for(var v=new o.default(285,256,0),g=new i.default(v,f),p=new Uint8ClampedArray(d),m=!1,E=0;E<d;E++){var y=g.evaluateAt(v.exp(E+v.generatorBase));p[p.length-1-E]=y,y!==0&&(m=!0)}if(!m)return f;var B=new i.default(v,p),D=s(v,v.buildMonomial(d,1),B,d);if(D===null)return null;var A=l(v,D[0]);if(A==null)return null;for(var _=u(v,D[1],A),C=0;C<A.length;C++){var w=f.length-1-v.log(A[C]);if(w<0)return null;f[w]=o.addOrSubtractGF(f[w],_[C])}return f}n.decode=x},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0}),n.VERSIONS=[{infoBits:null,versionNumber:1,alignmentPatternCenters:[],errorCorrectionLevels:[{ecCodewordsPerBlock:7,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:13,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:13}]},{ecCodewordsPerBlock:17,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:2,alignmentPatternCenters:[6,18],errorCorrectionLevels:[{ecCodewordsPerBlock:10,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:34}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:28}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:16}]}]},{infoBits:null,versionNumber:3,alignmentPatternCenters:[6,22],errorCorrectionLevels:[{ecCodewordsPerBlock:15,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:55}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:13}]}]},{infoBits:null,versionNumber:4,alignmentPatternCenters:[6,26],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:80}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:32}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:9}]}]},{infoBits:null,versionNumber:5,alignmentPatternCenters:[6,30],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:43}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:11},{numBlocks:2,dataCodewordsPerBlock:12}]}]},{infoBits:null,versionNumber:6,alignmentPatternCenters:[6,34],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68}]},{ecCodewordsPerBlock:16,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:27}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:31892,versionNumber:7,alignmentPatternCenters:[6,22,38],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:78}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:31}]},{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:13},{numBlocks:1,dataCodewordsPerBlock:14}]}]},{infoBits:34236,versionNumber:8,alignmentPatternCenters:[6,24,42],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:97}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:38},{numBlocks:2,dataCodewordsPerBlock:39}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:18},{numBlocks:2,dataCodewordsPerBlock:19}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:14},{numBlocks:2,dataCodewordsPerBlock:15}]}]},{infoBits:39577,versionNumber:9,alignmentPatternCenters:[6,26,46],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:12},{numBlocks:4,dataCodewordsPerBlock:13}]}]},{infoBits:42195,versionNumber:10,alignmentPatternCenters:[6,28,50],errorCorrectionLevels:[{ecCodewordsPerBlock:18,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:68},{numBlocks:2,dataCodewordsPerBlock:69}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:43},{numBlocks:1,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:15},{numBlocks:2,dataCodewordsPerBlock:16}]}]},{infoBits:48118,versionNumber:11,alignmentPatternCenters:[6,30,54],errorCorrectionLevels:[{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:81}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:50},{numBlocks:4,dataCodewordsPerBlock:51}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:22},{numBlocks:4,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:12},{numBlocks:8,dataCodewordsPerBlock:13}]}]},{infoBits:51042,versionNumber:12,alignmentPatternCenters:[6,32,58],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:92},{numBlocks:2,dataCodewordsPerBlock:93}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:36},{numBlocks:2,dataCodewordsPerBlock:37}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:20},{numBlocks:6,dataCodewordsPerBlock:21}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:14},{numBlocks:4,dataCodewordsPerBlock:15}]}]},{infoBits:55367,versionNumber:13,alignmentPatternCenters:[6,34,62],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:37},{numBlocks:1,dataCodewordsPerBlock:38}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:20},{numBlocks:4,dataCodewordsPerBlock:21}]},{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:11},{numBlocks:4,dataCodewordsPerBlock:12}]}]},{infoBits:58893,versionNumber:14,alignmentPatternCenters:[6,26,46,66],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:115},{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:40},{numBlocks:5,dataCodewordsPerBlock:41}]},{ecCodewordsPerBlock:20,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:16},{numBlocks:5,dataCodewordsPerBlock:17}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:5,dataCodewordsPerBlock:13}]}]},{infoBits:63784,versionNumber:15,alignmentPatternCenters:[6,26,48,70],errorCorrectionLevels:[{ecCodewordsPerBlock:22,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:87},{numBlocks:1,dataCodewordsPerBlock:88}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:41},{numBlocks:5,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:12},{numBlocks:7,dataCodewordsPerBlock:13}]}]},{infoBits:68472,versionNumber:16,alignmentPatternCenters:[6,26,50,74],errorCorrectionLevels:[{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:98},{numBlocks:1,dataCodewordsPerBlock:99}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:19},{numBlocks:2,dataCodewordsPerBlock:20}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:70749,versionNumber:17,alignmentPatternCenters:[6,30,54,78],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:1,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:22},{numBlocks:15,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:17,dataCodewordsPerBlock:15}]}]},{infoBits:76311,versionNumber:18,alignmentPatternCenters:[6,30,56,82],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:120},{numBlocks:1,dataCodewordsPerBlock:121}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:43},{numBlocks:4,dataCodewordsPerBlock:44}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:1,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:14},{numBlocks:19,dataCodewordsPerBlock:15}]}]},{infoBits:79154,versionNumber:19,alignmentPatternCenters:[6,30,58,86],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:113},{numBlocks:4,dataCodewordsPerBlock:114}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:44},{numBlocks:11,dataCodewordsPerBlock:45}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:21},{numBlocks:4,dataCodewordsPerBlock:22}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:9,dataCodewordsPerBlock:13},{numBlocks:16,dataCodewordsPerBlock:14}]}]},{infoBits:84390,versionNumber:20,alignmentPatternCenters:[6,34,62,90],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:107},{numBlocks:5,dataCodewordsPerBlock:108}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:41},{numBlocks:13,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:5,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:15},{numBlocks:10,dataCodewordsPerBlock:16}]}]},{infoBits:87683,versionNumber:21,alignmentPatternCenters:[6,28,50,72,94],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:116},{numBlocks:4,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:42}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:16},{numBlocks:6,dataCodewordsPerBlock:17}]}]},{infoBits:92361,versionNumber:22,alignmentPatternCenters:[6,26,50,74,98],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:111},{numBlocks:7,dataCodewordsPerBlock:112}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:24,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:13}]}]},{infoBits:96236,versionNumber:23,alignmentPatternCenters:[6,30,54,74,102],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:121},{numBlocks:5,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:47},{numBlocks:14,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:16,dataCodewordsPerBlock:15},{numBlocks:14,dataCodewordsPerBlock:16}]}]},{infoBits:102084,versionNumber:24,alignmentPatternCenters:[6,28,54,80,106],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:45},{numBlocks:14,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:24},{numBlocks:16,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:30,dataCodewordsPerBlock:16},{numBlocks:2,dataCodewordsPerBlock:17}]}]},{infoBits:102881,versionNumber:25,alignmentPatternCenters:[6,32,58,84,110],errorCorrectionLevels:[{ecCodewordsPerBlock:26,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:106},{numBlocks:4,dataCodewordsPerBlock:107}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:47},{numBlocks:13,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:13,dataCodewordsPerBlock:16}]}]},{infoBits:110507,versionNumber:26,alignmentPatternCenters:[6,30,58,86,114],errorCorrectionLevels:[{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:114},{numBlocks:2,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:46},{numBlocks:4,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:28,dataCodewordsPerBlock:22},{numBlocks:6,dataCodewordsPerBlock:23}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:33,dataCodewordsPerBlock:16},{numBlocks:4,dataCodewordsPerBlock:17}]}]},{infoBits:110734,versionNumber:27,alignmentPatternCenters:[6,34,62,90,118],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:45},{numBlocks:3,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:8,dataCodewordsPerBlock:23},{numBlocks:26,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:117786,versionNumber:28,alignmentPatternCenters:[6,26,50,74,98,122],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:117},{numBlocks:10,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:3,dataCodewordsPerBlock:45},{numBlocks:23,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:24},{numBlocks:31,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:31,dataCodewordsPerBlock:16}]}]},{infoBits:119615,versionNumber:29,alignmentPatternCenters:[6,30,54,78,102,126],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:7,dataCodewordsPerBlock:116},{numBlocks:7,dataCodewordsPerBlock:117}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:21,dataCodewordsPerBlock:45},{numBlocks:7,dataCodewordsPerBlock:46}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:1,dataCodewordsPerBlock:23},{numBlocks:37,dataCodewordsPerBlock:24}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:26,dataCodewordsPerBlock:16}]}]},{infoBits:126325,versionNumber:30,alignmentPatternCenters:[6,26,52,78,104,130],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:5,dataCodewordsPerBlock:115},{numBlocks:10,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:47},{numBlocks:10,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:15,dataCodewordsPerBlock:24},{numBlocks:25,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:25,dataCodewordsPerBlock:16}]}]},{infoBits:127568,versionNumber:31,alignmentPatternCenters:[6,30,56,82,108,134],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:3,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:46},{numBlocks:29,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:24},{numBlocks:1,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:23,dataCodewordsPerBlock:15},{numBlocks:28,dataCodewordsPerBlock:16}]}]},{infoBits:133589,versionNumber:32,alignmentPatternCenters:[6,34,60,86,112,138],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:24},{numBlocks:35,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:15},{numBlocks:35,dataCodewordsPerBlock:16}]}]},{infoBits:136944,versionNumber:33,alignmentPatternCenters:[6,30,58,86,114,142],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:115},{numBlocks:1,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:21,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:24},{numBlocks:19,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:11,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:141498,versionNumber:34,alignmentPatternCenters:[6,34,62,90,118,146],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:115},{numBlocks:6,dataCodewordsPerBlock:116}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:14,dataCodewordsPerBlock:46},{numBlocks:23,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:44,dataCodewordsPerBlock:24},{numBlocks:7,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:59,dataCodewordsPerBlock:16},{numBlocks:1,dataCodewordsPerBlock:17}]}]},{infoBits:145311,versionNumber:35,alignmentPatternCenters:[6,30,54,78,102,126,150],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:121},{numBlocks:7,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:12,dataCodewordsPerBlock:47},{numBlocks:26,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:39,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:22,dataCodewordsPerBlock:15},{numBlocks:41,dataCodewordsPerBlock:16}]}]},{infoBits:150283,versionNumber:36,alignmentPatternCenters:[6,24,50,76,102,128,154],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:121},{numBlocks:14,dataCodewordsPerBlock:122}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:6,dataCodewordsPerBlock:47},{numBlocks:34,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:46,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:2,dataCodewordsPerBlock:15},{numBlocks:64,dataCodewordsPerBlock:16}]}]},{infoBits:152622,versionNumber:37,alignmentPatternCenters:[6,28,54,80,106,132,158],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:17,dataCodewordsPerBlock:122},{numBlocks:4,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:29,dataCodewordsPerBlock:46},{numBlocks:14,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:49,dataCodewordsPerBlock:24},{numBlocks:10,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:24,dataCodewordsPerBlock:15},{numBlocks:46,dataCodewordsPerBlock:16}]}]},{infoBits:158308,versionNumber:38,alignmentPatternCenters:[6,32,58,84,110,136,162],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:4,dataCodewordsPerBlock:122},{numBlocks:18,dataCodewordsPerBlock:123}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:13,dataCodewordsPerBlock:46},{numBlocks:32,dataCodewordsPerBlock:47}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:48,dataCodewordsPerBlock:24},{numBlocks:14,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:42,dataCodewordsPerBlock:15},{numBlocks:32,dataCodewordsPerBlock:16}]}]},{infoBits:161089,versionNumber:39,alignmentPatternCenters:[6,26,54,82,110,138,166],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:117},{numBlocks:4,dataCodewordsPerBlock:118}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:40,dataCodewordsPerBlock:47},{numBlocks:7,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:43,dataCodewordsPerBlock:24},{numBlocks:22,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:10,dataCodewordsPerBlock:15},{numBlocks:67,dataCodewordsPerBlock:16}]}]},{infoBits:167017,versionNumber:40,alignmentPatternCenters:[6,30,58,86,114,142,170],errorCorrectionLevels:[{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:19,dataCodewordsPerBlock:118},{numBlocks:6,dataCodewordsPerBlock:119}]},{ecCodewordsPerBlock:28,ecBlocks:[{numBlocks:18,dataCodewordsPerBlock:47},{numBlocks:31,dataCodewordsPerBlock:48}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:34,dataCodewordsPerBlock:24},{numBlocks:34,dataCodewordsPerBlock:25}]},{ecCodewordsPerBlock:30,ecBlocks:[{numBlocks:20,dataCodewordsPerBlock:15},{numBlocks:61,dataCodewordsPerBlock:16}]}]}]},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});var o=a(0);function i(x,c,d,f){var v=x.x-c.x+d.x-f.x,g=x.y-c.y+d.y-f.y;if(v===0&&g===0)return{a11:c.x-x.x,a12:c.y-x.y,a13:0,a21:d.x-c.x,a22:d.y-c.y,a23:0,a31:x.x,a32:x.y,a33:1};var p=c.x-d.x,m=f.x-d.x,E=c.y-d.y,y=f.y-d.y,B=p*y-m*E,D=(v*y-m*g)/B,A=(p*g-v*E)/B;return{a11:c.x-x.x+D*c.x,a12:c.y-x.y+D*c.y,a13:D,a21:f.x-x.x+A*f.x,a22:f.y-x.y+A*f.y,a23:A,a31:x.x,a32:x.y,a33:1}}function s(x,c,d,f){var v=i(x,c,d,f);return{a11:v.a22*v.a33-v.a23*v.a32,a12:v.a13*v.a32-v.a12*v.a33,a13:v.a12*v.a23-v.a13*v.a22,a21:v.a23*v.a31-v.a21*v.a33,a22:v.a11*v.a33-v.a13*v.a31,a23:v.a13*v.a21-v.a11*v.a23,a31:v.a21*v.a32-v.a22*v.a31,a32:v.a12*v.a31-v.a11*v.a32,a33:v.a11*v.a22-v.a12*v.a21}}function l(x,c){return{a11:x.a11*c.a11+x.a21*c.a12+x.a31*c.a13,a12:x.a12*c.a11+x.a22*c.a12+x.a32*c.a13,a13:x.a13*c.a11+x.a23*c.a12+x.a33*c.a13,a21:x.a11*c.a21+x.a21*c.a22+x.a31*c.a23,a22:x.a12*c.a21+x.a22*c.a22+x.a32*c.a23,a23:x.a13*c.a21+x.a23*c.a22+x.a33*c.a23,a31:x.a11*c.a31+x.a21*c.a32+x.a31*c.a33,a32:x.a12*c.a31+x.a22*c.a32+x.a32*c.a33,a33:x.a13*c.a31+x.a23*c.a32+x.a33*c.a33}}function u(x,c){for(var d=s({x:3.5,y:3.5},{x:c.dimension-3.5,y:3.5},{x:c.dimension-6.5,y:c.dimension-6.5},{x:3.5,y:c.dimension-3.5}),f=i(c.topLeft,c.topRight,c.alignmentPattern,c.bottomLeft),v=l(f,d),g=o.BitMatrix.createEmpty(c.dimension,c.dimension),p=function(A,_){var C=v.a13*A+v.a23*_+v.a33;return{x:(v.a11*A+v.a21*_+v.a31)/C,y:(v.a12*A+v.a22*_+v.a32)/C}},m=0;m<c.dimension;m++)for(var E=0;E<c.dimension;E++){var y=E+.5,B=m+.5,D=p(y,B);g.set(E,m,x.get(Math.floor(D.x),Math.floor(D.y)))}return{matrix:g,mappingFunction:p}}n.extract=u},function(r,n,a){Object.defineProperty(n,"__esModule",{value:!0});var o=4,i=.5,s=1.5,l=function(y,B){return Math.sqrt(Math.pow(B.x-y.x,2)+Math.pow(B.y-y.y,2))};function u(y){return y.reduce(function(B,D){return B+D})}function x(y,B,D){var A,_,C,w,b=l(y,B),F=l(B,D),S=l(y,D),P,T,N;return F>=b&&F>=S?(A=[B,y,D],P=A[0],T=A[1],N=A[2]):S>=F&&S>=b?(_=[y,B,D],P=_[0],T=_[1],N=_[2]):(C=[y,D,B],P=C[0],T=C[1],N=C[2]),(N.x-T.x)*(P.y-T.y)-(N.y-T.y)*(P.x-T.x)<0&&(w=[N,P],P=w[0],N=w[1]),{bottomLeft:P,topLeft:T,topRight:N}}function c(y,B,D,A){var _=(u(f(y,D,A,5))/7+u(f(y,B,A,5))/7+u(f(D,y,A,5))/7+u(f(B,y,A,5))/7)/4;if(_<1)throw new Error("Invalid module size");var C=Math.round(l(y,B)/_),w=Math.round(l(y,D)/_),b=Math.floor((C+w)/2)+7;switch(b%4){case 0:b++;break;case 2:b--;break}return{dimension:b,moduleSize:_}}function d(y,B,D,A){var _=[{x:Math.floor(y.x),y:Math.floor(y.y)}],C=Math.abs(B.y-y.y)>Math.abs(B.x-y.x),w,b,F,S;C?(w=Math.floor(y.y),b=Math.floor(y.x),F=Math.floor(B.y),S=Math.floor(B.x)):(w=Math.floor(y.x),b=Math.floor(y.y),F=Math.floor(B.x),S=Math.floor(B.y));for(var P=Math.abs(F-w),T=Math.abs(S-b),N=Math.floor(-P/2),M=w<F?1:-1,L=b<S?1:-1,O=!0,V=w,$=b;V!==F+M;V+=M){var I=C?$:V,U=C?V:$;if(D.get(I,U)!==O&&(O=!O,_.push({x:I,y:U}),_.length===A+1))break;if(N+=T,N>0){if($===S)break;$+=L,N-=P}}for(var j=[],G=0;G<A;G++)_[G]&&_[G+1]?j.push(l(_[G],_[G+1])):j.push(0);return j}function f(y,B,D,A){var _,C=B.y-y.y,w=B.x-y.x,b=d(y,B,D,Math.ceil(A/2)),F=d(y,{x:y.x-w,y:y.y-C},D,Math.ceil(A/2)),S=b.shift()+F.shift()-1;return(_=F.concat(S)).concat.apply(_,b)}function v(y,B){var D=u(y)/u(B),A=0;return B.forEach(function(_,C){A+=Math.pow(y[C]-_*D,2)}),{averageSize:D,error:A}}function g(y,B,D){try{var A=f(y,{x:-1,y:y.y},D,B.length),_=f(y,{x:y.x,y:-1},D,B.length),C={x:Math.max(0,y.x-y.y)-1,y:Math.max(0,y.y-y.x)-1},w=f(y,C,D,B.length),b={x:Math.min(D.width,y.x+y.y)+1,y:Math.min(D.height,y.y+y.x)+1},F=f(y,b,D,B.length),S=v(A,B),P=v(_,B),T=v(w,B),N=v(F,B),M=Math.sqrt(S.error*S.error+P.error*P.error+T.error*T.error+N.error*N.error),L=(S.averageSize+P.averageSize+T.averageSize+N.averageSize)/4,O=(Math.pow(S.averageSize-L,2)+Math.pow(P.averageSize-L,2)+Math.pow(T.averageSize-L,2)+Math.pow(N.averageSize-L,2))/L;return M+O}catch{return 1/0}}function p(y,B){for(var D=Math.round(B.x);y.get(D,Math.round(B.y));)D--;for(var A=Math.round(B.x);y.get(A,Math.round(B.y));)A++;for(var _=(D+A)/2,C=Math.round(B.y);y.get(Math.round(_),C);)C--;for(var w=Math.round(B.y);y.get(Math.round(_),w);)w++;var b=(C+w)/2;return{x:_,y:b}}function m(y){for(var B=[],D=[],A=[],_=[],C=function(I){for(var U=0,j=!1,G=[0,0,0,0,0],he=function(te){var ie=y.get(te,I);if(ie===j)U++;else{G=[G[1],G[2],G[3],G[4],U],U=1,j=ie;var ce=u(G)/7,de=Math.abs(G[0]-ce)<ce&&Math.abs(G[1]-ce)<ce&&Math.abs(G[2]-3*ce)<3*ce&&Math.abs(G[3]-ce)<ce&&Math.abs(G[4]-ce)<ce&&!ie,Z=u(G.slice(-3))/3,Q=Math.abs(G[2]-Z)<Z&&Math.abs(G[3]-Z)<Z&&Math.abs(G[4]-Z)<Z&&ie;if(de){var $e=te-G[3]-G[4],ke=$e-G[2],Ge={startX:ke,endX:$e,y:I},Xe=D.filter(function(ze){return ke>=ze.bottom.startX&&ke<=ze.bottom.endX||$e>=ze.bottom.startX&&ke<=ze.bottom.endX||ke<=ze.bottom.startX&&$e>=ze.bottom.endX&&G[2]/(ze.bottom.endX-ze.bottom.startX)<s&&G[2]/(ze.bottom.endX-ze.bottom.startX)>i});Xe.length>0?Xe[0].bottom=Ge:D.push({top:Ge,bottom:Ge})}if(Q){var At=te-G[4],or=At-G[3],Ge={startX:or,y:I,endX:At},Xe=_.filter(function(He){return or>=He.bottom.startX&&or<=He.bottom.endX||At>=He.bottom.startX&&or<=He.bottom.endX||or<=He.bottom.startX&&At>=He.bottom.endX&&G[2]/(He.bottom.endX-He.bottom.startX)<s&&G[2]/(He.bottom.endX-He.bottom.startX)>i});Xe.length>0?Xe[0].bottom=Ge:_.push({top:Ge,bottom:Ge})}}},ee=-1;ee<=y.width;ee++)he(ee);B.push.apply(B,D.filter(function(te){return te.bottom.y!==I&&te.bottom.y-te.top.y>=2})),D=D.filter(function(te){return te.bottom.y===I}),A.push.apply(A,_.filter(function(te){return te.bottom.y!==I})),_=_.filter(function(te){return te.bottom.y===I})},w=0;w<=y.height;w++)C(w);B.push.apply(B,D.filter(function(I){return I.bottom.y-I.top.y>=2})),A.push.apply(A,_);var b=B.filter(function(I){return I.bottom.y-I.top.y>=2}).map(function(I){var U=(I.top.startX+I.top.endX+I.bottom.startX+I.bottom.endX)/4,j=(I.top.y+I.bottom.y+1)/2;if(y.get(Math.round(U),Math.round(j))){var G=[I.top.endX-I.top.startX,I.bottom.endX-I.bottom.startX,I.bottom.y-I.top.y+1],he=u(G)/G.length,ee=g({x:Math.round(U),y:Math.round(j)},[1,1,3,1,1],y);return{score:ee,x:U,y:j,size:he}}}).filter(function(I){return!!I}).sort(function(I,U){return I.score-U.score}).map(function(I,U,j){if(U>o)return null;var G=j.filter(function(ee,te){return U!==te}).map(function(ee){return{x:ee.x,y:ee.y,score:ee.score+Math.pow(ee.size-I.size,2)/I.size,size:ee.size}}).sort(function(ee,te){return ee.score-te.score});if(G.length<2)return null;var he=I.score+G[0].score+G[1].score;return{points:[I].concat(G.slice(0,2)),score:he}}).filter(function(I){return!!I}).sort(function(I,U){return I.score-U.score});if(b.length===0)return null;var F=x(b[0].points[0],b[0].points[1],b[0].points[2]),S=F.topRight,P=F.topLeft,T=F.bottomLeft,N=E(y,A,S,P,T),M=[];N&&M.push({alignmentPattern:{x:N.alignmentPattern.x,y:N.alignmentPattern.y},bottomLeft:{x:T.x,y:T.y},dimension:N.dimension,topLeft:{x:P.x,y:P.y},topRight:{x:S.x,y:S.y}});var L=p(y,S),O=p(y,P),V=p(y,T),$=E(y,A,L,O,V);return $&&M.push({alignmentPattern:{x:$.alignmentPattern.x,y:$.alignmentPattern.y},bottomLeft:{x:V.x,y:V.y},topLeft:{x:O.x,y:O.y},topRight:{x:L.x,y:L.y},dimension:$.dimension}),M.length===0?null:M}n.locate=m;function E(y,B,D,A,_){var C,w,b;try{C=c(A,D,_,y),w=C.dimension,b=C.moduleSize}catch{return null}var F={x:D.x-A.x+_.x,y:D.y-A.y+_.y},S=(l(A,_)+l(A,D))/2/b,P=1-3/S,T={x:A.x+P*(F.x-A.x),y:A.y+P*(F.y-A.y)},N=B.map(function(L){var O=(L.top.startX+L.top.endX+L.bottom.startX+L.bottom.endX)/4,V=(L.top.y+L.bottom.y+1)/2;if(y.get(Math.floor(O),Math.floor(V))){var $=[L.top.endX-L.top.startX,L.bottom.endX-L.bottom.startX,L.bottom.y-L.top.y+1];u($)/$.length;var I=g({x:Math.floor(O),y:Math.floor(V)},[1,1,1],y),U=I+l({x:O,y:V},T);return{x:O,y:V,score:U}}}).filter(function(L){return!!L}).sort(function(L,O){return L.score-O.score}),M=S>=15&&N.length?N[0]:T;return{alignmentPattern:M,dimension:w}}}]).default})})(pC);var YH=pC.exports;const XH=Ml(YH),jH=h.defineComponent({name:"OcScan",components:{NButton:R.NButton,NModal:R.NModal,NCard:R.NCard,NFlex:R.NFlex,NIcon:R.NIcon,IconDismiss:Zn},emits:["on-update:value"],setup(e,{emit:t}){const r=h.ref(),n=h.ref(),a=h.ref(!1),o=h.ref(!1),i=R.useNotification(),s=1280,l=720;let u=null,x=null;const c=(D,A)=>{u.beginPath(),u.moveTo(D.x,D.y),u.lineTo(A.x,A.y),u.lineWidth=2,u.strokeStyle="green",u.stroke()},d=()=>{o.value&&requestAnimationFrame(f)},f=()=>{if(x&&x.readyState===x.HAVE_ENOUGH_DATA){x.width=s,x.height=l,u.drawImage(r.value,0,0,s,l);const D=u.getImageData(0,0,s,l);try{const A=XH(D.data,s,l);if(A){const{location:_,data:C}=A;c(_.topLeftCorner,_.topRightCorner),c(_.topRightCorner,_.bottomRightCorner),c(_.bottomRightCorner,_.bottomLeftCorner),c(_.bottomLeftCorner,_.topLeftCorner),t("on-update:value",C),v()}}catch{o.value=!1,i.error({content:"扫描失败,请重试",duration:3e3})}}d()},v=()=>{r.value&&r.value.srcObject&&(r.value.srcObject.getTracks().forEach(D=>D.stop()),o.value=!1,u=null,x=null,r.value.srcObject=null,r.value.src=null),a.value=!1},g=D=>{r.value.srcObject!==void 0?r.value.srcObject=D:window.videoEl.mozSrcObject!==void 0?r.value.mozSrcObject=D:window.URL.createObjectURL?r.value.src=window.URL.createObjectURL(D):window.webkitURL?r.value.src=window.webkitURL.createObjectURL(D):r.value.src=D,r.value.play().then(d)},p=()=>{var D,A;(D=n.value)==null||D.focus(),(A=n.value)==null||A.select(),a.value=!0,h.nextTick(()=>{navigator.mediaDevices&&navigator.mediaDevices.getUserMedia?(o.value=!0,x=document.getElementById("oc-scan-canvas"),x&&(u=x.getContext("2d",{willReadFrequently:!0})),navigator.mediaDevices.getUserMedia({video:!0}).then(g).catch(()=>{o.value=!1,i.error({content:"未获取到摄像头权限,请确认赋予相关权限",duration:3e3})})):(o.value=!1,i.error({content:"您的设备未检测到摄像头,无法进行扫码识别",duration:3e3}))})};let m="",E=0;const{run:y}=Xd(()=>{m&&t("on-update:value",m),m="",E=0},300);function B(D){let A=new Date().getTime();A-E<=50?y():m="",E=A,m+=D.key}return h.onMounted(()=>{window.addEventListener("keypress",B)}),h.onBeforeUnmount(()=>{window.removeEventListener("keypress",B),v()}),{videoRef:r,inputRef:n,modal:a,loading:o,doScan:p,closeAll:v}}}),ZH=h.createElementVNode("div",{class:"oc-scan-canvas-main"},[h.createElementVNode("canvas",{id:"oc-scan-canvas",width:"1280",height:"720"})],-1),qH={class:"oc-scan-video"},KH={ref:"videoRef",playsInline:""},JH={ref:"inputRef",type:"text",class:"oc-scan-input"};function QH(e,t,r,n,a,o){const i=h.resolveComponent("NButton"),s=h.resolveComponent("IconDismiss"),l=h.resolveComponent("NIcon"),u=h.resolveComponent("NFlex"),x=h.resolveComponent("NCard"),c=h.resolveComponent("NModal");return h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createVNode(i,{type:"primary",loading:e.loading,onClick:e.doScan},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(e.$t("Common.scan.label")),1)]),_:1},8,["loading","onClick"]),h.createVNode(c,{show:e.modal,"onUpdate:show":t[0]||(t[0]=d=>e.modal=d),"on-mask-click":e.closeAll},{default:h.withCtx(()=>[h.createVNode(x,{style:{width:"1320px"}},{header:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(e.$t("Common.scan.label")),1)]),"header-extra":h.withCtx(()=>[h.createVNode(u,{justify:"end"},{default:h.withCtx(()=>[h.createVNode(i,{quaternary:"",onClick:e.closeAll},{icon:h.withCtx(()=>[h.createVNode(l,null,{default:h.withCtx(()=>[h.createVNode(s)]),_:1})]),_:1},8,["onClick"])]),_:1})]),default:h.withCtx(()=>[ZH]),_:1})]),_:1},8,["show","on-mask-click"]),h.createElementVNode("div",qH,[h.createElementVNode("video",KH,null,512)]),h.createElementVNode("input",JH,null,512)],64)}const gC=ae(jH,[["render",QH]]),eU=h.defineComponent({name:"OcTimePickRange",components:{NInputGroup:R.NInputGroup,NTimePicker:R.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=h.ref(null),n=h.ref(null),a=i=>{r.value=i,t("on-update:value",[r.value,n.value])},o=i=>{n.value=i,t("on-update:value",[r.value,n.value])};return h.onMounted(()=>{e.value&&(r.value=e.value[0],n.value=e.value[1])}),h.watch(()=>e.value,i=>{i&&(r.value=i[0],n.value=i[1])}),{startTime:r,endTime:n,updateStartValue:a,updateEndValue:o}}}),tU=h.createElementVNode("span",{class:"oc-time-picker-separator"},"-",-1);function rU(e,t,r,n,a,o){const i=h.resolveComponent("NTimePicker"),s=h.resolveComponent("NInputGroup");return h.openBlock(),h.createBlock(s,{class:"oc-time-picker"},{default:h.withCtx(()=>[h.createVNode(i,{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"]),tU,h.createVNode(i,{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 nU=ae(eU,[["render",rU]]),aU=h.defineComponent({name:"OcSearchBarItem",components:{NIcon:R.NIcon,NButton:R.NButton,NGrid:R.NGrid,NGridItem:R.NGridItem,NInput:R.NInput,NInputNumber:R.NInputNumber,NSelect:R.NSelect,NTooltip:R.NTooltip,NPopover:R.NPopover,NDataTable:R.NDataTable,NCascader:R.NCascader,NTreeSelect:R.NTreeSelect,NDatePicker:R.NDatePicker,NInputGroup:R.NInputGroup,NInputGroupLabel:R.NInputGroupLabel,OcTimePickRange:nU,IconArrowDown:Z0,IconArrowUp:rf},props:{cols:{type:Number,default:4},small:{type:Boolean,default:!1}},setup(e,{expose:t,slots:r}){const{t:n}=Qt.useI18n(),a=h.ref(!!r.header),o=h.ref({}),i=h.ref(!0),s=h.ref(!1),l=h.ref(0),u=h.ref({}),x=h.ref({}),c=h.ref([{key:"label"}]),d=y=>y.fallbackOption?typeof y.fallbackOption=="boolean"?()=>({label:n("Common.message.all"),value:"",disabled:!0}):y.fallbackOption:!1,f=(y,B,D)=>{const A=D.options.filter(_=>String(_.label).toLocaleLowerCase().indexOf(String(B).toLocaleLowerCase())>-1)||[];u.value[y].options=A,A.length===0?u.value[y].display=!1:u.value[y].display=!0},v=y=>{var C;Object.keys(y).forEach(w=>{var F,S,P;const b=y[w];b.show=b.show??!0,b.type==="dropdown"&&(u.value[w]={display:!1,options:b.options}),b.type==="select"&&b.fallbackOption&&b.multiple&&x.value[w].length===0&&(x.value[w]=[""]),b.type==="group"&&(x.value[w]||(x.value[w]=b.options[0].value),b.inputTemp=b.input.options[x.value[w]?x.value[w]:b.options[0].value],((F=b.inputTemp)==null?void 0:F.type)==="select"&&((S=b.inputTemp)!=null&&S.fallbackOption)&&((P=b.inputTemp)!=null&&P.multiple)&&x.value[b.input.key].length===0&&(x.value[b.input.key]=[""]))});let B=0;const D=e.small?1:e.cols,A=Object.keys(y);if(Object.keys(y).length>0)for(let w=0;w<=D;w++)(C=y[A[w]])!=null&&C.show&&(B=B+1);let _=D-B>=0?D-B-1:-1;a.value&&(_=_-1,B=B+1),l.value=_,B>D?s.value=!0:s.value=!1,e.small&&(i.value=!1,s.value=!1),o.value=y},g=y=>{u.value[y].options.length===0?u.value[y].display=!1:u.value[y].display=!0},p=()=>{i.value=!i.value},m=()=>{const y=JSON.stringify(x.value,(B,D)=>D===void 0?null:Array.isArray(D)?D.filter(A=>A!==""):D);return JSON.parse(y)},E=y=>{y&&(x.value=y)};return t({getValues:m,setValues:E,dataFactory:v}),{more:s,offset:l,dataList:o,collapsed:i,searchData:x,dropDisplay:u,columnsPopover:c,isSlotHeader:a,showMore:p,setValues:E,dropValueChange:f,dropDisplayToggle:g,getDefaultDate:Na,selectFallback:d}}}),oU={class:"oc-search-bar-line"},iU={class:"oc-search-bar-title"},sU={key:0,class:"oc-search-action-more"};function lU(e,t,r,n,a,o){const i=h.resolveComponent("NGridItem"),s=h.resolveComponent("NInputGroupLabel"),l=h.resolveComponent("NInput"),u=h.resolveComponent("NInputNumber"),x=h.resolveComponent("NSelect"),c=h.resolveComponent("NDataTable"),d=h.resolveComponent("NPopover"),f=h.resolveComponent("NCascader"),v=h.resolveComponent("NTreeSelect"),g=h.resolveComponent("OcTimePickRange"),p=h.resolveComponent("NDatePicker"),m=h.resolveComponent("NInputGroup"),E=h.resolveComponent("NGrid"),y=h.resolveComponent("IconArrowDown"),B=h.resolveComponent("NIcon"),D=h.resolveComponent("IconArrowUp"),A=h.resolveComponent("NButton"),_=h.resolveComponent("NTooltip");return h.openBlock(),h.createElementBlock("div",oU,[h.createVNode(E,{"x-gap":"15","y-gap":"15",cols:e.small?1:e.cols,"collapsed-rows":1,collapsed:e.collapsed,responsive:"screen","item-responsive":""},{default:h.withCtx(()=>[e.isSlotHeader?(h.openBlock(),h.createBlock(i,{key:0,span:e.small?1:`${e.cols} s:2 l:1`},{default:h.withCtx(()=>[h.createElementVNode("div",iU,[h.renderSlot(e.$slots,"header")])]),_:3},8,["span"])):h.createCommentVNode("",!0),e.offset>-1?(h.openBlock(),h.createBlock(i,{key:1,offset:e.offset},null,8,["offset"])):h.createCommentVNode("",!0),(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.dataList,(C,w,b)=>(h.openBlock(),h.createBlock(i,{key:`${w}_${b}`,span:C.show?e.small?1:C.span?C.span:`${e.cols} s:2 l:1`:0},{default:h.withCtx(()=>[C.type!=="group"?(h.openBlock(),h.createBlock(m,{key:0},{default:h.withCtx(()=>{var F;return[h.createVNode(s,{class:"oc-group-label"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(typeof C.title=="string"?C.title:C.title&&C.title()),1)]),_:2},1024),C.type==="input"?(h.openBlock(),h.createBlock(l,{key:0,value:e.searchData[w],"onUpdate:value":S=>e.searchData[w]=S,disabled:C==null?void 0:C.disabled,placeholder:typeof(C==null?void 0:C.placeholder)=="string"?C==null?void 0:C.placeholder:(C==null?void 0:C.placeholder)&&(C==null?void 0:C.placeholder()),"on-update:value":S=>{C.updateValue?C.updateValue(S.trim(),JSON.parse(JSON.stringify(e.searchData)),P=>e.setValues(P)):e.searchData[w]=S.trim()},clearable:C.clearable??!0},null,8,["value","onUpdate:value","disabled","placeholder","on-update:value","clearable"])):h.createCommentVNode("",!0),C.type==="number"?(h.openBlock(),h.createBlock(u,{key:1,value:e.searchData[w],"onUpdate:value":S=>e.searchData[w]=S,disabled:C==null?void 0:C.disabled,placeholder:typeof(C==null?void 0:C.placeholder)=="string"?C==null?void 0:C.placeholder:(C==null?void 0:C.placeholder)&&(C==null?void 0:C.placeholder()),min:C==null?void 0:C.min,max:C==null?void 0:C.max,step:(C==null?void 0:C.step)||1,"show-button":(C==null?void 0:C.showButton)||!0,"update-value-on-input":!1,validator:C==null?void 0:C.validator,"on-update:value":S=>{C.updateValue?C.updateValue(S,JSON.parse(JSON.stringify(e.searchData)),P=>e.setValues(P)):e.searchData[w]=S},clearable:C.clearable??!0},h.createSlots({_:2},[C!=null&&C.suffix?{name:"suffix",fn:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(C==null?void 0:C.suffix),1)]),key:"0"}:void 0]),1032,["value","onUpdate:value","disabled","placeholder","min","max","step","show-button","validator","on-update:value","clearable"])):h.createCommentVNode("",!0),C.type==="select"?(h.openBlock(),h.createBlock(x,{key:2,value:e.searchData[w],"onUpdate:value":S=>e.searchData[w]=S,"show-checkmark":!1,disabled:C==null?void 0:C.disabled,placeholder:typeof(C==null?void 0:C.placeholder)=="string"?C==null?void 0:C.placeholder:(C==null?void 0:C.placeholder)&&(C==null?void 0:C.placeholder()),options:C.options,multiple:C.multiple,"fallback-option":e.selectFallback(C),"on-update:value":S=>{let P=S,T=S;if(C.multiple){let N=S.filter(M=>M!=="");N.length===0?(P=[""],T=[]):(P=N,T=N)}C.updateValue?C.updateValue(T,JSON.parse(JSON.stringify(e.searchData)),N=>e.setValues(N)):e.searchData[w]=P},clearable:C.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"])):h.createCommentVNode("",!0),C.type==="dropdown"?(h.openBlock(),h.createBlock(d,{key:3,width:"trigger",trigger:"manual",style:{padding:"5px"},"show-arrow":!1,show:(F=e.dropDisplay[w])==null?void 0:F.display,"on-clickoutside":()=>{e.dropDisplay[w].display=!1}},{trigger:h.withCtx(()=>[h.createVNode(l,{value:e.searchData[w],disabled:C==null?void 0:C.disabled,placeholder:typeof(C==null?void 0:C.placeholder)=="string"?C==null?void 0:C.placeholder:(C==null?void 0:C.placeholder)&&(C==null?void 0:C.placeholder()),clearable:C.clearable??!0,"on-update:value":S=>{e.searchData[w]=S.trim(),e.dropValueChange(w,S.trim(),C)},onClick:S=>e.dropDisplayToggle(w),onFocus:S=>e.dropDisplayToggle(w)},null,8,["value","disabled","placeholder","clearable","on-update:value","onClick","onFocus"])]),default:h.withCtx(()=>{var S;return[h.createVNode(c,{columns:e.columnsPopover,data:((S=e.dropDisplay[w])==null?void 0:S.options)||[],"max-height":300,bordered:!1,"bottom-bordered":!1,"row-props":P=>({style:"cursor: pointer;",onClick:()=>{e.searchData[w]=P.value,e.dropDisplay[w].display=!1}}),size:"small","virtual-scroll":"",class:"oc-popover-table"},null,8,["columns","data","row-props"])]}),_:2},1032,["show","on-clickoutside"])):h.createCommentVNode("",!0),C.type==="cascader"?(h.openBlock(),h.createBlock(f,{key:4,value:e.searchData[w],"onUpdate:value":S=>e.searchData[w]=S,disabled:C==null?void 0:C.disabled,placeholder:typeof(C==null?void 0:C.placeholder)=="string"?C==null?void 0:C.placeholder:(C==null?void 0:C.placeholder)&&(C==null?void 0:C.placeholder()),options:C.options,"check-strategy":C.checkStrategy||"all",multiple:C.multiple,"on-update:value":S=>{C.updateValue?C.updateValue(S,JSON.parse(JSON.stringify(e.searchData)),P=>e.setValues(P)):e.searchData[w]=S},clearable:C.clearable??!0,"max-tag-count":"responsive",filterable:""},null,8,["value","onUpdate:value","disabled","placeholder","options","check-strategy","multiple","on-update:value","clearable"])):h.createCommentVNode("",!0),C.type==="treeSelect"?(h.openBlock(),h.createBlock(v,{key:5,value:e.searchData[w],"onUpdate:value":S=>e.searchData[w]=S,disabled:C==null?void 0:C.disabled,placeholder:typeof(C==null?void 0:C.placeholder)=="string"?C==null?void 0:C.placeholder:(C==null?void 0:C.placeholder)&&(C==null?void 0:C.placeholder()),options:C.options,"check-strategy":C.checkStrategy||"all",multiple:C.multiple,"on-update:value":S=>{C.updateValue?C.updateValue(S,JSON.parse(JSON.stringify(e.searchData)),P=>e.setValues(P)):e.searchData[w]=S},clearable:C.clearable??!0,"max-tag-count":"responsive",filterable:""},null,8,["value","onUpdate:value","disabled","placeholder","options","check-strategy","multiple","on-update:value","clearable"])):h.createCommentVNode("",!0),C.type==="timePicker"?(h.openBlock(),h.createBlock(g,{key:6,value:e.searchData[w],"onUpdate:value":S=>e.searchData[w]=S,disabled:C==null?void 0:C.disabled,"onOnUpdate:value":S=>{C.updateValue?C.updateValue(S,JSON.parse(JSON.stringify(e.searchData)),P=>e.setValues(P)):e.searchData[w]=[...S]},format:C==null?void 0:C.format,clearable:C.clearable??!0},null,8,["value","onUpdate:value","disabled","onOnUpdate:value","format","clearable"])):h.createCommentVNode("",!0),C.type==="datePicker"?(h.openBlock(),h.createBlock(p,{key:7,value:e.searchData[w],"onUpdate:value":S=>e.searchData[w]=S,disabled:C==null?void 0:C.disabled,placeholder:typeof(C==null?void 0:C.placeholder)=="string"?C==null?void 0:C.placeholder:(C==null?void 0:C.placeholder)&&(C==null?void 0:C.placeholder()),type:C.dateType,format:C==null?void 0:C.format,"is-date-disabled":C==null?void 0:C.isDateDisabled,shortcuts:C==null?void 0:C.shortcuts,"update-value-on-close":C.dateType!=="year","on-update:value":S=>{C.updateValue?C.updateValue(S,JSON.parse(JSON.stringify(e.searchData)),P=>e.setValues(P)):e.searchData[w]=S},clearable:C.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"])):h.createCommentVNode("",!0)]}),_:2},1024)):h.createCommentVNode("",!0),C.type==="group"?(h.openBlock(),h.createBlock(m,{key:1},{default:h.withCtx(()=>{var F,S,P,T,N,M,L,O,V,$,I,U,j,G,he,ee,te,ie,ce,de,Z,Q,$e,ke,Ge,Xe,At,or,ze,Gi,He,Eo,ca;return[h.createVNode(x,{value:e.searchData[w],"onUpdate:value":_e=>e.searchData[w]=_e,options:C.options,"show-checkmark":!1,style:h.normalizeStyle(C.width?typeof C.width=="number"?{width:`${C.width}px`}:{width:C.width}:{}),"on-update:value":_e=>{if(C.inputTemp=C.input.options[_e],C.inputTemp.type==="datePicker"){let Ie=0;(C.inputTemp.dateType.indexOf("date")>-1||C.inputTemp.dateType.indexOf("quarter")>-1||C.inputTemp.dateType.indexOf("week")>-1)&&(Ie=e.getDefaultDate()),C.inputTemp.dateType.indexOf("month")>-1&&(Ie=e.getDefaultDate(void 0,void 0,1)),C.inputTemp.dateType.indexOf("year")>-1&&(Ie=e.getDefaultDate(void 0,1,1)),C.inputTemp.dateType.indexOf("range")>-1&&(Ie=[Ie,Ie]),e.searchData[C.input.key]=Ie}else C.inputTemp.type==="number"?e.searchData[C.input.key]=null:C.inputTemp.type==="select"&&C.inputTemp.fallbackOption&&C.inputTemp.multiple?e.searchData[C.input.key]=[""]:e.searchData[C.input.key]="";C.updateValue?C.updateValue(_e,JSON.parse(JSON.stringify(e.searchData)),Ie=>e.setValues(Ie)):e.searchData[w]=_e},class:"oc-group-select",placeholder:" "},null,8,["value","onUpdate:value","options","style","on-update:value"]),((F=C.inputTemp)==null?void 0:F.type)==="input"?(h.openBlock(),h.createBlock(l,{key:0,value:e.searchData[C.input.key],"onUpdate:value":_e=>e.searchData[C.input.key]=_e,disabled:(S=C.inputTemp)==null?void 0:S.disabled,placeholder:typeof((P=C.inputTemp)==null?void 0:P.placeholder)=="string"?(T=C.inputTemp)==null?void 0:T.placeholder:((N=C.inputTemp)==null?void 0:N.placeholder)&&((M=C.inputTemp)==null?void 0:M.placeholder()),"on-update:value":_e=>{var Ie;(Ie=C.inputTemp)!=null&&Ie.updateValue?C.inputTemp.updateValue(_e.trim(),JSON.parse(JSON.stringify(e.searchData)),Br=>e.setValues(Br)):e.searchData[C.input.key]=_e.trim()},clearable:C.inputTemp.clearable??!0,style:{flex:"1"}},null,8,["value","onUpdate:value","disabled","placeholder","on-update:value","clearable"])):h.createCommentVNode("",!0),((L=C.inputTemp)==null?void 0:L.type)==="number"?(h.openBlock(),h.createBlock(u,{key:1,value:e.searchData[C.input.key],"onUpdate:value":_e=>e.searchData[C.input.key]=_e,disabled:(O=C.inputTemp)==null?void 0:O.disabled,placeholder:typeof((V=C.inputTemp)==null?void 0:V.placeholder)=="string"?($=C.inputTemp)==null?void 0:$.placeholder:((I=C.inputTemp)==null?void 0:I.placeholder)&&((U=C.inputTemp)==null?void 0:U.placeholder()),min:(j=C.inputTemp)==null?void 0:j.min,max:(G=C.inputTemp)==null?void 0:G.max,step:((he=C.inputTemp)==null?void 0:he.step)||1,"show-button":((ee=C.inputTemp)==null?void 0:ee.showButton)||!0,"update-value-on-input":!1,validator:(te=C.inputTemp)==null?void 0:te.validator,"on-update:value":_e=>{var Ie;(Ie=C.inputTemp)!=null&&Ie.updateValue?C.inputTemp.updateValue(_e,JSON.parse(JSON.stringify(e.searchData)),Br=>e.setValues(Br)):e.searchData[C.input.key]=_e},clearable:C.inputTemp.clearable??!0,style:{flex:"1"}},h.createSlots({_:2},[(ie=C.inputTemp)!=null&&ie.suffix?{name:"suffix",fn:h.withCtx(()=>{var _e;return[h.createTextVNode(h.toDisplayString((_e=C.inputTemp)==null?void 0:_e.suffix),1)]}),key:"0"}:void 0]),1032,["value","onUpdate:value","disabled","placeholder","min","max","step","show-button","validator","on-update:value","clearable"])):h.createCommentVNode("",!0),((ce=C.inputTemp)==null?void 0:ce.type)==="datePicker"?(h.openBlock(),h.createBlock(p,{key:2,value:e.searchData[C.input.key],"onUpdate:value":_e=>e.searchData[C.input.key]=_e,disabled:(de=C.inputTemp)==null?void 0:de.disabled,placeholder:typeof((Z=C.inputTemp)==null?void 0:Z.placeholder)=="string"?(Q=C.inputTemp)==null?void 0:Q.placeholder:(($e=C.inputTemp)==null?void 0:$e.placeholder)&&((ke=C.inputTemp)==null?void 0:ke.placeholder()),type:C.inputTemp.dateType,format:(Ge=C.inputTemp)==null?void 0:Ge.format,"is-date-disabled":(Xe=C.inputTemp)==null?void 0:Xe.isDateDisabled,shortcuts:(At=C.inputTemp)==null?void 0:At.shortcuts,"update-value-on-close":C.inputTemp.dateType!=="year","on-update:value":_e=>{var Ie;(Ie=C.inputTemp)!=null&&Ie.updateValue?C.inputTemp.updateValue(_e,JSON.parse(JSON.stringify(e.searchData)),Br=>e.setValues(Br)):e.searchData[C.input.key]=_e},clearable:C.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"])):h.createCommentVNode("",!0),((or=C.inputTemp)==null?void 0:or.type)==="select"?(h.openBlock(),h.createBlock(x,{key:3,value:e.searchData[C.input.key],"onUpdate:value":_e=>e.searchData[C.input.key]=_e,"show-checkmark":!1,disabled:(ze=C.inputTemp)==null?void 0:ze.disabled,placeholder:typeof((Gi=C.inputTemp)==null?void 0:Gi.placeholder)=="string"?(He=C.inputTemp)==null?void 0:He.placeholder:((Eo=C.inputTemp)==null?void 0:Eo.placeholder)&&((ca=C.inputTemp)==null?void 0:ca.placeholder()),options:C.inputTemp.options,multiple:C.inputTemp.multiple,"fallback-option":e.selectFallback(C.inputTemp),"on-update:value":_e=>{var Kd,Jd,Qd;let Ie=_e,Br=_e;if(((Kd=C.inputTemp)==null?void 0:Kd.type)==="select"&&((Jd=C.inputTemp)!=null&&Jd.multiple)){let yo=_e.filter(wC=>wC!=="");yo.length===0?(Ie=[""],Br=[]):(Ie=yo,Br=yo)}(Qd=C.inputTemp)!=null&&Qd.updateValue?C.inputTemp.updateValue(Br,JSON.parse(JSON.stringify(e.searchData)),yo=>e.setValues(yo)):e.searchData[C.input.key]=Ie},clearable:C.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"])):h.createCommentVNode("",!0)]}),_:2},1024)):h.createCommentVNode("",!0)]),_:2},1032,["span"]))),128))]),_:3},8,["cols","collapsed"]),e.more?(h.openBlock(),h.createElementBlock("div",sU,[h.createVNode(_,{trigger:"hover"},{trigger:h.withCtx(()=>[h.createVNode(A,{onClick:e.showMore},{icon:h.withCtx(()=>[e.collapsed?(h.openBlock(),h.createBlock(B,{key:0},{default:h.withCtx(()=>[h.createVNode(y)]),_:1})):(h.openBlock(),h.createBlock(B,{key:1},{default:h.withCtx(()=>[h.createVNode(D)]),_:1}))]),_:1},8,["onClick"])]),default:h.withCtx(()=>[h.createTextVNode(" "+h.toDisplayString(e.$t("Common.more")),1)]),_:1})])):h.createCommentVNode("",!0)])}const uU=ae(aU,[["render",lU]]),xU=h.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)}}}}),cU={class:"oc-search-bar-pop"},fU={class:"oc-search-bar-pop-plan"},dU={class:"oc-search-bar-pop-action"},hU={class:"oc-search-bar-pop-content"};function vU(e,t,r,n,a,o){return h.withDirectives((h.openBlock(),h.createElementBlock("div",cU,[h.createElementVNode("div",{class:"oc-search-bar-pop-mask",onClick:t[0]||(t[0]=(...i)=>e.close&&e.close(...i))}),h.createElementVNode("div",fU,[h.createElementVNode("div",dU,[h.renderSlot(e.$slots,"action")]),h.createElementVNode("div",hU,[h.renderSlot(e.$slots,"default")])])],512)),[[h.vShow,e.value]])}const pU=ae(xU,[["render",vU]]),gU=h.defineComponent({name:"OcSearchBar",components:{NFlex:R.NFlex,NIcon:R.NIcon,NTooltip:R.NTooltip,NButton:R.NButton,NPopover:R.NPopover,IconArrowDown:Z0,IconReset:nf,IconSearch:U0,IconFilter:W0,OcSearchBarItem:uU,OcSearchBarPop:pU},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=Ht.useRoute(),o=Ht.useRouter(),i=h.ref(),s=h.ref({}),l=h.ref(!1),u=h.ref(!!r.header),x=h.ref(!!r.action),c=(g=!1)=>{if(!e.loading&&i.value){const p=i.value.getValues();if(!g&&p.query&&(p.query.page=1),t("update:loading",!0),t("on-update:value",p),e.cache){const m=a.path,E=Jr(p),y=Jr(m);o.replace(`${m}?cursor=${E}&routerId=${y}`)}}},d=()=>{e.loading||(f(JSON.parse(JSON.stringify(e.defaultValue))),c())},f=(g,p=!1)=>{if(i.value&&i.value.setValues(JSON.parse(JSON.stringify(g))),v(e.data),p)o.replace(a.path);else if(e.cache){const m=a.path,E=Jr(g),y=Jr(m);o.replace(`${m}?cursor=${E}&routerId=${y}`)}},v=g=>{i.value&&i.value.dataFactory(g)};return n({setValues:f,setData:v}),h.onMounted(()=>{setTimeout(()=>{let g=e.value;if(e.cache){const{cursor:p,routerId:m}=a.query;if(p&&m){const E=a.path,y=mi(m),B=mi(p);y===E&&(g=B)}}i.value&&(i.value.setValues(JSON.parse(JSON.stringify(g))),i.value.dataFactory(e.data)),e.autoSubmit&&c(!0)},100)}),{itemRef:i,drawer:l,isSlotHeader:u,isSlotAction:x,commonStore:J,itemData:s,doSearch:c,clearAll:d}}}),mU={key:1,class:"oc-search-bar-popover"},EU={key:0},yU={class:"oc-search-bar-center"};function CU(e,t,r,n,a,o){const i=h.resolveComponent("OcSearchBarItem"),s=h.resolveComponent("IconArrowDown"),l=h.resolveComponent("NIcon"),u=h.resolveComponent("NButton"),x=h.resolveComponent("IconReset"),c=h.resolveComponent("IconSearch"),d=h.resolveComponent("NFlex"),f=h.resolveComponent("OcSearchBarPop"),v=h.resolveComponent("IconFilter"),g=h.resolveComponent("NTooltip");return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(["oc-search-bar",{small:!e.isSlotHeader&&(e.small||e.commonStore.isMobile)}]),onKeyup:t[6]||(t[6]=h.withKeys(p=>e.doSearch(!1),["enter"]))},[(e.small||e.commonStore.isMobile)&&e.isSlotHeader?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(["oc-search-bar-title",e.commonStore.isMobile?"tiny":""])},[h.renderSlot(e.$slots,"header")],2)):h.createCommentVNode("",!0),e.small||e.commonStore.isMobile?(h.openBlock(),h.createElementBlock("div",mU,[h.createVNode(f,{value:e.drawer,"onUpdate:value":t[2]||(t[2]=p=>e.drawer=p),"onOnUpdate:value":t[3]||(t[3]=p=>e.drawer=p)},{action:h.withCtx(()=>[h.createVNode(d,{size:15,justify:"space-between",wrap:!1},{default:h.withCtx(()=>[h.createVNode(u,{onClick:t[0]||(t[0]=p=>e.drawer=!1)},{icon:h.withCtx(()=>[h.createVNode(l,null,{default:h.withCtx(()=>[h.createVNode(s)]),_:1})]),_:1}),e.resetButton?(h.openBlock(),h.createBlock(u,{key:0,loading:e.loading,onClick:e.clearAll},{icon:h.withCtx(()=>[h.createVNode(l,null,{default:h.withCtx(()=>[h.createVNode(x)]),_:1})]),_:1},8,["loading","onClick"])):h.createCommentVNode("",!0),e.data&&Object.keys(e.data).length>0?(h.openBlock(),h.createBlock(u,{key:1,loading:e.loading,class:"button-primary",onClick:t[1]||(t[1]=()=>{e.drawer=!1,e.doSearch(!1)})},{icon:h.withCtx(()=>[h.createVNode(l,null,{default:h.withCtx(()=>[h.createVNode(c)]),_:1})]),_:1},8,["loading"])):h.createCommentVNode("",!0)]),_:1}),e.isSlotAction?(h.openBlock(),h.createElementBlock("br",EU)):h.createCommentVNode("",!0),e.isSlotAction?(h.openBlock(),h.createBlock(d,{key:1,size:15,justify:"space-between",class:"oc-search-action"},{default:h.withCtx(()=>[h.renderSlot(e.$slots,"action")]),_:3})):h.createCommentVNode("",!0)]),default:h.withCtx(()=>[h.createVNode(i,{ref:"itemRef",loading:e.loading,small:""},null,8,["loading"])]),_:3},8,["value"]),h.createVNode(u,{onClick:t[4]||(t[4]=p=>e.drawer=!0)},{icon:h.withCtx(()=>[h.createVNode(l,null,{default:h.withCtx(()=>[h.createVNode(v)]),_:1})]),_:1})])):(h.openBlock(),h.createElementBlock(h.Fragment,{key:2},[h.createElementVNode("div",yU,[h.createVNode(i,{ref:"itemRef",loading:e.loading,cols:e.cols},h.createSlots({_:2},[e.isSlotHeader?{name:"header",fn:h.withCtx(()=>[h.renderSlot(e.$slots,"header")]),key:"0"}:void 0]),1032,["loading","cols"]),h.createVNode(d,{size:5,wrap:!1,style:{"padding-left":"15px"}},{default:h.withCtx(()=>[e.data&&Object.keys(e.data).length>0?(h.openBlock(),h.createBlock(g,{key:0,trigger:"hover"},{trigger:h.withCtx(()=>[h.createVNode(u,{loading:e.loading,class:"button-primary",onClick:t[5]||(t[5]=p=>e.doSearch(!1))},{icon:h.withCtx(()=>[h.createVNode(l,null,{default:h.withCtx(()=>[h.createVNode(c)]),_:1})]),_:1},8,["loading"])]),default:h.withCtx(()=>[h.createTextVNode(" "+h.toDisplayString(e.$t("Common.search")),1)]),_:1})):h.createCommentVNode("",!0),e.resetButton?(h.openBlock(),h.createBlock(g,{key:1,trigger:"hover"},{trigger:h.withCtx(()=>[h.createVNode(u,{loading:e.loading,onClick:e.clearAll},{icon:h.withCtx(()=>[h.createVNode(l,null,{default:h.withCtx(()=>[h.createVNode(x)]),_:1})]),_:1},8,["loading","onClick"])]),default:h.withCtx(()=>[h.createTextVNode(" "+h.toDisplayString(e.$t("Common.reset")),1)]),_:1})):h.createCommentVNode("",!0)]),_:1})]),h.createVNode(d,{size:0,wrap:!1,class:"oc-search-action"},{default:h.withCtx(()=>[h.renderSlot(e.$slots,"action")]),_:3})],64))],34)}const jd=ae(gU,[["render",CU]]),BU=h.defineComponent({name:"OcSkeleton",components:{NGrid:R.NGrid,NGi:R.NGi,NSkeleton:R.NSkeleton},props:{cols:{type:Number,default:6},num:{type:Array,default:()=>[[12,1]]}},setup(){return{}}}),AU={class:"com-skeleton"};function DU(e,t,r,n,a,o){const i=h.resolveComponent("NSkeleton"),s=h.resolveComponent("NGi"),l=h.resolveComponent("NGrid");return h.openBlock(),h.createElementBlock("div",AU,[h.createVNode(l,{"x-gap":"15","y-gap":"15",cols:e.cols,"item-responsive":"",responsive:"screen"},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.num,(u,x)=>(h.openBlock(),h.createElementBlock(h.Fragment,{key:`skeleton_${x}`},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(e.num[x][0],(c,d)=>(h.openBlock(),h.createBlock(s,{key:`skeleton_${x}_${d}`,span:`${e.cols/2} m:2 l:${e.num[x][1]}`},{default:h.withCtx(()=>[h.createVNode(i)]),_:2},1032,["span"]))),128))],64))),128))]),_:1},8,["cols"])])}const mC=ae(BU,[["render",DU]]),_U=h.defineComponent({name:"OcTable",components:{NDataTable:R.NDataTable,NTooltip:R.NTooltip,NPopover:R.NPopover,NButton:R.NButton,NIcon:R.NIcon,NFlex:R.NFlex,NPopconfirm:R.NPopconfirm,IconFilter:W0,IconNavigation:j0,IconEye:Y0,IconEyeOff:Jc,IconPin:ef,IconPinOff:tf,IconAdd:Wc,IconMailInboxAdd:Pi,IconCloudArrowDown:X0,Draggable:Km,OcSearchBar:jd,OcImporter:Wd},props:{columns:{required:!0,type:Array,default:()=>[]},fetch:{required:!0,type:Function,default:()=>Promise.resolve()},actions:{type:Array,default:void 0},filters:{type:Object,default:void 0},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","on-update:filter"],setup(e,{emit:t,expose:r,slots:n}){const a=h.ref(!!n.header),o=h.ref(),{t:i}=Qt.useI18n(),s=Ht.useRoute(),l=Ht.useRouter(),u=R.useNotification(),x=h.ref(!1),c=h.ref(!1),d=h.ref(!1),f=h.ref([]),v=h.ref([]),g=h.ref([]),p=h.ref({query:{page:1}}),m=h.ref({}),E=h.ref({}),y=h.ref(void 0),B=h.ref(void 0),D=s.path,A=I=>{x.value=!0,t("update:loading",!0),I&&(p.value.query={...p.value.query,...I});const U=K0(p.value);e.fetch&&e.fetch(U).then(j=>{const G=q0(j);p.value.query=G.query,g.value=G.records,o.value&&o.value.setValues(p.value),x.value=!1,t("on-update:value",at(p.value)),t("update:loading",!1)}).catch(()=>{x.value=!1,t("update:loading",!1)})},_=I=>{p.value.query.page=I,Zs(),A()},C=I=>{p.value.query.pageSize=I,p.value.query.page=1,Zs(),A()},w=I=>{I?(p.value.query.columnKey=I.columnKey,p.value.query.order=I.order):(p.value.query.columnKey=null,p.value.query.order=null),A()},b=I=>{I.pin=!I.pin,I.pin?I.fixed="left":I.fixed=void 0,$()},F=I=>{I.show=!I.show,$()},S=()=>{const I=[];v.value.forEach(U=>{U.show&&I.push(U)}),f.value=I},P=I=>{if(p.value=I,e.cache){const U=Jr(D),j=Jr(p.value);l.replace(`${D}?cursor=${j}&routerId=${U}`)}A()},T=()=>{c.value=!0,Gd({...e.exporter,jobParams:JSON.stringify(p.value)}).then(()=>{u.success({content:()=>i("Notice.success"),duration:3e3}),setTimeout(()=>{c.value=!1},2e3)}).catch(()=>{c.value=!1})},N=I=>{const U=at(e.columns),j=[],G=new Set,he={};I||(I=e.filters),U.forEach(te=>{if(!G.has(te.key)){const ie=I==null?void 0:I.find(de=>de.key===te.key),ce=I==null?void 0:I.findIndex(de=>de.key===te.key);ie?(te.show=ie.show,te.hide=ie.hide,te.pin=ie.pin,te.fixed=ie.fixed,he[ce]=te,G.add(te.key)):j.push(te)}});const ee=Object.keys(he).map(te=>he[te]);return G.clear(),[...ee,...j]},M=I=>new Promise(async U=>{var he,ee,te,ie,ce,de,Z;const j={},G={};if(I.search.title||(I.search.title=I.title),I.search.defaultValue!==void 0)G[I.search.key||I.key]=I.search.defaultValue;else{if(I.search.type==="input"&&(G[I.search.key||I.key]=""),I.search.type==="number"&&(G[I.search.key||I.key]=null),I.search.type==="dropdown"&&(G[I.search.key||I.key]=null),(I.search.type==="cascader"||I.search.type==="treeSelect")&&((he=I.search)!=null&&he.multiple?G[I.search.key||I.key]=[]:G[I.search.key||I.key]=null),I.search.type==="datePicker"){let Q=0;(I.search.dateType.indexOf("date")>-1||I.search.dateType.indexOf("quarter")>-1||I.search.dateType.indexOf("week")>-1)&&(Q=Na()),I.search.dateType.indexOf("month")>-1&&(Q=Na(void 0,void 0,1)),I.search.dateType.indexOf("year")>-1&&(Q=Na(void 0,1,1)),I.search.dateType.indexOf("range")>-1&&(Q=[Q,Q]),G[((ee=I.search)==null?void 0:ee.key)||I.key]=Q}I.search.type==="select"&&((te=I.search)!=null&&te.multiple?I.search.fallbackOption?G[((ie=I.search)==null?void 0:ie.key)||I.key]=[""]:G[((ce=I.search)==null?void 0:ce.key)||I.key]=[]:G[((de=I.search)==null?void 0:de.key)||I.key]=null)}I.search.type==="select"&&typeof I.search.options=="function"&&await I.search.options().then(Q=>{I.search.options=Q}),j[((Z=I.search)==null?void 0:Z.key)||I.key]=I.search,U({value:G,data:j})}),L=async(I=!1,U)=>{const j=[],G=[];let he={},ee={};const te=N(U);for await(const ie of te){if(ie.search){const{value:de,data:Z}=await M(at(ie));he={...he,...de},ee={...ee,...Z}}if(delete ie.search,ie.render&&typeof ie.render=="string"){const de=ie.render,Z=new Function("rowData","rowIndex","h",de);ie.render=(Q,$e)=>Z(Q,$e,h.h)}const ce=at(ie);j.push(ce),m.value=at(he),G.push({...ce,show:(ie==null?void 0:ie.show)??!0,pin:!!ie.fixed})}if(e.actions&&e.actions.length>0){const ie=at(e.actions),ce={title:()=>i("Common.action"),key:"action",align:"center",fixed:"right",width:e.actionsWidth,resizable:!0,checked:!0,show:!0,hide:!0,render(de,Z){return vn(ie,de,Z)}};j.push(ce),G.push(ce)}if(I&&e.cache){const{cursor:ie,routerId:ce}=s.query;if(ie&&ce){const de=mi(ce),Z=mi(ie);de===D&&(p.value={...p.value,...Z})}else p.value={...p.value,...he}}else p.value={...p.value,...he};f.value=j,E.value=ee,v.value=G,o.value&&o.value.setValues(at(p.value)),o.value&&o.value.setData(at(E.value))},O=I=>typeof I=="number"?`${I}px`:I,V=()=>{if(e.height){const I=O(e.height);y.value=I,B.value=I;return}e.minHeight&&(y.value=O(e.minHeight)),e.maxHeight&&(B.value=O(e.maxHeight))},$=()=>{const I=[];v.value.forEach(U=>{U.key!=="action"&&I.push({key:U.key,show:U.show,hide:U.hide,fixed:U.fixed})}),t("on-update:filter",I)};return r({init:A}),h.onMounted(()=>{L(!0),V()}),h.watch(()=>v.value,()=>{S()},{deep:!0}),h.watch(()=>e.columns,()=>{e.realtime&&L()},{deep:!0}),h.watch(()=>e.actions,()=>{e.realtime&&L()},{deep:!0}),h.watch(()=>e.filters,I=>{L(!1,I)},{deep:!0}),{loading:x,minH:y,maxH:B,searchRef:o,exportLoading:c,tableColumns:f,tableData:g,tableQuery:p,searchDefaultValue:m,searchData:E,baseColumns:v,showImporter:d,isSlotHeader:a,pageChange:_,pageSizeChange:C,pageSorter:w,pinChange:b,showChange:F,submit:P,exportData:T,getDefaultDate:Na,handleColumnChange:$}}}),wU={class:"com-card"};function FU(e,t,r,n,a,o){const i=h.resolveComponent("IconAdd"),s=h.resolveComponent("NIcon"),l=h.resolveComponent("NButton"),u=h.resolveComponent("NTooltip"),x=h.resolveComponent("IconMailInboxAdd"),c=h.resolveComponent("IconCloudArrowDown"),d=h.resolveComponent("NPopconfirm"),f=h.resolveComponent("IconFilter"),v=h.resolveComponent("IconNavigation"),g=h.resolveComponent("IconPin"),p=h.resolveComponent("IconPinOff"),m=h.resolveComponent("IconEye"),E=h.resolveComponent("IconEyeOff"),y=h.resolveComponent("Draggable"),B=h.resolveComponent("NPopover"),D=h.resolveComponent("OcSearchBar"),A=h.resolveComponent("NDataTable"),_=h.resolveComponent("OcImporter");return h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createVNode(D,{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},h.createSlots({action:h.withCtx(()=>[e.addFn?(h.openBlock(),h.createBlock(u,{key:0,trigger:"hover"},{trigger:h.withCtx(()=>[h.createVNode(l,{onClick:e.addFn},{icon:h.withCtx(()=>[h.createVNode(s,null,{default:h.withCtx(()=>[h.createVNode(i)]),_:1})]),_:1},8,["onClick"])]),default:h.withCtx(()=>[h.createTextVNode(" "+h.toDisplayString(e.$t("Common.add")),1)]),_:1})):h.createCommentVNode("",!0),e.importer?(h.openBlock(),h.createBlock(u,{key:1,trigger:"hover"},{trigger:h.withCtx(()=>[h.createVNode(l,{onClick:t[0]||(t[0]=C=>e.showImporter=!0)},{icon:h.withCtx(()=>[h.createVNode(s,null,{default:h.withCtx(()=>[h.createVNode(x)]),_:1})]),_:1})]),default:h.withCtx(()=>[h.createTextVNode(" "+h.toDisplayString(e.$t("Common.importer.title")),1)]),_:1})):h.createCommentVNode("",!0),e.exporter?(h.openBlock(),h.createBlock(u,{key:2,trigger:"hover"},{trigger:h.withCtx(()=>[h.createVNode(d,{"positive-text":e.$t("Common.export"),placement:"bottom-end",onPositiveClick:e.exportData},{trigger:h.withCtx(()=>[h.createVNode(l,{loading:e.exportLoading},{icon:h.withCtx(()=>[h.createVNode(s,null,{default:h.withCtx(()=>[h.createVNode(c)]),_:1})]),_:1},8,["loading"])]),default:h.withCtx(()=>[h.createTextVNode(" "+h.toDisplayString(e.$t("Common.export"))+"? ",1)]),_:1},8,["positive-text","onPositiveClick"])]),default:h.withCtx(()=>[h.createTextVNode(" "+h.toDisplayString(e.$t("Common.export")),1)]),_:1})):h.createCommentVNode("",!0),e.filterButton?(h.openBlock(),h.createBlock(u,{key:3,trigger:"hover"},{trigger:h.withCtx(()=>[h.createVNode(B,{placement:"bottom-end",trigger:"click","show-arrow":!1},{trigger:h.withCtx(()=>[h.createVNode(l,null,{icon:h.withCtx(()=>[h.createVNode(s,null,{default:h.withCtx(()=>[h.createVNode(f)]),_:1})]),_:1})]),default:h.withCtx(()=>[h.createVNode(y,h.mergeProps({modelValue:e.baseColumns,"onUpdate:modelValue":t[1]||(t[1]=C=>e.baseColumns=C)},{animation:200},{"item-key":"key",class:"oc-table-filter",handle:".oc-drag-handle",onEnd:e.handleColumnChange}),{item:h.withCtx(({element:C})=>[C.hide?h.createCommentVNode("",!0):(h.openBlock(),h.createElementBlock("div",{key:C.key,class:"oc-table-sort"},[h.createVNode(l,{quaternary:"",class:"oc-drag-handle"},{icon:h.withCtx(()=>[h.createVNode(s,{size:"24"},{default:h.withCtx(()=>[h.createVNode(v)]),_:1})]),_:1}),h.createVNode(l,{quaternary:"",class:"oc-table-sort-title"},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(typeof C.title=="string"?C.title:C.title&&C.title()),1)]),_:2},1024),e.pinButton?(h.openBlock(),h.createBlock(l,{key:0,type:"tertiary",onClick:w=>e.pinChange(C),quaternary:""},{icon:h.withCtx(()=>[h.createVNode(s,{size:"24"},{default:h.withCtx(()=>[C.pin?(h.openBlock(),h.createBlock(g,{key:0})):(h.openBlock(),h.createBlock(p,{key:1}))]),_:2},1024)]),_:2},1032,["onClick"])):h.createCommentVNode("",!0),h.createVNode(l,{type:"tertiary",onClick:w=>e.showChange(C),quaternary:""},{icon:h.withCtx(()=>[h.createVNode(s,{size:"24"},{default:h.withCtx(()=>[C.show?(h.openBlock(),h.createBlock(m,{key:0})):(h.openBlock(),h.createBlock(E,{key:1}))]),_:2},1024)]),_:2},1032,["onClick"])]))]),_:1},16,["modelValue","onEnd"])]),_:1})]),default:h.withCtx(()=>[h.createTextVNode(" "+h.toDisplayString(e.$t("Common.filter")),1)]),_:1})):h.createCommentVNode("",!0),h.renderSlot(e.$slots,"action")]),_:2},[e.isSlotHeader?{name:"header",fn:h.withCtx(()=>[h.renderSlot(e.$slots,"header")]),key:"0"}:void 0]),1032,["value","defaultValue","data","loading","autoSubmit","resetButton","onOnUpdate:value"]),h.createElementVNode("div",wU,[h.createVNode(A,{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?(h.openBlock(),h.createBlock(_,{key:0,show:e.showImporter,"onUpdate:show":t[2]||(t[2]=C=>e.showImporter=C),data:e.importer},null,8,["show","data"])):h.createCommentVNode("",!0)],64)}const EC=ae(_U,[["render",FU]]),Zm=Object.freeze(Object.defineProperty({__proto__:null,IconAdd:Wc,IconAlert:Yc,IconArrowClockwise:Ya,IconArrowDown:Z0,IconArrowSquareDown:Zc,IconArrowUp:rf,IconCalendarArrowDown:Ni,IconChevronLeft:jc,IconClear:Xc,IconCloudArrowDown:X0,IconDelete:Kc,IconDismiss:Zn,IconDrafts:Qc,IconEye:Y0,IconEyeOff:Jc,IconFilter:W0,IconFullScreenMaximize:Qm,IconGridDots:qc,IconMailInboxAdd:Pi,IconNavigation:j0,IconPin:ef,IconPinOff:tf,IconReset:nf,IconSearch:U0,IconUser:af,IconWeatherMoon:G0,IconWeatherSunny:H0,OcActionButton:Jm,OcAuth:s9,OcBack:l9,OcCircle:u9,OcEcharts:Ty,OcError:Ny,OcFooter:Py,OcForm:rC,OcHeader:iC,OcImporter:Wd,OcLogin:sC,OcLogo:lC,OcMain:cC,OcMy:fC,OcNumberRoll:Yd,OcReport:dC,OcScan:gC,OcSearchBar:jd,OcSkeleton:mC,OcTable:EC,commonStore:J,fnClearUser:zl,fnDownload:Gd,fnGetUser:$l,fnRenderAction:vn,fnSetLang:Xa,fnSetTheme:Mi,fnSetUser:Hd,fnUserLogout:Ud,i18n:xn,userStore:z},Symbol.toStringTag,{value:"Module"}));let Zd=3840,qd=2160;const yC=h.reactive({scale:1});function bU(e,t){Zd=e,qd=t}function CC(){let e=1;const t=window.innerWidth,r=window.innerHeight,n=Zd,a=qd,o=parseFloat((n/a).toFixed(5));if(parseFloat((t/r).toFixed(5))>o){const s=parseFloat((r*o/n).toFixed(5));e=s>1?1:s}else{const s=parseFloat((t/o/a).toFixed(5));e=s>1?1:s}yC.scale=e}function SU(){const e=vC(CC,200);return e(),window.addEventListener("resize",e),()=>{Zd=3840,qd=2160,window.removeEventListener("resize",e)}}const kU=e=>!!(z.kind===-1||z.kind===99||z.iot_menu_authorization.includes(e)),TU=e=>z.platform_tdm?z.kind===-1||z.kind===99||e==="home"?!0:z.tdm_menu_authorization.includes(e):!1,NU=e=>z.platform_qms?z.kind===-1||z.kind===99||e==="home"?!0:z.qms_menu_authorization.includes(e):!1,PU=e=>z.platform_twin?(z.kind===-1||z.kind===99||e==="home",!0):!1,MU=e=>!!(z.kind===-1||z.kind===99||z.maintain_menu_authorization.includes(e)),IU=e=>!!(z.kind===-1||z.kind===99||z.order_menu_authorization.includes(e)),LU="2.1.15";let gi="";const Be=navigator.userAgent.toLocaleUpperCase(),OU=()=>{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]+/,o=/ANDROID [\d.]+/,i=/IPHONE/,s=/IPAD/,l=/MAC/;if(e.test(Be))return"Windows XP";if(t.test(Be))return"Windows 7";if(r.test(Be))return"Windows 8";if(n.test(Be))return"Windows 10";if(a.test(Be))return"Windows 11";if(o.test(Be)){const u=o.exec(Be);return`Android ${u?u[0].split(" ")[1]:""}`}if(i.test(Be)){const x=/OS [\d_]+/.exec(Be);return`iPhone ${x?x[0].split(" ")[1].replace(/_/g,"."):""}`}if(s.test(Be)){const x=/OS [\d_]+/.exec(Be);return`iPad${x?x[0].split(" ")[1].replace(/_/g,"."):""}`}if(l.test(Be)){const x=/ [\d_]+/.exec(Be);return`MAC ${x?x[0].replace(/_/g,".").replace(/ /g,""):""}`}return"Other Platform"},RU=()=>{const e=/MSIE [\d]+/,t=/EDG\/[\d.]+/,r=/FIREFOX\/[\d.]+/,n=/CHROME\/[\d.]+/,a=/SAFARI\/[\d.]+/,o=/OPR\/[\d.]+/,i=/SE \d/,s=/UCBROWSER/,l=/ANDROID [\d.]+/;if(e.test(Be)&&i.test(Be))return"SogouIE";if(i.test(Be))return"SogouFast";if(s.test(Be))return"UC";if(l.test(Be))return"Android";if(o.test(Be))return"Opera";if(e.test(Be)){const u=e.exec(Be);return`IE ${u?u[0].split("/")[1]:""}`}if(t.test(Be)){const u=t.exec(Be);return`Edge ${u?u[0].split("/")[1]:""}`}if(n.test(Be)){const u=n.exec(Be);return`Chrome ${u?u[0].split("/")[1]:""}`}if(r.test(Be)){const u=r.exec(Be);return`Firefox ${u?u[0].split("/")[1]:""}`}if(a.test(Be)){const u=a.exec(Be);return`Safari ${u?u[0].split("/")[1]:""}`}return"Others"};function qm(e,t,r,n=!1){if(e!==void 0&&(t in e||n)){const a=e[t],o=r(a);typeof o=="function"&&(e[t]=o)}}function VU(e,t,r,n=!1){e.addEventListener(t,r,n)}function $U(){if(!("XMLHttpRequest"in window))return;const e=XMLHttpRequest.prototype;qm(e,"open",t=>function(...r){this.xhr={method:r[0].toUpperCase(),url:r[1],startTime:Date.now(),type:"xhr"},t.apply(this,r)}),qm(e,"send",t=>function(...r){const{url:n}=this.xhr;this.ontimeout=function(){z0(3,n,"Network Timeout")},VU(this,"loadend",function(){try{const a=JSON.parse(this.response);(this.status===500||this.status===405)&&z0(3,n,`${r[0]}-${this.status}-${this.response}`)}catch{}}),t.apply(this,r)})}function zU(e,t){gi=typeof t=="string"?t:gi,!(!t||!gi)&&($U(),window.addEventListener("error",function(r){z0(1,window.location.href,r)}),window.addEventListener("unhandledrejection",function(r){r.preventDefault()}),e.config.errorHandler=r=>{z0(2,window.location.href,r)})}const z0=(e,t,r)=>{try{if(!z.userId||r&&r.indexOf("ResizeObserver")>-1||r&&r.message&&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:RU(),platform:OU(),system:J.platformName,message:e===1||e===2?r.message:r,user:{userId:z.userId,name:z.name,factoryId:z.factoryId,systemType:z.systemType,tenantLoginCode:z.tenantLoginCode,tenantName:z.tenantName,tenantStatus:z.tenantStatus,userAgent:Be}},a=Jr(n);if(window.navigator.sendBeacon)window.navigator.sendBeacon(gi,a);else{const o=document.body;let i=new Image;i.src=gi+"?data="+a,i.onload=i.onerror=function(){o.removeChild(i),i=null},o.append(i)}}catch{}};let BC;async function AC(){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 GU(){const e=await AC();BC!==e&&y6(!0)}async function HU(){BC=await AC(),window.versionMonitor&&clearInterval(window.versionMonitor),window.versionMonitor=setInterval(()=>{GU()},60*1e3)}function DC({components:e=[]}={}){const t=[];function r(a,o,i){a.component(o)||a.component(o,i)}function n(a,o){if(!t.includes(a)&&(t.push(a),e.forEach(i=>{const{name:s,alias:l}=i;r(a,s,i),l&&l.forEach(u=>{r(a,u,i)})}),o)){const{platform:i="iot",monitor:s=!1,versionMonitor:l=!0,enableRedirect:u=!0,language:x=!1,local:c="zh-CN"}=o,d=gt("theme",!1),f=gt("lang",c);E6(i),rG(u),m6(x),Xa(f),Mi(d),xn.global.locale.value=f,l&&HU(),s&&zU(a,s),o.options&&C6(o.options)}}return{version:LU,install:n}}const _C=DC({components:Object.keys(Zm).map(e=>Zm[e])}),UU=_C.install;exports.CUSTOM=a9;exports.FILE=uf;exports.GET=n9;exports.IconAdd=Wc;exports.IconAlert=Yc;exports.IconArrowClockwise=Ya;exports.IconArrowDown=Z0;exports.IconArrowSquareDown=Zc;exports.IconArrowUp=rf;exports.IconCalendarArrowDown=Ni;exports.IconChevronLeft=jc;exports.IconClear=Xc;exports.IconCloudArrowDown=X0;exports.IconDelete=Kc;exports.IconDismiss=Zn;exports.IconDrafts=Qc;exports.IconEye=Y0;exports.IconEyeOff=Jc;exports.IconFilter=W0;exports.IconFullScreenMaximize=Qm;exports.IconGridDots=qc;exports.IconMailInboxAdd=Pi;exports.IconNavigation=j0;exports.IconPin=ef;exports.IconPinOff=tf;exports.IconReset=nf;exports.IconSearch=U0;exports.IconUser=af;exports.IconWeatherMoon=G0;exports.IconWeatherSunny=H0;exports.OcActionButton=Jm;exports.OcAuth=s9;exports.OcBack=l9;exports.OcCircle=u9;exports.OcEcharts=Ty;exports.OcError=Ny;exports.OcFooter=Py;exports.OcForm=rC;exports.OcHeader=iC;exports.OcImporter=Wd;exports.OcLogin=sC;exports.OcLogo=lC;exports.OcMain=cC;exports.OcMy=fC;exports.OcNumberRoll=Yd;exports.OcReport=dC;exports.OcScan=gC;exports.OcSearchBar=jd;exports.OcSkeleton=mC;exports.OcTable=EC;exports.POST=Bt;exports.commonStore=J;exports.create=DC;exports.darkTheme=xC;exports.default=_C;exports.fnCancelFetch=r9;exports.fnCheckDashRole=PU;exports.fnCheckIoTRole=kU;exports.fnCheckMaintainRole=MU;exports.fnCheckOrderRole=IU;exports.fnCheckQMSRole=NU;exports.fnCheckTDMRole=TU;exports.fnClearUser=zl;exports.fnComputedScale=CC;exports.fnDecodeCursor=mi;exports.fnDelStorage=ro;exports.fnDeleteLoad=e9;exports.fnDownload=Gd;exports.fnEncodeCursor=Jr;exports.fnFormatTime=Fr;exports.fnFormatUnits=x6;exports.fnFullScreen=u6;exports.fnGetStorage=gt;exports.fnGetUser=$l;exports.fnListenerScale=SU;exports.fnPageModel2Naive=q0;exports.fnPageNaive2Model=K0;exports.fnRenderAction=vn;exports.fnScrollTop=Zs;exports.fnSetLang=Xa;exports.fnSetNormalWidthAndHeight=bU;exports.fnSetStorage=_t;exports.fnSetTheme=Mi;exports.fnSetUser=Hd;exports.fnThrottle=l6;exports.fnUserLogout=Ud;exports.getDefaultDate=Na;exports.i18n=xn;exports.install=UU;exports.lightTheme=uC;exports.scaleStore=yC;exports.useDebounceFn=Xd;exports.useLocalStorage=UH;exports.useQuery=WH;exports.useThrottleFn=HH;exports.userStore=z;
|