@partex/one-core 2.0.111 → 2.0.113
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/form/index.vue.d.ts +118 -11
- package/lib/components/form/interface.d.ts +22 -2
- package/lib/components/form/item.vue.d.ts +48 -0
- package/lib/components/searchBar/index.vue.d.ts +1 -1
- package/lib/one-core.cjs +18 -18
- package/lib/one-core.js +9221 -9017
- package/lib/one-core.umd.cjs +18 -18
- package/lib/style.css +1 -1
- package/package.json +1 -1
package/lib/one-core.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function($,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("vue"),require("naive-ui"),require("vue-router"),require("vue-i18n"),require("md5"),require("axios"),require("jsqr"),require("vuedraggable")):typeof define=="function"&&define.amd?define(["exports","vue","naive-ui","vue-router","vue-i18n","md5","axios","jsqr","vuedraggable"],p):($=typeof globalThis<"u"?globalThis:$||self,p($.OneCore={},$.Vue,$["naive-ui"],$["vue-router"],$["vue-i18n"],$.md5,$.axios,$.jsQR,$.vuedraggable))})(this,function($,p,O,Tt,Ht,Hi,Hu,TC,NC){"use strict";var MW=Object.defineProperty;var kW=($,p,O)=>p in $?MW($,p,{enumerable:!0,configurable:!0,writable:!0,value:O}):$[p]=O;var Gu=($,p,O)=>(kW($,typeof p!="symbol"?p+"":p,O),O);const Kp=p.defineComponent({name:"OcActionButton",props:{data:{required:!0,type:Array,default:()=>[]}},setup(e){return()=>Gr(e.data)}}),Z=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},DC={},AC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},MC=[p.createElementVNode("g",{fill:"none"},[p.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)];function kC(e,t){return p.openBlock(),p.createElementBlock("svg",AC,MC)}const Wi=Z(DC,[["render",kC]]),EC={},PC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},IC=[p.createElementVNode("g",{fill:"none"},[p.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)];function LC(e,t){return p.openBlock(),p.createElementBlock("svg",PC,IC)}const Wu=Z(EC,[["render",LC]]),OC={},RC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},BC=[p.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[p.createElementVNode("path",{d:"M8 6h12"}),p.createElementVNode("path",{d:"M6 12h12"}),p.createElementVNode("path",{d:"M4 18h12"})],-1)];function VC(e,t){return p.openBlock(),p.createElementBlock("svg",RC,BC)}const Uu=Z(OC,[["render",VC]]),$C={},FC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},zC=[p.createElementVNode("g",{fill:"none"},[p.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)];function GC(e,t){return p.openBlock(),p.createElementBlock("svg",FC,zC)}const Yu=Z($C,[["render",GC]]),HC={},WC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},UC=[p.createElementVNode("g",{fill:"none"},[p.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)];function YC(e,t){return p.openBlock(),p.createElementBlock("svg",WC,UC)}const qu=Z(HC,[["render",YC]]),qC={},jC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},XC=[p.createElementVNode("g",{fill:"none"},[p.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)];function ZC(e,t){return p.openBlock(),p.createElementBlock("svg",jC,XC)}const Ui=Z(qC,[["render",ZC]]),KC={},JC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},QC=[p.createElementVNode("g",{fill:"none"},[p.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)];function e2(e,t){return p.openBlock(),p.createElementBlock("svg",JC,QC)}const Yi=Z(KC,[["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=[p.createElementVNode("g",{fill:"none"},[p.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)];function a2(e,t){return p.openBlock(),p.createElementBlock("svg",r2,n2)}const ju=Z(t2,[["render",a2]]),o2={},i2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},s2=[p.createElementVNode("g",{fill:"none"},[p.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)];function l2(e,t){return p.openBlock(),p.createElementBlock("svg",i2,s2)}const qi=Z(o2,[["render",l2]]),u2={},c2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},f2=[p.createElementVNode("g",{fill:"none"},[p.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)];function h2(e,t){return p.openBlock(),p.createElementBlock("svg",c2,f2)}const fa=Z(u2,[["render",h2]]),d2={},p2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},v2=[p.createElementVNode("g",{fill:"none"},[p.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)];function g2(e,t){return p.openBlock(),p.createElementBlock("svg",p2,v2)}const _o=Z(d2,[["render",g2]]),m2={},y2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},_2=[p.createElementVNode("g",{fill:"none"},[p.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)];function w2(e,t){return p.openBlock(),p.createElementBlock("svg",y2,_2)}const ji=Z(m2,[["render",w2]]),b2={},S2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},C2=[p.createElementVNode("g",{fill:"none"},[p.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)];function x2(e,t){return p.openBlock(),p.createElementBlock("svg",S2,C2)}const Jp=Z(b2,[["render",x2]]),T2={},N2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},D2=[p.createElementVNode("g",{fill:"none"},[p.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)];function A2(e,t){return p.openBlock(),p.createElementBlock("svg",N2,D2)}const Xu=Z(T2,[["render",A2]]),M2={},k2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},E2=[p.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)];function P2(e,t){return p.openBlock(),p.createElementBlock("svg",k2,E2)}const Xi=Z(M2,[["render",P2]]),I2={},L2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},O2=[p.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),p.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)];function R2(e,t){return p.openBlock(),p.createElementBlock("svg",L2,O2)}const Zu=Z(I2,[["render",R2]]),B2={},V2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},$2=[p.createElementVNode("g",{fill:"none"},[p.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)];function F2(e,t){return p.openBlock(),p.createElementBlock("svg",V2,$2)}const Ku=Z(B2,[["render",F2]]),z2={},G2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},H2=[p.createElementVNode("g",{fill:"none"},[p.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)];function W2(e,t){return p.openBlock(),p.createElementBlock("svg",G2,H2)}const $r=Z(z2,[["render",W2]]),U2={},Y2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},q2=[p.createElementVNode("g",{fill:"none"},[p.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)];function j2(e,t){return p.openBlock(),p.createElementBlock("svg",Y2,q2)}const wo=Z(U2,[["render",j2]]),X2={},Z2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},K2=[p.createElementVNode("g",{fill:"none"},[p.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)];function J2(e,t){return p.openBlock(),p.createElementBlock("svg",Z2,K2)}const Zi=Z(X2,[["render",J2]]),Q2={},ex={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},tx=[p.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 160h352"},null,-1),p.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 256h352"},null,-1),p.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 352h352"},null,-1)];function rx(e,t){return p.openBlock(),p.createElementBlock("svg",ex,tx)}const Ki=Z(Q2,[["render",rx]]),nx={},ax={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},ox=[p.createElementVNode("g",{fill:"none"},[p.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)];function ix(e,t){return p.openBlock(),p.createElementBlock("svg",ax,ox)}const Ju=Z(nx,[["render",ix]]),sx={},lx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},ux=[p.createElementVNode("g",{fill:"none"},[p.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)];function cx(e,t){return p.openBlock(),p.createElementBlock("svg",lx,ux)}const Qu=Z(sx,[["render",cx]]),fx={},hx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},dx=[p.createElementVNode("g",{fill:"none"},[p.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)];function px(e,t){return p.openBlock(),p.createElementBlock("svg",hx,dx)}const Ji=Z(fx,[["render",px]]),vx={},gx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},mx=[p.createElementVNode("g",{fill:"none"},[p.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)];function yx(e,t){return p.openBlock(),p.createElementBlock("svg",gx,mx)}const ec=Z(vx,[["render",yx]]),_x={},bx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Sx=[p.createElementVNode("g",{fill:"none"},[p.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)];function Cx(e,t){return p.openBlock(),p.createElementBlock("svg",bx,Sx)}const tc=Z(_x,[["render",Cx]]),xx={},Tx={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},Nx=[p.createElementVNode("g",{fill:"none"},[p.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)];function Dx(e,t){return p.openBlock(),p.createElementBlock("svg",Tx,Nx)}const rc=Z(xx,[["render",Dx]]),nc=window.localStorage;function ac(e,t){nc.setItem(e,JSON.stringify(t))}function Qp(e){const t=nc.getItem(e);if(t)return JSON.parse(t)}function Ax(e){nc.removeItem(e)}function ev(){return Date.parse(String(new Date))}const Mx="local-";class kx{constructor(t=""){Gu(this,"namespace");Gu(this,"mapKey");Gu(this,"map");this.namespace=t,this.mapKey=Mx+this.namespace,this.map=Qp(this.mapKey)||{}}set(t,r,n=0){const a=this.getReallyKey(t),o={expires:n,time:ev()};ac(a,r),this.map[t]=o,ac(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=Qp(n);if(a.expires>0){if(ev()-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],ac(this.mapKey,this.map),Ax(r)}deleteAll(){for(const t in this.map)this.delete(t)}}const oc=new kx("partex"),ha=(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 ht(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}oc.set(e,t,r)}function dt(e,t){return oc.get(e,t)}const da=e=>{oc.delete(e)},Qi=(e=0)=>{const t=document.documentElement;t&&(t.scrollTop=e,setTimeout(()=>{t.scrollTop=e},100))},tv=()=>{const e=document.querySelectorAll(".partex-loading");e&&e.length>0&&e.forEach(t=>{const r=t.parentNode;r==null||r.removeChild(t)})};function bo(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:()=>p.h("div",{},{default:()=>K.lang==="zh-CN"?`共${e.total}条`:`${e.total} items`})},records:r}}function So(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 _r=(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},Fr=e=>{try{return window.btoa(encodeURIComponent(JSON.stringify(e)))}catch{return""}},Co=e=>{try{return JSON.parse(decodeURIComponent(window.atob(e)))}catch{return""}},Ex=(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 Px(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 Ix(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 Lx={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:"扫一扫"}}},Ox={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"}}},zr=Ht.createI18n({legacy:!1,locale:"zh-CN",messages:{"en-US":{...Ox},"zh-CN":{...Lx},"fr-FR":{}}}),wr=Tt.createRouter({history:Tt.createWebHistory(),routes:[],scrollBehavior:()=>({left:0,top:0})}),ic=document.querySelector("html");wr.beforeEach(()=>{ic==null||ic.removeAttribute("style")});const Rx=Object.prototype.hasOwnProperty;function rv(e,t){const r=[];for(const n in e){if(!Rx.call(e,n))continue;const a=e[n],o=encodeURIComponent(n);let i;typeof a=="object"?i=rv(a,t?t+"["+o+"]":o):i=(t?t+"["+o+"]":o)+"="+encodeURIComponent(a),r.push(i)}return r.join("&")}const{notification:sc}=O.createDiscreteApi(["notification"],{configProviderProps:{themeOverrides:{common:{borderRadius:"16px",borderRadiusSmall:"8px",primaryColor:"#8e54c8",primaryColorHover:"#9b66d0",primaryColorPressed:"#8e54c8",primaryColorSuppl:"#8e54c8",infoColor:"#2080f0",infoColorHover:"#57a4fd",infoColorPressed:"#2080f0",infoColorSuppl:"#2080f0",successColor:"#5dae57",successColorHover:"#70ce69",successColorPressed:"#5dae57",successColorSuppl:"#5dae57",warningColor:"#f0973a",warningColorHover:"#ffb05d",warningColorPressed:"#f0973a",warningColorSuppl:"#f0973a",errorColor:"#e65444",errorColorHover:"#fc6c5d",errorColorPressed:"#e65444",errorColorSuppl:"#e65444",cardColor:"#fff"},Button:{textColor:"rgb(var(--font))"},Notification:{borderRadius:"16px"}}},notificationProviderProps:{placement:"top"}}),pa=Hu.create({timeout:3e5,responseType:"json",headers:{platformType:"T1"}}),Bx=String(0-new Date().getTimezoneOffset()/60);let lc=Hu.CancelToken.source();pa.interceptors.request.use(e=>{var r;e.cancelToken=lc.token,e.headers.TimezoneOffset=Bx,e.headers.Language=K.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=rv(e.data);n&&(e.url=`${e.url}?${n}`)}return e},e=>Promise.reject(e)),pa.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="网络错误,请稍后重试"),sc.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&&(tv(),wr.replace("/custom/500")),e&&e.response)switch(e.response.status){case 401:case 403:da("token"),window.location.href="/login";break;default:return sc.destroyAll(),sc.error({content:"系统正在维护中,请稍后再试!",duration:3e3}),Promise.reject()}else return Promise.reject()});const nv=()=>{lc.cancel(),lc=Hu.CancelToken.source()},uc="/apiserver/",av=(e,t,r="json")=>pa({url:`${uc}${e}`,method:"GET",data:t,responseType:r}),nt=(e,t={},r="json",n=3e5)=>pa({url:`${uc}${e}`,method:"POST",data:t,responseType:r,timeout:n}),ov=e=>pa(e),cc=(e,t)=>pa({headers:{"Content-Type":"multipart/form-data"},url:`${uc}${e}`,method:"POST",data:t});function iv(){const e=dt("platformListOwned",!1);return e&&typeof e!="string"?(sv(e),Promise.resolve(e.platformList)):new Promise((t,r)=>{ov({url:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/platform2.json",method:"GET",responseType:"text"}).then(n=>{const a=JSON.parse(n),o=a.platform,i={platformList:o,owned:a.owned};sv(i),ht("platformListOwned",i,"1 Day"),t(o)}).catch(()=>{r(!1)})})}const K=p.reactive({needUpdate:!1,download:!1,theme:!1,isPad:!1,isMobile:!1,language:!1,lang:"zh-CN",platformName:()=>zr.global.t("Platform.iot"),platformType:"T1",platformUrl:"/iot/home/all",platformList:{},platformMenu:[],owned:{}});function sv(e){K.platformList=e.platformList,K.owned=e.owned}function Vx(e){K.platformMenu=e}function fc(e){K.download=e}function $x(e){K.language=e}function va(e){let t;e?t=e:K.lang==="zh-CN"?t="en-US":t="zh-CN",ht("lang",t,0),K.lang=t;const r=document.body;r.dataset.lang=t,zr.global.locale.value=t}async function Fx(e){if(typeof e=="object")K.platformName=e.platformName,K.platformType=e.platformType,K.platformUrl=e.platformUrl;else{const t=await iv();if(t){const r=t[e]||t.iot;K.platformName=()=>zr.global.t(r.platformName),K.platformType=r.platformType,K.platformUrl=r.platformUrl,document.title=K.platformName()}}}function xo(e){K.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 zx(e){K.needUpdate=e}const lv=()=>{K.isMobile=window.screen.availWidth<769,K.isPad=window.screen.availWidth<1024};window.addEventListener("resize",lv),lv();const es=(e,t)=>p.h(O.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=()=>p.h(O.NIcon,{},{default:()=>p.h(r,{},{default:()=>null})})),p.h(O.NButton,o,i)},ts=(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 p.h(O.NPopconfirm,a,{default:()=>p.h("span",{style:{"max-width":"300px"}},{default:()=>typeof t.confirmText=="function"?t.confirmText():t.confirmText}),trigger:()=>e})},Gx=(e,t,r)=>{let n;if(e.type==="detail"){const a=br(e,e.color?e.color:"primary",e.icon?e.icon:Xi,t,r);e.buttonText?n=a:n=es(a,K.lang==="zh-CN"?"详情":"Detail")}if(e.type==="edit"){const a=br(e,e.color?e.color:"success",e.icon?e.icon:Ku,t,r);e.buttonText?n=a:n=es(a,K.lang==="zh-CN"?"编辑":"Edit")}if(e.type==="delete"){let a=br({...e,onClick:""},e.color?e.color:"error",e.icon?e.icon:Xu,t,r);e.buttonText?a=a:a=es(a,K.lang==="zh-CN"?"删除":"Delete"),n=ts(a,{...e,confirmText:K.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=es(a,e.tooltipText)}return e.confirmText&&(n=ts(n,e,t,r)),n},Hx=(e,t,r)=>{const n=[];return e.forEach(a=>{let o;a.type==="detail"&&(o=br({...a,buttonText:K.lang==="zh-CN"?"详情":"Detail"},"primary",void 0,t,r)),a.type==="edit"&&(o=br({...a,buttonText:K.lang==="zh-CN"?"编辑":"Edit"},"success",void 0,t,r)),a.type==="delete"&&(o=ts(br({...a,onClick:"",buttonText:K.lang==="zh-CN"?"删除":"Delete"},"error",void 0,t,r),{...a,confirmText:K.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=ts(o,a,t,r)),n.push(o)}),n},Gr=(e,t,r)=>{const n=[];return e.forEach(a=>{if(a.type==="group"){if(a.children.length>0){const o=Hx(a.children,t,r);n.push(p.h(O.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:()=>p.h(O.NFlex,{vertical:!0},{default:()=>o})}))}}else{const o=Gx(a,t,r);n.push(o)}}),p.h("div",{class:"action-flex"},{default:()=>n})},Wx=p.defineComponent({name:"OcAuth",setup(){const e=Tt.useRoute(),t=Tt.useRouter(),{auth:r}=e.query;r?ht("token",r,0):da("token"),t.replace(K.platformUrl)}}),Ux={class:"com-card flex-center",style:{flex:"1"}},Yx=[p.createElementVNode("p",{class:"oc-miss-title"},"登录中...",-1)];function qx(e,t,r,n,a,o){return p.openBlock(),p.createElementBlock("div",Ux,Yx)}const uv=Z(Wx,[["render",qx]]),jx=p.defineComponent({name:"OcBack",components:{IconChevronLeft:Yu,NButton:O.NButton,NIcon:O.NIcon},props:{to:{type:String,default:""}},setup(e){const t=Tt.useRouter();return{back:()=>{e.to?t.push(e.to):t.back()}}}});function Xx(e,t,r,n,a,o){const i=p.resolveComponent("IconChevronLeft"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton");return p.openBlock(),p.createBlock(l,{text:"",onClick:e.back},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(i)]),_:1})]),default:p.withCtx(()=>[p.createElementVNode("span",null,p.toDisplayString(e.$t("Common.back")),1)]),_:1},8,["onClick"])}const cv=Z(jx,[["render",Xx]]),Zx=p.defineComponent({name:"OcCircle",components:{NPopover:O.NPopover},props:{circle:{required:!0,type:Number,default:0},circleTxt:{type:String,default:""},pointA:{type:Number,default:void 0},pointB:{type:Number,default:void 0},pointSize:{type:Number,default:3},styles:{type:Object,default:()=>({backgroundBg:"rgba(255, 255, 255, 0.1)",processBg:"#fff",pointABg:"#f2a651",pointBBg:"#67c67e"})}},setup(e){const t=p.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}}}}),Kx={viewBox:"40 20 120 120"},Jx=p.createElementVNode("defs",null,[p.createElementVNode("filter",{id:"blurs"},[p.createElementVNode("feOffset",{result:"offOut",in:"SourceGraphic",dx:"0",dy:"0"}),p.createElementVNode("feGaussianBlur",{result:"blurOut",in:"offOut",stdDeviation:"0.8"}),p.createElementVNode("feBlend",{in:"SourceGraphic",in2:"blurOut",mode:"normal"})])],-1),Qx=["stroke"],eT=["stroke"],tT=["r","transform","fill"],rT=["r","transform","fill"],nT={dx:"100",dy:"90",fill:"#333","text-anchor":"middle",style:{"font-size":"28px"}};function aT(e,t,r,n,a,o){const i=p.resolveComponent("NPopover");return p.openBlock(),p.createElementBlock(p.Fragment,null,[(p.openBlock(),p.createElementBlock("svg",Kx,[Jx,p.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,Qx),p.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:p.normalizeStyle(e.calculateCircle()),stroke:e.styles.processBg},null,12,eT),e.pointA?(p.openBlock(),p.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,tT)):p.createCommentVNode("",!0),e.pointB?(p.openBlock(),p.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,rT)):p.createCommentVNode("",!0),p.createElementVNode("text",nT,p.toDisplayString(e.circleTxt?e.circleTxt:`${e.circle}%`),1)])),p.createVNode(i,{show:e.popover.show,x:e.popover.x,y:e.popover.y,"show-arrow":!1,trigger:"manual"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.popover.text),1)]),_:1},8,["show","x","y"])],64)}const fv=Z(Zx,[["render",aT]]);/*! *****************************************************************************
|
|
1
|
+
(function($,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("vue"),require("naive-ui"),require("vue-router"),require("vue-i18n"),require("vuedraggable"),require("md5"),require("axios"),require("jsqr")):typeof define=="function"&&define.amd?define(["exports","vue","naive-ui","vue-router","vue-i18n","vuedraggable","md5","axios","jsqr"],p):($=typeof globalThis<"u"?globalThis:$||self,p($.OneCore={},$.Vue,$["naive-ui"],$["vue-router"],$["vue-i18n"],$.vuedraggable,$.md5,$.axios,$.jsQR))})(this,function($,p,O,xt,Ht,Kp,Ho,Hu,DC){"use strict";var OW=Object.defineProperty;var RW=($,p,O)=>p in $?OW($,p,{enumerable:!0,configurable:!0,writable:!0,value:O}):$[p]=O;var Gu=($,p,O)=>(RW($,typeof p!="symbol"?p+"":p,O),O);const Jp=p.defineComponent({name:"OcActionButton",props:{data:{required:!0,type:Array,default:()=>[]}},setup(e){return()=>Gr(e.data)}}),Z=(e,t)=>{const r=e.__vccOpts||e;for(const[n,a]of t)r[n]=a;return r},AC={},kC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},MC=[p.createElementVNode("g",{fill:"none"},[p.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)];function EC(e,t){return p.openBlock(),p.createElementBlock("svg",kC,MC)}const Wo=Z(AC,[["render",EC]]),PC={},IC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},LC=[p.createElementVNode("g",{fill:"none"},[p.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)];function OC(e,t){return p.openBlock(),p.createElementBlock("svg",IC,LC)}const Wu=Z(PC,[["render",OC]]),RC={},BC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},VC=[p.createElementVNode("g",{fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},[p.createElementVNode("path",{d:"M8 6h12"}),p.createElementVNode("path",{d:"M6 12h12"}),p.createElementVNode("path",{d:"M4 18h12"})],-1)];function $C(e,t){return p.openBlock(),p.createElementBlock("svg",BC,VC)}const Uu=Z(RC,[["render",$C]]),FC={},zC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},GC=[p.createElementVNode("g",{fill:"none"},[p.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)];function HC(e,t){return p.openBlock(),p.createElementBlock("svg",zC,GC)}const Yu=Z(FC,[["render",HC]]),WC={},UC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},YC=[p.createElementVNode("g",{fill:"none"},[p.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)];function qC(e,t){return p.openBlock(),p.createElementBlock("svg",UC,YC)}const qu=Z(WC,[["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=[p.createElementVNode("g",{fill:"none"},[p.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)];function KC(e,t){return p.openBlock(),p.createElementBlock("svg",XC,ZC)}const Uo=Z(jC,[["render",KC]]),JC={},QC={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},e2=[p.createElementVNode("g",{fill:"none"},[p.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)];function t2(e,t){return p.openBlock(),p.createElementBlock("svg",QC,e2)}const Yo=Z(JC,[["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=[p.createElementVNode("g",{fill:"none"},[p.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)];function i2(e,t){return p.openBlock(),p.createElementBlock("svg",n2,a2)}const ju=Z(r2,[["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=[p.createElementVNode("g",{fill:"none"},[p.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)];function u2(e,t){return p.openBlock(),p.createElementBlock("svg",s2,l2)}const qo=Z(o2,[["render",u2]]),c2={},f2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},h2=[p.createElementVNode("g",{fill:"none"},[p.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)];function d2(e,t){return p.openBlock(),p.createElementBlock("svg",f2,h2)}const fa=Z(c2,[["render",d2]]),p2={},v2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},g2=[p.createElementVNode("g",{fill:"none"},[p.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)];function m2(e,t){return p.openBlock(),p.createElementBlock("svg",v2,g2)}const yi=Z(p2,[["render",m2]]),y2={},_2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},w2=[p.createElementVNode("g",{fill:"none"},[p.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)];function b2(e,t){return p.openBlock(),p.createElementBlock("svg",_2,w2)}const jo=Z(y2,[["render",b2]]),S2={},C2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},T2=[p.createElementVNode("g",{fill:"none"},[p.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)];function N2(e,t){return p.openBlock(),p.createElementBlock("svg",C2,T2)}const Qp=Z(S2,[["render",N2]]),x2={},D2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},A2=[p.createElementVNode("g",{fill:"none"},[p.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)];function k2(e,t){return p.openBlock(),p.createElementBlock("svg",D2,A2)}const Xu=Z(x2,[["render",k2]]),M2={},E2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},P2=[p.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)];function I2(e,t){return p.openBlock(),p.createElementBlock("svg",E2,P2)}const Xo=Z(M2,[["render",I2]]),L2={},O2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},R2=[p.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),p.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)];function B2(e,t){return p.openBlock(),p.createElementBlock("svg",O2,R2)}const Zu=Z(L2,[["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=[p.createElementVNode("g",{fill:"none"},[p.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)];function z2(e,t){return p.openBlock(),p.createElementBlock("svg",$2,F2)}const Ku=Z(V2,[["render",z2]]),G2={},H2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},W2=[p.createElementVNode("g",{fill:"none"},[p.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)];function U2(e,t){return p.openBlock(),p.createElementBlock("svg",H2,W2)}const $r=Z(G2,[["render",U2]]),Y2={},q2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},j2=[p.createElementVNode("g",{fill:"none"},[p.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)];function X2(e,t){return p.openBlock(),p.createElementBlock("svg",q2,j2)}const _i=Z(Y2,[["render",X2]]),Z2={},K2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},J2=[p.createElementVNode("g",{fill:"none"},[p.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)];function Q2(e,t){return p.openBlock(),p.createElementBlock("svg",K2,J2)}const Zo=Z(Z2,[["render",Q2]]),eT={},tT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},rT=[p.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 160h352"},null,-1),p.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 256h352"},null,-1),p.createElementVNode("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-miterlimit":"10","stroke-width":"32",d:"M80 352h352"},null,-1)];function nT(e,t){return p.openBlock(),p.createElementBlock("svg",tT,rT)}const Ko=Z(eT,[["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=[p.createElementVNode("g",{fill:"none"},[p.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)];function sT(e,t){return p.openBlock(),p.createElementBlock("svg",iT,oT)}const Ju=Z(aT,[["render",sT]]),lT={},uT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},cT=[p.createElementVNode("g",{fill:"none"},[p.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)];function fT(e,t){return p.openBlock(),p.createElementBlock("svg",uT,cT)}const Qu=Z(lT,[["render",fT]]),hT={},dT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},pT=[p.createElementVNode("g",{fill:"none"},[p.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)];function vT(e,t){return p.openBlock(),p.createElementBlock("svg",dT,pT)}const Jo=Z(hT,[["render",vT]]),gT={},mT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},yT=[p.createElementVNode("g",{fill:"none"},[p.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)];function _T(e,t){return p.openBlock(),p.createElementBlock("svg",mT,yT)}const ec=Z(gT,[["render",_T]]),wT={},bT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},ST=[p.createElementVNode("g",{fill:"none"},[p.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)];function CT(e,t){return p.openBlock(),p.createElementBlock("svg",bT,ST)}const tc=Z(wT,[["render",CT]]),TT={},NT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},xT=[p.createElementVNode("g",{fill:"none"},[p.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)];function DT(e,t){return p.openBlock(),p.createElementBlock("svg",NT,xT)}const rc=Z(TT,[["render",DT]]),nc=window.localStorage;function ac(e,t){nc.setItem(e,JSON.stringify(t))}function ev(e){const t=nc.getItem(e);if(t)return JSON.parse(t)}function AT(e){nc.removeItem(e)}function tv(){return Date.parse(String(new Date))}const kT="local-";class MT{constructor(t=""){Gu(this,"namespace");Gu(this,"mapKey");Gu(this,"map");this.namespace=t,this.mapKey=kT+this.namespace,this.map=ev(this.mapKey)||{}}set(t,r,n=0){const a=this.getReallyKey(t),i={expires:n,time:tv()};ac(a,r),this.map[t]=i,ac(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=ev(n);if(a.expires>0){if(tv()-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],ac(this.mapKey,this.map),AT(r)}deleteAll(){for(const t in this.map)this.delete(t)}}const ic=new MT("partex"),ha=(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 dt(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}ic.set(e,t,r)}function nt(e,t){return ic.get(e,t)}const da=e=>{ic.delete(e)},Qo=(e=0)=>{const t=document.documentElement;t&&(t.scrollTop=e,setTimeout(()=>{t.scrollTop=e},100))},rv=()=>{const e=document.querySelectorAll(".partex-loading");e&&e.length>0&&e.forEach(t=>{const r=t.parentNode;r==null||r.removeChild(t)})};function wi(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:()=>p.h("div",{},{default:()=>K.lang==="zh-CN"?`共${e.total}条`:`${e.total} items`})},records:r}}function bi(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 _r=(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},Fr=e=>{try{return window.btoa(encodeURIComponent(JSON.stringify(e)))}catch{return""}},Si=e=>{try{return JSON.parse(decodeURIComponent(window.atob(e)))}catch{return""}},ET=(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 PT(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 IT(e,t=0){const r=["","k","m","b","t"],n=Math.floor(Math.log10(Math.abs(e))/3),a=Math.max(0,Math.min(n,r.length-1)),i=r[a];return i?(e/Math.pow(10,a*3)).toFixed(t)+i:(e/Math.pow(10,a*3)).toFixed(0)}const LT={Platform:{components:"组件库",iot:"智能效率监测平台",prt:"智能效率监测平台",tdm:"智能刀具管理平台",qms:"智能质量检测平台",twin:"智能数字大屏平台",maintain:"智能设备维保平台",order:"智能工单管理平台"},Notice:{success:"操作成功",error:"操作失败,请稍后重试"},Common:{validDays:"报表文件具有七天有效期",add:"新增",edit:"编辑",apply:"保存",cancel:"取消",search:"查询",refresh:"刷新",filter:"筛选",reset:"重置",more:"更多",export:"导出",success:"成功",failed:"失败",processing:"处理中",action:"操作",back:"返回",title:"零捷互联智能云平台",message:{title:"消息列表",title2:"消息",unRead:"未读",all:"全部",read:"已读",readAll:"一键已读"},login:{mobile:"手机号",mobilePlaceholder:"请输入手机号码",mobileMessage:"请输入正确的手机号码",password:"密码",passwordPlaceholder:"请输入密码",passwordMessage:"请输入密码",userName:"用户名",userNamePlaceholder:"请输入用户名",userNameMessage:"请输入正确的用户名",in:"登录"},my:{title:"我的信息",tenantCode:"租户代码",tenantName:"租户名称",name:"名称",email:"邮箱",emailMessage:"邮箱格式不正确",realName:"真实姓名",phone:"手机",phoneMessage:"手机号码格式不正确",submit:"更新",password:"修改密码",oldPassword:"旧密码",newPassword:"新密码",checkPassword:"确认新密码",oldPasswordMessage:"请填写旧密码",newPasswordMessage:"请填写新密码",checkPasswordMessage:"请填写确认新密码"},dropdownMenu:{software:"零捷软件",android:"安卓APP",ios:"iOS APP",chrome:"Chrome浏览器",edge:"Edge浏览器",dashboard_IoT:"大屏机加工版本",dashboard_Prt:"大屏印刷版本",report:"个性化报表",info:"我的信息",language:"语言",theme:"主题",light:"亮",dark:"暗",logout:"退出"},importer:{title:"导入",file:"导入文件",download:"下载模版",btnDownload:"下载",fileName:"文件名称",status:"状态",createTime:"创建时间",retry:"重试"},scan:{label:"扫一扫"}}},OT={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"}}},zr=Ht.createI18n({legacy:!1,locale:"zh-CN",messages:{"en-US":{...OT},"zh-CN":{...LT},"fr-FR":{}}}),wr=xt.createRouter({history:xt.createWebHistory(),routes:[],scrollBehavior:()=>({left:0,top:0})}),oc=document.querySelector("html");wr.beforeEach(()=>{oc==null||oc.removeAttribute("style")});const RT=Object.prototype.hasOwnProperty;function nv(e,t){const r=[];for(const n in e){if(!RT.call(e,n))continue;const a=e[n],i=encodeURIComponent(n);let o;typeof a=="object"?o=nv(a,t?t+"["+i+"]":i):o=(t?t+"["+i+"]":i)+"="+encodeURIComponent(a),r.push(o)}return r.join("&")}const{notification:sc}=O.createDiscreteApi(["notification"],{configProviderProps:{themeOverrides:{common:{borderRadius:"16px",borderRadiusSmall:"8px",primaryColor:"#8e54c8",primaryColorHover:"#9b66d0",primaryColorPressed:"#8e54c8",primaryColorSuppl:"#8e54c8",infoColor:"#2080f0",infoColorHover:"#57a4fd",infoColorPressed:"#2080f0",infoColorSuppl:"#2080f0",successColor:"#5dae57",successColorHover:"#70ce69",successColorPressed:"#5dae57",successColorSuppl:"#5dae57",warningColor:"#f0973a",warningColorHover:"#ffb05d",warningColorPressed:"#f0973a",warningColorSuppl:"#f0973a",errorColor:"#e65444",errorColorHover:"#fc6c5d",errorColorPressed:"#e65444",errorColorSuppl:"#e65444",cardColor:"#fff"},Button:{textColor:"rgb(var(--font))"},Notification:{borderRadius:"16px"}}},notificationProviderProps:{placement:"top"}}),pa=Hu.create({timeout:3e5,responseType:"json",headers:{platformType:"T1"}}),BT=String(0-new Date().getTimezoneOffset()/60);let lc=Hu.CancelToken.source();pa.interceptors.request.use(e=>{var r;e.cancelToken=lc.token,e.headers.TimezoneOffset=BT,e.headers.Language=K.lang;const t=nt("token",!1);if(e.headers&&t&&(e.headers["X-Auth-Token"]=t),((r=e.method)==null?void 0:r.toLocaleUpperCase())==="GET"){const n=nv(e.data);n&&(e.url=`${e.url}?${n}`)}return e},e=>Promise.reject(e)),pa.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="网络错误,请稍后重试"),sc.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&&(rv(),wr.replace("/custom/500")),e&&e.response)switch(e.response.status){case 401:case 403:da("token"),window.location.href="/login";break;default:return sc.destroyAll(),sc.error({content:"系统正在维护中,请稍后再试!",duration:3e3}),Promise.reject()}else return Promise.reject()});const av=()=>{lc.cancel(),lc=Hu.CancelToken.source()},uc="/apiserver/",iv=(e,t,r="json")=>pa({url:`${uc}${e}`,method:"GET",data:t,responseType:r}),at=(e,t={},r="json",n=3e5)=>pa({url:`${uc}${e}`,method:"POST",data:t,responseType:r,timeout:n}),ov=e=>pa(e),cc=(e,t)=>pa({headers:{"Content-Type":"multipart/form-data"},url:`${uc}${e}`,method:"POST",data:t});function sv(){const e=nt("platformListOwned",!1);return e&&typeof e!="string"?(lv(e),Promise.resolve(e.platformList)):new Promise((t,r)=>{ov({url:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/platform2.json",method:"GET",responseType:"text"}).then(n=>{const a=JSON.parse(n),i=a.platform,o={platformList:i,owned:a.owned};lv(o),dt("platformListOwned",o,"1 Day"),t(i)}).catch(()=>{r(!1)})})}const K=p.reactive({needUpdate:!1,download:!1,theme:!1,isPad:!1,isMobile:!1,language:!1,lang:"zh-CN",platformName:()=>zr.global.t("Platform.iot"),platformType:"T1",platformUrl:"/iot/home/all",platformList:{},platformMenu:[],owned:{}});function lv(e){K.platformList=e.platformList,K.owned=e.owned}function VT(e){K.platformMenu=e}function fc(e){K.download=e}function $T(e){K.language=e}function va(e){let t;e?t=e:K.lang==="zh-CN"?t="en-US":t="zh-CN",dt("lang",t,0),K.lang=t;const r=document.body;r.dataset.lang=t,zr.global.locale.value=t}async function FT(e){if(typeof e=="object")K.platformName=e.platformName,K.platformType=e.platformType,K.platformUrl=e.platformUrl;else{const t=await sv();if(t){const r=t[e]||t.iot;K.platformName=()=>zr.global.t(r.platformName),K.platformType=r.platformType,K.platformUrl=r.platformUrl,document.title=K.platformName()}}}function Ci(e){K.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 zT(e){K.needUpdate=e}const uv=()=>{K.isMobile=window.screen.availWidth<769,K.isPad=window.screen.availWidth<1024};window.addEventListener("resize",uv),uv();const es=(e,t)=>p.h(O.NTooltip,{style:{"max-width":"300px"}},{trigger:()=>e,default:()=>typeof t=="function"?t():t}),br=(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=()=>p.h(O.NIcon,{},{default:()=>p.h(r,{},{default:()=>null})})),p.h(O.NButton,i,o)},ts=(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 p.h(O.NPopconfirm,a,{default:()=>p.h("span",{style:{"max-width":"300px"}},{default:()=>typeof t.confirmText=="function"?t.confirmText():t.confirmText}),trigger:()=>e})},GT=(e,t,r)=>{let n;if(e.type==="detail"){const a=br(e,e.color?e.color:"primary",e.icon?e.icon:Xo,t,r);e.buttonText?n=a:n=es(a,K.lang==="zh-CN"?"详情":"Detail")}if(e.type==="edit"){const a=br(e,e.color?e.color:"success",e.icon?e.icon:Ku,t,r);e.buttonText?n=a:n=es(a,K.lang==="zh-CN"?"编辑":"Edit")}if(e.type==="delete"){let a=br({...e,onClick:""},e.color?e.color:"error",e.icon?e.icon:Xu,t,r);e.buttonText?a=a:a=es(a,K.lang==="zh-CN"?"删除":"Delete"),n=ts(a,{...e,confirmText:K.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=es(a,e.tooltipText)}return e.confirmText&&(n=ts(n,e,t,r)),n},HT=(e,t,r)=>{const n=[];return e.forEach(a=>{let i;a.type==="detail"&&(i=br({...a,buttonText:K.lang==="zh-CN"?"详情":"Detail"},"primary",void 0,t,r)),a.type==="edit"&&(i=br({...a,buttonText:K.lang==="zh-CN"?"编辑":"Edit"},"success",void 0,t,r)),a.type==="delete"&&(i=ts(br({...a,onClick:"",buttonText:K.lang==="zh-CN"?"删除":"Delete"},"error",void 0,t,r),{...a,confirmText:K.lang==="zh-CN"?"删除后无法恢复,是否确认删除?":"Are you sure you want to delete ?"},t,r)),a.type==="custom"&&(i=br(a,a.color,void 0,t,r)),a.confirmText&&(i=ts(i,a,t,r)),n.push(i)}),n},Gr=(e,t,r)=>{const n=[];return e.forEach(a=>{if(a.type==="group"){if(a.children.length>0){const i=HT(a.children,t,r);n.push(p.h(O.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:()=>p.h(O.NFlex,{vertical:!0},{default:()=>i})}))}}else{const i=GT(a,t,r);n.push(i)}}),p.h("div",{class:"action-flex"},{default:()=>n})},WT=p.defineComponent({name:"OcAuth",setup(){const e=xt.useRoute(),t=xt.useRouter(),{auth:r}=e.query;r?dt("token",r,0):da("token"),t.replace(K.platformUrl)}}),UT={class:"com-card flex-center",style:{flex:"1"}},YT=[p.createElementVNode("p",{class:"oc-miss-title"},"登录中...",-1)];function qT(e,t,r,n,a,i){return p.openBlock(),p.createElementBlock("div",UT,YT)}const cv=Z(WT,[["render",qT]]),jT=p.defineComponent({name:"OcBack",components:{IconChevronLeft:Yu,NButton:O.NButton,NIcon:O.NIcon},props:{to:{type:String,default:""}},setup(e){const t=xt.useRouter();return{back:()=>{e.to?t.push(e.to):t.back()}}}});function XT(e,t,r,n,a,i){const o=p.resolveComponent("IconChevronLeft"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton");return p.openBlock(),p.createBlock(l,{text:"",onClick:e.back},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(o)]),_:1})]),default:p.withCtx(()=>[p.createElementVNode("span",null,p.toDisplayString(e.$t("Common.back")),1)]),_:1},8,["onClick"])}const fv=Z(jT,[["render",XT]]),ZT=p.defineComponent({name:"OcCircle",components:{NPopover:O.NPopover},props:{circle:{required:!0,type:Number,default:0},circleTxt:{type:String,default:""},pointA:{type:Number,default:void 0},pointB:{type:Number,default:void 0},pointSize:{type:Number,default:3},styles:{type:Object,default:()=>({backgroundBg:"rgba(255, 255, 255, 0.1)",processBg:"#fff",pointABg:"#f2a651",pointBBg:"#67c67e"})}},setup(e){const t=p.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}}}}),KT={viewBox:"40 20 120 120"},JT=p.createElementVNode("defs",null,[p.createElementVNode("filter",{id:"blurs"},[p.createElementVNode("feOffset",{result:"offOut",in:"SourceGraphic",dx:"0",dy:"0"}),p.createElementVNode("feGaussianBlur",{result:"blurOut",in:"offOut",stdDeviation:"0.8"}),p.createElementVNode("feBlend",{in:"SourceGraphic",in2:"blurOut",mode:"normal"})])],-1),QT=["stroke"],eN=["stroke"],tN=["r","transform","fill"],rN=["r","transform","fill"],nN={dx:"100",dy:"90",fill:"#333","text-anchor":"middle",style:{"font-size":"28px"}};function aN(e,t,r,n,a,i){const o=p.resolveComponent("NPopover");return p.openBlock(),p.createElementBlock(p.Fragment,null,[(p.openBlock(),p.createElementBlock("svg",KT,[JT,p.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,QT),p.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:p.normalizeStyle(e.calculateCircle()),stroke:e.styles.processBg},null,12,eN),e.pointA?(p.openBlock(),p.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,tN)):p.createCommentVNode("",!0),e.pointB?(p.openBlock(),p.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,rN)):p.createCommentVNode("",!0),p.createElementVNode("text",nN,p.toDisplayString(e.circleTxt?e.circleTxt:`${e.circle}%`),1)])),p.createVNode(o,{show:e.popover.show,x:e.popover.x,y:e.popover.y,"show-arrow":!1,trigger:"manual"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.popover.text),1)]),_:1},8,["show","x","y"])],64)}const hv=Z(ZT,[["render",aN]]);/*! *****************************************************************************
|
|
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 @@
|
|
|
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 hc=function(e,t){return hc=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])},hc(e,t)};function H(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");hc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var oT=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),iT=function(){function e(){this.browser=new oT,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 iT;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):sT(navigator.userAgent,ae);function sT(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 dc=12,lT="sans-serif",_n=dc+"px "+lT,uT=20,cT=100,fT="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function hT(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)-uT)/cT;t[n]=a}return t}var dT=hT(fT),ga={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var a=ga.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==n&&(t=e.font=n||_n),e.measureText(r);r=r||"",n=n||_n;var o=/(\d+)px/.exec(n),i=o&&+o[1]||dc,s=0;if(n.indexOf("mono")>=0)s=i*r.length;else for(var l=0;l<r.length;l++){var u=dT[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}},hv=Sr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),dv=Sr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),ma=Object.prototype.toString,rs=Array.prototype,pT=rs.forEach,vT=rs.filter,pc=rs.slice,gT=rs.map,pv=(function(){}).constructor,ns=pv?pv.prototype:null,vc="__proto__",mT=2311;function vv(){return mT++}function Hr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function fe(e){if(e==null||typeof e!="object")return e;var t=e,r=ma.call(e);if(r==="[object Array]"){if(!To(e)){t=[];for(var n=0,a=e.length;n<a;n++)t[n]=fe(e[n])}}else if(dv[r]){if(!To(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(!hv[r]&&!To(e)&&!ya(e)){t={};for(var i in e)e.hasOwnProperty(i)&&i!==vc&&(t[i]=fe(e[i]))}return t}function ve(e,t,r){if(!J(t)||!J(e))return r?fe(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==vc){var a=e[n],o=t[n];J(o)&&J(a)&&!U(o)&&!U(a)&&!ya(o)&&!ya(a)&&!gv(o)&&!gv(a)&&!To(o)&&!To(a)?ve(a,o,r):(r||!(n in e))&&(e[n]=fe(t[n]))}return e}function G(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==vc&&(e[r]=t[r]);return e}function pe(e,t,r){for(var n=ye(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 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 yT(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 Wt(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 pe(e,t,r)}function at(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function k(e,t,r){if(e&&t)if(e.forEach&&e.forEach===pT)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 j(e,t,r){if(!e)return[];if(!t)return gc(e);if(e.map&&e.map===gT)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 Sr(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 Ye(e,t,r){if(!e)return[];if(!t)return gc(e);if(e.filter&&e.filter===vT)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 ye(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 _T(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(pc.call(arguments)))}}var te=ns&&oe(ns.bind)?ns.call.bind(ns.bind):_T;function Se(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(pc.call(arguments)))}}function U(e){return Array.isArray?Array.isArray(e):ma.call(e)==="[object Array]"}function oe(e){return typeof e=="function"}function X(e){return typeof e=="string"}function as(e){return ma.call(e)==="[object String]"}function xe(e){return typeof e=="number"}function J(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function gv(e){return!!hv[ma.call(e)]}function ot(e){return!!dv[ma.call(e)]}function ya(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function os(e){return e.colorStops!=null}function wT(e){return e.image!=null}function bT(e){return ma.call(e)==="[object RegExp]"}function _a(e){return e!==e}function Wr(){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 Ur(e,t,r){return e??t??r}function gc(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return pc.apply(e,t)}function mv(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 nr(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var yv="__ec_primitive__";function mc(e){e[yv]=!0}function To(e){return e[yv]}var ST=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 ye(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 CT(){return _v?new Map:new ST}var xT=function(){function e(t){var r=U(t);this.data=CT();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 _v?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function se(e){return new xT(e)}function TT(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 is(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&G(r,t),r}function wv(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Y(e,t){return e.hasOwnProperty(t)}function it(){}var NT=180/Math.PI;function wa(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function DT(e){return[e[0],e[1]]}function bv(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function Sv(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function AT(e){return Math.sqrt(MT(e))}function MT(e){return e[0]*e[0]+e[1]*e[1]}function yc(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function _c(e,t){var r=AT(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function wc(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var bc=wc;function kT(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var ba=kT;function Sc(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 Nt(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 Sa(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Ca(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var xa=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),ET=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 xa(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 xa(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 xa(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new xa(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new xa(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new xa(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),Ut=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,c=o[t][u];return c&&c.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 c=a[u];if(!(o&&o.filter&&c.query!=null&&!o.filter(t,c.query)))switch(i){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,i-1));break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e}(),PT=Math.log(2);function Cc(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)/PT);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 v=1<<d;v&a||(f+=(h%2?-1:1)*e[r][d]*Cc(e,t-1,c,u,a|v,o),h++)}return o[i]=f,f}function Cv(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=Cc(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)*Cc(r,7,i===0?1:0,1<<i,1<<s,n)/a*t[i];return function(l,u,c){var f=u*o[6]+c*o[7]+1;l[0]=(u*o[0]+c*o[1]+o[2])/f,l[1]=(u*o[3]+c*o[4]+o[5])/f}}}var xv="___zrEVENTSAVED",xc=[];function IT(e,t,r,n,a){return Tc(xc,t,n,a,!0)&&Tc(e,r,xc[0],xc[1])}function Tc(e,t,r,n,a){if(t.getBoundingClientRect&&ae.domSupported&&!Tv(t)){var o=t[xv]||(t[xv]={}),i=LT(t,o),s=OT(i,o,a);if(s)return s(e,r,n),!0}return!1}function LT(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 OT(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 c=e[u].getBoundingClientRect(),f=2*u,d=c.left,h=c.top;i.push(d,h),l=l&&o&&d===o[f]&&h===o[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&a?a:(t.srcCoords=i,t[n]=r?Cv(s,i):Cv(i,s))}function Tv(e){return e.nodeName.toUpperCase()==="CANVAS"}var RT=/([&<>"'])/g,BT={"&":"&","<":"<",">":">",'"':""","'":"'"};function Dt(e){return e==null?"":(e+"").replace(RT,function(t,r){return BT[r]})}var VT=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Nc=[],$T=ae.browser.firefox&&+ae.browser.version.split(".")[0]<39;function Dc(e,t,r,n){return r=r||{},n?Nv(e,t,r):$T&&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):Nv(e,t,r),r}function Nv(e,t,r){if(ae.domSupported&&e.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(Tv(e)){var o=e.getBoundingClientRect();r.zrX=n-o.left,r.zrY=a-o.top;return}else if(Tc(Nc,e,n,a)){r.zrX=Nc[0],r.zrY=Nc[1];return}}r.zrX=r.zrY=0}function Ac(e){return e||window.event}function At(e,t,r){if(t=Ac(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&&Dc(e,i,t,r)}else{Dc(e,t,t,r);var o=FT(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&VT.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function FT(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 zT(e,t,r,n){e.addEventListener(t,r,n)}function GT(e,t,r,n){e.removeEventListener(t,r,n)}var Ta=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function Dv(e){return e.which===2||e.which===3}var HT=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=Dc(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 Mc)if(Mc.hasOwnProperty(r)){var n=Mc[r](this._track,t);if(n)return n}},e}();function Av(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function WT(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Mc={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=Av(n)/Av(a);!isFinite(o)&&(o=1),t.pinchScale=o;var i=WT(n);return t.pinchX=i[0],t.pinchY=i[1],{type:"pinch",target:e[0].target,event:t}}}}};function Na(){return[1,0,0,1,0,0]}function kc(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function UT(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 Da(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 Ec(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 Pc(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],c=Math.sin(r),f=Math.cos(r);return e[0]=a*f+s*c,e[1]=-a*c+s*f,e[2]=o*f+l*c,e[3]=-o*c+f*l,e[4]=f*(i-n[0])+c*(u-n[1])+n[0],e[5]=f*(u-n[1])-c*(i-n[0])+n[1],e}function YT(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 Ic(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 qT=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 le=qT;var ss=Math.min,ls=Math.max,wn=new le,bn=new le,Sn=new le,Cn=new le,No=new le,Do=new le,jT=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=ss(t.x,this.x),n=ss(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ls(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ls(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=Na();return Ec(o,o,[-r.x,-r.y]),YT(o,o,[n,a]),Ec(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,c=t.y,f=t.y+t.height,d=!(o<l||u<a||s<c||f<i);if(r){var h=1/0,v=0,m=Math.abs(o-l),g=Math.abs(u-a),y=Math.abs(s-c),w=Math.abs(f-i),_=Math.min(m,g),S=Math.min(y,w);o<l||u<a?_>v&&(v=_,m<g?le.set(Do,-m,0):le.set(Do,g,0)):_<h&&(h=_,m<g?le.set(No,m,0):le.set(No,-g,0)),s<c||f<i?S>v&&(v=S,y<w?le.set(Do,0,-y):le.set(Do,0,w)):_<h&&(h=_,y<w?le.set(No,0,y):le.set(No,0,-w))}return r&&le.copy(r,d?No:Do),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}wn.x=Sn.x=r.x,wn.y=Cn.y=r.y,bn.x=Cn.x=r.x+r.width,bn.y=Sn.y=r.y+r.height,wn.transform(n),Cn.transform(n),bn.transform(n),Sn.transform(n),t.x=ss(wn.x,bn.x,Sn.x,Cn.x),t.y=ss(wn.y,bn.y,Sn.y,Cn.y);var l=ls(wn.x,bn.x,Sn.x,Cn.x),u=ls(wn.y,bn.y,Sn.y,Cn.y);t.width=l-t.x,t.height=u-t.y},e}();const _e=jT;var Mv="silent";function XT(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:ZT}}function ZT(){Ta(this.event)}var KT=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ut),Ao=function(){function e(t,r){this.x=t,this.y=r}return e}(),JT=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Lc=new _e(0,0,0,0),kv=function(e){H(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 KT,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new ET(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(k(JT,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=Pv(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,c=this.proxy;c.setCursor&&c.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=XT(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(Ev(o,i,r,n,a),this._pointerSize&&!i.target){for(var s=[],l=this._pointerSize,u=l/2,c=new _e(r-u,n-u,l,l),f=o.length-1;f>=0;f--){var d=o[f];d!==a&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(Lc.copy(d.getBoundingRect()),d.transform&&Lc.applyTransform(d.transform),Lc.intersect(c)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,m=Math.PI*2,g=0;g<u;g+=h)for(var y=0;y<m;y+=v){var w=r+g*Math.cos(y),_=n+g*Math.sin(y);if(Ev(s,i,w,_,a),i.target)return i}}return i},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new HT);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}(Ut);k(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){kv.prototype[e]=function(t){var r=t.zrX,n=t.zrY,a=Pv(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||bc(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,e,t)}});function QT(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?Mv:!0}return!1}function Ev(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=QT(i,r,n))&&(!t.topTarget&&(t.topTarget=i),s!==Mv)){t.target=i;break}}}function Pv(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const eN=kv;var Iv=32,Mo=7;function tN(e){for(var t=0;e>=Iv;)t|=e&1,e>>=1;return e+t}function Lv(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++;rN(e,t,a)}else for(;a<r&&n(e[a],e[a-1])>=0;)a++;return a-t}function rN(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function Ov(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 Oc(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 c=i+(l-i>>>1);o(e,t[r+c])>0?i=c+1:l=c}return l}function Rc(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 c=i+(l-i>>>1);o(e,t[r+c])<0?l=c:i=c+1}return l}function nN(e,t){var r=Mo,n,a,o=0,i=[];n=[],a=[];function s(h,v){n[o]=h,a[o]=v,o+=1}function l(){for(;o>1;){var h=o-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(;o>1;){var h=o-2;h>0&&a[h-1]<a[h+1]&&h--,c(h)}}function c(h){var v=n[h],m=a[h],g=n[h+1],y=a[h+1];a[h]=m+y,h===o-3&&(n[h+1]=n[h+2],a[h+1]=a[h+2]),o--;var w=Rc(e[g],e,v,m,0,t);v+=w,m-=w,m!==0&&(y=Oc(e[v+m-1],e,g,y,y-1,t),y!==0&&(m<=y?f(v,m,g,y):d(v,m,g,y)))}function f(h,v,m,g){var y=0;for(y=0;y<v;y++)i[y]=e[h+y];var w=0,_=m,S=h;if(e[S++]=e[_++],--g===0){for(y=0;y<v;y++)e[S+y]=i[w+y];return}if(v===1){for(y=0;y<g;y++)e[S+y]=e[_+y];e[S+g]=i[w];return}for(var x=r,C,N,b;;){C=0,N=0,b=!1;do if(t(e[_],i[w])<0){if(e[S++]=e[_++],N++,C=0,--g===0){b=!0;break}}else if(e[S++]=i[w++],C++,N=0,--v===1){b=!0;break}while((C|N)<x);if(b)break;do{if(C=Rc(e[_],i,w,v,0,t),C!==0){for(y=0;y<C;y++)e[S+y]=i[w+y];if(S+=C,w+=C,v-=C,v<=1){b=!0;break}}if(e[S++]=e[_++],--g===0){b=!0;break}if(N=Oc(i[w],e,_,g,0,t),N!==0){for(y=0;y<N;y++)e[S+y]=e[_+y];if(S+=N,_+=N,g-=N,g===0){b=!0;break}}if(e[S++]=i[w++],--v===1){b=!0;break}x--}while(C>=Mo||N>=Mo);if(b)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),v===1){for(y=0;y<g;y++)e[S+y]=e[_+y];e[S+g]=i[w]}else{if(v===0)throw new Error;for(y=0;y<v;y++)e[S+y]=i[w+y]}}function d(h,v,m,g){var y=0;for(y=0;y<g;y++)i[y]=e[m+y];var w=h+v-1,_=g-1,S=m+g-1,x=0,C=0;if(e[S--]=e[w--],--v===0){for(x=S-(g-1),y=0;y<g;y++)e[x+y]=i[y];return}if(g===1){for(S-=v,w-=v,C=S+1,x=w+1,y=v-1;y>=0;y--)e[C+y]=e[x+y];e[S]=i[_];return}for(var N=r;;){var b=0,T=0,M=!1;do if(t(i[_],e[w])<0){if(e[S--]=e[w--],b++,T=0,--v===0){M=!0;break}}else if(e[S--]=i[_--],T++,b=0,--g===1){M=!0;break}while((b|T)<N);if(M)break;do{if(b=v-Rc(i[_],e,h,v,v-1,t),b!==0){for(S-=b,w-=b,v-=b,C=S+1,x=w+1,y=b-1;y>=0;y--)e[C+y]=e[x+y];if(v===0){M=!0;break}}if(e[S--]=i[_--],--g===1){M=!0;break}if(T=g-Oc(e[w],i,0,g,g-1,t),T!==0){for(S-=T,_-=T,g-=T,C=S+1,x=_+1,y=0;y<T;y++)e[C+y]=i[x+y];if(g<=1){M=!0;break}}if(e[S--]=e[w--],--v===0){M=!0;break}N--}while(b>=Mo||T>=Mo);if(M)break;N<0&&(N=0),N+=2}if(r=N,r<1&&(r=1),g===1){for(S-=v,w-=v,C=S+1,x=w+1,y=v-1;y>=0;y--)e[C+y]=e[x+y];e[S]=i[_]}else{if(g===0)throw new Error;for(x=S-(g-1),y=0;y<g;y++)e[x+y]=i[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function us(e,t,r,n){r||(r=0),n||(n=e.length);var a=n-r;if(!(a<2)){var o=0;if(a<Iv){o=Lv(e,r,n,t),Ov(e,r,n,r+o,t);return}var i=nN(e,t),s=tN(a);do{if(o=Lv(e,r,n,t),o<s){var l=a;l>s&&(l=s),Ov(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,ko=2,Aa=4,Rv=!1;function Bc(){Rv||(Rv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Bv(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var aN=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Bv}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,us(n,Bv)},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 c=t;r&&r.length?c.__clipPaths=r:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(Bc(),c.z=0),isNaN(c.z2)&&(Bc(),c.z2=0),isNaN(c.zlevel)&&(Bc(),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}(),Vv;Vv=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 Vc=Vv;var Eo={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-Eo.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?Eo.bounceIn(e*2)*.5:Eo.bounceOut(e*2-1)*.5+.5}},cs=Math.pow,Yr=Math.sqrt,fs=1e-8,$v=1e-4,Fv=Yr(3),hs=1/3,ar=wa(),Mt=wa(),Ma=wa();function qr(e){return e>-fs&&e<fs}function zv(e){return e>fs||e<-fs}function Fe(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 Gv(e,t,r,n,a){var o=1-a;return 3*(((t-e)*o+2*(r-t)*a)*o+(n-r)*a*a)}function ds(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,c=s*s-3*i*l,f=s*l-9*i*u,d=l*l-3*s*u,h=0;if(qr(c)&&qr(f))if(qr(s))o[0]=0;else{var v=-l/s;v>=0&&v<=1&&(o[h++]=v)}else{var m=f*f-4*c*d;if(qr(m)){var g=f/c,v=-s/i+g,y=-g/2;v>=0&&v<=1&&(o[h++]=v),y>=0&&y<=1&&(o[h++]=y)}else if(m>0){var w=Yr(m),_=c*s+1.5*i*(-f+w),S=c*s+1.5*i*(-f-w);_<0?_=-cs(-_,hs):_=cs(_,hs),S<0?S=-cs(-S,hs):S=cs(S,hs);var v=(-s-(_+S))/(3*i);v>=0&&v<=1&&(o[h++]=v)}else{var x=(2*c*s-3*i*f)/(2*Yr(c*c*c)),C=Math.acos(x)/3,N=Yr(c),b=Math.cos(C),v=(-s-2*N*b)/(3*i),y=(-s+N*(b+Fv*Math.sin(C)))/(3*i),T=(-s+N*(b-Fv*Math.sin(C)))/(3*i);v>=0&&v<=1&&(o[h++]=v),y>=0&&y<=1&&(o[h++]=y),T>=0&&T<=1&&(o[h++]=T)}}return h}function Hv(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(zv(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(qr(c))a[0]=-o/(2*i);else if(c>0){var f=Yr(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 ps(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,c=(l-s)*a+s,f=(c-u)*a+u;o[0]=e,o[1]=i,o[2]=u,o[3]=f,o[4]=f,o[5]=c,o[6]=l,o[7]=n}function oN(e,t,r,n,a,o,i,s,l,u,c){var f,d=.005,h=1/0,v,m,g,y;ar[0]=l,ar[1]=u;for(var w=0;w<1;w+=.05)Mt[0]=Fe(e,r,a,i,w),Mt[1]=Fe(t,n,o,s,w),g=ba(ar,Mt),g<h&&(f=w,h=g);h=1/0;for(var _=0;_<32&&!(d<$v);_++)v=f-d,m=f+d,Mt[0]=Fe(e,r,a,i,v),Mt[1]=Fe(t,n,o,s,v),g=ba(Mt,ar),v>=0&&g<h?(f=v,h=g):(Ma[0]=Fe(e,r,a,i,m),Ma[1]=Fe(t,n,o,s,m),y=ba(Ma,ar),m<=1&&y<h?(f=m,h=y):d*=.5);return c&&(c[0]=Fe(e,r,a,i,f),c[1]=Fe(t,n,o,s,f)),Yr(h)}function iN(e,t,r,n,a,o,i,s,l){for(var u=e,c=t,f=0,d=1/l,h=1;h<=l;h++){var v=h*d,m=Fe(e,r,a,i,v),g=Fe(t,n,o,s,v),y=m-u,w=g-c;f+=Math.sqrt(y*y+w*w),u=m,c=g}return f}function Ze(e,t,r,n){var a=1-n;return a*(a*e+2*n*t)+n*n*r}function Wv(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function sN(e,t,r,n,a){var o=e-2*t+r,i=2*(t-e),s=e-n,l=0;if(qr(o)){if(zv(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(qr(c)){var u=-i/(2*o);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=Yr(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 Uv(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function vs(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 lN(e,t,r,n,a,o,i,s,l){var u,c=.005,f=1/0;ar[0]=i,ar[1]=s;for(var d=0;d<1;d+=.05){Mt[0]=Ze(e,r,a,d),Mt[1]=Ze(t,n,o,d);var h=ba(ar,Mt);h<f&&(u=d,f=h)}f=1/0;for(var v=0;v<32&&!(c<$v);v++){var m=u-c,g=u+c;Mt[0]=Ze(e,r,a,m),Mt[1]=Ze(t,n,o,m);var h=ba(Mt,ar);if(m>=0&&h<f)u=m,f=h;else{Ma[0]=Ze(e,r,a,g),Ma[1]=Ze(t,n,o,g);var y=ba(Ma,ar);g<=1&&y<f?(u=g,f=y):c*=.5}}return l&&(l[0]=Ze(e,r,a,u),l[1]=Ze(t,n,o,u)),Yr(f)}function uN(e,t,r,n,a,o,i){for(var s=e,l=t,u=0,c=1/i,f=1;f<=i;f++){var d=f*c,h=Ze(e,r,a,d),v=Ze(t,n,o,d),m=h-s,g=v-l;u+=Math.sqrt(m*m+g*g),s=h,l=v}return u}var cN=/cubic-bezier\(([0-9,\.e ]+)\)/;function Yv(e){var t=e&&cN.exec(e);if(t){var r=t[1].split(","),n=+nr(r[0]),a=+nr(r[1]),o=+nr(r[2]),i=+nr(r[3]);if(isNaN(n+a+o+i))return;var s=[];return function(l){return l<=0?0:l>=1?1:ds(0,n,o,1,l,s)&&Fe(0,a,i,1,s[0])}}}var fN=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||it,this.ondestroy=t.ondestroy||it,this.onrestart=t.onrestart||it,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=oe(t)?t:Eo[t]||Yv(t)},e}();const hN=fN;var qv=function(){function e(t){this.value=t}return e}(),dN=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new qv(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}(),Po=function(){function e(t){this._list=new dN,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 qv(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}(),jv={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 jr(e){return e=Math.round(e),e<0?0:e>255?255:e}function $c(e){return e<0?0:e>1?1:e}function Fc(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?jr(parseFloat(t)/100*255):jr(parseInt(t,10))}function Io(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?$c(parseFloat(t)/100):$c(parseFloat(t))}function zc(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 gs(e,t,r){return e+(t-e)*r}function kt(e,t,r,n,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=a,e}function Gc(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Xv=new Po(20),ms=null;function ka(e,t){ms&&Gc(ms,t),ms=Xv.put(e,ms||t.slice())}function Cr(e,t){if(e){t=t||[];var r=Xv.get(e);if(r)return Gc(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in jv)return Gc(t,jv[n]),ka(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)){kt(t,0,0,0,1);return}return kt(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),ka(e,t),t}else if(a===7||a===9){var o=parseInt(n.slice(1,7),16);if(!(o>=0&&o<=16777215)){kt(t,0,0,0,1);return}return kt(t,(o&16711680)>>16,(o&65280)>>8,o&255,a===9?parseInt(n.slice(7),16)/255:1),ka(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(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?kt(t,+u[0],+u[1],+u[2],1):kt(t,0,0,0,1);c=Io(u.pop());case"rgb":if(u.length>=3)return kt(t,Fc(u[0]),Fc(u[1]),Fc(u[2]),u.length===3?c:Io(u[3])),ka(e,t),t;kt(t,0,0,0,1);return;case"hsla":if(u.length!==4){kt(t,0,0,0,1);return}return u[3]=Io(u[3]),Zv(u,t),ka(e,t),t;case"hsl":if(u.length!==3){kt(t,0,0,0,1);return}return Zv(u,t),ka(e,t),t;default:return}}kt(t,0,0,0,1)}}function Zv(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Io(e[1]),a=Io(e[2]),o=a<=.5?a*(n+1):a+n-a*n,i=a*2-o;return t=t||[],kt(t,jr(zc(i,o,r+1/3)*255),jr(zc(i,o,r)*255),jr(zc(i,o,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Kv(e,t){var r=Cr(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 ys(r,r.length===4?"rgba":"rgb")}}function pN(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=Cr(t[a]),s=Cr(t[o]),l=n-a,u=ys([jr(gs(i[0],s[0],l)),jr(gs(i[1],s[1],l)),jr(gs(i[2],s[2],l)),$c(gs(i[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:o,value:n}:u}}function ys(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 _s(e,t){var r=Cr(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var Jv=new Po(100);function Qv(e){if(X(e)){var t=Jv.get(e);return t||(t=Kv(e,-.1),Jv.put(e,t)),t}else if(os(e)){var r=G({},e);return r.colorStops=j(e.colorStops,function(n){return{offset:n.offset,color:Kv(n.color,-.1)}}),r}return e}function vN(e){return e.type==="linear"}function gN(e){return e.type==="radial"}(function(){return ae.hasGlobalWindow&&oe(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"&&Hr("Base64 isn't natively supported in the current environment."),null}})();var Hc=Array.prototype.slice;function xr(e,t,r){return(t-e)*r+e}function Wc(e,t,r,n){for(var a=t.length,o=0;o<a;o++)e[o]=xr(t[o],r[o],n);return e}function mN(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]=xr(t[i][s],r[i][s],n)}return e}function ws(e,t,r,n){for(var a=t.length,o=0;o<a;o++)e[o]=t[o]+r[o]*n;return e}function eg(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 yN(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 _N(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]:Hc.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 Lo(e){if(at(e)){var t=e.length;if(at(e[0])){for(var r=[],n=0;n<t;n++)r.push(Hc.call(e[n]));return r}return Hc.call(e)}return e}function bs(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 wN(e){return at(e&&e[0])?2:1}var Ss=0,Cs=1,tg=2,Oo=3,Uc=4,Yc=5,rg=6;function ng(e){return e===Uc||e===Yc}function xs(e){return e===Cs||e===tg}var Ro=[0,0,0,0],bN=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=rg,l=r;if(at(r)){var u=wN(r);s=u,(u===1&&!xe(r[0])||u===2&&!xe(r[0][0]))&&(i=!0)}else if(xe(r)&&!_a(r))s=Ss;else if(X(r))if(!isNaN(+r))s=Ss;else{var c=Cr(r);c&&(l=c,s=Oo)}else if(os(r)){var f=G({},l);f.colorStops=j(r.colorStops,function(h){return{offset:h.offset,color:Cr(h.color)}}),vN(r)?s=Uc:gN(r)&&(s=Yc),l=f}o===0?this.valType=s:(s!==this.valType||s===rg)&&(i=!0),this.discrete=this.discrete||i;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=oe(n)?n:Eo[n]||Yv(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,o=n.length,i=n[o-1],s=this.discrete,l=xs(a),u=ng(a),c=0;c<o;c++){var f=n[c],d=f.value,h=i.value;f.percent=f.time/t,s||(l&&c!==o-1?_N(d,h,a):u&&yN(d.colorStops,h.colorStops))}if(!s&&a!==Yc&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;for(var v=n[0].value,c=0;c<o;c++)a===Ss?n[c].additiveValue=n[c].value-v:a===Oo?n[c].additiveValue=ws([],n[c].value,v,-1):xs(a)&&(n[c].additiveValue=a===Cs?ws([],n[c].value,v,-1):eg([],n[c].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===Oo,c,f=this._lastFr,d=Math.min,h,v;if(s===1)h=v=i[0];else{if(r<0)c=0;else if(r<this._lastFrP){var m=d(f+1,s-1);for(c=m;c>=0&&!(i[c].percent<=r);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(i[c].percent>r);c++);c=d(c-1,s-2)}v=i[c+1],h=i[c]}if(h&&v){this._lastFr=c,this._lastFrP=r;var g=v.percent-h.percent,y=g===0?1:d((r-h.percent)/g,1);v.easingFunc&&(y=v.easingFunc(y));var w=n?this._additiveValue:u?Ro:t[l];if((xs(o)||u)&&!w&&(w=this._additiveValue=[]),this.discrete)t[l]=y<1?h.rawValue:v.rawValue;else if(xs(o))o===Cs?Wc(w,h[a],v[a],y):mN(w,h[a],v[a],y);else if(ng(o)){var _=h[a],S=v[a],x=o===Uc;t[l]={type:x?"linear":"radial",x:xr(_.x,S.x,y),y:xr(_.y,S.y,y),colorStops:j(_.colorStops,function(N,b){var T=S.colorStops[b];return{offset:xr(N.offset,T.offset,y),color:bs(Wc([],N.color,T.color,y))}}),global:S.global},x?(t[l].x2=xr(_.x2,S.x2,y),t[l].y2=xr(_.y2,S.y2,y)):t[l].r=xr(_.r,S.r,y)}else if(u)Wc(w,h[a],v[a],y),n||(t[l]=bs(w));else{var C=xr(h[a],v[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===Ss?t[n]=t[n]+a:r===Oo?(Cr(t[n],Ro),ws(Ro,Ro,a,1),t[n]=bs(Ro)):r===Cs?ws(t[n],t[n],a,1):r===tg&&eg(t[n],t[n],a,1)},e}(),qc=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){Hr("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,ye(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 bN(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===Oo&&u&&(u=bs(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Lo(u),a),this._trackKeys.push(s)}l.addKeyframe(t,Lo(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,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 hN({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var v=r._additiveAnimators;if(v){for(var m=!1,g=0;g<v.length;g++)if(v[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 j(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]=Lo(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||ye(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 Ea(){return new Date().getTime()}var SN=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Ea()-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&&(Vc(n),!r._paused&&r.update())}Vc(n)},t.prototype.start=function(){this._running||(this._time=Ea(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Ea(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Ea()-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 qc(r,n.loop);return this.addAnimator(a),a},t}(Ut),CN=300,jc=ae.domSupported,Xc=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=j(e,function(a){var o=a.replace("mouse","pointer");return r.hasOwnProperty(o)?o:a});return{mouse:e,touch:t,pointer:n}}(),ag={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},og=!1;function Zc(e){var t=e.pointerType;return t==="pen"||t==="touch"}function xN(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 Kc(e){e&&(e.zrByTouch=!0)}function TN(e,t){return At(e.dom,new NN(e,t),!0)}function ig(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 NN=function(){function e(t,r){this.stopPropagation=it,this.stopImmediatePropagation=it,this.preventDefault=it,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Yt={mousedown:function(e){e=At(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=At(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=At(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=At(this.dom,e);var t=e.toElement||e.relatedTarget;ig(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){og=!0,e=At(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){og||(e=At(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=At(this.dom,e),Kc(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Yt.mousemove.call(this,e),Yt.mousedown.call(this,e)},touchmove:function(e){e=At(this.dom,e),Kc(e),this.handler.processGesture(e,"change"),Yt.mousemove.call(this,e)},touchend:function(e){e=At(this.dom,e),Kc(e),this.handler.processGesture(e,"end"),Yt.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<CN&&Yt.click.call(this,e)},pointerdown:function(e){Yt.mousedown.call(this,e)},pointermove:function(e){Zc(e)||Yt.mousemove.call(this,e)},pointerup:function(e){Yt.mouseup.call(this,e)},pointerout:function(e){Zc(e)||Yt.mouseout.call(this,e)}};k(["click","dblclick","contextmenu"],function(e){Yt[e]=function(t){t=At(this.dom,t),this.trigger(e,t)}});var Jc={pointermove:function(e){Zc(e)||Jc.mousemove.call(this,e)},pointerup:function(e){Jc.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 DN(e,t){var r=t.domHandlers;ae.pointerEventsSupported?k(Xc.pointer,function(n){Ts(t,n,function(a){r[n].call(e,a)})}):(ae.touchEventsSupported&&k(Xc.touch,function(n){Ts(t,n,function(a){r[n].call(e,a),xN(t)})}),k(Xc.mouse,function(n){Ts(t,n,function(a){a=Ac(a),t.touching||r[n].call(e,a)})}))}function AN(e,t){ae.pointerEventsSupported?k(ag.pointer,r):ae.touchEventsSupported||k(ag.mouse,r);function r(n){function a(o){o=Ac(o),ig(e,o.target)||(o=TN(e,o),t.domHandlers[n].call(e,o))}Ts(t,n,a,{capture:!0})}}function Ts(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,zT(e.domTarget,t,r,n)}function Qc(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&>(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var sg=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),MN=function(e){H(t,e);function t(r,n){var a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new sg(r,Yt),jc&&(a._globalHandlerScope=new sg(document,Jc)),DN(a,a._localHandlerScope),a}return t.prototype.dispose=function(){Qc(this._localHandlerScope),jc&&Qc(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,jc&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?AN(this,n):Qc(n)}},t}(Ut);const kN=MN;var lg=1;ae.hasGlobalWindow&&(lg=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Ns=lg,ef=.4,tf="#333",rf="#ccc",EN="#eee",ug=kc,cg=5e-5;function xn(e){return e>cg||e<-cg}var Tn=[],Pa=[],nf=Na(),af=Math.abs,of=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 xn(this.rotation)||xn(this.x)||xn(this.y)||xn(this.scaleX-1)||xn(this.scaleY-1)||xn(this.skewX)||xn(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(ug(n),this.invTransform=null);return}n=n||Na(),r?this.getLocalTransform(n):ug(n),t&&(r?Da(n,t,n):UT(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Tn);var n=Tn[0]<0?-1:1,a=Tn[1]<0?-1:1,o=((Tn[0]-n)*r+n)/Tn[0]||0,i=((Tn[1]-a)*r+a)/Tn[1]||0;t[0]*=o,t[1]*=o,t[2]*=i,t[3]*=i}this.invTransform=this.invTransform||Na(),Ic(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||Na(),Da(Pa,t.invTransform,r),r=Pa);var n=this.originX,a=this.originY;(n||a)&&(nf[4]=n,nf[5]=a,Da(Pa,r,nf),Pa[4]-=n,Pa[5]-=a,r=Pa),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&&Nt(n,n,a),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],a=this.transform;return a&&Nt(n,n,a),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&af(t[0]-1)>1e-10&&af(t[3]-1)>1e-10?Math.sqrt(af(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){PN(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,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 v=n+s,m=a+l;r[4]=-v*o-d*m*i,r[5]=-m*i-h*v*o}else r[4]=r[5]=0;return r[0]=o,r[3]=i,r[1]=h*o,r[2]=d*i,u&&Pc(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}(),or=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function PN(e,t){for(var r=0;r<or.length;r++){var n=or[r];e[n]=t[n]}}var fg={};function bt(e,t){t=t||_n;var r=fg[t];r||(r=fg[t]=new Po(500));var n=r.get(e);return n==null&&(n=ga.measureText(e,t).width,r.put(e,n)),n}function hg(e,t,r,n){var a=bt(e,t),o=lf(t),i=Bo(0,a,r),s=Ia(0,o,n),l=new _e(i,s,a,o);return l}function sf(e,t,r,n){var a=((e||"")+"").split(`
|
|
15
|
-
`),o=a.length;if(o===1)return hg(a[0],t,r,n);for(var i=new _e(0,0,0,0),s=0;s<a.length;s++){var l=hg(a[s],t,r,n);s===0?i.copy(l):i.union(l)}return i}function Bo(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Ia(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function lf(e){return bt("国",e)}function Xr(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Ds(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,c="left",f="top";if(n instanceof Array)l+=Xr(n[0],r.width),u+=Xr(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+i,u+=s,f="middle";break;case"top":l+=i/2,u-=a,c="center",f="bottom";break;case"bottom":l+=i/2,u+=o+a,c="center";break;case"inside":l+=i/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=a,u+=s,f="middle";break;case"insideRight":l+=i-a,u+=s,c="right",f="middle";break;case"insideTop":l+=i/2,u+=a,c="center";break;case"insideBottom":l+=i/2,u+=o-a,c="center",f="bottom";break;case"insideTopLeft":l+=a,u+=a;break;case"insideTopRight":l+=i-a,u+=a,c="right";break;case"insideBottomLeft":l+=a,u+=o-a,f="bottom";break;case"insideBottomRight":l+=i-a,u+=o-a,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var uf="__zr_normal__",cf=or.concat(["ignore"]),IN=Sr(or,function(e,t){return e[t]=!0,e},{ignore:!1}),La={},LN=new _e(0,0,0,0),ff=function(){function e(t){this.id=vv(),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 c=LN;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(La,n,c):Ds(La,n,c),o.x=La.x,o.y=La.y,i=La.align,s=La.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=Xr(f[0],c.width),h=Xr(f[1],c.height)),u=!0,o.originX=-o.x+d+(a?0:c.x),o.originY=-o.y+h+(a?0:c.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 m=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,w=void 0,_=void 0;m&&this.canBeInsideText()?(y=n.insideFill,w=n.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(w==null||w==="auto")&&(w=this.getInsideTextStroke(y),_=!0)):(y=n.outsideFill,w=n.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(w==null||w==="auto")&&(w=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||w!==g.stroke||_!==g.autoStroke||i!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=w,g.autoStroke=_,g.align=i,g.verticalAlign=s,r.setDefaultTextStyle(g)),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()?rf:tf},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Cr(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,ys(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},G(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(J(t))for(var n=t,a=ye(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!==uf)){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,cf)},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(uf,!1,t)},e.prototype.useState=function(t,r,n,a){var o=t===uf,i=this.hasState();if(!(!i&&o)){var s=this.currentStates,l=this.stateTransition;if(!(de(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){Hr("State "+t+" not exists.");return}o||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),o?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&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],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&a.push(c)}var f=a[i-1],d=!!(f&&f.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(a),v=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!r&&!this.__inHover&&v&&v.duration>0,v);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&=~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=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(),o=de(a,t),i=de(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];G(r,o),o.textConfig&&(n=n||{},G(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=G({},a?this.textConfig:n.textConfig),G(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<cf.length;c++){var f=cf[c],d=o&&IN[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(!o)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],v=h.targetName;h.getLoop()||h.__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 of,this._attachComponent(t),this._textContent=t,this.markRedraw()}},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),G(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=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){Hr('Property "'+t+'" is not existed in element '+this.id);return}var o=new qc(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=de(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){hf(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){hf(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,a){for(var o=hf(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 c=this[i]=[];u(this,c)}return this[i]},set:function(c){process.env.NODE_ENV!=="production"&&n(o,s,l),this[s]=c[0],this[l]=c[1],this[i]=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}();Wt(ff,Ut),Wt(ff,of);function hf(e,t,r,n,a){r=r||{};var o=[];dg(e,"",e,t,r,n,o,a);var i=o.length,s=!1,l=r.done,u=r.aborted,c=function(){s=!0,i--,i<=0&&(s?l&&l():u&&u())},f=function(){i--,i<=0&&(s?l&&l():u&&u())};i||l&&l(),o.length>0&&r.during&&o[0].during(function(v,m){r.during(m)});for(var d=0;d<o.length;d++){var h=o[d];c&&h.done(c),f&&h.aborted(f),r.force&&h.duration(r.duration),h.start(r.easing)}return o}function df(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function ON(e){return at(e[0])}function RN(e,t,r){if(at(t[r]))if(at(e[r])||(e[r]=[]),ot(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),df(e[r],t[r],n))}else{var a=t[r],o=e[r],i=a.length;if(ON(a))for(var s=a[0].length,l=0;l<i;l++)o[l]?df(o[l],a[l],s):o[l]=Array.prototype.slice.call(a[l]);else df(o,a,i);o.length=a.length}else e[r]=t[r]}function BN(e,t){return e===t||at(e)&&at(t)&&VN(e,t)}function VN(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 dg(e,t,r,n,a,o,i,s){for(var l=ye(n),u=a.duration,c=a.delay,f=a.additive,d=a.setToFinal,h=!J(o),v=e.animators,m=[],g=0;g<l.length;g++){var y=l[g],w=n[y];if(w!=null&&r[y]!=null&&(h||o[y]))if(J(w)&&!at(w)&&!os(w)){if(t){s||(r[y]=w,e.updateDuringAnimation(t));continue}dg(e,y,r[y],w,a,o&&o[y],i,s)}else m.push(y);else s||(r[y]=w,e.updateDuringAnimation(t),m.push(y))}var _=m.length;if(!f&&_)for(var S=0;S<v.length;S++){var x=v[S];if(x.targetName===t){var C=x.stopTracks(m);if(C){var N=de(v,x);v.splice(N,1)}}}if(a.force||(m=Ye(m,function(D){return!BN(n[D],r[D])}),_=m.length),_>0||a.force&&!i.length){var b=void 0,T=void 0,M=void 0;if(s){T={},d&&(b={});for(var S=0;S<_;S++){var y=m[S];T[y]=r[y],d?b[y]=n[y]:r[y]=n[y]}}else if(d){M={};for(var S=0;S<_;S++){var y=m[S];M[y]=Lo(r[y]),RN(r,n,y)}}var x=new qc(r,!1,!1,f?Ye(v,function(A){return A.targetName===t}):null);x.targetName=t,a.scope&&(x.scope=a.scope),d&&b&&x.whenWithKeys(0,b,m),M&&x.whenWithKeys(0,M,m),x.whenWithKeys(u??500,s?T:n,m).delay(c||0),e.addAnimator(x,t),i.push(x)}}const pg=ff;var Oe=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===r)return n[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){if(r&&(r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),process.env.NODE_ENV!=="production"&&r.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var a=this._children,o=a.indexOf(n);o>=0&&(a.splice(o,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,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=de(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 _e(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(),c=l.getLocalTransform(o);c?(_e.applyTransform(n,u,c),i=i||n.clone(),i.union(n)):(i=i||u.clone(),i.union(u))}}return i||n},t}(pg);Oe.prototype.type="group";/*!
|
|
14
|
+
***************************************************************************** */var hc=function(e,t){return hc=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])},hc(e,t)};function H(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");hc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var iN=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),oN=function(){function e(){this.browser=new iN,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 oN;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):sN(navigator.userAgent,ae);function sN(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 dc=12,lN="sans-serif",_n=dc+"px "+lN,uN=20,cN=100,fN="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function hN(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)-uN)/cN;t[n]=a}return t}var dN=hN(fN),ga={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var a=ga.createCanvas();e=a&&a.getContext("2d")}if(e)return t!==n&&(t=e.font=n||_n),e.measureText(r);r=r||"",n=n||_n;var i=/(\d+)px/.exec(n),o=i&&+i[1]||dc,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=dN[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}},dv=Sr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),pv=Sr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),ma=Object.prototype.toString,rs=Array.prototype,pN=rs.forEach,vN=rs.filter,pc=rs.slice,gN=rs.map,vv=(function(){}).constructor,ns=vv?vv.prototype:null,vc="__proto__",mN=2311;function gv(){return mN++}function Hr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function fe(e){if(e==null||typeof e!="object")return e;var t=e,r=ma.call(e);if(r==="[object Array]"){if(!Ti(e)){t=[];for(var n=0,a=e.length;n<a;n++)t[n]=fe(e[n])}}else if(pv[r]){if(!Ti(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(!dv[r]&&!Ti(e)&&!ya(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==vc&&(t[o]=fe(e[o]))}return t}function ve(e,t,r){if(!J(t)||!J(e))return r?fe(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==vc){var a=e[n],i=t[n];J(i)&&J(a)&&!U(i)&&!U(a)&&!ya(i)&&!ya(a)&&!mv(i)&&!mv(a)&&!Ti(i)&&!Ti(a)?ve(a,i,r):(r||!(n in e))&&(e[n]=fe(t[n]))}return e}function G(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==vc&&(e[r]=t[r]);return e}function pe(e,t,r){for(var n=ye(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 yN(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 Wt(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 it(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function M(e,t,r){if(e&&t)if(e.forEach&&e.forEach===pN)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 j(e,t,r){if(!e)return[];if(!t)return gc(e);if(e.map&&e.map===gN)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 Sr(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 Ye(e,t,r){if(!e)return[];if(!t)return gc(e);if(e.filter&&e.filter===vN)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 ye(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 _N(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(pc.call(arguments)))}}var te=ns&&ie(ns.bind)?ns.call.bind(ns.bind):_N;function Se(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(pc.call(arguments)))}}function U(e){return Array.isArray?Array.isArray(e):ma.call(e)==="[object Array]"}function ie(e){return typeof e=="function"}function X(e){return typeof e=="string"}function as(e){return ma.call(e)==="[object String]"}function Te(e){return typeof e=="number"}function J(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function mv(e){return!!dv[ma.call(e)]}function ot(e){return!!pv[ma.call(e)]}function ya(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function is(e){return e.colorStops!=null}function wN(e){return e.image!=null}function bN(e){return ma.call(e)==="[object RegExp]"}function _a(e){return e!==e}function Wr(){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 oe(e,t){return e??t}function Ur(e,t,r){return e??t??r}function gc(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return pc.apply(e,t)}function yv(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 nr(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var _v="__ec_primitive__";function mc(e){e[_v]=!0}function Ti(e){return e[_v]}var SN=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 ye(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),wv=typeof Map=="function";function CN(){return wv?new Map:new SN}var TN=function(){function e(t){var r=U(t);this.data=CN();var n=this;t instanceof e?t.each(a):t&&M(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 wv?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function se(e){return new TN(e)}function NN(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 os(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&G(r,t),r}function bv(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Y(e,t){return e.hasOwnProperty(t)}function st(){}var xN=180/Math.PI;function wa(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function DN(e){return[e[0],e[1]]}function Sv(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function Cv(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function AN(e){return Math.sqrt(kN(e))}function kN(e){return e[0]*e[0]+e[1]*e[1]}function yc(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function _c(e,t){var r=AN(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function wc(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var bc=wc;function MN(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var ba=MN;function Sc(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 Dt(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 Sa(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Ca(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var Ta=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),EN=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 Ta(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 Ta(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 Ta(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Ta(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Ta(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Ta(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),Ut=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}(),PN=Math.log(2);function Cc(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)/PN);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 v=1<<d;v&a||(f+=(h%2?-1:1)*e[r][d]*Cc(e,t-1,c,u,a|v,i),h++)}return i[o]=f,f}function Tv(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=Cc(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)*Cc(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 Nv="___zrEVENTSAVED",Tc=[];function IN(e,t,r,n,a){return Nc(Tc,t,n,a,!0)&&Nc(e,r,Tc[0],Tc[1])}function Nc(e,t,r,n,a){if(t.getBoundingClientRect&&ae.domSupported&&!xv(t)){var i=t[Nv]||(t[Nv]={}),o=LN(t,i),s=ON(o,i,a);if(s)return s(e,r,n),!0}return!1}function LN(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 ON(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?Tv(s,o):Tv(o,s))}function xv(e){return e.nodeName.toUpperCase()==="CANVAS"}var RN=/([&<>"'])/g,BN={"&":"&","<":"<",">":">",'"':""","'":"'"};function At(e){return e==null?"":(e+"").replace(RN,function(t,r){return BN[r]})}var VN=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,xc=[],$N=ae.browser.firefox&&+ae.browser.version.split(".")[0]<39;function Dc(e,t,r,n){return r=r||{},n?Dv(e,t,r):$N&&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):Dv(e,t,r),r}function Dv(e,t,r){if(ae.domSupported&&e.getBoundingClientRect){var n=t.clientX,a=t.clientY;if(xv(e)){var i=e.getBoundingClientRect();r.zrX=n-i.left,r.zrY=a-i.top;return}else if(Nc(xc,e,n,a)){r.zrX=xc[0],r.zrY=xc[1];return}}r.zrX=r.zrY=0}function Ac(e){return e||window.event}function kt(e,t,r){if(t=Ac(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&&Dc(e,o,t,r)}else{Dc(e,t,t,r);var i=FN(t);t.zrDelta=i?i/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&VN.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function FN(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 zN(e,t,r,n){e.addEventListener(t,r,n)}function GN(e,t,r,n){e.removeEventListener(t,r,n)}var Na=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function Av(e){return e.which===2||e.which===3}var HN=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=Dc(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 kc)if(kc.hasOwnProperty(r)){var n=kc[r](this._track,t);if(n)return n}},e}();function kv(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function WN(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var kc={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=kv(n)/kv(a);!isFinite(i)&&(i=1),t.pinchScale=i;var o=WN(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function xa(){return[1,0,0,1,0,0]}function Mc(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function UN(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 Da(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 Ec(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 Pc(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 YN(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 Ic(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 qN=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=qN;var ss=Math.min,ls=Math.max,wn=new le,bn=new le,Sn=new le,Cn=new le,Ni=new le,xi=new le,jN=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=ss(t.x,this.x),n=ss(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ls(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ls(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=xa();return Ec(i,i,[-r.x,-r.y]),YN(i,i,[n,a]),Ec(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,v=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>v&&(v=w,m<g?le.set(xi,-m,0):le.set(xi,g,0)):w<h&&(h=w,m<g?le.set(Ni,m,0):le.set(Ni,-g,0)),s<c||f<o?S>v&&(v=S,y<_?le.set(xi,0,-y):le.set(xi,0,_)):w<h&&(h=w,y<_?le.set(Ni,0,y):le.set(Ni,0,-_))}return r&&le.copy(r,d?Ni:xi),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}wn.x=Sn.x=r.x,wn.y=Cn.y=r.y,bn.x=Cn.x=r.x+r.width,bn.y=Sn.y=r.y+r.height,wn.transform(n),Cn.transform(n),bn.transform(n),Sn.transform(n),t.x=ss(wn.x,bn.x,Sn.x,Cn.x),t.y=ss(wn.y,bn.y,Sn.y,Cn.y);var l=ls(wn.x,bn.x,Sn.x,Cn.x),u=ls(wn.y,bn.y,Sn.y,Cn.y);t.width=l-t.x,t.height=u-t.y},e}();const _e=jN;var Mv="silent";function XN(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:ZN}}function ZN(){Na(this.event)}var KN=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ut),Di=function(){function e(t,r){this.x=t,this.y=r}return e}(),JN=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Lc=new _e(0,0,0,0),Ev=function(e){H(t,e);function t(r,n,a,i,o){var s=e.call(this)||this;return s._hovered=new Di(0,0),s.storage=r,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new KN,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new EN(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(M(JN,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=Iv(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 Di(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 Di(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=XN(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 Di(r,n);if(Pv(i,o,r,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new _e(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)&&(Lc.copy(d.getBoundingRect()),d.transform&&Lc.applyTransform(d.transform),Lc.intersect(c)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,m=Math.PI*2,g=0;g<u;g+=h)for(var y=0;y<m;y+=v){var _=r+g*Math.cos(y),w=n+g*Math.sin(y);if(Pv(s,o,_,w,a),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new HN);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 Di;s.target=i.target,this.dispatchToElement(s,o,i.event)}},t}(Ut);M(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){Ev.prototype[e]=function(t){var r=t.zrX,n=t.zrY,a=Iv(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||bc(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,e,t)}});function QN(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?Mv:!0}return!1}function Pv(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=QN(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==Mv)){t.target=o;break}}}function Iv(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}const ex=Ev;var Lv=32,Ai=7;function tx(e){for(var t=0;e>=Lv;)t|=e&1,e>>=1;return e+t}function Ov(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++;rx(e,t,a)}else for(;a<r&&n(e[a],e[a-1])>=0;)a++;return a-t}function rx(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function Rv(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 Oc(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 Rc(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 nx(e,t){var r=Ai,n,a,i=0,o=[];n=[],a=[];function s(h,v){n[i]=h,a[i]=v,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 v=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 _=Rc(e[g],e,v,m,0,t);v+=_,m-=_,m!==0&&(y=Oc(e[v+m-1],e,g,y,y-1,t),y!==0&&(m<=y?f(v,m,g,y):d(v,m,g,y)))}function f(h,v,m,g){var y=0;for(y=0;y<v;y++)o[y]=e[h+y];var _=0,w=m,S=h;if(e[S++]=e[w++],--g===0){for(y=0;y<v;y++)e[S+y]=o[_+y];return}if(v===1){for(y=0;y<g;y++)e[S+y]=e[w+y];e[S+g]=o[_];return}for(var T=r,C,x,b;;){C=0,x=0,b=!1;do if(t(e[w],o[_])<0){if(e[S++]=e[w++],x++,C=0,--g===0){b=!0;break}}else if(e[S++]=o[_++],C++,x=0,--v===1){b=!0;break}while((C|x)<T);if(b)break;do{if(C=Rc(e[w],o,_,v,0,t),C!==0){for(y=0;y<C;y++)e[S+y]=o[_+y];if(S+=C,_+=C,v-=C,v<=1){b=!0;break}}if(e[S++]=e[w++],--g===0){b=!0;break}if(x=Oc(o[_],e,w,g,0,t),x!==0){for(y=0;y<x;y++)e[S+y]=e[w+y];if(S+=x,w+=x,g-=x,g===0){b=!0;break}}if(e[S++]=o[_++],--v===1){b=!0;break}T--}while(C>=Ai||x>=Ai);if(b)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),v===1){for(y=0;y<g;y++)e[S+y]=e[w+y];e[S+g]=o[_]}else{if(v===0)throw new Error;for(y=0;y<v;y++)e[S+y]=o[_+y]}}function d(h,v,m,g){var y=0;for(y=0;y<g;y++)o[y]=e[m+y];var _=h+v-1,w=g-1,S=m+g-1,T=0,C=0;if(e[S--]=e[_--],--v===0){for(T=S-(g-1),y=0;y<g;y++)e[T+y]=o[y];return}if(g===1){for(S-=v,_-=v,C=S+1,T=_+1,y=v-1;y>=0;y--)e[C+y]=e[T+y];e[S]=o[w];return}for(var x=r;;){var b=0,N=0,A=!1;do if(t(o[w],e[_])<0){if(e[S--]=e[_--],b++,N=0,--v===0){A=!0;break}}else if(e[S--]=o[w--],N++,b=0,--g===1){A=!0;break}while((b|N)<x);if(A)break;do{if(b=v-Rc(o[w],e,h,v,v-1,t),b!==0){for(S-=b,_-=b,v-=b,C=S+1,T=_+1,y=b-1;y>=0;y--)e[C+y]=e[T+y];if(v===0){A=!0;break}}if(e[S--]=o[w--],--g===1){A=!0;break}if(N=g-Oc(e[_],o,0,g,g-1,t),N!==0){for(S-=N,w-=N,g-=N,C=S+1,T=w+1,y=0;y<N;y++)e[C+y]=o[T+y];if(g<=1){A=!0;break}}if(e[S--]=e[_--],--v===0){A=!0;break}x--}while(b>=Ai||N>=Ai);if(A)break;x<0&&(x=0),x+=2}if(r=x,r<1&&(r=1),g===1){for(S-=v,_-=v,C=S+1,T=_+1,y=v-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 us(e,t,r,n){r||(r=0),n||(n=e.length);var a=n-r;if(!(a<2)){var i=0;if(a<Lv){i=Ov(e,r,n,t),Rv(e,r,n,r+i,t);return}var o=nx(e,t),s=tx(a);do{if(i=Ov(e,r,n,t),i<s){var l=a;l>s&&(l=s),Rv(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,ki=2,Aa=4,Bv=!1;function Bc(){Bv||(Bv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Vv(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var ax=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Vv}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,us(n,Vv)},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)&&(Bc(),c.z=0),isNaN(c.z2)&&(Bc(),c.z2=0),isNaN(c.zlevel)&&(Bc(),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}(),$v;$v=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 Vc=$v;var Mi={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-Mi.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?Mi.bounceIn(e*2)*.5:Mi.bounceOut(e*2-1)*.5+.5}},cs=Math.pow,Yr=Math.sqrt,fs=1e-8,Fv=1e-4,zv=Yr(3),hs=1/3,ar=wa(),Mt=wa(),ka=wa();function qr(e){return e>-fs&&e<fs}function Gv(e){return e>fs||e<-fs}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 Hv(e,t,r,n,a){var i=1-a;return 3*(((t-e)*i+2*(r-t)*a)*i+(n-r)*a*a)}function ds(e,t,r,n,a,i){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-a,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,h=0;if(qr(c)&&qr(f))if(qr(s))i[0]=0;else{var v=-l/s;v>=0&&v<=1&&(i[h++]=v)}else{var m=f*f-4*c*d;if(qr(m)){var g=f/c,v=-s/o+g,y=-g/2;v>=0&&v<=1&&(i[h++]=v),y>=0&&y<=1&&(i[h++]=y)}else if(m>0){var _=Yr(m),w=c*s+1.5*o*(-f+_),S=c*s+1.5*o*(-f-_);w<0?w=-cs(-w,hs):w=cs(w,hs),S<0?S=-cs(-S,hs):S=cs(S,hs);var v=(-s-(w+S))/(3*o);v>=0&&v<=1&&(i[h++]=v)}else{var T=(2*c*s-3*o*f)/(2*Yr(c*c*c)),C=Math.acos(T)/3,x=Yr(c),b=Math.cos(C),v=(-s-2*x*b)/(3*o),y=(-s+x*(b+zv*Math.sin(C)))/(3*o),N=(-s+x*(b-zv*Math.sin(C)))/(3*o);v>=0&&v<=1&&(i[h++]=v),y>=0&&y<=1&&(i[h++]=y),N>=0&&N<=1&&(i[h++]=N)}}return h}function Wv(e,t,r,n,a){var i=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(qr(o)){if(Gv(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(qr(c))a[0]=-i/(2*o);else if(c>0){var f=Yr(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 ps(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 ix(e,t,r,n,a,i,o,s,l,u,c){var f,d=.005,h=1/0,v,m,g,y;ar[0]=l,ar[1]=u;for(var _=0;_<1;_+=.05)Mt[0]=Fe(e,r,a,o,_),Mt[1]=Fe(t,n,i,s,_),g=ba(ar,Mt),g<h&&(f=_,h=g);h=1/0;for(var w=0;w<32&&!(d<Fv);w++)v=f-d,m=f+d,Mt[0]=Fe(e,r,a,o,v),Mt[1]=Fe(t,n,i,s,v),g=ba(Mt,ar),v>=0&&g<h?(f=v,h=g):(ka[0]=Fe(e,r,a,o,m),ka[1]=Fe(t,n,i,s,m),y=ba(ka,ar),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)),Yr(h)}function ox(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 v=h*d,m=Fe(e,r,a,o,v),g=Fe(t,n,i,s,v),y=m-u,_=g-c;f+=Math.sqrt(y*y+_*_),u=m,c=g}return f}function Ze(e,t,r,n){var a=1-n;return a*(a*e+2*n*t)+n*n*r}function Uv(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function sx(e,t,r,n,a){var i=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(qr(i)){if(Gv(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(qr(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=Yr(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 Yv(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function vs(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 lx(e,t,r,n,a,i,o,s,l){var u,c=.005,f=1/0;ar[0]=o,ar[1]=s;for(var d=0;d<1;d+=.05){Mt[0]=Ze(e,r,a,d),Mt[1]=Ze(t,n,i,d);var h=ba(ar,Mt);h<f&&(u=d,f=h)}f=1/0;for(var v=0;v<32&&!(c<Fv);v++){var m=u-c,g=u+c;Mt[0]=Ze(e,r,a,m),Mt[1]=Ze(t,n,i,m);var h=ba(Mt,ar);if(m>=0&&h<f)u=m,f=h;else{ka[0]=Ze(e,r,a,g),ka[1]=Ze(t,n,i,g);var y=ba(ka,ar);g<=1&&y<f?(u=g,f=y):c*=.5}}return l&&(l[0]=Ze(e,r,a,u),l[1]=Ze(t,n,i,u)),Yr(f)}function ux(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=Ze(e,r,a,d),v=Ze(t,n,i,d),m=h-s,g=v-l;u+=Math.sqrt(m*m+g*g),s=h,l=v}return u}var cx=/cubic-bezier\(([0-9,\.e ]+)\)/;function qv(e){var t=e&&cx.exec(e);if(t){var r=t[1].split(","),n=+nr(r[0]),a=+nr(r[1]),i=+nr(r[2]),o=+nr(r[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:ds(0,n,i,1,l,s)&&Fe(0,a,o,1,s[0])}}}var fx=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||st,this.ondestroy=t.ondestroy||st,this.onrestart=t.onrestart||st,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,a=t-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ie(t)?t:Mi[t]||qv(t)},e}();const hx=fx;var jv=function(){function e(t){this.value=t}return e}(),dx=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new jv(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}(),Ei=function(){function e(t){this._list=new dx,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 jv(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}(),Xv={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 jr(e){return e=Math.round(e),e<0?0:e>255?255:e}function $c(e){return e<0?0:e>1?1:e}function Fc(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?jr(parseFloat(t)/100*255):jr(parseInt(t,10))}function Pi(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?$c(parseFloat(t)/100):$c(parseFloat(t))}function zc(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 gs(e,t,r){return e+(t-e)*r}function Et(e,t,r,n,a){return e[0]=t,e[1]=r,e[2]=n,e[3]=a,e}function Gc(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Zv=new Ei(20),ms=null;function Ma(e,t){ms&&Gc(ms,t),ms=Zv.put(e,ms||t.slice())}function Cr(e,t){if(e){t=t||[];var r=Zv.get(e);if(r)return Gc(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in Xv)return Gc(t,Xv[n]),Ma(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)){Et(t,0,0,0,1);return}return Et(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),Ma(e,t),t}else if(a===7||a===9){var i=parseInt(n.slice(1,7),16);if(!(i>=0&&i<=16777215)){Et(t,0,0,0,1);return}return Et(t,(i&16711680)>>16,(i&65280)>>8,i&255,a===9?parseInt(n.slice(7),16)/255:1),Ma(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?Et(t,+u[0],+u[1],+u[2],1):Et(t,0,0,0,1);c=Pi(u.pop());case"rgb":if(u.length>=3)return Et(t,Fc(u[0]),Fc(u[1]),Fc(u[2]),u.length===3?c:Pi(u[3])),Ma(e,t),t;Et(t,0,0,0,1);return;case"hsla":if(u.length!==4){Et(t,0,0,0,1);return}return u[3]=Pi(u[3]),Kv(u,t),Ma(e,t),t;case"hsl":if(u.length!==3){Et(t,0,0,0,1);return}return Kv(u,t),Ma(e,t),t;default:return}}Et(t,0,0,0,1)}}function Kv(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Pi(e[1]),a=Pi(e[2]),i=a<=.5?a*(n+1):a+n-a*n,o=a*2-i;return t=t||[],Et(t,jr(zc(o,i,r+1/3)*255),jr(zc(o,i,r)*255),jr(zc(o,i,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Jv(e,t){var r=Cr(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 ys(r,r.length===4?"rgba":"rgb")}}function px(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=Cr(t[a]),s=Cr(t[i]),l=n-a,u=ys([jr(gs(o[0],s[0],l)),jr(gs(o[1],s[1],l)),jr(gs(o[2],s[2],l)),$c(gs(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:a,rightIndex:i,value:n}:u}}function ys(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 _s(e,t){var r=Cr(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var Qv=new Ei(100);function eg(e){if(X(e)){var t=Qv.get(e);return t||(t=Jv(e,-.1),Qv.put(e,t)),t}else if(is(e)){var r=G({},e);return r.colorStops=j(e.colorStops,function(n){return{offset:n.offset,color:Jv(n.color,-.1)}}),r}return e}function vx(e){return e.type==="linear"}function gx(e){return e.type==="radial"}(function(){return ae.hasGlobalWindow&&ie(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return process.env.NODE_ENV!=="production"&&Hr("Base64 isn't natively supported in the current environment."),null}})();var Hc=Array.prototype.slice;function Tr(e,t,r){return(t-e)*r+e}function Wc(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=Tr(t[i],r[i],n);return e}function mx(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]=Tr(t[o][s],r[o][s],n)}return e}function ws(e,t,r,n){for(var a=t.length,i=0;i<a;i++)e[i]=t[i]+r[i]*n;return e}function tg(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 yx(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 _x(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]:Hc.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 Ii(e){if(it(e)){var t=e.length;if(it(e[0])){for(var r=[],n=0;n<t;n++)r.push(Hc.call(e[n]));return r}return Hc.call(e)}return e}function bs(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 bx(e){return it(e&&e[0])?2:1}var Ss=0,Cs=1,rg=2,Li=3,Uc=4,Yc=5,ng=6;function ag(e){return e===Uc||e===Yc}function Ts(e){return e===Cs||e===rg}var Oi=[0,0,0,0],Sx=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=ng,l=r;if(it(r)){var u=bx(r);s=u,(u===1&&!Te(r[0])||u===2&&!Te(r[0][0]))&&(o=!0)}else if(Te(r)&&!_a(r))s=Ss;else if(X(r))if(!isNaN(+r))s=Ss;else{var c=Cr(r);c&&(l=c,s=Li)}else if(is(r)){var f=G({},l);f.colorStops=j(r.colorStops,function(h){return{offset:h.offset,color:Cr(h.color)}}),vx(r)?s=Uc:gx(r)&&(s=Yc),l=f}i===0?this.valType=s:(s!==this.valType||s===ng)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=ie(n)?n:Mi[n]||qv(n)),a.push(d),d},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(m,g){return m.time-g.time});for(var a=this.valType,i=n.length,o=n[i-1],s=this.discrete,l=Ts(a),u=ag(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?_x(d,h,a):u&&yx(d.colorStops,h.colorStops))}if(!s&&a!==Yc&&r&&this.needsAnimate()&&r.needsAnimate()&&a===r.valType&&!r._finished){this._additiveTrack=r;for(var v=n[0].value,c=0;c<i;c++)a===Ss?n[c].additiveValue=n[c].value-v:a===Li?n[c].additiveValue=ws([],n[c].value,v,-1):Ts(a)&&(n[c].additiveValue=a===Cs?ws([],n[c].value,v,-1):tg([],n[c].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",i=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=i===Li,c,f=this._lastFr,d=Math.min,h,v;if(s===1)h=v=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)}v=o[c+1],h=o[c]}if(h&&v){this._lastFr=c,this._lastFrP=r;var g=v.percent-h.percent,y=g===0?1:d((r-h.percent)/g,1);v.easingFunc&&(y=v.easingFunc(y));var _=n?this._additiveValue:u?Oi:t[l];if((Ts(i)||u)&&!_&&(_=this._additiveValue=[]),this.discrete)t[l]=y<1?h.rawValue:v.rawValue;else if(Ts(i))i===Cs?Wc(_,h[a],v[a],y):mx(_,h[a],v[a],y);else if(ag(i)){var w=h[a],S=v[a],T=i===Uc;t[l]={type:T?"linear":"radial",x:Tr(w.x,S.x,y),y:Tr(w.y,S.y,y),colorStops:j(w.colorStops,function(x,b){var N=S.colorStops[b];return{offset:Tr(x.offset,N.offset,y),color:bs(Wc([],x.color,N.color,y))}}),global:S.global},T?(t[l].x2=Tr(w.x2,S.x2,y),t[l].y2=Tr(w.y2,S.y2,y)):t[l].r=Tr(w.r,S.r,y)}else if(u)Wc(_,h[a],v[a],y),n||(t[l]=bs(_));else{var C=Tr(h[a],v[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===Ss?t[n]=t[n]+a:r===Li?(Cr(t[n],Oi),ws(Oi,Oi,a,1),t[n]=bs(Oi)):r===Cs?ws(t[n],t[n],a,1):r===rg&&tg(t[n],t[n],a,1)},e}(),qc=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){Hr("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,ye(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 Sx(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===Li&&u&&(u=bs(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,Ii(u),a),this._trackKeys.push(s)}l.addKeyframe(t,Ii(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 hx({life:a,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var v=r._additiveAnimators;if(v){for(var m=!1,g=0;g<v.length;g++)if(v[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 j(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]=Ii(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||ye(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 Ea(){return new Date().getTime()}var Cx=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,a=r.next;n?n.next=a:this._head=a,a?a.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Ea()-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&&(Vc(n),!r._paused&&r.update())}Vc(n)},t.prototype.start=function(){this._running||(this._time=Ea(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Ea(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Ea()-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 qc(r,n.loop);return this.addAnimator(a),a},t}(Ut),Tx=300,jc=ae.domSupported,Xc=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=j(e,function(a){var i=a.replace("mouse","pointer");return r.hasOwnProperty(i)?i:a});return{mouse:e,touch:t,pointer:n}}(),ig={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},og=!1;function Zc(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Nx(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 Kc(e){e&&(e.zrByTouch=!0)}function xx(e,t){return kt(e.dom,new Dx(e,t),!0)}function sg(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 Dx=function(){function e(t,r){this.stopPropagation=st,this.stopImmediatePropagation=st,this.preventDefault=st,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Yt={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;sg(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){og=!0,e=kt(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){og||(e=kt(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=kt(this.dom,e),Kc(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Yt.mousemove.call(this,e),Yt.mousedown.call(this,e)},touchmove:function(e){e=kt(this.dom,e),Kc(e),this.handler.processGesture(e,"change"),Yt.mousemove.call(this,e)},touchend:function(e){e=kt(this.dom,e),Kc(e),this.handler.processGesture(e,"end"),Yt.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<Tx&&Yt.click.call(this,e)},pointerdown:function(e){Yt.mousedown.call(this,e)},pointermove:function(e){Zc(e)||Yt.mousemove.call(this,e)},pointerup:function(e){Yt.mouseup.call(this,e)},pointerout:function(e){Zc(e)||Yt.mouseout.call(this,e)}};M(["click","dblclick","contextmenu"],function(e){Yt[e]=function(t){t=kt(this.dom,t),this.trigger(e,t)}});var Jc={pointermove:function(e){Zc(e)||Jc.mousemove.call(this,e)},pointerup:function(e){Jc.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 Ax(e,t){var r=t.domHandlers;ae.pointerEventsSupported?M(Xc.pointer,function(n){Ns(t,n,function(a){r[n].call(e,a)})}):(ae.touchEventsSupported&&M(Xc.touch,function(n){Ns(t,n,function(a){r[n].call(e,a),Nx(t)})}),M(Xc.mouse,function(n){Ns(t,n,function(a){a=Ac(a),t.touching||r[n].call(e,a)})}))}function kx(e,t){ae.pointerEventsSupported?M(ig.pointer,r):ae.touchEventsSupported||M(ig.mouse,r);function r(n){function a(i){i=Ac(i),sg(e,i.target)||(i=xx(e,i),t.domHandlers[n].call(e,i))}Ns(t,n,a,{capture:!0})}}function Ns(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,zN(e.domTarget,t,r,n)}function Qc(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&GN(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var lg=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),Mx=function(e){H(t,e);function t(r,n){var a=e.call(this)||this;return a.__pointerCapturing=!1,a.dom=r,a.painterRoot=n,a._localHandlerScope=new lg(r,Yt),jc&&(a._globalHandlerScope=new lg(document,Jc)),Ax(a,a._localHandlerScope),a}return t.prototype.dispose=function(){Qc(this._localHandlerScope),jc&&Qc(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,jc&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?kx(this,n):Qc(n)}},t}(Ut);const Ex=Mx;var ug=1;ae.hasGlobalWindow&&(ug=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var xs=ug,ef=.4,tf="#333",rf="#ccc",Px="#eee",cg=Mc,fg=5e-5;function Tn(e){return e>fg||e<-fg}var Nn=[],Pa=[],nf=xa(),af=Math.abs,of=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 Tn(this.rotation)||Tn(this.x)||Tn(this.y)||Tn(this.scaleX-1)||Tn(this.scaleY-1)||Tn(this.skewX)||Tn(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(cg(n),this.invTransform=null);return}n=n||xa(),r?this.getLocalTransform(n):cg(n),t&&(r?Da(n,t,n):UN(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Nn);var n=Nn[0]<0?-1:1,a=Nn[1]<0?-1:1,i=((Nn[0]-n)*r+n)/Nn[0]||0,o=((Nn[1]-a)*r+a)/Nn[1]||0;t[0]*=i,t[1]*=i,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||xa(),Ic(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||xa(),Da(Pa,t.invTransform,r),r=Pa);var n=this.originX,a=this.originY;(n||a)&&(nf[4]=n,nf[5]=a,Da(Pa,r,nf),Pa[4]-=n,Pa[5]-=a,r=Pa),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&&Dt(n,n,a),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],a=this.transform;return a&&Dt(n,n,a),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&af(t[0]-1)>1e-10&&af(t[3]-1)>1e-10?Math.sqrt(af(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Ix(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 v=n+s,m=a+l;r[4]=-v*i-d*m*o,r[5]=-m*o-h*v*i}else r[4]=r[5]=0;return r[0]=i,r[3]=o,r[1]=h*i,r[2]=d*o,u&&Pc(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}(),ir=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Ix(e,t){for(var r=0;r<ir.length;r++){var n=ir[r];e[n]=t[n]}}var hg={};function St(e,t){t=t||_n;var r=hg[t];r||(r=hg[t]=new Ei(500));var n=r.get(e);return n==null&&(n=ga.measureText(e,t).width,r.put(e,n)),n}function dg(e,t,r,n){var a=St(e,t),i=lf(t),o=Ri(0,a,r),s=Ia(0,i,n),l=new _e(o,s,a,i);return l}function sf(e,t,r,n){var a=((e||"")+"").split(`
|
|
15
|
+
`),i=a.length;if(i===1)return dg(a[0],t,r,n);for(var o=new _e(0,0,0,0),s=0;s<a.length;s++){var l=dg(a[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function Ri(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Ia(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function lf(e){return St("国",e)}function Xr(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function Ds(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+=Xr(n[0],r.width),u+=Xr(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 uf="__zr_normal__",cf=ir.concat(["ignore"]),Lx=Sr(ir,function(e,t){return e[t]=!0,e},{ignore:!1}),La={},Ox=new _e(0,0,0,0),ff=function(){function e(t){this.id=gv(),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=Ox;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),a||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(La,n,c):Ds(La,n,c),i.x=La.x,i.y=La.y,o=La.align,s=La.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=Xr(f[0],c.width),h=Xr(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 v=n.offset;v&&(i.x+=v[0],i.y+=v[1],u||(i.originX=-v[0],i.originY=-v[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()?rf:tf},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Cr(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,ys(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},G(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(J(t))for(var n=t,a=ye(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!==uf)){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,cf)},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(uf,!1,t)},e.prototype.useState=function(t,r,n,a){var i=t===uf,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){Hr("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),v=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!r&&!this.__inHover&&v&&v.duration>0,v);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];G(r,i),i.textConfig&&(n=n||{},G(n,i.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,a,i,o){var s=!(r&&a);r&&r.textConfig?(this.textConfig=G({},a?this.textConfig:n.textConfig),G(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<cf.length;c++){var f=cf[c],d=i&&Lx[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],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(r||n)[v]: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 of,this._attachComponent(t),this._textContent=t,this.markRedraw()}},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),G(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=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){Hr('Property "'+t+'" is not existed in element '+this.id);return}var i=new qc(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){hf(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){hf(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,a){for(var i=hf(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}();Wt(ff,Ut),Wt(ff,of);function hf(e,t,r,n,a){r=r||{};var i=[];pg(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(v,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 df(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function Rx(e){return it(e[0])}function Bx(e,t,r){if(it(t[r]))if(it(e[r])||(e[r]=[]),ot(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),df(e[r],t[r],n))}else{var a=t[r],i=e[r],o=a.length;if(Rx(a))for(var s=a[0].length,l=0;l<o;l++)i[l]?df(i[l],a[l],s):i[l]=Array.prototype.slice.call(a[l]);else df(i,a,o);i.length=a.length}else e[r]=t[r]}function Vx(e,t){return e===t||it(e)&&it(t)&&$x(e,t)}function $x(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 pg(e,t,r,n,a,i,o,s){for(var l=ye(n),u=a.duration,c=a.delay,f=a.additive,d=a.setToFinal,h=!J(i),v=e.animators,m=[],g=0;g<l.length;g++){var y=l[g],_=n[y];if(_!=null&&r[y]!=null&&(h||i[y]))if(J(_)&&!it(_)&&!is(_)){if(t){s||(r[y]=_,e.updateDuringAnimation(t));continue}pg(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<v.length;S++){var T=v[S];if(T.targetName===t){var C=T.stopTracks(m);if(C){var x=de(v,T);v.splice(x,1)}}}if(a.force||(m=Ye(m,function(D){return!Vx(n[D],r[D])}),w=m.length),w>0||a.force&&!o.length){var b=void 0,N=void 0,A=void 0;if(s){N={},d&&(b={});for(var S=0;S<w;S++){var y=m[S];N[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]=Ii(r[y]),Bx(r,n,y)}}var T=new qc(r,!1,!1,f?Ye(v,function(k){return k.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?N:n,m).delay(c||0),e.addAnimator(T,t),o.push(T)}}const vg=ff;var Oe=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,a=0;a<n.length;a++)if(n[a].name===r)return n[a]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){if(r&&(r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),process.env.NODE_ENV!=="production"&&r.__hostTarget))throw"This elemenet has been used as an attachment";return this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var a=this._children,i=a.indexOf(n);i>=0&&(a.splice(i,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var a=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 _e(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?(_e.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(vg);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 @@
|
|
|
20
20
|
*
|
|
21
21
|
* LICENSE
|
|
22
22
|
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
23
|
-
*/var Vo={},vg={};function $N(e){delete vg[e]}function FN(e){if(!e)return!1;if(typeof e=="string")return _s(e,1)<ef;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,a=0;a<n;a++)r+=_s(t[a].color,1);return r/=n,r<ef}return!1}var zN=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 aN,i=n.renderer||"canvas";if(Vo[i]||(i=ye(Vo)[0]),process.env.NODE_ENV!=="production"&&!Vo[i])throw new Error("Renderer '"+i+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Vo[i](r,o,n,t),l=n.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u=!ae.node&&!ae.worker&&!l?new kN(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 eN(o,s,u,s.root,h),this.animation=new SN({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=FN(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=Ea();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var a=Ea();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,$N(this.id))},e}();function gg(e,t){var r=new zN(vv(),e,t);return vg[r.id]=r,r}function GN(e,t){Vo[e]=t}var mg=1e-4,yg=20;function HN(e){return e.replace(/^\s+|\s+$/g,"")}function qe(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 Te(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)?HN(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),yg),e=(+e).toFixed(t),r?e:+e}function $o(e){return e.sort(function(t,r){return t-r}),e}function ir(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 pf(e)}function pf(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 _g(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 WN(e,t){var r=Sr(e,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,t),a=j(e,function(h){return(isNaN(h)?0:h)/r*n*100}),o=n*100,i=j(a,function(h){return Math.floor(h)}),s=Sr(i,function(h,v){return h+v},0),l=j(a,function(h,v){return h-i[v]});s<o;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=l.length;f<d;++f)l[f]>u&&(u=l[f],c=f);++i[c],l[c]=0,++s}return j(i,function(h){return h/n})}function UN(e,t){var r=Math.max(ir(e),ir(t)),n=e+t;return r>yg?n:Ve(n,r)}function wg(e){var t=Math.PI*2;return(e%t+t)%t}function As(e){return e>-mg&&e<mg}var YN=/^(?:(\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 Tr(e){if(e instanceof Date)return e;if(X(e)){var t=YN.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 qN(e){return Math.pow(10,Ms(e))}function Ms(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 bg(e,t){var r=Ms(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 ks(e){var t=parseFloat(e);return t==e&&(t!==0||!X(e)||e.indexOf("x")<=0)?t:NaN}function Sg(e){return!isNaN(ks(e))}function Cg(){return Math.round(Math.random()*9)}function xg(e,t){return t===0?e:xg(t,e%t)}function Tg(e,t){return e==null?t:t==null?e:e*t/xg(e,t)}var jN="[ECharts] ",Ng={},XN=typeof console<"u"&&console.warn&&console.log;function Es(e,t,r){if(XN){if(r){if(Ng[t])return;Ng[t]=!0}console[e](jN+t)}}function ZN(e,t){Es("log",e,t)}function ze(e,t){Es("warn",e,t)}function Ke(e,t){Es("error",e,t)}function qt(e){process.env.NODE_ENV!=="production"&&Es("warn","DEPRECATED: "+e,!0)}function Ge(e,t,r){process.env.NODE_ENV!=="production"&&qt((r?"["+r+"]":"")+(e+" is deprecated, use "+t+" instead."))}function Ps(){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":_a(a)?"NaN":a instanceof Date?"Date("+a.toISOString()+")":oe(a)?"function () { ... }":bT(a)?a+"":null};r=j(e,function(a){if(X(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 st(e){throw new Error(e)}function Dg(e,t,r){return(t-e)*r+e}var Ag="series\0",KN="\0_ec_\0";function We(e){return e instanceof Array?e:e==null?[]:[e]}function Is(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 Mg=["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 Fo(e){return J(e)&&!U(e)&&!(e instanceof Date)?e.value:e}function JN(e){return J(e)&&!(e instanceof Array)}function QN(e,t,r){var n=r==="normalMerge",a=r==="replaceMerge",o=r==="replaceAll";e=e||[],t=(t||[]).slice();var i=se();k(t,function(l,u){if(!J(l)){t[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!Pg(l.id)&&Eg(l.id),l.name!=null&&!Pg(l.name)&&Eg(l.name))});var s=eD(e,i,r);return(n||a)&&tD(s,e,i,t),n&&rD(s,t),n||a?nD(s,t,a):o&&aD(s,t),oD(s),s}function eD(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"||Oa(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return n}function tD(e,t,r,n){k(n,function(a,o){if(!(!a||a.id==null)){var i=zo(a.id),s=r.get(i);if(s!=null){var l=e[s];ne(!l.newOption,'Duplicated option on id "'+i+'".'),l.newOption=a,l.existing=t[s],n[o]=null}}})}function rD(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)&&!Oa(r)&&!Oa(o)&&kg("name",o,r)){e[a].newOption=r,t[n]=null;return}}})}function nD(e,t,r){k(t,function(n){if(n){for(var a,o=0;(a=e[o])&&(a.newOption||Oa(a.existing)||a.existing&&n.id!=null&&!kg("id",n,a.existing));)o++;a?(a.newOption=n,a.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),o++}})}function aD(e,t){k(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function oD(e){var t=se();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,o=r.newOption,i=r.keyInfo;if(J(o)){if(i.name=o.name!=null?zo(o.name):a?a.name:Ag+n,a)i.id=zo(a.id);else if(o.id!=null)i.id=zo(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 kg(e,t,r){var n=sr(t[e],null),a=sr(r[e],null);return n!=null&&a!=null&&n===a}function zo(e){if(process.env.NODE_ENV!=="production"&&e==null)throw new Error;return sr(e,"")}function sr(e,t){return e==null?t:X(e)?e:xe(e)||as(e)?e+"":t}function Eg(e){process.env.NODE_ENV!=="production"&&ze("`"+e+"` is invalid id or name. Must be a string or number.")}function Pg(e){return as(e)||Sg(e)}function vf(e){var t=e.name;return!!(t&&t.indexOf(Ag))}function Oa(e){return e&&e.id!=null&&zo(e.id).indexOf(KN)===0}function iD(e,t,r){k(e,function(n){var a=n.newOption;J(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=sD(t,a,n.existing,r))})}function sD(e,t,r,n){var a=t.type?t.type:r?r.subType:n.determineSubType(e,t);return a}function Nn(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return U(t.dataIndex)?j(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return U(t.name)?j(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function De(){var e="__ec_inner_"+lD++;return function(t){return t[e]||(t[e]={})}}var lD=Cg();function gf(e,t,r){var n=mf(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,c){var f=Go(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 mf(e,t){var r;if(X(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var a=se(),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)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&de(t.includeMainTypes,c)<0)){i=i||!!c;var d=a.get(c)||a.set(c,{});d[f]=s}}),{mainTypeSpecified:i,queryOptionMap:a,others:o}}var pt={useDefault:!0,enableAll:!1,enableNone:!1},uD={useDefault:!1,enableAll:!0,enableNone:!0};function Go(e,t,r,n){n=n||pt;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?(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=o=i=null),s.models=e.queryComponents({mainType:t,index:a,id:o,name:i}),s)}function Ig(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function cD(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function fD(e){return e==="auto"?ae.domSupported?"html":"richText":e||"html"}function hD(e,t,r,n,a){var o=t==null||t==="auto";if(n==null)return n;if(xe(n)){var i=Dg(r||0,n,a);return Ve(i,o?Math.max(ir(r||0),ir(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,v=u[f],i=Dg(h,v,a);s[f]=Ve(i,o?Math.max(ir(h),ir(v)):t)}}return s}}var dD=".",Dn="___EC__COMPONENT__CONTAINER___",Lg="___EC__EXTENDED_CLASS___";function lr(e){var t={main:"",sub:""};if(e){var r=e.split(dD);t.main=r[0]||"",t.sub=r[1]||""}return t}function pD(e){ne(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function vD(e){return!!(e&&e[Lg])}function yf(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 gD(n)?a=function(o){H(i,o);function i(){return o.apply(this,arguments)||this}return i}(n):(a=function(){(r.$constructor||n).apply(this,arguments)},yT(a,this)),G(a.prototype,r),a[Lg]=!0,a.extend=this.extend,a.superCall=_D,a.superApply=wD,a.superClass=n,a}}function gD(e){return oe(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Og(e,t){e.extend=t.extend}var mD=Math.round(Math.random()*10);function yD(e){var t=["__\0is_clz",mD++].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 _D(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 wD(e,t,r){return this.superClass.prototype[t].apply(e,r)}function Ls(e){var t={};e.registerClass=function(n){var a=n.type||n.prototype.type;if(a){pD(a),n.prototype.type=a;var o=lr(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=lr(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=lr(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=lr(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 Ho(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&&de(a,l)>=0||o&&de(o,l)<0)){var u=n.getShallow(l,t);u!=null&&(i[e[s][0]]=u)}}return i}}var bD=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],SD=Ho(bD),CD=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return SD(this,t,r)},e}(),_f=new Po(50);function xD(e){if(typeof e=="string"){var t=_f.get(e);return t&&t.image}else return e}function Rg(e,t,r,n,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var o=_f.get(e),i={hostEl:r,cb:n,cbPayload:a};return o?(t=o.image,!Os(t)&&o.pending.push(i)):(t=ga.loadImage(e,Bg,Bg),t.__zrImageSrc=e,_f.put(e,t.__cachedImgObj={image:t,pending:[i]})),t}else return e;else return t}function Bg(){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 Os(e){return e&&e.width&&e.height}var wf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function TD(e,t,r,n,a){if(!t)return"";var o=(e+"").split(`
|
|
24
|
-
`);a
|
|
25
|
-
`)}function
|
|
26
|
-
`):[];var d=f.length*s,h=
|
|
27
|
-
`),u=!0),n.accumWidth=v}else{var m=
|
|
28
|
-
`);for(var g=0;g<c.length;g++){var y=c[g],
|
|
29
|
-
`){l&&(s+=l,c+=u),o.push(s),i.push(c),s="",l="",u=0,c=0;continue}var h=bt(d,t),v=n?!1:!ID(d);if(o.length?c+h>r:a+c+h>r){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),o.push(s),i.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),i.push(c),s=d,c=h)):v?(o.push(l),i.push(u),l=d,u=h):(o.push(d),i.push(h));continue}c+=h,v?(l+=d,u+=h):(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(c)),o.length===1&&(c+=a),{accumWidth:c,lines:o,linesWidths:i}}var Sf="__zr_style_"+Math.round(Math.random()*10),An={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Rs={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};An[Sf]=!0;var Gg=["z","z2","invisible"],LD=["invisible"],OD=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=ye(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&&RD(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 _e(0,0,0,0)),n?_e.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 _e(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:G(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=ko,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&ko)},t.prototype.styleUpdated=function(){this.__dirty&=~ko},t.prototype.createStyle=function(r){return is(An,r)},t.prototype.useStyle=function(r){r[Sf]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[Sf]},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,Gg)},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 c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=ye(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 v=ye(u),d=0;d<v.length;d++){var h=v[d];this.style[h]=this.style[h]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var m=this.__inHover?LD:Gg,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,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 G(r,n),r},t.prototype.getAnimationStyleProps=function(){return Rs},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|ko}(),t}(pg),Cf=new _e(0,0,0,0),xf=new _e(0,0,0,0);function RD(e,t,r){return Cf.copy(e.getBoundingRect()),e.transform&&Cf.applyTransform(e.transform),xf.width=t,xf.height=r,!Cf.intersect(xf)}const Mn=OD;var Et=Math.min,Pt=Math.max,Tf=Math.sin,Nf=Math.cos,kn=Math.PI*2,Bs=wa(),Vs=wa(),$s=wa();function Hg(e,t,r,n,a,o){a[0]=Et(e,r),a[1]=Et(t,n),o[0]=Pt(e,r),o[1]=Pt(t,n)}var Wg=[],Ug=[];function BD(e,t,r,n,a,o,i,s,l,u){var c=Hv,f=Fe,d=c(e,r,a,i,Wg);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var v=f(e,r,a,i,Wg[h]);l[0]=Et(v,l[0]),u[0]=Pt(v,u[0])}d=c(t,n,o,s,Ug);for(var h=0;h<d;h++){var m=f(t,n,o,s,Ug[h]);l[1]=Et(m,l[1]),u[1]=Pt(m,u[1])}l[0]=Et(e,l[0]),u[0]=Pt(e,u[0]),l[0]=Et(i,l[0]),u[0]=Pt(i,u[0]),l[1]=Et(t,l[1]),u[1]=Pt(t,u[1]),l[1]=Et(s,l[1]),u[1]=Pt(s,u[1])}function VD(e,t,r,n,a,o,i,s){var l=Uv,u=Ze,c=Pt(Et(l(e,r,a),1),0),f=Pt(Et(l(t,n,o),1),0),d=u(e,r,a,c),h=u(t,n,o,f);i[0]=Et(e,a,d),i[1]=Et(t,o,h),s[0]=Pt(e,a,d),s[1]=Pt(t,o,h)}function $D(e,t,r,n,a,o,i,s,l){var u=Sa,c=Ca,f=Math.abs(a-o);if(f%kn<1e-4&&f>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Bs[0]=Nf(a)*r+e,Bs[1]=Tf(a)*n+t,Vs[0]=Nf(o)*r+e,Vs[1]=Tf(o)*n+t,u(s,Bs,Vs),c(l,Bs,Vs),a=a%kn,a<0&&(a=a+kn),o=o%kn,o<0&&(o=o+kn),a>o&&!i?o+=kn:a<o&&i&&(a+=kn),i){var d=o;o=a,a=d}for(var h=0;h<o;h+=Math.PI/2)h>a&&($s[0]=Nf(h)*r+e,$s[1]=Tf(h)*n+t,u(s,$s,s),c(l,$s,l))}var we={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},En=[],Pn=[],ur=[],Zr=[],cr=[],fr=[],Df=Math.min,Af=Math.max,In=Math.cos,Ln=Math.sin,Nr=Math.abs,Mf=Math.PI,Kr=Mf*2,kf=typeof Float32Array<"u",Wo=[];function Ef(e){var t=Math.round(e/Mf*1e8)/1e8;return t%2*Mf}function Yg(e,t){var r=Ef(e[0]);r<0&&(r+=Kr);var n=r-e[0],a=e[1];a+=n,!t&&a-r>=Kr?a=r+Kr:t&&r-a>=Kr?a=r-Kr:!t&&r>a?a=r+(Kr-Ef(r-a)):t&&r<a&&(a=r-(Kr-Ef(a-r))),e[0]=r,e[1]=a}var On=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=Nr(n/Ns/t)||0,this._uy=Nr(n/Ns/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(we.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=Nr(t-this._xi),a=Nr(r-this._yi),o=n>this._ux||a>this._uy;if(this.addData(we.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(we.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(we.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,Yg(Wo,i),a=Wo[0],o=Wo[1];var s=o-a;return this.addData(we.A,t,r,n,n,a,s,0,i?0:1),this._ctx&&this._ctx.arc(t,r,n,a,o,i),this._xi=In(o)*n+t,this._yi=Ln(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(we.R,t,r,n,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(we.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)&&kf&&(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();kf&&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 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,kf&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){ur[0]=ur[1]=cr[0]=cr[1]=Number.MAX_VALUE,Zr[0]=Zr[1]=fr[0]=fr[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 we.M:r=a=t[i++],n=o=t[i++],cr[0]=a,cr[1]=o,fr[0]=a,fr[1]=o;break;case we.L:Hg(r,n,t[i],t[i+1],cr,fr),r=t[i++],n=t[i++];break;case we.C:BD(r,n,t[i++],t[i++],t[i++],t[i++],t[i],t[i+1],cr,fr),r=t[i++],n=t[i++];break;case we.Q:VD(r,n,t[i++],t[i++],t[i],t[i+1],cr,fr),r=t[i++],n=t[i++];break;case we.A:var u=t[i++],c=t[i++],f=t[i++],d=t[i++],h=t[i++],v=t[i++]+h;i+=1;var m=!t[i++];l&&(a=In(h)*f+u,o=Ln(h)*d+c),$D(u,c,f,d,h,v,m,cr,fr),r=In(v)*f+u,n=Ln(v)*d+c;break;case we.R:a=r=t[i++],o=n=t[i++];var g=t[i++],y=t[i++];Hg(a,o,a+g,o+y,cr,fr);break;case we.Z:r=a,n=o;break}Sa(ur,ur,cr),Ca(Zr,Zr,fr)}return i===0&&(ur[0]=ur[1]=Zr[0]=Zr[1]=0),new _e(ur[0],ur[1],Zr[0]-ur[0],Zr[1]-ur[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,c=0,f=0,d=0;d<r;){var h=t[d++],v=d===1;v&&(o=t[d],i=t[d+1],s=o,l=i);var m=-1;switch(h){case we.M:o=s=t[d++],i=l=t[d++];break;case we.L:{var g=t[d++],y=t[d++],w=g-o,_=y-i;(Nr(w)>n||Nr(_)>a||d===r-1)&&(m=Math.sqrt(w*w+_*_),o=g,i=y);break}case we.C:{var S=t[d++],x=t[d++],g=t[d++],y=t[d++],C=t[d++],N=t[d++];m=iN(o,i,S,x,g,y,C,N,10),o=C,i=N;break}case we.Q:{var S=t[d++],x=t[d++],g=t[d++],y=t[d++];m=uN(o,i,S,x,g,y,10),o=g,i=y;break}case we.A:var b=t[d++],T=t[d++],M=t[d++],D=t[d++],A=t[d++],P=t[d++],E=P+A;d+=1,v&&(s=In(A)*M+b,l=Ln(A)*D+T),m=Af(M,D)*Df(Kr,Math.abs(P)),o=In(E)*M+b,i=Ln(E)*D+T;break;case we.R:{s=o=t[d++],l=i=t[d++];var I=t[d++],L=t[d++];m=I*2+L*2;break}case we.Z:{var w=s-o,_=l-i;m=Math.sqrt(w*w+_*_),o=s,i=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,o=this._uy,i=this._len,s,l,u,c,f,d,h=r<1,v,m,g=0,y=0,w,_=0,S,x;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,m=this._pathLen,w=r*m,!w)))e:for(var C=0;C<i;){var N=n[C++],b=C===1;switch(b&&(u=n[C],c=n[C+1],s=u,l=c),N!==we.L&&_>0&&(t.lineTo(S,x),_=0),N){case we.M:s=u=n[C++],l=c=n[C++],t.moveTo(u,c);break;case we.L:{f=n[C++],d=n[C++];var T=Nr(f-u),M=Nr(d-c);if(T>a||M>o){if(h){var D=v[y++];if(g+D>w){var A=(w-g)/D;t.lineTo(u*(1-A)+f*A,c*(1-A)+d*A);break e}g+=D}t.lineTo(f,d),u=f,c=d,_=0}else{var P=T*T+M*M;P>_&&(S=f,x=d,_=P)}break}case we.C:{var E=n[C++],I=n[C++],L=n[C++],R=n[C++],B=n[C++],V=n[C++];if(h){var D=v[y++];if(g+D>w){var A=(w-g)/D;ps(u,E,L,B,A,En),ps(c,I,R,V,A,Pn),t.bezierCurveTo(En[1],Pn[1],En[2],Pn[2],En[3],Pn[3]);break e}g+=D}t.bezierCurveTo(E,I,L,R,B,V),u=B,c=V;break}case we.Q:{var E=n[C++],I=n[C++],L=n[C++],R=n[C++];if(h){var D=v[y++];if(g+D>w){var A=(w-g)/D;vs(u,E,L,A,En),vs(c,I,R,A,Pn),t.quadraticCurveTo(En[1],Pn[1],En[2],Pn[2]);break e}g+=D}t.quadraticCurveTo(E,I,L,R),u=L,c=R;break}case we.A:var W=n[C++],q=n[C++],Q=n[C++],ue=n[C++],z=n[C++],he=n[C++],ce=n[C++],ke=!n[C++],He=Q>ue?Q:ue,Ie=Nr(Q-ue)>.001,Ae=z+he,re=!1;if(h){var D=v[y++];g+D>w&&(Ae=z+he*(w-g)/D,re=!0),g+=D}if(Ie&&t.ellipse?t.ellipse(W,q,Q,ue,ce,z,Ae,ke):t.arc(W,q,He,z,Ae,ke),re)break e;b&&(s=In(z)*Q+W,l=Ln(z)*ue+q),u=In(Ae)*Q+W,c=Ln(Ae)*ue+q;break;case we.R:s=u=n[C],l=c=n[C+1],f=n[C++],d=n[C++];var ee=n[C++],ft=n[C++];if(h){var D=v[y++];if(g+D>w){var Le=w-g;t.moveTo(f,d),t.lineTo(f+Df(Le,ee),d),Le-=ee,Le>0&&t.lineTo(f+ee,d+Df(Le,ft)),Le-=ft,Le>0&&t.lineTo(f+Af(ee-Le,0),d+ft),Le-=ee,Le>0&&t.lineTo(f,d+Af(ft-Le,0));break e}g+=D}t.rect(f,d,ee,ft);break;case we.Z:if(h){var D=v[y++];if(g+D>w){var A=(w-g)/D;t.lineTo(u*(1-A)+s*A,c*(1-A)+l*A);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=we,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function Ra(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 c=l*o-i+u,f=c*c/(l*l+1);return f<=s/2*s/2}function FD(e,t,r,n,a,o,i,s,l,u,c){if(l===0)return!1;var f=l;if(c>t+f&&c>n+f&&c>o+f&&c>s+f||c<t-f&&c<n-f&&c<o-f&&c<s-f||u>e+f&&u>r+f&&u>a+f&&u>i+f||u<e-f&&u<r-f&&u<a-f&&u<i-f)return!1;var d=oN(e,t,r,n,a,o,i,s,u,c,null);return d<=f/2}function zD(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 c=lN(e,t,r,n,a,o,s,l,null);return c<=u/2}var qg=Math.PI*2;function Fs(e){return e%=qg,e<0&&(e+=qg),e}var Uo=Math.PI*2;function GD(e,t,r,n,a,o,i,s,l){if(i===0)return!1;var u=i;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)%Uo<1e-4)return!0;if(o){var f=n;n=Fs(a),a=Fs(f)}else n=Fs(n),a=Fs(a);n>a&&(a+=Uo);var d=Math.atan2(l,s);return d<0&&(d+=Uo),d>=n&&d<=a||d+Uo>=n&&d+Uo<=a}function Rn(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 Jr=On.CMD,Bn=Math.PI*2,HD=1e-4;function WD(e,t){return Math.abs(e-t)<HD}var lt=[-1,-1,-1],It=[-1,-1];function UD(){var e=It[0];It[0]=It[1],It[1]=e}function YD(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 c=ds(t,n,o,s,u,lt);if(c===0)return 0;for(var f=0,d=-1,h=void 0,v=void 0,m=0;m<c;m++){var g=lt[m],y=g===0||g===1?.5:1,w=Fe(e,r,a,i,g);w<l||(d<0&&(d=Hv(t,n,o,s,It),It[1]<It[0]&&d>1&&UD(),h=Fe(t,n,o,s,It[0]),d>1&&(v=Fe(t,n,o,s,It[1]))),d===2?g<It[0]?f+=h<t?y:-y:g<It[1]?f+=v<h?y:-y:f+=s<v?y:-y:g<It[0]?f+=h<t?y:-y:f+=s<h?y:-y)}return f}function qD(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=sN(t,n,o,s,lt);if(l===0)return 0;var u=Uv(t,n,o);if(u>=0&&u<=1){for(var c=0,f=Ze(t,n,o,u),d=0;d<l;d++){var h=lt[d]===0||lt[d]===1?.5:1,v=Ze(e,r,a,lt[d]);v<i||(lt[d]<u?c+=f<t?h:-h:c+=o<f?h:-h)}return c}else{var h=lt[0]===0||lt[0]===1?.5:1,v=Ze(e,r,a,lt[0]);return v<i?0:o<t?h:-h}}function jD(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);lt[0]=-l,lt[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=Bn-1e-4){n=0,a=Bn;var c=o?1:-1;return i>=lt[0]+e&&i<=lt[1]+e?c:0}if(n>a){var f=n;n=a,a=f}n<0&&(n+=Bn,a+=Bn);for(var d=0,h=0;h<2;h++){var v=lt[h];if(v+e>i){var m=Math.atan2(s,v),c=o?1:-1;m<0&&(m=Bn+m),(m>=n&&m<=a||m+Bn>=n&&m+Bn<=a)&&(m>Math.PI/2&&m<Math.PI*1.5&&(c=-c),d+=c)}}return d}function jg(e,t,r,n,a){for(var o=e.data,i=e.len(),s=0,l=0,u=0,c=0,f=0,d,h,v=0;v<i;){var m=o[v++],g=v===1;switch(m===Jr.M&&v>1&&(r||(s+=Rn(l,u,c,f,n,a))),g&&(l=o[v],u=o[v+1],c=l,f=u),m){case Jr.M:c=o[v++],f=o[v++],l=c,u=f;break;case Jr.L:if(r){if(Ra(l,u,o[v],o[v+1],t,n,a))return!0}else s+=Rn(l,u,o[v],o[v+1],n,a)||0;l=o[v++],u=o[v++];break;case Jr.C:if(r){if(FD(l,u,o[v++],o[v++],o[v++],o[v++],o[v],o[v+1],t,n,a))return!0}else s+=YD(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 Jr.Q:if(r){if(zD(l,u,o[v++],o[v++],o[v],o[v+1],t,n,a))return!0}else s+=qD(l,u,o[v++],o[v++],o[v],o[v+1],n,a)||0;l=o[v++],u=o[v++];break;case Jr.A:var y=o[v++],w=o[v++],_=o[v++],S=o[v++],x=o[v++],C=o[v++];v+=1;var N=!!(1-o[v++]);d=Math.cos(x)*_+y,h=Math.sin(x)*S+w,g?(c=d,f=h):s+=Rn(l,u,d,h,n,a);var b=(n-y)*S/_+y;if(r){if(GD(y,w,S,x,x+C,N,t,b,a))return!0}else s+=jD(y,w,S,x,x+C,N,b,a);l=Math.cos(x+C)*_+y,u=Math.sin(x+C)*S+w;break;case Jr.R:c=l=o[v++],f=u=o[v++];var T=o[v++],M=o[v++];if(d=c+T,h=f+M,r){if(Ra(c,f,d,f,t,n,a)||Ra(d,f,d,h,t,n,a)||Ra(d,h,c,h,t,n,a)||Ra(c,h,c,f,t,n,a))return!0}else s+=Rn(d,f,d,h,n,a),s+=Rn(c,h,c,f,n,a);break;case Jr.Z:if(r){if(Ra(l,u,c,f,t,n,a))return!0}else s+=Rn(l,u,c,f,n,a);l=c,u=f;break}}return!r&&!WD(u,f)&&(s+=Rn(l,u,c,f,n,a)||0),s!==0}function XD(e,t,r){return jg(e,0,!1,t,r)}function ZD(e,t,r,n){return jg(e,t,!0,r,n)}var Xg=pe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},An),KD={style:pe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Rs.style)},Pf=or.concat(["invisible","culling","z","z2","zlevel","parent"]),JD=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){r.buildPath(l,r.shape)}),a.silent=!0;var 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<Pf.length;++s)a[Pf[s]]=this[Pf[s]];a.__dirty|=wt}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=ye(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?G(this.style,s):this.useStyle(s):i==="shape"?G(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(X(r)){var n=_s(r,0);return n>.5?tf:n>.2?EN:rf}else if(r)return rf}return tf},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(X(n)){var a=this.__zr,o=!!(a&&a.isDarkMode()),i=_s(r,0)<ef;if(o===i)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 On(!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&Aa)&&(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 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),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)),ZD(s,l/u,r,n)))return!0}if(this.hasFill())return XD(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Aa,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=n:G(a,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Aa)},t.prototype.createStyle=function(r){return is(Xg,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=G({},this.shape))},t.prototype._applyStateObj=function(r,n,a,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=G({},a.shape),G(u,n.shape)):(u=G({},o?this.shape:a.shape),G(u,n.shape)):l&&(u=a.shape),u)if(i){this.shape=G({},this.shape);for(var c={},f=ye(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,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 KD},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(o){H(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 fe(r.style)},i.prototype.getDefaultShape=function(){return fe(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|ko|Aa}(),t}(Mn);const me=JD;var QD=pe({strokeFirst:!0,font:_n,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Xg),Zg=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return is(QD,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=sf(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}(Mn);Zg.prototype.type="tspan";const If=Zg;var eA=pe({x:0,y:0},An),tA={style:pe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Rs.style)};function rA(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Kg=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return is(eA,r)},t.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var o=rA(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 tA},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new _e(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Mn);Kg.prototype.type="image";const Qr=Kg;function nA(e,t){var r=t.x,n=t.y,a=t.width,o=t.height,i=t.r,s,l,u,c;a<0&&(r=r+a,a=-a),o<0&&(n=n+o,o=-o),typeof i=="number"?s=l=u=c=i:i instanceof Array?i.length===1?s=l=u=c=i[0]:i.length===2?(s=u=i[0],l=c=i[1]):i.length===3?(s=i[0],l=c=i[1],u=i[2]):(s=i[0],l=i[1],u=i[2],c=i[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>o&&(f=l+u,l*=o/f,u*=o/f),s+c>o&&(f=s+c,s*=o/f,c*=o/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+o-u),u!==0&&e.arc(r+a-u,n+o-u,u,0,Math.PI/2),e.lineTo(r+c,n+o),c!==0&&e.arc(r+c,n+o-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 Ba=Math.round;function Jg(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&&(Ba(n*2)===Ba(a*2)&&(e.x1=e.x2=Vn(n,s,!0)),Ba(o*2)===Ba(i*2)&&(e.y1=e.y2=Vn(o,s,!0))),e}}function Qg(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=Vn(n,s,!0),e.y=Vn(a,s,!0),e.width=Math.max(Vn(n+o,s,!1)-e.x,o===0?0:1),e.height=Math.max(Vn(a+i,s,!1)-e.y,i===0?0:1)),e}}function Vn(e,t,r){if(!t)return e;var n=Ba(e*2);return(n+Ba(t))%2===0?n/2:(n+(r?1:-1))/2}var aA=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),oA={},em=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new aA},t.prototype.buildPath=function(r,n){var a,o,i,s;if(this.subPixelOptimize){var l=Qg(oA,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?nA(r,n):r.rect(a,o,i,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(me);em.prototype.type="rect";const Pe=em;var tm={fill:"#000"},rm=2,iA={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},Rs.style)},nm=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=tm,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,fA(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 _e(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||tm},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 G(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=ye(n),o=0;o<a.length;o++){var i=a[o];r[i]=r[i]||{},G(r[i],n[i])}},t.prototype.getAnimationStyleProps=function(){return iA},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||_n,a=r.padding,o=cm(r),i=DD(o,r),s=Lf(r),l=!!r.backgroundColor,u=i.outerHeight,c=i.outerWidth,f=i.contentWidth,d=i.lines,h=i.lineHeight,v=this._defaultStyle,m=r.x||0,g=r.y||0,y=r.align||v.align||"left",w=r.verticalAlign||v.verticalAlign||"top",_=m,S=Ia(g,i.contentHeight,w);if(s||a){var x=Bo(m,c,y),C=Ia(g,u,w);s&&this._renderBackground(r,r,x,C,c,u)}S+=h/2,a&&(_=um(m,y,a),w==="top"?S+=a[0]:w==="bottom"&&(S-=a[2]));for(var N=0,b=!1,T=lm("fill"in r?r.fill:(b=!0,v.fill)),M=sm("stroke"in r?r.stroke:!l&&(!v.autoStroke||b)?(N=rm,v.stroke):null),D=r.textShadowBlur>0,A=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),P=i.calculatedLineHeight,E=0;E<d.length;E++){var I=this._getOrCreateChild(If),L=I.createStyle();I.useStyle(L),L.text=d[E],L.x=_,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=M,L.fill=T,M&&(L.lineWidth=r.lineWidth||N,L.lineDash=r.lineDash,L.lineDashOffset=r.lineDashOffset||0),L.font=n,om(L,r),S+=h,A&&I.setBoundingRect(new _e(Bo(L.x,r.width,L.textAlign),Ia(L.y,P,L.textBaseline),f,P))}},t.prototype._updateRichTexts=function(){var r=this.style,n=cm(r),a=kD(n,r),o=a.width,i=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,v=Bo(u,i,d),m=Ia(c,s,h),g=v,y=m;l&&(g+=l[3],y+=l[0]);var w=g+o;Lf(r)&&this._renderBackground(r,r,v,m,i,s);for(var _=!!r.backgroundColor,S=0;S<a.lines.length;S++){for(var x=a.lines[S],C=x.tokens,N=C.length,b=x.lineHeight,T=x.width,M=0,D=g,A=w,P=N-1,E=void 0;M<N&&(E=C[M],!E.align||E.align==="left");)this._placeToken(E,r,b,y,D,"left",_),T-=E.width,D+=E.width,M++;for(;P>=0&&(E=C[P],E.align==="right");)this._placeToken(E,r,b,y,A,"right",_),T-=E.width,A-=E.width,P--;for(D+=(o-(D-g)-(w-A)-T)/2;M<=P;)E=C[M],this._placeToken(E,r,b,y,D+E.width/2,"center",_),D+=E.width,M++;y+=b}},t.prototype._placeToken=function(r,n,a,o,i,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=o+a/2;c==="top"?f=o+r.height/2:c==="bottom"&&(f=o+a-r.height/2);var d=!r.isLineHolder&&Lf(u);d&&this._renderBackground(u,n,s==="right"?i-r.width:s==="center"?i-r.width/2:i,f-r.height/2,r.width,r.height);var h=!!u.backgroundColor,v=r.textPadding;v&&(i=um(i,s,v),f-=r.height/2-v[0]-r.innerHeight/2);var m=this._getOrCreateChild(If),g=m.createStyle();m.useStyle(g);var y=this._defaultStyle,w=!1,_=0,S=lm("fill"in u?u.fill:"fill"in n?n.fill:(w=!0,y.fill)),x=sm("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!y.autoStroke||w)?(_=rm,y.stroke):null),C=u.textShadowBlur>0||n.textShadowBlur>0;g.text=r.text,g.x=i,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||_n,g.opacity=Ur(u.opacity,n.opacity,1),om(g,u),x&&(g.lineWidth=Ur(u.lineWidth,n.lineWidth,_),g.lineDash=ie(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=x),S&&(g.fill=S);var N=r.contentWidth,b=r.contentHeight;m.setBoundingRect(new _e(Bo(g.x,N,g.textAlign),Ia(g.y,b,g.textBaseline),N,b))},t.prototype._renderBackground=function(r,n,a,o,i,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,d=l&&!f,h=r.borderRadius,v=this,m,g;if(d||r.lineHeight||u&&c){m=this._getOrCreateChild(Pe),m.useStyle(m.createStyle()),m.style.fill=null;var y=m.shape;y.x=a,y.y=o,y.width=i,y.height=s,y.r=h,m.dirtyShape()}if(d){var w=m.style;w.fill=l||null,w.fillOpacity=ie(r.fillOpacity,1)}else if(f){g=this._getOrCreateChild(Qr),g.onload=function(){v.dirtyStyle()};var _=g.style;_.image=l.image,_.x=a,_.y=o,_.width=i,_.height=s}if(u&&c){var w=m.style;w.lineWidth=u,w.stroke=c,w.strokeOpacity=ie(r.strokeOpacity,1),w.lineDash=r.borderDash,w.lineDashOffset=r.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(w.strokeFirst=!0,w.lineWidth*=2)}var S=(m||g).style;S.shadowBlur=r.shadowBlur||0,S.shadowColor=r.shadowColor||"transparent",S.shadowOffsetX=r.shadowOffsetX||0,S.shadowOffsetY=r.shadowOffsetY||0,S.opacity=Ur(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return cA(r)&&(n=[r.fontStyle,r.fontWeight,uA(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&nr(n)||r.textFont||r.font},t}(Mn),sA={left:!0,right:1,center:1},lA={top:1,bottom:1,middle:1},am=["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)?dc+"px":e+"px"}function om(e,t){for(var r=0;r<am.length;r++){var n=am[r],a=t[n];a!=null&&(e[n]=a)}}function cA(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function fA(e){return im(e),k(e.rich,im),e}function im(e){if(e){e.font=nm.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||sA[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||lA[r]?r:"top";var n=e.padding;n&&(e.padding=mv(e.padding))}}function sm(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function lm(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function um(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function cm(e){var t=e.text;return t!=null&&(t+=""),t}function Lf(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const Ue=nm;var ge=De(),hA=function(e,t,r,n){if(n){var a=ge(n);a.dataIndex=r,a.dataType=t,a.seriesIndex=e,a.ssrType="chart",n.type==="group"&&n.traverse(function(o){var i=ge(o);i.seriesIndex=e,i.dataIndex=r,i.dataType=t,i.ssrType="chart"})}},fm=1,hm={},dm=De(),Of=De(),Rf=0,zs=1,Gs=2,vt=["emphasis","blur","select"],Hs=["normal","emphasis","blur","select"],dA=10,pA=9,$n="highlight",Ws="downplay",Yo="select",Us="unselect",qo="toggleSelect";function Va(e){return e!=null&&e!=="none"}function Ys(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function pm(e){Ys(e,"emphasis",Gs)}function vm(e){e.hoverState===Gs&&Ys(e,"normal",Rf)}function Bf(e){Ys(e,"blur",zs)}function gm(e){e.hoverState===zs&&Ys(e,"normal",Rf)}function vA(e){e.selected=!0}function gA(e){e.selected=!1}function mm(e,t,r){t(e,r)}function Dr(e,t,r){mm(e,t,r),e.isGroup&&e.traverse(function(n){mm(n,t,r)})}function ym(e,t){switch(t){case"emphasis":e.hoverState=Gs;break;case"normal":e.hoverState=Rf;break;case"blur":e.hoverState=zs;break;case"select":e.selected=!0}}function mA(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 yA(e,t,r,n){var a=r&&de(r,"select")>=0,o=!1;if(e instanceof me){var i=dm(e),s=a&&i.selectFill||i.normalFill,l=a&&i.selectStroke||i.normalStroke;if(Va(s)||Va(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(o=!0,n=G({},n),u=G({},u),u.fill=s):!Va(u.fill)&&Va(s)?(o=!0,n=G({},n),u=G({},u),u.fill=Qv(s)):!Va(u.stroke)&&Va(l)&&(o||(n=G({},n),u=G({},u)),u.stroke=Qv(l)),n.style=u}}if(n&&n.z2==null){o||(n=G({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??dA)}return n}function _A(e,t,r){if(r&&r.z2==null){r=G({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??pA)}return r}function wA(e,t,r){var n=de(e.currentStates,t)>=0,a=e.style.opacity,o=n?null:mA(e,["opacity"],t,{opacity:1});r=r||{};var i=r.style||{};return i.opacity==null&&(r=G({},r),i=G({opacity:n?a:o.opacity*.1},i),r.style=i),r}function Vf(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return yA(this,e,t,r);if(e==="blur")return wA(this,e,r);if(e==="select")return _A(this,e,r)}return r}function _m(e){e.stateProxy=Vf;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Vf),r&&(r.stateProxy=Vf)}function wm(e,t){!Tm(e,t)&&!e.__highByOuter&&Dr(e,pm)}function bm(e,t){!Tm(e,t)&&!e.__highByOuter&&Dr(e,vm)}function jo(e,t){e.__highByOuter|=1<<(t||0),Dr(e,pm)}function Xo(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Dr(e,vm)}function Sm(e){Dr(e,Bf)}function $f(e){Dr(e,gm)}function Cm(e){Dr(e,vA)}function xm(e){Dr(e,gA)}function Tm(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Nm(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(a,o){var i=Of(o),s=a==="series",l=s?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!s&&n.push(l),i.isBlured&&(l.group.traverse(function(u){gm(u)}),s&&r.push(o)),i.isBlured=!1}),k(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,t)})}function Ff(e,t,r,n){var a=n.getModel();r=r||"coordinateSystem";function o(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&$f(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 c=i===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"||Bf(g)}),at(t))o(u.getData(),t);else if(J(t))for(var v=ye(t),m=0;m<v.length;m++)o(u.getData(v[m]),t[v[m]]);l.push(u),Of(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 zf(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){Of(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(o){Bf(o)})}}}function bA(e,t,r){var n=e.seriesIndex,a=e.getData(t.dataType);if(!a){process.env.NODE_ENV!=="production"&&Ke("Unknown dataType "+t.dataType);return}var o=Nn(a,t);o=(U(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=ge(i);Ff(n,u.focus,u.blurScope,r)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&Ff(n,c,f,r)}}function Gf(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"&&!$a(s[u])&&Ke("param should be highDownDispatcher"),ge(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function SA(e,t,r){process.env.NODE_ENV!=="production"&&!$a(e)&&Ke("param should be highDownDispatcher");var n=ge(e),a=Gf(n.componentMainType,n.componentIndex,n.componentHighDownName,r),o=a.dispatchers,i=a.focusSelf;o?(i&&zf(n.componentMainType,n.componentIndex,r),k(o,function(s){return wm(s,t)})):(Ff(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&zf(n.componentMainType,n.componentIndex,r),wm(e,t))}function CA(e,t,r){process.env.NODE_ENV!=="production"&&!$a(e)&&Ke("param should be highDownDispatcher"),Nm(r);var n=ge(e),a=Gf(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?k(a,function(o){return bm(o,t)}):bm(e,t)}function xA(e,t,r){if(Hf(t)){var n=t.dataType,a=e.getData(n),o=Nn(a,t);U(o)||(o=[o]),e[t.type===qo?"toggleSelect":t.type===Yo?"select":"unselect"](o,n)}}function Dm(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)?Cm(o):xm(o)})})}function TA(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 qs(e,t,r){Mm(e,!0),Dr(e,_m),DA(e,t,r)}function NA(e){Mm(e,!1)}function Fn(e,t,r,n){n?NA(e):qs(e,t,r)}function DA(e,t,r){var n=ge(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var Am=["emphasis","blur","select"],AA={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function js(e,t,r,n){r=r||"itemStyle";for(var a=0;a<Am.length;a++){var o=Am[a],i=t.getModel([o,r]),s=e.ensureState(o);s.style=n?n(i):i[AA[r]]()}}function Mm(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 $a(e){return!!(e&&e.__highDownDispatcher)}function MA(e){var t=hm[e];return t==null&&fm<=32&&(t=hm[e]=fm++),t}function Hf(e){var t=e.type;return t===Yo||t===Us||t===qo}function km(e){var t=e.type;return t===$n||t===Ws}function kA(e){var t=dm(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 Fa=On.CMD,EA=[[],[],[]],Em=Math.sqrt,PA=Math.atan2;function IA(e,t){if(t){var r=e.data,n=e.len(),a,o,i,s,l,u,c=Fa.M,f=Fa.C,d=Fa.L,h=Fa.R,v=Fa.A,m=Fa.Q;for(i=0,s=0;i<n;){switch(a=r[i++],s=i,o=0,a){case c:o=1;break;case d:o=1;break;case f:o=3;break;case m:o=2;break;case v:var g=t[4],y=t[5],w=Em(t[0]*t[0]+t[1]*t[1]),_=Em(t[2]*t[2]+t[3]*t[3]),S=PA(-t[1]/_,t[0]/w);r[i]*=w,r[i++]+=g,r[i]*=_,r[i++]+=y,r[i++]*=w,r[i++]*=_,r[i++]+=S,r[i++]+=S,i+=2,s=i;break;case h:u[0]=r[i++],u[1]=r[i++],Nt(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[i++],u[1]+=r[i++],Nt(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<o;l++){var x=EA[l];x[0]=r[i++],x[1]=r[i++],Nt(x,x,t),r[s++]=x[0],r[s++]=x[1]}}e.increaseVersion()}}var Wf=Math.sqrt,Xs=Math.sin,Zs=Math.cos,Zo=Math.PI;function Pm(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Uf(e,t){return(e[0]*t[0]+e[1]*t[1])/(Pm(e)*Pm(t))}function Im(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Uf(e,t))}function Lm(e,t,r,n,a,o,i,s,l,u,c){var f=l*(Zo/180),d=Zs(f)*(e-r)/2+Xs(f)*(t-n)/2,h=-1*Xs(f)*(e-r)/2+Zs(f)*(t-n)/2,v=d*d/(i*i)+h*h/(s*s);v>1&&(i*=Wf(v),s*=Wf(v));var m=(a===o?-1:1)*Wf((i*i*(s*s)-i*i*(h*h)-s*s*(d*d))/(i*i*(h*h)+s*s*(d*d)))||0,g=m*i*h/s,y=m*-s*d/i,w=(e+r)/2+Zs(f)*g-Xs(f)*y,_=(t+n)/2+Xs(f)*g+Zs(f)*y,S=Im([1,0],[(d-g)/i,(h-y)/s]),x=[(d-g)/i,(h-y)/s],C=[(-1*d-g)/i,(-1*h-y)/s],N=Im(x,C);if(Uf(x,C)<=-1&&(N=Zo),Uf(x,C)>=1&&(N=0),N<0){var b=Math.round(N/Zo*1e6)/1e6;N=Zo*2+b%2*Zo}c.addData(u,w,_,i,s,S,N,f,o)}var LA=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,OA=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function RA(e){var t=new On;if(!e)return t;var r=0,n=0,a=r,o=n,i,s=On.CMD,l=e.match(LA);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(OA)||[],v=h.length,m=0;m<v;m++)h[m]=parseFloat(h[m]);for(var g=0;g<v;){var y=void 0,w=void 0,_=void 0,S=void 0,x=void 0,C=void 0,N=void 0,b=r,T=n,M=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,o=n,f="l";break;case"M":r=h[g++],n=h[g++],d=s.M,t.addData(d,r,n),a=r,o=n,f="L";break;case"h":r+=h[g++],d=s.L,t.addData(d,r,n);break;case"H":r=h[g++],d=s.L,t.addData(d,r,n);break;case"v":n+=h[g++],d=s.L,t.addData(d,r,n);break;case"V":n=h[g++],d=s.L,t.addData(d,r,n);break;case"C":d=s.C,t.addData(d,h[g++],h[g++],h[g++],h[g++],h[g++],h[g++]),r=h[g-2],n=h[g-1];break;case"c":d=s.C,t.addData(d,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n,h[g++]+r,h[g++]+n),r+=h[g-2],n+=h[g-1];break;case"S":y=r,w=n,M=t.len(),D=t.data,i===s.C&&(y+=r-D[M-4],w+=n-D[M-3]),d=s.C,b=h[g++],T=h[g++],r=h[g++],n=h[g++],t.addData(d,y,w,b,T,r,n);break;case"s":y=r,w=n,M=t.len(),D=t.data,i===s.C&&(y+=r-D[M-4],w+=n-D[M-3]),d=s.C,b=r+h[g++],T=n+h[g++],r+=h[g++],n+=h[g++],t.addData(d,y,w,b,T,r,n);break;case"Q":b=h[g++],T=h[g++],r=h[g++],n=h[g++],d=s.Q,t.addData(d,b,T,r,n);break;case"q":b=h[g++]+r,T=h[g++]+n,r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,b,T,r,n);break;case"T":y=r,w=n,M=t.len(),D=t.data,i===s.Q&&(y+=r-D[M-4],w+=n-D[M-3]),r=h[g++],n=h[g++],d=s.Q,t.addData(d,y,w,r,n);break;case"t":y=r,w=n,M=t.len(),D=t.data,i===s.Q&&(y+=r-D[M-4],w+=n-D[M-3]),r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,y,w,r,n);break;case"A":_=h[g++],S=h[g++],x=h[g++],C=h[g++],N=h[g++],b=r,T=n,r=h[g++],n=h[g++],d=s.A,Lm(b,T,r,n,C,N,_,S,x,d,t);break;case"a":_=h[g++],S=h[g++],x=h[g++],C=h[g++],N=h[g++],b=r,T=n,r+=h[g++],n+=h[g++],d=s.A,Lm(b,T,r,n,C,N,_,S,x,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),r=a,n=o),i=d}return t.toStatic(),t}var Om=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(me);function Rm(e){return e.setData!=null}function Bm(e,t){var r=RA(e),n=G({},t);return n.buildPath=function(a){if(Rm(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){IA(r,a),this.dirtyShape()},n}function BA(e,t){return new Om(Bm(e,t))}function VA(e,t){var r=Bm(e,t),n=function(a){H(o,a);function o(i){var s=a.call(this,i)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return o}(Om);return n}function $A(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 me(t);return i.createPathProxy(),i.buildPath=function(s){if(Rm(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},i}var FA=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Vm=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new FA},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}(me);Vm.prototype.type="circle";const Yf=Vm;var zA=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),$m=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new zA},t.prototype.buildPath=function(r,n){var a=.5522848,o=n.cx,i=n.cy,s=n.rx,l=n.ry,u=s*a,c=l*a;r.moveTo(o-s,i),r.bezierCurveTo(o-s,i-c,o-u,i-l,o,i-l),r.bezierCurveTo(o+u,i-l,o+s,i-c,o+s,i),r.bezierCurveTo(o+s,i+c,o+u,i+l,o,i+l),r.bezierCurveTo(o-u,i+l,o-s,i+c,o-s,i),r.closePath()},t}(me);$m.prototype.type="ellipse";const Fm=$m;var zm=Math.PI,qf=zm*2,zn=Math.sin,za=Math.cos,GA=Math.acos,Je=Math.atan2,Gm=Math.abs,Ko=Math.sqrt,Jo=Math.max,hr=Math.min,jt=1e-4;function HA(e,t,r,n,a,o,i,s){var l=r-e,u=n-t,c=i-a,f=s-o,d=f*l-c*u;if(!(d*d<jt))return d=(c*(t-o)-f*(e-a))/d,[e+d*l,t+d*u]}function Ks(e,t,r,n,a,o,i){var s=e-r,l=t-n,u=(i?o:-o)/Ko(s*s+l*l),c=u*l,f=-u*s,d=e+c,h=t+f,v=r+c,m=n+f,g=(d+v)/2,y=(h+m)/2,w=v-d,_=m-h,S=w*w+_*_,x=a-o,C=d*m-v*h,N=(_<0?-1:1)*Ko(Jo(0,x*x*S-C*C)),b=(C*_-w*N)/S,T=(-C*w-_*N)/S,M=(C*_+w*N)/S,D=(-C*w+_*N)/S,A=b-g,P=T-y,E=M-g,I=D-y;return A*A+P*P>E*E+I*I&&(b=M,T=D),{cx:b,cy:T,x0:-c,y0:-f,x1:b*(a/x-1),y1:T*(a/x-1)}}function WA(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 UA(e,t){var r,n=Jo(t.r,0),a=Jo(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 c=t.cx,f=t.cy,d=!!t.clockwise,h=Gm(u-l),v=h>qf&&h%qf;if(v>jt&&(h=v),!(n>jt))e.moveTo(c,f);else if(h>qf-jt)e.moveTo(c+n*za(l),f+n*zn(l)),e.arc(c,f,n,l,u,!d),a>jt&&(e.moveTo(c+a*za(u),f+a*zn(u)),e.arc(c,f,a,u,l,d));else{var m=void 0,g=void 0,y=void 0,w=void 0,_=void 0,S=void 0,x=void 0,C=void 0,N=void 0,b=void 0,T=void 0,M=void 0,D=void 0,A=void 0,P=void 0,E=void 0,I=n*za(l),L=n*zn(l),R=a*za(u),B=a*zn(u),V=h>jt;if(V){var W=t.cornerRadius;W&&(r=WA(W),m=r[0],g=r[1],y=r[2],w=r[3]);var q=Gm(n-a)/2;if(_=hr(q,y),S=hr(q,w),x=hr(q,m),C=hr(q,g),T=N=Jo(_,S),M=b=Jo(x,C),(N>jt||b>jt)&&(D=n*za(u),A=n*zn(u),P=a*za(l),E=a*zn(l),h<zm)){var Q=HA(I,L,P,E,D,A,R,B);if(Q){var ue=I-Q[0],z=L-Q[1],he=D-Q[0],ce=A-Q[1],ke=1/zn(GA((ue*he+z*ce)/(Ko(ue*ue+z*z)*Ko(he*he+ce*ce)))/2),He=Ko(Q[0]*Q[0]+Q[1]*Q[1]);T=hr(N,(n-He)/(ke+1)),M=hr(b,(a-He)/(ke-1))}}}if(!V)e.moveTo(c+I,f+L);else if(T>jt){var Ie=hr(y,T),Ae=hr(w,T),re=Ks(P,E,I,L,n,Ie,d),ee=Ks(D,A,R,B,n,Ae,d);e.moveTo(c+re.cx+re.x0,f+re.cy+re.y0),T<N&&Ie===Ae?e.arc(c+re.cx,f+re.cy,T,Je(re.y0,re.x0),Je(ee.y0,ee.x0),!d):(Ie>0&&e.arc(c+re.cx,f+re.cy,Ie,Je(re.y0,re.x0),Je(re.y1,re.x1),!d),e.arc(c,f,n,Je(re.cy+re.y1,re.cx+re.x1),Je(ee.cy+ee.y1,ee.cx+ee.x1),!d),Ae>0&&e.arc(c+ee.cx,f+ee.cy,Ae,Je(ee.y1,ee.x1),Je(ee.y0,ee.x0),!d))}else e.moveTo(c+I,f+L),e.arc(c,f,n,l,u,!d);if(!(a>jt)||!V)e.lineTo(c+R,f+B);else if(M>jt){var Ie=hr(m,M),Ae=hr(g,M),re=Ks(R,B,D,A,a,-Ae,d),ee=Ks(I,L,P,E,a,-Ie,d);e.lineTo(c+re.cx+re.x0,f+re.cy+re.y0),M<b&&Ie===Ae?e.arc(c+re.cx,f+re.cy,M,Je(re.y0,re.x0),Je(ee.y0,ee.x0),!d):(Ae>0&&e.arc(c+re.cx,f+re.cy,Ae,Je(re.y0,re.x0),Je(re.y1,re.x1),!d),e.arc(c,f,a,Je(re.cy+re.y1,re.cx+re.x1),Je(ee.cy+ee.y1,ee.cx+ee.x1),d),Ie>0&&e.arc(c+ee.cx,f+ee.cy,Ie,Je(ee.y1,ee.x1),Je(ee.y0,ee.x0),!d))}else e.lineTo(c+R,f+B),e.arc(c,f,a,u,l,d)}e.closePath()}}}var YA=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}(),Hm=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new YA},t.prototype.buildPath=function(r,n){UA(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(me);Hm.prototype.type="sector";const Gn=Hm;var qA=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Wm=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new qA},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}(me);Wm.prototype.type="ring";const Um=Wm;function jA(e,t,r,n){var a=[],o=[],i=[],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++)Sa(c,c,e[d]),Ca(f,f,e[d]);Sa(c,c,n[0]),Ca(f,f,n[1])}for(var d=0,h=e.length;d<h;d++){var v=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(DT(e[d]));continue}else l=e[d-1],u=e[d+1];Sv(o,u,l),yc(o,o,t);var m=wc(v,l),g=wc(v,u),y=m+g;y!==0&&(m/=y,g/=y),yc(i,o,-m),yc(s,o,g);var w=bv([],v,i),_=bv([],v,s);n&&(Ca(w,w,c),Sa(w,w,f),Ca(_,_,c),Sa(_,_,f)),a.push(w),a.push(_)}return r&&a.push(a.shift()),a}function Ym(e,t,r){var n=t.smooth,a=t.points;if(a&&a.length>=2){if(n){var o=jA(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],c=a[(s+1)%i];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 XA=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),qm=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new XA},t.prototype.buildPath=function(r,n){Ym(r,n,!0)},t}(me);qm.prototype.type="polygon";const jf=qm;var ZA=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Ga=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ZA},t.prototype.buildPath=function(r,n){Ym(r,n,!1)},t}(me);Ga.prototype.type="polyline";var KA={},JA=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),jm=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new JA},t.prototype.buildPath=function(r,n){var a,o,i,s;if(this.subPixelOptimize){var l=Jg(KA,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}(me);jm.prototype.type="line";const en=jm;var gt=[],QA=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 Xm(e,t,r){var n=e.cpx2,a=e.cpy2;return n!=null||a!=null?[(r?Gv:Fe)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?Gv:Fe)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?Wv:Ze)(e.x1,e.cpx1,e.x2,t),(r?Wv:Ze)(e.y1,e.cpy1,e.y2,t)]}var Zm=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new QA},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,c=n.cpx2,f=n.cpy2,d=n.percent;d!==0&&(r.moveTo(a,o),c==null||f==null?(d<1&&(vs(a,l,i,d,gt),l=gt[1],i=gt[2],vs(o,u,s,d,gt),u=gt[1],s=gt[2]),r.quadraticCurveTo(l,u,i,s)):(d<1&&(ps(a,l,c,i,d,gt),l=gt[1],c=gt[2],i=gt[3],ps(o,u,f,s,d,gt),u=gt[1],f=gt[2],s=gt[3]),r.bezierCurveTo(l,u,c,f,i,s)))},t.prototype.pointAt=function(r){return Xm(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=Xm(this.shape,r,!0);return _c(n,n)},t}(me);Zm.prototype.type="bezier-curve";const Xf=Zm;var eM=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}(),Km=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new eM},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,c=Math.cos(s),f=Math.sin(s);r.moveTo(c*i+a,f*i+o),r.arc(a,o,i,s,l,!u)},t}(me);Km.prototype.type="arc";const Zf=Km;var tM=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),a=0;a<r.length;a++)n=n||r[a].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<r.length;a++)r[a].path||r[a].createPathProxy(),r[a].path.setScale(n[0],n[1],r[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var a=n.paths||[],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),me.prototype.getBoundingRect.call(this)},t}(me);const rM=tM;var nM=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}();const Jm=nM;var Qm=function(e){H(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}(Jm),aM=function(e){H(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}(Jm);const oM=aM;var Hn=[0,0],Wn=[0,0],Js=new le,Qs=new le,iM=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new 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,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);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 Js.set(1/0,1/0),Qs.set(0,0),!this._intersectCheckOneSide(this,t,Js,Qs,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,Js,Qs,a,-1)&&(n=!1,a)||a||le.copy(r,n?Js:Qs),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,Hn),this._getProjMinMaxOnAxis(l,r._corners,Wn),Hn[1]<Wn[0]||Hn[0]>Wn[1]){if(s=!1,o)return s;var c=Math.abs(Wn[0]-Hn[1]),f=Math.abs(Hn[0]-Wn[1]);Math.min(c,f)>a.len()&&(c<f?le.scale(a,u,-c*i):le.scale(a,u,f*i))}else if(n){var c=Math.abs(Wn[0]-Hn[1]),f=Math.abs(Hn[0]-Wn[1]);Math.min(c,f)<n.len()&&(c<f?le.scale(n,u,c*i):le.scale(n,u,-f*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 c=r[u].dot(a)+o[t];s=Math.min(c,s),l=Math.max(c,l)}n[0]=s,n[1]=l},e}();const el=iM;var sM=[],lM=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var a=0;a<r.length;a++)this.addDisplayable(r[a],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new _e(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(sM)),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}(Mn);const uM=lM;var cM=De();function Kf(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,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")),o&&(o.duration!=null&&(u=o.duration),o.easing!=null&&(c=o.easing),o.delay!=null&&(f=o.delay)),oe(f)&&(f=f(r,a)),oe(u)&&(u=u(r));var d={duration:u||0,delay:f,easing:c};return d}else return null}function Jf(e,t,r,n,a,o,i){var s=!1,l;oe(a)?(i=o,o=a,a=null):J(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 c=Kf(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,v={duration:f,delay:d||0,easing:h,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 Qe(e,t,r,n,a,o){Jf("update",e,t,r,n,a,o)}function St(e,t,r,n,a,o){Jf("enter",e,t,r,n,a,o)}function Qo(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 tl(e,t,r,n,a,o){Qo(e)||Jf("leave",e,t,r,n,a,o)}function ey(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),tl(e,{style:{opacity:0}},t,r,n)}function rl(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(a){a.isGroup||ey(a,t,r,n)}):ey(e,t,r,n)}function Qf(e){cM(e).oldStyle=e.style}var nl=Math.max,al=Math.min,eh={};function fM(e){return me.extend(e)}var hM=VA;function dM(e,t){return hM(e,t)}function Xt(e,t){eh[e]=t}function ty(e){if(eh.hasOwnProperty(e))return eh[e]}function ol(e,t,r,n){var a=BA(e,t);return r&&(n==="center"&&(r=ny(r,a.getBoundingRect())),ay(a,r)),a}function ry(e,t,r){var n=new Qr({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(ny(t,o))}}});return n}function ny(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 pM=$A;function ay(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function ei(e,t){return Jg(e,e,{lineWidth:t}),e}function vM(e){return Qg(e.shape,e.shape,e.style),e}var gM=Vn;function oy(e,t){for(var r=kc([]);e&&e!==t;)Da(r,e.getLocalTransform(),r),e=e.parent;return r}function ti(e,t,r){return t&&!at(t)&&(t=of.getLocalTransform(t)),r&&(t=Ic([],t)),Nt([],e,t)}function iy(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=ti(o,t,r),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function sy(e){return!e.isGroup}function mM(e){return e.shape!=null}function ly(e,t,r){if(!e||!t)return;function n(i){var s={};return i.traverse(function(l){sy(l)&&l.anid&&(s[l.anid]=l)}),s}function a(i){var s={x:i.x,y:i.y,rotation:i.rotation};return mM(i)&&(s.shape=G({},i.shape)),s}var o=n(e);t.traverse(function(i){if(sy(i)&&i.anid){var s=o[i.anid];if(s){var l=a(i);i.attr(a(s)),Qe(i,l,r,ge(i).dataIndex)}}})}function yM(e,t){return j(e,function(r){var n=r[0];n=nl(n,t.x),n=al(n,t.x+t.width);var a=r[1];return a=nl(a,t.y),a=al(a,t.y+t.height),[n,a]})}function _M(e,t){var r=nl(e.x,t.x),n=al(e.x+e.width,t.x+t.width),a=nl(e.y,t.y),o=al(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 th(e,t,r){var n=G({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),pe(a,r),new Qr(n)):ol(e.replace("path://",""),n,r,"center")}function wM(e,t,r,n,a){for(var o=0,i=a[a.length-1];o<a.length;o++){var s=a[o];if(uy(e,t,r,n,s[0],s[1],i[0],i[1]))return!0;i=s}}function uy(e,t,r,n,a,o,i,s){var l=r-e,u=n-t,c=i-a,f=s-o,d=rh(c,f,l,u);if(bM(d))return!1;var h=e-a,v=t-o,m=rh(h,v,l,u)/d;if(m<0||m>1)return!1;var g=rh(h,v,c,f)/d;return!(g<0||g>1)}function rh(e,t,r,n){return e*n-r*t}function bM(e){return e<=1e-6&&e>=-1e-6}function nh(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,a=X(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(ye(l),function(c){Y(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=ge(e.el);u.componentMainType=o,u.componentIndex=i,u.tooltipConfig={name:n,option:pe({content:n,formatterParams:s},a)}}function cy(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Ha(e,t){if(e)if(U(e))for(var r=0;r<e.length;r++)cy(e[r],t);else cy(e,t)}Xt("circle",Yf),Xt("ellipse",Fm),Xt("sector",Gn),Xt("ring",Um),Xt("polygon",jf),Xt("polyline",Ga),Xt("rect",Pe),Xt("line",en),Xt("bezierCurve",Xf),Xt("arc",Zf);const SM=Object.freeze(Object.defineProperty({__proto__:null,Arc:Zf,BezierCurve:Xf,BoundingRect:_e,Circle:Yf,CompoundPath:rM,Ellipse:Fm,Group:Oe,Image:Qr,IncrementalDisplayable:uM,Line:en,LinearGradient:Qm,OrientedBoundingRect:el,Path:me,Point:le,Polygon:jf,Polyline:Ga,RadialGradient:oM,Rect:Pe,Ring:Um,Sector:Gn,Text:Ue,applyTransform:ti,clipPointsByRect:yM,clipRectByRect:_M,createIcon:th,extendPath:dM,extendShape:fM,getShapeClass:ty,getTransform:oy,groupTransition:ly,initProps:St,isElementRemoved:Qo,lineLineIntersect:uy,linePolygonIntersect:wM,makeImage:ry,makePath:ol,mergePath:pM,registerShape:Xt,removeElement:tl,removeElementWithFadeOut:rl,resizePath:ay,setTooltipConfig:nh,subPixelOptimize:gM,subPixelOptimizeLine:ei,subPixelOptimizeRect:vM,transformDirection:iy,traverseElements:Ha,updateProps:Qe},Symbol.toStringTag,{value:"Module"}));var il={};function CM(e,t){for(var r=0;r<vt.length;r++){var n=vt[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 fy(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=oe(e.defaultText)?e.defaultText(a,e,r):e.defaultText);for(var l={normal:s},u=0;u<vt.length;u++){var c=vt[u],f=t[c];l[c]=ie(n?n.getFormattedLabel(a,c,null,o,f&&f.get("formatter")):null,s)}return l}function Wa(e,t,r,n){r=r||il;for(var a=e instanceof Ue,o=!1,i=0;i<Hs.length;i++){var s=t[Hs[i]];if(s&&s.getShallow("show")){o=!0;break}}var l=a?e:e.getTextContent();if(o){a||(l||(l=new Ue,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=fy(r,t),c=t.normal,f=!!c.getShallow("show"),d=Zt(c,n&&n.normal,r,!1,!a);d.text=u.normal,a||e.setTextConfig(sl(c,r,!1));for(var i=0;i<vt.length;i++){var h=vt[i],s=t[h];if(s){var v=l.ensureState(h),m=!!ie(s.getShallow("show"),f);if(m!==f&&(v.ignore=!m),v.style=Zt(s,n&&n[h],r,!0,!a),v.style.text=u[h],!a){var g=e.ensureState(h);g.textConfig=sl(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&&(ll(l).setLabelText=function(y){var w=fy(r,t,y);CM(l,w)})}else l&&(l.ignore=!0);e.dirty()}function Un(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<vt.length;n++){var a=vt[n];r[a]=e.getModel([a,t])}return r}function Zt(e,t,r,n,a){var o={};return xM(o,e,r,n,a),t&&G(o,t),o}function sl(e,t,r){t=t||{};var n={},a,o=e.getShallow("rotate"),i=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),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 xM(e,t,r,n,a){r=r||il;var o=t.ecModel,i=o&&o.option.textStyle,s=TM(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);vy(l[u]={},c,i,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),vy(e,t,i,r,n,a,!0,!1)}function TM(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||il).rich;if(r){t=t||{};for(var n=ye(r),a=0;a<n.length;a++){var o=n[a];t[o]=1}}e=e.parentModel}return t}var hy=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],dy=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],py=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function vy(e,t,r,n,a,o,i,s){r=!a&&r||il;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),o||(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 v=ie(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!a&&f==null&&!s&&(f=n&&n.defaultOpacity),f!=null&&(e.opacity=f),!a&&!o&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var m=0;m<hy.length;m++){var g=hy[m],y=ie(t.getShallow(g),r[g]);y!=null&&(e[g]=y)}for(var m=0;m<dy.length;m++){var g=dy[m],y=t.getShallow(g);y!=null&&(e[g]=y)}if(e.verticalAlign==null){var w=t.getShallow("baseline");w!=null&&(e.verticalAlign=w)}if(!i||!n.disableBox){for(var m=0;m<py.length;m++){var g=py[m],y=t.getShallow(g);y!=null&&(e[g]=y)}var _=t.getShallow("borderType");_!=null&&(e.borderDash=_),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&e.backgroundColor==="auto"&&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 gy(e,t){var r=t&&t.getModel("textStyle");return nr([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 ll=De();function NM(e,t,r,n){if(e){var a=ll(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 DM=["textStyle","color"],ah=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],oh=new Ue,AM=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(DM):null)},e.prototype.getFont=function(){return gy({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<ah.length;n++)r[ah[n]]=this.getShallow(ah[n]);return oh.useStyle(r),oh.update(),oh.getBoundingRect()},e}();const MM=AM;var my=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],kM=Ho(my),EM=function(){function e(){}return e.prototype.getLineStyle=function(t){return kM(this,t)},e}(),yy=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],PM=Ho(yy),IM=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return PM(this,t,r)},e}(),Yn=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){ve(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,a=n==null?n:n[t];if(a==null&&!r){var 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(fe(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}();yf(Yn),yD(Yn),Wt(Yn,EM),Wt(Yn,IM),Wt(Yn,CD),Wt(Yn,MM);const et=Yn;var LM=Math.round(Math.random()*10);function ul(e){return[e||"",LM++].join("_")}function OM(e){var t={};e.registerSubTypeDefaulter=function(r,n){var a=lr(r);t[a.main]=n},e.determineSubType=function(r,n){var a=n.type;if(!a){var o=lr(r).main;e.hasSubTypes(r)&&t[o]&&(a=t[o](n))}return a}}function RM(e,t){e.topologicalTravel=function(o,i,s,l){if(!o.length)return;var u=r(i),c=u.graph,f=u.noEntryList,d={};for(k(o,function(w){d[w]=!0});f.length;){var h=f.pop(),v=c[h],m=!!d[h];m&&(s.call(l,h,v.originalDeps.slice()),delete d[h]),k(v.successor,m?y:g)}k(d,function(){var w="";throw process.env.NODE_ENV!=="production"&&(w=Ps("Circular dependency may exists: ",d,o,i)),new Error(w)});function g(w){c[w].entryCount--,c[w].entryCount===0&&f.push(w)}function y(w){d[w]=!0,g(w)}};function r(o){var i={},s=[];return k(o,function(l){var u=n(i,l),c=u.originalDeps=t(l),f=a(c,o);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(i,d);de(h.successor,d)<0&&h.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){de(i,l)>=0&&s.push(l)}),s}}function cl(e,t){return ve(ve({},e,!0),t,!0)}const BM={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:". "}}}},VM={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 fl="ZH",ih="EN",Ua=ih,hl={},sh={},_y=ae.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ua).toUpperCase();return e.indexOf(fl)>-1?fl:Ua}():Ua;function wy(e,t){e=e.toUpperCase(),sh[e]=new et(t),hl[e]=t}function $M(e){if(X(e)){var t=hl[e.toUpperCase()]||{};return e===fl||e===ih?fe(t):ve(fe(t),fe(hl[Ua]),!1)}else return ve(fe(e),fe(hl[Ua]),!1)}function FM(e){return sh[e]}function zM(){return sh[Ua]}wy(ih,BM),wy(fl,VM);var lh=1e3,uh=lh*60,ri=uh*60,Lt=ri*24,by=Lt*365,ni={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}"},dl="{yyyy}-{MM}-{dd}",Sy={year:"{yyyy}",month:"{yyyy}-{MM}",day:dl,hour:dl+" "+ni.hour,minute:dl+" "+ni.minute,second:dl+" "+ni.second,millisecond:ni.none},ch=["year","month","day","hour","minute","second","millisecond"],Cy=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function tn(e,t){return e+="","0000".substr(0,t-e.length)+e}function Ya(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 GM(e){return e===Ya(e)}function HM(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function pl(e,t,r,n){var a=Tr(e),o=a[fh(r)](),i=a[qa(r)]()+1,s=Math.floor((i-1)/3)+1,l=a[vl(r)](),u=a["get"+(r?"UTC":"")+"Day"](),c=a[ai(r)](),f=(c-1)%12+1,d=a[gl(r)](),h=a[ml(r)](),v=a[yl(r)](),m=n instanceof et?n:FM(n||_y)||zM(),g=m.getModel("time"),y=g.get("month"),w=g.get("monthAbbr"),_=g.get("dayOfWeek"),S=g.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,tn(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[i-1]).replace(/{MMM}/g,w[i-1]).replace(/{MM}/g,tn(i,2)).replace(/{M}/g,i+"").replace(/{dd}/g,tn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,_[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,tn(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,tn(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,tn(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,tn(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,tn(v,3)).replace(/{S}/g,v+"")}function WM(e,t,r,n,a){var o=null;if(X(r))o=r;else if(oe(r))o=r(e.value,t,{level:e.level});else{var i=G({},ni);if(e.level>0)for(var s=0;s<ch.length;++s)i[ch[s]]="{primary|"+i[ch[s]]+"}";var l=r?r.inherit===!1?r:pe(r,i):i,u=xy(e.value,a);if(l[u])o=l[u];else if(l.inherit){for(var c=Cy.indexOf(u),s=c-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||i.none}if(U(o)){var f=e.level==null?0:e.level>=0?e.level:o.length+e.level;f=Math.min(f,o.length-1),o=o[f]}}return pl(new Date(e.value),o,a,n)}function xy(e,t){var r=Tr(e),n=r[qa(t)]()+1,a=r[vl(t)](),o=r[ai(t)](),i=r[gl(t)](),s=r[ml(t)](),l=r[yl(t)](),u=l===0,c=u&&s===0,f=c&&i===0,d=f&&o===0,h=d&&a===1,v=h&&n===1;return v?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function Ty(e,t,r){var n=xe(e)?Tr(e):e;switch(t=t||xy(e,r),t){case"year":return n[fh(r)]();case"half-year":return n[qa(r)]()>=6?1:0;case"quarter":return Math.floor((n[qa(r)]()+1)/4);case"month":return n[qa(r)]();case"day":return n[vl(r)]();case"half-day":return n[ai(r)]()/24;case"hour":return n[ai(r)]();case"minute":return n[gl(r)]();case"second":return n[ml(r)]();case"millisecond":return n[yl(r)]()}}function fh(e){return e?"getUTCFullYear":"getFullYear"}function qa(e){return e?"getUTCMonth":"getMonth"}function vl(e){return e?"getUTCDate":"getDate"}function ai(e){return e?"getUTCHours":"getHours"}function gl(e){return e?"getUTCMinutes":"getMinutes"}function ml(e){return e?"getUTCSeconds":"getSeconds"}function yl(e){return e?"getUTCMilliseconds":"getMilliseconds"}function UM(e){return e?"setUTCFullYear":"setFullYear"}function Ny(e){return e?"setUTCMonth":"setMonth"}function Dy(e){return e?"setUTCDate":"setDate"}function Ay(e){return e?"setUTCHours":"setHours"}function My(e){return e?"setUTCMinutes":"setMinutes"}function ky(e){return e?"setUTCSeconds":"setSeconds"}function Ey(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Py(e){if(!Sg(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 Iy(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 _l=mv;function hh(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&nr(c)?c:"-"}function o(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var i=t==="time",s=e instanceof Date;if(i||s){var l=i?Tr(e):e;if(isNaN(+l)){if(s)return"-"}else return pl(l,n,r)}if(t==="ordinal")return as(e)?a(e):xe(e)&&o(e)?e+"":"-";var u=ks(e);return o(u)?Py(u):as(e)?a(e):typeof e=="boolean"?e+"":"-"}var Ly=["a","b","c","d","e","f","g"],dh=function(e,t){return"{"+e+(t??"")+"}"};function Oy(e,t,r){U(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],o=0;o<a.length;o++){var i=Ly[o];e=e.replace(dh(i),dh(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(dh(Ly[l],s),r?Dt(u):u)}return e}function YM(e,t){var r=X(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:'+Dt(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Dt(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 qn(e,t){return t=t||"transparent",X(e)?e:J(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function Ry(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var wl=k,qM=["left","right","top","bottom","width","height"],bl=[["width","left","right"],["height","top","bottom"]];function ph(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 c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),h,v;if(e==="horizontal"){var m=c.width+(d?-d.x+c.x:0);h=o+m,h>n||l.newline?(o=0,h=m,i+=s+r,s=c.height):s=Math.max(s,c.height)}else{var g=c.height+(d?-d.y+c.y:0);v=i+g,v>a||l.newline?(o+=s+r,i=0,v=g,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=o,l.y=i,l.markRedraw(),e==="horizontal"?o=h+r:i=v+r)})}var oi=ph;Se(ph,"vertical"),Se(ph,"horizontal");function jn(e,t,r){r=_l(r||0);var n=t.width,a=t.height,o=Te(e.left,n),i=Te(e.top,a),s=Te(e.right,n),l=Te(e.bottom,a),u=Te(e.width,n),c=Te(e.height,a),f=r[2]+r[0],d=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-d-o),isNaN(c)&&(c=a-l-f-i),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(o)&&(o=n-s-u-d),isNaN(i)&&(i=a-l-c-f),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-c/2-r[0];break;case"bottom":i=a-c-f;break}o=o||0,i=i||0,isNaN(u)&&(u=n-d-o-(s||0)),isNaN(c)&&(c=a-f-i-(l||0));var v=new _e(o+r[3],i+r[0],u,c);return v.margin=r,v}function ii(e){var t=e.layoutMode||e.constructor.layoutMode;return J(t)?t:t?{type:t}:null}function ja(e,t,r){var n=r&&r.ignoreSize;!U(n)&&(n=[n,n]);var a=i(bl[0],0),o=i(bl[1],1);u(bl[0],e,a),u(bl[1],e,o);function i(c,f){var d={},h=0,v={},m=0,g=2;if(wl(c,function(_){v[_]=e[_]}),wl(c,function(_){s(t,_)&&(d[_]=v[_]=t[_]),l(d,_)&&h++,l(v,_)&&m++}),n[f])return l(t,c[1])?v[c[2]]=null:l(t,c[2])&&(v[c[1]]=null),v;if(m===g||!h)return v;if(h>=g)return d;for(var y=0;y<c.length;y++){var w=c[y];if(!s(d,w)&&s(e,w)){d[w]=e[w];break}}return d}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,d){wl(c,function(h){f[h]=d[h]})}}function si(e){return jM({},e)}function jM(e,t){return t&&e&&wl(qM,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var XM=De(),Xa=function(e){H(t,e);function t(r,n,a){var o=e.call(this,r,n,a)||this;return o.uid=ul("ec_cpt_model"),o}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=ii(this),o=a?si(r):{},i=n.getTheme();ve(r,i.get(this.mainType)),ve(r,this.getDefaultOption()),a&&ja(r,o,a)},t.prototype.mergeOption=function(r,n){ve(this.option,r,!0);var a=ii(this);a&&ja(this.option,r,a)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!vD(r))return r.defaultOption;var n=XM(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=ve(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var a=r+"Index",o=r+"Id";return Go(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}(et);Og(Xa,et),Ls(Xa),OM(Xa),RM(Xa,ZM);function ZM(e){var t=[];return k(Xa.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=j(t,function(r){return lr(r).main}),e!=="dataset"&&de(t,"dataset")<=0&&t.unshift("dataset"),t}const Ne=Xa;var By="";typeof navigator<"u"&&(By=navigator.platform||"");var Za="rgba(0, 0, 0, 0.2)";const KM={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Za,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Za,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Za,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Za,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Za,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Za,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:By.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 vh=se(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ot="original",mt="arrayRows",Kt="objectRows",dr="keyedColumns",Ar="typedArray",Vy="unknown",Mr="column",Ka="row",je={Must:1,Might:2,Not:3},$y=De();function JM(e){$y(e).datasetMap=se()}function QM(e,t,r){var n={},a=gh(t);if(!a||!e)return n;var o=[],i=[],s=t.ecModel,l=$y(s).datasetMap,u=a.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),k(e,function(m,g){var y=J(m)?m:e[g]={name:m};y.type==="ordinal"&&c==null&&(c=g,f=v(y)),n[y.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});k(e,function(m,g){var y=m.name,w=v(m);if(c==null){var _=d.valueWayDim;h(n[y],_,w),h(i,_,w),d.valueWayDim+=w}else if(c===g)h(n[y],0,w),h(o,0,w);else{var _=d.categoryWayDim;h(n[y],_,w),h(i,_,w),d.categoryWayDim+=w}});function h(m,g,y){for(var w=0;w<y;w++)m.push(g+w)}function v(m){var g=m.dimsDef;return g?g.length:1}return o.length&&(n.itemName=o),i.length&&(n.seriesName=i),n}function ek(e,t,r){var n={},a=gh(e);if(!a)return n;var o=t.sourceFormat,i=t.dimensionsDefine,s;(o===Kt||o===dr)&&k(i,function(c,f){(J(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],h=0,v=Math.min(5,r);h<v;h++){var m=zy(t.data,o,t.seriesLayoutBy,i,t.startIndex,h);d.push(m);var g=m===je.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&d[c.n]===je.Not)&&(c.n=h),y(c)&&d[c.n]!==je.Not)return c;g||(m===je.Might&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}function y(w){return w.v!=null&&w.n!=null}return y(c)?c:y(f)?f:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function gh(e){var t=e.get("data",!0);if(!t)return Go(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},pt).models[0]}function tk(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Go(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},pt).models}function Fy(e,t){return zy(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function zy(e,t,r,n,a,o){var i,s=5;if(ot(e))return je.Not;var l,u;if(n){var c=n[o];J(c)?(l=c.name,u=c.type):X(c)&&(l=c)}if(u!=null)return u==="ordinal"?je.Must:je.Not;if(t===mt){var f=e;if(r===Ka){for(var d=f[o],h=0;h<(d||[]).length&&h<s;h++)if((i=S(d[a+h]))!=null)return i}else for(var h=0;h<f.length&&h<s;h++){var v=f[a+h];if(v&&(i=S(v[o]))!=null)return i}}else if(t===Kt){var m=e;if(!l)return je.Not;for(var h=0;h<m.length&&h<s;h++){var g=m[h];if(g&&(i=S(g[l]))!=null)return i}}else if(t===dr){var y=e;if(!l)return je.Not;var d=y[l];if(!d||ot(d))return je.Not;for(var h=0;h<d.length&&h<s;h++)if((i=S(d[h]))!=null)return i}else if(t===Ot)for(var w=e,h=0;h<w.length&&h<s;h++){var g=w[h],_=Fo(g);if(!U(_))return je.Not;if((i=S(_[o]))!=null)return i}function S(x){var C=X(x);if(x!=null&&isFinite(x)&&x!=="")return C?je.Might:je.Not;if(C&&x!=="-")return je.Must}return je.Not}var rk=se();function nk(e,t,r){var n=rk.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++)ne(Oa(a[o]));return r.concat(a)}var Gy=De();De();var mh=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var a=We(this.get("color",!0)),o=this.get("colorLayer",!0);return ok(this,Gy,a,o,t,r,n)},e.prototype.clearColorPalette=function(){ik(this,Gy)},e}();function ak(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 ok(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 c=i==null||!n?r:ak(n,i);if(c=c||r,!(!c||!c.length)){var f=c[l];return a&&(u[a]=f),s.paletteIdx=(l+1)%c.length,f}}function ik(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Sl,li,Hy,yh="\0_ec_inner",Wy=1,sk={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"},lk={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"},Cl={};function uk(e){k(e,function(t,r){if(!Ne.hasClass(r)){var n=sk[r];n&&!Cl[n]&&(Ke("Component "+r+` is used but not imported.
|
|
23
|
+
*/var Bi={},gg={};function Fx(e){delete gg[e]}function zx(e){if(!e)return!1;if(typeof e=="string")return _s(e,1)<ef;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,a=0;a<n;a++)r+=_s(t[a].color,1);return r/=n,r<ef}return!1}var Gx=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 ax,o=n.renderer||"canvas";if(Bi[o]||(o=ye(Bi)[0]),process.env.NODE_ENV!=="production"&&!Bi[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new Bi[o](r,i,n,t),l=n.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!ae.node&&!ae.worker&&!l?new Ex(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?ae.touchEventsSupported:!!c,d=44,h;f&&(h=oe(n.pointerSize,d)),this.handler=new ex(i,s,u,s.root,h),this.animation=new Cx({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=zx(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=Ea();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var a=Ea();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,Fx(this.id))},e}();function mg(e,t){var r=new Gx(gv(),e,t);return gg[r.id]=r,r}function Hx(e,t){Bi[e]=t}var yg=1e-4,_g=20;function Wx(e){return e.replace(/^\s+|\s+$/g,"")}function qe(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 Ne(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)?Wx(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),_g),e=(+e).toFixed(t),r?e:+e}function Vi(e){return e.sort(function(t,r){return t-r}),e}function or(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 pf(e)}function pf(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 wg(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 Ux(e,t){var r=Sr(e,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,t),a=j(e,function(h){return(isNaN(h)?0:h)/r*n*100}),i=n*100,o=j(a,function(h){return Math.floor(h)}),s=Sr(o,function(h,v){return h+v},0),l=j(a,function(h,v){return h-o[v]});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 j(o,function(h){return h/n})}function Yx(e,t){var r=Math.max(or(e),or(t)),n=e+t;return r>_g?n:Ve(n,r)}function bg(e){var t=Math.PI*2;return(e%t+t)%t}function As(e){return e>-yg&&e<yg}var qx=/^(?:(\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 Nr(e){if(e instanceof Date)return e;if(X(e)){var t=qx.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 jx(e){return Math.pow(10,ks(e))}function ks(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 Sg(e,t){var r=ks(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 Ms(e){var t=parseFloat(e);return t==e&&(t!==0||!X(e)||e.indexOf("x")<=0)?t:NaN}function Cg(e){return!isNaN(Ms(e))}function Tg(){return Math.round(Math.random()*9)}function Ng(e,t){return t===0?e:Ng(t,e%t)}function xg(e,t){return e==null?t:t==null?e:e*t/Ng(e,t)}var Xx="[ECharts] ",Dg={},Zx=typeof console<"u"&&console.warn&&console.log;function Es(e,t,r){if(Zx){if(r){if(Dg[t])return;Dg[t]=!0}console[e](Xx+t)}}function Kx(e,t){Es("log",e,t)}function ze(e,t){Es("warn",e,t)}function Ke(e,t){Es("error",e,t)}function qt(e){process.env.NODE_ENV!=="production"&&Es("warn","DEPRECATED: "+e,!0)}function Ge(e,t,r){process.env.NODE_ENV!=="production"&&qt((r?"["+r+"]":"")+(e+" is deprecated, use "+t+" instead."))}function Ps(){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":_a(a)?"NaN":a instanceof Date?"Date("+a.toISOString()+")":ie(a)?"function () { ... }":bN(a)?a+"":null};r=j(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 lt(e){throw new Error(e)}function Ag(e,t,r){return(t-e)*r+e}var kg="series\0",Jx="\0_ec_\0";function We(e){return e instanceof Array?e:e==null?[]:[e]}function Is(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 Mg=["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 $i(e){return J(e)&&!U(e)&&!(e instanceof Date)?e.value:e}function Qx(e){return J(e)&&!(e instanceof Array)}function eD(e,t,r){var n=r==="normalMerge",a=r==="replaceMerge",i=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=se();M(t,function(l,u){if(!J(l)){t[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!Ig(l.id)&&Pg(l.id),l.name!=null&&!Ig(l.name)&&Pg(l.name))});var s=tD(e,o,r);return(n||a)&&rD(s,e,o,t),n&&nD(s,t),n||a?aD(s,t,a):i&&iD(s,t),oD(s),s}function tD(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"||Oa(i)?null:i,newOption:null,keyInfo:null,brandNew:null})}return n}function rD(e,t,r,n){M(n,function(a,i){if(!(!a||a.id==null)){var o=Fi(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 nD(e,t){M(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)&&!Oa(r)&&!Oa(i)&&Eg("name",i,r)){e[a].newOption=r,t[n]=null;return}}})}function aD(e,t,r){M(t,function(n){if(n){for(var a,i=0;(a=e[i])&&(a.newOption||Oa(a.existing)||a.existing&&n.id!=null&&!Eg("id",n,a.existing));)i++;a?(a.newOption=n,a.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),i++}})}function iD(e,t){M(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function oD(e){var t=se();M(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),M(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={})}),M(e,function(r,n){var a=r.existing,i=r.newOption,o=r.keyInfo;if(J(i)){if(o.name=i.name!=null?Fi(i.name):a?a.name:kg+n,a)o.id=Fi(a.id);else if(i.id!=null)o.id=Fi(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 Eg(e,t,r){var n=sr(t[e],null),a=sr(r[e],null);return n!=null&&a!=null&&n===a}function Fi(e){if(process.env.NODE_ENV!=="production"&&e==null)throw new Error;return sr(e,"")}function sr(e,t){return e==null?t:X(e)?e:Te(e)||as(e)?e+"":t}function Pg(e){process.env.NODE_ENV!=="production"&&ze("`"+e+"` is invalid id or name. Must be a string or number.")}function Ig(e){return as(e)||Cg(e)}function vf(e){var t=e.name;return!!(t&&t.indexOf(kg))}function Oa(e){return e&&e.id!=null&&Fi(e.id).indexOf(Jx)===0}function sD(e,t,r){M(e,function(n){var a=n.newOption;J(a)&&(n.keyInfo.mainType=t,n.keyInfo.subType=lD(t,a,n.existing,r))})}function lD(e,t,r,n){var a=t.type?t.type:r?r.subType:n.determineSubType(e,t);return a}function xn(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return U(t.dataIndex)?j(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return U(t.name)?j(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function De(){var e="__ec_inner_"+uD++;return function(t){return t[e]||(t[e]={})}}var uD=Tg();function gf(e,t,r){var n=mf(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=zi(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 mf(e,t){var r;if(X(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var a=se(),i={},o=!1;return M(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},cD={useDefault:!1,enableAll:!0,enableNone:!0};function zi(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 Lg(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function fD(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function hD(e){return e==="auto"?ae.domSupported?"html":"richText":e||"html"}function dD(e,t,r,n,a){var i=t==null||t==="auto";if(n==null)return n;if(Te(n)){var o=Ag(r||0,n,a);return Ve(o,i?Math.max(or(r||0),or(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,v=u[f],o=Ag(h,v,a);s[f]=Ve(o,i?Math.max(or(h),or(v)):t)}}return s}}var pD=".",Dn="___EC__COMPONENT__CONTAINER___",Og="___EC__EXTENDED_CLASS___";function lr(e){var t={main:"",sub:""};if(e){var r=e.split(pD);t.main=r[0]||"",t.sub=r[1]||""}return t}function vD(e){ne(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function gD(e){return!!(e&&e[Og])}function yf(e,t){e.$constructor=e,e.extend=function(r){process.env.NODE_ENV!=="production"&&M(t,function(i){r[i]||console.warn("Method `"+i+"` should be implemented"+(r.type?" in "+r.type:"")+".")});var n=this,a;return mD(n)?a=function(i){H(o,i);function o(){return i.apply(this,arguments)||this}return o}(n):(a=function(){(r.$constructor||n).apply(this,arguments)},yN(a,this)),G(a.prototype,r),a[Og]=!0,a.extend=this.extend,a.superCall=wD,a.superApply=bD,a.superClass=n,a}}function mD(e){return ie(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function Rg(e,t){e.extend=t.extend}var yD=Math.round(Math.random()*10);function _D(e){var t=["__\0is_clz",yD++].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 wD(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 bD(e,t,r){return this.superClass.prototype[t].apply(e,r)}function Ls(e){var t={};e.registerClass=function(n){var a=n.type||n.prototype.type;if(a){vD(a),n.prototype.type=a;var i=lr(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!==Dn){var o=r(i);o[i.sub]=n}}return n},e.getClass=function(n,a,i){var o=t[n];if(o&&o[Dn]&&(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=lr(n),i=[],o=t[a.main];return o&&o[Dn]?M(o,function(s,l){l!==Dn&&i.push(s)}):i.push(o),i},e.hasClass=function(n){var a=lr(n);return!!t[a.main]},e.getAllClassMainTypes=function(){var n=[];return M(t,function(a,i){n.push(i)}),n},e.hasSubTypes=function(n){var a=lr(n),i=t[a.main];return i&&i[Dn]};function r(n){var a=t[n.main];return(!a||!a[Dn])&&(a=t[n.main]={},a[Dn]=!0),a}}function Gi(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 SD=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],CD=Gi(SD),TD=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return CD(this,t,r)},e}(),_f=new Ei(50);function ND(e){if(typeof e=="string"){var t=_f.get(e);return t&&t.image}else return e}function Bg(e,t,r,n,a){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var i=_f.get(e),o={hostEl:r,cb:n,cbPayload:a};return i?(t=i.image,!Os(t)&&i.pending.push(o)):(t=ga.loadImage(e,Vg,Vg),t.__zrImageSrc=e,_f.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function Vg(){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 Os(e){return e&&e.width&&e.height}var wf=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function xD(e,t,r,n,a){if(!t)return"";var i=(e+"").split(`
|
|
24
|
+
`);a=$g(t,r,n,a);for(var o=0,s=i.length;o<s;o++)i[o]=Fg(i[o],a);return i.join(`
|
|
25
|
+
`)}function $g(e,t,r,n){n=n||{};var a=G({},n);a.font=t,r=oe(r,"..."),a.maxIterations=oe(n.maxIterations,2);var i=a.minChar=oe(n.minChar,0);a.cnCharWidth=St("国",t);var o=a.ascCharWidth=St("a",t);a.placeholder=oe(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<i&&s>=o;l++)s-=o;var u=St(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 Fg(e,t){var r=t.containerWidth,n=t.font,a=t.contentWidth;if(!r)return"";var i=St(e,n);if(i<=r)return e;for(var o=0;;o++){if(i<=a||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?DD(e,a,t.ascCharWidth,t.cnCharWidth):i>0?Math.floor(e.length*a/i):0;e=e.substr(0,s),i=St(e,n)}return e===""&&(e=t.placeholder),e}function DD(e,t,r,n){for(var a=0,i=0,o=e.length;i<o&&a<t;i++){var s=e.charCodeAt(i);a+=0<=s&&s<=127?r:n}return i}function AD(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,a=t.font,i=r==="truncate",o=lf(a),s=oe(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=t.width,f;c!=null&&(r==="break"||r==="breakAll")?f=e?Gg(e,t.font,c,r==="breakAll",0).lines:[]:f=e?e.split(`
|
|
26
|
+
`):[];var d=f.length*s,h=oe(t.height,d);if(d>h&&u){var v=Math.floor(h/s);f=f.slice(0,v)}if(e&&i&&c!=null)for(var m=$g(c,a,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),g=0;g<f.length;g++)f[g]=Fg(f[g],m);for(var y=h,_=0,g=0;g<f.length;g++)_=Math.max(St(f[g],a),_);c==null&&(c=_);var w=_;return n&&(y+=n[0]+n[2],w+=n[1]+n[3],c+=n[1]+n[3]),l&&(w=c),{lines:f,height:h,outerWidth:w,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:_,contentHeight:d,width:c}}var kD=function(){function e(){}return e}(),zg=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),MD=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 ED(e,t){var r=new MD;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,a=t.height,i=t.overflow,o=(i==="break"||i==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:i==="breakAll"}:null,s=wf.lastIndex=0,l;(l=wf.exec(e))!=null;){var u=l.index;u>s&&bf(r,e.substring(s,u),t,o),bf(r,l[2],t,o,l[1]),s=wf.lastIndex}s<e.length&&bf(r,e.substring(s,e.length),t,o);var c=[],f=0,d=0,h=t.padding,v=i==="truncate",m=t.lineOverflow==="truncate";function g(B,V,W){B.width=V,B.lineHeight=W,f+=W,d=Math.max(d,V)}e:for(var y=0;y<r.lines.length;y++){for(var _=r.lines[y],w=0,S=0,T=0;T<_.tokens.length;T++){var C=_.tokens[T],x=C.styleName&&t.rich[C.styleName]||{},b=C.textPadding=x.padding,N=b?b[1]+b[3]:0,A=C.font=x.font||t.font;C.contentHeight=lf(A);var D=oe(x.height,C.contentHeight);if(C.innerHeight=D,b&&(D+=b[0]+b[2]),C.height=D,C.lineHeight=Ur(x.lineHeight,t.lineHeight,D),C.align=x&&x.align||t.align,C.verticalAlign=x&&x.verticalAlign||"middle",m&&a!=null&&f+C.lineHeight>a){T>0?(_.tokens=_.tokens.slice(0,T),g(_,S,w),r.lines=r.lines.slice(0,y+1)):r.lines=r.lines.slice(0,y);break e}var k=x.width,P=k==null||k==="auto";if(typeof k=="string"&&k.charAt(k.length-1)==="%")C.percentWidth=k,c.push(C),C.contentWidth=St(C.text,A);else{if(P){var E=x.backgroundColor,I=E&&E.image;I&&(I=ND(I),Os(I)&&(C.width=Math.max(C.width,I.width*D/I.height)))}var L=v&&n!=null?n-S:null;L!=null&&L<C.width?!P||L<N?(C.text="",C.width=C.contentWidth=0):(C.text=xD(C.text,L-N,A,t.ellipsis,{minChar:t.truncateMinChar}),C.width=C.contentWidth=St(C.text,A)):C.contentWidth=St(C.text,A)}C.width+=N,S+=C.width,x&&(w=Math.max(w,C.lineHeight))}g(_,S,w)}r.outerWidth=r.width=oe(n,d),r.outerHeight=r.height=oe(a,f),r.contentHeight=f,r.contentWidth=d,h&&(r.outerWidth+=h[1]+h[3],r.outerHeight+=h[0]+h[2]);for(var y=0;y<c.length;y++){var C=c[y],R=C.percentWidth;C.width=parseInt(R,10)/100*r.width}return r}function bf(e,t,r,n,a){var i=t==="",o=a&&r.rich[a]||{},s=e.lines,l=o.font||r.font,u=!1,c,f;if(n){var d=o.padding,h=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var v=Xr(o.width,n.width)+h;s.length>0&&v+n.accumWidth>n.width&&(c=t.split(`
|
|
27
|
+
`),u=!0),n.accumWidth=v}else{var m=Gg(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=m.accumWidth+h,f=m.linesWidths,c=m.lines}}else c=t.split(`
|
|
28
|
+
`);for(var g=0;g<c.length;g++){var y=c[g],_=new kD;if(_.styleName=a,_.text=y,_.isLineHolder=!y&&!i,typeof o.width=="number"?_.width=o.width:_.width=f?f[g]:St(y,l),!g&&!u){var w=(s[s.length-1]||(s[0]=new zg)).tokens,S=w.length;S===1&&w[0].isLineHolder?w[0]=_:(y||!S||i)&&w.push(_)}else s.push(new zg([_]))}}function PD(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var ID=Sr(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function LD(e){return PD(e)?!!ID[e]:!0}function Gg(e,t,r,n,a){for(var i=[],o=[],s="",l="",u=0,c=0,f=0;f<e.length;f++){var d=e.charAt(f);if(d===`
|
|
29
|
+
`){l&&(s+=l,c+=u),i.push(s),o.push(c),s="",l="",u=0,c=0;continue}var h=St(d,t),v=n?!1:!LD(d);if(i.length?c+h>r:a+c+h>r){c?(s||l)&&(v?(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)):v?(i.push(l),o.push(u),l=d,u=h):(i.push(d),o.push(h));continue}c+=h,v?(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 Sf="__zr_style_"+Math.round(Math.random()*10),An={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Rs={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};An[Sf]=!0;var Hg=["z","z2","invisible"],OD=["invisible"],RD=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=ye(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&&BD(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 _e(0,0,0,0)),n?_e.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 _e(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:G(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=ki,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&ki)},t.prototype.styleUpdated=function(){this.__dirty&=~ki},t.prototype.createStyle=function(r){return os(An,r)},t.prototype.useStyle=function(r){r[Sf]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[Sf]},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,Hg)},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=ye(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 v=ye(u),d=0;d<v.length;d++){var h=v[d];this.style[h]=this.style[h]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var m=this.__inHover?OD:Hg,d=0;d<m.length;d++){var h=m[d];n&&n[h]!=null?this[h]=n[h]:l&&a[h]!=null&&(this[h]=a[h])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),a,i=0;i<r.length;i++){var o=r[i];o.style&&(a=a||{},this._mergeStyle(a,o.style))}return a&&(n.style=a),n},t.prototype._mergeStyle=function(r,n){return G(r,n),r},t.prototype.getAnimationStyleProps=function(){return Rs},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|ki}(),t}(vg),Cf=new _e(0,0,0,0),Tf=new _e(0,0,0,0);function BD(e,t,r){return Cf.copy(e.getBoundingRect()),e.transform&&Cf.applyTransform(e.transform),Tf.width=t,Tf.height=r,!Cf.intersect(Tf)}const kn=RD;var Pt=Math.min,It=Math.max,Nf=Math.sin,xf=Math.cos,Mn=Math.PI*2,Bs=wa(),Vs=wa(),$s=wa();function Wg(e,t,r,n,a,i){a[0]=Pt(e,r),a[1]=Pt(t,n),i[0]=It(e,r),i[1]=It(t,n)}var Ug=[],Yg=[];function VD(e,t,r,n,a,i,o,s,l,u){var c=Wv,f=Fe,d=c(e,r,a,o,Ug);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var v=f(e,r,a,o,Ug[h]);l[0]=Pt(v,l[0]),u[0]=It(v,u[0])}d=c(t,n,i,s,Yg);for(var h=0;h<d;h++){var m=f(t,n,i,s,Yg[h]);l[1]=Pt(m,l[1]),u[1]=It(m,u[1])}l[0]=Pt(e,l[0]),u[0]=It(e,u[0]),l[0]=Pt(o,l[0]),u[0]=It(o,u[0]),l[1]=Pt(t,l[1]),u[1]=It(t,u[1]),l[1]=Pt(s,l[1]),u[1]=It(s,u[1])}function $D(e,t,r,n,a,i,o,s){var l=Yv,u=Ze,c=It(Pt(l(e,r,a),1),0),f=It(Pt(l(t,n,i),1),0),d=u(e,r,a,c),h=u(t,n,i,f);o[0]=Pt(e,a,d),o[1]=Pt(t,i,h),s[0]=It(e,a,d),s[1]=It(t,i,h)}function FD(e,t,r,n,a,i,o,s,l){var u=Sa,c=Ca,f=Math.abs(a-i);if(f%Mn<1e-4&&f>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Bs[0]=xf(a)*r+e,Bs[1]=Nf(a)*n+t,Vs[0]=xf(i)*r+e,Vs[1]=Nf(i)*n+t,u(s,Bs,Vs),c(l,Bs,Vs),a=a%Mn,a<0&&(a=a+Mn),i=i%Mn,i<0&&(i=i+Mn),a>i&&!o?i+=Mn:a<i&&o&&(a+=Mn),o){var d=i;i=a,a=d}for(var h=0;h<i;h+=Math.PI/2)h>a&&($s[0]=xf(h)*r+e,$s[1]=Nf(h)*n+t,u(s,$s,s),c(l,$s,l))}var we={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},En=[],Pn=[],ur=[],Zr=[],cr=[],fr=[],Df=Math.min,Af=Math.max,In=Math.cos,Ln=Math.sin,xr=Math.abs,kf=Math.PI,Kr=kf*2,Mf=typeof Float32Array<"u",Hi=[];function Ef(e){var t=Math.round(e/kf*1e8)/1e8;return t%2*kf}function qg(e,t){var r=Ef(e[0]);r<0&&(r+=Kr);var n=r-e[0],a=e[1];a+=n,!t&&a-r>=Kr?a=r+Kr:t&&r-a>=Kr?a=r-Kr:!t&&r>a?a=r+(Kr-Ef(r-a)):t&&r<a&&(a=r-(Kr-Ef(a-r))),e[0]=r,e[1]=a}var On=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=xr(n/xs/t)||0,this._uy=xr(n/xs/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(we.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=xr(t-this._xi),a=xr(r-this._yi),i=n>this._ux||a>this._uy;if(this.addData(we.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(we.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(we.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(),Hi[0]=a,Hi[1]=i,qg(Hi,o),a=Hi[0],i=Hi[1];var s=i-a;return this.addData(we.A,t,r,n,n,a,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,a,i,o),this._xi=In(i)*n+t,this._yi=Ln(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(we.R,t,r,n,a),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(we.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)&&Mf&&(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();Mf&&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,Mf&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){ur[0]=ur[1]=cr[0]=cr[1]=Number.MAX_VALUE,Zr[0]=Zr[1]=fr[0]=fr[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 we.M:r=a=t[o++],n=i=t[o++],cr[0]=a,cr[1]=i,fr[0]=a,fr[1]=i;break;case we.L:Wg(r,n,t[o],t[o+1],cr,fr),r=t[o++],n=t[o++];break;case we.C:VD(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],cr,fr),r=t[o++],n=t[o++];break;case we.Q:$D(r,n,t[o++],t[o++],t[o],t[o+1],cr,fr),r=t[o++],n=t[o++];break;case we.A:var u=t[o++],c=t[o++],f=t[o++],d=t[o++],h=t[o++],v=t[o++]+h;o+=1;var m=!t[o++];l&&(a=In(h)*f+u,i=Ln(h)*d+c),FD(u,c,f,d,h,v,m,cr,fr),r=In(v)*f+u,n=Ln(v)*d+c;break;case we.R:a=r=t[o++],i=n=t[o++];var g=t[o++],y=t[o++];Wg(a,i,a+g,i+y,cr,fr);break;case we.Z:r=a,n=i;break}Sa(ur,ur,cr),Ca(Zr,Zr,fr)}return o===0&&(ur[0]=ur[1]=Zr[0]=Zr[1]=0),new _e(ur[0],ur[1],Zr[0]-ur[0],Zr[1]-ur[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++],v=d===1;v&&(i=t[d],o=t[d+1],s=i,l=o);var m=-1;switch(h){case we.M:i=s=t[d++],o=l=t[d++];break;case we.L:{var g=t[d++],y=t[d++],_=g-i,w=y-o;(xr(_)>n||xr(w)>a||d===r-1)&&(m=Math.sqrt(_*_+w*w),i=g,o=y);break}case we.C:{var S=t[d++],T=t[d++],g=t[d++],y=t[d++],C=t[d++],x=t[d++];m=ox(i,o,S,T,g,y,C,x,10),i=C,o=x;break}case we.Q:{var S=t[d++],T=t[d++],g=t[d++],y=t[d++];m=ux(i,o,S,T,g,y,10),i=g,o=y;break}case we.A:var b=t[d++],N=t[d++],A=t[d++],D=t[d++],k=t[d++],P=t[d++],E=P+k;d+=1,v&&(s=In(k)*A+b,l=Ln(k)*D+N),m=Af(A,D)*Df(Kr,Math.abs(P)),i=In(E)*A+b,o=Ln(E)*D+N;break;case we.R:{s=i=t[d++],l=o=t[d++];var I=t[d++],L=t[d++];m=I*2+L*2;break}case we.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,v,m,g=0,y=0,_,w=0,S,T;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,m=this._pathLen,_=r*m,!_)))e:for(var C=0;C<o;){var x=n[C++],b=C===1;switch(b&&(u=n[C],c=n[C+1],s=u,l=c),x!==we.L&&w>0&&(t.lineTo(S,T),w=0),x){case we.M:s=u=n[C++],l=c=n[C++],t.moveTo(u,c);break;case we.L:{f=n[C++],d=n[C++];var N=xr(f-u),A=xr(d-c);if(N>a||A>i){if(h){var D=v[y++];if(g+D>_){var k=(_-g)/D;t.lineTo(u*(1-k)+f*k,c*(1-k)+d*k);break e}g+=D}t.lineTo(f,d),u=f,c=d,w=0}else{var P=N*N+A*A;P>w&&(S=f,T=d,w=P)}break}case we.C:{var E=n[C++],I=n[C++],L=n[C++],R=n[C++],B=n[C++],V=n[C++];if(h){var D=v[y++];if(g+D>_){var k=(_-g)/D;ps(u,E,L,B,k,En),ps(c,I,R,V,k,Pn),t.bezierCurveTo(En[1],Pn[1],En[2],Pn[2],En[3],Pn[3]);break e}g+=D}t.bezierCurveTo(E,I,L,R,B,V),u=B,c=V;break}case we.Q:{var E=n[C++],I=n[C++],L=n[C++],R=n[C++];if(h){var D=v[y++];if(g+D>_){var k=(_-g)/D;vs(u,E,L,k,En),vs(c,I,R,k,Pn),t.quadraticCurveTo(En[1],Pn[1],En[2],Pn[2]);break e}g+=D}t.quadraticCurveTo(E,I,L,R),u=L,c=R;break}case we.A:var W=n[C++],q=n[C++],Q=n[C++],ue=n[C++],z=n[C++],he=n[C++],ce=n[C++],Me=!n[C++],He=Q>ue?Q:ue,Ie=xr(Q-ue)>.001,Ae=z+he,re=!1;if(h){var D=v[y++];g+D>_&&(Ae=z+he*(_-g)/D,re=!0),g+=D}if(Ie&&t.ellipse?t.ellipse(W,q,Q,ue,ce,z,Ae,Me):t.arc(W,q,He,z,Ae,Me),re)break e;b&&(s=In(z)*Q+W,l=Ln(z)*ue+q),u=In(Ae)*Q+W,c=Ln(Ae)*ue+q;break;case we.R:s=u=n[C],l=c=n[C+1],f=n[C++],d=n[C++];var ee=n[C++],ht=n[C++];if(h){var D=v[y++];if(g+D>_){var Le=_-g;t.moveTo(f,d),t.lineTo(f+Df(Le,ee),d),Le-=ee,Le>0&&t.lineTo(f+ee,d+Df(Le,ht)),Le-=ht,Le>0&&t.lineTo(f+Af(ee-Le,0),d+ht),Le-=ee,Le>0&&t.lineTo(f,d+Af(ht-Le,0));break e}g+=D}t.rect(f,d,ee,ht);break;case we.Z:if(h){var D=v[y++];if(g+D>_){var k=(_-g)/D;t.lineTo(u*(1-k)+s*k,c*(1-k)+l*k);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=we,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function Ra(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 zD(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=ix(e,t,r,n,a,i,o,s,u,c,null);return d<=f/2}function GD(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=lx(e,t,r,n,a,i,s,l,null);return c<=u/2}var jg=Math.PI*2;function Fs(e){return e%=jg,e<0&&(e+=jg),e}var Wi=Math.PI*2;function HD(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)%Wi<1e-4)return!0;if(i){var f=n;n=Fs(a),a=Fs(f)}else n=Fs(n),a=Fs(a);n>a&&(a+=Wi);var d=Math.atan2(l,s);return d<0&&(d+=Wi),d>=n&&d<=a||d+Wi>=n&&d+Wi<=a}function Rn(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 Jr=On.CMD,Bn=Math.PI*2,WD=1e-4;function UD(e,t){return Math.abs(e-t)<WD}var ut=[-1,-1,-1],Lt=[-1,-1];function YD(){var e=Lt[0];Lt[0]=Lt[1],Lt[1]=e}function qD(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=ds(t,n,i,s,u,ut);if(c===0)return 0;for(var f=0,d=-1,h=void 0,v=void 0,m=0;m<c;m++){var g=ut[m],y=g===0||g===1?.5:1,_=Fe(e,r,a,o,g);_<l||(d<0&&(d=Wv(t,n,i,s,Lt),Lt[1]<Lt[0]&&d>1&&YD(),h=Fe(t,n,i,s,Lt[0]),d>1&&(v=Fe(t,n,i,s,Lt[1]))),d===2?g<Lt[0]?f+=h<t?y:-y:g<Lt[1]?f+=v<h?y:-y:f+=s<v?y:-y:g<Lt[0]?f+=h<t?y:-y:f+=s<h?y:-y)}return f}function jD(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=sx(t,n,i,s,ut);if(l===0)return 0;var u=Yv(t,n,i);if(u>=0&&u<=1){for(var c=0,f=Ze(t,n,i,u),d=0;d<l;d++){var h=ut[d]===0||ut[d]===1?.5:1,v=Ze(e,r,a,ut[d]);v<o||(ut[d]<u?c+=f<t?h:-h:c+=i<f?h:-h)}return c}else{var h=ut[0]===0||ut[0]===1?.5:1,v=Ze(e,r,a,ut[0]);return v<o?0:i<t?h:-h}}function XD(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);ut[0]=-l,ut[1]=l;var u=Math.abs(n-a);if(u<1e-4)return 0;if(u>=Bn-1e-4){n=0,a=Bn;var c=i?1:-1;return o>=ut[0]+e&&o<=ut[1]+e?c:0}if(n>a){var f=n;n=a,a=f}n<0&&(n+=Bn,a+=Bn);for(var d=0,h=0;h<2;h++){var v=ut[h];if(v+e>o){var m=Math.atan2(s,v),c=i?1:-1;m<0&&(m=Bn+m),(m>=n&&m<=a||m+Bn>=n&&m+Bn<=a)&&(m>Math.PI/2&&m<Math.PI*1.5&&(c=-c),d+=c)}}return d}function Xg(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,v=0;v<o;){var m=i[v++],g=v===1;switch(m===Jr.M&&v>1&&(r||(s+=Rn(l,u,c,f,n,a))),g&&(l=i[v],u=i[v+1],c=l,f=u),m){case Jr.M:c=i[v++],f=i[v++],l=c,u=f;break;case Jr.L:if(r){if(Ra(l,u,i[v],i[v+1],t,n,a))return!0}else s+=Rn(l,u,i[v],i[v+1],n,a)||0;l=i[v++],u=i[v++];break;case Jr.C:if(r){if(zD(l,u,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],t,n,a))return!0}else s+=qD(l,u,i[v++],i[v++],i[v++],i[v++],i[v],i[v+1],n,a)||0;l=i[v++],u=i[v++];break;case Jr.Q:if(r){if(GD(l,u,i[v++],i[v++],i[v],i[v+1],t,n,a))return!0}else s+=jD(l,u,i[v++],i[v++],i[v],i[v+1],n,a)||0;l=i[v++],u=i[v++];break;case Jr.A:var y=i[v++],_=i[v++],w=i[v++],S=i[v++],T=i[v++],C=i[v++];v+=1;var x=!!(1-i[v++]);d=Math.cos(T)*w+y,h=Math.sin(T)*S+_,g?(c=d,f=h):s+=Rn(l,u,d,h,n,a);var b=(n-y)*S/w+y;if(r){if(HD(y,_,S,T,T+C,x,t,b,a))return!0}else s+=XD(y,_,S,T,T+C,x,b,a);l=Math.cos(T+C)*w+y,u=Math.sin(T+C)*S+_;break;case Jr.R:c=l=i[v++],f=u=i[v++];var N=i[v++],A=i[v++];if(d=c+N,h=f+A,r){if(Ra(c,f,d,f,t,n,a)||Ra(d,f,d,h,t,n,a)||Ra(d,h,c,h,t,n,a)||Ra(c,h,c,f,t,n,a))return!0}else s+=Rn(d,f,d,h,n,a),s+=Rn(c,h,c,f,n,a);break;case Jr.Z:if(r){if(Ra(l,u,c,f,t,n,a))return!0}else s+=Rn(l,u,c,f,n,a);l=c,u=f;break}}return!r&&!UD(u,f)&&(s+=Rn(l,u,c,f,n,a)||0),s!==0}function ZD(e,t,r){return Xg(e,0,!1,t,r)}function KD(e,t,r,n){return Xg(e,t,!0,r,n)}var Zg=pe({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},An),JD={style:pe({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Rs.style)},Pf=ir.concat(["invisible","culling","z","z2","zlevel","parent"]),QD=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var a=this._decalEl=this._decalEl||new t;a.buildPath===t.prototype.buildPath&&(a.buildPath=function(l){r.buildPath(l,r.shape)}),a.silent=!0;var i=a.style;for(var o in n)i[o]!==n[o]&&(i[o]=n[o]);i.fill=n.fill?n.decal:null,i.decal=null,i.shadowColor=null,n.strokeFirst&&(i.stroke=null);for(var s=0;s<Pf.length;++s)a[Pf[s]]=this[Pf[s]];a.__dirty|=bt}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=ye(r);this.shape=this.getDefaultShape();var a=this.getDefaultStyle();a&&this.useStyle(a);for(var i=0;i<n.length;i++){var o=n[i],s=r[o];o==="style"?this.style?G(this.style,s):this.useStyle(s):o==="shape"?G(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(X(r)){var n=_s(r,0);return n>.5?tf:n>.2?Px:rf}else if(r)return rf}return tf},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(X(n)){var a=this.__zr,i=!!(a&&a.isDarkMode()),o=_s(r,0)<ef;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 On(!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)),KD(s,l/u,r,n)))return!0}if(this.hasFill())return ZD(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Aa,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var a=this.shape;return a||(a=this.shape={}),typeof r=="string"?a[r]=n:G(a,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Aa)},t.prototype.createStyle=function(r){return os(Zg,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=G({},this.shape))},t.prototype._applyStateObj=function(r,n,a,i,o,s){e.prototype._applyStateObj.call(this,r,n,a,i,o,s);var l=!(n&&i),u;if(n&&n.shape?o?i?u=n.shape:(u=G({},a.shape),G(u,n.shape)):(u=G({},i?this.shape:a.shape),G(u,n.shape)):l&&(u=a.shape),u)if(o){this.shape=G({},this.shape);for(var c={},f=ye(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 JD},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(i){H(o,i);function o(s){var l=i.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return fe(r.style)},o.prototype.getDefaultShape=function(){return fe(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|ki|Aa}(),t}(kn);const me=QD;var eA=pe({strokeFirst:!0,font:_n,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Zg),Kg=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return os(eA,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=sf(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}(kn);Kg.prototype.type="tspan";const If=Kg;var tA=pe({x:0,y:0},An),rA={style:pe({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Rs.style)};function nA(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Jg=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return os(tA,r)},t.prototype._getSize=function(r){var n=this.style,a=n[r];if(a!=null)return a;var i=nA(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 _e(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(kn);Jg.prototype.type="image";const Qr=Jg;function aA(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 Ba=Math.round;function Qg(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&&(Ba(n*2)===Ba(a*2)&&(e.x1=e.x2=Vn(n,s,!0)),Ba(i*2)===Ba(o*2)&&(e.y1=e.y2=Vn(i,s,!0))),e}}function em(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=Vn(n,s,!0),e.y=Vn(a,s,!0),e.width=Math.max(Vn(n+i,s,!1)-e.x,i===0?0:1),e.height=Math.max(Vn(a+o,s,!1)-e.y,o===0?0:1)),e}}function Vn(e,t,r){if(!t)return e;var n=Ba(e*2);return(n+Ba(t))%2===0?n/2:(n+(r?1:-1))/2}var iA=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),oA={},tm=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new iA},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=em(oA,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?aA(r,n):r.rect(a,i,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(me);tm.prototype.type="rect";const Pe=tm;var rm={fill:"#000"},nm=2,sA={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},Rs.style)},am=function(e){H(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=rm,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,hA(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 _e(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||rm},t.prototype.setTextContent=function(r){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},t.prototype._mergeStyle=function(r,n){if(!n)return r;var a=n.rich,i=r.rich||a&&{};return G(r,n),a&&i?(this._mergeRich(i,a),r.rich=i):i&&(r.rich=i),r},t.prototype._mergeRich=function(r,n){for(var a=ye(n),i=0;i<a.length;i++){var o=a[i];r[o]=r[o]||{},G(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return sA},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||_n,a=r.padding,i=fm(r),o=AD(i,r),s=Lf(r),l=!!r.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,d=o.lines,h=o.lineHeight,v=this._defaultStyle,m=r.x||0,g=r.y||0,y=r.align||v.align||"left",_=r.verticalAlign||v.verticalAlign||"top",w=m,S=Ia(g,o.contentHeight,_);if(s||a){var T=Ri(m,c,y),C=Ia(g,u,_);s&&this._renderBackground(r,r,T,C,c,u)}S+=h/2,a&&(w=cm(m,y,a),_==="top"?S+=a[0]:_==="bottom"&&(S-=a[2]));for(var x=0,b=!1,N=um("fill"in r?r.fill:(b=!0,v.fill)),A=lm("stroke"in r?r.stroke:!l&&(!v.autoStroke||b)?(x=nm,v.stroke):null),D=r.textShadowBlur>0,k=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(If),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=N,A&&(L.lineWidth=r.lineWidth||x,L.lineDash=r.lineDash,L.lineDashOffset=r.lineDashOffset||0),L.font=n,om(L,r),S+=h,k&&I.setBoundingRect(new _e(Ri(L.x,r.width,L.textAlign),Ia(L.y,P,L.textBaseline),f,P))}},t.prototype._updateRichTexts=function(){var r=this.style,n=fm(r),a=ED(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,v=Ri(u,o,d),m=Ia(c,s,h),g=v,y=m;l&&(g+=l[3],y+=l[0]);var _=g+i;Lf(r)&&this._renderBackground(r,r,v,m,o,s);for(var w=!!r.backgroundColor,S=0;S<a.lines.length;S++){for(var T=a.lines[S],C=T.tokens,x=C.length,b=T.lineHeight,N=T.width,A=0,D=g,k=_,P=x-1,E=void 0;A<x&&(E=C[A],!E.align||E.align==="left");)this._placeToken(E,r,b,y,D,"left",w),N-=E.width,D+=E.width,A++;for(;P>=0&&(E=C[P],E.align==="right");)this._placeToken(E,r,b,y,k,"right",w),N-=E.width,k-=E.width,P--;for(D+=(i-(D-g)-(_-k)-N)/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&&Lf(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,v=r.textPadding;v&&(o=cm(o,s,v),f-=r.height/2-v[0]-r.innerHeight/2);var m=this._getOrCreateChild(If),g=m.createStyle();m.useStyle(g);var y=this._defaultStyle,_=!1,w=0,S=um("fill"in u?u.fill:"fill"in n?n.fill:(_=!0,y.fill)),T=lm("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!y.autoStroke||_)?(w=nm,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||_n,g.opacity=Ur(u.opacity,n.opacity,1),om(g,u),T&&(g.lineWidth=Ur(u.lineWidth,n.lineWidth,w),g.lineDash=oe(u.lineDash,n.lineDash),g.lineDashOffset=n.lineDashOffset||0,g.stroke=T),S&&(g.fill=S);var x=r.contentWidth,b=r.contentHeight;m.setBoundingRect(new _e(Ri(g.x,x,g.textAlign),Ia(g.y,b,g.textBaseline),x,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,v=this,m,g;if(d||r.lineHeight||u&&c){m=this._getOrCreateChild(Pe),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=oe(r.fillOpacity,1)}else if(f){g=this._getOrCreateChild(Qr),g.onload=function(){v.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=oe(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=Ur(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return fA(r)&&(n=[r.fontStyle,r.fontWeight,cA(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&nr(n)||r.textFont||r.font},t}(kn),lA={left:!0,right:1,center:1},uA={top:1,bottom:1,middle:1},im=["fontStyle","fontWeight","fontSize","fontFamily"];function cA(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?dc+"px":e+"px"}function om(e,t){for(var r=0;r<im.length;r++){var n=im[r],a=t[n];a!=null&&(e[n]=a)}}function fA(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function hA(e){return sm(e),M(e.rich,sm),e}function sm(e){if(e){e.font=am.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||lA[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||uA[r]?r:"top";var n=e.padding;n&&(e.padding=yv(e.padding))}}function lm(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function um(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function cm(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function fm(e){var t=e.text;return t!=null&&(t+=""),t}function Lf(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}const Ue=am;var ge=De(),dA=function(e,t,r,n){if(n){var a=ge(n);a.dataIndex=r,a.dataType=t,a.seriesIndex=e,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=ge(i);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},hm=1,dm={},pm=De(),Of=De(),Rf=0,zs=1,Gs=2,vt=["emphasis","blur","select"],Hs=["normal","emphasis","blur","select"],pA=10,vA=9,$n="highlight",Ws="downplay",Ui="select",Us="unselect",Yi="toggleSelect";function Va(e){return e!=null&&e!=="none"}function Ys(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function vm(e){Ys(e,"emphasis",Gs)}function gm(e){e.hoverState===Gs&&Ys(e,"normal",Rf)}function Bf(e){Ys(e,"blur",zs)}function mm(e){e.hoverState===zs&&Ys(e,"normal",Rf)}function gA(e){e.selected=!0}function mA(e){e.selected=!1}function ym(e,t,r){t(e,r)}function Dr(e,t,r){ym(e,t,r),e.isGroup&&e.traverse(function(n){ym(n,t,r)})}function _m(e,t){switch(t){case"emphasis":e.hoverState=Gs;break;case"normal":e.hoverState=Rf;break;case"blur":e.hoverState=zs;break;case"select":e.selected=!0}}function yA(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 _A(e,t,r,n){var a=r&&de(r,"select")>=0,i=!1;if(e instanceof me){var o=pm(e),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(Va(s)||Va(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=G({},n),u=G({},u),u.fill=s):!Va(u.fill)&&Va(s)?(i=!0,n=G({},n),u=G({},u),u.fill=eg(s)):!Va(u.stroke)&&Va(l)&&(i||(n=G({},n),u=G({},u)),u.stroke=eg(l)),n.style=u}}if(n&&n.z2==null){i||(n=G({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??pA)}return n}function wA(e,t,r){if(r&&r.z2==null){r=G({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??vA)}return r}function bA(e,t,r){var n=de(e.currentStates,t)>=0,a=e.style.opacity,i=n?null:yA(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=G({},r),o=G({opacity:n?a:i.opacity*.1},o),r.style=o),r}function Vf(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return _A(this,e,t,r);if(e==="blur")return bA(this,e,r);if(e==="select")return wA(this,e,r)}return r}function wm(e){e.stateProxy=Vf;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Vf),r&&(r.stateProxy=Vf)}function bm(e,t){!xm(e,t)&&!e.__highByOuter&&Dr(e,vm)}function Sm(e,t){!xm(e,t)&&!e.__highByOuter&&Dr(e,gm)}function qi(e,t){e.__highByOuter|=1<<(t||0),Dr(e,vm)}function ji(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Dr(e,gm)}function Cm(e){Dr(e,Bf)}function $f(e){Dr(e,mm)}function Tm(e){Dr(e,gA)}function Nm(e){Dr(e,mA)}function xm(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Dm(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(a,i){var o=Of(i),s=a==="series",l=s?e.getViewOfSeriesModel(i):e.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){mm(u)}),s&&r.push(i)),o.isBlured=!1}),M(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(r,!1,t)})}function Ff(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&&$f(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"||Bf(g)}),it(t))i(u.getData(),t);else if(J(t))for(var v=ye(t),m=0;m<v.length;m++)i(u.getData(v[m]),t[v[m]]);l.push(u),Of(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 zf(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){Of(n).isBlured=!0;var a=r.getViewOfComponentModel(n);!a||!a.focusBlurEnabled||a.group.traverse(function(i){Bf(i)})}}}function SA(e,t,r){var n=e.seriesIndex,a=e.getData(t.dataType);if(!a){process.env.NODE_ENV!=="production"&&Ke("Unknown dataType "+t.dataType);return}var i=xn(a,t);i=(U(i)?i[0]:i)||0;var o=a.getItemGraphicEl(i);if(!o)for(var s=a.count(),l=0;!o&&l<s;)o=a.getItemGraphicEl(l++);if(o){var u=ge(o);Ff(n,u.focus,u.blurScope,r)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&Ff(n,c,f,r)}}function Gf(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"&&!$a(s[u])&&Ke("param should be highDownDispatcher"),ge(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function CA(e,t,r){process.env.NODE_ENV!=="production"&&!$a(e)&&Ke("param should be highDownDispatcher");var n=ge(e),a=Gf(n.componentMainType,n.componentIndex,n.componentHighDownName,r),i=a.dispatchers,o=a.focusSelf;i?(o&&zf(n.componentMainType,n.componentIndex,r),M(i,function(s){return bm(s,t)})):(Ff(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&zf(n.componentMainType,n.componentIndex,r),bm(e,t))}function TA(e,t,r){process.env.NODE_ENV!=="production"&&!$a(e)&&Ke("param should be highDownDispatcher"),Dm(r);var n=ge(e),a=Gf(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;a?M(a,function(i){return Sm(i,t)}):Sm(e,t)}function NA(e,t,r){if(Hf(t)){var n=t.dataType,a=e.getData(n),i=xn(a,t);U(i)||(i=[i]),e[t.type===Yi?"toggleSelect":t.type===Ui?"select":"unselect"](i,n)}}function Am(e){var t=e.getAllData();M(t,function(r){var n=r.data,a=r.type;n.eachItemGraphicEl(function(i,o){e.isSelected(o,a)?Tm(i):Nm(i)})})}function xA(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();M(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 qs(e,t,r){Mm(e,!0),Dr(e,wm),AA(e,t,r)}function DA(e){Mm(e,!1)}function Fn(e,t,r,n){n?DA(e):qs(e,t,r)}function AA(e,t,r){var n=ge(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var km=["emphasis","blur","select"],kA={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function js(e,t,r,n){r=r||"itemStyle";for(var a=0;a<km.length;a++){var i=km[a],o=t.getModel([i,r]),s=e.ensureState(i);s.style=n?n(o):o[kA[r]]()}}function Mm(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 $a(e){return!!(e&&e.__highDownDispatcher)}function MA(e){var t=dm[e];return t==null&&hm<=32&&(t=dm[e]=hm++),t}function Hf(e){var t=e.type;return t===Ui||t===Us||t===Yi}function Em(e){var t=e.type;return t===$n||t===Ws}function EA(e){var t=pm(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 Fa=On.CMD,PA=[[],[],[]],Pm=Math.sqrt,IA=Math.atan2;function LA(e,t){if(t){var r=e.data,n=e.len(),a,i,o,s,l,u,c=Fa.M,f=Fa.C,d=Fa.L,h=Fa.R,v=Fa.A,m=Fa.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 v:var g=t[4],y=t[5],_=Pm(t[0]*t[0]+t[1]*t[1]),w=Pm(t[2]*t[2]+t[3]*t[3]),S=IA(-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++],Dt(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Dt(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<i;l++){var T=PA[l];T[0]=r[o++],T[1]=r[o++],Dt(T,T,t),r[s++]=T[0],r[s++]=T[1]}}e.increaseVersion()}}var Wf=Math.sqrt,Xs=Math.sin,Zs=Math.cos,Xi=Math.PI;function Im(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Uf(e,t){return(e[0]*t[0]+e[1]*t[1])/(Im(e)*Im(t))}function Lm(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Uf(e,t))}function Om(e,t,r,n,a,i,o,s,l,u,c){var f=l*(Xi/180),d=Zs(f)*(e-r)/2+Xs(f)*(t-n)/2,h=-1*Xs(f)*(e-r)/2+Zs(f)*(t-n)/2,v=d*d/(o*o)+h*h/(s*s);v>1&&(o*=Wf(v),s*=Wf(v));var m=(a===i?-1:1)*Wf((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+Zs(f)*g-Xs(f)*y,w=(t+n)/2+Xs(f)*g+Zs(f)*y,S=Lm([1,0],[(d-g)/o,(h-y)/s]),T=[(d-g)/o,(h-y)/s],C=[(-1*d-g)/o,(-1*h-y)/s],x=Lm(T,C);if(Uf(T,C)<=-1&&(x=Xi),Uf(T,C)>=1&&(x=0),x<0){var b=Math.round(x/Xi*1e6)/1e6;x=Xi*2+b%2*Xi}c.addData(u,_,w,o,s,S,x,f,i)}var OA=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,RA=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function BA(e){var t=new On;if(!e)return t;var r=0,n=0,a=r,i=n,o,s=On.CMD,l=e.match(OA);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(RA)||[],v=h.length,m=0;m<v;m++)h[m]=parseFloat(h[m]);for(var g=0;g<v;){var y=void 0,_=void 0,w=void 0,S=void 0,T=void 0,C=void 0,x=void 0,b=r,N=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++],N=h[g++],r=h[g++],n=h[g++],t.addData(d,y,_,b,N,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++],N=n+h[g++],r+=h[g++],n+=h[g++],t.addData(d,y,_,b,N,r,n);break;case"Q":b=h[g++],N=h[g++],r=h[g++],n=h[g++],d=s.Q,t.addData(d,b,N,r,n);break;case"q":b=h[g++]+r,N=h[g++]+n,r+=h[g++],n+=h[g++],d=s.Q,t.addData(d,b,N,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++],x=h[g++],b=r,N=n,r=h[g++],n=h[g++],d=s.A,Om(b,N,r,n,C,x,w,S,T,d,t);break;case"a":w=h[g++],S=h[g++],T=h[g++],C=h[g++],x=h[g++],b=r,N=n,r+=h[g++],n+=h[g++],d=s.A,Om(b,N,r,n,C,x,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 Rm=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(me);function Bm(e){return e.setData!=null}function Vm(e,t){var r=BA(e),n=G({},t);return n.buildPath=function(a){if(Bm(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){LA(r,a),this.dirtyShape()},n}function VA(e,t){return new Rm(Vm(e,t))}function $A(e,t){var r=Vm(e,t),n=function(a){H(i,a);function i(o){var s=a.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return i}(Rm);return n}function FA(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 me(t);return o.createPathProxy(),o.buildPath=function(s){if(Bm(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}var zA=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),$m=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new zA},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}(me);$m.prototype.type="circle";const Yf=$m;var GA=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),Fm=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new GA},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}(me);Fm.prototype.type="ellipse";const zm=Fm;var Gm=Math.PI,qf=Gm*2,zn=Math.sin,za=Math.cos,HA=Math.acos,Je=Math.atan2,Hm=Math.abs,Zi=Math.sqrt,Ki=Math.max,hr=Math.min,jt=1e-4;function WA(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<jt))return d=(c*(t-i)-f*(e-a))/d,[e+d*l,t+d*u]}function Ks(e,t,r,n,a,i,o){var s=e-r,l=t-n,u=(o?i:-i)/Zi(s*s+l*l),c=u*l,f=-u*s,d=e+c,h=t+f,v=r+c,m=n+f,g=(d+v)/2,y=(h+m)/2,_=v-d,w=m-h,S=_*_+w*w,T=a-i,C=d*m-v*h,x=(w<0?-1:1)*Zi(Ki(0,T*T*S-C*C)),b=(C*w-_*x)/S,N=(-C*_-w*x)/S,A=(C*w+_*x)/S,D=(-C*_+w*x)/S,k=b-g,P=N-y,E=A-g,I=D-y;return k*k+P*P>E*E+I*I&&(b=A,N=D),{cx:b,cy:N,x0:-c,y0:-f,x1:b*(a/T-1),y1:N*(a/T-1)}}function UA(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 YA(e,t){var r,n=Ki(t.r,0),a=Ki(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=Hm(u-l),v=h>qf&&h%qf;if(v>jt&&(h=v),!(n>jt))e.moveTo(c,f);else if(h>qf-jt)e.moveTo(c+n*za(l),f+n*zn(l)),e.arc(c,f,n,l,u,!d),a>jt&&(e.moveTo(c+a*za(u),f+a*zn(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,x=void 0,b=void 0,N=void 0,A=void 0,D=void 0,k=void 0,P=void 0,E=void 0,I=n*za(l),L=n*zn(l),R=a*za(u),B=a*zn(u),V=h>jt;if(V){var W=t.cornerRadius;W&&(r=UA(W),m=r[0],g=r[1],y=r[2],_=r[3]);var q=Hm(n-a)/2;if(w=hr(q,y),S=hr(q,_),T=hr(q,m),C=hr(q,g),N=x=Ki(w,S),A=b=Ki(T,C),(x>jt||b>jt)&&(D=n*za(u),k=n*zn(u),P=a*za(l),E=a*zn(l),h<Gm)){var Q=WA(I,L,P,E,D,k,R,B);if(Q){var ue=I-Q[0],z=L-Q[1],he=D-Q[0],ce=k-Q[1],Me=1/zn(HA((ue*he+z*ce)/(Zi(ue*ue+z*z)*Zi(he*he+ce*ce)))/2),He=Zi(Q[0]*Q[0]+Q[1]*Q[1]);N=hr(x,(n-He)/(Me+1)),A=hr(b,(a-He)/(Me-1))}}}if(!V)e.moveTo(c+I,f+L);else if(N>jt){var Ie=hr(y,N),Ae=hr(_,N),re=Ks(P,E,I,L,n,Ie,d),ee=Ks(D,k,R,B,n,Ae,d);e.moveTo(c+re.cx+re.x0,f+re.cy+re.y0),N<x&&Ie===Ae?e.arc(c+re.cx,f+re.cy,N,Je(re.y0,re.x0),Je(ee.y0,ee.x0),!d):(Ie>0&&e.arc(c+re.cx,f+re.cy,Ie,Je(re.y0,re.x0),Je(re.y1,re.x1),!d),e.arc(c,f,n,Je(re.cy+re.y1,re.cx+re.x1),Je(ee.cy+ee.y1,ee.cx+ee.x1),!d),Ae>0&&e.arc(c+ee.cx,f+ee.cy,Ae,Je(ee.y1,ee.x1),Je(ee.y0,ee.x0),!d))}else e.moveTo(c+I,f+L),e.arc(c,f,n,l,u,!d);if(!(a>jt)||!V)e.lineTo(c+R,f+B);else if(A>jt){var Ie=hr(m,A),Ae=hr(g,A),re=Ks(R,B,D,k,a,-Ae,d),ee=Ks(I,L,P,E,a,-Ie,d);e.lineTo(c+re.cx+re.x0,f+re.cy+re.y0),A<b&&Ie===Ae?e.arc(c+re.cx,f+re.cy,A,Je(re.y0,re.x0),Je(ee.y0,ee.x0),!d):(Ae>0&&e.arc(c+re.cx,f+re.cy,Ae,Je(re.y0,re.x0),Je(re.y1,re.x1),!d),e.arc(c,f,a,Je(re.cy+re.y1,re.cx+re.x1),Je(ee.cy+ee.y1,ee.cx+ee.x1),d),Ie>0&&e.arc(c+ee.cx,f+ee.cy,Ie,Je(ee.y1,ee.x1),Je(ee.y0,ee.x0),!d))}else e.lineTo(c+R,f+B),e.arc(c,f,a,u,l,d)}e.closePath()}}}var qA=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}(),Wm=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new qA},t.prototype.buildPath=function(r,n){YA(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(me);Wm.prototype.type="sector";const Gn=Wm;var jA=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Um=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new jA},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}(me);Um.prototype.type="ring";const Ym=Um;function XA(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++)Sa(c,c,e[d]),Ca(f,f,e[d]);Sa(c,c,n[0]),Ca(f,f,n[1])}for(var d=0,h=e.length;d<h;d++){var v=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(DN(e[d]));continue}else l=e[d-1],u=e[d+1];Cv(i,u,l),yc(i,i,t);var m=wc(v,l),g=wc(v,u),y=m+g;y!==0&&(m/=y,g/=y),yc(o,i,-m),yc(s,i,g);var _=Sv([],v,o),w=Sv([],v,s);n&&(Ca(_,_,c),Sa(_,_,f),Ca(w,w,c),Sa(w,w,f)),a.push(_),a.push(w)}return r&&a.push(a.shift()),a}function qm(e,t,r){var n=t.smooth,a=t.points;if(a&&a.length>=2){if(n){var i=XA(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 ZA=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),jm=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new ZA},t.prototype.buildPath=function(r,n){qm(r,n,!0)},t}(me);jm.prototype.type="polygon";const jf=jm;var KA=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Ga=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new KA},t.prototype.buildPath=function(r,n){qm(r,n,!1)},t}(me);Ga.prototype.type="polyline";var JA={},QA=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Xm=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new QA},t.prototype.buildPath=function(r,n){var a,i,o,s;if(this.subPixelOptimize){var l=Qg(JA,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}(me);Xm.prototype.type="line";const en=Xm;var gt=[],ek=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 Zm(e,t,r){var n=e.cpx2,a=e.cpy2;return n!=null||a!=null?[(r?Hv:Fe)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?Hv:Fe)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?Uv:Ze)(e.x1,e.cpx1,e.x2,t),(r?Uv:Ze)(e.y1,e.cpy1,e.y2,t)]}var Km=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new ek},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&&(vs(a,l,o,d,gt),l=gt[1],o=gt[2],vs(i,u,s,d,gt),u=gt[1],s=gt[2]),r.quadraticCurveTo(l,u,o,s)):(d<1&&(ps(a,l,c,o,d,gt),l=gt[1],c=gt[2],o=gt[3],ps(i,u,f,s,d,gt),u=gt[1],f=gt[2],s=gt[3]),r.bezierCurveTo(l,u,c,f,o,s)))},t.prototype.pointAt=function(r){return Zm(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=Zm(this.shape,r,!0);return _c(n,n)},t}(me);Km.prototype.type="bezier-curve";const Xf=Km;var tk=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}(),Jm=function(e){H(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new tk},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}(me);Jm.prototype.type="arc";const Zf=Jm;var rk=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),a=0;a<r.length;a++)n=n||r[a].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),a=0;a<r.length;a++)r[a].path||r[a].createPathProxy(),r[a].path.setScale(n[0],n[1],r[a].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var a=n.paths||[],i=0;i<a.length;i++)a[i].buildPath(r,a[i].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),me.prototype.getBoundingRect.call(this)},t}(me);const nk=rk;var ak=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}();const Qm=ak;var ey=function(e){H(t,e);function t(r,n,a,i,o,s){var l=e.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=a??1,l.y2=i??0,l.type="linear",l.global=s||!1,l}return t}(Qm),ik=function(e){H(t,e);function t(r,n,a,i,o){var s=e.call(this,i)||this;return s.x=r??.5,s.y=n??.5,s.r=a??.5,s.type="radial",s.global=o||!1,s}return t}(Qm);const ok=ik;var Hn=[0,0],Wn=[0,0],Js=new le,Qs=new le,sk=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 Js.set(1/0,1/0),Qs.set(0,0),!this._intersectCheckOneSide(this,t,Js,Qs,a,1)&&(n=!1,a)||!this._intersectCheckOneSide(t,this,Js,Qs,a,-1)&&(n=!1,a)||a||le.copy(r,n?Js:Qs),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,Hn),this._getProjMinMaxOnAxis(l,r._corners,Wn),Hn[1]<Wn[0]||Hn[0]>Wn[1]){if(s=!1,i)return s;var c=Math.abs(Wn[0]-Hn[1]),f=Math.abs(Hn[0]-Wn[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(Wn[0]-Hn[1]),f=Math.abs(Hn[0]-Wn[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 el=sk;var lk=[],uk=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var a=0;a<r.length;a++)this.addDisplayable(r[a],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new _e(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(lk)),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}(kn);const ck=uk;var fk=De();function Kf(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=oe(n.duration,200),c=oe(n.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),i&&(i.duration!=null&&(u=i.duration),i.easing!=null&&(c=i.easing),i.delay!=null&&(f=i.delay)),ie(f)&&(f=f(r,a)),ie(u)&&(u=u(r));var d={duration:u||0,delay:f,easing:c};return d}else return null}function Jf(e,t,r,n,a,i,o){var s=!1,l;ie(a)?(o=i,i=a,a=null):J(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=Kf(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,v={duration:f,delay:d||0,easing:h,done:i,force:!!i||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,v):t.animateTo(r,v)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),i&&i()}function Qe(e,t,r,n,a,i){Jf("update",e,t,r,n,a,i)}function Ct(e,t,r,n,a,i){Jf("enter",e,t,r,n,a,i)}function Ji(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 tl(e,t,r,n,a,i){Ji(e)||Jf("leave",e,t,r,n,a,i)}function ty(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),tl(e,{style:{opacity:0}},t,r,n)}function rl(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(a){a.isGroup||ty(a,t,r,n)}):ty(e,t,r,n)}function Qf(e){fk(e).oldStyle=e.style}var nl=Math.max,al=Math.min,eh={};function hk(e){return me.extend(e)}var dk=$A;function pk(e,t){return dk(e,t)}function Xt(e,t){eh[e]=t}function ry(e){if(eh.hasOwnProperty(e))return eh[e]}function il(e,t,r,n){var a=VA(e,t);return r&&(n==="center"&&(r=ay(r,a.getBoundingRect())),iy(a,r)),a}function ny(e,t,r){var n=new Qr({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(ay(t,i))}}});return n}function ay(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 vk=FA;function iy(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function Qi(e,t){return Qg(e,e,{lineWidth:t}),e}function gk(e){return em(e.shape,e.shape,e.style),e}var mk=Vn;function oy(e,t){for(var r=Mc([]);e&&e!==t;)Da(r,e.getLocalTransform(),r),e=e.parent;return r}function eo(e,t,r){return t&&!it(t)&&(t=of.getLocalTransform(t)),r&&(t=Ic([],t)),Dt([],e,t)}function sy(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=eo(i,t,r),Math.abs(i[0])>Math.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function ly(e){return!e.isGroup}function yk(e){return e.shape!=null}function uy(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){ly(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return yk(o)&&(s.shape=G({},o.shape)),s}var i=n(e);t.traverse(function(o){if(ly(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),Qe(o,l,r,ge(o).dataIndex)}}})}function _k(e,t){return j(e,function(r){var n=r[0];n=nl(n,t.x),n=al(n,t.x+t.width);var a=r[1];return a=nl(a,t.y),a=al(a,t.y+t.height),[n,a]})}function wk(e,t){var r=nl(e.x,t.x),n=al(e.x+e.width,t.x+t.width),a=nl(e.y,t.y),i=al(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 th(e,t,r){var n=G({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(a.image=e.slice(8),pe(a,r),new Qr(n)):il(e.replace("path://",""),n,r,"center")}function bk(e,t,r,n,a){for(var i=0,o=a[a.length-1];i<a.length;i++){var s=a[i];if(cy(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function cy(e,t,r,n,a,i,o,s){var l=r-e,u=n-t,c=o-a,f=s-i,d=rh(c,f,l,u);if(Sk(d))return!1;var h=e-a,v=t-i,m=rh(h,v,l,u)/d;if(m<0||m>1)return!1;var g=rh(h,v,c,f)/d;return!(g<0||g>1)}function rh(e,t,r,n){return e*n-r*t}function Sk(e){return e<=1e-6&&e>=-1e-6}function nh(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&&M(ye(l),function(c){Y(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=ge(e.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:pe({content:n,formatterParams:s},a)}}function fy(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Ha(e,t){if(e)if(U(e))for(var r=0;r<e.length;r++)fy(e[r],t);else fy(e,t)}Xt("circle",Yf),Xt("ellipse",zm),Xt("sector",Gn),Xt("ring",Ym),Xt("polygon",jf),Xt("polyline",Ga),Xt("rect",Pe),Xt("line",en),Xt("bezierCurve",Xf),Xt("arc",Zf);const Ck=Object.freeze(Object.defineProperty({__proto__:null,Arc:Zf,BezierCurve:Xf,BoundingRect:_e,Circle:Yf,CompoundPath:nk,Ellipse:zm,Group:Oe,Image:Qr,IncrementalDisplayable:ck,Line:en,LinearGradient:ey,OrientedBoundingRect:el,Path:me,Point:le,Polygon:jf,Polyline:Ga,RadialGradient:ok,Rect:Pe,Ring:Ym,Sector:Gn,Text:Ue,applyTransform:eo,clipPointsByRect:_k,clipRectByRect:wk,createIcon:th,extendPath:pk,extendShape:hk,getShapeClass:ry,getTransform:oy,groupTransition:uy,initProps:Ct,isElementRemoved:Ji,lineLineIntersect:cy,linePolygonIntersect:bk,makeImage:ny,makePath:il,mergePath:vk,registerShape:Xt,removeElement:tl,removeElementWithFadeOut:rl,resizePath:iy,setTooltipConfig:nh,subPixelOptimize:mk,subPixelOptimizeLine:Qi,subPixelOptimizeRect:gk,transformDirection:sy,traverseElements:Ha,updateProps:Qe},Symbol.toStringTag,{value:"Module"}));var ol={};function Tk(e,t){for(var r=0;r<vt.length;r++){var n=vt[r],a=t[n],i=e.ensureState(n);i.style=i.style||{},i.style.text=a}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function hy(e,t,r){var n=e.labelFetcher,a=e.labelDataIndex,i=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(a,"normal",null,i,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=ie(e.defaultText)?e.defaultText(a,e,r):e.defaultText);for(var l={normal:s},u=0;u<vt.length;u++){var c=vt[u],f=t[c];l[c]=oe(n?n.getFormattedLabel(a,c,null,i,f&&f.get("formatter")):null,s)}return l}function Wa(e,t,r,n){r=r||ol;for(var a=e instanceof Ue,i=!1,o=0;o<Hs.length;o++){var s=t[Hs[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=hy(r,t),c=t.normal,f=!!c.getShallow("show"),d=Zt(c,n&&n.normal,r,!1,!a);d.text=u.normal,a||e.setTextConfig(sl(c,r,!1));for(var o=0;o<vt.length;o++){var h=vt[o],s=t[h];if(s){var v=l.ensureState(h),m=!!oe(s.getShallow("show"),f);if(m!==f&&(v.ignore=!m),v.style=Zt(s,n&&n[h],r,!0,!a),v.style.text=u[h],!a){var g=e.ensureState(h);g.textConfig=sl(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&&(ll(l).setLabelText=function(y){var _=hy(r,t,y);Tk(l,_)})}else l&&(l.ignore=!0);e.dirty()}function Un(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<vt.length;n++){var a=vt[n];r[a]=e.getModel([a,t])}return r}function Zt(e,t,r,n,a){var i={};return Nk(i,e,r,n,a),t&&G(i,t),i}function sl(e,t,r){t=t||{};var n={},a,i=e.getShallow("rotate"),o=oe(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 Nk(e,t,r,n,a){r=r||ol;var i=t.ecModel,o=i&&i.option.textStyle,s=xk(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);gy(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),gy(e,t,o,r,n,a,!0,!1)}function xk(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||ol).rich;if(r){t=t||{};for(var n=ye(r),a=0;a<n.length;a++){var i=n[a];t[i]=1}}e=e.parentModel}return t}var dy=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],py=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],vy=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function gy(e,t,r,n,a,i,o,s){r=!a&&r||ol;var l=n&&n.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=oe(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=oe(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var h=oe(t.getShallow("textBorderType"),r.textBorderType);h!=null&&(e.lineDash=h);var v=oe(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!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<dy.length;m++){var g=dy[m],y=oe(t.getShallow(g),r[g]);y!=null&&(e[g]=y)}for(var m=0;m<py.length;m++){var g=py[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<vy.length;m++){var g=vy[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 my(e,t){var r=t&&t.getModel("textStyle");return nr([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 ll=De();function Dk(e,t,r,n){if(e){var a=ll(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 Ak=["textStyle","color"],ah=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],ih=new Ue,kk=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(Ak):null)},e.prototype.getFont=function(){return my({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<ah.length;n++)r[ah[n]]=this.getShallow(ah[n]);return ih.useStyle(r),ih.update(),ih.getBoundingRect()},e}();const Mk=kk;var yy=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Ek=Gi(yy),Pk=function(){function e(){}return e.prototype.getLineStyle=function(t){return Ek(this,t)},e}(),_y=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Ik=Gi(_y),Lk=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return Ik(this,t,r)},e}(),Yn=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){ve(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,a=n==null?n:n[t];if(a==null&&!r){var i=this.parentModel;i&&(a=i.getShallow(t))}return a},e.prototype.getModel=function(t,r){var n=t!=null,a=n?this.parsePath(t):null,i=n?this._doGet(a):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(a)),new e(i,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(fe(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}();yf(Yn),_D(Yn),Wt(Yn,Pk),Wt(Yn,Lk),Wt(Yn,TD),Wt(Yn,Mk);const et=Yn;var Ok=Math.round(Math.random()*10);function ul(e){return[e||"",Ok++].join("_")}function Rk(e){var t={};e.registerSubTypeDefaulter=function(r,n){var a=lr(r);t[a.main]=n},e.determineSubType=function(r,n){var a=n.type;if(!a){var i=lr(r).main;e.hasSubTypes(r)&&t[i]&&(a=t[i](n))}return a}}function Bk(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(M(i,function(_){d[_]=!0});f.length;){var h=f.pop(),v=c[h],m=!!d[h];m&&(s.call(l,h,v.originalDeps.slice()),delete d[h]),M(v.successor,m?y:g)}M(d,function(){var _="";throw process.env.NODE_ENV!=="production"&&(_=Ps("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 M(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),M(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 M(i,function(l){de(o,l)>=0&&s.push(l)}),s}}function cl(e,t){return ve(ve({},e,!0),t,!0)}const Vk={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 fl="ZH",oh="EN",Ua=oh,hl={},sh={},wy=ae.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Ua).toUpperCase();return e.indexOf(fl)>-1?fl:Ua}():Ua;function by(e,t){e=e.toUpperCase(),sh[e]=new et(t),hl[e]=t}function Fk(e){if(X(e)){var t=hl[e.toUpperCase()]||{};return e===fl||e===oh?fe(t):ve(fe(t),fe(hl[Ua]),!1)}else return ve(fe(e),fe(hl[Ua]),!1)}function zk(e){return sh[e]}function Gk(){return sh[Ua]}by(oh,Vk),by(fl,$k);var lh=1e3,uh=lh*60,to=uh*60,Ot=to*24,Sy=Ot*365,ro={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}"},dl="{yyyy}-{MM}-{dd}",Cy={year:"{yyyy}",month:"{yyyy}-{MM}",day:dl,hour:dl+" "+ro.hour,minute:dl+" "+ro.minute,second:dl+" "+ro.second,millisecond:ro.none},ch=["year","month","day","hour","minute","second","millisecond"],Ty=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function tn(e,t){return e+="","0000".substr(0,t-e.length)+e}function Ya(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 Hk(e){return e===Ya(e)}function Wk(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function pl(e,t,r,n){var a=Nr(e),i=a[fh(r)](),o=a[qa(r)]()+1,s=Math.floor((o-1)/3)+1,l=a[vl(r)](),u=a["get"+(r?"UTC":"")+"Day"](),c=a[no(r)](),f=(c-1)%12+1,d=a[gl(r)](),h=a[ml(r)](),v=a[yl(r)](),m=n instanceof et?n:zk(n||wy)||Gk(),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,tn(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[o-1]).replace(/{MMM}/g,_[o-1]).replace(/{MM}/g,tn(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,tn(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,w[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,tn(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,tn(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,tn(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,tn(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,tn(v,3)).replace(/{S}/g,v+"")}function Uk(e,t,r,n,a){var i=null;if(X(r))i=r;else if(ie(r))i=r(e.value,t,{level:e.level});else{var o=G({},ro);if(e.level>0)for(var s=0;s<ch.length;++s)o[ch[s]]="{primary|"+o[ch[s]]+"}";var l=r?r.inherit===!1?r:pe(r,o):o,u=Ny(e.value,a);if(l[u])i=l[u];else if(l.inherit){for(var c=Ty.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 pl(new Date(e.value),i,a,n)}function Ny(e,t){var r=Nr(e),n=r[qa(t)]()+1,a=r[vl(t)](),i=r[no(t)](),o=r[gl(t)](),s=r[ml(t)](),l=r[yl(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&i===0,h=d&&a===1,v=h&&n===1;return v?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function xy(e,t,r){var n=Te(e)?Nr(e):e;switch(t=t||Ny(e,r),t){case"year":return n[fh(r)]();case"half-year":return n[qa(r)]()>=6?1:0;case"quarter":return Math.floor((n[qa(r)]()+1)/4);case"month":return n[qa(r)]();case"day":return n[vl(r)]();case"half-day":return n[no(r)]()/24;case"hour":return n[no(r)]();case"minute":return n[gl(r)]();case"second":return n[ml(r)]();case"millisecond":return n[yl(r)]()}}function fh(e){return e?"getUTCFullYear":"getFullYear"}function qa(e){return e?"getUTCMonth":"getMonth"}function vl(e){return e?"getUTCDate":"getDate"}function no(e){return e?"getUTCHours":"getHours"}function gl(e){return e?"getUTCMinutes":"getMinutes"}function ml(e){return e?"getUTCSeconds":"getSeconds"}function yl(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Yk(e){return e?"setUTCFullYear":"setFullYear"}function Dy(e){return e?"setUTCMonth":"setMonth"}function Ay(e){return e?"setUTCDate":"setDate"}function ky(e){return e?"setUTCHours":"setHours"}function My(e){return e?"setUTCMinutes":"setMinutes"}function Ey(e){return e?"setUTCSeconds":"setSeconds"}function Py(e){return e?"setUTCMilliseconds":"setMilliseconds"}function Iy(e){if(!Cg(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 Ly(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 _l=yv;function hh(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(c){return c&&nr(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?Nr(e):e;if(isNaN(+l)){if(s)return"-"}else return pl(l,n,r)}if(t==="ordinal")return as(e)?a(e):Te(e)&&i(e)?e+"":"-";var u=Ms(e);return i(u)?Iy(u):as(e)?a(e):typeof e=="boolean"?e+"":"-"}var Oy=["a","b","c","d","e","f","g"],dh=function(e,t){return"{"+e+(t??"")+"}"};function Ry(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=Oy[i];e=e.replace(dh(o),dh(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(dh(Oy[l],s),r?At(u):u)}return e}function qk(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:'+At(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+At(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:J(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function By(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var wl=M,jk=["left","right","top","bottom","width","height"],bl=[["width","left","right"],["height","top","bottom"]];function ph(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,v;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);v=o+g,v>a||l.newline?(i+=s+r,o=0,v=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=v+r)})}var ao=ph;Se(ph,"vertical"),Se(ph,"horizontal");function jn(e,t,r){r=_l(r||0);var n=t.width,a=t.height,i=Ne(e.left,n),o=Ne(e.top,a),s=Ne(e.right,n),l=Ne(e.bottom,a),u=Ne(e.width,n),c=Ne(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 v=new _e(i+r[3],o+r[0],u,c);return v.margin=r,v}function io(e){var t=e.layoutMode||e.constructor.layoutMode;return J(t)?t:t?{type:t}:null}function ja(e,t,r){var n=r&&r.ignoreSize;!U(n)&&(n=[n,n]);var a=o(bl[0],0),i=o(bl[1],1);u(bl[0],e,a),u(bl[1],e,i);function o(c,f){var d={},h=0,v={},m=0,g=2;if(wl(c,function(w){v[w]=e[w]}),wl(c,function(w){s(t,w)&&(d[w]=v[w]=t[w]),l(d,w)&&h++,l(v,w)&&m++}),n[f])return l(t,c[1])?v[c[2]]=null:l(t,c[2])&&(v[c[1]]=null),v;if(m===g||!h)return v;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){wl(c,function(h){f[h]=d[h]})}}function oo(e){return Xk({},e)}function Xk(e,t){return t&&e&&wl(jk,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var Zk=De(),Xa=function(e){H(t,e);function t(r,n,a){var i=e.call(this,r,n,a)||this;return i.uid=ul("ec_cpt_model"),i}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=io(this),i=a?oo(r):{},o=n.getTheme();ve(r,o.get(this.mainType)),ve(r,this.getDefaultOption()),a&&ja(r,i,a)},t.prototype.mergeOption=function(r,n){ve(this.option,r,!0);var a=io(this);a&&ja(this.option,r,a)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!gD(r))return r.defaultOption;var n=Zk(this);if(!n.defaultOption){for(var a=[],i=r;i;){var o=i.prototype.defaultOption;o&&a.push(o),i=i.superClass}for(var s={},l=a.length-1;l>=0;l--)s=ve(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var a=r+"Index",i=r+"Id";return zi(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);Rg(Xa,et),Ls(Xa),Rk(Xa),Bk(Xa,Kk);function Kk(e){var t=[];return M(Xa.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=j(t,function(r){return lr(r).main}),e!=="dataset"&&de(t,"dataset")<=0&&t.unshift("dataset"),t}const xe=Xa;var Vy="";typeof navigator<"u"&&(Vy=navigator.platform||"");var Za="rgba(0, 0, 0, 0.2)";const Jk={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Za,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Za,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Za,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Za,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Za,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Za,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Vy.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 vh=se(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Rt="original",mt="arrayRows",Kt="objectRows",dr="keyedColumns",Ar="typedArray",$y="unknown",kr="column",Ka="row",je={Must:1,Might:2,Not:3},Fy=De();function Qk(e){Fy(e).datasetMap=se()}function eM(e,t,r){var n={},a=gh(t);if(!a||!e)return n;var i=[],o=[],s=t.ecModel,l=Fy(s).datasetMap,u=a.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),M(e,function(m,g){var y=J(m)?m:e[g]={name:m};y.type==="ordinal"&&c==null&&(c=g,f=v(y)),n[y.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});M(e,function(m,g){var y=m.name,_=v(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 v(m){var g=m.dimsDef;return g?g.length:1}return i.length&&(n.itemName=i),o.length&&(n.seriesName=o),n}function tM(e,t,r){var n={},a=gh(e);if(!a)return n;var i=t.sourceFormat,o=t.dimensionsDefine,s;(i===Kt||i===dr)&&M(o,function(c,f){(J(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],h=0,v=Math.min(5,r);h<v;h++){var m=Gy(t.data,i,t.seriesLayoutBy,o,t.startIndex,h);d.push(m);var g=m===je.Not;if(g&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!g&&d[c.n]===je.Not)&&(c.n=h),y(c)&&d[c.n]!==je.Not)return c;g||(m===je.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 gh(e){var t=e.get("data",!0);if(!t)return zi(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},pt).models[0]}function rM(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:zi(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},pt).models}function zy(e,t){return Gy(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function Gy(e,t,r,n,a,i){var o,s=5;if(ot(e))return je.Not;var l,u;if(n){var c=n[i];J(c)?(l=c.name,u=c.type):X(c)&&(l=c)}if(u!=null)return u==="ordinal"?je.Must:je.Not;if(t===mt){var f=e;if(r===Ka){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 v=f[a+h];if(v&&(o=S(v[i]))!=null)return o}}else if(t===Kt){var m=e;if(!l)return je.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===dr){var y=e;if(!l)return je.Not;var d=y[l];if(!d||ot(d))return je.Not;for(var h=0;h<d.length&&h<s;h++)if((o=S(d[h]))!=null)return o}else if(t===Rt)for(var _=e,h=0;h<_.length&&h<s;h++){var g=_[h],w=$i(g);if(!U(w))return je.Not;if((o=S(w[i]))!=null)return o}function S(T){var C=X(T);if(T!=null&&isFinite(T)&&T!=="")return C?je.Might:je.Not;if(C&&T!=="-")return je.Must}return je.Not}var nM=se();function aM(e,t,r){var n=nM.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(Oa(a[i]));return r.concat(a)}var Hy=De();De();var mh=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var a=We(this.get("color",!0)),i=this.get("colorLayer",!0);return oM(this,Hy,a,i,t,r,n)},e.prototype.clearColorPalette=function(){sM(this,Hy)},e}();function iM(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 oM(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:iM(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 sM(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Sl,so,Wy,yh="\0_ec_inner",Uy=1,lM={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"},uM={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"},Cl={};function cM(e){M(e,function(t,r){if(!xe.hasClass(r)){var n=lM[r];n&&!Cl[n]&&(Ke("Component "+r+` is used but not imported.
|
|
30
30
|
import { `+n+` } from 'echarts/components';
|
|
31
|
-
echarts.use([`+n+"]);"),Cl[n]=!0)}})}var _h=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,a,o,
|
|
32
|
-
import { `+
|
|
33
|
-
echarts.use([`+A+"]);":"Unknown series "+D))}return}if(f==="tooltip"){if(_){process.env.NODE_ENV!=="production"&&(S||(ze("Currently only one tooltip component is allowed."),S=!0));return}_=!0}if(N&&N.constructor===M)N.name=x.keyInfo.name,N.mergeOption(b,this),N.optionUpdated(b,!1);else{var P=G({componentIndex:C},x.keyInfo);N=new M(b,this,this,P),G(N,P),x.brandNew&&(N.__requireNewView=!0),N.init(b,this,this),N.optionUpdated(null,!0)}}N?(g.push(N.option),y.push(N),w++):(g.push(void 0),y.push(void 0))},this),a[f]=g,o.set(f,y),i.set(f,w),f==="series"&&Sl(this)}this._seriesIndices||Sl(this)},t.prototype.getOption=function(){var r=fe(this.option);return k(r,function(n,a){if(Ne.hasClass(a)){for(var o=We(n),i=o.length,s=!1,l=i-1;l>=0;l--)o[l]&&!Oa(o[l])?s=!0:(o[l]=null,!s&&i--);o.length=i,r[a]=o}}),delete r[yh],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(We(a),function(u){s[u]&&l.push(s[u])})):o!=null?l=Uy("id",o,s):i!=null?l=Uy("name",i,s):l=Ye(s,function(u){return!!u}),Yy(l,r)},t.prototype.findComponents=function(r){var n=r.query,a=r.mainType,o=s(n),i=o?this.queryComponents(o):Ye(this._componentsMap.get(a),function(u){return!!u});return l(Yy(i,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?Ye(u,r.filter):u}},t.prototype.eachComponent=function(r,n,a){var o=this._componentsMap;if(oe(r)){var i=n,s=r;o.each(function(f,d){for(var h=0;f&&h<f.length;h++){var v=f[h];v&&s.call(i,d,v,v.componentIndex)}})}else for(var l=X(r)?o.get(r):J(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=sr(r,null);return Ye(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 Ye(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return Ye(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){li(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){li(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 li(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){li(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=se(a)},t.prototype.restoreData=function(r){Sl(this);var n=this._componentsMap,a=[];n.each(function(o,i){Ne.hasClass(i)&&a.push(i)}),Ne.topologicalTravel(a,Ne.getAllClassMainTypes(),function(o){k(n.get(o),function(i){i&&(o!=="series"||!ck(i,r))&&i.restoreData()})})},t.internalField=function(){Sl=function(r){var n=r._seriesIndices=[];k(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=se(n)},li=function(r){if(process.env.NODE_ENV!=="production"&&!r._seriesIndices)throw new Error("Option should contains series.")},Hy=function(r,n){r.option={},r.option[yh]=Wy,r._componentsMap=se({series:[]}),r._componentsCount=se();var a=n.aria;J(a)&&a.enabled==null&&(a.enabled=!0),fk(n,r._theme.option),ve(n,KM,!1),r._mergeOption(n,null)}}(),t}(et);function ck(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 fk(e,t){var r=e.color&&!e.colorLayer;k(t,function(n,a){a==="colorLayer"&&r||Ne.hasClass(a)||(typeof n=="object"?e[a]=e[a]?ve(e[a],n,!1):fe(n):e[a]==null&&(e[a]=n))})}function Uy(e,t,r){if(U(t)){var n=se();return k(t,function(o){if(o!=null){var i=sr(o,null);i!=null&&n.set(o,!0)}}),Ye(r,function(o){return o&&n.get(o[e])})}else{var a=sr(t,null);return Ye(r,function(o){return o&&a!=null&&o[e]===a})}}function Yy(e,t){return t.hasOwnProperty("subType")?Ye(e,function(r){return r&&r.subType===t.subType}):e}function qy(e){var t=se();return e&&k(We(e.replaceMerge),function(r){process.env.NODE_ENV!=="production"&&ne(Ne.hasClass(r),'"'+r+'" is not valid component main type in "replaceMerge"'),t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Wt(_h,mh);var hk=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],dk=function(){function e(t){k(hk,function(r){this[r]=te(t[r],t)},this)}return e}();const jy=dk;var wh={},bh=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];k(wh,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){wh[t]=r},e.get=function(t){return wh[t]},e}(),pk=/^(min|max)?(.+)$/,vk=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(k(We(t.series),function(i){i&&i.data&&ot(i.data)&&mc(i.data)}),k(We(t.dataset),function(i){i&&i.source&&ot(i.source)&&mc(i.source)})),t=fe(t);var a=this._optionBackup,o=gk(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=[],fe(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=fe(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++)mk(a[l].query,r,n)&&i.push(l);return!i.length&&o&&(i=[-1]),i.length&&!_k(i,this._currentMediaIndices)&&(s=j(i,function(c){return fe(c===-1?o.option:a[c].option)})),this._currentMediaIndices=i,s},e}();function gk(e,t,r){var n=[],a,o,i=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||i&&i.timeline);i?(o=i,o.timeline||(o.timeline=s)):((f||c)&&(e.options=e.media=null),o=e),c&&(U(u)?k(u,function(h){process.env.NODE_ENV!=="production"&&h&&!h.option&&J(h.query)&&J(h.query.option)&&Ke("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"&&Ke("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),d(o),k(l,function(h){return d(h)}),k(n,function(h){return d(h.option)});function d(h){k(t,function(v){v(h,r)})}return{baseOption:o,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function mk(e,t,r){var n={width:t,height:r,aspectratio:t/r},a=!0;return k(e,function(o,i){var s=i.match(pk);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();yk(n[u],o,l)||(a=!1)}}),a}function yk(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function _k(e,t){return e.join(",")===t.join(",")}const wk=vk;var Rt=k,ui=J,Xy=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Sh(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=Xy.length;r<n;r++){var a=Xy[r],o=t.normal,i=t.emphasis;o&&o[a]&&(process.env.NODE_ENV!=="production"&&Ge("itemStyle.normal."+a,a),e[a]=e[a]||{},e[a].normal?ve(e[a].normal,o[a]):e[a].normal=o[a],o[a]=null),i&&i[a]&&(process.env.NODE_ENV!=="production"&&Ge("itemStyle.emphasis."+a,"emphasis."+a),e[a]=e[a]||{},e[a].emphasis?ve(e[a].emphasis,i[a]):e[a].emphasis=i[a],i[a]=null)}}function tt(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 ci(e){tt(e,"itemStyle"),tt(e,"lineStyle"),tt(e,"areaStyle"),tt(e,"label"),tt(e,"labelLine"),tt(e,"upperLabel"),tt(e,"edgeLabel")}function $e(e,t){var r=ui(e)&&e[t],n=ui(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=Mg.length;a<o;a++){var i=Mg[a];n.hasOwnProperty(i)&&(r[i]=n[i])}}}function Bt(e){e&&(ci(e),$e(e,"label"),e.emphasis&&$e(e.emphasis,"label"))}function bk(e){if(ui(e)){Sh(e),ci(e),$e(e,"label"),$e(e,"upperLabel"),$e(e,"edgeLabel"),e.emphasis&&($e(e.emphasis,"label"),$e(e.emphasis,"upperLabel"),$e(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Sh(t),Bt(t));var r=e.markLine;r&&(Sh(r),Bt(r));var n=e.markArea;n&&Bt(n);var a=e.data;if(e.type==="graph"){a=a||e.nodes;var o=e.links||e.edges;if(o&&!ot(o))for(var i=0;i<o.length;i++)Bt(o[i]);k(e.categories,function(u){ci(u)})}if(a&&!ot(a))for(var i=0;i<a.length;i++)Bt(a[i]);if(t=e.markPoint,t&&t.data)for(var s=t.data,i=0;i<s.length;i++)Bt(s[i]);if(r=e.markLine,r&&r.data)for(var l=r.data,i=0;i<l.length;i++)U(l[i])?(Bt(l[i][0]),Bt(l[i][1])):Bt(l[i]);e.type==="gauge"?($e(e,"axisLabel"),$e(e,"title"),$e(e,"detail")):e.type==="treemap"?(tt(e.breadcrumb,"itemStyle"),k(e.levels,function(u){ci(u)})):e.type==="tree"&&ci(e.leaves)}}function kr(e){return U(e)?e:e?[e]:[]}function Zy(e){return(U(e)?e[0]:e)||{}}function Sk(e,t){Rt(kr(e.series),function(n){ui(n)&&bk(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Rt(r,function(n){Rt(kr(e[n]),function(a){a&&($e(a,"axisLabel"),$e(a.axisPointer,"label"))})}),Rt(kr(e.parallel),function(n){var a=n&&n.parallelAxisDefault;$e(a,"axisLabel"),$e(a&&a.axisPointer,"label")}),Rt(kr(e.calendar),function(n){tt(n,"itemStyle"),$e(n,"dayLabel"),$e(n,"monthLabel"),$e(n,"yearLabel")}),Rt(kr(e.radar),function(n){$e(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"&&Rt(n.indicator,function(a){a.text&&Ge("text","name","radar.indicator")})}),Rt(kr(e.geo),function(n){ui(n)&&(Bt(n),Rt(kr(n.regions),function(a){Bt(a)}))}),Rt(kr(e.timeline),function(n){Bt(n),tt(n,"label"),tt(n,"itemStyle"),tt(n,"controlStyle",!0);var a=n.data;U(a)&&k(a,function(o){J(o)&&(tt(o,"label"),tt(o,"itemStyle"))})}),Rt(kr(e.toolbox),function(n){tt(n,"iconStyle"),Rt(n.feature,function(a){tt(a,"iconStyle")})}),$e(Zy(e.axisPointer),"label"),$e(Zy(e.tooltip).axisPointer,"label")}function Ck(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 xk(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 Ky(e){e&&k(Tk,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Tk=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Nk=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Ch=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function fi(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<Ch.length;r++){var n=Ch[r][1],a=Ch[r][0];t[n]!=null&&(t[a]=t[n],process.env.NODE_ENV!=="production"&&Ge(n,a))}}function Jy(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 Qy(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay,process.env.NODE_ENV!=="production"&&Ge("downplay","blur","sunburst"))}function Dk(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 e0(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&e0(e[r].children,t)}function t0(e,t){Sk(e,t),e.series=We(e.series),k(e.series,function(r){if(J(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")),Jy(r.label);var a=r.data;if(a&&!ot(a))for(var o=0;o<a.length;o++)Jy(a[o]);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 i=Ck(r,"pointer.color");i!=null&&xk(r,"itemStyle.color",i)}else if(n==="bar"){fi(r),fi(r.backgroundStyle),fi(r.emphasis);var a=r.data;if(a&&!ot(a))for(var o=0;o<a.length;o++)typeof a[o]=="object"&&(fi(a[o]),fi(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"&&Ge("highlightPolicy","emphasis.focus","sunburst"))),Qy(r),e0(r.data,Qy)}else n==="graph"||n==="sankey"?Dk(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)),Ky(r)}}),e.dataRange&&(e.visualMap=e.dataRange),k(Nk,function(r){var n=e[r];n&&(U(n)||(n=[n]),k(n,function(a){Ky(a)}))})}function Ak(e){var t=se();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(Mk)}function Mk(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,c,f){var d=i.get(t.stackedDimension,f);if(isNaN(d))return a;var h,v;s?v=i.getRawIndex(f):h=i.get(t.stackedByDimension,f);for(var m=NaN,g=r-1;g>=0;g--){var y=e[g];if(s||(v=y.data.rawIndexOf(y.stackedByDimension,h)),v>=0){var w=y.data.getByRawIndex(y.stackResultDimension,v);if(l==="all"||l==="positive"&&w>0||l==="negative"&&w<0||l==="samesign"&&d>=0&&w>0||l==="samesign"&&d<=0&&w<0){d=UN(d,w),m=w;break}}}return n[0]=d,n[1]=m,n})})}var xl=function(){function e(t){this.data=t.data||(t.sourceFormat===dr?{}:[]),this.sourceFormat=t.sourceFormat||Vy,this.seriesLayoutBy=t.seriesLayoutBy||Mr,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&&Fy(this,n)===je.Must&&(a.type="ordinal")}}return e}();function xh(e){return e instanceof xl}function Th(e,t,r){r=r||r0(e);var n=t.seriesLayoutBy,a=Ek(e,r,n,t.sourceHeader,t.dimensions),o=new xl({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:fe(t)});return o}function Nh(e){return new xl({data:e,sourceFormat:ot(e)?Ar:Ot})}function kk(e){return new xl({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:fe(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function r0(e){var t=Vy;if(ot(e))t=Ar;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)||ot(a)){t=mt;break}else if(J(a)){t=Kt;break}}}}else if(J(e)){for(var o in e)if(Y(e,o)&&at(e[o])){t=dr;break}}return t}function Ek(e,t,r,n,a){var o,i;if(!e)return{dimensionsDefine:n0(a),startIndex:i,dimensionsDetectedCount:o};if(t===mt){var s=e;n==="auto"||n==null?a0(function(u){u!=null&&u!=="-"&&(X(u)?i==null&&(i=1):i=0)},r,s,10):i=xe(n)?n:n?1:0,!a&&i===1&&(a=[],a0(function(u,c){a[c]=u!=null?u+"":""},r,s,1/0)),o=a?a.length:r===Ka?s.length:s[0]?s[0].length:null}else if(t===Kt)a||(a=Pk(e));else if(t===dr)a||(a=[],k(e,function(u,c){a.push(c)}));else if(t===Ot){var l=Fo(e[0]);o=U(l)&&l.length||1}else t===Ar&&process.env.NODE_ENV!=="production"&&ne(!!a,"dimensions must be given if data is TypedArray.");return{startIndex:i,dimensionsDefine:n0(a),dimensionsDetectedCount:o}}function Pk(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return ye(r)}function n0(e){if(e){var t=se();return j(e,function(r,n){r=J(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 a0(e,t,r,n){if(t===Ka)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 o0(e){var t=e.sourceFormat;return t===Kt||t===dr}var Xn,Zn,Kn,i0,s0,l0=function(){function e(t,r){var n=xh(t)?t:Nh(t);this._source=n;var a=this._data=n.data;if(n.sourceFormat===Ar){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}s0(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;s0=function(i,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=i0[Ah(u,c)];if(process.env.NODE_ENV!=="production"&&ne(h,"Invalide sourceFormat: "+u),G(i,h),u===Ar)i.getItem=r,i.count=a,i.fillStorage=n;else{var v=c0(u,c);i.getItem=te(v,null,s,f,d);var m=h0(u,c);i.count=te(m,null,s,f,d)}};var r=function(i,s){i=i-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*i,f=0;f<u;f++)s[f]=l[c+f];return s},n=function(i,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var h=u[d],v=h[0]==null?1/0:h[0],m=h[1]==null?-1/0:h[1],g=s-i,y=l[d],w=0;w<g;w++){var _=c[w*f+d];y[i+w]=_,_<v&&(v=_),_>m&&(m=_)}h[0]=v,h[1]=m}},a=function(){return this._data?this._data.length/this._dimSize:0};i0=(t={},t[mt+"_"+Mr]={pure:!0,appendData:o},t[mt+"_"+Ka]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Kt]={pure:!0,appendData:o},t[dr]={pure:!0,appendData:function(i){var s=this._data;k(i,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Ot]={appendData:o},t[Ar]={persistent:!1,pure:!0,appendData:function(i){process.env.NODE_ENV!=="production"&&ne(ot(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}(),u0=function(e,t,r,n){return e[n]},Ik=(Xn={},Xn[mt+"_"+Mr]=function(e,t,r,n){return e[n+t]},Xn[mt+"_"+Ka]=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},Xn[Kt]=u0,Xn[dr]=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},Xn[Ot]=u0,Xn);function c0(e,t){var r=Ik[Ah(e,t)];return process.env.NODE_ENV!=="production"&&ne(r,'Do not support get item on "'+e+'", "'+t+'".'),r}var f0=function(e,t,r){return e.length},Lk=(Zn={},Zn[mt+"_"+Mr]=function(e,t,r){return Math.max(0,e.length-t)},Zn[mt+"_"+Ka]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},Zn[Kt]=f0,Zn[dr]=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},Zn[Ot]=f0,Zn);function h0(e,t){var r=Lk[Ah(e,t)];return process.env.NODE_ENV!=="production"&&ne(r,'Do not support count on "'+e+'", "'+t+'".'),r}var Dh=function(e,t,r){return e[t]},Ok=(Kn={},Kn[mt]=Dh,Kn[Kt]=function(e,t,r){return e[r]},Kn[dr]=Dh,Kn[Ot]=function(e,t,r){var n=Fo(e);return n instanceof Array?n[t]:n},Kn[Ar]=Dh,Kn);function d0(e){var t=Ok[e];return process.env.NODE_ENV!=="production"&&ne(t,'Do not support get value on "'+e+'".'),t}function Ah(e,t){return e===mt?e+"_"+t:e}function Ja(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 d0(o)(n,i,s)}else{var l=n;return o===Ot&&(l=Fo(n)),l}}}}var Rk=/\{@(.+?)\}/g,p0=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"],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:i,dataIndex:o,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,o,i){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(i&&(l.value=i.interpolatedValue),a!=null&&U(l.value)&&(l.value=l.value[a]),!o){var u=s.getItemModel(t);o=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(oe(o))return l.status=r,l.dimensionIndex=a,o(l);if(X(o)){var c=Oy(o,l);return c.replace(Rk,function(f,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1),process.env.NODE_ENV!=="production"&&isNaN(v)&&Ke("Invalide label formatter: @"+d+", only support @[0], @[1], @[2], ..."));var m=Ja(s,t,v);if(i&&U(i.interpolatedValue)){var g=s.getDimensionIndex(v);g>=0&&(m=i.interpolatedValue[g])}return m!=null?m+"":""})}},e.prototype.getRawValue=function(t,r){return Ja(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function v0(e){var t,r;return J(e)?e.type?r=e:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+Ps(e)):t=e,{text:t,frag:r}}function hi(e){return new Bk(e)}var Bk=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=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(i!==l||s!==u)&&(o="reset");function c(w){return!(w>=1)&&(w=1),w}var f;(this._dirty||o==="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,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||h<v)){var m=this._progress;if(U(m))for(var g=0;g<m.length;g++)this._doProgress(m[g],h,v,l,u);else this._doProgress(m,h,v,l,u)}this._dueIndex=v;var y=this._settedOutputEnd!=null?this._settedOutputEnd:v;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,o){g0.reset(r,n,a,o),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:g0.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}(),g0=function(){var e,t,r,n,a,o={reset:function(l,u,c,f){t=l,e=u,r=c,n=f,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 Qa(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!xe(e)&&e!=null&&e!=="-"&&(e=+Tr(e)),e==null||e===""?NaN:+e)}se({number:function(e){return parseFloat(e)},time:function(e){return+Tr(e)},trim:function(e){return X(e)?nr(e):e}});var Vk=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=xe(t)?t:ks(t),a=xe(r)?r:ks(r),o=isNaN(n),i=isNaN(a);if(o&&(n=this._incomparable),i&&(a=this._incomparable),o&&i){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}(),$k=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 Qa(t,r)},e}();function Fk(e,t){var r=new $k,n=e.data,a=r.sourceFormat=e.sourceFormat,o=e.startIndex,i="";e.seriesLayoutBy!==Mr&&(process.env.NODE_ENV!=="production"&&(i='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),st(i));var s=[],l={},u=e.dimensionsDefine;if(u)k(u,function(m,g){var y=m.name,w={index:g,name:y,displayName:m.displayName};if(s.push(w),y!=null){var _="";Y(l,y)&&(process.env.NODE_ENV!=="production"&&(_='dimension name "'+y+'" duplicated.'),st(_)),l[y]=w}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=c0(a,Mr);t.__isBuiltIn&&(r.getRawDataItem=function(m){return f(n,o,s,m)},r.getRawData=te(zk,null,e)),r.cloneRawData=te(Gk,null,e);var d=h0(a,Mr);r.count=te(d,null,n,o,s);var h=d0(a);r.retrieveValue=function(m,g){var y=f(n,o,s,m);return v(y,g)};var v=r.retrieveValueFromItem=function(m,g){if(m!=null){var y=s[g];if(y)return h(m,g,y.name)}};return r.getDimensionInfo=te(Hk,null,s,l),r.cloneAllDimensionInfo=te(Wk,null,s),r}function zk(e){var t=e.sourceFormat;if(!Mh(t)){var r="";process.env.NODE_ENV!=="production"&&(r="`getRawData` is not supported in source format "+t),st(r)}return e.data}function Gk(e){var t=e.sourceFormat,r=e.data;if(!Mh(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=[],o=0,i=r.length;o<i;o++)a.push(r[o].slice());return a}else if(t===Kt){for(var a=[],o=0,i=r.length;o<i;o++)a.push(G({},r[o]));return a}}function Hk(e,t,r){if(r!=null){if(xe(r)||!isNaN(r)&&!Y(t,r))return e[r];if(Y(t,r))return t[r]}}function Wk(e){return fe(e)}var m0=se();function Uk(e){e=fe(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,m0.set(t,e)}function Yk(e,t,r){var n=We(e),a=n.length,o="";a||(process.env.NODE_ENV!=="production"&&(o="If `transform` declared, it should at least contain one transform."),st(o));for(var i=0,s=a;i<s;i++){var l=n[i];t=qk(l,t,r,a===1?null:i),i!==s-1&&(t.length=Math.max(t.length,1))}return t}function qk(e,t,r,n){var a="";t.length||(process.env.NODE_ENV!=="production"&&(a="Must have at least one upstream dataset."),st(a)),J(e)||(process.env.NODE_ENV!=="production"&&(a="transform declaration must be an object rather than "+typeof e+"."),st(a));var o=e.type,i=m0.get(o);i||(process.env.NODE_ENV!=="production"&&(a='Can not find transform on type "'+o+'".'),st(a));var s=j(t,function(c){return Fk(c,i)}),l=We(i.transform({upstream:s[0],upstreamList:s,config:fe(e.config)}));if(process.env.NODE_ENV!=="production"&&e.print){var u=j(l,function(c){var f=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+r.datasetIndex+f+" ===","- transform result data:",Ps(c.data),"- transform result dimensions:",Ps(c.dimensions)].join(`
|
|
31
|
+
echarts.use([`+n+"]);"),Cl[n]=!0)}})}var _h=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,a,i,o,s){i=i||{},this.option=null,this._theme=new et(i),this._locale=new et(o),this._optionManager=s},t.prototype.setOption=function(r,n,a){process.env.NODE_ENV!=="production"&&(ne(r!=null,"option is null/undefined"),ne(r[yh]!==Uy,"please use chart.getOption()"));var i=jy(n);this._optionManager.setOption(r,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(r,n){return this._resetOption(r,jy(n))},t.prototype._resetOption=function(r,n){var a=!1,i=this._optionManager;if(!r||r==="recreate"){var o=i.mountOption(r==="recreate");process.env.NODE_ENV!=="production"&&cM(o),!this.option||r==="recreate"?Wy(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=i.getMediaOption(this);l.length&&M(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=se(),u=n&&n.replaceMergeMainTypeMap;Qk(this),M(r,function(f,d){f!=null&&(xe.hasClass(d)?d&&(s.push(d),l.set(d,!0)):a[d]=a[d]==null?fe(f):ve(a[d],f,!0))}),u&&u.each(function(f,d){xe.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),xe.topologicalTravel(s,xe.getAllClassMainTypes(),c,this);function c(f){var d=aM(this,f,We(r[f])),h=i.get(f),v=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",m=eD(h,d,v);sD(m,f,xe),a[f]=null,i.set(f,null),o.set(f,0);var g=[],y=[],_=0,w,S;M(m,function(T,C){var x=T.existing,b=T.newOption;if(!b)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var N=f==="series",A=xe.getClass(f,T.keyInfo.subType,!N);if(!A){if(process.env.NODE_ENV!=="production"){var D=T.keyInfo.subType,k=uM[D];Cl[D]||(Cl[D]=!0,Ke(k?"Series "+D+` is used but not imported.
|
|
32
|
+
import { `+k+` } from 'echarts/charts';
|
|
33
|
+
echarts.use([`+k+"]);":"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(x&&x.constructor===A)x.name=T.keyInfo.name,x.mergeOption(b,this),x.optionUpdated(b,!1);else{var P=G({componentIndex:C},T.keyInfo);x=new A(b,this,this,P),G(x,P),T.brandNew&&(x.__requireNewView=!0),x.init(b,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),y.push(x),_++):(g.push(void 0),y.push(void 0))},this),a[f]=g,i.set(f,y),o.set(f,_),f==="series"&&Sl(this)}this._seriesIndices||Sl(this)},t.prototype.getOption=function(){var r=fe(this.option);return M(r,function(n,a){if(xe.hasClass(a)){for(var i=We(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!Oa(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,r[a]=i}}),delete r[yh],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=[],M(We(a),function(u){s[u]&&l.push(s[u])})):i!=null?l=Yy("id",i,s):o!=null?l=Yy("name",o,s):l=Ye(s,function(u){return!!u}),qy(l,r)},t.prototype.findComponents=function(r){var n=r.query,a=r.mainType,i=s(n),o=i?this.queryComponents(i):Ye(this._componentsMap.get(a),function(u){return!!u});return l(qy(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?Ye(u,r.filter):u}},t.prototype.eachComponent=function(r,n,a){var i=this._componentsMap;if(ie(r)){var o=n,s=r;i.each(function(f,d){for(var h=0;f&&h<f.length;h++){var v=f[h];v&&s.call(o,d,v,v.componentIndex)}})}else for(var l=X(r)?i.get(r):J(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=sr(r,null);return Ye(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 Ye(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return Ye(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),M(this._seriesIndices,function(a){var i=this._componentsMap.get("series")[a];r.call(n,i,a)},this)},t.prototype.eachRawSeries=function(r,n){M(this._componentsMap.get("series"),function(a){a&&r.call(n,a,a.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,a){so(this),M(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 M(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=[];M(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=se(a)},t.prototype.restoreData=function(r){Sl(this);var n=this._componentsMap,a=[];n.each(function(i,o){xe.hasClass(o)&&a.push(o)}),xe.topologicalTravel(a,xe.getAllClassMainTypes(),function(i){M(n.get(i),function(o){o&&(i!=="series"||!fM(o,r))&&o.restoreData()})})},t.internalField=function(){Sl=function(r){var n=r._seriesIndices=[];M(r._componentsMap.get("series"),function(a){a&&n.push(a.componentIndex)}),r._seriesIndicesMap=se(n)},so=function(r){if(process.env.NODE_ENV!=="production"&&!r._seriesIndices)throw new Error("Option should contains series.")},Wy=function(r,n){r.option={},r.option[yh]=Uy,r._componentsMap=se({series:[]}),r._componentsCount=se();var a=n.aria;J(a)&&a.enabled==null&&(a.enabled=!0),hM(n,r._theme.option),ve(n,Jk,!1),r._mergeOption(n,null)}}(),t}(et);function fM(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 hM(e,t){var r=e.color&&!e.colorLayer;M(t,function(n,a){a==="colorLayer"&&r||xe.hasClass(a)||(typeof n=="object"?e[a]=e[a]?ve(e[a],n,!1):fe(n):e[a]==null&&(e[a]=n))})}function Yy(e,t,r){if(U(t)){var n=se();return M(t,function(i){if(i!=null){var o=sr(i,null);o!=null&&n.set(i,!0)}}),Ye(r,function(i){return i&&n.get(i[e])})}else{var a=sr(t,null);return Ye(r,function(i){return i&&a!=null&&i[e]===a})}}function qy(e,t){return t.hasOwnProperty("subType")?Ye(e,function(r){return r&&r.subType===t.subType}):e}function jy(e){var t=se();return e&&M(We(e.replaceMerge),function(r){process.env.NODE_ENV!=="production"&&ne(xe.hasClass(r),'"'+r+'" is not valid component main type in "replaceMerge"'),t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Wt(_h,mh);var dM=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],pM=function(){function e(t){M(dM,function(r){this[r]=te(t[r],t)},this)}return e}();const Xy=pM;var wh={},bh=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];M(wh,function(a,i){var o=a.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){M(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){wh[t]=r},e.get=function(t){return wh[t]},e}(),vM=/^(min|max)?(.+)$/,gM=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(M(We(t.series),function(o){o&&o.data&&ot(o.data)&&mc(o.data)}),M(We(t.dataset),function(o){o&&o.source&&ot(o.source)&&mc(o.source)})),t=fe(t);var a=this._optionBackup,i=mM(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=[],fe(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=fe(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++)yM(a[l].query,r,n)&&o.push(l);return!o.length&&i&&(o=[-1]),o.length&&!wM(o,this._currentMediaIndices)&&(s=j(o,function(c){return fe(c===-1?i.option:a[c].option)})),this._currentMediaIndices=o,s},e}();function mM(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)?M(u,function(h){process.env.NODE_ENV!=="production"&&h&&!h.option&&J(h.query)&&J(h.query.option)&&Ke("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"&&Ke("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),d(i),M(l,function(h){return d(h)}),M(n,function(h){return d(h.option)});function d(h){M(t,function(v){v(h,r)})}return{baseOption:i,timelineOptions:l||[],mediaDefault:a,mediaList:n}}function yM(e,t,r){var n={width:t,height:r,aspectratio:t/r},a=!0;return M(e,function(i,o){var s=o.match(vM);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();_M(n[u],i,l)||(a=!1)}}),a}function _M(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function wM(e,t){return e.join(",")===t.join(",")}const bM=gM;var Bt=M,lo=J,Zy=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Sh(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=Zy.length;r<n;r++){var a=Zy[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?ve(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?ve(e[a].emphasis,o[a]):e[a].emphasis=o[a],o[a]=null)}}function tt(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 uo(e){tt(e,"itemStyle"),tt(e,"lineStyle"),tt(e,"areaStyle"),tt(e,"label"),tt(e,"labelLine"),tt(e,"upperLabel"),tt(e,"edgeLabel")}function $e(e,t){var r=lo(e)&&e[t],n=lo(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=Mg.length;a<i;a++){var o=Mg[a];n.hasOwnProperty(o)&&(r[o]=n[o])}}}function Vt(e){e&&(uo(e),$e(e,"label"),e.emphasis&&$e(e.emphasis,"label"))}function SM(e){if(lo(e)){Sh(e),uo(e),$e(e,"label"),$e(e,"upperLabel"),$e(e,"edgeLabel"),e.emphasis&&($e(e.emphasis,"label"),$e(e.emphasis,"upperLabel"),$e(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Sh(t),Vt(t));var r=e.markLine;r&&(Sh(r),Vt(r));var n=e.markArea;n&&Vt(n);var a=e.data;if(e.type==="graph"){a=a||e.nodes;var i=e.links||e.edges;if(i&&!ot(i))for(var o=0;o<i.length;o++)Vt(i[o]);M(e.categories,function(u){uo(u)})}if(a&&!ot(a))for(var o=0;o<a.length;o++)Vt(a[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Vt(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)U(l[o])?(Vt(l[o][0]),Vt(l[o][1])):Vt(l[o]);e.type==="gauge"?($e(e,"axisLabel"),$e(e,"title"),$e(e,"detail")):e.type==="treemap"?(tt(e.breadcrumb,"itemStyle"),M(e.levels,function(u){uo(u)})):e.type==="tree"&&uo(e.leaves)}}function Mr(e){return U(e)?e:e?[e]:[]}function Ky(e){return(U(e)?e[0]:e)||{}}function CM(e,t){Bt(Mr(e.series),function(n){lo(n)&&SM(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Bt(r,function(n){Bt(Mr(e[n]),function(a){a&&($e(a,"axisLabel"),$e(a.axisPointer,"label"))})}),Bt(Mr(e.parallel),function(n){var a=n&&n.parallelAxisDefault;$e(a,"axisLabel"),$e(a&&a.axisPointer,"label")}),Bt(Mr(e.calendar),function(n){tt(n,"itemStyle"),$e(n,"dayLabel"),$e(n,"monthLabel"),$e(n,"yearLabel")}),Bt(Mr(e.radar),function(n){$e(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"&&Bt(n.indicator,function(a){a.text&&Ge("text","name","radar.indicator")})}),Bt(Mr(e.geo),function(n){lo(n)&&(Vt(n),Bt(Mr(n.regions),function(a){Vt(a)}))}),Bt(Mr(e.timeline),function(n){Vt(n),tt(n,"label"),tt(n,"itemStyle"),tt(n,"controlStyle",!0);var a=n.data;U(a)&&M(a,function(i){J(i)&&(tt(i,"label"),tt(i,"itemStyle"))})}),Bt(Mr(e.toolbox),function(n){tt(n,"iconStyle"),Bt(n.feature,function(a){tt(a,"iconStyle")})}),$e(Ky(e.axisPointer),"label"),$e(Ky(e.tooltip).axisPointer,"label")}function TM(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 NM(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 Jy(e){e&&M(xM,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var xM=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],DM=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Ch=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function co(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<Ch.length;r++){var n=Ch[r][1],a=Ch[r][0];t[n]!=null&&(t[a]=t[n],process.env.NODE_ENV!=="production"&&Ge(n,a))}}function Qy(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 e0(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay,process.env.NODE_ENV!=="production"&&Ge("downplay","blur","sunburst"))}function AM(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 t0(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&t0(e[r].children,t)}function r0(e,t){CM(e,t),e.series=We(e.series),M(e.series,function(r){if(J(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")),Qy(r.label);var a=r.data;if(a&&!ot(a))for(var i=0;i<a.length;i++)Qy(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=TM(r,"pointer.color");o!=null&&NM(r,"itemStyle.color",o)}else if(n==="bar"){co(r),co(r.backgroundStyle),co(r.emphasis);var a=r.data;if(a&&!ot(a))for(var i=0;i<a.length;i++)typeof a[i]=="object"&&(co(a[i]),co(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"))),e0(r),t0(r.data,e0)}else n==="graph"||n==="sankey"?AM(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)),Jy(r)}}),e.dataRange&&(e.visualMap=e.dataRange),M(DM,function(r){var n=e[r];n&&(U(n)||(n=[n]),M(n,function(a){Jy(a)}))})}function kM(e){var t=se();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(MM)}function MM(e){M(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,v;s?v=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||(v=y.data.rawIndexOf(y.stackedByDimension,h)),v>=0){var _=y.data.getByRawIndex(y.stackResultDimension,v);if(l==="all"||l==="positive"&&_>0||l==="negative"&&_<0||l==="samesign"&&d>=0&&_>0||l==="samesign"&&d<=0&&_<0){d=Yx(d,_),m=_;break}}}return n[0]=d,n[1]=m,n})})}var Tl=function(){function e(t){this.data=t.data||(t.sourceFormat===dr?{}:[]),this.sourceFormat=t.sourceFormat||$y,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&&zy(this,n)===je.Must&&(a.type="ordinal")}}return e}();function Th(e){return e instanceof Tl}function Nh(e,t,r){r=r||n0(e);var n=t.seriesLayoutBy,a=PM(e,r,n,t.sourceHeader,t.dimensions),i=new Tl({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:a.dimensionsDefine,startIndex:a.startIndex,dimensionsDetectedCount:a.dimensionsDetectedCount,metaRawOption:fe(t)});return i}function xh(e){return new Tl({data:e,sourceFormat:ot(e)?Ar:Rt})}function EM(e){return new Tl({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:fe(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function n0(e){var t=$y;if(ot(e))t=Ar;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)||ot(a)){t=mt;break}else if(J(a)){t=Kt;break}}}}else if(J(e)){for(var i in e)if(Y(e,i)&&it(e[i])){t=dr;break}}return t}function PM(e,t,r,n,a){var i,o;if(!e)return{dimensionsDefine:a0(a),startIndex:o,dimensionsDetectedCount:i};if(t===mt){var s=e;n==="auto"||n==null?i0(function(u){u!=null&&u!=="-"&&(X(u)?o==null&&(o=1):o=0)},r,s,10):o=Te(n)?n:n?1:0,!a&&o===1&&(a=[],i0(function(u,c){a[c]=u!=null?u+"":""},r,s,1/0)),i=a?a.length:r===Ka?s.length:s[0]?s[0].length:null}else if(t===Kt)a||(a=IM(e));else if(t===dr)a||(a=[],M(e,function(u,c){a.push(c)}));else if(t===Rt){var l=$i(e[0]);i=U(l)&&l.length||1}else t===Ar&&process.env.NODE_ENV!=="production"&&ne(!!a,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:a0(a),dimensionsDetectedCount:i}}function IM(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return ye(r)}function a0(e){if(e){var t=se();return j(e,function(r,n){r=J(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 i0(e,t,r,n){if(t===Ka)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 o0(e){var t=e.sourceFormat;return t===Kt||t===dr}var Xn,Zn,Kn,s0,l0,u0=function(){function e(t,r){var n=Th(t)?t:xh(t);this._source=n;var a=this._data=n.data;if(n.sourceFormat===Ar){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}l0(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;l0=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=s0[Ah(u,c)];if(process.env.NODE_ENV!=="production"&&ne(h,"Invalide sourceFormat: "+u),G(o,h),u===Ar)o.getItem=r,o.count=a,o.fillStorage=n;else{var v=f0(u,c);o.getItem=te(v,null,s,f,d);var m=d0(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],v=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<v&&(v=w),w>m&&(m=w)}h[0]=v,h[1]=m}},a=function(){return this._data?this._data.length/this._dimSize:0};s0=(t={},t[mt+"_"+kr]={pure:!0,appendData:i},t[mt+"_"+Ka]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Kt]={pure:!0,appendData:i},t[dr]={pure:!0,appendData:function(o){var s=this._data;M(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Rt]={appendData:i},t[Ar]={persistent:!1,pure:!0,appendData:function(o){process.env.NODE_ENV!=="production"&&ne(ot(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}(),c0=function(e,t,r,n){return e[n]},LM=(Xn={},Xn[mt+"_"+kr]=function(e,t,r,n){return e[n+t]},Xn[mt+"_"+Ka]=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},Xn[Kt]=c0,Xn[dr]=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},Xn[Rt]=c0,Xn);function f0(e,t){var r=LM[Ah(e,t)];return process.env.NODE_ENV!=="production"&&ne(r,'Do not support get item on "'+e+'", "'+t+'".'),r}var h0=function(e,t,r){return e.length},OM=(Zn={},Zn[mt+"_"+kr]=function(e,t,r){return Math.max(0,e.length-t)},Zn[mt+"_"+Ka]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},Zn[Kt]=h0,Zn[dr]=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},Zn[Rt]=h0,Zn);function d0(e,t){var r=OM[Ah(e,t)];return process.env.NODE_ENV!=="production"&&ne(r,'Do not support count on "'+e+'", "'+t+'".'),r}var Dh=function(e,t,r){return e[t]},RM=(Kn={},Kn[mt]=Dh,Kn[Kt]=function(e,t,r){return e[r]},Kn[dr]=Dh,Kn[Rt]=function(e,t,r){var n=$i(e);return n instanceof Array?n[t]:n},Kn[Ar]=Dh,Kn);function p0(e){var t=RM[e];return process.env.NODE_ENV!=="production"&&ne(t,'Do not support get value on "'+e+'".'),t}function Ah(e,t){return e===mt?e+"_"+t:e}function Ja(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 p0(i)(n,o,s)}else{var l=n;return i===Rt&&(l=$i(n)),l}}}}var BM=/\{@(.+?)\}/g,v0=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),a=this.getRawValue(t,r),i=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",h=n.userOutput&&n.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:i,data:s,dataType:r,value:a,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,a,i,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),a!=null&&U(l.value)&&(l.value=l.value[a]),!i){var u=s.getItemModel(t);i=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(ie(i))return l.status=r,l.dimensionIndex=a,i(l);if(X(i)){var c=Ry(i,l);return c.replace(BM,function(f,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1),process.env.NODE_ENV!=="production"&&isNaN(v)&&Ke("Invalide label formatter: @"+d+", only support @[0], @[1], @[2], ..."));var m=Ja(s,t,v);if(o&&U(o.interpolatedValue)){var g=s.getDimensionIndex(v);g>=0&&(m=o.interpolatedValue[g])}return m!=null?m+"":""})}},e.prototype.getRawValue=function(t,r){return Ja(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function g0(e){var t,r;return J(e)?e.type?r=e:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+Ps(e)):t=e,{text:t,frag:r}}function fo(e){return new VM(e)}var VM=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,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||h<v)){var m=this._progress;if(U(m))for(var g=0;g<m.length;g++)this._doProgress(m[g],h,v,l,u);else this._doProgress(m,h,v,l,u)}this._dueIndex=v;var y=this._settedOutputEnd!=null?this._settedOutputEnd:v;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){m0.reset(r,n,a,i),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:m0.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}(),m0=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 Qa(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!Te(e)&&e!=null&&e!=="-"&&(e=+Nr(e)),e==null||e===""?NaN:+e)}se({number:function(e){return parseFloat(e)},time:function(e){return+Nr(e)},trim:function(e){return X(e)?nr(e):e}});var $M=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=Te(t)?t:Ms(t),a=Te(r)?r:Ms(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}(),FM=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 Qa(t,r)},e}();function zM(e,t){var r=new FM,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.'),lt(o));var s=[],l={},u=e.dimensionsDefine;if(u)M(u,function(m,g){var y=m.name,_={index:g,name:y,displayName:m.displayName};if(s.push(_),y!=null){var w="";Y(l,y)&&(process.env.NODE_ENV!=="production"&&(w='dimension name "'+y+'" duplicated.'),lt(w)),l[y]=_}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=f0(a,kr);t.__isBuiltIn&&(r.getRawDataItem=function(m){return f(n,i,s,m)},r.getRawData=te(GM,null,e)),r.cloneRawData=te(HM,null,e);var d=d0(a,kr);r.count=te(d,null,n,i,s);var h=p0(a);r.retrieveValue=function(m,g){var y=f(n,i,s,m);return v(y,g)};var v=r.retrieveValueFromItem=function(m,g){if(m!=null){var y=s[g];if(y)return h(m,g,y.name)}};return r.getDimensionInfo=te(WM,null,s,l),r.cloneAllDimensionInfo=te(UM,null,s),r}function GM(e){var t=e.sourceFormat;if(!kh(t)){var r="";process.env.NODE_ENV!=="production"&&(r="`getRawData` is not supported in source format "+t),lt(r)}return e.data}function HM(e){var t=e.sourceFormat,r=e.data;if(!kh(t)){var n="";process.env.NODE_ENV!=="production"&&(n="`cloneRawData` is not supported in source format "+t),lt(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===Kt){for(var a=[],i=0,o=r.length;i<o;i++)a.push(G({},r[i]));return a}}function WM(e,t,r){if(r!=null){if(Te(r)||!isNaN(r)&&!Y(t,r))return e[r];if(Y(t,r))return t[r]}}function UM(e){return fe(e)}var y0=se();function YM(e){e=fe(e);var t=e.type,r="";t||(process.env.NODE_ENV!=="production"&&(r="Must have a `type` when `registerTransform`."),lt(r));var n=t.split(":");n.length!==2&&(process.env.NODE_ENV!=="production"&&(r='Name must include namespace like "ns:regression".'),lt(r));var a=!1;n[0]==="echarts"&&(t=n[1],a=!0),e.__isBuiltIn=a,y0.set(t,e)}function qM(e,t,r){var n=We(e),a=n.length,i="";a||(process.env.NODE_ENV!=="production"&&(i="If `transform` declared, it should at least contain one transform."),lt(i));for(var o=0,s=a;o<s;o++){var l=n[o];t=jM(l,t,r,a===1?null:o),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function jM(e,t,r,n){var a="";t.length||(process.env.NODE_ENV!=="production"&&(a="Must have at least one upstream dataset."),lt(a)),J(e)||(process.env.NODE_ENV!=="production"&&(a="transform declaration must be an object rather than "+typeof e+"."),lt(a));var i=e.type,o=y0.get(i);o||(process.env.NODE_ENV!=="production"&&(a='Can not find transform on type "'+i+'".'),lt(a));var s=j(t,function(c){return zM(c,o)}),l=We(o.transform({upstream:s[0],upstreamList:s,config:fe(e.config)}));if(process.env.NODE_ENV!=="production"&&e.print){var u=j(l,function(c){var f=n!=null?" === pipe index: "+n:"";return["=== dataset index: "+r.datasetIndex+f+" ===","- transform result data:",Ps(c.data),"- transform result dimensions:",Ps(c.dimensions)].join(`
|
|
34
34
|
`)}).join(`
|
|
35
|
-
`);ZN(u)}return j(l,function(c,f){var d="";J(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=r0(c.data);Mh(h)||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be array rows or object rows."),st(d));var v,m=t[0];if(m&&f===0&&!c.dimensions){var g=m.startIndex;g&&(c.data=m.data.slice(0,g).concat(c.data)),v={seriesLayoutBy:Mr,sourceHeader:g,dimensions:m.metaRawOption.dimensions}}else v={seriesLayoutBy:Mr,sourceHeader:0,dimensions:c.dimensions};return Th(c.data,v,null)})}function Mh(e){return e===mt||e===Kt}var Tl="undefined",jk=typeof Uint32Array===Tl?Array:Uint32Array,Xk=typeof Uint16Array===Tl?Array:Uint16Array,y0=typeof Int32Array===Tl?Array:Int32Array,_0=typeof Float64Array===Tl?Array:Float64Array,w0={float:_0,int:y0,ordinal:Array,number:Array,time:_0},kh;function di(e){return e>65535?jk:Xk}function eo(){return[1/0,-1/0]}function Zk(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function b0(e,t,r,n,a){var o=w0[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 Eh=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=se()}return e.prototype.initData=function(t,r,n){process.env.NODE_ENV!=="production"&&ne(oe(t.getItem)&&oe(t.count),"Invalid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),o=this.defaultDimValueGetter=kh[a.sourceFormat];this._dimValueGetter=n||o,this._rawExtent=[];var i=o0(a);this._dimensions=j(r,function(s){return process.env.NODE_ENV!=="production"&&i&&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,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 w0[r||"float"](this._rawCount),this._rawExtent[o]=eo(),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]=eo());for(var l=o[t],u=i;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,o=a.length,i=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<o;u++){var c=a[u];b0(n,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var h=d-s,v=0;v<o;v++){var c=a[v],m=kh.arrayRows.call(this,t[h]||f,c.property,h,v);n[v][d]=m;var g=i[v];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,o=this._chunks,i=this._dimensions,s=i.length,l=this._rawExtent,u=j(i,function(w){return w.property}),c=0;c<s;c++){var f=i[c];l[c]||(l[c]=eo()),b0(o,c,f.type,r,n)}if(a.fillStorage)a.fillStorage(t,r,o,l);else for(var d=[],h=t;h<r;h++){d=a.getItem(h,d);for(var v=0;v<s;v++){var m=o[v],g=this._dimValueGetter(d,u[v],h,v);m[h]=g;var y=l[v];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 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,c=0,f=this.count();c<f;c++){var d=this.getRawIndex(c),h=r-o[d],v=Math.abs(h);v<=n&&((v<s||v===s&&h>=0&&l<0)&&(s=v,l=h,u=0),h===l&&(i[u++]=c))}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=di(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=di(n._rawCount),i=new o(a),s=[],l=t.length,u=0,c=t[0],f=n._chunks,d=0;d<a;d++){var h=void 0,v=n.getRawIndex(d);if(l===0)h=r(d);else if(l===1){var m=f[c][v];h=r(m,d)}else{for(var g=0;g<l;g++)s[g]=f[t[g]][v];s[g]=d,h=r.apply(null,s)}h&&(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=ye(t),o=a.length;if(!o)return this;var i=r.count(),s=di(r._rawCount),l=new s(i),u=0,c=a[0],f=t[c][0],d=t[c][1],h=r._chunks,v=!1;if(!r._indices){var m=0;if(o===1){for(var g=h[a[0]],y=0;y<n;y++){var w=g[y];(w>=f&&w<=d||isNaN(w))&&(l[u++]=m),m++}v=!0}else if(o===2){for(var g=h[a[0]],_=h[a[1]],S=t[a[1]][0],x=t[a[1]][1],y=0;y<n;y++){var w=g[y],C=_[y];(w>=f&&w<=d||isNaN(w))&&(C>=S&&C<=x||isNaN(C))&&(l[u++]=m),m++}v=!0}}if(!v)if(o===1)for(var y=0;y<i;y++){var N=r.getRawIndex(y),w=h[a[0]][N];(w>=f&&w<=d||isNaN(w))&&(l[u++]=N)}else for(var y=0;y<i;y++){for(var b=!0,N=r.getRawIndex(y),T=0;T<o;T++){var M=a[T],w=h[M][N];(w<t[M][0]||w>t[M][1])&&(b=!1)}b&&(l[u++]=r.getRawIndex(y))}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,c=0;c<r.length;c++)u[r[c]]=eo();for(var f=0;f<s;f++){for(var d=t.getRawIndex(f),h=0;h<i;h++)l[h]=a[r[h]][d];l[i]=f;var v=n&&n.apply(null,l);if(v!=null){typeof v!="object"&&(o[0]=v,v=o);for(var c=0;c<v.length;c++){var m=r[c],g=v[c],y=u[m],w=a[m];w&&(w[d]=g),g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),a=n._chunks,o=a[t],i=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,d,h=new(di(this._rawCount))(Math.min((Math.ceil(i/l)+2)*2,i));h[s++]=u;for(var v=1;v<i-1;v+=l){for(var m=Math.min(v+l,i-1),g=Math.min(v+l*2,i),y=(g+m)/2,w=0,_=m;_<g;_++){var S=this.getRawIndex(_),x=o[S];isNaN(x)||(w+=x)}w/=g-m;var C=v,N=Math.min(v+l,i),b=v-1,T=o[u];c=-1,d=C;for(var M=-1,D=0,_=C;_<N;_++){var S=this.getRawIndex(_),x=o[S];if(isNaN(x)){D++,M<0&&(M=S);continue}f=Math.abs((b-y)*(x-T)-(b-_)*(w-T)),f>c&&(c=f,d=S)}D>0&&D<N-C&&(h[s++]=Math.min(M,d),d=Math.max(M,d)),h[s++]=d,u=d}return h[s++]=this.getRawIndex(i-1),n._count=s,n._indices=h,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],c=this.count(),f=o._rawExtent[t]=eo(),d=new(di(this._rawCount))(Math.ceil(c/l)),h=0,v=0;v<c;v+=l){l>c-v&&(l=c-v,s.length=l);for(var m=0;m<l;m++){var g=this.getRawIndex(v+m);s[m]=u[g]}var y=n(s),w=this.getRawIndex(Math.min(v+a(s,y)||0,c-1));u[w]=y,y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y),d[h++]=w}return o._count=h,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=eo();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 c=this.getRawIndex(u),f=r[c];f<s&&(s=f),f>l&&(l=f)}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&&Sr(t,function(s,l){return s[l]=!0,s},{});if(o)for(var i=0;i<a.length;i++)n._chunks[i]=o[i]?Zk(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=fe(this._extent),t._rawExtent=fe(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 Qa(r[o],this._dimensions[o])}kh={arrayRows:t,objectRows:function(r,n,a,o){return Qa(r[n],this._dimensions[o])},keyedColumns:t,original:function(r,n,a,o){var i=r&&(r.value==null?r:r.value);return Qa(i instanceof Array?i[o]:i,this._dimensions[o])},typedArray:function(r,n,a,o){return r[o]}}}(),e}(),Kk=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(pi(t)){var i=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,o=[c._getVersionSign()]}else s=i.get("data",!0),l=ot(s)?Ar:Ot,o=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=ie(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=ie(f.sourceHeader,d.sourceHeader),m=ie(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||m;a=g?[Th(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:m},l)]:[]}else{var y=t;if(n){var w=this._applyTransform(r);a=w.sourceList,o=w.upstreamSignList}else{var _=y.get("source",!0);a=[Th(_,this._getSourceMetaRawOption(),null)],o=[]}}process.env.NODE_ENV!=="production"&&ne(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"&&ne(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"),S0(o))}var i,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),S0(f)),s.push(c),l.push(u._getVersionSign())}),n?i=Yk(n,s,{datasetIndex:r.componentIndex}):a!=null&&(i=[kk(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"&&ne(pi(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];pi(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new Eh,s.initData(new l0(r,t.length),t)),i[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(pi(t)){var r=gh(t);return r?[r.getSourceManager()]:[]}else return j(tk(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,a;if(pi(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 pi(e){return e.mainType==="series"}function S0(e){throw new Error(e)}var C0="line-height:1";function x0(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:"+Dt(n+"")+"px;color:"+Dt(r)+";font-weight:"+Dt(a+""),valueStyle:"font-size:"+Dt(i+"")+"px;color:"+Dt(o)+";font-weight:"+Dt(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:i,fill:o,fontWeight:s}}}var Jk=[0,10,20,30],Qk=["",`
|
|
35
|
+
`);Kx(u)}return j(l,function(c,f){var d="";J(c)||(process.env.NODE_ENV!=="production"&&(d="A transform should not return some empty results."),lt(d)),c.data||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be not be null or undefined"),lt(d));var h=n0(c.data);kh(h)||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be array rows or object rows."),lt(d));var v,m=t[0];if(m&&f===0&&!c.dimensions){var g=m.startIndex;g&&(c.data=m.data.slice(0,g).concat(c.data)),v={seriesLayoutBy:kr,sourceHeader:g,dimensions:m.metaRawOption.dimensions}}else v={seriesLayoutBy:kr,sourceHeader:0,dimensions:c.dimensions};return Nh(c.data,v,null)})}function kh(e){return e===mt||e===Kt}var Nl="undefined",XM=typeof Uint32Array===Nl?Array:Uint32Array,ZM=typeof Uint16Array===Nl?Array:Uint16Array,_0=typeof Int32Array===Nl?Array:Int32Array,w0=typeof Float64Array===Nl?Array:Float64Array,b0={float:w0,int:_0,ordinal:Array,number:Array,time:w0},Mh;function ho(e){return e>65535?XM:ZM}function ei(){return[1/0,-1/0]}function KM(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function S0(e,t,r,n,a){var i=b0[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 Eh=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=se()}return e.prototype.initData=function(t,r,n){process.env.NODE_ENV!=="production"&&ne(ie(t.getItem)&&ie(t.count),"Invalid data provider."),this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var a=t.getSource(),i=this.defaultDimValueGetter=Mh[a.sourceFormat];this._dimValueGetter=n||i,this._rawExtent=[];var o=o0(a);this._dimensions=j(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 b0[r||"float"](this._rawCount),this._rawExtent[i]=ei(),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]=ei());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];S0(n,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var h=d-s,v=0;v<i;v++){var c=a[v],m=Mh.arrayRows.call(this,t[h]||f,c.property,h,v);n[v][d]=m;var g=o[v];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=j(o,function(_){return _.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=ei()),S0(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 v=0;v<s;v++){var m=i[v],g=this._dimValueGetter(d,u[v],h,v);m[h]=g;var y=l[v];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],v=Math.abs(h);v<=n&&((v<s||v===s&&h>=0&&l<0)&&(s=v,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=ho(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=ho(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,v=n.getRawIndex(d);if(l===0)h=r(d);else if(l===1){var m=f[c][v];h=r(m,d)}else{for(var g=0;g<l;g++)s[g]=f[t[g]][v];s[g]=d,h=r.apply(null,s)}h&&(o[u++]=v)}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=ye(t),i=a.length;if(!i)return this;var o=r.count(),s=ho(r._rawCount),l=new s(o),u=0,c=a[0],f=t[c][0],d=t[c][1],h=r._chunks,v=!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++}v=!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++}v=!0}}if(!v)if(i===1)for(var y=0;y<o;y++){var x=r.getRawIndex(y),_=h[a[0]][x];(_>=f&&_<=d||isNaN(_))&&(l[u++]=x)}else for(var y=0;y<o;y++){for(var b=!0,x=r.getRawIndex(y),N=0;N<i;N++){var A=a[N],_=h[A][x];(_<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]]=ei();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 v=n&&n.apply(null,l);if(v!=null){typeof v!="object"&&(i[0]=v,v=i);for(var c=0;c<v.length;c++){var m=r[c],g=v[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(ho(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){for(var m=Math.min(v+l,o-1),g=Math.min(v+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=v,x=Math.min(v+l,o),b=v-1,N=i[u];c=-1,d=C;for(var A=-1,D=0,w=C;w<x;w++){var S=this.getRawIndex(w),T=i[S];if(isNaN(T)){D++,A<0&&(A=S);continue}f=Math.abs((b-y)*(T-N)-(b-w)*(_-N)),f>c&&(c=f,d=S)}D>0&&D<x-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]=ei(),d=new(ho(this._rawCount))(Math.ceil(c/l)),h=0,v=0;v<c;v+=l){l>c-v&&(l=c-v,s.length=l);for(var m=0;m<l;m++){var g=this.getRawIndex(v+m);s[m]=u[g]}var y=n(s),_=this.getRawIndex(Math.min(v+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=ei();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&&Sr(t,function(s,l){return s[l]=!0,s},{});if(i)for(var o=0;o<a.length;o++)n._chunks[o]=i[o]?KM(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=fe(this._extent),t._rawExtent=fe(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 Qa(r[i],this._dimensions[i])}Mh={arrayRows:t,objectRows:function(r,n,a,i){return Qa(r[n],this._dimensions[i])},keyedColumns:t,original:function(r,n,a,i){var o=r&&(r.value==null?r:r.value);return Qa(o instanceof Array?o[i]:o,this._dimensions[i])},typedArray:function(r,n,a,i){return r[i]}}}(),e}(),JM=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(po(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=ot(s)?Ar:Rt,i=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=oe(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=oe(f.sourceHeader,d.sourceHeader),m=oe(f.dimensions,d.dimensions),g=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||m;a=g?[Nh(s,{seriesLayoutBy:h,sourceHeader:v,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=[Nh(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"),C0(i))}var o,s=[],l=[];return M(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),C0(f)),s.push(c),l.push(u._getVersionSign())}),n?o=qM(n,s,{datasetIndex:r.componentIndex}):a!=null&&(o=[EM(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(po(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];po(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new Eh,s.initData(new u0(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(po(t)){var r=gh(t);return r?[r.getSourceManager()]:[]}else return j(rM(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,a;if(po(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 po(e){return e.mainType==="series"}function C0(e){throw new Error(e)}var T0="line-height:1";function N0(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:"+At(n+"")+"px;color:"+At(r)+";font-weight:"+At(a+""),valueStyle:"font-size:"+At(o+"")+"px;color:"+At(i)+";font-weight:"+At(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:a},valueStyle:{fontSize:o,fill:i,fontWeight:s}}}var QM=[0,10,20,30],eE=["",`
|
|
36
36
|
`,`
|
|
37
37
|
|
|
38
38
|
`,`
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
`];function Jn(e,t){return t.type=e,t}function Ph(e){return e.type==="section"}function T0(e){return Ph(e)?eE:tE}function N0(e){if(Ph(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return k(e.blocks,function(a){var o=N0(a);o>=t&&(t=o+ +(n&&(!o||Ph(a)&&!a.noHeader)))}),t}return 0}function eE(e,t,r,n){var a=t.noHeader,o=rE(N0(t)),i=[],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(Y(u,l)){var c=new Vk(u[l],null);s.sort(function(v,m){return c.evaluate(v.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}k(s,function(v,m){var g=t.valueFormatter,y=T0(v)(g?G(G({},e),{valueFormatter:g}):e,v,m>0?o.html:0,n);y!=null&&i.push(y)});var f=e.renderMode==="richText"?i.join(o.richText):Ih(i.join(""),a?r:o.html);if(a)return f;var d=hh(t.header,"ordinal",e.useUTC),h=x0(n,e.renderMode).nameStyle;return e.renderMode==="richText"?A0(e,d,h)+o.richText+f:Ih('<div style="'+h+";"+C0+';">'+Dt(d)+"</div>"+f,r)}function tE(e,t,r,n){var a=e.renderMode,o=t.noName,i=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(S){return S=U(S)?S:[S],j(S,function(x,C){return hh(x,U(h)?h[C]:h,u)})};if(!(o&&i)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),d=o?"":hh(l,"ordinal",u),h=t.valueType,v=i?[]:c(t.value,t.dataIndex),m=!s||!o,g=!s&&o,y=x0(n,a),w=y.nameStyle,_=y.valueStyle;return a==="richText"?(s?"":f)+(o?"":A0(e,d,w))+(i?"":oE(e,v,m,g,_)):Ih((s?"":f)+(o?"":nE(d,!s,w))+(i?"":aE(v,m,g,_)),r)}}function D0(e,t,r,n,a,o){if(e){var i=T0(e),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return i(s,e,0,o)}}function rE(e){return{html:Jk[e],richText:Qk[e]}}function Ih(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+C0+';">'+e+r+"</div>"}function nE(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Dt(e)+"</span>"}function aE(e,t,r,n){var a=r?"10px":"20px",o=t?"float:right;margin-left:"+a:"";return e=U(e)?e:[e],'<span style="'+o+";"+n+'">'+j(e,function(i){return Dt(i)}).join(" ")+"</span>"}function A0(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function oE(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(U(t)?t.join(" "):t,o)}function iE(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return qn(n)}function M0(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Lh=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Cg()}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=YM({color:r,type:t,renderMode:n,markerId:a});return X(o)?o:(process.env.NODE_ENV!=="production"&&ne(a),this.richTextStyles[a]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};U(r)?k(r,function(o){return G(n,o)}):G(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},e}();function sE(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=U(s),u=iE(t,r),c,f,d,h;if(i>1||l&&!i){var v=lE(s,t,r,o,u);c=v.inlineValues,f=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(i){var m=a.getDimensionInfo(o[0]);h=c=Ja(a,r,o[0]),f=m.type}else h=c=l?s[0]:s;var g=vf(t),y=g&&t.name||"",w=a.getName(r),_=n?y:w;return Jn("section",{header:y,noHeader:n||!g,sortParam:h,blocks:[Jn("nameValue",{markerType:"item",markerColor:u,name:_,noName:!nr(_),value:c,valueType:f,dataIndex:r})].concat(d||[])})}function lE(e,t,r,n,a){var o=t.getData(),i=Sr(e,function(f,d,h){var v=o.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?k(n,function(f){c(Ja(o,r,f),f)}):k(e,c);function c(f,d){var h=o.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(i?u.push(Jn("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 rn=De();function Nl(e,t){return e.getName(t)||e.getId(t)}var uE="__universalTransitionEnabled",Dl=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=hi({count:fE,reset:hE}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var o=rn(this).sourceManager=new Kk(this);o.prepareSource();var i=this.getInitialData(r,a);E0(i,this),this.dataTask.context.data=i,process.env.NODE_ENV!=="production"&&ne(i,"getInitialData returned invalid data."),rn(this).dataBeforeProcessed=i,k0(this),this._initSelectedMapFromData(i)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=ii(this),o=a?si(r):{},i=this.subType;Ne.hasClass(i)&&(i+="Series"),ve(r,n.getTheme().get(this.subType)),ve(r,this.getDefaultOption()),Is(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&ja(r,o,a)},t.prototype.mergeOption=function(r,n){r=ve(this.option,r,!0),this.fillDataTextStyle(r.data);var a=ii(this);a&&ja(this.option,r,a);var o=rn(this).sourceManager;o.dirty(),o.prepareSource();var i=this.getInitialData(r,n);E0(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,rn(this).dataBeforeProcessed=i,k0(this),this._initSelectedMapFromData(i)},t.prototype.fillDataTextStyle=function(r){if(r&&!ot(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&Is(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=Oh(this);if(n){var a=n.context.data;return r==null?a:a.getLinkedData(r)}else return rn(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=Oh(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}rn(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return se(r)},t.prototype.getSourceManager=function(){return rn(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return rn(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 sE({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 o=this.ecModel,i=mh.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=Nl(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=ye(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[Nl(o,r)])&&!o.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,o,i=this.option,s=i.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")i.selectedMap="all";else if(s==="multiple"){J(i.selectedMap)||(i.selectedMap={});for(var u=i.selectedMap,c=0;c<l;c++){var f=n[c],d=Nl(r,f);u[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(f)}}else if(s==="single"||s===!0){var h=n[l-1],d=Nl(r,h);i.selectedMap=(a={},a[d]=!0,a),this._selectedDataIndicesMap=(o={},o[d]=r.getRawIndex(h),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 Ne.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}(Ne);Wt(Dl,p0),Wt(Dl,mh),Og(Dl,Ne);function k0(e){var t=e.name;vf(e)||(e.name=cE(e)||t)}function cE(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 fE(e){return e.model.getRawData().count()}function hE(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),dE}function dE(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function E0(e,t){k(TT(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Se(pE,t))})}function pE(e,t){var r=Oh(e);return r&&r.setOutputEnd((t||this).count()),t}function Oh(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 Er=Dl;var Rh=function(){function e(){this.group=new Oe,this.uid=ul("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}();yf(Rh),Ls(Rh);const Jt=Rh;function Bh(){var e=De();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 P0=De(),vE=Bh(),Vh=function(){function e(){this.group=new Oe,this.uid=ul("viewChart"),this.renderTask=hi({plan:gE,reset:mE}),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"&&Ke("Unknown dataType "+a.dataType);return}L0(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"&&Ke("Unknown dataType "+a.dataType);return}L0(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){Ha(this.group,t)},e.markUpdateMethod=function(t,r){P0(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function I0(e,t,r){e&&$a(e)&&(t==="emphasis"?jo:Xo)(e,r)}function L0(e,t,r){var n=Nn(e,t),a=t&&t.highlightKey!=null?MA(t.highlightKey):null;n!=null?k(We(n),function(o){I0(e.getItemGraphicEl(o),r,a)}):e.eachItemGraphicEl(function(o){I0(o,r,a)})}yf(Vh,["dispose"]),Ls(Vh);function gE(e){return vE(e.model)}function mE(e){var t=e.model,r=e.ecModel,n=e.api,a=e.payload,o=t.pipelineContext.progressiveRender,i=e.view,s=a&&P0(a).updateMethod,l=o?"incrementalPrepareRender":s&&i[s]?s:"render";return l!=="render"&&i[l](t,r,n,a),yE[l]}var yE={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Qt=Vh;var Al="\0__throttleOriginMethod",O0="\0__throttleRate",R0="\0__throttleType";function $h(e,t,r){var n,a=0,o=0,i=null,s,l,u,c;t=t||0;function f(){o=new Date().getTime(),i=null,e.apply(l,u||[])}var d=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];n=new Date().getTime(),l=this,u=h;var m=c||t,g=c||r;c=null,s=n-(g?a:o)-m,clearTimeout(i),g?i=setTimeout(f,m):s>=0?f():i=setTimeout(f,-s),a=n};return d.clear=function(){i&&(clearTimeout(i),i=null)},d.debounceNextCall=function(h){c=h},d}function Ml(e,t,r,n){var a=e[t];if(a){var o=a[Al]||a,i=a[R0],s=a[O0];if(s!==r||i!==n){if(r==null||!n)return e[t]=o;a=e[t]=$h(o,r,n==="debounce"),a[Al]=o,a[R0]=n,a[O0]=r}return a}}function kl(e,t){var r=e[t];r&&r[Al]&&(r.clear&&r.clear(),e[t]=r[Al])}var B0=De(),V0={itemStyle:Ho(yy,!0),lineStyle:Ho(my,!0)},_E={lineStyle:"stroke",itemStyle:"fill"};function $0(e,t){var r=e.visualStyleMapper||V0[t];return r||(console.warn("Unknown style type '"+t+"'."),V0.itemStyle)}function F0(e,t){var r=e.visualDrawType||_E[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var wE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=e.getModel(n),o=$0(e,n),i=o(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=F0(e,n),u=i[l],c=oe(u)?u:null,f=i.fill==="auto"||i.stroke==="auto";if(!i[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());i[l]||(i[l]=d,r.setVisual("colorFromPalette",!0)),i.fill=i.fill==="auto"||oe(i.fill)?d:i.fill,i.stroke=i.stroke==="auto"||oe(i.stroke)?d:i.stroke}if(r.setVisual("style",i),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var m=e.getDataParams(v),g=G({},i);g[l]=c(m),h.setItemVisual(v,"style",g)}}}},vi=new et,bE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=$0(e,n),o=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(i,s){var l=i.getRawDataItem(s);if(l&&l[n]){vi.option=l[n];var u=a(vi),c=i.ensureUniqueItemVisual(s,"style");G(c,u),vi.option.decal&&(i.setItemVisual(s,"decal",vi.option.decal),vi.option.decal.dirty=!0),o in u&&i.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},SE={performRawSeries:!0,overallReset:function(e){var t=se();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)),B0(r).scope=o}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),a={},o=r.getData(),i=B0(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=F0(r,s);o.each(function(u){var c=o.getRawIndex(u);a[c]=u}),n.each(function(u){var c=a[u],f=o.getItemVisual(c,"colorFromPalette");if(f){var d=o.ensureUniqueItemVisual(c,"style"),h=n.getName(u)||u+"",v=n.count();d[l]=r.getColorFromPalette(h,i,v)}})}})}},El=Math.PI;function CE(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 Oe,n=new Pe({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}),o=new Pe({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 Zf({shape:{startAngle:-El/2,endAngle:-El/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:El*3/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:El*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),c=e.getHeight()/2;t.showSpinner&&i.setShape({cx:u,cy:c}),o.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 z0=function(){function e(t,r,n,a){this._stageTaskMap=se(),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=se();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.'),ne(!(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 c=i._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,v=d.agentStubMap;v.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),i.updatePayload(d,n);var m=i.getPerformArgs(d,a.block);v.each(function(g){g.perform(m)}),d.perform(m)&&(o=!0)}else f&&f.each(function(g,y){s(a,g)&&g.dirty();var w=i.getPerformArgs(g,a.block);w.skip=!l.performRawSeries&&r.isSeriesFiltered(g.context.model),i.updatePayload(g,n),g.perform(w)&&(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=se(),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,i&&i.get(d)||hi({plan:AE,reset:ME,count:EE}));h.context={model:f,ecModel:n,api:a,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,r,n,a){var o=this,i=r.overallTask=r.overallTask||hi({reset:xE});i.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:o};var s=i.agentStubMap,l=i.agentStubMap=se(),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,v):c?c(n,a).each(v):(f=!1,k(n.getSeries(),v));function v(m){var g=m.uid,y=l.set(g,s&&s.get(g)||(d=!0,hi({reset:TE,onDirty:DE})));y.context={model:m,overallProgress:f},y.agent=i,y.__block=f,o._pipe(m,y)}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 oe(t)&&(t={overallReset:t,seriesType:PE(t)}),t.uid=ul("stageHandler"),r&&(t.visualType=r),t},e}();function xE(e){e.overallReset(e.ecModel,e.api,e.payload)}function TE(e){return e.overallProgress&&NE}function NE(){this.agent.dirty(),this.getDownstream().dirty()}function DE(){this.agent&&this.agent.dirty()}function AE(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function ME(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=We(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?j(t,function(r,n){return G0(n)}):kE}var kE=G0(0);function G0(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 EE(e){return e.data.count()}function PE(e){Pl=null;try{e(gi,H0)}catch{}return Pl}var gi={},H0={},Pl;W0(gi,_h),W0(H0,jy),gi.eachSeriesByType=gi.eachRawSeriesByType=function(e){Pl=e},gi.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Pl=e.subType)};function W0(e,t){for(var r in t.prototype)e[r]=it}var U0=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const IE={color:U0,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],U0]};var ut="#B9B8CE",Y0="#100C2A",Il=function(){return{axisLine:{lineStyle:{color:ut}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},q0=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],j0={darkMode:!0,color:q0,backgroundColor:Y0,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:ut}},textStyle:{color:ut},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:ut}},dataZoom:{borderColor:"#71708A",textStyle:{color:ut},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:ut}},timeline:{lineStyle:{color:ut},label:{color:ut},controlStyle:{color:ut,borderColor:ut}},calendar:{itemStyle:{color:Y0},dayLabel:{color:ut},monthLabel:{color:ut},yearLabel:{color:ut}},timeAxis:Il(),logAxis:Il(),valueAxis:Il(),categoryAxis:Il(),line:{symbol:"circle"},graph:{color:q0},gauge:{title:{color:ut},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:ut},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};j0.categoryAxis.splitLine.show=!1;const LE=j0;var OE=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},a={};if(X(t)){var o=lr(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 c=!1,f=0;f<i.length;f++){var d=i[f],h=u.lastIndexOf(d);if(h>0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(r.mainType=v,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,o=n.packedEvent,i=n.model,s=n.view;if(!i||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,i,"mainType")&&c(l,i,"subType")&&c(l,i,"index","componentIndex")&&c(l,i,"name")&&c(l,i,"id")&&c(u,o,"name")&&c(u,o,"dataIndex")&&c(u,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,a,o));function c(f,d,h,v){return f[h]==null||d[v||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Fh=["symbol","symbolSize","symbolRotate","symbolOffset"],X0=Fh.concat(["symbolKeepAspect"]),RE={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<Fh.length;i++){var s=Fh[i],l=e.get(s);oe(l)?(o=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(G({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=ye(a);function c(f,d){for(var h=e.getRawValue(d),v=e.getDataParams(d),m=0;m<u.length;m++){var g=u[m];f.setItemVisual(d,g,a[g](h,v))}}return{dataEach:o?c:null}}},BE={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<X0.length;s++){var l=X0[s],u=i.getShallow(l,!0);u!=null&&a.setItemVisual(o,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function VE(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 Z0(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 $E(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=G({},a),process.env.NODE_ENV!=="production"&&Ge(a.type,n[1]),i.dispatchAction(G(a,{type:n[1],seriesIndex:r(o,a)}))})})}function to(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,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=i.getData(),d=Nn(f,a.fromActionPayload);r.trigger(o,{type:o,seriesId:i.id,name:U(d)?f.getName(d[0]):f.getName(d),selected:X(l)?l:G({},l)})}}))}function FE(e,t,r){e.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(to("map","selectchanged",t,a,n),to("pie","selectchanged",t,a,n)):n.fromAction==="select"?(to("map","selected",t,a,n),to("pie","selected",t,a,n)):n.fromAction==="unselect"&&(to("map","unselected",t,a,n),to("pie","unselected",t,a,n))})}function mi(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var zE=Math.round(Math.random()*9),GE=typeof Object.defineProperty=="function",HE=function(){function e(){this._id="__ec_inner_"+zE++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return GE?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}(),WE=me.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()}}),UE=me.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()}}),YE=me.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),c=Math.cos(u)*i,f=Math.sin(u),d=Math.cos(u),h=i*.6,v=i*.7;e.moveTo(r-c,l+s),e.arc(r,l,i,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+c-f*h,l+s+d*h,r,n-v,r,n),e.bezierCurveTo(r,n-v,r-c+f*h,l+s+d*h,r-c,l+s),e.closePath()}}),qE=me.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()}}),jE={line:en,rect:Pe,roundRect:Pe,square:Pe,circle:Yf,diamond:UE,pin:YE,arrow:qE,triangle:WE},XE={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}},Ll={};k(jE,function(e,t){Ll[t]=new e});var ZE=me.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=Ds(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=Ll[n];a||(n="rect",a=Ll[n]),XE[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,r)}}});function KE(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 Pr(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=ry(e.slice(8),new _e(t,r,n,a),i?"center":"cover"):e.indexOf("path://")===0?l=ol(e.slice(7),{},new _e(t,r,n,a),i?"center":"cover"):l=new ZE({shape:{symbolType:e,x:t,y:r,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=KE,o&&l.setColor(o),l}function zh(e){return U(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Ol(e,t){if(e!=null)return U(e)||(e=[e,e]),[Te(e[0],t[0])||0,Te(ie(e[1],e[0]),t[1])||0]}function Qn(e){return isFinite(e)}function JE(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=Qn(n)?n:0,a=Qn(a)?a:1,o=Qn(o)?o:0,i=Qn(i)?i:0;var s=e.createLinearGradient(n,o,a,i);return s}function QE(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=Qn(i)?i:.5,s=Qn(s)?s:.5,l=l>=0&&Qn(l)?l:.5;var u=e.createRadialGradient(i,s,0,i,s,l);return u}function Gh(e,t,r){for(var n=t.type==="radial"?QE(e,t,r):JE(e,t,r),a=t.colorStops,o=0;o<a.length;o++)n.addColorStop(a[o].offset,a[o].color);return n}function e5(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 Rl(e){return parseInt(e,10)}function Bl(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]||Rl(s[n])||Rl(e.style[n]))-(Rl(s[o])||0)-(Rl(s[i])||0)|0}function t5(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:xe(e)?[e]:U(e)?e:null}function K0(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&t5(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&a!==1&&(r=j(r,function(o){return o/a}),n/=a)}return[r,n]}var r5=new On(!0);function Vl(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function J0(e){return typeof e=="string"&&e!=="none"}function $l(e){var t=e.fill;return t!=null&&t!=="none"}function Q0(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 e_(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 Hh(e,t,r){var n=Rg(t.image,t.__image,r);if(Os(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)*NT),o.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(o)}return a}}function n5(e,t,r,n){var a,o=Vl(r),i=$l(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||r5,f=t.__dirty;if(!n){var d=r.fill,h=r.stroke,v=i&&!!d.colorStops,m=o&&!!h.colorStops,g=i&&!!d.image,y=o&&!!h.image,w=void 0,_=void 0,S=void 0,x=void 0,C=void 0;(v||m)&&(C=t.getBoundingRect()),v&&(w=f?Gh(e,d,C):t.__canvasFillGradient,t.__canvasFillGradient=w),m&&(_=f?Gh(e,h,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),g&&(S=f||!t.__canvasFillPattern?Hh(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(x=f||!t.__canvasStrokePattern?Hh(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),v?e.fillStyle=w:g&&(S?e.fillStyle=S:i=!1),m?e.strokeStyle=_:y&&(x?e.strokeStyle=x:o=!1)}var N=t.getGlobalScale();c.setScale(N[0],N[1],t.segmentIgnoreThreshold);var b,T;e.setLineDash&&r.lineDash&&(a=K0(t),b=a[0],T=a[1]);var M=!0;(u||f&Aa)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),M=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),M&&c.rebuildPath(e,l?s:1),b&&(e.setLineDash(b),e.lineDashOffset=T),n||(r.strokeFirst?(o&&e_(e,r),i&&Q0(e,r)):(i&&Q0(e,r),o&&e_(e,r))),b&&e.setLineDash([])}function a5(e,t,r){var n=t.__image=Rg(r.image,t.__image,t,t.onload);if(!(!n||!Os(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,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,a,o,i,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=i-u,d=s-c;e.drawImage(n,u,c,f,d,a,o,i,s)}else e.drawImage(n,a,o,i,s)}}function o5(e,t,r){var n,a=r.text;if(a!=null&&(a+=""),a){e.font=r.font||_n,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var o=void 0,i=void 0;e.setLineDash&&r.lineDash&&(n=K0(t),o=n[0],i=n[1]),o&&(e.setLineDash(o),e.lineDashOffset=i),r.strokeFirst?(Vl(r)&&e.strokeText(a,r.x,r.y),$l(r)&&e.fillText(a,r.x,r.y)):($l(r)&&e.fillText(a,r.x,r.y),Vl(r)&&e.strokeText(a,r.x,r.y)),o&&e.setLineDash([])}}var t_=["shadowBlur","shadowOffsetX","shadowOffsetY"],r_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function n_(e,t,r,n,a){var o=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){yt(e,a),o=!0;var i=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(i)?An.opacity:i}(n||t.blend!==r.blend)&&(o||(yt(e,a),o=!0),e.globalCompositeOperation=t.blend||An.blend);for(var s=0;s<t_.length;s++){var l=t_[s];(n||t[l]!==r[l])&&(o||(yt(e,a),o=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(o||(yt(e,a),o=!0),e.shadowColor=t.shadowColor||An.shadowColor),o}function a_(e,t,r,n,a){var o=yi(t,a.inHover),i=n?null:r&&yi(r,a.inHover)||{};if(o===i)return!1;var s=n_(e,o,i,n,a);if((n||o.fill!==i.fill)&&(s||(yt(e,a),s=!0),J0(o.fill)&&(e.fillStyle=o.fill)),(n||o.stroke!==i.stroke)&&(s||(yt(e,a),s=!0),J0(o.stroke)&&(e.strokeStyle=o.stroke)),(n||o.opacity!==i.opacity)&&(s||(yt(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||(yt(e,a),s=!0),e.lineWidth=u)}for(var c=0;c<r_.length;c++){var f=r_[c],d=f[0];(n||o[d]!==i[d])&&(s||(yt(e,a),s=!0),e[d]=o[d]||f[1])}return s}function i5(e,t,r,n,a){return n_(e,yi(t,a.inHover),r&&yi(r,a.inHover),n,a)}function o_(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 s5(e,t,r){for(var n=!1,a=0;a<e.length;a++){var o=e[a];n=n||o.isZeroArea(),o_(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}r.allClipped=n}function l5(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 i_=1,s_=2,l_=3,u_=4;function u5(e){var t=$l(e),r=Vl(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 yt(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function yi(e,t){return t&&e.__hoverStyle||e.style}function c_(e,t){ea(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ea(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||e5(o,i))&&(i&&i.length&&(yt(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),o&&o.length&&(yt(e,r),e.save(),s5(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 c=t instanceof me&&t.autoBatch&&u5(t.style);s||l5(a,u.transform)?(yt(e,r),o_(e,t)):c||yt(e,r);var f=yi(t,r.inHover);t instanceof me?(r.lastDrawType!==i_&&(l=!0,r.lastDrawType=i_),a_(e,t,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&e.beginPath(),n5(e,t,f,c),c&&(r.batchFill=f.fill||"",r.batchStroke=f.stroke||"")):t instanceof If?(r.lastDrawType!==l_&&(l=!0,r.lastDrawType=l_),a_(e,t,u,l,r),o5(e,t,f)):t instanceof Qr?(r.lastDrawType!==s_&&(l=!0,r.lastDrawType=s_),i5(e,t,u,l,r),a5(e,t,f)):t.getTemporalDisplayables&&(r.lastDrawType!==u_&&(l=!0,r.lastDrawType=u_),c5(e,t,r)),c&&n&&yt(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function c5(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(),ea(e,l,o,i===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}for(var u=0,c=a.length;u<c;u++){var l=a[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),ea(e,l,o,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Wh=new HE,f_=new Po(100),h_=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Fl(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";e.dirty&&Wh.delete(e);var o=Wh.get(e);if(o)return o;var i=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});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,Wh.set(e,s),e.dirty=!1,s;function l(u){for(var c=[r],f=!0,d=0;d<h_.length;++d){var h=i[h_[d]];if(h!=null&&!U(h)&&!X(h)&&!xe(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var v;if(f){v=c.join(",")+(a?"-svg":"");var m=f_.get(v);m&&(a?u.svgElement=m:u.image=m)}var g=p_(i.dashArrayX),y=f5(i.dashArrayY),w=d_(i.symbol),_=h5(g),S=v_(y),x=!a&&ga.createCanvas(),C=a&&{tag:"g",attrs:{},key:"dcl",children:[]},N=T(),b;x&&(x.width=N.width*r,x.height=N.height*r,b=x.getContext("2d")),M(),f&&f_.put(v,x||C),u.image=x,u.svgElement=C,u.svgWidth=N.width,u.svgHeight=N.height;function T(){for(var D=1,A=0,P=_.length;A<P;++A)D=Tg(D,_[A]);for(var E=1,A=0,P=w.length;A<P;++A)E=Tg(E,w[A].length);D*=E;var I=S*_.length*w.length;if(process.env.NODE_ENV!=="production"){var L=function(R){console.warn("Calculated decal size is greater than "+R+" due to decal option settings so "+R+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+R+" to be larger to avoid incontinuity.")};D>i.maxTileWidth&&L("maxTileWidth"),I>i.maxTileHeight&&L("maxTileHeight")}return{width:Math.max(1,Math.min(D,i.maxTileWidth)),height:Math.max(1,Math.min(I,i.maxTileHeight))}}function M(){b&&(b.clearRect(0,0,x.width,x.height),i.backgroundColor&&(b.fillStyle=i.backgroundColor,b.fillRect(0,0,x.width,x.height)));for(var D=0,A=0;A<y.length;++A)D+=y[A];if(D<=0)return;for(var P=-S,E=0,I=0,L=0;P<N.height;){if(E%2===0){for(var R=I/2%w.length,B=0,V=0,W=0;B<N.width*2;){for(var q=0,A=0;A<g[L].length;++A)q+=g[L][A];if(q<=0)break;if(V%2===0){var Q=(1-i.symbolSize)*.5,ue=B+g[L][V]*Q,z=P+y[E]*Q,he=g[L][V]*i.symbolSize,ce=y[E]*i.symbolSize,ke=W/2%w[R].length;He(ue,z,he,ce,w[R][ke])}B+=g[L][V],++W,++V,V===g[L].length&&(V=0)}++L,L===g.length&&(L=0)}P+=y[E],++I,++E,E===y.length&&(E=0)}function He(Ie,Ae,re,ee,ft){var Le=a?1:r,xt=Pr(ft,Ie*Le,Ae*Le,re*Le,ee*Le,i.color,i.symbolKeepAspect);if(a){var Gt=n.painter.renderOneToVNode(xt);Gt&&C.children.push(Gt)}else c_(b,xt)}}}}function d_(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 d_([e]);for(var n=[],r=0;r<e.length;++r)X(e[r])?n.push([e[r]]):n.push(e[r]);return n}function p_(e){if(!e||e.length===0)return[[0,0]];if(xe(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!xe(e[n])){r=!1;break}if(r)return p_([e]);for(var a=[],n=0;n<e.length;++n)if(xe(e[n])){var t=Math.ceil(e[n]);a.push([t,t])}else{var t=j(e[n],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function f5(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(xe(e)){var t=Math.ceil(e);return[t,t]}var r=j(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function h5(e){return j(e,function(t){return v_(t)})}function v_(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function d5(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=Fl(s,t)}});var a=n.getVisual("decal");if(a){var o=n.getVisual("style");o.decal=Fl(a,t)}}})}var er=new Ut,zl={};function p5(e,t){process.env.NODE_ENV!=="production"&&zl[e]&&Ke("Already has an implementation of "+e+"."),zl[e]=t}function v5(e){return process.env.NODE_ENV!=="production"&&(zl[e]||Ke("Implementation of "+e+" doesn't exists.")),zl[e]}var g5=1,m5=800,y5=900,_5=1e3,w5=2e3,b5=5e3,g_=1e3,S5=1100,Uh=2e3,m_=3e3,C5=4e3,Gl=4500,x5=4600,T5=5e3,N5=6e3,y_=7e3,D5={PROCESSOR:{FILTER:_5,SERIES_FILTER:m5,STATISTIC:b5},VISUAL:{LAYOUT:g_,PROGRESSIVE_LAYOUT:S5,GLOBAL:Uh,CHART:m_,POST_CHART_LAYOUT:x5,COMPONENT:C5,BRUSH:T5,CHART_ITEM:Gl,ARIA:N5,DECAL:y_}},rt="__flagInMainProcess",_t="__pendingUpdate",Yh="__needsUpdateStatus",__=/^[a-zA-Z0-9_]+$/,qh="__connectUpdateStatus",w_=0,A5=1,M5=2;function b_(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){Ct(this.id);return}return C_(this,e,t)}}function S_(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return C_(this,e,t)}}function C_(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Ut.prototype[t].apply(e,r)}var x_=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Ut),T_=x_.prototype;T_.on=S_("on"),T_.off=S_("off");var ro,jh,Hl,nn,Xh,Zh,Kh,_i,wi,N_,D_,Jh,A_,Wl,M_,k_,Vt,E_,P_=function(e){H(t,e);function t(r,n,a){var o=e.call(this,new OE)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],a=a||{},X(n)&&(n=I_[n]),o._dom=r;var i="canvas",s="auto",l=!1;if(process.env.NODE_ENV!=="production"){var u=ae.hasGlobalWindow?window:global;u&&(i=ie(u.__ECHARTS__DEFAULT__RENDERER__,i),s=ie(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=ie(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l))}a.ssr;var c=o._zr=gg(r,{renderer:a.renderer||i,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});o._ssr=a.ssr,o._throttledZrFlush=$h(te(c.flush,c),17),n=fe(n),n&&t0(n,!0),o._theme=n,o._locale=$M(a.locale||_y),o._coordSysMgr=new bh;var f=o._api=M_(o);function d(h,v){return h.__prio-v.__prio}return us(Yl,d),us(ed,d),o._scheduler=new z0(o,f,ed,Yl),o._messageCenter=new x_,o._initEvents(),o.resize=te(o.resize,o),c.animation.on("frame",o._onframe,o),N_(c,o),D_(c,o),mc(o),o}return t.prototype._onframe=function(){if(!this._disposed){E_(this);var r=this._scheduler;if(this[_t]){var n=this[_t].silent;this[rt]=!0;try{ro(this),nn.update.call(this,null,this[_t].updateParams)}catch(l){throw this[rt]=!1,this[_t]=null,l}this._zr.flush(),this[rt]=!1,this[_t]=null,_i.call(this,n),wi.call(this,n)}else if(r.unfinished){var a=g5,o=this._model,i=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(o),r.performDataProcessorTasks(o),Zh(this,o),r.performVisualTasks(o),Wl(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[rt]){process.env.NODE_ENV!=="production"&&Ke("`setOption` should not be called during main process.");return}if(this._disposed){Ct(this.id);return}var o,i,s;if(J(n)&&(a=n.lazyUpdate,o=n.silent,i=n.replaceMerge,s=n.transition,n=n.notMerge),this[rt]=!0,!this._model||n){var l=new wk(this._api),u=this._theme,c=this._model=new _h;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:i},td);var f={seriesTransition:s,optionChanged:!0};if(a)this[_t]={silent:o,updateParams:f},this[rt]=!1,this.getZr().wakeUp();else{try{ro(this),nn.update.call(this,null,f)}catch(d){throw this[_t]=null,this[rt]=!1,d}this._ssr||this._zr.flush(),this[_t]=null,this[rt]=!1,_i.call(this,o),wi.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||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){Ct(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 c=i._componentsMap[u.__viewId];c.group.ignore||(o.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(o,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){Ct(this.id);return}var n=r.type==="svg",a=this.group,o=Math.min,i=Math.max,s=1/0;if(L_[a]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();k(Si,function(_,S){if(_.group===a){var x=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(fe(r)),C=_.getDom().getBoundingClientRect();l=o(C.left,l),u=o(C.top,u),c=i(C.right,c),f=i(C.bottom,f),d.push({dom:x,left:C.left,top:C.top})}}),l*=h,u*=h,c*=h,f*=h;var v=c-l,m=f-u,g=ga.createCanvas(),y=gg(g,{renderer:n?"svg":"canvas"});if(y.resize({width:v,height:m}),n){var w="";return k(d,function(_){var S=_.left-l,x=_.top-u;w+='<g transform="translate('+S+","+x+')">'+_.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=w,r.connectedBackgroundColor&&y.painter.setBackgroundColor(r.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return r.connectedBackgroundColor&&y.add(new Pe({shape:{x:0,y:0,width:v,height:m},style:{fill:r.connectedBackgroundColor}})),k(d,function(_){var S=new Qr({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(S)}),y.refreshImmediately(),g.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return Xh(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Xh(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){Ct(this.id);return}var a=this._model,o,i=gf(a,r);return k(i,function(s,l){l.indexOf("Models")>=0&&k(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)o=o||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint?o=o||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),!!o},t.prototype.getVisual=function(r,n){var a=this._model,o=gf(a,r,{defaultMainType:"series"}),i=o.seriesModel;process.env.NODE_ENV!=="production"&&(i||ze("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?VE(s,l,n):Z0(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(k5,function(n){var a=function(o){var i=r.getModel(),s=o.target,l,u=n==="globalout";if(u?l={}:s&&mi(s,function(v){var m=ge(v);if(m&&m.dataIndex!=null){var g=m.dataModel||i.getSeriesByIndex(m.seriesIndex);return l=g&&g.getDataParams(m.dataIndex,m.dataType,s)||{},!0}else if(m.eventData)return l=G({},m.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&i.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=o,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(bi,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)}),FE(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){Ct(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){Ct(this.id);return}this._disposed=!0;var r=this.getDom();r&&Ig(this.getDom(),nd,"");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 Si[n.id]},t.prototype.resize=function(r){if(this[rt]){process.env.NODE_ENV!=="production"&&Ke("`resize` should not be called during main process.");return}if(this._disposed){Ct(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[_t]&&(o==null&&(o=this[_t].silent),a=!0,this[_t]=null),this[rt]=!0;try{a&&ro(this),nn.update.call(this,{type:"resize",animation:G({duration:0},r&&r.animation)})}catch(i){throw this[rt]=!1,i}this[rt]=!1,_i.call(this,o),wi.call(this,o)}},t.prototype.showLoading=function(r,n){if(this._disposed){Ct(this.id);return}if(J(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!rd[r]){process.env.NODE_ENV!=="production"&&ze("Loading effects "+r+" not exists.");return}var a=rd[r](this._api,n),o=this._zr;this._loadingFX=a,o.add(a)},t.prototype.hideLoading=function(){if(this._disposed){Ct(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=G({},r);return n.type=bi[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){Ct(this.id);return}if(J(n)||(n={silent:!!n}),!!Ul[r.type]&&this._model){if(this[rt]){this._pendingActions.push(r);return}var a=n.silent;Kh.call(this,r,a);var o=n.flush;o?this._zr.flush():o!==!1&&ae.browser.weChat&&this._throttledZrFlush(),_i.call(this,a),wi.call(this,a)}},t.prototype.updateLabelLayout=function(){er.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){Ct(this.id);return}var n=r.seriesIndex,a=this.getModel(),o=a.getSeriesByIndex(n);process.env.NODE_ENV!=="production"&&ne(r.data&&o),o.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){ro=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),jh(f,!0),jh(f,!1),d.plan()},jh=function(f,d){for(var h=f._model,v=f._scheduler,m=d?f._componentsViews:f._chartsViews,g=d?f._componentsMap:f._chartsMap,y=f._zr,w=f._api,_=0;_<m.length;_++)m[_].__alive=!1;d?h.eachComponent(function(C,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,T=!N&&g[b];if(!T){var M=lr(C.type),D=d?Jt.getClass(M.main,M.sub):Qt.getClass(M.sub);process.env.NODE_ENV!=="production"&&ne(D,M.sub+" does not exist."),T=new D,T.init(h,w),g[b]=T,m.push(T),y.add(T.group)}C.__viewId=T.__id=b,T.__alive=!0,T.__model=C,T.group.__ecComponentInfo={mainType:C.mainType,index:C.componentIndex},!d&&v.prepareView(T,C,h,w)}for(var _=0;_<m.length;){var x=m[_];x.__alive?_++:(!d&&x.renderTask.dispose(),y.remove(x.group),x.dispose(h,w),m.splice(_,1),g[x.__id]===x&&delete g[x.__id],x.__id=x.group.__ecComponentInfo=null)}},Hl=function(f,d,h,v,m){var g=f._model;if(g.setUpdatePayload(h),!v){k([].concat(f._componentsViews).concat(f._chartsViews),x);return}var y={};y[v+"Id"]=h[v+"Id"],y[v+"Index"]=h[v+"Index"],y[v+"Name"]=h[v+"Name"];var w={mainType:v,query:y};m&&(w.subType=m);var _=h.excludeSeriesId,S;_!=null&&(S=se(),k(We(_),function(C){var N=sr(C,null);N!=null&&S.set(N,!0)})),g&&g.eachComponent(w,function(C){var N=S&&S.get(C.id)!=null;if(!N)if(km(h))if(C instanceof Er)h.type===$n&&!h.notBlur&&!C.get(["emphasis","disabled"])&&bA(C,h,f._api);else{var b=Gf(C.mainType,C.componentIndex,h.name,f._api),T=b.focusSelf,M=b.dispatchers;h.type===$n&&T&&!h.notBlur&&zf(C.mainType,C.componentIndex,f._api),M&&k(M,function(D){h.type===$n?jo(D):Xo(D)})}else Hf(h)&&C instanceof Er&&(xA(C,h,f._api),Dm(C),Vt(f))},f),g&&g.eachComponent(w,function(C){var N=S&&S.get(C.id)!=null;N||x(f[v==="series"?"_chartsMap":"_componentsMap"][C.__viewId])},f);function x(C){C&&C.__alive&&C[d]&&C[d](C.__model,g,f._api,h)}},nn={prepareAndUpdate:function(f){ro(this),nn.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var h=this._model,v=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,v),y.performDataProcessorTasks(h,f),Zh(this,h),g.update(h,v),r(h),y.performVisualTasks(h,f),Jh(this,h,v,f,d);var w=h.get("backgroundColor")||"transparent",_=h.get("darkMode");m.setBackgroundColor(w),_!=null&&_!=="auto"&&m.setDarkMode(_),er.trigger("afterupdate",h,v)}},updateTransform:function(f){var d=this,h=this._model,v=this._api;if(h){h.setUpdatePayload(f);var m=[];h.eachComponent(function(y,w){if(y!=="series"){var _=d.getViewOfComponentModel(w);if(_&&_.__alive)if(_.updateTransform){var S=_.updateTransform(w,h,v,f);S&&S.update&&m.push(_)}else m.push(_)}});var g=se();h.eachSeries(function(y){var w=d._chartsMap[y.__viewId];if(w.updateTransform){var _=w.updateTransform(y,h,v,f);_&&_.update&&g.set(y.uid,1)}else g.set(y.uid,1)}),r(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:g}),Wl(this,h,v,f,{},g),er.trigger("afterupdate",h,v)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),Qt.markUpdateMethod(f,"updateView"),r(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),Jh(this,d,this._api,f,{}),er.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(v){v.getData().clearAllVisual()}),Qt.markUpdateMethod(f,"updateVisual"),r(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,m){if(v!=="series"){var g=d.getViewOfComponentModel(m);g&&g.__alive&&g.updateVisual(m,h,d._api,f)}}),h.eachSeries(function(v){var m=d._chartsMap[v.__viewId];m.updateVisual(v,h,d._api,f)}),er.trigger("afterupdate",h,this._api))},updateLayout:function(f){nn.update.call(this,f)}},Xh=function(f,d,h,v){if(f._disposed){Ct(f.id);return}for(var m=f._model,g=f._coordSysMgr.getCoordinateSystems(),y,w=gf(m,h),_=0;_<g.length;_++){var S=g[_];if(S[d]&&(y=S[d](m,w,v))!=null)return y}process.env.NODE_ENV!=="production"&&ze("No coordinate system that supports "+d+" found by the given finder.")},Zh=function(f,d){var h=f._chartsMap,v=f._scheduler;d.eachSeries(function(m){v.updateStreamModes(m,h[m.__viewId])})},Kh=function(f,d){var h=this,v=this.getModel(),m=f.type,g=f.escapeConnect,y=Ul[m],w=y.actionInfo,_=(w.update||"update").split(":"),S=_.pop(),x=_[0]!=null&&lr(_[0]);this[rt]=!0;var C=[f],N=!1;f.batch&&(N=!0,C=j(f.batch,function(E){return E=pe(G({},E),f),E.batch=null,E}));var b=[],T,M=Hf(f),D=km(f);if(D&&Nm(this._api),k(C,function(E){if(T=y.action(E,h._model,h._api),T=T||G({},E),T.type=w.event||T.type,b.push(T),D){var I=mf(f),L=I.queryOptionMap,R=I.mainTypeSpecified,B=R?L.keys()[0]:"series";Hl(h,S,E,B),Vt(h)}else M?(Hl(h,S,E,"series"),Vt(h)):x&&Hl(h,S,E,x.main,x.sub)}),S!=="none"&&!D&&!M&&!x)try{this[_t]?(ro(this),nn.update.call(this,f),this[_t]=null):nn[S].call(this,f)}catch(E){throw this[rt]=!1,E}if(N?T={type:w.event||m,escapeConnect:g,batch:b}:T=b[0],this[rt]=!1,!d){var A=this._messageCenter;if(A.trigger(T.type,T),M){var P={type:"selectchanged",escapeConnect:g,selected:TA(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};A.trigger(P.type,P)}}},_i=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();Kh.call(this,h,f)}},wi=function(f){!f&&this.trigger("updated")},N_=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[_t]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},D_=function(f,d){f.on("mouseover",function(h){var v=h.target,m=mi(v,$a);m&&(SA(m,h,d._api),Vt(d))}).on("mouseout",function(h){var v=h.target,m=mi(v,$a);m&&(CA(m,h,d._api),Vt(d))}).on("click",function(h){var v=h.target,m=mi(v,function(w){return ge(w).dataIndex!=null},!0);if(m){var g=m.selected?"unselect":"select",y=ge(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=[],v=!1;if(f.eachComponent(function(w,_){var S=_.get("zlevel")||0,x=_.get("z")||0,C=_.getZLevelKey();v=v||!!C,(w==="series"?h:d).push({zlevel:S,z:x,idx:_.componentIndex,type:w,key:C})}),v){var m=d.concat(h),g,y;us(m,function(w,_){return w.zlevel===_.zlevel?w.z-_.z:w.zlevel-_.zlevel}),k(m,function(w){var _=f.getComponent(w.type,w.idx),S=w.zlevel,x=w.key;g!=null&&(S=Math.max(g,S)),x?(S===g&&x!==y&&S++,y=x):y&&(S===g&&S++,y=""),g=S,_.setZLevel(S)})}}Jh=function(f,d,h,v,m){n(d),A_(f,d,h,v,m),k(f._chartsViews,function(g){g.__alive=!1}),Wl(f,d,h,v,m),k(f._chartsViews,function(g){g.__alive||g.remove(d,h)})},A_=function(f,d,h,v,m,g){k(g||f._componentsViews,function(y){var w=y.__model;u(w,y),y.render(w,d,h,v),s(w,y),c(w,y)})},Wl=function(f,d,h,v,m,g){var y=f._scheduler;m=G(m||{},{updatedSeries:d.getSeries()}),er.trigger("series:beforeupdate",d,h,m);var w=!1;d.eachSeries(function(_){var S=f._chartsMap[_.__viewId];S.__alive=!0;var x=S.renderTask;y.updatePayload(x,v),u(_,S),g&&g.get(_.uid)&&x.dirty(),x.perform(y.getPerformArgs(x))&&(w=!0),S.group.silent=!!_.get("silent"),i(_,S),Dm(_)}),y.unfinished=w||y.unfinished,er.trigger("series:layoutlabels",d,h,m),er.trigger("series:transition",d,h,m),d.eachSeries(function(_){var S=f._chartsMap[_.__viewId];s(_,S),c(_,S)}),o(f,d),er.trigger("series:afterupdate",d,h,m)},Vt=function(f){f[Yh]=!0,f.getZr().wakeUp()},E_=function(f){f[Yh]&&(f.getZr().storage.traverse(function(d){Qo(d)||a(d)}),f[Yh]=!1)};function a(f){for(var d=[],h=f.currentStates,v=0;v<h.length;v++){var m=h[v];m==="emphasis"||m==="blur"||m==="select"||d.push(m)}f.selected&&f.states.select&&d.push("select"),f.hoverState===Gs&&f.states.emphasis?d.push("emphasis"):f.hoverState===zs&&f.states.blur&&d.push("blur"),f.useStates(d)}function o(f,d){var h=f._zr,v=h.storage,m=0;v.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(w){w.states.emphasis&&(w.states.emphasis.hoverLayer=!0)})}})}function i(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,v=f.get("zlevel")||0;d.eachRendered(function(m){return l(m,h,v,-1/0),!0})}}function l(f,d,h,v){var m=f.getTextContent(),g=f.getTextGuideLine(),y=f.isGroup;if(y)for(var w=f.childrenRef(),_=0;_<w.length;_++)v=Math.max(l(w[_],d,h,v),v);else f.z=d,f.zlevel=h,v=Math.max(f.z2,v);if(m&&(m.z=d,m.zlevel=h,isFinite(v)&&(m.z2=v+2)),g){var S=f.textGuideLineConfig;g.z=d,g.zlevel=h,isFinite(v)&&(g.z2=v+(S&&S.showAbove?1:-1))}return v}function u(f,d){d.eachRendered(function(h){if(!Qo(h)){var v=h.getTextContent(),m=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.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"),v=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(Qo(y))return;if(y instanceof me&&kA(y),y.__dirty){var w=y.prevStates;w&&y.useStates(w)}if(v){y.stateTransition=g;var _=y.getTextContent(),S=y.getTextGuideLine();_&&(_.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&a(y)}})}M_=function(f){return new(function(d){H(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var m=v.__ecComponentInfo;if(m!=null)return f._model.getComponent(m.mainType,m.index);v=v.parent}},h.prototype.enterEmphasis=function(v,m){jo(v,m),Vt(f)},h.prototype.leaveEmphasis=function(v,m){Xo(v,m),Vt(f)},h.prototype.enterBlur=function(v){Sm(v),Vt(f)},h.prototype.leaveBlur=function(v){$f(v),Vt(f)},h.prototype.enterSelect=function(v){Cm(v),Vt(f)},h.prototype.leaveSelect=function(v){xm(v),Vt(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},h}(jy))(f)},k_=function(f){function d(h,v){for(var m=0;m<h.length;m++){var g=h[m];g[qh]=v}}k(bi,function(h,v){f._messageCenter.on(v,function(m){if(L_[f.group]&&f[qh]!==w_){if(m&&m.escapeConnect)return;var g=f.makeActionFromEvent(m),y=[];k(Si,function(w){w!==f&&w.group===f.group&&y.push(w)}),d(y,w_),k(y,function(w){w[qh]!==A5&&w.dispatchAction(g)}),d(y,M5)}})})}}(),t}(Ut),Qh=P_.prototype;Qh.on=b_("on"),Qh.off=b_("off"),Qh.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 k5=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Ct(e){process.env.NODE_ENV!=="production"&&ze("Instance "+e+" has been disposed")}var Ul={},bi={},ed=[],td=[],Yl=[],I_={},rd={},Si={},L_={},E5=+new Date-0,nd="_echarts_instance_";function P5(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=I5(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"&&ya(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 o=new P_(e,t,r);return o.id="ec_"+E5++,Si[o.id]=o,n&&Ig(e,nd,o.id),k_(o),er.trigger("afterinit",o),o}function I5(e){return Si[cD(e,nd)]}function ql(e,t){I_[e]=t}function O_(e){de(td,e)<0&&td.push(e)}function R_(e,t){od(ed,e,t,w5)}function L5(e){ad("afterinit",e)}function O5(e){ad("afterupdate",e)}function ad(e,t){er.on(e,t)}function ta(e,t,r){oe(t)&&(r=t,t="");var n=J(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!bi[t]&&(ne(__.test(n)&&__.test(t)),Ul[n]||(Ul[n]={action:r,actionInfo:e}),bi[t]=n)}function R5(e,t){bh.register(e,t)}function B5(e,t){od(Yl,e,t,g_,"layout")}function ra(e,t){od(Yl,e,t,m_,"visual")}var B_=[];function od(e,t,r,n,a){if((oe(t)||J(t))&&(r=t,t=n),process.env.NODE_ENV!=="production"){if(isNaN(t)||t==null)throw new Error("Illegal priority");k(e,function(i){ne(i.__raw!==r)})}if(!(de(B_,r)>=0)){B_.push(r);var o=z0.wrapStageHandler(r,a);o.__prio=t,o.__raw=r,e.push(o)}}function V_(e,t){rd[e]=t}function V5(e,t,r){var n=v5("registerMap");n&&n(e,t,r)}var $5=Uk;ra(Uh,wE),ra(Gl,bE),ra(Gl,SE),ra(Uh,RE),ra(Gl,BE),ra(y_,d5),O_(t0),R_(y5,Ak),V_("default",CE),ta({type:$n,event:$n,update:$n},it),ta({type:Ws,event:Ws,update:Ws},it),ta({type:Yo,event:Yo,update:Yo},it),ta({type:Us,event:Us,update:Us},it),ta({type:qo,event:qo,update:qo},it),ql("light",IE),ql("dark",LE);function Ci(e){return e==null?0:e.length||1}function $_(e){return e}var F5=function(){function e(t,r,n,a,o,i){this._old=t,this._new=r,this._oldKeyGetter=n||$_,this._newKeyGetter=a||$_,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=Ci(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,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],c=a[l],f=Ci(u),d=Ci(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(i,a)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var a=t[n],o=r[a],i=Ci(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=Ci(l);u===0?(r[s]=i,o&&n.push(s)):u===1?r[s]=[l,i]:l.push(i)}}},e}();const F_=F5;var z5=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 G5(e,t){var r={},n=r.encode={},a=se(),o=[],i=[],s={};k(e.dimensions,function(d){var h=e.getDimensionInfo(d),v=h.coordDim;if(v){process.env.NODE_ENV!=="production"&&ne(vh.get(v)==null);var m=h.coordDimIndex;id(n,v)[m]=d,h.isExtraCoord||(a.set(v,1),W5(h.type)&&(o[0]=d),id(s,v)[m]=e.getDimensionIndex(h.name)),h.defaultTooltip&&i.push(d)}vh.each(function(g,y){var w=id(n,y),_=h.otherDims[y];_!=null&&_!==!1&&(w[_]=h.name)})});var l=[],u={};a.each(function(d,h){var v=n[h];u[h]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=j(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),r.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(o=c.slice());var f=n.tooltip;return f&&f.length?i=f.slice():i.length||(i=o.slice()),n.defaultedLabel=o,n.defaultedTooltip=i,r.userOutput=new z5(s,t),r}function id(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function H5(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function W5(e){return!(e==="ordinal"||e==="time")}var jl=function(){function e(t){this.otherDims={},t!=null&&G(this,t)}return e}(),U5=De(),Y5={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},z_=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=W_(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=o0(this.source),n=!U_(t),a="",o=[],i=0,s=0;i<t;i++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===i)l=r?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(i);d&&(l=r?d.name:null,u=d.type)}o.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+=Y5[u]||"f",c&&(a+=c.uid),a+="$"}var h=this.source,v=[h.seriesLayoutBy,h.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 G_(e){return e instanceof z_}function H_(e){for(var t=se(),r=0;r<(e||[]).length;r++){var n=e[r],a=J(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,r)}return t}function W_(e){var t=U5(e);return t.dimNameMap||(t.dimNameMap=H_(e.dimensionsDefine))}function U_(e){return e>30}var xi=J,an=j,q5=typeof Int32Array>"u"?Array:Int32Array,j5="e\0\0",Y_=-1,X5=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Z5=["_approximateExtent"],q_,Xl,Ti,no,sd,Zl,ld,Ni=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;G_(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={},c=0;c<n.length;c++){var f=n[c],d=X(f)?new jl({name:f}):f instanceof jl?f:new jl(f),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var v=d.otherDims=d.otherDims||{};i.push(h),o[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),v.itemName===0&&(this._nameDimIdx=c),v.itemId===0&&(this._idDimIdx=c),process.env.NODE_ENV!=="production"&&ne(a||d.storeDimIndex>=0),a&&(d.storeDimIndex=c)}if(this.dimensions=i,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var m=this._dimIdxToName=se();k(i,function(g){m.set(o[g].storeDimIndex,g)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var a=this._schema.getSourceDimension(r);if(a)return a.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(xe(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);if(process.env.NODE_ENV!=="production"&&r==null)throw new Error("Unknown dimension "+t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var a=n.encode[t];return a?a[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var a=this,o;if(t instanceof Eh&&(o=t),!o){var i=this.dimensions,s=xh(t)||at(t)?new l0(t,i.length):t;o=new Eh;var l=an(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=G5(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&&ld(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!==Ar&&!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===Ot;if(l&&!a.pure)for(var u=[],c=t;c<r;c++){var f=a.getItem(c,u);if(!this.hasItemOption&&JN(f)&&(this.hasItemOption=!0),f){var d=f.name;o[c]==null&&d!=null&&(o[c]=sr(d,null));var h=f.id;i[c]==null&&h!=null&&(i[c]=sr(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<r;c++)ld(this,c);q_(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){xi(t)?G(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Ti(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 Xl(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(an(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)?Y_:a},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){oe(t)&&(n=r,r=t,t=[]);var a=n||this,o=an(no(t),this._getStoreDimIndex,this);this._store.each(o,a?te(r,a):r)},e.prototype.filterSelf=function(t,r,n){oe(t)&&(n=r,r=t,t=[]);var a=n||this,o=an(no(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,a?te(r,a):r),this},e.prototype.selectRange=function(t){var r=this,n={},a=ye(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){oe(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=an(no(t),this._getStoreDimIndex,this),s=Zl(this);return s._store=this._store.map(i,o?te(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(no(t),function(l){var u=o.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=an(no(t),this._getStoreDimIndex,this);this._store.modify(s,i?te(r,i):r)},e.prototype.downSample=function(t,r,n,a){var o=Zl(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),r,n,a),o},e.prototype.lttbDownSample=function(t,r){var n=Zl(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 F_(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Xl(t,n)},function(n){return Xl(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||{},xi(t)?G(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],a=n&&n[r];return a??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var o=a[r];return o==null&&(o=this.getVisual(r),U(o)?o=o.slice():xi(o)&&(o=G({},o)),a[r]=o),o},e.prototype.setItemVisual=function(t,r,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,xi(r)?G(a,r):a[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){xi(t)?G(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?G(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;hA(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:an(this.dimensions,this._getDimInfo,this),this.hostModel)),sd(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];oe(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(gc(arguments)))})},e.internalField=function(){q_=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 q5(i.categories.length);for(var l=0;l<n.length;l++)n[l]=Y_;for(var l=0;l<s.count();l++)n[s.get(o.storeDimIndex,l)]=l}})},Ti=function(t,r,n){return sr(t._getCategory(r,n),null)},Xl=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Ti(t,t._idDimIdx,r)),n==null&&(n=j5+r),n},no=function(t){return U(t)||(t=t!=null?[t]:[]),t},Zl=function(t){var r=new e(t._schema?t._schema:an(t.dimensions,t._getDimInfo,t),t.hostModel);return sd(r,t),r},sd=function(t,r){k(X5.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,k(Z5,function(n){t[n]=fe(r[n])}),t._calculationInfo=G({},r._calculationInfo)},ld=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=Ti(t,o,r)),l==null&&i!=null&&(a[r]=l=Ti(t,i,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 j_(e,t){xh(e)||(e=Nh(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],a=se(),o=[],i=J5(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&U_(i),l=n===e.dimensionsDefine,u=l?W_(e):H_(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,i));for(var f=se(c),d=new y0(i),h=0;h<d.length;h++)d[h]=-1;function v(T){var M=d[T];if(M<0){var D=n[T],A=J(D)?D:{name:D},P=new jl,E=A.name;E!=null&&u.get(E)!=null&&(P.name=P.displayName=E),A.type!=null&&(P.type=A.type),A.displayName!=null&&(P.displayName=A.displayName);var I=o.length;return d[T]=I,P.storeDimIndex=T,o.push(P),P}return o[M]}if(!s)for(var h=0;h<i;h++)v(h);f.each(function(T,M){var D=We(T).slice();if(D.length===1&&!X(D[0])&&D[0]<0){f.set(M,!1);return}var A=f.set(M,[]);k(D,function(P,E){var I=X(P)?u.get(P):P;I!=null&&I<i&&(A[E]=I,g(v(I),M,E))})});var m=0;k(r,function(T){var M,D,A,P;if(X(T))M=T,P={};else{P=T,M=P.name;var E=P.ordinalMeta;P.ordinalMeta=null,P=G({},P),P.ordinalMeta=E,D=P.dimsDef,A=P.otherDims,P.name=P.coordDim=P.coordDimIndex=P.dimsDef=P.otherDims=null}var I=f.get(M);if(I!==!1){if(I=We(I),!I.length)for(var L=0;L<(D&&D.length||1);L++){for(;m<i&&v(m).coordDim!=null;)m++;m<i&&I.push(m++)}k(I,function(R,B){var V=v(R);if(l&&P.type!=null&&(V.type=P.type),g(pe(V,P),M,B),V.name==null&&D){var W=D[B];!J(W)&&(W={name:W}),V.name=V.displayName=W.name,V.defaultTooltip=W.defaultTooltip}A&&pe(V.otherDims,A)})}});function g(T,M,D){vh.get(M)!=null?T.otherDims[M]=D:(T.coordDim=M,T.coordDimIndex=D,a.set(M,!0))}var y=t.generateCoord,w=t.generateCoordCount,_=w!=null;w=y?w||1:0;var S=y||"value";function x(T){T.name==null&&(T.name=T.coordDim)}if(s)k(o,function(T){x(T)}),o.sort(function(T,M){return T.storeDimIndex-M.storeDimIndex});else for(var C=0;C<i;C++){var N=v(C),b=N.coordDim;b==null&&(N.coordDim=Q5(S,a,_),N.coordDimIndex=0,(!y||w<=0)&&(N.isExtraCoord=!0),w--),x(N),N.type==null&&(Fy(e,C)===je.Must||N.isExtraCoord&&(N.otherDims.itemName!=null||N.otherDims.seriesName!=null))&&(N.type="ordinal")}return K5(o),new z_({source:e,dimensions:o,fullDimensionCount:i,dimensionOmitted:s})}function K5(e){for(var t=se(),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 J5(e,t,r,n){var a=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return k(t,function(o){var i;J(o)&&(i=o.dimsDef)&&(a=Math.max(a,i.length))}),a}function Q5(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 eP=function(){function e(t){this.coordSysDims=[],this.axisMap=se(),this.categoryAxisMap=se(),this.coordSysName=t}return e}();function tP(e){var t=e.get("coordinateSystem"),r=new eP(t),n=rP[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var rP={cartesian2d:function(e,t,r,n){var a=e.getReferringComponents("xAxis",pt).models[0],o=e.getReferringComponents("yAxis",pt).models[0];if(process.env.NODE_ENV!=="production"){if(!a)throw new Error('xAxis "'+Wr(e.get("xAxisIndex"),e.get("xAxisId"),0)+'" not found');if(!o)throw new Error('yAxis "'+Wr(e.get("xAxisIndex"),e.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],r.set("x",a),r.set("y",o),ao(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),ao(o)&&(n.set("y",o),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),ao(a)&&(n.set("single",a),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var a=e.getReferringComponents("polar",pt).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),ao(o)&&(n.set("radius",o),t.firstCategoryDimIndex=0),ao(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),c=i[l];r.set(c,u),ao(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function ao(e){return e.get("type")==="category"}function nP(e,t,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,o,i,s;aP(t)?o=t:(i=t.schema,o=i.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(k(o,function(w,_){X(w)&&(o[_]=w={name:w}),l&&!w.isExtraCoord&&(!n&&!u&&w.ordinalMeta&&(u=w),!c&&w.type!=="ordinal"&&w.type!=="time"&&(!a||a===w.coordDim)&&(c=w))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,v=c.type,m=0;k(o,function(w){w.coordDim===h&&m++});var g={name:f,coordDim:h,coordDimIndex:m,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},y={name:d,coordDim:d,coordDimIndex:m+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};i?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,v),y.storeDimIndex=s.ensureCalculationDimension(f,v)),i.appendCalculationDimension(g),i.appendCalculationDimension(y)):(o.push(g),o.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function aP(e){return!G_(e.schema)}function na(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function X_(e,t){return na(e,t)?e.getCalculationInfo("stackResultDimension"):t}function oP(e,t){var r=e.get("coordinateSystem"),n=bh.get(r),a;return t&&t.coordSysDims&&(a=j(t.coordSysDims,function(o){var i={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");i.type=H5(l)}return i})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function iP(e,t,r){var n,a;return r&&k(e,function(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 Kl(e,t,r){r=r||{};var n=t.getSourceManager(),a,o=!1;e?(o=!0,a=Nh(e)):(a=n.getSource(),o=a.sourceFormat===Ot);var i=tP(t),s=oP(t,i),l=r.useEncodeDefaulter,u=oe(l)?l:l?Se(QM,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},f=j_(a,c),d=iP(f.dimensions,r.createInvertedIndices,i),h=o?null:n.getSharedDataStore(f),v=nP(t,{schema:f,store:h}),m=new Ni(f,t);m.setCalculationInfo(v);var g=d!=null&&sP(a)?function(y,w,_,S){return S===d?_:this.defaultDimValueGetter(y,w,_,S)}:null;return m.hasItemOption=!1,m.initData(o?a:h,null,g),m}function sP(e){if(e.sourceFormat===Ot){var t=lP(e.data||[]);return!U(Fo(t))}}function lP(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var pr=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}();Ls(pr);var uP=0,ud=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&&j(n,cP);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=se(this.categories))},e}();function cP(e){return J(e)&&e.value!=null?e.value:e+""}function fP(e){var t=Math.pow(10,Ms(Math.abs(e))),r=Math.abs(e/t);return r===0||r===1||r===2||r===3||r===5}function cd(e){return e.type==="interval"||e.type==="log"}function hP(e,t,r,n){var a={},o=e[1]-e[0],i=a.interval=bg(o/t,!0);r!=null&&i<r&&(i=a.interval=r),n!=null&&i>n&&(i=a.interval=n);var s=a.intervalPrecision=Z_(i),l=a.niceTickExtent=[Ve(Math.ceil(e[0]/i)*i,s),Ve(Math.floor(e[1]/i)*i,s)];return dP(l,e),a}function fd(e){var t=Math.pow(10,Ms(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Ve(r*t)}function Z_(e){return ir(e)+2}function K_(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function dP(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),K_(e,0,t),K_(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Jl(e,t){return e>=t[0]&&e<=t[1]}function Ql(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 J_=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new ud({})),U(a)&&(a=new ud({categories:j(a,function(o){return J(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:X(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),Jl(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Ql(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=[],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 c=0;i<s;++i){for(;o[c]!=null;)c++;a.push(c),o[c]=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}(pr);pr.registerClass(J_);const Q_=J_;var aa=Ve,e1=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return Jl(r,this._extent)},t.prototype.normalize=function(r){return Ql(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=Z_(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:aa(o[0]-n,i)}):s.push({value:a[0]}));for(var u=o[0];u<=o[1]&&(s.push({value:u}),u=aa(u+n,i),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:o[1];return a[1]>c&&(r?s.push({value:aa(c+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,c=[],f=s.value-l.value,d=f/r;u<r-1;){var h=aa(l.value+(u+1)*d);h>o[0]&&h<o[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=ir(r.value)||0:a==="auto"&&(a=this._intervalPrecision);var o=aa(r.value,a,!0);return Py(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=hP(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]=aa(Math.floor(n[0]/i)*i)),r.fixMax||(n[1]=aa(Math.ceil(n[1]/i)*i))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(pr);pr.registerClass(e1);const Di=e1;var t1=typeof Float32Array<"u",pP=t1?Float32Array:Array;function Ir(e){return U(e)?t1?new Float32Array(e):e:new pP(e)}var hd="__ec_stack_";function dd(e){return e.get("stack")||hd+e.seriesIndex}function pd(e){return e.dim+e.index}function vP(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(pe({bandWidth:a,axisKey:n,stackId:hd+o},e));for(var i=a1(t),s=[],o=0;o<e.count;o++){var l=i[n][hd+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function r1(e,t){var r=[];return t.eachSeriesByType(e,function(n){o1(n)&&r.push(n)}),r}function gP(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)),v=f.getStore(),m=0,g=v.count();m<g;++m){var y=v.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 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 n1(e){var t=gP(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],c=Math.abs(i[1]-i[0]),f=o.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=n.getData();s=Math.abs(i[1]-i[0])/h.count()}var v=Te(n.get("barWidth"),s),m=Te(n.get("barMaxWidth"),s),g=Te(n.get("barMinWidth")||(i1(n)?.5:1),s),y=n.get("barGap"),w=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:m,barMinWidth:g,barGap:y,barCategoryGap:w,axisKey:pd(o),stackId:dd(n)})}),a1(r)}function a1(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 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 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=ye(o).length;s=Math.max(35-l*4,15)+"%"}var u=Te(s,i),c=Te(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),k(o,function(y){var w=y.maxWidth,_=y.minWidth;if(y.width){var S=y.width;w&&(S=Math.min(S,w)),_&&(S=Math.max(S,_)),y.width=S,f-=S+c*S,d--}else{var S=h;w&&w<S&&(S=Math.min(w,f)),_&&_>S&&(S=_),S!==h&&(y.width=S,f-=S+c*S,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var v=0,m;k(o,function(y,w){y.width||(y.width=h),m=y,v+=y.width*(1+c)}),m&&(v-=m.width*c);var g=-v/2;k(o,function(y,w){r[a][w]=r[a][w]||{bandWidth:i,offset:g,width:y.width},g+=y.width*(1+c)})}),r}function mP(e,t,r){if(e&&t){var n=e[pd(t)];return n!=null&&r!=null?n[dd(r)]:n}}function yP(e,t){var r=r1(e,t),n=n1(r);k(r,function(a){var o=a.getData(),i=a.coordinateSystem,s=i.getBaseAxis(),l=dd(a),u=n[pd(s)][l],c=u.offset,f=u.width;o.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function _P(e){return{seriesType:e,plan:Bh(),reset:function(t){if(o1(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),c=r.getCalculationInfo("stackResultDimension"),f=na(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=o.isHorizontal(),h=wP(a,o),v=i1(t),m=t.get("barMinHeight")||0,g=c&&r.getDimensionIndex(c),y=r.getLayout("size"),w=r.getLayout("offset");return{progress:function(_,S){for(var x=_.count,C=v&&Ir(x*3),N=v&&l&&Ir(x*3),b=v&&Ir(x),T=n.master.getRect(),M=d?T.width:T.height,D,A=S.getStore(),P=0;(D=_.next())!=null;){var E=A.get(f?g:i,D),I=A.get(s,D),L=h,R=void 0;f&&(R=+E-A.get(i,D));var B=void 0,V=void 0,W=void 0,q=void 0;if(d){var Q=n.dataToPoint([E,I]);if(f){var ue=n.dataToPoint([R,I]);L=ue[0]}B=L,V=Q[1]+w,W=Q[0]-L,q=y,Math.abs(W)<m&&(W=(W<0?-1:1)*m)}else{var Q=n.dataToPoint([I,E]);if(f){var ue=n.dataToPoint([I,R]);L=ue[1]}B=Q[0]+w,V=L,W=y,q=Q[1]-L,Math.abs(q)<m&&(q=(q<=0?-1:1)*m)}v?(C[P]=B,C[P+1]=V,C[P+2]=d?W:q,N&&(N[P]=d?T.x:B,N[P+1]=d?V:T.y,N[P+2]=M),b[D]=D):S.setItemLayout(D,{x:B,y:V,width:W,height:q}),P+=3}v&&S.setLayout({largePoints:C,largeDataIndices:b,largeBackgroundPoints:N,valueAxisHorizontal:d})}}}}}}function o1(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function i1(e){return e.pipelineContext&&e.pipelineContext.large}function wP(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var bP=function(e,t,r,n){for(;r<n;){var a=r+n>>>1;e[a][1]<t?r=a+1:n=a}return r},s1=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return pl(r.value,Sy[HM(Ya(this._minLevelUnit))]||Sy.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,a){var o=this.getSetting("useUTC"),i=this.getSetting("locale");return WM(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=AP(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]-=Lt,n[1]+=Lt),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]-Lt}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=tu.length,l=Math.min(bP(tu,this._approxInterval,0,s),s-1);this._interval=tu[l][1],this._minLevelUnit=tu[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return xe(r)?r:+Tr(r)},t.prototype.contain=function(r){return Jl(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Ql(this.parse(r),this._extent)},t.prototype.scale=function(r){return eu(r,this._extent)},t.type="time",t}(Di),tu=[["second",lh],["minute",uh],["hour",ri],["quarter-day",ri*6],["half-day",ri*12],["day",Lt*1.2],["half-week",Lt*3.5],["week",Lt*7],["month",Lt*31],["quarter",Lt*95],["half-year",by/2],["year",by]];function SP(e,t,r,n){var a=Tr(t),o=Tr(r),i=function(v){return Ty(a,v,n)===Ty(o,v,n)},s=function(){return i("year")},l=function(){return s()&&i("month")},u=function(){return l()&&i("day")},c=function(){return u()&&i("hour")},f=function(){return c()&&i("minute")},d=function(){return f()&&i("second")},h=function(){return d()&&i("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 CP(e,t){return e/=Lt,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function xP(e){var t=30*Lt;return e/=t,e>6?6:e>3?3:e>2?2:1}function TP(e){return e/=ri,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function l1(e,t){return e/=t?uh:lh,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function NP(e){return bg(e,!0)}function DP(e,t,r){var n=new Date(e);switch(Ya(t)){case"year":case"month":n[Ny(r)](0);case"day":n[Dy(r)](1);case"hour":n[Ay(r)](0);case"minute":n[My(r)](0);case"second":n[ky(r)](0),n[Ey(r)](0)}return n.getTime()}function AP(e,t,r,n){var a=1e4,o=Cy,i=0;function s(M,D,A,P,E,I,L){for(var R=new Date(D),B=D,V=R[P]();B<A&&B<=n[1];)L.push({value:B}),V+=M,R[E](V),B=R.getTime();L.push({value:B,notAdd:!0})}function l(M,D,A){var P=[],E=!D.length;if(!SP(Ya(M),n[0],n[1],r)){E&&(D=[{value:DP(new Date(n[0]),M,r)},{value:n[1]}]);for(var I=0;I<D.length-1;I++){var L=D[I].value,R=D[I+1].value;if(L!==R){var B=void 0,V=void 0,W=void 0,q=!1;switch(M){case"year":B=Math.max(1,Math.round(t/Lt/365)),V=fh(r),W=UM(r);break;case"half-year":case"quarter":case"month":B=xP(t),V=qa(r),W=Ny(r);break;case"week":case"half-week":case"day":B=CP(t),V=vl(r),W=Dy(r),q=!0;break;case"half-day":case"quarter-day":case"hour":B=TP(t),V=ai(r),W=Ay(r);break;case"minute":B=l1(t,!0),V=gl(r),W=My(r);break;case"second":B=l1(t,!1),V=ml(r),W=ky(r);break;case"millisecond":B=NP(t),V=yl(r),W=Ey(r);break}s(B,L,R,V,W,q,P),M==="year"&&A.length>1&&I===0&&A.unshift({value:A[0].value-B})}}for(var I=0;I<P.length;I++)A.push(P[I]);return P}}for(var u=[],c=[],f=0,d=0,h=0;h<o.length&&i++<a;++h){var v=Ya(o[h]);if(GM(o[h])){l(o[h],u[u.length-1]||[],c);var m=o[h+1]?Ya(o[h+1]):null;if(v!==m){if(c.length){d=f,c.sort(function(M,D){return M.value-D.value});for(var g=[],y=0;y<c.length;++y){var w=c[y].value;(y===0||c[y-1].value!==w)&&(g.push(c[y]),w>=n[0]&&w<=n[1]&&f++)}var _=(n[1]-n[0])/t;if(f>_*1.5&&d>_/1.5||(u.push(g),f>_||e===o[h]))break}c=[]}}}process.env.NODE_ENV!=="production"&&i>=a&&ze("Exceed safe limit.");for(var S=Ye(j(u,function(M){return Ye(M,function(D){return D.value>=n[0]&&D.value<=n[1]&&!D.notAdd})}),function(M){return M.length>0}),x=[],C=S.length-1,h=0;h<S.length;++h)for(var N=S[h],b=0;b<N.length;++b)x.push({value:N[b].value,level:C-h});x.sort(function(M,D){return M.value-D.value});for(var T=[],h=0;h<x.length;++h)(h===0||x[h].value!==x[h-1].value)&&T.push(x[h]);return T}pr.registerClass(s1);const MP=s1;var u1=pr.prototype,Ai=Di.prototype,kP=Ve,EP=Math.floor,PP=Math.ceil,ru=Math.pow,tr=Math.log,vd=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Di,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,a=this._extent,o=n.getExtent(),i=Ai.getTicks.call(this,r);return j(i,function(s){var l=s.value,u=Ve(ru(this.base,l));return u=l===a[0]&&this._fixMin?nu(u,o[0]):u,u=l===a[1]&&this._fixMax?nu(u,o[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var a=tr(this.base);r=tr(Math.max(0,r))/a,n=tr(Math.max(0,n))/a,Ai.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=u1.getExtent.call(this);n[0]=ru(r,n[0]),n[1]=ru(r,n[1]);var a=this._originalScale,o=a.getExtent();return this._fixMin&&(n[0]=nu(n[0],o[0])),this._fixMax&&(n[1]=nu(n[1],o[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=tr(r[0])/tr(n),r[1]=tr(r[1])/tr(n),u1.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=qN(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(PP(n[0]/o)*o),Ve(EP(n[1]/o)*o)];this._interval=o,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Ai.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=tr(r)/tr(this.base),Jl(r,this._extent)},t.prototype.normalize=function(r){return r=tr(r)/tr(this.base),Ql(r,this._extent)},t.prototype.scale=function(r){return r=eu(r,this._extent),ru(this.base,r)},t.type="log",t}(pr),c1=vd.prototype;c1.getMinorTicks=Ai.getMinorTicks,c1.getLabel=Ai.getLabel;function nu(e,t){return kP(e,ir(t))}pr.registerClass(vd);const IP=vd;var LP=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);oe(o)?this._modelMinNum=au(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=au(t,o));var i=this._modelMaxRaw=r.get("max",!0);if(oe(i)?this._modelMaxNum=au(t,i({min:n[0],max:n[1]})):i!=="dataMax"&&(this._modelMaxNum=au(t,i)),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=[Xr(l[0],1),Xr(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,c=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 f=_a(s)||_a(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[RP[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=OP[t];process.env.NODE_ENV!=="production"&&ne(!this.frozen&&this[n]==null),this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),OP={min:"_determinedMin",max:"_determinedMax"},RP={min:"_dataMin",max:"_dataMax"};function f1(e,t,r){var n=e.rawExtentInfo;return n||(n=new LP(e,t,r),e.rawExtentInfo=n,n)}function au(e,t){return t==null?null:_a(t)?NaN:e.parse(t)}function h1(e,t){var r=e.type,n=f1(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=r1("bar",i),l=!1;if(k(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=n1(s),c=BP(a,o,t,u);a=c.min,o=c.max}}return{extent:[a,o],fixMin:n.minFixed,fixMax:n.maxFixed}}function BP(e,t,r,n){var a=r.axis.getExtent(),o=a[1]-a[0],i=mP(n,r.axis);if(i===void 0)return{min:e,max:t};var s=1/0;k(i,function(h){s=Math.min(h.offset,s)});var l=-1/0;k(i,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)/o,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function d1(e,t){var r=t,n=h1(e,r),a=n.extent,o=r.get("splitNumber");e instanceof IP&&(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 VP(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Q_({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new MP({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(pr.getClass(t)||Di)}}function $P(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Mi(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):X(t)?function(n){return function(a){var o=e.scale.getLabel(a),i=n.replace("{value}",o??"");return i}}(t):oe(t)?function(n){return function(a,o){return r!=null&&(o=a.value-r),n(gd(e,a),o,a.level!=null?{level:a.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function gd(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function FP(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,a,o=r.getExtent();r instanceof Q_?a=r.count():(n=r.getTicks(),a=n.length);var i=e.getLabelModel(),s=Mi(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:o[0]+c},d=s(f,c),h=i.getTextRect(d),v=zP(h,i.get("rotate")||0);l?l.union(v):l=v}return l}}function zP(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 _e(e.x,e.y,o,i);return s}function md(e){var t=e.get("interval");return t??"auto"}function p1(e){return e.type==="category"&&md(e.getLabelModel())===0}function v1(e,t){var r={};return k(e.mapDimensionsAll(t),function(n){r[X_(e,n)]=!0}),ye(r)}function GP(e,t,r){t&&k(v1(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 HP=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),g1=[],WP={registerPreprocessor:O_,registerProcessor:R_,registerPostInit:L5,registerPostUpdate:O5,registerUpdateLifecycle:ad,registerAction:ta,registerCoordinateSystem:R5,registerLayout:B5,registerVisual:ra,registerTransform:$5,registerLoading:V_,registerMap:V5,registerImpl:p5,PRIORITY:D5,ComponentModel:Ne,ComponentView:Jt,SeriesModel:Er,ChartView:Qt,registerComponentModel:function(e){Ne.registerClass(e)},registerComponentView:function(e){Jt.registerClass(e)},registerSeriesModel:function(e){Er.registerClass(e)},registerChartView:function(e){Qt.registerClass(e)},registerSubTypeDefaulter:function(e,t){Ne.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){GN(e,t)}};function vr(e){if(U(e)){k(e,function(t){vr(t)});return}de(g1,e)>=0||(g1.push(e),oe(e)&&(e={install:e}),e.install(WP))}var ki=De();function UP(e){return e.type==="category"?qP(e):XP(e)}function YP(e,t){return e.type==="category"?jP(e,t):{ticks:j(e.scale.getTicks(),function(r){return r.value})}}function qP(e){var t=e.getLabelModel(),r=m1(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function m1(e,t){var r=y1(e,"labels"),n=md(t),a=_1(r,n);if(a)return a;var o,i;return oe(n)?o=S1(e,n):(i=n==="auto"?ZP(e):n,o=b1(e,i)),w1(r,n,{labels:o,labelCategoryInterval:i})}function jP(e,t){var r=y1(e,"ticks"),n=md(t),a=_1(r,n);if(a)return a;var o,i;if((!t.get("show")||e.scale.isBlank())&&(o=[]),oe(n))o=S1(e,n,!0);else if(n==="auto"){var s=m1(e,e.getLabelModel());i=s.labelCategoryInterval,o=j(s.labels,function(l){return l.tickValue})}else i=n,o=b1(e,i,!0);return w1(r,n,{ticks:o,tickCategoryInterval:i})}function XP(e){var t=e.scale.getTicks(),r=Mi(e);return{labels:j(t,function(n,a){return{level:n.level,formattedLabel:r(n,a),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function y1(e,t){return ki(e)[t]||(ki(e)[t]=[])}function _1(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function w1(e,t,r){return e.push({key:t,value:r}),r}function ZP(e){var t=ki(e).autoInterval;return t??(ki(e).autoInterval=e.calculateCategoryInterval())}function KP(e){var t=JP(e),r=Mi(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),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),d=0,h=0;l<=o[1];l+=s){var v=0,m=0,g=sf(r({value:l}),t.font,"center","top");v=g.width*1.3,m=g.height*1.3,d=Math.max(d,v,7),h=Math.max(h,m,7)}var y=d/c,w=h/f;isNaN(y)&&(y=1/0),isNaN(w)&&(w=1/0);var _=Math.max(0,Math.floor(Math.min(y,w))),S=ki(e.model),x=e.getExtent(),C=S.lastAutoInterval,N=S.lastTickCount;return C!=null&&N!=null&&Math.abs(C-_)<=1&&Math.abs(N-i)<=1&&C>_&&S.axisExtent0===x[0]&&S.axisExtent1===x[1]?_=C:(S.lastTickCount=i,S.lastAutoInterval=_,S.axisExtent0=x[0],S.axisExtent1=x[1]),_}function JP(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 b1(e,t,r){var n=Mi(e),a=e.scale,o=a.getExtent(),i=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=o[0],c=a.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=p1(e),d=i.get("showMinLabel")||f,h=i.get("showMaxLabel")||f;d&&u!==o[0]&&m(o[0]);for(var v=u;v<=o[1];v+=l)m(v);h&&v-l!==o[1]&&m(o[1]);function m(g){var y={value:g};s.push(r?g:{formattedLabel:n(y),rawLabel:a.getLabel(y),tickValue:g})}return s}function S1(e,t,r){var n=e.scale,a=Mi(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 C1=[0,1],QP=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 _g(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(),x1(n,a.count())),qe(t,C1,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),x1(n,a.count()));var o=qe(t,n,C1,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=YP(this,r),a=n.ticks,o=j(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),i=r.get("alignWithLabel");return eI(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=j(n,function(o){return j(o,function(i){return{coord:this.dataToCoord(i),tickValue:i}},this)},this);return a},e.prototype.getViewLabels=function(){return UP(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 KP(this)},e}();function x1(e,t){var r=e[1]-e[0],n=t,a=r/n/2;e[0]+=a,e[1]-=a}function eI(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(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[a-1].tickValue,i={coord:t[a-1].coord+u*s},t.push(i)}var f=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(h,v){return h=Ve(h),v=Ve(v),f?h>v:h<v}}const tI=QP;function T1(e,t,r,n,a,o,i,s){var l=a-e,u=o-t,c=r-e,f=n-t,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var h=l*c+u*f,v=h/d;s&&(v=Math.min(Math.max(v,0),1)),v*=d;var m=i[0]=e+v*c,g=i[1]=t+v*f;return Math.sqrt((m-a)*(m-a)+(g-o)*(g-o))}var on=new le,Re=new le,Xe=new le,sn=new le,gr=new le,ou=[],ct=new le;function rI(e,t){if(t<=180&&t>0){t=t/180*Math.PI,on.fromArray(e[0]),Re.fromArray(e[1]),Xe.fromArray(e[2]),le.sub(sn,on,Re),le.sub(gr,Xe,Re);var r=sn.len(),n=gr.len();if(!(r<.001||n<.001)){sn.scale(1/r),gr.scale(1/n);var a=sn.dot(gr),o=Math.cos(t);if(o<a){var i=T1(Re.x,Re.y,Xe.x,Xe.y,on.x,on.y,ou,!1);ct.fromArray(ou),ct.scaleAndAdd(gr,i/Math.tan(Math.PI-t));var s=Xe.x!==Re.x?(ct.x-Re.x)/(Xe.x-Re.x):(ct.y-Re.y)/(Xe.y-Re.y);if(isNaN(s))return;s<0?le.copy(ct,Re):s>1&&le.copy(ct,Xe),ct.toArray(e[1])}}}}function nI(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,on.fromArray(e[0]),Re.fromArray(e[1]),Xe.fromArray(e[2]),le.sub(sn,Re,on),le.sub(gr,Xe,Re);var n=sn.len(),a=gr.len();if(!(n<.001||a<.001)){sn.scale(1/n),gr.scale(1/a);var o=sn.dot(t),i=Math.cos(r);if(o<i){var s=T1(Re.x,Re.y,Xe.x,Xe.y,on.x,on.y,ou,!1);ct.fromArray(ou);var l=Math.PI/2,u=Math.acos(gr.dot(t)),c=l+u-r;if(c>=l)le.copy(ct,Xe);else{ct.scaleAndAdd(gr,s/Math.tan(Math.PI/2-c));var f=Xe.x!==Re.x?(ct.x-Re.x)/(Xe.x-Re.x):(ct.y-Re.y)/(Xe.y-Re.y);if(isNaN(f))return;f<0?le.copy(ct,Re):f>1&&le.copy(ct,Xe)}ct.toArray(e[1])}}}}function yd(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 aI(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=bc(n[0],n[1]),o=bc(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=Sc([],n[1],n[0],i/a),l=Sc([],n[1],n[2],i/o),u=Sc([],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 oI(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<Hs.length;l++){var u=Hs[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,i)){var v=f?n:n&&n.states[u];v&&(v.ignore=!0),n&&yd(n,!0,u,c);continue}n||(n=new Ga,e.setTextGuideLine(n),!f&&(s||!i)&&yd(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),yd(n,!1,u,c)}}if(n){pe(n.style,r),n.style.fill=null;var m=o.get("showAbove"),g=e.textGuideLineConfig=e.textGuideLineConfig||{};g.showAbove=m||!1,n.buildPath=aI}}function iI(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<vt.length;n++){var a=vt[n];r[a]=e.getModel([a,t])}return r}function sI(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 c=s?new el(i,o):null;t.push({label:a,labelLine:n.labelLine,rect:u,localRect:i,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:o})}}return t}function lI(e,t,r,n,a,o){var i=e.length;if(i<2)return;e.sort(function(b,T){return b.rect[t]-T.rect[t]});for(var s=0,l,u=!1,c=0,f=0;f<i;f++){var d=e[f],h=d.rect;l=h[t]-s,l<0&&(h[t]-=l,d.label[t]-=l,u=!0);var v=Math.max(-l,0);c+=v,s=h[t]+h[r]}c>0&&o&&x(-c/i,0,i);var m=e[0],g=e[i-1],y,w;_(),y<0&&C(-y,.8),w<0&&C(w,.8),_(),S(y,w,1),S(w,y,-1),_(),y<0&&N(-y),w<0&&N(w);function _(){y=m.rect[t]-n,w=a-g.rect[t]-g.rect[r]}function S(b,T,M){if(b<0){var D=Math.min(T,-b);if(D>0){x(D*M,0,i);var A=D+b;A<0&&C(-A*M,1)}else C(-b*M,1)}}function x(b,T,M){b!==0&&(u=!0);for(var D=T;D<M;D++){var A=e[D],P=A.rect;P[t]+=b,A.label[t]+=b}}function C(b,T){for(var M=[],D=0,A=1;A<i;A++){var P=e[A-1].rect,E=Math.max(e[A].rect[t]-P[t]-P[r],0);M.push(E),D+=E}if(D){var I=Math.min(Math.abs(b)/D,T);if(b>0)for(var A=0;A<i-1;A++){var L=M[A]*I;x(L,0,A+1)}else for(var A=i-1;A>0;A--){var L=M[A-1]*I;x(-L,A,i)}}}function N(b){var T=b<0?-1:1;b=Math.abs(b);for(var M=Math.ceil(b/(i-1)),D=0;D<i-1;D++)if(T>0?x(M,0,D+1):x(-M,i-D-1,i),b-=M,b<=0)return}return u}function uI(e,t,r,n){return lI(e,"y","height",t,r,n)}function cI(e){var t=[];e.sort(function(m,g){return g.priority-m.priority});var r=new _e(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 o=e[a],i=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;r.copy(o.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var f=o.obb,d=!1,h=0;h<t.length;h++){var v=t[h];if(r.intersect(v.rect)){if(i&&v.axisAligned){d=!0;break}if(v.obb||(v.obb=new el(v.localRect,v.transform)),f||(f=new el(s,l)),f.intersect(v.obb)){d=!0;break}}}d?(n(u),c&&n(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}var fI=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){if(process.env.NODE_ENV!=="production"){var n=r.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return Kl(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new Oe,a=Pr("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=Pr(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"?i: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}(Er);const hI=fI;function Ei(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var a=Ja(e,t,r[0]);return a!=null?a+"":null}else if(n){for(var o=[],i=0;i<r.length;i++)o.push(Ja(e,t,r[i]));return o.join(" ")}}function N1(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!U(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 _d=function(e){H(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=Pr(r,-1,-1,2,2,null,i);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=dI,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(){jo(this.childAt(0))},t.prototype.downplay=function(){Xo(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,c=o&&o.disableAnimation;if(u){var f=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(i,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):Qe(d,h,s,n),Qf(d)}if(this._updateCommon(r,n,l,a,o),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,St(d,h,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,a,o,i){var s=this.childAt(0),l=r.hostModel,u,c,f,d,h,v,m,g,y;if(o&&(u=o.emphasisItemStyle,c=o.blurItemStyle,f=o.selectItemStyle,d=o.focus,h=o.blurScope,m=o.labelStatesModels,g=o.hoverScale,y=o.cursorStyle,v=o.emphasisDisabled),!o||r.hasItemOption){var w=o&&o.itemModel?o.itemModel:r.getItemModel(n),_=w.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=w.getModel(["select","itemStyle"]).getItemStyle(),c=w.getModel(["blur","itemStyle"]).getItemStyle(),d=_.get("focus"),h=_.get("blurScope"),v=_.get("disabled"),m=Un(w),g=_.getShallow("scale"),y=w.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var x=Ol(r.getItemVisual(n,"symbolOffset"),a);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var C=r.getItemVisual(n,"style"),N=C.fill;if(s instanceof Qr){var b=s.style;s.useStyle(G({image:b.image,x:b.x,y:b.y,width:b.width,height:b.height},C))}else s.__isEmptyBrush?s.useStyle(G({},C)):s.useStyle(C),s.style.decal=null,s.setColor(N,i&&i.symbolInnerColor),s.style.strokeNoScale=!0;var T=r.getItemVisual(n,"liftZ"),M=this._z2;T!=null?M==null&&(this._z2=s.z2,s.z2+=T):M!=null&&(s.z2=M,this._z2=null);var D=i&&i.useNameLabel;Wa(s,m,{labelFetcher:l,labelDataIndex:n,defaultText:A,inheritColor:N,defaultOpacity:C.opacity});function A(I){return D?r.getName(I):Ei(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),Fn(this,d,h,v)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,a){var o=this.childAt(0),i=ge(this).dataIndex,s=a&&a.animation;if(this.silent=o.silent=!0,a&&a.fadeLabel){var l=o.getTextContent();l&&tl(l,{style:{opacity:0}},n,{dataIndex:i,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();tl(o,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:i,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return zh(r.getItemVisual(n,"symbolSize"))},t}(Oe);function dI(e,t){this.parent.drift(e,t)}function wd(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 D1(e){return e!=null&&!J(e)&&(e={isIgnore:e}),e||{}}function A1(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:Un(t),cursorStyle:t.get("cursor")}}var pI=function(){function e(t){this.group=new Oe,this._SymbolCtor=t||_d}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=D1(r);var n=this.group,a=t.hostModel,o=this._data,i=this._SymbolCtor,s=r.disableAnimation,l=A1(t),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return t.getItemLayout(f)};o||n.removeAll(),t.diff(o).add(function(f){var d=c(f);if(wd(t,d,f,r)){var h=new i(t,f,l,u);h.setPosition(d),t.setItemGraphicEl(f,h),n.add(h)}}).update(function(f,d){var h=o.getItemGraphicEl(d),v=c(f);if(!wd(t,v,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 i(t,f,l,u),h.setPosition(v);else{h.updateData(t,f,l,u);var y={x:v[0],y:v[1]};s?h.attr(y):Qe(h,y,a)}n.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var d=o.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 o=t._getSymbolPoint(a);n.setPosition(o),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=A1(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=D1(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(wd(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){Ha(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 M1(e,t,r){var n=e.getBaseAxis(),a=e.getOtherAxis(n),o=vI(a,r),i=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(i),c=s==="x"||s==="radius"?1:0,f=j(e.dimensions,function(v){return t.mapDimension(v)}),d=!1,h=t.getCalculationInfo("stackResultDimension");return na(t,f[0])&&(d=!0,f[0]=h),na(t,f[1])&&(d=!0,f[1]=h),{dataDimsForPoint:f,valueStart:o,valueAxisDim:s,baseAxisDim:i,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function vI(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:xe(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function k1(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 gI(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 mI(e,t,r,n,a,o,i,s){for(var l=gI(e,t),u=[],c=[],f=[],d=[],h=[],v=[],m=[],g=M1(a,t,i),y=e.getLayout("points")||[],w=t.getLayout("points")||[],_=0;_<l.length;_++){var S=l[_],x=!0,C=void 0,N=void 0;switch(S.cmd){case"=":C=S.idx*2,N=S.idx1*2;var b=y[C],T=y[C+1],M=w[N],D=w[N+1];(isNaN(b)||isNaN(T))&&(b=M,T=D),u.push(b,T),c.push(M,D),f.push(r[C],r[C+1]),d.push(n[N],n[N+1]),m.push(t.getRawIndex(S.idx1));break;case"+":var A=S.idx,P=g.dataDimsForPoint,E=a.dataToPoint([t.get(P[0],A),t.get(P[1],A)]);N=A*2,u.push(E[0],E[1]),c.push(w[N],w[N+1]);var I=k1(g,a,t,A);f.push(I[0],I[1]),d.push(n[N],n[N+1]),m.push(t.getRawIndex(A));break;case"-":x=!1}x&&(h.push(S),v.push(v.length))}v.sort(function(he,ce){return m[he]-m[ce]});for(var L=u.length,R=Ir(L),B=Ir(L),V=Ir(L),W=Ir(L),q=[],_=0;_<v.length;_++){var Q=v[_],ue=_*2,z=Q*2;R[ue]=u[z],R[ue+1]=u[z+1],B[ue]=c[z],B[ue+1]=c[z+1],V[ue]=f[z],V[ue+1]=f[z+1],W[ue]=d[z],W[ue+1]=d[z+1],q[_]=h[Q]}return{current:R,next:B,stackedOnCurrent:V,stackedOnNext:W,status:q}}var ln=Math.min,un=Math.max;function oa(e,t){return isNaN(e)||isNaN(t)}function bd(e,t,r,n,a,o,i,s,l){for(var u,c,f,d,h,v,m=r,g=0;g<n;g++){var y=t[m*2],w=t[m*2+1];if(m>=a||m<0)break;if(oa(y,w)){if(l){m+=o;continue}break}if(m===r)e[o>0?"moveTo":"lineTo"](y,w),f=y,d=w;else{var _=y-u,S=w-c;if(_*_+S*S<.5){m+=o;continue}if(i>0){for(var x=m+o,C=t[x*2],N=t[x*2+1];C===y&&N===w&&g<n;)g++,x+=o,m+=o,C=t[x*2],N=t[x*2+1],y=t[m*2],w=t[m*2+1],_=y-u,S=w-c;var b=g+1;if(l)for(;oa(C,N)&&b<n;)b++,x+=o,C=t[x*2],N=t[x*2+1];var T=.5,M=0,D=0,A=void 0,P=void 0;if(b>=n||oa(C,N))h=y,v=w;else{M=C-u,D=N-c;var E=y-u,I=C-y,L=w-c,R=N-w,B=void 0,V=void 0;if(s==="x"){B=Math.abs(E),V=Math.abs(I);var W=M>0?1:-1;h=y-W*B*i,v=w,A=y+W*V*i,P=w}else if(s==="y"){B=Math.abs(L),V=Math.abs(R);var q=D>0?1:-1;h=y,v=w-q*B*i,A=y,P=w+q*V*i}else B=Math.sqrt(E*E+L*L),V=Math.sqrt(I*I+R*R),T=V/(V+B),h=y-M*i*(1-T),v=w-D*i*(1-T),A=y+M*i*T,P=w+D*i*T,A=ln(A,un(C,y)),P=ln(P,un(N,w)),A=un(A,ln(C,y)),P=un(P,ln(N,w)),M=A-y,D=P-w,h=y-M*B/V,v=w-D*B/V,h=ln(h,un(u,y)),v=ln(v,un(c,w)),h=un(h,ln(u,y)),v=un(v,ln(c,w)),M=y-h,D=w-v,A=y+M*V/B,P=w+D*V/B}e.bezierCurveTo(f,d,h,v,y,w),f=A,d=P}else e.lineTo(y,w)}u=y,c=w,m+=o}return g}var E1=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),yI=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new E1},t.prototype.buildPath=function(r,n){var a=n.points,o=0,i=a.length/2;if(n.connectNulls){for(;i>0&&oa(a[i*2-2],a[i*2-1]);i--);for(;o<i&&oa(a[o*2],a[o*2+1]);o++);}for(;o<i;)o+=bd(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=On.CMD,s,l,u=n==="x",c=[],f=0;f<o.length;){var d=o[f++],h=void 0,v=void 0,m=void 0,g=void 0,y=void 0,w=void 0,_=void 0;switch(d){case i.M:s=o[f++],l=o[f++];break;case i.L:if(h=o[f++],v=o[f++],_=u?(r-s)/(h-s):(r-l)/(v-l),_<=1&&_>=0){var S=u?(v-l)*_+l:(h-s)*_+s;return u?[r,S]:[S,r]}s=h,l=v;break;case i.C:h=o[f++],v=o[f++],m=o[f++],g=o[f++],y=o[f++],w=o[f++];var x=u?ds(s,h,m,y,r,c):ds(l,v,g,w,r,c);if(x>0)for(var C=0;C<x;C++){var N=c[C];if(N<=1&&N>=0){var S=u?Fe(l,v,g,w,N):Fe(s,h,m,y,N);return u?[r,S]:[S,r]}}s=y,l=w;break}}},t}(me),_I=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(E1),wI=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new _I},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&&oa(a[s*2-2],a[s*2-1]);s--);for(;i<s&&oa(a[i*2],a[i*2+1]);i++);}for(;i<s;){var u=bd(r,a,i,s,s,1,n.smooth,l,n.connectNulls);bd(r,o,i+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),i+=u+1,r.closePath()}},t}(me);function P1(e,t,r,n,a){var o=e.getArea(),i=o.x,s=o.y,l=o.width,u=o.height,c=r.get(["lineStyle","width"])||2;i-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),i!==Math.floor(i)&&(i=Math.floor(i),l++);var f=new Pe({shape:{x:i,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),v=d.inverse;h?(v&&(f.shape.x+=l),f.shape.width=0):(v||(f.shape.y+=u),f.shape.height=0);var m=oe(a)?function(g){a(g,f)}:null;St(f,{shape:{width:l,height:u,x:i,y:s}},r,null,n,m)}return f}function I1(e,t,r){var n=e.getArea(),a=Ve(n.r0,1),o=Ve(n.r,1),i=new Gn({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,St(i,{shape:{endAngle:n.endAngle,r:o}},r)}return i}function L1(e,t,r,n,a){if(e){if(e.type==="polar")return I1(e,t,r);if(e.type==="cartesian2d")return P1(e,t,r,n,a)}else return null;return null}function iu(e,t){return e.type===t}function O1(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function R1(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 B1(e,t){var r=R1(e),n=r[0],a=r[1],o=R1(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 V1(e){return xe(e)?e:e?.5:0}function bI(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),a=Ir(n*2),o=0;o<n;o++){var i=k1(r,e,t,o);a[o*2]=i[0],a[o*2+1]=i[1]}return a}function cn(e,t,r,n){var a=t.getBaseAxis(),o=a.dim==="x"||a.dim==="radius"?0:1,i=[],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],i.push(u[0],u[1]),r){case"end":l[o]=c[o],l[1-o]=u[1-o],i.push(l[0],l[1]);break;case"middle":var d=(u[o]+c[o])/2,h=[];l[o]=h[o]=d,l[1-o]=u[1-o],h[1-o]=c[1-o],i.push(l[0],l[1]),i.push(h[0],h[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],i.push(l[0],l[1])}return i.push(e[s++],e[s++]),i}function SI(e,t){var r=[],n=e.length,a,o;function i(c,f,d){var h=c.coord,v=(d-h)/(f.coord-h),m=pN(v,[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){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 CI(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=j(o.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=SI(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 v=10,m=d[0].coord-v,g=d[h-1].coord+v,y=g-m;if(y<.001)return"transparent";k(d,function(_){_.offset=(_.coord-m)/y}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var w=new Qm(0,0,0,0,d,!0);return w[a]=m,w[a+"2"]=g,w}}function xI(e,t,r){var n=e.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var o=r.getAxesByScale("ordinal")[0];if(o&&!(a&&TI(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 TI(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(_d.getSymbolSize(t,i)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function NI(e,t){return isNaN(e)||isNaN(t)}function DI(e){for(var t=e.length/2;t>0&&NI(e[t*2-2],e[t*2-1]);t--);return t-1}function $1(e,t){return[e[t*2],e[t*2+1]]}function AI(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 F1(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<vt.length;t++)if(e.get([vt[t],"endLabel","show"]))return!0;return!1}function Sd(e,t,r,n){if(iu(t,"cartesian2d")){var a=n.getModel("endLabel"),o=a.get("valueAnimation"),i=n.getData(),s={lastFrameIndex:0},l=F1(n)?function(h,v){e._endLabelOnDuring(h,v,i,s,o,a,t)}:null,u=t.getBaseAxis().isHorizontal(),c=P1(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."),I1(t,r,n)}function MI(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 kI=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new Oe,n=new pI;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"),c=r.getModel("areaStyle"),f=l.getLayout("points")||[],d=i.type==="polar",h=this._coordSys,v=this._symbolDraw,m=this._polyline,g=this._polygon,y=this._lineGroup,w=!n.ssr&&r.get("animation"),_=!c.isEmpty(),S=c.get("origin"),x=M1(i,l,S),C=_&&bI(i,l,x),N=r.get("showSymbol"),b=r.get("connectNulls"),T=N&&!d&&xI(r,l,i),M=this._data;M&&M.eachItemGraphicEl(function(ce,ke){ce.__temp&&(s.remove(ce),M.setItemGraphicEl(ke,null))}),N||v.remove(),s.add(y);var D=d?!1:r.get("step"),A;i&&i.getArea&&r.get("clip",!0)&&(A=i.getArea(),A.width!=null?(A.x-=.1,A.y-=.1,A.width+=.2,A.height+=.2):A.r0&&(A.r0-=.5,A.r+=.5)),this._clipShapeForSymbol=A;var P=CI(l,i,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(m&&h.type===i.type&&D===this._step))N&&v.updateData(l,{isIgnore:T,clipShape:A,disableAnimation:!0,getSymbolPoint:function(ce){return[f[ce*2],f[ce*2+1]]}}),w&&this._initSymbolLabelAnimation(l,i,A),D&&(f=cn(f,i,D,b),C&&(C=cn(C,i,D,b))),m=this._newPolyline(f),_?g=this._newPolygon(f,C):g&&(y.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(r,i,qn(P)),y.setClipPath(Sd(this,i,!0,r));else{_&&!g?g=this._newPolygon(f,C):g&&!_&&(y.remove(g),g=this._polygon=null),d||this._initOrUpdateEndLabel(r,i,qn(P));var E=y.getClipPath();if(E){var I=Sd(this,i,!1,r);St(E,{shape:I.shape},r)}else y.setClipPath(Sd(this,i,!0,r));N&&v.updateData(l,{isIgnore:T,clipShape:A,disableAnimation:!0,getSymbolPoint:function(ce){return[f[ce*2],f[ce*2+1]]}}),(!O1(this._stackedOnPoints,C)||!O1(this._points,f))&&(w?this._doUpdateAnimation(l,C,i,a,D,S,b):(D&&(f=cn(f,i,D,b),C&&(C=cn(C,i,D,b))),m.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:C})))}var L=r.getModel("emphasis"),R=L.get("focus"),B=L.get("blurScope"),V=L.get("disabled");if(m.useStyle(pe(u.getLineStyle(),{fill:"none",stroke:P,lineJoin:"bevel"})),js(m,r,"lineStyle"),m.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var W=m.getState("emphasis").style;W.lineWidth=+m.style.lineWidth+1}ge(m).seriesIndex=r.seriesIndex,Fn(m,R,B,V);var q=V1(r.get("smooth")),Q=r.get("smoothMonotone");if(m.setShape({smooth:q,smoothMonotone:Q,connectNulls:b}),g){var ue=l.getCalculationInfo("stackedOnSeries"),z=0;g.useStyle(pe(c.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ue&&(z=V1(ue.get("smooth"))),g.setShape({smooth:q,stackedOnSmooth:z,smoothMonotone:Q,connectNulls:b}),js(g,r,"areaStyle"),ge(g).seriesIndex=r.seriesIndex,Fn(g,R,B,V)}var he=function(ce){o._changePolyState(ce)};l.eachItemGraphicEl(function(ce){ce&&(ce.onHoverStateChange=he)}),this._polyline.onHoverStateChange=he,this._data=l,this._coordSys=i,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){ge(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=Nn(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 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 _d(i,s),u.x=c,u.y=f,u.setZ(d,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=d,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,i.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Qt.prototype.highlight.call(this,r,n,a,o)},t.prototype.downplay=function(r,n,a,o){var i=r.getData(),s=Nn(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 Qt.prototype.downplay.call(this,r,n,a,o)},t.prototype._changePolyState=function(r){var n=this._polygon;ym(this._polyline,r),n&&ym(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new yI({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 wI({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,c=u.get("animationDuration");oe(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=oe(f)?f(null):f;r.eachItemGraphicEl(function(h,v){var m=h;if(m){var g=[h.x,h.y],y=void 0,w=void 0,_=void 0;if(a)if(i){var S=a,x=n.pointToCoord(g);o?(y=S.startAngle,w=S.endAngle,_=-x[1]/180*Math.PI):(y=S.r0,w=S.r,_=x[0])}else{var C=a;o?(y=C.x,w=C.x+C.width,_=h.x):(y=C.y+C.height,w=C.y,_=h.y)}var N=w===y?0:(_-y)/(w-y);l&&(N=1-N);var b=oe(f)?f(v):c*N+d,T=m.getSymbolPath(),M=T.getTextContent();m.attr({scaleX:0,scaleY:0}),m.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:b}),M&&M.animateFrom({style:{opacity:0}},{duration:300,delay:b}),T.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,a){var o=r.getModel("endLabel");if(F1(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 Ue({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=DI(l);c>=0&&(Wa(s,Un(r,"endLabel"),{inheritColor:a,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?N1(i,h):Ei(i,f)},enableTextSetter:!0},MI(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,c=this._polyline;if(u){r<1&&o.originalX==null&&(o.originalX=u.x,o.originalY=u.y);var f=a.getLayout("points"),d=a.hostModel,h=d.get("connectNulls"),v=s.get("precision"),m=s.get("distance")||0,g=l.getBaseAxis(),y=g.isHorizontal(),w=g.inverse,_=n.shape,S=w?y?_.x:_.y+_.height:y?_.x+_.width:_.y,x=(y?m:0)*(w?-1:1),C=(y?0:-m)*(w?-1:1),N=y?"x":"y",b=AI(f,S,N),T=b.range,M=T[1]-T[0],D=void 0;if(M>=1){if(M>1&&!h){var A=$1(f,T[0]);u.attr({x:A[0]+x,y:A[1]+C}),i&&(D=d.getRawValue(T[0]))}else{var A=c.getPointOn(S,N);A&&u.attr({x:A[0]+x,y:A[1]+C});var P=d.getRawValue(T[0]),E=d.getRawValue(T[1]);i&&(D=hD(a,v,P,E,b.t))}o.lastFrameIndex=T[0]}else{var I=r===1||o.lastFrameIndex>0?T[0]:0,A=$1(f,I);i&&(D=d.getRawValue(I)),u.attr({x:A[0]+x,y:A[1]+C})}if(i){var L=ll(u);typeof L.setLabelText=="function"&&L.setLabelText(D)}}},t.prototype._doUpdateAnimation=function(r,n,a,o,i,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,d=mI(this._data,r,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),h=d.current,v=d.stackedOnCurrent,m=d.next,g=d.stackedOnNext;if(i&&(h=cn(d.current,a,i,l),v=cn(d.stackedOnCurrent,a,i,l),m=cn(d.next,a,i,l),g=cn(d.stackedOnNext,a,i,l)),B1(h,m)>3e3||c&&B1(v,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(),Qe(u,y,f),c&&(c.setShape({points:h,stackedOnPoints:v}),c.stopAnimation(),Qe(c,{shape:{stackedOnPoints:g}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var w=[],_=d.status,S=0;S<_.length;S++){var x=_[S].cmd;if(x==="="){var C=r.getItemGraphicEl(_[S].idx1);C&&w.push({el:C,ptIdx:S})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var N=u.shape.__points,b=0;b<w.length;b++){var T=w[b].el,M=w[b].ptIdx*2;T.x=N[M],T.y=N[M+1],T.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}(Qt);const EI=kI;function PI(e,t){return{seriesType:e,plan:Bh(),reset:function(r){var n=r.getData(),a=r.coordinateSystem,o=r.pipelineContext,i=t||o.large;if(a){var s=j(a.dimensions,function(h){return n.mapDimension(h)}).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 c=n.getStore(),f=n.getDimensionIndex(s[0]),d=n.getDimensionIndex(s[1]);return l&&{progress:function(h,v){for(var m=h.end-h.start,g=i&&Ir(m*l),y=[],w=[],_=h.start,S=0;_<h.end;_++){var x=void 0;if(l===1){var C=c.get(f,_);x=a.dataToPoint(C,null,w)}else y[0]=c.get(f,_),y[1]=c.get(d,_),x=a.dataToPoint(y,null,w);i?(g[S++]=x[0],g[S++]=x[1]):v.setItemLayout(_,x.slice())}i&&v.setLayout("points",g)}}}}}}var II={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]}},LI=function(e){return Math.round(e.length/2)};function z1(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),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){o==="lttb"&&t.setData(a.lttbDownSample(a.mapDimension(u.dim),1/h));var v=void 0;X(o)?v=II[o]:oe(o)&&(v=o),v&&t.setData(a.downSample(a.mapDimension(u.dim),1/h,v,LI))}}}}}function OI(e){e.registerChartView(EI),e.registerSeriesModel(hI),e.registerLayout(PI("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,z1("line"))}var Cd=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return Kl(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,h){if(d.type==="category"&&n!=null){var v=d.getTicksCoords(),m=d.getTickModel().get("alignWithLabel"),g=i[h],y=n[h]==="x1"||n[h]==="y1";if(y&&!m&&(g+=1),v.length<2)return;if(v.length===2){s[h]=d.toGlobalCoord(d.getExtent()[y?1:0]);return}for(var w=void 0,_=void 0,S=1,x=0;x<v.length;x++){var C=v[x].coord,N=x===v.length-1?v[x-1].tickValue+S:v[x].tickValue;if(N===g){_=C;break}else if(N<g)w=C;else if(w!=null&&N>g){_=(C+w)/2;break}x===1&&(S=N-v[0].tickValue)}_==null&&(w?w&&(_=v[v.length-1].coord):_=v[0].coord),s[h]=d.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=o.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}(Er);Er.registerClass(Cd);var RI=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return Kl(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=cl(Cd.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}(Cd);const BI=RI;var VI=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}(),G1=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new VI},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,c=n.startAngle,f=n.endAngle,d=n.clockwise,h=Math.PI*2,v=d?f-c<h:c-f<h;v||(c=f-(d?h:-h));var m=Math.cos(c),g=Math.sin(c),y=Math.cos(f),w=Math.sin(f);v?(r.moveTo(m*i+a,g*i+o),r.arc(m*u+a,g*u+o,l,-Math.PI+c,c,!d)):r.moveTo(m*s+a,g*s+o),r.arc(a,o,s,c,f,!d),r.arc(y*u+a,w*u+o,l,f-Math.PI*2,f-Math.PI,!d),i!==0&&r.arc(a,o,i,f,c,d)},t}(me);function $I(e,t){t=t||{};var r=t.isRoundCap;return function(n,a,o){var i=a.position;if(!i||i instanceof Array)return Ds(n,a,o);var s=e(i),l=a.distance!=null?a.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,h=u.r0,v=(d+h)/2,m=u.startAngle,g=u.endAngle,y=(m+g)/2,w=r?Math.abs(d-h)/2:0,_=Math.cos,S=Math.sin,x=c+d*_(m),C=f+d*S(m),N="left",b="top";switch(s){case"startArc":x=c+(h-l)*_(y),C=f+(h-l)*S(y),N="center",b="top";break;case"insideStartArc":x=c+(h+l)*_(y),C=f+(h+l)*S(y),N="center",b="bottom";break;case"startAngle":x=c+v*_(m)+su(m,l+w,!1),C=f+v*S(m)+lu(m,l+w,!1),N="right",b="middle";break;case"insideStartAngle":x=c+v*_(m)+su(m,-l+w,!1),C=f+v*S(m)+lu(m,-l+w,!1),N="left",b="middle";break;case"middle":x=c+v*_(y),C=f+v*S(y),N="center",b="middle";break;case"endArc":x=c+(d+l)*_(y),C=f+(d+l)*S(y),N="center",b="bottom";break;case"insideEndArc":x=c+(d-l)*_(y),C=f+(d-l)*S(y),N="center",b="top";break;case"endAngle":x=c+v*_(g)+su(g,l+w,!0),C=f+v*S(g)+lu(g,l+w,!0),N="left",b="middle";break;case"insideEndAngle":x=c+v*_(g)+su(g,-l+w,!0),C=f+v*S(g)+lu(g,-l+w,!0),N="right",b="middle";break;default:return Ds(n,a,o)}return n=n||{},n.x=x,n.y=C,n.align=N,n.verticalAlign=b,n}}function FI(e,t,r,n){if(xe(n)){e.setTextConfig({rotation:n});return}else if(U(t)){e.setTextConfig({rotation:0});return}var a=e.shape,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 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 su(e,t,r){return t*Math.sin(e)*(r?-1:1)}function lu(e,t,r){return t*Math.cos(e)*(r?1:-1)}function Pi(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:j(n,function(o){return Xr(o,a)})}}var xd=Math.max,Td=Math.min;function zI(e,t){var r=e.getArea&&e.getArea();if(iu(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var a=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=a,r.width+=a*2):(r.y-=a,r.height+=a*2)}}return r}var GI=function(e){H(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,a,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"&&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){Ha(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,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var d=r.isAnimationEnabled()?r:null,h=HI(r,u);h&&this._enableRealtimeSort(h,s,a);var v=r.get("clip",!0)||h,m=zI(u,s);i.removeClipPath();var g=r.get("roundCap",!0),y=r.get("showBackground",!0),w=r.getModel("backgroundStyle"),_=w.get("borderRadius")||0,S=[],x=this._backgroundEls,C=o&&o.isInitSort,N=o&&o.type==="changeAxisOrder";function b(D){var A=uu[u.type](s,D),P=ZI(u,f,A);return P.useStyle(w.getItemStyle()),u.type==="cartesian2d"?P.setShape("r",_):P.setShape("cornerRadius",_),S[D]=P,P}s.diff(l).add(function(D){var A=s.getItemModel(D),P=uu[u.type](s,D,A);if(y&&b(D),!(!s.hasValue(D)||!q1[u.type](P))){var E=!1;v&&(E=H1[u.type](m,P));var I=W1[u.type](r,s,D,P,f,d,c.model,!1,g);h&&(I.forceLabelAnimation=!0),X1(I,s,D,A,P,r,f,u.type==="polar"),C?I.attr({shape:P}):h?U1(h,d,I,P,D,f,!1,!1):St(I,{shape:P},r,D),s.setItemGraphicEl(D,I),i.add(I),I.ignore=E}}).update(function(D,A){var P=s.getItemModel(D),E=uu[u.type](s,D,P);if(y){var I=void 0;x.length===0?I=b(A):(I=x[A],I.useStyle(w.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",_):I.setShape("cornerRadius",_),S[D]=I);var L=uu[u.type](s,D),R=Q1(f,L,u);Qe(I,{shape:R},d,D)}var B=l.getItemGraphicEl(A);if(!s.hasValue(D)||!q1[u.type](E)){i.remove(B);return}var V=!1;if(v&&(V=H1[u.type](m,E),V&&i.remove(B)),B?Qf(B):B=W1[u.type](r,s,D,E,f,d,c.model,!!B,g),h&&(B.forceLabelAnimation=!0),N){var W=B.getTextContent();if(W){var q=ll(W);q.prevValue!=null&&(q.prevValue=q.value)}}else X1(B,s,D,P,E,r,f,u.type==="polar");C?B.attr({shape:E}):h?U1(h,d,B,E,D,f,!0,N):Qe(B,{shape:E},r,D,null),s.setItemGraphicEl(D,B),B.ignore=V,i.add(B)}).remove(function(D){var A=l.getItemGraphicEl(D);A&&rl(A,r,D)}).execute();var T=this._backgroundGroup||(this._backgroundGroup=new Oe);T.removeAll();for(var M=0;M<S.length;++M)T.add(S[M]);i.add(T),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(r,n,a){this._clear(),K1(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),K1(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&L1(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),c=u&&u.shape;return c&&Math.abs(i.isHorizontal()?c.height:c.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:j(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 c=r.rawIndexOf(i,o.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,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){rl(o,r,ge(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}(Qt),H1={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=xd(t.x,e.x),s=Td(t.x+t.width,a),l=xd(t.y,e.y),u=Td(t.y+t.height,o),c=s<i,f=u<l;return t.x=c&&i>a?s:i,t.y=f&&l>o?u:l,t.width=c?0:s-i,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=Td(t.r,e.r),o=xd(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}},W1={cartesian2d:function(e,t,r,n,a,o,i,s,l){var u=new Pe({shape:G({},n),z2:1});if(u.__dataIndex=r,u.name="item",o){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,a,o,i,s,l){var u=!a&&l?G1:Gn,c=new u({shape:n,z2:1});c.name="item";var f=j1(a);if(c.calculateTextPosition=$I(f,{isRoundCap:u===G1}),o){var d=c.shape,h=a?"r":"endAngle",v={};d[h]=a?n.r0:n.startAngle,v[h]=n[h],(s?Qe:St)(c,{shape:v},o)}return c}};function HI(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 U1(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?Qe:St)(r,{shape:l},t,a,null);var c=t?e.baseAxis.model:null;(i?Qe:St)(r,{shape:u},c,a)}function Y1(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var WI=["x","y","width","height"],UI=["cx","cy","r","startAngle","endAngle"],q1={cartesian2d:function(e){return!Y1(e,WI)},polar:function(e){return!Y1(e,UI)}},uu={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),a=r?qI(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 YI(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function j1(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 X1(e,t,r,n,a,o,i,s){var l=t.getItemVisual(r,"style");if(s){if(!o.get("roundCap")){var c=e.shape,f=Pi(n.getModel("itemStyle"),c,!0);G(c,f),e.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=n.getShallow("cursor");d&&e.attr("cursor",d);var h=s?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=Un(n);Wa(e,v,{labelFetcher:o,labelDataIndex:r,defaultText:Ei(o.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,FI(e,g==="outside"?h:g,j1(i),n.get(["label","rotate"]))}NM(m,v,o.getRawValue(r),function(w){return N1(t,w)});var y=n.getModel(["emphasis"]);Fn(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),js(e,n),YI(a)&&(e.style.fill="none",e.style.stroke="none",k(e.states,function(w){w.style&&(w.style.fill=w.style.stroke="none")}))}function qI(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 jI=function(){function e(){}return e}(),Z1=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new jI},t.prototype.buildPath=function(r,n){for(var a=n.points,o=this.baseDimIdx,i=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<a.length;c+=3)l[o]=u,l[i]=a[c+2],s[o]=a[c+o],s[i]=a[c+i],r.rect(s[0],s[1],l[0],l[1])},t}(me);function K1(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 c=new Z1({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=i,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),r&&r.push(c)}var f=new Z1({shape:{points:a.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=o,f.largeDataIndices=i,f.barWidth=s,t.add(f),f.useStyle(a.getVisual("style")),ge(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",J1),f.on("mousemove",J1)),r&&r.push(f)}var J1=$h(function(e){var t=this,r=XI(t,e.offsetX,e.offsetY);ge(t).dataIndex=r>=0?r:null},30,!1);function XI(e,t,r){for(var n=e.baseDimIdx,a=1-n,o=e.shape.points,i=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=o.length/3;c<f;c++){var d=c*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[c]}return-1}function Q1(e,t,r){if(iu(r,"cartesian2d")){var n=t,a=r.getArea();return{x:e?n.x:a.x,y:e?a.y:n.y,width:e?n.width:a.width,height:e?a.height:n.height}}else{var a=r.getArea(),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 ZI(e,t,r){var n=e.type==="polar"?Gn:Pe;return new n({shape:Q1(t,r,e),silent:!0,z2:0})}const KI=GI;function JI(e){e.registerChartView(KI),e.registerSeriesModel(BI),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Se(yP,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,_P("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,z1("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 ew=Math.PI*2,cu=Math.PI/180;function tw(e,t){return jn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function rw(e,t){var r=tw(e,t),n=e.get("center"),a=e.get("radius");U(a)||(a=[0,a]);var o=Te(r.width,t.getWidth()),i=Te(r.height,t.getHeight()),s=Math.min(o,i),l=Te(a[0],s/2),u=Te(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=Te(n[0],o)+r.x,f=Te(n[1],i)+r.y;return{cx:c,cy:f,r0:l,r:u}}function QI(e,t,r){t.eachSeriesByType(e,function(n){var a=n.getData(),o=a.mapDimension("value"),i=tw(n,r),s=rw(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*cu,h=n.get("endAngle"),v=n.get("padAngle")*cu;h=h==="auto"?d-ew:-h*cu;var m=n.get("minAngle")*cu,g=m+v,y=0;a.each(o,function(L){!isNaN(L)&&y++});var w=a.getSum(o),_=Math.PI/(w||y)*2,S=n.get("clockwise"),x=n.get("roseType"),C=n.get("stillShowZeroSum"),N=a.getDataExtent(o);N[0]=0;var b=S?1:-1,T=[d,h],M=b*v/2;Yg(T,!S),d=T[0],h=T[1];var D=Math.abs(h-d),A=D,P=0,E=d;if(a.setLayout({viewRect:i,r:c}),a.each(o,function(L,R){var B;if(isNaN(L)){a.setItemLayout(R,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:S,cx:l,cy:u,r0:f,r:x?NaN:c});return}x!=="area"?B=w===0&&C?_:L*_:B=D/y,B<g?(B=g,A-=g):P+=L;var V=E+b*B,W=0,q=0;v>B?(W=E+b*B/2,q=W):(W=E+M,q=V-M),a.setItemLayout(R,{angle:B,startAngle:W,endAngle:q,clockwise:S,cx:l,cy:u,r0:f,r:x?qe(L,N,[f,c]):c}),E=V}),A<ew&&y)if(A<=.001){var I=D/y;a.each(o,function(L,R){if(!isNaN(L)){var B=a.getItemLayout(R);B.angle=I;var V=0,W=0;I<v?(V=d+b*(R+1/2)*I,W=V):(V=d+b*R*I+M,W=d+b*(R+1)*I-M),B.startAngle=V,B.endAngle=W}})}else _=A/P,E=d,a.each(o,function(L,R){if(!isNaN(L)){var B=a.getItemLayout(R),V=B.angle===g?g:L*_,W=0,q=0;V<v?(W=E+b*V/2,q=W):(W=E+M,q=E+b*V-M),B.startAngle=W,B.endAngle=q,E+=b*V}})})}function eL(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 tL=Math.PI/180;function nw(e,t,r,n,a,o,i,s,l,u){if(e.length<2)return;function c(m){for(var g=m.rB,y=g*g,w=0;w<m.list.length;w++){var _=m.list[w],S=Math.abs(_.label.y-r),x=n+_.len,C=x*x,N=Math.sqrt((1-Math.abs(S*S/y))*C),b=t+(N+_.len2)*a,T=b-_.label.x,M=_.targetTextWidth-T*a;aw(_,M,!0),_.label.x=b}}function f(m){for(var g={list:[],maxY:0},y={list:[],maxY:0},w=0;w<m.length;w++)if(m[w].labelAlignTo==="none"){var _=m[w],S=_.label.y>r?y:g,x=Math.abs(_.label.y-r);if(x>=S.maxY){var C=_.label.x-t-_.len2*a,N=n+_.len,b=Math.abs(C)<N?Math.sqrt(x*x/(1-C*C/N/N)):N;S.rB=b,S.maxY=x}S.list.push(_)}c(g),c(y)}for(var d=e.length,h=0;h<d;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var v=e[h].label.x-u;e[h].linePoints[1][0]+=v,e[h].label.x=u}uI(e,l,l+i)&&f(e)}function rL(e,t,r,n,a,o,i,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<e.length;d++){var h=e[d].label;Nd(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 v=e[d];if(!Nd(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var h=v.label,m=v.linePoints,g=void 0;v.labelAlignTo==="edge"?h.x<t?g=m[2][0]-v.labelDistance-i-v.edgeDistance:g=i+a-v.edgeDistance-m[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?h.x<t?g=c-i-v.bleedMargin:g=i+a-f-v.bleedMargin:h.x<t?g=h.x-i-v.bleedMargin:g=i+a-h.x-v.bleedMargin,v.targetTextWidth=g,aw(v,g)}}nw(u,t,r,n,1,a,o,i,s,f),nw(l,t,r,n,-1,a,o,i,s,c);for(var d=0;d<e.length;d++){var v=e[d];if(!Nd(v)&&v.linePoints){var h=v.label,m=v.linePoints,y=v.labelAlignTo==="edge",w=h.style.padding,_=w?w[1]+w[3]:0,S=h.style.backgroundColor?0:_,x=v.rect.width+S,C=m[1][0]-m[2][0];y?h.x<t?m[2][0]=i+v.edgeDistance+x+v.labelDistance:m[2][0]=i+a-v.edgeDistance-x-v.labelDistance:(h.x<t?m[2][0]=h.x+v.labelDistance:m[2][0]=h.x-v.labelDistance,m[1][0]=m[2][0]+C),m[1][1]=m[2][1]=h.y}}}function aw(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,c=o.width+(i?0:l);if(t<c||r){var f=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 h=t-l,v=t<c?h:r?h>e.unconstrainedWidth?null:h:null;n.setStyle("width",v)}var m=n.getBoundingRect();o.width=m.width;var g=(n.style.margin||0)+2.1;o.height=m.height+g,o.y-=(o.height-f)/2}}}function Nd(e){return e.position==="center"}function nL(e){var t=e.getData(),r=[],n,a,o=!1,i=(e.get("minShowLabelAngle")||0)*tL,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 v(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,T=N.getTextContent(),M=N.getTextGuideLine(),D=t.getItemModel(C),A=D.getModel("label"),P=A.get("position")||D.get(["emphasis","label","position"]),E=A.get("distanceToLabelLine"),I=A.get("alignTo"),L=Te(A.get("edgeDistance"),u),R=A.get("bleedMargin"),B=D.getModel("labelLine"),V=B.get("length");V=Te(V,u);var W=B.get("length2");if(W=Te(W,u),Math.abs(b.endAngle-b.startAngle)<i){k(T.states,h),T.ignore=!0,M&&(k(M.states,h),M.ignore=!0);return}if(v(T)){var q=(b.startAngle+b.endAngle)/2,Q=Math.cos(q),ue=Math.sin(q),z,he,ce,ke;n=b.cx,a=b.cy;var He=P==="inside"||P==="inner";if(P==="center")z=b.cx,he=b.cy,ke="center";else{var Ie=(He?(b.r+b.r0)/2*Q:b.r*Q)+n,Ae=(He?(b.r+b.r0)/2*ue:b.r*ue)+a;if(z=Ie+Q*3,he=Ae+ue*3,!He){var re=Ie+Q*(V+l-b.r),ee=Ae+ue*(V+l-b.r),ft=re+(Q<0?-1:1)*W,Le=ee;I==="edge"?z=Q<0?c+L:c+u-L:z=ft+(Q<0?-E:E),he=Le,ce=[[Ie,Ae],[re,ee],[ft,Le]]}ke=He?"center":I==="edge"?Q>0?"right":"left":Q>0?"left":"right"}var xt=Math.PI,Gt=0,mn=A.get("rotate");if(xe(mn))Gt=mn*(xt/180);else if(P==="center")Gt=0;else if(mn==="radial"||mn===!0){var Fu=Q<0?-q+xt:-q;Gt=Fu}else if(mn==="tangential"&&P!=="outside"&&P!=="outer"){var Br=Math.atan2(Q,ue);Br<0&&(Br=xt*2+Br);var zu=ue>0;zu&&(Br=xt+Br),Gt=Br-xt}if(o=!!Gt,T.x=z,T.y=he,T.rotation=Gt,T.setStyle({verticalAlign:"middle"}),He){T.setStyle({align:ke});var yo=T.states.select;yo&&(yo.x+=T.x,yo.y+=T.y)}else{var yn=T.getBoundingRect().clone();yn.applyTransform(T.getComputedTransform());var zi=(T.style.margin||0)+2.1;yn.y-=zi/2,yn.height+=zi,r.push({label:T,labelLine:M,position:P,len:V,len2:W,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new le(Q,ue),linePoints:ce,textAlign:ke,labelDistance:E,labelAlignTo:I,edgeDistance:L,bleedMargin:R,rect:yn,unconstrainedWidth:yn.width,labelStyleWidth:T.style.width})}N.setTextConfig({inside:He})}}),!o&&e.get("avoidLabelOverlap")&&rL(r,n,a,l,u,d,c,f);for(var m=0;m<r.length;m++){var g=r[m],y=g.label,w=g.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:g.textAlign}),_&&(k(y.states,h),y.ignore=!0);var S=y.states.select;S&&(S.x+=y.x,S.y+=y.y)}if(w){var x=g.linePoints;_||!x?(k(w.states,h),w.ignore=!0):(rI(x,g.minTurnAngle),nI(x,g.surfaceNormal,g.maxSurfaceAngle),w.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new le(x[0][0],x[0][1])})}}}var aL=function(e){H(t,e);function t(r,n,a){var o=e.call(this)||this;o.z2=2;var i=new Ue;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"),c=r.getItemLayout(n),f=G(Pi(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){i.setShape(f);return}if(o){i.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?(St(i,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),i.originX=f.cx,i.originY=f.cy):d==="scale"?(i.shape.r=c.r0,St(i,{shape:{r:c.r}},s,n)):a!=null?(i.setShape({startAngle:a,endAngle:a}),St(i,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(i.shape.endAngle=c.startAngle,Qe(i,{shape:{endAngle:c.endAngle}},s,n))}else Qf(i),Qe(i,{shape:f},s,n);i.useStyle(r.getItemVisual(n,"style")),js(i,l);var h=(c.startAngle+c.endAngle)/2,v=s.get("selectedOffset"),m=Math.cos(h)*v,g=Math.sin(h)*v,y=l.getShallow("cursor");y&&i.attr("cursor",y),this._updateLabel(s,r,n),i.ensureState("emphasis").shape=G({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Pi(u.getModel("itemStyle"),c)),G(i.ensureState("select"),{x:m,y:g,shape:Pi(l.getModel(["select","itemStyle"]),c)}),G(i.ensureState("blur"),{shape:Pi(l.getModel(["blur","itemStyle"]),c)});var w=i.getTextGuideLine(),_=i.getTextContent();w&&G(w.ensureState("select"),{x:m,y:g}),G(_.ensureState("select"),{x:m,y:g}),Fn(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,c=l&&l.opacity;Wa(o,Un(i),{labelFetcher:n.hostModel,labelDataIndex:a,inheritColor:u,defaultOpacity:c,defaultText:r.getFormattedLabel(a,"normal")||n.getName(a)});var f=o.getTextContent();o.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=r.get(["label","position"]);if(d!=="outside"&&d!=="outer")o.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Ga,this.setTextGuideLine(h)),oI(this,iI(i),{stroke:u,opacity:Ur(s.get(["lineStyle","opacity"]),c,1)})}},t}(Gn),oL=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,a,o){var i=r.getData(),s=this._data,l=this.group,u;if(!s&&i.count()>0){for(var c=i.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<i.count();++f)c=i.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),i.count()===0&&r.get("showEmptyCircle")){var d=new Gn({shape:rw(r,a)});d.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}i.diff(s).add(function(h){var v=new aL(i,h,u);i.setItemGraphicEl(h,v),l.add(v)}).update(function(h,v){var m=s.getItemGraphicEl(v);m.updateData(i,h,u),m.off("click"),l.add(m),i.setItemGraphicEl(h,m)}).remove(function(h){var v=s.getItemGraphicEl(h);rl(v,r,h)}).execute(),nL(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}(Qt);const iL=oL;function sL(e,t,r){t=U(t)&&{coordDimensions:t}||G({encodeDefine:e.getEncode()},t);var n=e.getSource(),a=j_(n,t).dimensions,o=new Ni(a,e);return o.initData(n,r),o}var lL=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=lL;var cL=De(),fL=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new 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 sL(this,{coordDimensions:["value"],encodeDefaulter:Se(ek,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),a=cL(n),o=a.seats;if(!o){var i=[];n.each(n.mapDimension("value"),function(l){i.push(l)}),o=a.seats=WN(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){Is(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}(Er);const hL=fL;function dL(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!(xe(i)&&!isNaN(i)&&i<0)})}}}function pL(e){e.registerChartView(iL),e.registerSeriesModel(hL),$E("pie",e.registerAction),e.registerLayout(Se(QI,"pie")),e.registerProcessor(eL("pie")),e.registerProcessor(dL("pie"))}var vL=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Ne);const gL=vL;var Dd=function(e){H(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}(Ne);Wt(Dd,HP);var ow={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)"]}}},mL=ve({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},ow),Ad=ve({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},ow),yL=ve({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Ad),_L=pe({logBase:10},Ad);const wL={category:mL,value:Ad,time:yL,log:_L};var bL={value:1,category:1,time:1,log:1};function iw(e,t,r,n){k(bL,function(a,o){var i=ve(ve({},wL[o],!0),n,!0),s=function(l){H(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+o,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=ii(this),h=d?si(c):{},v=f.getTheme();ve(c,v.get(o+"Axis")),ve(c,this.getDefaultOption()),c.type=sw(c),d&&ja(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=ud.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."+o,u.defaultOption=i,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",sw)}function sw(e){return e.type||(e.data?"category":"value")}var SL=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 j(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ye(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 CL=SL;var Md=["x","y"];function lw(e){return e.type==="interval"||e.type==="time"}var xL=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=Md,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!lw(r)||!lw(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 c=(s[0]-i[0])/l,f=(s[1]-i[1])/u,d=i[0]-a[0]*c,h=i[1]-o[0]*f,v=this._transform=[c,0,0,f,d,h];this._invTransform=Ic([],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 _e(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 Nt(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 Nt(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 _e(o,i,s,l)},t}(CL),TL=function(e){H(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}(tI);const NL=TL;function kd(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,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,v=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(i){var m=i.toGlobalCoord(i.dataToCoord(0));v[d.onZero]=Math.max(Math.min(m,v[1]),v[0])}o.position=[u==="y"?v[d[l]]:f[0],u==="x"?v[d[l]]:f[3]],o.rotation=Math.PI/2*(u==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=g[s],o.labelOffset=i?v[d[s]]-v[d.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Wr(r.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=t.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-y:y,o.z2=1,o}function uw(e){return e.get("coordinateSystem")==="cartesian2d"}function cw(e){var t={xAxisModel:null,yAxisModel:null};return k(t,function(r,n){var a=n.replace(/Model$/,""),o=e.getReferringComponents(a,pt).models[0];if(process.env.NODE_ENV!=="production"&&!o)throw new Error(a+' "'+Ur(e.get(a+"Index"),e.get(a+"Id"),0)+'" not found');t[n]=o}),t}var Ed=Math.log;function DL(e,t,r){var n=Di.prototype,a=n.getTicks.call(r),o=n.getTicks.call(r,!0),i=a.length-1,s=n.getInterval.call(r),l=h1(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=Ed(e.base);u=[Ed(u[0])/d,Ed(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:i,fixMin:c,fixMax:f});var h=n.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var v=n.getInterval.call(e),m=u[0],g=u[1];if(c&&f)v=(g-m)/i;else if(c)for(g=u[0]+v*i;g<u[1]&&isFinite(g)&&isFinite(u[1]);)v=fd(v),g=u[0]+v*i;else if(f)for(m=u[1]-v*i;m>u[0]&&isFinite(m)&&isFinite(u[0]);)v=fd(v),m=u[1]-v*i;else{var y=e.getTicks().length-1;y>i&&(v=fd(v));var w=v*i;g=Math.ceil(u[1]/v)*v,m=Ve(g-w),m<0&&u[0]>=0?(m=0,g=Ve(w)):g>0&&u[1]<=0&&(g=0,m=-Ve(w))}var _=(a[0].value-o[0].value)/s,S=(a[i].value-o[i].value)/s;if(n.setExtent.call(e,m+v*_,g+v*S),n.setInterval.call(e,v),(_||S)&&n.setNiceExtent.call(e,m+v,g-v),process.env.NODE_ENV!=="production"){var x=n.getTicks.call(e);x[1]&&(!fP(v)||pf(x[1].value)>pf(v))&&ze("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}}var AL=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Md,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=ye(i),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=i[d],v=h.model,m=h.scale;cd(m)&&v.get("alignTicks")&&v.get("interval")==null?c.push(h):(d1(m,v),cd(m)&&(s=h))}c.length&&(s||(s=c.pop(),d1(s.scale,s.model)),k(c,function(g){DL(g.scale,g.model,s.scale)}))}}a(n.x),a(n.y);var o={};k(n.x,function(i){fw(n,"y",i,o)}),k(n.y,function(i){fw(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=jn(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 c=FP(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);i[f]-=c[f]+d,u.position==="top"?i.y+=c.height+d:u.position==="left"&&(i.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,i.width]:[0,i.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),ML(u,c?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]}J(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",pt).models[0],a=t.yAxisModel||r&&r.getReferringComponents("yAxis",pt).models[0],o=t.gridModel,i=this._coordsList,s,l;if(r)s=r.coordinateSystem,de(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(c,f){k(s.y,function(d,h){var v="x"+f+"y"+h,m=new xL(v);m.master=a,m.model=t,a._coordsMap[v]=m,a._coordsList.push(m),m.addAxis(c),m.addAxis(d)})});function u(c){return function(f,d){if(Pd(f,t)){var h=f.get("position");c==="x"?h!=="top"&&h!=="bottom"&&(h=i.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=i.left?"right":"left"),i[h]=!0;var v=new NL(c,VP(f),[0,0],f.get("type"),h),m=v.type==="category";v.onBand=m&&f.get("boundaryGap"),v.inverse=f.get("inverse"),f.axis=v,v.model=f,v.grid=o,v.index=d,o._axesList.push(v),s[c][d]=v,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 o=a.model.get("categorySortInfo");a.scale.setSortInfo(o)}}),t.eachSeries(function(a){if(uw(a)){var o=cw(a),i=o.xAxisModel,s=o.yAxisModel;if(!Pd(i,r)||!Pd(s,r))return;var l=this.getCartesian(i.componentIndex,s.componentIndex),u=a.getData(),c=l.getAxis("x"),f=l.getAxis("y");n(u,c),n(u,f)}},this);function n(a,o){k(v1(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);de(r,o)<0&&r.push(o),de(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(uw(a)){var o=cw(a),i=o.xAxisModel,s=o.yAxisModel,l=i.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!l)throw new Error('Grid "'+Ur(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=Md,e}();function Pd(e,t){return e.getCoordSysModel()===t}function fw(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)hw(a[l])&&(o=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&hw(a[u])&&!n[c(a[u])]){o=a[u];break}o&&(n[c(o)]=!0);function c(f){return f.dim+"_"+f.index}}function hw(e){return e&&e.type!=="category"&&e.type!=="time"&&$P(e)}function ML(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 kL=AL;var fn=Math.PI,ia=function(){function e(t,r){this.group=new Oe,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 Oe({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!dw[t]},e.prototype.add=function(t){dw[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var a=wg(r-t),o,i;return As(a)?(i=n>0?"top":"bottom",o="center"):As(a-fn)?(i=n>0?"bottom":"top",o="center"):(i="middle",a>0&&a<fn?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}(),dw={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&&(Nt(s,s,i),Nt(l,l,i));var c=G({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new en({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});ei(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)||xe(h))&&(h=[h,h]);var v=Ol(t.get(["axisLine","symbolOffset"])||0,h),m=h[0],g=h[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(y,w){if(d[w]!=="none"&&d[w]!=null){var _=Pr(d[w],-m/2,-g/2,m,g,c.stroke,!0),S=y.r+y.offset,x=u?l:s;_.attr({rotation:y.rotate,x:x[0]+S*Math.cos(e.rotation),y:x[1]-S*Math.sin(e.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(e,t,r,n){var a=IL(r,n,t,e),o=OL(r,n,t,e);if(PL(t,o,a),LL(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var i=sI(j(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));cI(i)}},axisName:function(e,t,r,n){var a=Wr(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(),c=u[0]>u[1]?-1:1,f=[o==="start"?u[0]-c*l:o==="end"?u[1]+c*l:(u[0]+u[1])/2,vw(o)?e.labelOffset+i*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*fn/180);var v;vw(o)?d=ia.innerTextLayout(e.rotation,h??e.rotation,i):(d=EL(e.rotation,o,h||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(d.rotation)),!isFinite(v)&&(v=null)));var m=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,w=Wr(e.nameTruncateMaxWidth,g.maxWidth,v),_=new Ue({x:f[0],y:f[1],rotation:d.rotation,silent:ia.isLabelSilent(t),style:Zt(s,{text:a,font:m,overflow:"truncate",width:w,ellipsis:y,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(nh({el:_,componentModel:t,itemName:a}),_.__fullText=a,_.anid="name",t.get("triggerEvent")){var S=ia.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,ge(_).eventData=S}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function EL(e,t,r,n){var a=wg(r-e),o,i,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return As(a-fn/2)?(i=l?"bottom":"top",o="center"):As(a-fn*1.5)?(i=l?"top":"bottom",o="center"):(i="middle",a<fn*1.5&&a>fn/2?o=l?"left":"right":o=l?"right":"left"),{rotation:a,textAlign:o,textVerticalAlign:i}}function PL(e,t,r){if(!p1(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],c=r[1],f=r[r.length-1],d=r[r.length-2];n===!1?($t(o),$t(u)):pw(o,i)&&(n?($t(i),$t(c)):($t(o),$t(u))),a===!1?($t(s),$t(f)):pw(l,s)&&(a?($t(l),$t(d)):($t(s),$t(f)))}}function $t(e){e&&(e.ignore=!0)}function pw(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var a=kc([]);return Pc(a,a,-e.rotation),r.applyTransform(Da([],a,e.getLocalTransform())),n.applyTransform(Da([],a,t.getLocalTransform())),r.intersect(n)}}function vw(e){return e==="middle"||e==="center"}function gw(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&&(Nt(i,i,t),Nt(s,s,t));var c=new en({shape:{x1:i[0],y1:i[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});ei(c.shape,c.style.lineWidth),c.anid=a+"_"+e[l].tickValue,o.push(c)}return o}function IL(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(),c=gw(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 LL(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=pe(s.getLineStyle(),pe(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<i.length;c++)for(var f=gw(i[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function OL(e,t,r,n){var a=r.axis,o=Wr(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!o||a.scale.isBlank())){var i=r.getModel("axisLabel"),s=i.get("margin"),l=a.getViewLabels(),u=(Wr(n.labelRotate,i.get("rotate"))||0)*fn/180,c=ia.innerTextLayout(n.rotation,u,n.labelDirection),f=r.getCategories&&r.getCategories(!0),d=[],h=ia.isLabelSilent(r),v=r.get("triggerEvent");return k(l,function(m,g){var y=a.scale.type==="ordinal"?a.scale.getRawOrdinalNumber(m.tickValue):m.tickValue,w=m.formattedLabel,_=m.rawLabel,S=i;if(f&&f[y]){var x=f[y];J(x)&&x.textStyle&&(S=new et(x.textStyle,i,r.ecModel))}var C=S.getTextColor()||r.get(["axisLine","lineStyle","color"]),N=a.dataToCoord(y),b=S.getShallow("align",!0)||c.textAlign,T=ie(S.getShallow("alignMinLabel",!0),b),M=ie(S.getShallow("alignMaxLabel",!0),b),D=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||c.textVerticalAlign,A=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:Zt(S,{text:w,align:g===0?T:g===l.length-1?M:b,verticalAlign:g===0?A:g===l.length-1?P:D,fill:oe(C)?C(a.type==="category"?_:a.type==="value"?y+"":y,g):C})});if(E.anid="label_"+y,v){var I=ia.makeAxisEventDataBase(r);I.targetType="axisLabel",I.value=_,I.tickIndex=g,a.type==="category"&&(I.dataIndex=y),ge(E).eventData=I}t.add(E),E.updateTransform(),d.push(E),e.add(E),E.decomposeTransform()}),d}}const mw=ia;function RL(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return BL(r,e,t),r.seriesInvolved&&$L(r,e),r}function BL(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=Ii(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(k(s.getAxes(),Se(m,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&k(v.baseAxes,Se(m,h?"cross":!0,d)),h&&k(v.otherAxes,Se(m,"cross",!1))}function m(g,y,w){var _=w.model.getModel("axisPointer",a),S=_.get("show");if(!(!S||S==="auto"&&!g&&!Od(_))){y==null&&(y=_.get("triggerTooltip")),_=g?VL(w,f,a,t,g,y):_;var x=_.get("snap"),C=_.get("triggerEmphasis"),N=Ii(w.model),b=y||x||w.type==="category",T=e.axesInfo[N]={key:N,axis:w,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:C,involveSeries:b,snap:x,useHandle:Od(_),seriesModels:[],linkGroup:null};u[N]=T,e.seriesInvolved=e.seriesInvolved||b;var M=FL(o,w);if(M!=null){var D=i[M]||(i[M]={axesInfo:{}});D.axesInfo[N]=T,D.mapper=o[M].mapper,T.linkGroup=D}}}})}function VL(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]=fe(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 c=i.get(["label","show"]);if(u.show=c??!0,!o){var f=l.lineStyle=i.get("crossStyle");f&&pe(u,f.textStyle)}}return e.model.getModel("axisPointer",new et(l,r,n))}function $L(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[Ii(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 FL(e,t){for(var r=t.model,n=t.dim,a=0;a<e.length;a++){var o=e[a]||{};if(Id(o[n+"AxisId"],r.id)||Id(o[n+"AxisIndex"],r.componentIndex)||Id(o[n+"AxisName"],r.name))return a}}function Id(e,t){return e==="all"||U(e)&&de(e,t)>=0||e===t}function zL(e){var t=Ld(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=Od(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 Ld(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Ii(e)]}function GL(e){var t=Ld(e);return t&&t.axisPointerModel}function Od(e){return!!e.get(["handle","show"])}function Ii(e){return e.type+"||"+e.id}var Rd={},yw=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,o){this.axisPointerClass&&zL(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=GL(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"&&Rd[r])throw new Error("axisPointer "+r+" exists");Rd[r]=n},t.getAxisPointerClass=function(r){return r&&Rd[r]},t.type="axis",t}(Jt),Bd=De();function HL(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 c=s.length,f=Bd(e).splitAreaColors,d=se(),h=0;if(f)for(var v=0;v<u.length;v++){var m=f.get(u[v].tickValue);if(m!=null){h=(m+(c-1)*v)%c;break}}var g=a.toGlobalCoord(u[0].coord),y=i.getAreaStyle();s=U(s)?s:[s];for(var v=1;v<u.length;v++){var w=a.toGlobalCoord(u[v].coord),_=void 0,S=void 0,x=void 0,C=void 0;a.isHorizontal()?(_=g,S=l.y,x=w-_,C=l.height,g=_+x):(_=l.x,S=g,x=l.width,C=w-S,g=S+C);var N=u[v-1].tickValue;N!=null&&d.set(N,h),t.add(new Pe({anid:N!=null?"area_"+N:null,shape:{x:_,y:S,width:x,height:C},style:pe({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%c}Bd(e).splitAreaColors=d}}}function WL(e){Bd(e).splitAreaColors=null}var UL=["axisLine","axisTickLabel","axisName"],YL=["splitArea","splitLine","minorSplitLine"],_w=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,a,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=kd(s,r),u=new mw(r,G({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(cd(d[h].getOtherAxis(r.axis).scale))return!0;return!1}},l));k(UL,u.add,u),this._axisGroup.add(u.getGroup()),k(YL,function(f){r.get([f,"show"])&&qL[f](this,this._axisGroup,r,s)},this);var c=o&&o.type==="changeAxisOrder"&&o.isInitSort;c||ly(i,this._axisGroup,r),e.prototype.render.call(this,r,n,a,o)}},t.prototype.remove=function(){WL(this)},t.type="cartesianAxis",t}(yw),qL={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=U(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=a.isHorizontal(),c=0,f=a.getTicksCoords({tickModel:o}),d=[],h=[],v=i.getLineStyle(),m=0;m<f.length;m++){var g=a.toGlobalCoord(f[m].coord);u?(d[0]=g,d[1]=l.y,h[0]=g,h[1]=l.y+l.height):(d[0]=l.x,d[1]=g,h[0]=l.x+l.width,h[1]=g);var y=c++%s.length,w=f[m].tickValue,_=new en({anid:w!=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]},v),silent:!0});ei(_.shape,v.lineWidth),t.add(_)}}},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 c=[],f=[],d=i.getLineStyle(),h=0;h<u.length;h++)for(var v=0;v<u[h].length;v++){var m=a.toGlobalCoord(u[h][v].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 en({anid:"minor_line_"+u[h][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});ei(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,r,n){HL(e,t,r,n)}},ww=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(_w),jL=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=ww.type,r}return t.type="yAxis",t}(_w),XL=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Pe({shape:r.coordinateSystem.getRect(),style:pe({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Jt),bw={offset:0};function ZL(e){e.registerComponentView(XL),e.registerComponentModel(gL),e.registerCoordinateSystem("cartesian2d",kL),iw(e,"x",Dd,bw),iw(e,"y",Dd,bw),e.registerComponentView(ww),e.registerComponentView(jL),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var Sw="\0_ec_interaction_mutex";function Cw(e,t){return!!KL(e)[t]}function KL(e){return e[Sw]||(e[Sw]={})}ta({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},it);var JL=function(e){H(t,e);function t(r){var n=e.call(this)||this;n._zr=r;var a=te(n._mousedownHandler,n),o=te(n._mousemoveHandler,n),i=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(fe(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",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(!Dv(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||!fu("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||Cw(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&&Ta(r.event),xw(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:o,oldY:i,newX:n,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){Dv(r)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(r){var n=fu("zoomOnMouseWheel",r,this._opt),a=fu("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,c=o>0?u:1/u;Vd(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(a){var f=Math.abs(o),d=(o>0?1:-1)*(f>3?.4:f>1?.15:.05);Vd(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!Cw(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;Vd(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Ut);function Vd(e,t,r,n,a){e.pointerChecker&&e.pointerChecker(n,a.originX,a.originY)&&(Ta(n.event),xw(e,t,r,n,a))}function xw(e,t,r,n,a){a.isAvailableBehavior=te(fu,null,r,n),e.trigger(t,a)}function fu(e,t,r){var n=r[e];return!e||n&&(!X(n)||t.event[n+"Key"])}const QL=JL;var Tw=en.prototype,$d=Xf.prototype,Nw=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Nw);function Fd(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var eO=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Nw},t.prototype.buildPath=function(r,n){Fd(n)?Tw.buildPath.call(this,r,n):$d.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return Fd(this.shape)?Tw.pointAt.call(this,r):$d.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,a=Fd(n)?[n.x2-n.x1,n.y2-n.y1]:$d.tangentAt.call(this,r);return _c(a,a)},t}(me),zd=["fromSymbol","toSymbol"];function Dw(e){return"_"+e+"Type"}function Aw(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=zh(a),u=Ol(i||0,l);return n+l+u+(o||"")+(s||"")}function Mw(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=zh(a),u=Ol(i||0,l),c=Pr(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=o==null||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=e,c}}function tO(e){var t=new eO({name:"line",subPixelOptimize:!0});return Gd(t.shape,e),t}function Gd(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 rO=function(e){H(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=tO(i);s.shape.percent=0,St(s,{shape:{percent:1}},o,n),this.add(s),k(zd,function(l){var u=Mw(l,r,n);this.add(u),this[Dw(l)]=Aw(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:{}};Gd(l.shape,s),Qe(i,l,o,n),k(zd,function(u){var c=Aw(u,r,n),f=Dw(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=Mw(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 o=r.hostModel,i=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 v=r.getItemModel(n),m=v.getModel("emphasis");s=m.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),u=v.getModel(["select","lineStyle"]).getLineStyle(),f=m.get("disabled"),d=m.get("focus"),h=m.get("blurScope"),c=Un(v)}var g=r.getItemVisual(n,"style"),y=g.stroke;i.useStyle(g),i.style.fill=null,i.style.strokeNoScale=!0,i.ensureState("emphasis").style=s,i.ensureState("blur").style=l,i.ensureState("select").style=u,k(zd,function(C){var N=this.childOfName(C);if(N){N.setColor(y),N.style.opacity=g.opacity;for(var b=0;b<vt.length;b++){var T=vt[b],M=i.getState(T);if(M){var D=M.style||{},A=N.ensureState(T),P=A.style||(A.style={});D.stroke!=null&&(P[N.__isEmptyBrush?"stroke":"fill"]=D.stroke),D.opacity!=null&&(P.opacity=D.opacity)}}N.markRedraw()}},this);var w=o.getRawValue(n);Wa(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(C,N){return o.getFormattedLabel(C,N,r.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(w==null?r.getName(n):isFinite(w)?Ve(w):w)+""});var _=this.getTextContent();if(_){var S=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=S.get("position")||"middle";var x=S.get("distance");U(x)||(x=[x,x]),_.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),Fn(this,d,h,f)},t.prototype.highlight=function(){jo(this)},t.prototype.downplay=function(){Xo(this)},t.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},t.prototype.setLinePoints=function(r){var n=this.childOfName("line");Gd(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,c=l.pointAt(0),f=l.pointAt(u),d=Sv([],f,c);_c(d,d);function h(M,D){var A=M.__specifiedRotation;if(A==null){var P=l.tangentAt(D);M.attr("rotation",(D===1?-1:1)*Math.PI/2-Math.atan2(P[1],P[0]))}else M.attr("rotation",A)}if(n&&(n.setPosition(c),h(n,0),n.scaleX=n.scaleY=i*u,n.markRedraw()),a&&(a.setPosition(f),h(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,m=void 0,g=o.__labelDistance,y=g[0]*i,w=g[1]*i,_=u/2,S=l.tangentAt(_),x=[S[1],-S[0]],C=l.pointAt(_);x[1]>0&&(x[0]=-x[0],x[1]=-x[1]);var N=S[0]<0?-1:1;if(o.__position!=="start"&&o.__position!=="end"){var b=-Math.atan2(S[1],S[0]);f[0]<c[0]&&(b=Math.PI+b),o.rotation=b}var T=void 0;switch(o.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":T=-w,m="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":T=w,m="top";break;default:T=0,m="middle"}switch(o.__position){case"end":o.x=d[0]*y+f[0],o.y=d[1]*w+f[1],v=d[0]>.8?"left":d[0]<-.8?"right":"center",m=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":o.x=-d[0]*y+c[0],o.y=-d[1]*w+c[1],v=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":o.x=y*N+c[0],o.y=c[1]+T,v=S[0]<0?"right":"left",o.originX=-y*N,o.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":o.x=C[0],o.y=C[1]+T,v="center",o.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":o.x=-y*N+f[0],o.y=f[1]+T,v=S[0]>=0?"right":"left",o.originX=y*N,o.originY=-T;break}o.scaleX=o.scaleY=i,o.setStyle({verticalAlign:o.__verticalAlign||m,align:o.__align||v})}},t}(Oe);const nO=rO;var aO=function(){function e(t){this.group=new Oe,this._LineCtor=t||nO}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=kw(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=kw(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!oO(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=r.getItemLayout(a);if(Hd(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){Ha(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var a=t.getItemLayout(r);if(Hd(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(!Hd(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 oO(e){return e.animators&&e.animators.length>0}function kw(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:Un(t)}}function Ew(e){return isNaN(e[0])||isNaN(e[1])}function Hd(e){return e&&!Ew(e[0])&&!Ew(e[1])}const iO=aO;function hu(e,t,r,n,a,o){e=e||0;var i=r[1]-r[0];if(a!=null&&(a=oo(a,[0,i])),o!=null&&(o=Math.max(o,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=oo(s,[0,i]),a=o=oo(s,[a,o]),n=0}t[0]=oo(t[0],r),t[1]=oo(t[1],r);var l=Wd(t,n);t[n]+=e;var u=a||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=oo(t[n],c);var f;return f=Wd(t,n),a!=null&&(f.sign!==l.sign||f.span<a)&&(t[1-n]=t[n]+l.sign*a),f=Wd(t,n),o!=null&&f.span>o&&(t[1-n]=t[n]+f.sign*o),t}function Wd(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 oo(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var Pw={color:"fill",borderColor:"stroke"},sO={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Lr=De(),lO=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return Kl(null,this)},t.prototype.getDataParams=function(r,n,a){var o=e.prototype.getDataParams.call(this,r,n);return a&&(o.info=Lr(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}(Er);const uO=lO;function cO(e,t){return t=t||[0,0],j(["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 fO(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(cO,e)}}}function hO(e,t){return t=t||[0,0],j([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 dO(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(hO,e)}}}function pO(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 vO(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(pO,e)}}}function gO(e,t){return t=t||[0,0],j(["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 mO(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:te(gO,e)}}}function yO(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 Iw={};function _O(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||Y(e,"text")))}function wO(e,t,r){var n=e,a,o,i;if(t==="text")i=n;else{i={},Y(n,"text")&&(i.text=n.text),Y(n,"rich")&&(i.rich=n.rich),Y(n,"textFill")&&(i.fill=n.textFill),Y(n,"textStroke")&&(i.stroke=n.textStroke),Y(n,"fontFamily")&&(i.fontFamily=n.fontFamily),Y(n,"fontSize")&&(i.fontSize=n.fontSize),Y(n,"fontStyle")&&(i.fontStyle=n.fontStyle),Y(n,"fontWeight")&&(i.fontWeight=n.fontWeight),o={type:"text",style:i,silent:!0},a={};var s=Y(n,"textPosition");r?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),Y(n,"textPosition")&&(a.position=n.textPosition),Y(n,"textOffset")&&(a.offset=n.textOffset),Y(n,"textRotation")&&(a.rotation=n.textRotation),Y(n,"textDistance")&&(a.distance=n.textDistance)}return Lw(i,e),k(i.rich,function(l){Lw(l,l)}),{textConfig:a,textContent:o}}function Lw(e,t){t&&(t.font=t.textFont||t.font,Y(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Y(t,"textAlign")&&(e.align=t.textAlign),Y(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Y(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Y(t,"textWidth")&&(e.width=t.textWidth),Y(t,"textHeight")&&(e.height=t.textHeight),Y(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Y(t,"textPadding")&&(e.padding=t.textPadding),Y(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Y(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Y(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Y(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Y(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Y(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Y(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function Ow(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";Rw(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){Rw(s,s)}),n}function Rw(e,t){t&&(Y(t,"fill")&&(e.textFill=t.fill),Y(t,"stroke")&&(e.textStroke=t.fill),Y(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Y(t,"font")&&(e.font=t.font),Y(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Y(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Y(t,"fontSize")&&(e.fontSize=t.fontSize),Y(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Y(t,"align")&&(e.textAlign=t.align),Y(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Y(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Y(t,"width")&&(e.textWidth=t.width),Y(t,"height")&&(e.textHeight=t.height),Y(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Y(t,"padding")&&(e.textPadding=t.padding),Y(t,"borderColor")&&(e.textBorderColor=t.borderColor),Y(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Y(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Y(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Y(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Y(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Y(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Y(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Y(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Y(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Y(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}function Bw(e,t){if(process.env.NODE_ENV!=="production"){var r=e+"^_^"+t;Iw[r]||(console.warn('[ECharts] DEPRECATED: "'+e+'" has been deprecated. '+t),Iw[r]=!0)}}var Vw={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},$w=ye(Vw),du=Sr(or,function(e,t){return e[t]=1,e},{}),Fw=or.join(", "),pu=["","style","shape","extra"],io=De();function Ud(e,t,r,n,a){var o=e+"Animation",i=Kf(e,n,a)||{},s=io(t).userDuring;return i.duration>0&&(i.during=s?te(DO,{el:t,userDuring:s}):null,i.setToFinal=!0,i.scope=e),G(i,r[o]),i}function bO(e,t,r,n){n=n||{};var a=n.dataIndex,o=n.isInit,i=n.clearStyle,s=r.isAnimationEnabled(),l=io(e),u=t.style;l.userDuring=t.during;var c={},f={};if(MO(e,t,f),Gw("shape",t,f),Gw("extra",t,f),!o&&s&&(AO(e,t,c),zw("shape",e,t,c),zw("extra",e,t,c),kO(e,t,u,c)),f.style=u,CO(e,f,i),TO(e,t),s)if(o){var d={};k(pu,function(v){var m=v?t[v]:t;m&&m.enterFrom&&(v&&(d[v]=d[v]||{}),G(v?d[v]:d,m.enterFrom))});var h=Ud("enter",e,t,r,a);h.duration>0&&e.animateFrom(d,h)}else xO(e,t,a||0,r,c);SO(e,t),u?e.dirty():e.markRedraw()}function SO(e,t){for(var r=io(e).leaveToProps,n=0;n<pu.length;n++){var a=pu[n],o=a?t[a]:t;o&&o.leaveTo&&(r||(r=io(e).leaveToProps={}),a&&(r[a]=r[a]||{}),G(a?r[a]:r,o.leaveTo))}}function Yd(e,t,r,n){if(e){var a=e.parent,o=io(e).leaveToProps;if(o){var i=Ud("update",e,t,r,0);i.done=function(){a.remove(e),n&&n()},e.animateTo(o,i)}else a.remove(e),n&&n()}}function so(e){return e==="all"}function CO(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 xO(e,t,r,n,a){if(a){var o=Ud("update",e,t,n,r);o.duration>0&&e.animateFrom(a,o)}}function TO(e,t){Y(t,"silent")&&(e.silent=t.silent),Y(t,"ignore")&&(e.ignore=t.ignore),e instanceof Mn&&Y(t,"invisible")&&(e.invisible=t.invisible),e instanceof me&&Y(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var mr={},NO={setTransform:function(e,t){return process.env.NODE_ENV!=="production"&&ne(Y(du,e),"Only "+Fw+" available in `setTransform`."),mr.el[e]=t,this},getTransform:function(e){return process.env.NODE_ENV!=="production"&&ne(Y(du,e),"Only "+Fw+" available in `getTransform`."),mr.el[e]},setShape:function(e,t){process.env.NODE_ENV!=="production"&&lo(e);var r=mr.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){process.env.NODE_ENV!=="production"&&lo(e);var t=mr.el.shape;if(t)return t[e]},setStyle:function(e,t){process.env.NODE_ENV!=="production"&&lo(e);var r=mr.el,n=r.style;return n&&(process.env.NODE_ENV!=="production"&&_a(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"&&lo(e);var t=mr.el.style;if(t)return t[e]},setExtra:function(e,t){process.env.NODE_ENV!=="production"&&lo(e);var r=mr.el.extra||(mr.el.extra={});return r[e]=t,this},getExtra:function(e){process.env.NODE_ENV!=="production"&&lo(e);var t=mr.el.extra;if(t)return t[e]}};function lo(e){if(process.env.NODE_ENV!=="production"&&(e==="transition"||e==="enterFrom"||e==="leaveTo"))throw new Error('key must not be "'+e+'"')}function DO(){var e=this,t=e.el;if(t){var r=io(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}mr.el=t,n(NO)}}function zw(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]={}),so(l))G(i,o);else for(var u=We(l),c=0;c<u.length;c++){var f=u[c],d=o[f];i[f]=d}else if(so(s)||de(s,e)>=0){!i&&(i=n[e]={});for(var h=ye(o),c=0;c<h.length;c++){var f=h[c],d=o[f];EO(a[f],d)&&(i[f]=d)}}}}}function Gw(e,t,r){var n=t[e];if(n)for(var a=r[e]={},o=ye(n),i=0;i<o.length;i++){var s=o[i];a[s]=Lo(n[s])}}function AO(e,t,r){for(var n=t.transition,a=so(n)?or:We(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"&&Hw(i,"el.transition"),r[i]=s}}}function MO(e,t,r){for(var n=0;n<$w.length;n++){var a=$w[n],o=Vw[a],i=t[a];i&&(r[o[0]]=i[0],r[o[1]]=i[1])}for(var n=0;n<or.length;n++){var s=or[n];t[s]!=null&&(r[s]=t[s])}}function kO(e,t,r,n){if(r){var a=e.style,o;if(a){var i=r.transition,s=t.transition;if(i&&!so(i)){var l=We(i);!o&&(o=n.style={});for(var u=0;u<l.length;u++){var c=l[u],f=a[c];o[c]=f}}else if(e.getAnimationStyleProps&&(so(s)||so(i)||de(s,"style")>=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!o&&(o=n.style={});for(var v=ye(r),u=0;u<v.length;u++){var c=v[u];if(h[c]){var f=a[c];o[c]=f}}}}}}}function EO(e,t){return at(e)?e!==t:e!=null&&isFinite(e)}var Hw;process.env.NODE_ENV!=="production"&&(Hw=function(e,t){Y(du,e)||ze("Prop `"+e+"` is not a permitted in `"+t+"`. Only `"+ye(du).join("`, `")+"` are permitted.")});var Ww=De(),PO=["percent","easing","shape","style","extra"];function IO(e){e.stopAnimation("keyframe"),e.attr(Ww(e))}function Uw(e,t,r){if(!(!r.isAnimationEnabled()||!t)){if(U(t)){k(t,function(s){Uw(e,s,r)});return}var n=t.keyframes,a=t.duration;if(r&&a==null){var o=Kf("enter",r,0);a=o&&o.duration}if(!(!n||!a)){var i=Ww(e);k(pu,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=ye(d);if(s||(h=Ye(h,function(g){return de(PO,g)<0})),!!h.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var v=0;v<f.length;v++)f[v]!==l&&f[v].targetName===l.targetName&&f[v].stopTracks(h);s&&(i[s]=i[s]||{});var m=s?i[s]:i;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 Or="emphasis",hn="normal",qd="blur",jd="select",dn=[hn,Or,qd,jd],Xd={normal:["itemStyle"],emphasis:[Or,"itemStyle"],blur:[qd,"itemStyle"],select:[jd,"itemStyle"]},Zd={normal:["label"],emphasis:[Or,"label"],blur:[qd,"label"],select:[jd,"label"]},LO=["x","y"],OO="e\0\0",Ft={normal:{},emphasis:{},blur:{},select:{}},Yw={cartesian2d:fO,geo:dO,single:vO,polar:mO,calendar:yO};function vu(e){return e instanceof me}function Kd(e){return e instanceof Mn}function RO(e,t){t.copyTransform(e),Kd(t)&&Kd(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,vu(t)&&vu(e)&&t.setShape(e.shape))}var BO=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,o){this._progressiveEls=null;var i=this._data,s=r.getData(),l=this.group,u=jw(r,s,n,a);i||l.removeAll(),s.diff(i).add(function(f){ep(a,null,f,u(f,o),r,l,s)}).remove(function(f){var d=i.getItemGraphicEl(f);d&&Yd(d,Lr(d).option,r)}).update(function(f,d){var h=i.getItemGraphicEl(d);ep(a,h,f,u(f,o),r,l,s)}).execute();var c=r.get("clip",!0)?L1(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,o,i){var s=n.getData(),l=jw(n,s,a,o),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=ep(null,null,f,l(f,i),n,this.group,s);d&&(d.traverse(c),u.push(d))}},t.prototype.eachRendered=function(r){Ha(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}(Qt);const VO=BO;function Jd(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=Qw(n);r=ol(o,null,a,n.layout||"center"),Lr(r).customPathData=o}else if(t==="image")r=new Qr({}),Lr(r).customImagePath=e.style.image;else if(t==="text")r=new Ue({});else if(t==="group")r=new Oe;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var i=ty(t);if(!i){var s="";process.env.NODE_ENV!=="production"&&(s='graphic type "'+t+'" can not be found.'),st(s)}r=new i}return Lr(r).customGraphicType=t,r.name=e.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function Qd(e,t,r,n,a,o,i){IO(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=LO);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;Y(u,"textFill")&&(u.fill=u.textFill),Y(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=vu(t)?l.decal:null;e&&f&&(f.dirty=!0,c=Fl(f,e)),l.__decalPattern=c}if(Kd(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}bO(t,n,o,{dataIndex:r,isInit:i,clearStyle:!0}),Uw(t,n.keyframeAnimation,o)}function qw(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),_m(o)}}function $O(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<dn.length;s++)FO(n,t,dn[s])}}function FO(e,t,r){var n=r===hn,a=n?t:gu(t,r),o=a?a.z2:null,i;o!=null&&(i=n?e:e.ensureState(r),i.z2=o||0)}function jw(e,t,r,n){var a=e.get("renderItem"),o=e.coordinateSystem,i={};o&&(process.env.NODE_ENV!=="production"&&(ne(a,"series.render is required."),ne(o.prepareCustoms||Yw[o.type],"This coordSys does not support custom series.")),i=o.prepareCustoms?o.prepareCustoms(o):Yw[o.type](o));for(var s=pe({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:S,style:C,ordinalRawValue:x,styleEmphasis:N,visual:M,barLayout:D,currentSeriesIndices:A,font:P},i.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:i.coordSys,dataInsideLength:t.count(),encode:zO(e.getData())},u,c,f={},d={},h={},v={},m=0;m<dn.length;m++){var g=dn[m];h[g]=e.getModel(Xd[g]),v[g]=e.getModel(Zd[g])}function y(E){return E===u?c||(c=t.getItemModel(E)):t.getItemModel(E)}function w(E,I){return t.hasItemOption?E===u?f[I]||(f[I]=y(E).getModel(Xd[I])):y(E).getModel(Xd[I]):h[I]}function _(E,I){return t.hasItemOption?E===u?d[I]||(d[I]=y(E).getModel(Zd[I])):y(E).getModel(Zd[I]):v[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 x(E,I){I==null&&(I=u),E=E||0;var L=t.getDimensionInfo(E);if(!L){var R=t.getDimensionIndex(E);return R>=0?t.getStore().get(R,I):void 0}var B=t.get(L.name,I),V=L&&L.ordinalMeta;return V?V.categories[B]:B}function C(E,I){process.env.NODE_ENV!=="production"&&Bw("api.style","Please write literal style directly instead."),I==null&&(I=u);var L=t.getItemVisual(I,"style"),R=L&&L.fill,B=L&&L.opacity,V=w(I,hn).getItemStyle();R!=null&&(V.fill=R),B!=null&&(V.opacity=B);var W={inheritColor:X(R)?R:"#000"},q=_(I,hn),Q=Zt(q,null,W,!1,!0);Q.text=q.getShallow("show")?ie(e.getFormattedLabel(I,hn),Ei(t,I)):null;var ue=sl(q,W,!1);return T(E,V),V=Ow(V,Q,ue),E&&b(V,E),V.legacy=!0,V}function N(E,I){process.env.NODE_ENV!=="production"&&Bw("api.styleEmphasis","Please write literal style directly instead."),I==null&&(I=u);var L=w(I,Or).getItemStyle(),R=_(I,Or),B=Zt(R,null,null,!0,!0);B.text=R.getShallow("show")?Ur(e.getFormattedLabel(I,Or),e.getFormattedLabel(I,hn),Ei(t,I)):null;var V=sl(R,null,!0);return T(E,L),L=Ow(L,B,V),E&&b(L,E),L.legacy=!0,L}function b(E,I){for(var L in I)Y(I,L)&&(E[L]=I[L])}function T(E,I){E&&(E.textFill&&(I.textFill=E.textFill),E.textPosition&&(I.textPosition=E.textPosition))}function M(E,I){if(I==null&&(I=u),Y(Pw,E)){var L=t.getItemVisual(I,"style");return L?L[Pw[E]]:null}if(Y(sO,E))return t.getItemVisual(I,E)}function D(E){if(o.type==="cartesian2d"){var I=o.getBaseAxis();return vP(pe({axis:I},E))}}function A(){return r.getCurrentSeriesIndices()}function P(E){return gy(E,r)}}function zO(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 ep(e,t,r,n,a,o,i){if(!n){o.remove(t);return}var s=tp(e,t,r,n,a,o);return s&&i.setItemGraphicEl(r,s),s&&Fn(s,n.focus,n.blurScope,n.emphasisDisabled),s}function tp(e,t,r,n,a,o){process.env.NODE_ENV!=="production"&&ne(n,"should not have an null/undefined element setting");var i=-1,s=t;t&&Xw(t,n,a)&&(i=de(o.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=Jd(n),s&&RO(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Ft.normal.cfg=Ft.normal.conOpt=Ft.emphasis.cfg=Ft.emphasis.conOpt=Ft.blur.cfg=Ft.blur.conOpt=Ft.select.cfg=Ft.select.conOpt=null,Ft.isLegacy=!1,HO(u,r,n,a,l,Ft),GO(u,r,n,a,l),Qd(e,u,r,n,Ft,a,l),Y(n,"info")&&(Lr(u).info=n.info);for(var c=0;c<dn.length;c++){var f=dn[c];if(f!==hn){var d=gu(n,f),h=rp(n,d,f);qw(f,u,d,h,Ft)}}return $O(u,n,a),n.type==="group"&&WO(e,u,r,n,a),i>=0?o.replaceAt(u,i):o.add(u),u}function Xw(e,t,r){var n=Lr(e),a=t.type,o=t.shape,i=t.style;return r.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&jO(o)&&Qw(o)!==n.customPathData||a==="image"&&Y(i,"image")&&i.image!==n.customImagePath}function GO(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&&Xw(i,o,n)&&(i=null),i||(i=Jd(o),process.env.NODE_ENV!=="production"&&ne(vu(i),"Only any type of `path` can be used in `clipPath`, rather than "+i.type+"."),e.setClipPath(i)),Qd(null,i,t,o,null,n,a)}}function HO(e,t,r,n,a,o){if(!e.isGroup){Zw(r,null,o),Zw(r,Or,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 c=e.getTextContent();if(i===!1)c&&e.removeTextContent();else{i=o.normal.conOpt=i||{type:"text"},c?c.clearStates():(c=Jd(i),e.setTextContent(c)),Qd(null,c,t,i,null,n,a);for(var f=i&&i.style,d=0;d<dn.length;d++){var h=dn[d];if(h!==hn){var v=o[h].conOpt;qw(h,c,v,rp(i,v,h),null)}}f?c.dirty():c.markRedraw()}}}}function Zw(e,t,r){var n=t?gu(e,t):e,a=t?rp(e,n,Or):e.style,o=e.type,i=n?n.textConfig:null,s=e.textContent,l=s?t?gu(s,t):s:null;if(a&&(r.isLegacy||_O(a,o,!!i,!!l))){r.isLegacy=!0;var u=wO(a,o,!t);!i&&u.textConfig&&(i=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=i,f.conOpt=l}function gu(e,t){return t?e?e[t]:null:e}function rp(e,t,r){var n=t&&t.style;return n==null&&r===Or&&e&&(n=e.styleEmphasis),n}function WO(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){YO({api:e,oldChildren:t.children()||[],newChildren:o||[],dataIndex:r,seriesModel:a,group:t});return}u&&t.removeAll();for(var c=0;c<i;c++){var f=o[c],d=t.childAt(c);f?(f.ignore==null&&(f.ignore=!1),tp(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 v=t.childAt(h);UO(t,v,a)}}}function UO(e,t,r){t&&Yd(t,Lr(e).option,r)}function YO(e){new F_(e.oldChildren,e.newChildren,Kw,Kw,e).add(Jw).update(Jw).remove(qO).execute()}function Kw(e,t){var r=e&&e.name;return r??OO+t}function Jw(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,a=t!=null?r.oldChildren[t]:null;tp(r.api,a,r.dataIndex,n,r.seriesModel,r.group)}function qO(e){var t=this.context,r=t.oldChildren[e];r&&Yd(r,Lr(r).option,t.seriesModel)}function Qw(e){return e&&(e.pathData||e.d)}function jO(e){return e&&(Y(e,"pathData")||Y(e,"d"))}function XO(e){e.registerChartView(VO),e.registerSeriesModel(uO)}var sa=De(),eb=fe,np=te,ZO=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 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 Oe,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Se(tb,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}ab(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=Ld(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=sa(t).pointerEl=new SM[o.type](eb(r.pointer));t.add(i)}},e.prototype.createLabelEl=function(t,r,n,a){if(r.label){var o=sa(t).labelEl=new Ue(eb(r.label));t.add(o),nb(o,a)}},e.prototype.updatePointerEl=function(t,r,n){var a=sa(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=sa(t).labelEl;o&&(o.setStyle(r.label.style),n(o,{x:r.label.x,y:r.label.y}),nb(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=th(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Ta(u.event)},onmousedown:np(this._onHandleDragMove,this,0,0),drift:np(this._onHandleDragMove,this),ondragend:np(this._onHandleDragEnd,this)}),n.add(a)),ab(a,r,!1),a.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");U(l)||(l=[l,l]),a.scaleX=l[0]/2,a.scaleY=l[1]/2,Ml(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){tb(this._axisPointerModel,!r&&this._moveAnimation,this._handle,ap(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(ap(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(ap(a)),sa(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),kl(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 tb(e,t,r,n){rb(sa(r).lastProp,n)||(sa(r).lastProp=n,t?Qe(r,n,e):(r.stopAnimation(),r.attr(n)))}function rb(e,t){if(J(e)&&J(t)){var r=!0;return k(t,function(n,a){r=r&&rb(e[a],n)}),!!r}else return e===t}function nb(e,t){e[t.get(["label","show"])?"show":"hide"]()}function ap(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function ab(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 KO=ZO;function JO(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 QO(e,t,r,n,a){var o=r.get("value"),i=ob(o,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=_l(s.get("padding")||0),u=s.getFont(),c=sf(i,u),f=a.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],v=a.align;v==="right"&&(f[0]-=d),v==="center"&&(f[0]-=d/2);var m=a.verticalAlign;m==="bottom"&&(f[1]-=h),m==="middle"&&(f[1]-=h/2),eR(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:Zt(s,{text:i,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function eR(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 ob(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:gd(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(i)?o=i.replace("{value}",o):oe(i)&&(o=i(s))}return o}function ib(e,t,r){var n=Na();return Pc(n,n,r.rotation),Ec(n,n,r.position),ti([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function tR(e,t,r,n,a,o){var i=mw.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),QO(t,n,a,o,{position:ib(n.axis,e,r),align:i.textAlign,verticalAlign:i.textVerticalAlign})}function rR(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function nR(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var aR=function(e){H(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"),c=sb(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=JO(o),h=oR[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var v=kd(l.model,a);tR(n,r,v,a,o,i)},t.prototype.getHandleTransform=function(r,n,a){var o=kd(n.axis.grid.model,n,{labelInside:!1});o.labelMargin=a.get(["handle","margin"]);var i=ib(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=sb(s,i).getOtherAxis(i).getGlobalExtent(),c=i.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 v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:h,tooltipOption:v[c]}},t}(KO);function sb(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var oR={line:function(e,t,r){var n=rR([t,r[0]],[t,r[1]],lb(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:nR([t-n/2,r[0]],[n,a],lb(e))}}};function lb(e){return e.dim==="x"?0:1}const iR=aR;var sR=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Ne);const lR=sR;var Rr=De(),uR=k;function ub(e,t,r){if(!ae.node){var n=t.getZr();Rr(n).records||(Rr(n).records={}),cR(n,t);var a=Rr(n).records[e]||(Rr(n).records[e]={});a.handler=r}}function cR(e,t){if(Rr(e).initialized)return;Rr(e).initialized=!0,r("click",Se(cb,"click")),r("mousemove",Se(cb,"mousemove")),r("globalout",hR);function r(n,a){e.on(n,function(o){var i=dR(t);uR(Rr(e).records,function(s){s&&a(s,o,i.dispatchAction)}),fR(i.pendings,t)})}}function fR(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 hR(e,t,r){e.handler("leave",null,r)}function cb(e,t,r,n){t.handler(e,r,n)}function dR(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 op(e,t){if(!ae.node){var r=t.getZr(),n=(Rr(r).records||{})[e];n&&(Rr(r).records[e]=null)}}var pR=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var o=n.getComponent("tooltip"),i=r.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";ub("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){op("axisPointer",n)},t.prototype.dispose=function(r,n){op("axisPointer",n)},t.type="axisPointer",t}(Jt);const vR=pR;function fb(e,t){var r=[],n=e.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var o=a.getData(),i=Nn(o,e);if(i==null||i<0||U(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(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,v=o.mapDimension(d),m=[];m[h]=o.get(v,i),m[1-h]=o.get(o.getCalculationInfo("stackResultDimension"),i),r=l.dataToPoint(m)||[]}else r=l.dataToPoint(o.getValues(j(l.dimensions,function(y){return o.mapDimension(y)}),i))||[];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 hb=De();function gR(e,t,r){var n=e.currTrigger,a=[e.x,e.y],o=e,i=e.dispatchAction||te(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){mu(a)&&(a=fb({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=mu(a),u=o.axesInfo,c=s.axesInfo,f=n==="leave"||mu(a),d={},h={},v={list:[],map:{}},m={showPointer:Se(yR,h),showTooltip:Se(_R,v)};k(s.coordSysMap,function(y,w){var _=l||y.containPoint(a);k(s.coordSysAxesInfo[w],function(S,x){var C=S.axis,N=CR(u,S);if(!f&&_&&(!u||N)){var b=N&&N.value;b==null&&!l&&(b=C.pointToData(a)),b!=null&&db(S,b,m,!1,d)}})});var g={};return k(c,function(y,w){var _=y.linkGroup;_&&!h[w]&&k(_.axesInfo,function(S,x){var C=h[x];if(S!==y&&C){var N=C.value;_.mapper&&(N=y.axis.scale.parse(_.mapper(N,pb(S),pb(y)))),g[y.key]=N}})}),k(g,function(y,w){db(c[w],y,m,!0,d)}),wR(h,c,d),bR(v,a,e,i),SR(c,i,r),d}}function db(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=mR(t,e),s=i.payloadBatch,l=i.snapToValue;s[0]&&a.seriesIndex==null&&G(a,s[0]),!n&&e.snap&&o.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,i,l)}}function mR(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 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 v=e-f,m=Math.abs(v);m<=i&&((m<i||v>=0&&s<0)&&(i=m,s=v,a=f,o.length=0),k(d,function(g){o.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:o,snapToValue:a}}function yR(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function _R(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=Ii(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: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 wR(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 bR(e,t,r,n){if(mu(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 SR(e,t,r){var n=r.getZr(),a="axisPointerLastHighlights",o=hb(n)[a]||{},i=hb(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;i[h]=d})});var s=[],l=[];k(o,function(u,c){!i[c]&&l.push(u)}),k(i,function(u,c){!o[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 CR(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 pb(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 mu(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function vb(e){yw.registerAxisPointerClass("CartesianAxisPointer",iR),e.registerComponentModel(lR),e.registerComponentView(vR),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=RL(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},gR)}function xR(e){vr(ZL),vr(vb)}var gb=["x","y","radius","angle","single"],TR=["cartesian2d","polar","singleAxis"];function NR(e){var t=e.get("coordinateSystem");return de(TR,t)>=0}function pn(e){return process.env.NODE_ENV!=="production"&&ne(e),e+"Axis"}function DR(e,t){var r=se(),n=[],a=se();e.eachComponent({mainType:"dataZoom",query:t},function(c){a.get(c.uid)||s(c)});var o;do o=!1,e.eachComponent("dataZoom",i);while(o);function i(c){!a.get(c.uid)&&l(c)&&(s(c),o=!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 v=r.get(d);v&&v[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(r.get(f)||r.set(f,[]))[d]=!0})}return n}function mb(e){var t=e.ecModel,r={infoList:[],infoMap:se()};return e.eachTargetAxis(function(n,a){var o=t.getComponent(pn(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 ip=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}(),yu=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,a){var o=yb(r);this.settledOption=o,this.mergeDefaultAndTheme(r,a),this._doInit(o)},t.prototype.mergeOption=function(r){var n=yb(r);ve(this.option,r,!0),ve(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var a=this.settledOption;k([["start","startValue"],["end","endValue"]],function(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=se(),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(gb,function(a){var o=this.getReferringComponents(pn(a),uD);if(o.specified){n=!0;var i=new ip;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(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new ip;if(d.add(f.componentIndex),r.set(c,d),o=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",pt).models[0];h&&k(u,function(v){f.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",pt).models[0]&&d.add(v.componentIndex)})}}}o&&k(gb,function(u){if(o){var c=a.findComponents({mainType:pn(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new ip;f.add(c[0].componentIndex),r.set(u,f),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(pn(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"&&ne(r&&n!=null);var a=this._targetAxisInfoMap.get(r);if(a&&a.indexMap[n])return this.ecModel.getComponent(pn(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"&&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}(Ne);function yb(e){var t={};return k(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var AR=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,o){this.dataZoomModel=r,this.ecModel=n,this.api=a},t.type="dataZoom",t}(Jt);const _b=AR;var uo=k,wb=$o,MR=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(NR(r)){var n=pn(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 fe(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;uo(["start","end"],function(d,h){var v=t[d],m=t[d+"Value"];o[h]==="percent"?(v==null&&(v=i[h]),m=a.parse(qe(v,i,r))):(u=!0,m=m==null?r[h]:a.parse(m),v=qe(m,r,i)),l[h]=m==null||isNaN(m)?r[h]:m,s[h]=v==null||isNaN(v)?i[h]:v}),wb(l),wb(s);var c=this._minMaxSpan;u?f(l,s,r,i,!1):f(s,l,i,r,!0);function f(d,h,v,m,g){var y=g?"Span":"ValueSpan";hu(0,d,v,"all",c["min"+y],c["max"+y]);for(var w=0;w<2;w++)h[w]=qe(d[w],v,m,!0),g&&(h[w]=a.parse(h[w]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=kR(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;uo(a,function(l){var u=l.getData(),c=u.mapDimensionsAll(n);if(c.length){if(o==="weakFilter"){var f=u.getStore(),d=j(c,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var v,m,g,y=0;y<c.length;y++){var w=f.get(d[y],h),_=!isNaN(w),S=w<i[0],x=w>i[1];if(_&&!S&&!x)return!0;_&&(g=!0),S&&(v=!0),x&&(m=!0)}return g&&v&&m})}else uo(c,function(h){if(o==="empty")l.setData(u=u.map(h,function(m){return s(m)?m:NaN}));else{var v={};v[h]=i,u.selectRange(v)}});uo(c,function(h){u.setApproximateExtent(i,h)})}});function s(l){return l>=i[0]&&l<=i[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;uo(["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=qe(n[0]+i,n,[0,100],!0):o!=null&&(i=qe(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=_g(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 kR(e,t,r){var n=[1/0,-1/0];uo(r,function(i){GP(n,i.getData(),t)});var a=e.getAxisModel(),o=f1(a.axis.scale,a,n).calculate();return[o.min,o.max]}var ER={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(o){o.eachTargetAxis(function(i,s){var l=e.getComponent(pn(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 MR(a,o,s,e),r.push(i.__dzAxisProxy))});var n=se();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 PR=ER;function IR(e){e.registerAction("dataZoom",function(t,r){var n=DR(r,t);k(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var bb=!1;function Sb(e){bb||(bb=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,PR),IR(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function LR(e,t){var r=_l(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Pe({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 OR=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Ne);const RR=OR;function Cb(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function xb(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 Tb=xb(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),BR=xb(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Nb(e,t){if(!e)return t;t=Iy(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function VR(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?t?r[t]:r:null}var $R=Nb(BR,"transition"),sp=Nb(Tb,"transform"),FR="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ae.transform3dSupported?"will-change:transform;":"");function zR(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function GR(e,t,r){if(!X(r)||r==="inside")return"";var n=e.get("backgroundColor"),a=e.get("borderWidth");t=qn(t);var o=zR(r),i=Math.max(Math.round(a)*1.5,6),s="",l=sp+":",u;de(["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 c=u*Math.PI/180,f=i+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+=";"+o+":-"+h+"px";var v=t+" solid "+a+"px;",m=["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="'+m.join("")+'"></div>'}function HR(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?","+sp+n:",left"+n+",top"+n),$R+":"+a}function Db(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 o=ae.transform3dSupported,i="translate"+(o?"3d":"")+"("+n+","+a+(o?",0":"")+")";return r?"top:0;left:0;"+sp+":"+i+";":[["top",0],["left",0],[Tb,i]]}function WR(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 UR(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"),c=e.getModel("textStyle"),f=M0(e,"html"),d=l+"px "+u+"px "+i+"px "+s;return n.push("box-shadow:"+d),t&&a&&n.push(HR(a,r)),o&&n.push("background-color:"+o),k(["width","color","radius"],function(h){var v="border-"+h,m=Iy(v),g=e.get(m);g!=null&&n.push(v+":"+g+(h==="color"?"":"px"))}),n.push(WR(c)),f!=null&&n.push("padding:"+_l(f).join("px ")+"px"),n.join(";")+";"}function Ab(e,t,r,n,a){var o=t&&t.painter;if(r){var i=o&&o.getViewportRoot();i&&IT(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 YR=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(),o=r.appendTo,i=o&&(X(o)?document.querySelector(o):ya(o)?o:oe(o)&&o(t.getDom()));Ab(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,c=a.painter.getViewportRoot();At(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=VR(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=FR+UR(t,!this._firstShow,this._longHide)+Db(o[0],o[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,o){var i=this.el;if(t==null){i.innerHTML="";return}var s="";if(X(o)&&n.get("trigger")==="item"&&!Cb(n)&&(s=GR(n,a,o)),X(t))i.innerHTML=t+s;else if(t){i.innerHTML="",U(t)||(t=[t]);for(var l=0;l<t.length;l++)ya(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(Ab(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var a=this.el.style,o=Db(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",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 qR=YR;var jR=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),kb(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;J(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:M0(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=Mb(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;kb(a,this._zr,t,r),t=a[0],r=a[1];var o=n.style,i=vn(o.borderWidth||0),s=Mb(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(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 vn(e){return Math.max(0,e)}function Mb(e){var t=vn(e.shadowBlur||0),r=vn(e.shadowOffsetX||0),n=vn(e.shadowOffsetY||0);return{left:vn(t-r),right:vn(t+r),top:vn(t-n),bottom:vn(t+n)}}function kb(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var XR=new Pe({shape:{x:-1,y:-1,width:2,height:2}}),ZR=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(ae.node||!n.getDom())){var a=r.getComponent("tooltip"),o=this._renderMode=fD(a.get("renderMode"));this._tooltipContent=o==="richText"?new jR(n):new qR(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 o=this._tooltipContent;o.update(r),o.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Ml(this,"_updatePosition",50,"fixRate"):kl(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");ub("itemTooltip",this._api,te(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||ae.node||!a.getDom())){var i=Eb(o,a);this._ticket="";var s=o.dataByCoordSys,l=eB(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 c=XR;c.x=o.x,c.y=o.y,c.update(),ge(c).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:c},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 f=fb(o,n),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.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(Eb(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 c=u.getData(),f=Li([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.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=ge(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;mi(a,function(c){if(ge(c).dataIndex!=null)return l=c,!0;if(ge(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,o=this._tooltipModel,i=[n.offsetX,n.offsetY],s=Li([n.tooltipOption],o),l=this._renderMode,u=[],c=Jn("section",{blocks:[],noHeader:!0}),f=[],d=new Lh;k(r,function(w){k(w.dataByAxis,function(_){var S=a.getComponent(_.axisDim+"Axis",_.axisIndex),x=_.value;if(!(!S||x==null)){var C=ob(x,S.axis,a,_.seriesDataIndices,_.valueLabelOpt),N=Jn("section",{header:C,noHeader:!nr(C),sortBlocks:!0,blocks:[]});c.blocks.push(N),k(_.seriesDataIndices,function(b){var T=a.getSeriesByIndex(b.seriesIndex),M=b.dataIndexInside,D=T.getDataParams(M);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=gd(S.axis,{value:x}),D.axisValueLabel=C,D.marker=d.makeTooltipMarker("item",qn(D.color),l);var A=v0(T.formatTooltip(M,!0,null)),P=A.frag;if(P){var E=Li([T],o).get("valueFormatter");N.blocks.push(E?G({valueFormatter:E},P):P)}A.text&&f.push(A.text),u.push(D)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,v=s.get("order"),m=D0(c,d,l,v,a.get("useUTC"),s.get("textStyle"));m&&f.unshift(m);var g=l==="richText"?`
|
|
41
|
+
`];function Jn(e,t){return t.type=e,t}function Ph(e){return e.type==="section"}function x0(e){return Ph(e)?tE:rE}function D0(e){if(Ph(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return M(e.blocks,function(a){var i=D0(a);i>=t&&(t=i+ +(n&&(!i||Ph(a)&&!a.noHeader)))}),t}return 0}function tE(e,t,r,n){var a=t.noHeader,i=nE(D0(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(Y(u,l)){var c=new $M(u[l],null);s.sort(function(v,m){return c.evaluate(v.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}M(s,function(v,m){var g=t.valueFormatter,y=x0(v)(g?G(G({},e),{valueFormatter:g}):e,v,m>0?i.html:0,n);y!=null&&o.push(y)});var f=e.renderMode==="richText"?o.join(i.richText):Ih(o.join(""),a?r:i.html);if(a)return f;var d=hh(t.header,"ordinal",e.useUTC),h=N0(n,e.renderMode).nameStyle;return e.renderMode==="richText"?k0(e,d,h)+i.richText+f:Ih('<div style="'+h+";"+T0+';">'+At(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],j(S,function(T,C){return hh(T,U(h)?h[C]:h,u)})};if(!(i&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",a),d=i?"":hh(l,"ordinal",u),h=t.valueType,v=o?[]:c(t.value,t.dataIndex),m=!s||!i,g=!s&&i,y=N0(n,a),_=y.nameStyle,w=y.valueStyle;return a==="richText"?(s?"":f)+(i?"":k0(e,d,_))+(o?"":oE(e,v,m,g,w)):Ih((s?"":f)+(i?"":aE(d,!s,_))+(o?"":iE(v,m,g,w)),r)}}function A0(e,t,r,n,a,i){if(e){var o=x0(e),s={useUTC:a,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,i)}}function nE(e){return{html:QM[e],richText:eE[e]}}function Ih(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+T0+';">'+e+r+"</div>"}function aE(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+At(e)+"</span>"}function iE(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+'">'+j(e,function(o){return At(o)}).join(" ")+"</span>"}function k0(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function oE(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 sE(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return qn(n)}function M0(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var Lh=function(){function e(){this.richTextStyles={},this._nextStyleNameId=Tg()}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=qk({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)?M(r,function(i){return G(n,i)}):G(n,r);var a=this._generateStyleName();return this.richTextStyles[a]=n,"{"+a+"|"+t+"}"},e}();function lE(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,a=t.getData(),i=a.mapDimensionsAll("defaultedTooltip"),o=i.length,s=t.getRawValue(r),l=U(s),u=sE(t,r),c,f,d,h;if(o>1||l&&!o){var v=uE(s,t,r,i,u);c=v.inlineValues,f=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(o){var m=a.getDimensionInfo(i[0]);h=c=Ja(a,r,i[0]),f=m.type}else h=c=l?s[0]:s;var g=vf(t),y=g&&t.name||"",_=a.getName(r),w=n?y:_;return Jn("section",{header:y,noHeader:n||!g,sortParam:h,blocks:[Jn("nameValue",{markerType:"item",markerColor:u,name:w,noName:!nr(w),value:c,valueType:f,dataIndex:r})].concat(d||[])})}function uE(e,t,r,n,a){var i=t.getData(),o=Sr(e,function(f,d,h){var v=i.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?M(n,function(f){c(Ja(i,r,f),f)}):M(e,c);function c(f,d){var h=i.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(Jn("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 rn=De();function xl(e,t){return e.getName(t)||e.getId(t)}var cE="__universalTransitionEnabled",Dl=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,a){this.seriesIndex=this.componentIndex,this.dataTask=fo({count:hE,reset:dE}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,a);var i=rn(this).sourceManager=new JM(this);i.prepareSource();var o=this.getInitialData(r,a);P0(o,this),this.dataTask.context.data=o,process.env.NODE_ENV!=="production"&&ne(o,"getInitialData returned invalid data."),rn(this).dataBeforeProcessed=o,E0(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var a=io(this),i=a?oo(r):{},o=this.subType;xe.hasClass(o)&&(o+="Series"),ve(r,n.getTheme().get(this.subType)),ve(r,this.getDefaultOption()),Is(r,"label",["show"]),this.fillDataTextStyle(r.data),a&&ja(r,i,a)},t.prototype.mergeOption=function(r,n){r=ve(this.option,r,!0),this.fillDataTextStyle(r.data);var a=io(this);a&&ja(this.option,r,a);var i=rn(this).sourceManager;i.dirty(),i.prepareSource();var o=this.getInitialData(r,n);P0(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,rn(this).dataBeforeProcessed=o,E0(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!ot(r))for(var n=["show"],a=0;a<r.length;a++)r[a]&&r[a].label&&Is(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=Oh(this);if(n){var a=n.context.data;return r==null?a:a.getLinkedData(r)}else return rn(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=Oh(this);if(n){var a=n.context;a.outputData=r,n!==this.dataTask&&(a.data=r)}rn(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return se(r)},t.prototype.getSourceManager=function(){return rn(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return rn(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,a){return lE({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(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=mh.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=xl(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=ye(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[xl(i,r)])&&!i.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[cE])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"){J(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=n[c],d=xl(r,f);u[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(f)}}else if(s==="single"||s===!0){var h=n[l-1],d=xl(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 xe.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}(xe);Wt(Dl,v0),Wt(Dl,mh),Rg(Dl,xe);function E0(e){var t=e.name;vf(e)||(e.name=fE(e)||t)}function fE(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return M(r,function(a){var i=t.getDimensionInfo(a);i.displayName&&n.push(i.displayName)}),n.join(" ")}function hE(e){return e.model.getRawData().count()}function dE(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),pE}function pE(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function P0(e,t){M(NN(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Se(vE,t))})}function vE(e,t){var r=Oh(e);return r&&r.setOutputEnd((t||this).count()),t}function Oh(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 Er=Dl;var Rh=function(){function e(){this.group=new Oe,this.uid=ul("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}();yf(Rh),Ls(Rh);const Jt=Rh;function Bh(){var e=De();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 I0=De(),gE=Bh(),Vh=function(){function e(){this.group=new Oe,this.uid=ul("viewChart"),this.renderTask=fo({plan:mE,reset:yE}),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"&&Ke("Unknown dataType "+a.dataType);return}O0(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"&&Ke("Unknown dataType "+a.dataType);return}O0(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){Ha(this.group,t)},e.markUpdateMethod=function(t,r){I0(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function L0(e,t,r){e&&$a(e)&&(t==="emphasis"?qi:ji)(e,r)}function O0(e,t,r){var n=xn(e,t),a=t&&t.highlightKey!=null?MA(t.highlightKey):null;n!=null?M(We(n),function(i){L0(e.getItemGraphicEl(i),r,a)}):e.eachItemGraphicEl(function(i){L0(i,r,a)})}yf(Vh,["dispose"]),Ls(Vh);function mE(e){return gE(e.model)}function yE(e){var t=e.model,r=e.ecModel,n=e.api,a=e.payload,i=t.pipelineContext.progressiveRender,o=e.view,s=a&&I0(a).updateMethod,l=i?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,a),_E[l]}var _E={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};const Qt=Vh;var Al="\0__throttleOriginMethod",R0="\0__throttleRate",B0="\0__throttleType";function $h(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=[],v=0;v<arguments.length;v++)h[v]=arguments[v];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 kl(e,t,r,n){var a=e[t];if(a){var i=a[Al]||a,o=a[B0],s=a[R0];if(s!==r||o!==n){if(r==null||!n)return e[t]=i;a=e[t]=$h(i,r,n==="debounce"),a[Al]=i,a[B0]=n,a[R0]=r}return a}}function Ml(e,t){var r=e[t];r&&r[Al]&&(r.clear&&r.clear(),e[t]=r[Al])}var V0=De(),$0={itemStyle:Gi(_y,!0),lineStyle:Gi(yy,!0)},wE={lineStyle:"stroke",itemStyle:"fill"};function F0(e,t){var r=e.visualStyleMapper||$0[t];return r||(console.warn("Unknown style type '"+t+"'."),$0.itemStyle)}function z0(e,t){var r=e.visualDrawType||wE[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var bE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=e.getModel(n),i=F0(e,n),o=i(a),s=a.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=z0(e,n),u=o[l],c=ie(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||ie(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||ie(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var m=e.getDataParams(v),g=G({},o);g[l]=c(m),h.setItemVisual(v,"style",g)}}}},vo=new et,SE={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",a=F0(e,n),i=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){vo.option=l[n];var u=a(vo),c=o.ensureUniqueItemVisual(s,"style");G(c,u),vo.option.decal&&(o.setItemVisual(s,"decal",vo.option.decal),vo.option.decal.dirty=!0),i in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},CE={performRawSeries:!0,overallReset:function(e){var t=se();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)),V0(r).scope=i}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),a={},i=r.getData(),o=V0(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=z0(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+"",v=n.count();d[l]=r.getColorFromPalette(h,o,v)}})}})}},El=Math.PI;function TE(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 Oe,n=new Pe({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 Pe({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 Zf({shape:{startAngle:-El/2,endAngle:-El/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:El*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:El*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 G0=function(){function e(t,r,n,a){this._stageTaskMap=se(),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=se();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;M(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;M(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,v=d.agentStubMap;v.each(function(g){s(a,g)&&(g.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,n);var m=o.getPerformArgs(d,a.block);v.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=se(),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)||fo({plan:kE,reset:ME,count:PE}));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||fo({reset:NE});o.context={ecModel:n,api:a,overallReset:t.overallReset,scheduler:i};var s=o.agentStubMap,l=o.agentStubMap=se(),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,v):c?c(n,a).each(v):(f=!1,M(n.getSeries(),v));function v(m){var g=m.uid,y=l.set(g,s&&s.get(g)||(d=!0,fo({reset:xE,onDirty:AE})));y.context={model:m,overallProgress:f},y.agent=o,y.__block=f,i._pipe(m,y)}d&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,a=this._pipelineMap.get(n);!a.head&&(a.head=r),a.tail&&a.tail.pipe(r),a.tail=r,r.__idxInPipeline=a.count++,r.__pipeline=a},e.wrapStageHandler=function(t,r){return ie(t)&&(t={overallReset:t,seriesType:IE(t)}),t.uid=ul("stageHandler"),r&&(t.visualType=r),t},e}();function NE(e){e.overallReset(e.ecModel,e.api,e.payload)}function xE(e){return e.overallProgress&&DE}function DE(){this.agent.dirty(),this.getDownstream().dirty()}function AE(){this.agent&&this.agent.dirty()}function kE(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function ME(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=We(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?j(t,function(r,n){return H0(n)}):EE}var EE=H0(0);function H0(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 PE(e){return e.data.count()}function IE(e){Pl=null;try{e(go,W0)}catch{}return Pl}var go={},W0={},Pl;U0(go,_h),U0(W0,Xy),go.eachSeriesByType=go.eachRawSeriesByType=function(e){Pl=e},go.eachComponent=function(e){e.mainType==="series"&&e.subType&&(Pl=e.subType)};function U0(e,t){for(var r in t.prototype)e[r]=st}var Y0=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const LE={color:Y0,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],Y0]};var ct="#B9B8CE",q0="#100C2A",Il=function(){return{axisLine:{lineStyle:{color:ct}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},j0=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],X0={darkMode:!0,color:j0,backgroundColor:q0,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:ct}},textStyle:{color:ct},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:ct}},dataZoom:{borderColor:"#71708A",textStyle:{color:ct},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:ct}},timeline:{lineStyle:{color:ct},label:{color:ct},controlStyle:{color:ct,borderColor:ct}},calendar:{itemStyle:{color:q0},dayLabel:{color:ct},monthLabel:{color:ct},yearLabel:{color:ct}},timeAxis:Il(),logAxis:Il(),valueAxis:Il(),categoryAxis:Il(),line:{symbol:"circle"},graph:{color:j0},gauge:{title:{color:ct},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:ct},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};X0.categoryAxis.splitLine.show=!1;const OE=X0;var RE=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},a={};if(X(t)){var i=lr(t);r.mainType=i.main||null,r.subType=i.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};M(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 v=u.slice(0,h);v!=="data"&&(r.mainType=v,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,v){return f[h]==null||d[v||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Fh=["symbol","symbolSize","symbolRotate","symbolOffset"],Z0=Fh.concat(["symbolKeepAspect"]),BE={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<Fh.length;o++){var s=Fh[o],l=e.get(s);ie(l)?(i=!0,a[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(G({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=ye(a);function c(f,d){for(var h=e.getRawValue(d),v=e.getDataParams(d),m=0;m<u.length;m++){var g=u[m];f.setItemVisual(d,g,a[g](h,v))}}return{dataEach:i?c:null}}},VE={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<Z0.length;s++){var l=Z0[s],u=o.getShallow(l,!0);u!=null&&a.setItemVisual(i,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function $E(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 K0(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 FE(e,t){function r(n,a){var i=[];return n.eachComponent({mainType:"series",subType:e,query:a},function(o){i.push(o.seriesIndex)}),i}M([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(a,i,o){a=G({},a),process.env.NODE_ENV!=="production"&&Ge(a.type,n[1]),o.dispatchAction(G(a,{type:n[1],seriesIndex:r(i,a)}))})})}function ti(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=xn(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:G({},l)})}}))}function zE(e,t,r){e.on("selectchanged",function(n){var a=r.getModel();n.isFromClick?(ti("map","selectchanged",t,a,n),ti("pie","selectchanged",t,a,n)):n.fromAction==="select"?(ti("map","selected",t,a,n),ti("pie","selected",t,a,n)):n.fromAction==="unselect"&&(ti("map","unselected",t,a,n),ti("pie","unselected",t,a,n))})}function mo(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var GE=Math.round(Math.random()*9),HE=typeof Object.defineProperty=="function",WE=function(){function e(){this._id="__ec_inner_"+GE++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return HE?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}(),UE=me.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()}}),YE=me.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()}}),qE=me.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,v=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-v,r,n),e.bezierCurveTo(r,n-v,r-c+f*h,l+s+d*h,r-c,l+s),e.closePath()}}),jE=me.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()}}),XE={line:en,rect:Pe,roundRect:Pe,square:Pe,circle:Yf,diamond:YE,pin:qE,arrow:jE,triangle:UE},ZE={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}},Ll={};M(XE,function(e,t){Ll[t]=new e});var KE=me.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=Ds(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=Ll[n];a||(n="rect",a=Ll[n]),ZE[n](t.x,t.y,t.width,t.height,a.shape),a.buildPath(e,a.shape,r)}}});function JE(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 Pr(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=ny(e.slice(8),new _e(t,r,n,a),o?"center":"cover"):e.indexOf("path://")===0?l=il(e.slice(7),{},new _e(t,r,n,a),o?"center":"cover"):l=new KE({shape:{symbolType:e,x:t,y:r,width:n,height:a}}),l.__isEmptyBrush=s,l.setColor=JE,i&&l.setColor(i),l}function zh(e){return U(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Ol(e,t){if(e!=null)return U(e)||(e=[e,e]),[Ne(e[0],t[0])||0,Ne(oe(e[1],e[0]),t[1])||0]}function Qn(e){return isFinite(e)}function QE(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=Qn(n)?n:0,a=Qn(a)?a:1,i=Qn(i)?i:0,o=Qn(o)?o:0;var s=e.createLinearGradient(n,i,a,o);return s}function e5(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=Qn(o)?o:.5,s=Qn(s)?s:.5,l=l>=0&&Qn(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"?e5(e,t,r):QE(e,t,r),a=t.colorStops,i=0;i<a.length;i++)n.addColorStop(a[i].offset,a[i].color);return n}function t5(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 Rl(e){return parseInt(e,10)}function Bl(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]||Rl(s[n])||Rl(e.style[n]))-(Rl(s[i])||0)-(Rl(s[o])||0)|0}function r5(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Te(e)?[e]:U(e)?e:null}function J0(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=j(r,function(i){return i/a}),n/=a)}return[r,n]}var n5=new On(!0);function Vl(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function Q0(e){return typeof e=="string"&&e!=="none"}function $l(e){var t=e.fill;return t!=null&&t!=="none"}function e_(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 t_(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 Hh(e,t,r){var n=Bg(t.image,t.__image,r);if(Os(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)*xN),i.scaleSelf(t.scaleX||1,t.scaleY||1),a.setTransform(i)}return a}}function a5(e,t,r,n){var a,i=Vl(r),o=$l(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||n5,f=t.__dirty;if(!n){var d=r.fill,h=r.stroke,v=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;(v||m)&&(C=t.getBoundingRect()),v&&(_=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?Hh(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=S),y&&(T=f||!t.__canvasStrokePattern?Hh(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=S),v?e.fillStyle=_:g&&(S?e.fillStyle=S:o=!1),m?e.strokeStyle=w:y&&(T?e.strokeStyle=T:i=!1)}var x=t.getGlobalScale();c.setScale(x[0],x[1],t.segmentIgnoreThreshold);var b,N;e.setLineDash&&r.lineDash&&(a=J0(t),b=a[0],N=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=N),n||(r.strokeFirst?(i&&t_(e,r),o&&e_(e,r)):(o&&e_(e,r),i&&t_(e,r))),b&&e.setLineDash([])}function i5(e,t,r){var n=t.__image=Bg(r.image,t.__image,t,t.onload);if(!(!n||!Os(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 o5(e,t,r){var n,a=r.text;if(a!=null&&(a+=""),a){e.font=r.font||_n,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var i=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=J0(t),i=n[0],o=n[1]),i&&(e.setLineDash(i),e.lineDashOffset=o),r.strokeFirst?(Vl(r)&&e.strokeText(a,r.x,r.y),$l(r)&&e.fillText(a,r.x,r.y)):($l(r)&&e.fillText(a,r.x,r.y),Vl(r)&&e.strokeText(a,r.x,r.y)),i&&e.setLineDash([])}}var r_=["shadowBlur","shadowOffsetX","shadowOffsetY"],n_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function a_(e,t,r,n,a){var i=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){yt(e,a),i=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?An.opacity:o}(n||t.blend!==r.blend)&&(i||(yt(e,a),i=!0),e.globalCompositeOperation=t.blend||An.blend);for(var s=0;s<r_.length;s++){var l=r_[s];(n||t[l]!==r[l])&&(i||(yt(e,a),i=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(i||(yt(e,a),i=!0),e.shadowColor=t.shadowColor||An.shadowColor),i}function i_(e,t,r,n,a){var i=yo(t,a.inHover),o=n?null:r&&yo(r,a.inHover)||{};if(i===o)return!1;var s=a_(e,i,o,n,a);if((n||i.fill!==o.fill)&&(s||(yt(e,a),s=!0),Q0(i.fill)&&(e.fillStyle=i.fill)),(n||i.stroke!==o.stroke)&&(s||(yt(e,a),s=!0),Q0(i.stroke)&&(e.strokeStyle=i.stroke)),(n||i.opacity!==o.opacity)&&(s||(yt(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||(yt(e,a),s=!0),e.lineWidth=u)}for(var c=0;c<n_.length;c++){var f=n_[c],d=f[0];(n||i[d]!==o[d])&&(s||(yt(e,a),s=!0),e[d]=i[d]||f[1])}return s}function s5(e,t,r,n,a){return a_(e,yo(t,a.inHover),r&&yo(r,a.inHover),n,a)}function o_(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function l5(e,t,r){for(var n=!1,a=0;a<e.length;a++){var i=e[a];n=n||i.isZeroArea(),o_(t,i),t.beginPath(),i.buildPath(t,i.shape),t.clip()}r.allClipped=n}function u5(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 s_=1,l_=2,u_=3,c_=4;function c5(e){var t=$l(e),r=Vl(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 yt(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function yo(e,t){return t&&e.__hoverStyle||e.style}function f_(e,t){ea(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function ea(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||t5(i,o))&&(o&&o.length&&(yt(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),i&&i.length&&(yt(e,r),e.save(),l5(i,e,r),s=!0),r.prevElClipPaths=i),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var c=t instanceof me&&t.autoBatch&&c5(t.style);s||u5(a,u.transform)?(yt(e,r),o_(e,t)):c||yt(e,r);var f=yo(t,r.inHover);t instanceof me?(r.lastDrawType!==s_&&(l=!0,r.lastDrawType=s_),i_(e,t,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&e.beginPath(),a5(e,t,f,c),c&&(r.batchFill=f.fill||"",r.batchStroke=f.stroke||"")):t instanceof If?(r.lastDrawType!==u_&&(l=!0,r.lastDrawType=u_),i_(e,t,u,l,r),o5(e,t,f)):t instanceof Qr?(r.lastDrawType!==l_&&(l=!0,r.lastDrawType=l_),s5(e,t,u,l,r),i5(e,t,f)):t.getTemporalDisplayables&&(r.lastDrawType!==c_&&(l=!0,r.lastDrawType=c_),f5(e,t,r)),c&&n&&yt(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function f5(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(),ea(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(),ea(e,l,i,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),i.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Wh=new WE,h_=new Ei(100),d_=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Fl(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),a=n.painter.type==="svg";e.dirty&&Wh.delete(e);var i=Wh.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,Wh.set(e,s),e.dirty=!1,s;function l(u){for(var c=[r],f=!0,d=0;d<d_.length;++d){var h=o[d_[d]];if(h!=null&&!U(h)&&!X(h)&&!Te(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var v;if(f){v=c.join(",")+(a?"-svg":"");var m=h_.get(v);m&&(a?u.svgElement=m:u.image=m)}var g=v_(o.dashArrayX),y=h5(o.dashArrayY),_=p_(o.symbol),w=d5(g),S=g_(y),T=!a&&ga.createCanvas(),C=a&&{tag:"g",attrs:{},key:"dcl",children:[]},x=N(),b;T&&(T.width=x.width*r,T.height=x.height*r,b=T.getContext("2d")),A(),f&&h_.put(v,T||C),u.image=T,u.svgElement=C,u.svgWidth=x.width,u.svgHeight=x.height;function N(){for(var D=1,k=0,P=w.length;k<P;++k)D=xg(D,w[k]);for(var E=1,k=0,P=_.length;k<P;++k)E=xg(E,_[k].length);D*=E;var I=S*w.length*_.length;if(process.env.NODE_ENV!=="production"){var L=function(R){console.warn("Calculated decal size is greater than "+R+" due to decal option settings so "+R+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+R+" 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,k=0;k<y.length;++k)D+=y[k];if(D<=0)return;for(var P=-S,E=0,I=0,L=0;P<x.height;){if(E%2===0){for(var R=I/2%_.length,B=0,V=0,W=0;B<x.width*2;){for(var q=0,k=0;k<g[L].length;++k)q+=g[L][k];if(q<=0)break;if(V%2===0){var Q=(1-o.symbolSize)*.5,ue=B+g[L][V]*Q,z=P+y[E]*Q,he=g[L][V]*o.symbolSize,ce=y[E]*o.symbolSize,Me=W/2%_[R].length;He(ue,z,he,ce,_[R][Me])}B+=g[L][V],++W,++V,V===g[L].length&&(V=0)}++L,L===g.length&&(L=0)}P+=y[E],++I,++E,E===y.length&&(E=0)}function He(Ie,Ae,re,ee,ht){var Le=a?1:r,Nt=Pr(ht,Ie*Le,Ae*Le,re*Le,ee*Le,o.color,o.symbolKeepAspect);if(a){var Gt=n.painter.renderOneToVNode(Nt);Gt&&C.children.push(Gt)}else f_(b,Nt)}}}}function p_(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 p_([e]);for(var n=[],r=0;r<e.length;++r)X(e[r])?n.push([e[r]]):n.push(e[r]);return n}function v_(e){if(!e||e.length===0)return[[0,0]];if(Te(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!Te(e[n])){r=!1;break}if(r)return v_([e]);for(var a=[],n=0;n<e.length;++n)if(Te(e[n])){var t=Math.ceil(e[n]);a.push([t,t])}else{var t=j(e[n],function(s){return Math.ceil(s)});t.length%2===1?a.push(t.concat(t)):a.push(t)}return a}function h5(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(Te(e)){var t=Math.ceil(e);return[t,t]}var r=j(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function d5(e){return j(e,function(t){return g_(t)})}function g_(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function p5(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=Fl(s,t)}});var a=n.getVisual("decal");if(a){var i=n.getVisual("style");i.decal=Fl(a,t)}}})}var er=new Ut,zl={};function v5(e,t){process.env.NODE_ENV!=="production"&&zl[e]&&Ke("Already has an implementation of "+e+"."),zl[e]=t}function g5(e){return process.env.NODE_ENV!=="production"&&(zl[e]||Ke("Implementation of "+e+" doesn't exists.")),zl[e]}var m5=1,y5=800,_5=900,w5=1e3,b5=2e3,S5=5e3,m_=1e3,C5=1100,Uh=2e3,y_=3e3,T5=4e3,Gl=4500,N5=4600,x5=5e3,D5=6e3,__=7e3,A5={PROCESSOR:{FILTER:w5,SERIES_FILTER:y5,STATISTIC:S5},VISUAL:{LAYOUT:m_,PROGRESSIVE_LAYOUT:C5,GLOBAL:Uh,CHART:y_,POST_CHART_LAYOUT:N5,COMPONENT:T5,BRUSH:x5,CHART_ITEM:Gl,ARIA:D5,DECAL:__}},rt="__flagInMainProcess",_t="__pendingUpdate",Yh="__needsUpdateStatus",w_=/^[a-zA-Z0-9_]+$/,qh="__connectUpdateStatus",b_=0,k5=1,M5=2;function S_(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){Tt(this.id);return}return T_(this,e,t)}}function C_(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return T_(this,e,t)}}function T_(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Ut.prototype[t].apply(e,r)}var N_=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Ut),x_=N_.prototype;x_.on=C_("on"),x_.off=C_("off");var ri,jh,Hl,nn,Xh,Zh,Kh,_o,wo,D_,A_,Jh,k_,Wl,M_,E_,$t,P_,I_=function(e){H(t,e);function t(r,n,a){var i=e.call(this,new RE)||this;i._chartsViews=[],i._chartsMap={},i._componentsViews=[],i._componentsMap={},i._pendingActions=[],a=a||{},X(n)&&(n=L_[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=oe(u.__ECHARTS__DEFAULT__RENDERER__,o),s=oe(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=oe(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l))}a.ssr;var c=i._zr=mg(r,{renderer:a.renderer||o,devicePixelRatio:a.devicePixelRatio,width:a.width,height:a.height,ssr:a.ssr,useDirtyRect:oe(a.useDirtyRect,l),useCoarsePointer:oe(a.useCoarsePointer,s),pointerSize:a.pointerSize});i._ssr=a.ssr,i._throttledZrFlush=$h(te(c.flush,c),17),n=fe(n),n&&r0(n,!0),i._theme=n,i._locale=Fk(a.locale||wy),i._coordSysMgr=new bh;var f=i._api=M_(i);function d(h,v){return h.__prio-v.__prio}return us(Yl,d),us(ed,d),i._scheduler=new G0(i,f,ed,Yl),i._messageCenter=new N_,i._initEvents(),i.resize=te(i.resize,i),c.animation.on("frame",i._onframe,i),D_(c,i),A_(c,i),mc(i),i}return t.prototype._onframe=function(){if(!this._disposed){P_(this);var r=this._scheduler;if(this[_t]){var n=this[_t].silent;this[rt]=!0;try{ri(this),nn.update.call(this,null,this[_t].updateParams)}catch(l){throw this[rt]=!1,this[_t]=null,l}this._zr.flush(),this[rt]=!1,this[_t]=null,_o.call(this,n),wo.call(this,n)}else if(r.unfinished){var a=m5,i=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(i),r.performDataProcessorTasks(i),Zh(this,i),r.performVisualTasks(i),Wl(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[rt]){process.env.NODE_ENV!=="production"&&Ke("`setOption` should not be called during main process.");return}if(this._disposed){Tt(this.id);return}var i,o,s;if(J(n)&&(a=n.lazyUpdate,i=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[rt]=!0,!this._model||n){var l=new bM(this._api),u=this._theme,c=this._model=new _h;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},td);var f={seriesTransition:s,optionChanged:!0};if(a)this[_t]={silent:i,updateParams:f},this[rt]=!1,this.getZr().wakeUp();else{try{ri(this),nn.update.call(this,null,f)}catch(d){throw this[_t]=null,this[rt]=!1,d}this._ssr||this._zr.flush(),this[_t]=null,this[rt]=!1,_o.call(this,i),wo.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 M(n,function(a){a.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){Tt(this.id);return}r=r||{};var n=r.excludeComponents,a=this._model,i=[],o=this;M(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 M(i,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){Tt(this.id);return}var n=r.type==="svg",a=this.group,i=Math.min,o=Math.max,s=1/0;if(O_[a]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();M(So,function(w,S){if(w.group===a){var T=n?w.getZr().painter.getSvgDom().innerHTML:w.renderToCanvas(fe(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 v=c-l,m=f-u,g=ga.createCanvas(),y=mg(g,{renderer:n?"svg":"canvas"});if(y.resize({width:v,height:m}),n){var _="";return M(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 Pe({shape:{x:0,y:0,width:v,height:m},style:{fill:r.connectedBackgroundColor}})),M(d,function(w){var S=new Qr({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 Xh(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return Xh(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){Tt(this.id);return}var a=this._model,i,o=gf(a,r);return M(o,function(s,l){l.indexOf("Models")>=0&&M(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=gf(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?$E(s,l,n):K0(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;M(E5,function(n){var a=function(i){var o=r.getModel(),s=i.target,l,u=n==="globalout";if(u?l={}:s&&mo(s,function(v){var m=ge(v);if(m&&m.dataIndex!=null){var g=m.dataModel||o.getSeriesByIndex(m.seriesIndex);return l=g&&g.getDataParams(m.dataIndex,m.dataType,s)||{},!0}else if(m.eventData)return l=G({},m.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),h=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];process.env.NODE_ENV!=="production"&&!u&&!(d&&h)&&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)}),M(bo,function(n,a){r._messageCenter.on(a,function(i){this.trigger(a,i)},r)}),M(["selectchanged"],function(n){r._messageCenter.on(n,function(a){this.trigger(n,a)},r)}),zE(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){Tt(this.id);return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){Tt(this.id);return}this._disposed=!0;var r=this.getDom();r&&Lg(this.getDom(),nd,"");var n=this,a=n._api,i=n._model;M(n._componentsViews,function(o){o.dispose(i,a)}),M(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 So[n.id]},t.prototype.resize=function(r){if(this[rt]){process.env.NODE_ENV!=="production"&&Ke("`resize` should not be called during main process.");return}if(this._disposed){Tt(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[_t]&&(i==null&&(i=this[_t].silent),a=!0,this[_t]=null),this[rt]=!0;try{a&&ri(this),nn.update.call(this,{type:"resize",animation:G({duration:0},r&&r.animation)})}catch(o){throw this[rt]=!1,o}this[rt]=!1,_o.call(this,i),wo.call(this,i)}},t.prototype.showLoading=function(r,n){if(this._disposed){Tt(this.id);return}if(J(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!rd[r]){process.env.NODE_ENV!=="production"&&ze("Loading effects "+r+" not exists.");return}var a=rd[r](this._api,n),i=this._zr;this._loadingFX=a,i.add(a)},t.prototype.hideLoading=function(){if(this._disposed){Tt(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=G({},r);return n.type=bo[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){Tt(this.id);return}if(J(n)||(n={silent:!!n}),!!Ul[r.type]&&this._model){if(this[rt]){this._pendingActions.push(r);return}var a=n.silent;Kh.call(this,r,a);var i=n.flush;i?this._zr.flush():i!==!1&&ae.browser.weChat&&this._throttledZrFlush(),_o.call(this,a),wo.call(this,a)}},t.prototype.updateLabelLayout=function(){er.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){Tt(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(){ri=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),jh(f,!0),jh(f,!1),d.plan()},jh=function(f,d){for(var h=f._model,v=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,x){C!=="series"&&S(x)}):h.eachSeries(S);function S(C){var x=C.__requireNewView;C.__requireNewView=!1;var b="_ec_"+C.id+"_"+C.type,N=!x&&g[b];if(!N){var A=lr(C.type),D=d?Jt.getClass(A.main,A.sub):Qt.getClass(A.sub);process.env.NODE_ENV!=="production"&&ne(D,A.sub+" does not exist."),N=new D,N.init(h,_),g[b]=N,m.push(N),y.add(N.group)}C.__viewId=N.__id=b,N.__alive=!0,N.__model=C,N.group.__ecComponentInfo={mainType:C.mainType,index:C.componentIndex},!d&&v.prepareView(N,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)}},Hl=function(f,d,h,v,m){var g=f._model;if(g.setUpdatePayload(h),!v){M([].concat(f._componentsViews).concat(f._chartsViews),T);return}var y={};y[v+"Id"]=h[v+"Id"],y[v+"Index"]=h[v+"Index"],y[v+"Name"]=h[v+"Name"];var _={mainType:v,query:y};m&&(_.subType=m);var w=h.excludeSeriesId,S;w!=null&&(S=se(),M(We(w),function(C){var x=sr(C,null);x!=null&&S.set(x,!0)})),g&&g.eachComponent(_,function(C){var x=S&&S.get(C.id)!=null;if(!x)if(Em(h))if(C instanceof Er)h.type===$n&&!h.notBlur&&!C.get(["emphasis","disabled"])&&SA(C,h,f._api);else{var b=Gf(C.mainType,C.componentIndex,h.name,f._api),N=b.focusSelf,A=b.dispatchers;h.type===$n&&N&&!h.notBlur&&zf(C.mainType,C.componentIndex,f._api),A&&M(A,function(D){h.type===$n?qi(D):ji(D)})}else Hf(h)&&C instanceof Er&&(NA(C,h,f._api),Am(C),$t(f))},f),g&&g.eachComponent(_,function(C){var x=S&&S.get(C.id)!=null;x||T(f[v==="series"?"_chartsMap":"_componentsMap"][C.__viewId])},f);function T(C){C&&C.__alive&&C[d]&&C[d](C.__model,g,f._api,h)}},nn={prepareAndUpdate:function(f){ri(this),nn.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var h=this._model,v=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,v),y.performDataProcessorTasks(h,f),Zh(this,h),g.update(h,v),r(h),y.performVisualTasks(h,f),Jh(this,h,v,f,d);var _=h.get("backgroundColor")||"transparent",w=h.get("darkMode");m.setBackgroundColor(_),w!=null&&w!=="auto"&&m.setDarkMode(w),er.trigger("afterupdate",h,v)}},updateTransform:function(f){var d=this,h=this._model,v=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,v,f);S&&S.update&&m.push(w)}else m.push(w)}});var g=se();h.eachSeries(function(y){var _=d._chartsMap[y.__viewId];if(_.updateTransform){var w=_.updateTransform(y,h,v,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}),Wl(this,h,v,f,{},g),er.trigger("afterupdate",h,v)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),Qt.markUpdateMethod(f,"updateView"),r(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),Jh(this,d,this._api,f,{}),er.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(v){v.getData().clearAllVisual()}),Qt.markUpdateMethod(f,"updateVisual"),r(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,m){if(v!=="series"){var g=d.getViewOfComponentModel(m);g&&g.__alive&&g.updateVisual(m,h,d._api,f)}}),h.eachSeries(function(v){var m=d._chartsMap[v.__viewId];m.updateVisual(v,h,d._api,f)}),er.trigger("afterupdate",h,this._api))},updateLayout:function(f){nn.update.call(this,f)}},Xh=function(f,d,h,v){if(f._disposed){Tt(f.id);return}for(var m=f._model,g=f._coordSysMgr.getCoordinateSystems(),y,_=gf(m,h),w=0;w<g.length;w++){var S=g[w];if(S[d]&&(y=S[d](m,_,v))!=null)return y}process.env.NODE_ENV!=="production"&&ze("No coordinate system that supports "+d+" found by the given finder.")},Zh=function(f,d){var h=f._chartsMap,v=f._scheduler;d.eachSeries(function(m){v.updateStreamModes(m,h[m.__viewId])})},Kh=function(f,d){var h=this,v=this.getModel(),m=f.type,g=f.escapeConnect,y=Ul[m],_=y.actionInfo,w=(_.update||"update").split(":"),S=w.pop(),T=w[0]!=null&&lr(w[0]);this[rt]=!0;var C=[f],x=!1;f.batch&&(x=!0,C=j(f.batch,function(E){return E=pe(G({},E),f),E.batch=null,E}));var b=[],N,A=Hf(f),D=Em(f);if(D&&Dm(this._api),M(C,function(E){if(N=y.action(E,h._model,h._api),N=N||G({},E),N.type=_.event||N.type,b.push(N),D){var I=mf(f),L=I.queryOptionMap,R=I.mainTypeSpecified,B=R?L.keys()[0]:"series";Hl(h,S,E,B),$t(h)}else A?(Hl(h,S,E,"series"),$t(h)):T&&Hl(h,S,E,T.main,T.sub)}),S!=="none"&&!D&&!A&&!T)try{this[_t]?(ri(this),nn.update.call(this,f),this[_t]=null):nn[S].call(this,f)}catch(E){throw this[rt]=!1,E}if(x?N={type:_.event||m,escapeConnect:g,batch:b}:N=b[0],this[rt]=!1,!d){var k=this._messageCenter;if(k.trigger(N.type,N),A){var P={type:"selectchanged",escapeConnect:g,selected:xA(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};k.trigger(P.type,P)}}},_o=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();Kh.call(this,h,f)}},wo=function(f){!f&&this.trigger("updated")},D_=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[_t]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},A_=function(f,d){f.on("mouseover",function(h){var v=h.target,m=mo(v,$a);m&&(CA(m,h,d._api),$t(d))}).on("mouseout",function(h){var v=h.target,m=mo(v,$a);m&&(TA(m,h,d._api),$t(d))}).on("click",function(h){var v=h.target,m=mo(v,function(_){return ge(_).dataIndex!=null},!0);if(m){var g=m.selected?"unselect":"select",y=ge(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=[],v=!1;if(f.eachComponent(function(_,w){var S=w.get("zlevel")||0,T=w.get("z")||0,C=w.getZLevelKey();v=v||!!C,(_==="series"?h:d).push({zlevel:S,z:T,idx:w.componentIndex,type:_,key:C})}),v){var m=d.concat(h),g,y;us(m,function(_,w){return _.zlevel===w.zlevel?_.z-w.z:_.zlevel-w.zlevel}),M(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)})}}Jh=function(f,d,h,v,m){n(d),k_(f,d,h,v,m),M(f._chartsViews,function(g){g.__alive=!1}),Wl(f,d,h,v,m),M(f._chartsViews,function(g){g.__alive||g.remove(d,h)})},k_=function(f,d,h,v,m,g){M(g||f._componentsViews,function(y){var _=y.__model;u(_,y),y.render(_,d,h,v),s(_,y),c(_,y)})},Wl=function(f,d,h,v,m,g){var y=f._scheduler;m=G(m||{},{updatedSeries:d.getSeries()}),er.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,v),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),Am(w)}),y.unfinished=_||y.unfinished,er.trigger("series:layoutlabels",d,h,m),er.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),er.trigger("series:afterupdate",d,h,m)},$t=function(f){f[Yh]=!0,f.getZr().wakeUp()},P_=function(f){f[Yh]&&(f.getZr().storage.traverse(function(d){Ji(d)||a(d)}),f[Yh]=!1)};function a(f){for(var d=[],h=f.currentStates,v=0;v<h.length;v++){var m=h[v];m==="emphasis"||m==="blur"||m==="select"||d.push(m)}f.selected&&f.states.select&&d.push("select"),f.hoverState===Gs&&f.states.emphasis?d.push("emphasis"):f.hoverState===zs&&f.states.blur&&d.push("blur"),f.useStates(d)}function i(f,d){var h=f._zr,v=h.storage,m=0;v.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(v){v.isGroup||(v.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,v=f.get("zlevel")||0;d.eachRendered(function(m){return l(m,h,v,-1/0),!0})}}function l(f,d,h,v){var m=f.getTextContent(),g=f.getTextGuideLine(),y=f.isGroup;if(y)for(var _=f.childrenRef(),w=0;w<_.length;w++)v=Math.max(l(_[w],d,h,v),v);else f.z=d,f.zlevel=h,v=Math.max(f.z2,v);if(m&&(m.z=d,m.zlevel=h,isFinite(v)&&(m.z2=v+2)),g){var S=f.textGuideLineConfig;g.z=d,g.zlevel=h,isFinite(v)&&(g.z2=v+(S&&S.showAbove?1:-1))}return v}function u(f,d){d.eachRendered(function(h){if(!Ji(h)){var v=h.getTextContent(),m=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.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"),v=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(Ji(y))return;if(y instanceof me&&EA(y),y.__dirty){var _=y.prevStates;_&&y.useStates(_)}if(v){y.stateTransition=g;var w=y.getTextContent(),S=y.getTextGuideLine();w&&(w.stateTransition=g),S&&(S.stateTransition=g)}y.__dirty&&a(y)}})}M_=function(f){return new(function(d){H(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var m=v.__ecComponentInfo;if(m!=null)return f._model.getComponent(m.mainType,m.index);v=v.parent}},h.prototype.enterEmphasis=function(v,m){qi(v,m),$t(f)},h.prototype.leaveEmphasis=function(v,m){ji(v,m),$t(f)},h.prototype.enterBlur=function(v){Cm(v),$t(f)},h.prototype.leaveBlur=function(v){$f(v),$t(f)},h.prototype.enterSelect=function(v){Tm(v),$t(f)},h.prototype.leaveSelect=function(v){Nm(v),$t(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},h}(Xy))(f)},E_=function(f){function d(h,v){for(var m=0;m<h.length;m++){var g=h[m];g[qh]=v}}M(bo,function(h,v){f._messageCenter.on(v,function(m){if(O_[f.group]&&f[qh]!==b_){if(m&&m.escapeConnect)return;var g=f.makeActionFromEvent(m),y=[];M(So,function(_){_!==f&&_.group===f.group&&y.push(_)}),d(y,b_),M(y,function(_){_[qh]!==k5&&_.dispatchAction(g)}),d(y,M5)}})})}}(),t}(Ut),Qh=I_.prototype;Qh.on=S_("on"),Qh.off=S_("off"),Qh.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 E5=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function Tt(e){process.env.NODE_ENV!=="production"&&ze("Instance "+e+" has been disposed")}var Ul={},bo={},ed=[],td=[],Yl=[],L_={},rd={},So={},O_={},P5=+new Date-0,nd="_echarts_instance_";function I5(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=L5(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"&&ya(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 I_(e,t,r);return i.id="ec_"+P5++,So[i.id]=i,n&&Lg(e,nd,i.id),E_(i),er.trigger("afterinit",i),i}function L5(e){return So[fD(e,nd)]}function ql(e,t){L_[e]=t}function R_(e){de(td,e)<0&&td.push(e)}function B_(e,t){id(ed,e,t,b5)}function O5(e){ad("afterinit",e)}function R5(e){ad("afterupdate",e)}function ad(e,t){er.on(e,t)}function ta(e,t,r){ie(t)&&(r=t,t="");var n=J(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!bo[t]&&(ne(w_.test(n)&&w_.test(t)),Ul[n]||(Ul[n]={action:r,actionInfo:e}),bo[t]=n)}function B5(e,t){bh.register(e,t)}function V5(e,t){id(Yl,e,t,m_,"layout")}function ra(e,t){id(Yl,e,t,y_,"visual")}var V_=[];function id(e,t,r,n,a){if((ie(t)||J(t))&&(r=t,t=n),process.env.NODE_ENV!=="production"){if(isNaN(t)||t==null)throw new Error("Illegal priority");M(e,function(o){ne(o.__raw!==r)})}if(!(de(V_,r)>=0)){V_.push(r);var i=G0.wrapStageHandler(r,a);i.__prio=t,i.__raw=r,e.push(i)}}function $_(e,t){rd[e]=t}function $5(e,t,r){var n=g5("registerMap");n&&n(e,t,r)}var F5=YM;ra(Uh,bE),ra(Gl,SE),ra(Gl,CE),ra(Uh,BE),ra(Gl,VE),ra(__,p5),R_(r0),B_(_5,kM),$_("default",TE),ta({type:$n,event:$n,update:$n},st),ta({type:Ws,event:Ws,update:Ws},st),ta({type:Ui,event:Ui,update:Ui},st),ta({type:Us,event:Us,update:Us},st),ta({type:Yi,event:Yi,update:Yi},st),ql("light",LE),ql("dark",OE);function Co(e){return e==null?0:e.length||1}function F_(e){return e}var z5=function(){function e(t,r,n,a,i,o){this._old=t,this._new=r,this._oldKeyGetter=n||F_,this._newKeyGetter=a||F_,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=Co(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=Co(u),d=Co(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=Co(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=Co(l);u===0?(r[s]=o,i&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}();const z_=z5;var G5=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 H5(e,t){var r={},n=r.encode={},a=se(),i=[],o=[],s={};M(e.dimensions,function(d){var h=e.getDimensionInfo(d),v=h.coordDim;if(v){process.env.NODE_ENV!=="production"&&ne(vh.get(v)==null);var m=h.coordDimIndex;od(n,v)[m]=d,h.isExtraCoord||(a.set(v,1),U5(h.type)&&(i[0]=d),od(s,v)[m]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}vh.each(function(g,y){var _=od(n,y),w=h.otherDims[y];w!=null&&w!==!1&&(_[w]=h.name)})});var l=[],u={};a.each(function(d,h){var v=n[h];u[h]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=j(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 G5(s,t),r}function od(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function W5(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function U5(e){return!(e==="ordinal"||e==="time")}var jl=function(){function e(t){this.otherDims={},t!=null&&G(this,t)}return e}(),Y5=De(),q5={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},G_=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=U_(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return oe(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=o0(this.source),n=!Y_(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+=q5[u]||"f",c&&(a+=c.uid),a+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,a].join("$$");return{dimensions:i,hash:v}},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 H_(e){return e instanceof G_}function W_(e){for(var t=se(),r=0;r<(e||[]).length;r++){var n=e[r],a=J(n)?n.name:n;a!=null&&t.get(a)==null&&t.set(a,r)}return t}function U_(e){var t=Y5(e);return t.dimNameMap||(t.dimNameMap=W_(e.dimensionsDefine))}function Y_(e){return e>30}var To=J,an=j,j5=typeof Int32Array>"u"?Array:Int32Array,X5="e\0\0",q_=-1,Z5=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],K5=["_approximateExtent"],j_,Xl,No,ni,sd,Zl,ld,xo=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;H_(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 jl({name:f}):f instanceof jl?f:new jl(f),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var v=d.otherDims=d.otherDims||{};o.push(h),i[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),v.itemName===0&&(this._nameDimIdx=c),v.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=se();M(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(Te(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 Eh&&(i=t),!i){var o=this.dimensions,s=Th(t)||it(t)?new u0(t,o.length):t;i=new Eh;var l=an(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=H5(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&&ld(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!==Ar&&!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===Rt;if(l&&!a.pure)for(var u=[],c=t;c<r;c++){var f=a.getItem(c,u);if(!this.hasItemOption&&Qx(f)&&(this.hasItemOption=!0),f){var d=f.name;i[c]==null&&d!=null&&(i[c]=sr(d,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=sr(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<r;c++)ld(this,c);j_(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){To(t)?G(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=No(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 Xl(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(an(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)?q_:a},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){ie(t)&&(n=r,r=t,t=[]);var a=n||this,i=an(ni(t),this._getStoreDimIndex,this);this._store.each(i,a?te(r,a):r)},e.prototype.filterSelf=function(t,r,n){ie(t)&&(n=r,r=t,t=[]);var a=n||this,i=an(ni(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=ye(t);return M(a,function(i){var o=r._getStoreDimIndex(i);n[o]=t[i]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){ie(t)&&(n=r,r=t,t=[]),n=n||this;var a=[];return this.each(t,function(){a.push(r&&r.apply(this,arguments))},n),a},e.prototype.map=function(t,r,n,a){var i=n||a||this,o=an(ni(t),this._getStoreDimIndex,this),s=Zl(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"&&M(ni(t),function(l){var u=i.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=an(ni(t),this._getStoreDimIndex,this);this._store.modify(s,o?te(r,o):r)},e.prototype.downSample=function(t,r,n,a){var i=Zl(this);return i._store=this._store.downSample(this._getStoreDimIndex(t),r,n,a),i},e.prototype.lttbDownSample=function(t,r){var n=Zl(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 z_(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Xl(t,n)},function(n){return Xl(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||{},To(t)?G(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],a=n&&n[r];return a??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,a=n[t];a||(a=n[t]={});var i=a[r];return i==null&&(i=this.getVisual(r),U(i)?i=i.slice():To(i)&&(i=G({},i)),a[r]=i),i},e.prototype.setItemVisual=function(t,r,n){var a=this._itemVisuals[t]||{};this._itemVisuals[t]=a,To(r)?G(a,r):a[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){To(t)?G(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?G(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;dA(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){M(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:an(this.dimensions,this._getDimInfo,this),this.hostModel)),sd(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];ie(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var a=n.apply(this,arguments);return r.apply(this,[a].concat(gc(arguments)))})},e.internalField=function(){j_=function(t){var r=t._invertedIndicesMap;M(r,function(n,a){var i=t._dimInfos[a],o=i.ordinalMeta,s=t._store;if(o){n=r[a]=new j5(o.categories.length);for(var l=0;l<n.length;l++)n[l]=q_;for(var l=0;l<s.count();l++)n[s.get(i.storeDimIndex,l)]=l}})},No=function(t,r,n){return sr(t._getCategory(r,n),null)},Xl=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=No(t,t._idDimIdx,r)),n==null&&(n=X5+r),n},ni=function(t){return U(t)||(t=t!=null?[t]:[]),t},Zl=function(t){var r=new e(t._schema?t._schema:an(t.dimensions,t._getDimInfo,t),t.hostModel);return sd(r,t),r},sd=function(t,r){M(Z5.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,M(K5,function(n){t[n]=fe(r[n])}),t._calculationInfo=G({},r._calculationInfo)},ld=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=No(t,i,r)),l==null&&o!=null&&(a[r]=l=No(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 X_(e,t){Th(e)||(e=xh(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],a=se(),i=[],o=Q5(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Y_(o),l=n===e.dimensionsDefine,u=l?U_(e):W_(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=se(c),d=new _0(o),h=0;h<d.length;h++)d[h]=-1;function v(N){var A=d[N];if(A<0){var D=n[N],k=J(D)?D:{name:D},P=new jl,E=k.name;E!=null&&u.get(E)!=null&&(P.name=P.displayName=E),k.type!=null&&(P.type=k.type),k.displayName!=null&&(P.displayName=k.displayName);var I=i.length;return d[N]=I,P.storeDimIndex=N,i.push(P),P}return i[A]}if(!s)for(var h=0;h<o;h++)v(h);f.each(function(N,A){var D=We(N).slice();if(D.length===1&&!X(D[0])&&D[0]<0){f.set(A,!1);return}var k=f.set(A,[]);M(D,function(P,E){var I=X(P)?u.get(P):P;I!=null&&I<o&&(k[E]=I,g(v(I),A,E))})});var m=0;M(r,function(N){var A,D,k,P;if(X(N))A=N,P={};else{P=N,A=P.name;var E=P.ordinalMeta;P.ordinalMeta=null,P=G({},P),P.ordinalMeta=E,D=P.dimsDef,k=P.otherDims,P.name=P.coordDim=P.coordDimIndex=P.dimsDef=P.otherDims=null}var I=f.get(A);if(I!==!1){if(I=We(I),!I.length)for(var L=0;L<(D&&D.length||1);L++){for(;m<o&&v(m).coordDim!=null;)m++;m<o&&I.push(m++)}M(I,function(R,B){var V=v(R);if(l&&P.type!=null&&(V.type=P.type),g(pe(V,P),A,B),V.name==null&&D){var W=D[B];!J(W)&&(W={name:W}),V.name=V.displayName=W.name,V.defaultTooltip=W.defaultTooltip}k&&pe(V.otherDims,k)})}});function g(N,A,D){vh.get(A)!=null?N.otherDims[A]=D:(N.coordDim=A,N.coordDimIndex=D,a.set(A,!0))}var y=t.generateCoord,_=t.generateCoordCount,w=_!=null;_=y?_||1:0;var S=y||"value";function T(N){N.name==null&&(N.name=N.coordDim)}if(s)M(i,function(N){T(N)}),i.sort(function(N,A){return N.storeDimIndex-A.storeDimIndex});else for(var C=0;C<o;C++){var x=v(C),b=x.coordDim;b==null&&(x.coordDim=eP(S,a,w),x.coordDimIndex=0,(!y||_<=0)&&(x.isExtraCoord=!0),_--),T(x),x.type==null&&(zy(e,C)===je.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return J5(i),new G_({source:e,dimensions:i,fullDimensionCount:o,dimensionOmitted:s})}function J5(e){for(var t=se(),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 Q5(e,t,r,n){var a=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return M(t,function(i){var o;J(i)&&(o=i.dimsDef)&&(a=Math.max(a,o.length))}),a}function eP(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 tP=function(){function e(t){this.coordSysDims=[],this.axisMap=se(),this.categoryAxisMap=se(),this.coordSysName=t}return e}();function rP(e){var t=e.get("coordinateSystem"),r=new tP(t),n=nP[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var nP={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 "'+Wr(e.get("xAxisIndex"),e.get("xAxisId"),0)+'" not found');if(!i)throw new Error('yAxis "'+Wr(e.get("xAxisIndex"),e.get("yAxisId"),0)+'" not found')}t.coordSysDims=["x","y"],r.set("x",a),r.set("y",i),ai(a)&&(n.set("x",a),t.firstCategoryDimIndex=0),ai(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),ai(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),ai(i)&&(n.set("radius",i),t.firstCategoryDimIndex=0),ai(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();M(i.parallelAxisIndex,function(s,l){var u=a.getComponent("parallelAxis",s),c=o[l];r.set(c,u),ai(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function ai(e){return e.get("type")==="category"}function aP(e,t,r){r=r||{};var n=r.byIndex,a=r.stackedCoordDimension,i,o,s;iP(t)?i=t:(o=t.schema,i=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(M(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,v=c.type,m=0;M(i,function(_){_.coordDim===h&&m++});var g={name:f,coordDim:h,coordDimIndex:m,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},y={name:d,coordDim:d,coordDimIndex:m+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};o?(s&&(g.storeDimIndex=s.ensureCalculationDimension(d,v),y.storeDimIndex=s.ensureCalculationDimension(f,v)),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 iP(e){return!H_(e.schema)}function na(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Z_(e,t){return na(e,t)?e.getCalculationInfo("stackResultDimension"):t}function oP(e,t){var r=e.get("coordinateSystem"),n=bh.get(r),a;return t&&t.coordSysDims&&(a=j(t.coordSysDims,function(i){var o={name:i},s=t.axisMap.get(i);if(s){var l=s.get("type");o.type=W5(l)}return o})),a||(a=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),a}function sP(e,t,r){var n,a;return r&&M(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 Kl(e,t,r){r=r||{};var n=t.getSourceManager(),a,i=!1;e?(i=!0,a=xh(e)):(a=n.getSource(),i=a.sourceFormat===Rt);var o=rP(t),s=oP(t,o),l=r.useEncodeDefaulter,u=ie(l)?l:l?Se(eM,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!i},f=X_(a,c),d=sP(f.dimensions,r.createInvertedIndices,o),h=i?null:n.getSharedDataStore(f),v=aP(t,{schema:f,store:h}),m=new xo(f,t);m.setCalculationInfo(v);var g=d!=null&&lP(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 lP(e){if(e.sourceFormat===Rt){var t=uP(e.data||[]);return!U($i(t))}}function uP(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var pr=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}();Ls(pr);var cP=0,ud=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++cP}return e.createByAxisModel=function(t){var r=t.option,n=r.data,a=n&&j(n,fP);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=se(this.categories))},e}();function fP(e){return J(e)&&e.value!=null?e.value:e+""}function hP(e){var t=Math.pow(10,ks(Math.abs(e))),r=Math.abs(e/t);return r===0||r===1||r===2||r===3||r===5}function cd(e){return e.type==="interval"||e.type==="log"}function dP(e,t,r,n){var a={},i=e[1]-e[0],o=a.interval=Sg(i/t,!0);r!=null&&o<r&&(o=a.interval=r),n!=null&&o>n&&(o=a.interval=n);var s=a.intervalPrecision=K_(o),l=a.niceTickExtent=[Ve(Math.ceil(e[0]/o)*o,s),Ve(Math.floor(e[1]/o)*o,s)];return pP(l,e),a}function fd(e){var t=Math.pow(10,ks(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Ve(r*t)}function K_(e){return or(e)+2}function J_(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function pP(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),J_(e,0,t),J_(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Jl(e,t){return e>=t[0]&&e<=t[1]}function Ql(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 Q_=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var a=n.getSetting("ordinalMeta");return a||(a=new ud({})),U(a)&&(a=new ud({categories:j(a,function(i){return J(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),Jl(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),Ql(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}(pr);pr.registerClass(Q_);const e1=Q_;var aa=Ve,t1=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return Jl(r,this._extent)},t.prototype.normalize=function(r){return Ql(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=K_(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:aa(i[0]-n,o)}):s.push({value:a[0]}));for(var u=i[0];u<=i[1]&&(s.push({value:u}),u=aa(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:aa(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=aa(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=or(r.value)||0:a==="auto"&&(a=this._intervalPrecision);var i=aa(r.value,a,!0);return Iy(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=dP(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]=aa(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=aa(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(pr);pr.registerClass(t1);const Do=t1;var r1=typeof Float32Array<"u",vP=r1?Float32Array:Array;function Ir(e){return U(e)?r1?new Float32Array(e):e:new vP(e)}var hd="__ec_stack_";function dd(e){return e.get("stack")||hd+e.seriesIndex}function pd(e){return e.dim+e.index}function gP(e){var t=[],r=e.axis,n="axis0";if(r.type==="category"){for(var a=r.getBandWidth(),i=0;i<e.count;i++)t.push(pe({bandWidth:a,axisKey:n,stackId:hd+i},e));for(var o=i1(t),s=[],i=0;i<e.count;i++){var l=o[n][hd+i];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function n1(e,t){var r=[];return t.eachSeriesByType(e,function(n){o1(n)&&r.push(n)}),r}function mP(e){var t={};M(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)),v=f.getStore(),m=0,g=v.count();m<g;++m){var y=v.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 a1(e){var t=mP(e),r=[];return M(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 v=Ne(n.get("barWidth"),s),m=Ne(n.get("barMaxWidth"),s),g=Ne(n.get("barMinWidth")||(s1(n)?.5:1),s),y=n.get("barGap"),_=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:m,barMinWidth:g,barGap:y,barCategoryGap:_,axisKey:pd(i),stackId:dd(n)})}),i1(r)}function i1(e){var t={};M(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 v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var r={};return M(t,function(n,a){r[a]={};var i=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=ye(i).length;s=Math.max(35-l*4,15)+"%"}var u=Ne(s,o),c=Ne(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),M(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 v=0,m;M(i,function(y,_){y.width||(y.width=h),m=y,v+=y.width*(1+c)}),m&&(v-=m.width*c);var g=-v/2;M(i,function(y,_){r[a][_]=r[a][_]||{bandWidth:o,offset:g,width:y.width},g+=y.width*(1+c)})}),r}function yP(e,t,r){if(e&&t){var n=e[pd(t)];return n!=null&&r!=null?n[dd(r)]:n}}function _P(e,t){var r=n1(e,t),n=a1(r);M(r,function(a){var i=a.getData(),o=a.coordinateSystem,s=o.getBaseAxis(),l=dd(a),u=n[pd(s)][l],c=u.offset,f=u.width;i.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function wP(e){return{seriesType:e,plan:Bh(),reset:function(t){if(o1(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=na(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=i.isHorizontal(),h=bP(a,i),v=s1(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=v&&Ir(T*3),x=v&&l&&Ir(T*3),b=v&&Ir(T),N=n.master.getRect(),A=d?N.width:N.height,D,k=S.getStore(),P=0;(D=w.next())!=null;){var E=k.get(f?g:o,D),I=k.get(s,D),L=h,R=void 0;f&&(R=+E-k.get(o,D));var B=void 0,V=void 0,W=void 0,q=void 0;if(d){var Q=n.dataToPoint([E,I]);if(f){var ue=n.dataToPoint([R,I]);L=ue[0]}B=L,V=Q[1]+_,W=Q[0]-L,q=y,Math.abs(W)<m&&(W=(W<0?-1:1)*m)}else{var Q=n.dataToPoint([I,E]);if(f){var ue=n.dataToPoint([I,R]);L=ue[1]}B=Q[0]+_,V=L,W=y,q=Q[1]-L,Math.abs(q)<m&&(q=(q<=0?-1:1)*m)}v?(C[P]=B,C[P+1]=V,C[P+2]=d?W:q,x&&(x[P]=d?N.x:B,x[P+1]=d?V:N.y,x[P+2]=A),b[D]=D):S.setItemLayout(D,{x:B,y:V,width:W,height:q}),P+=3}v&&S.setLayout({largePoints:C,largeDataIndices:b,largeBackgroundPoints:x,valueAxisHorizontal:d})}}}}}}function o1(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function s1(e){return e.pipelineContext&&e.pipelineContext.large}function bP(e,t){return t.toGlobalCoord(t.dataToCoord(t.type==="log"?1:0))}var SP=function(e,t,r,n){for(;r<n;){var a=r+n>>>1;e[a][1]<t?r=a+1:n=a}return r},l1=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return pl(r.value,Cy[Wk(Ya(this._minLevelUnit))]||Cy.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,a){var i=this.getSetting("useUTC"),o=this.getSetting("locale");return Uk(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=kP(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]-=Ot,n[1]+=Ot),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]-Ot}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=tu.length,l=Math.min(SP(tu,this._approxInterval,0,s),s-1);this._interval=tu[l][1],this._minLevelUnit=tu[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return Te(r)?r:+Nr(r)},t.prototype.contain=function(r){return Jl(this.parse(r),this._extent)},t.prototype.normalize=function(r){return Ql(this.parse(r),this._extent)},t.prototype.scale=function(r){return eu(r,this._extent)},t.type="time",t}(Do),tu=[["second",lh],["minute",uh],["hour",to],["quarter-day",to*6],["half-day",to*12],["day",Ot*1.2],["half-week",Ot*3.5],["week",Ot*7],["month",Ot*31],["quarter",Ot*95],["half-year",Sy/2],["year",Sy]];function CP(e,t,r,n){var a=Nr(t),i=Nr(r),o=function(v){return xy(a,v,n)===xy(i,v,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 TP(e,t){return e/=Ot,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function NP(e){var t=30*Ot;return e/=t,e>6?6:e>3?3:e>2?2:1}function xP(e){return e/=to,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function u1(e,t){return e/=t?uh:lh,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function DP(e){return Sg(e,!0)}function AP(e,t,r){var n=new Date(e);switch(Ya(t)){case"year":case"month":n[Dy(r)](0);case"day":n[Ay(r)](1);case"hour":n[ky(r)](0);case"minute":n[My(r)](0);case"second":n[Ey(r)](0),n[Py(r)](0)}return n.getTime()}function kP(e,t,r,n){var a=1e4,i=Ty,o=0;function s(A,D,k,P,E,I,L){for(var R=new Date(D),B=D,V=R[P]();B<k&&B<=n[1];)L.push({value:B}),V+=A,R[E](V),B=R.getTime();L.push({value:B,notAdd:!0})}function l(A,D,k){var P=[],E=!D.length;if(!CP(Ya(A),n[0],n[1],r)){E&&(D=[{value:AP(new Date(n[0]),A,r)},{value:n[1]}]);for(var I=0;I<D.length-1;I++){var L=D[I].value,R=D[I+1].value;if(L!==R){var B=void 0,V=void 0,W=void 0,q=!1;switch(A){case"year":B=Math.max(1,Math.round(t/Ot/365)),V=fh(r),W=Yk(r);break;case"half-year":case"quarter":case"month":B=NP(t),V=qa(r),W=Dy(r);break;case"week":case"half-week":case"day":B=TP(t),V=vl(r),W=Ay(r),q=!0;break;case"half-day":case"quarter-day":case"hour":B=xP(t),V=no(r),W=ky(r);break;case"minute":B=u1(t,!0),V=gl(r),W=My(r);break;case"second":B=u1(t,!1),V=ml(r),W=Ey(r);break;case"millisecond":B=DP(t),V=yl(r),W=Py(r);break}s(B,L,R,V,W,q,P),A==="year"&&k.length>1&&I===0&&k.unshift({value:k[0].value-B})}}for(var I=0;I<P.length;I++)k.push(P[I]);return P}}for(var u=[],c=[],f=0,d=0,h=0;h<i.length&&o++<a;++h){var v=Ya(i[h]);if(Hk(i[h])){l(i[h],u[u.length-1]||[],c);var m=i[h+1]?Ya(i[h+1]):null;if(v!==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=Ye(j(u,function(A){return Ye(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 x=S[h],b=0;b<x.length;++b)T.push({value:x[b].value,level:C-h});T.sort(function(A,D){return A.value-D.value});for(var N=[],h=0;h<T.length;++h)(h===0||T[h].value!==T[h-1].value)&&N.push(T[h]);return N}pr.registerClass(l1);const MP=l1;var c1=pr.prototype,Ao=Do.prototype,EP=Ve,PP=Math.floor,IP=Math.ceil,ru=Math.pow,tr=Math.log,vd=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new Do,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,a=this._extent,i=n.getExtent(),o=Ao.getTicks.call(this,r);return j(o,function(s){var l=s.value,u=Ve(ru(this.base,l));return u=l===a[0]&&this._fixMin?nu(u,i[0]):u,u=l===a[1]&&this._fixMax?nu(u,i[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var a=tr(this.base);r=tr(Math.max(0,r))/a,n=tr(Math.max(0,n))/a,Ao.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=c1.getExtent.call(this);n[0]=ru(r,n[0]),n[1]=ru(r,n[1]);var a=this._originalScale,i=a.getExtent();return this._fixMin&&(n[0]=nu(n[0],i[0])),this._fixMax&&(n[1]=nu(n[1],i[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=tr(r[0])/tr(n),r[1]=tr(r[1])/tr(n),c1.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=jx(a),o=r/a*i;for(o<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var s=[Ve(IP(n[0]/i)*i),Ve(PP(n[1]/i)*i)];this._interval=i,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Ao.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=tr(r)/tr(this.base),Jl(r,this._extent)},t.prototype.normalize=function(r){return r=tr(r)/tr(this.base),Ql(r,this._extent)},t.prototype.scale=function(r){return r=eu(r,this._extent),ru(this.base,r)},t.type="log",t}(pr),f1=vd.prototype;f1.getMinorTicks=Ao.getMinorTicks,f1.getLabel=Ao.getLabel;function nu(e,t){return EP(e,or(t))}pr.registerClass(vd);const LP=vd;var OP=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var a=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var i=this._modelMinRaw=r.get("min",!0);ie(i)?this._modelMinNum=au(t,i({min:n[0],max:n[1]})):i!=="dataMin"&&(this._modelMinNum=au(t,i));var o=this._modelMaxRaw=r.get("max",!0);if(ie(o)?this._modelMaxNum=au(t,o({min:n[0],max:n[1]})):o!=="dataMax"&&(this._modelMaxNum=au(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=[Xr(l[0],1),Xr(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=_a(s)||_a(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[BP[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=RP[t];process.env.NODE_ENV!=="production"&&ne(!this.frozen&&this[n]==null),this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),RP={min:"_determinedMin",max:"_determinedMax"},BP={min:"_dataMin",max:"_dataMax"};function h1(e,t,r){var n=e.rawExtentInfo;return n||(n=new OP(e,t,r),e.rawExtentInfo=n,n)}function au(e,t){return t==null?null:_a(t)?NaN:e.parse(t)}function d1(e,t){var r=e.type,n=h1(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=n1("bar",o),l=!1;if(M(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=a1(s),c=VP(a,i,t,u);a=c.min,i=c.max}}return{extent:[a,i],fixMin:n.minFixed,fixMax:n.maxFixed}}function VP(e,t,r,n){var a=r.axis.getExtent(),i=a[1]-a[0],o=yP(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;M(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;M(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 p1(e,t){var r=t,n=d1(e,r),a=n.extent,i=r.get("splitNumber");e instanceof LP&&(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 $P(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new e1({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new MP({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(pr.getClass(t)||Do)}}function FP(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function ko(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):ie(t)?function(n){return function(a,i){return r!=null&&(i=a.value-r),n(gd(e,a),i,a.level!=null?{level:a.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function gd(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function zP(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,a,i=r.getExtent();r instanceof e1?a=r.count():(n=r.getTicks(),a=n.length);var o=e.getLabelModel(),s=ko(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),v=GP(h,o.get("rotate")||0);l?l.union(v):l=v}return l}}function GP(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 _e(e.x,e.y,i,o);return s}function md(e){var t=e.get("interval");return t??"auto"}function v1(e){return e.type==="category"&&md(e.getLabelModel())===0}function g1(e,t){var r={};return M(e.mapDimensionsAll(t),function(n){r[Z_(e,n)]=!0}),ye(r)}function HP(e,t,r){t&&M(g1(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 WP=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),m1=[],UP={registerPreprocessor:R_,registerProcessor:B_,registerPostInit:O5,registerPostUpdate:R5,registerUpdateLifecycle:ad,registerAction:ta,registerCoordinateSystem:B5,registerLayout:V5,registerVisual:ra,registerTransform:F5,registerLoading:$_,registerMap:$5,registerImpl:v5,PRIORITY:A5,ComponentModel:xe,ComponentView:Jt,SeriesModel:Er,ChartView:Qt,registerComponentModel:function(e){xe.registerClass(e)},registerComponentView:function(e){Jt.registerClass(e)},registerSeriesModel:function(e){Er.registerClass(e)},registerChartView:function(e){Qt.registerClass(e)},registerSubTypeDefaulter:function(e,t){xe.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Hx(e,t)}};function vr(e){if(U(e)){M(e,function(t){vr(t)});return}de(m1,e)>=0||(m1.push(e),ie(e)&&(e={install:e}),e.install(UP))}var Mo=De();function YP(e){return e.type==="category"?jP(e):ZP(e)}function qP(e,t){return e.type==="category"?XP(e,t):{ticks:j(e.scale.getTicks(),function(r){return r.value})}}function jP(e){var t=e.getLabelModel(),r=y1(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function y1(e,t){var r=_1(e,"labels"),n=md(t),a=w1(r,n);if(a)return a;var i,o;return ie(n)?i=C1(e,n):(o=n==="auto"?KP(e):n,i=S1(e,o)),b1(r,n,{labels:i,labelCategoryInterval:o})}function XP(e,t){var r=_1(e,"ticks"),n=md(t),a=w1(r,n);if(a)return a;var i,o;if((!t.get("show")||e.scale.isBlank())&&(i=[]),ie(n))i=C1(e,n,!0);else if(n==="auto"){var s=y1(e,e.getLabelModel());o=s.labelCategoryInterval,i=j(s.labels,function(l){return l.tickValue})}else o=n,i=S1(e,o,!0);return b1(r,n,{ticks:i,tickCategoryInterval:o})}function ZP(e){var t=e.scale.getTicks(),r=ko(e);return{labels:j(t,function(n,a){return{level:n.level,formattedLabel:r(n,a),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function _1(e,t){return Mo(e)[t]||(Mo(e)[t]=[])}function w1(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function b1(e,t,r){return e.push({key:t,value:r}),r}function KP(e){var t=Mo(e).autoInterval;return t??(Mo(e).autoInterval=e.calculateCategoryInterval())}function JP(e){var t=QP(e),r=ko(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 v=0,m=0,g=sf(r({value:l}),t.font,"center","top");v=g.width*1.3,m=g.height*1.3,d=Math.max(d,v,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=Mo(e.model),T=e.getExtent(),C=S.lastAutoInterval,x=S.lastTickCount;return C!=null&&x!=null&&Math.abs(C-w)<=1&&Math.abs(x-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 QP(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 S1(e,t,r){var n=ko(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=v1(e),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&u!==i[0]&&m(i[0]);for(var v=u;v<=i[1];v+=l)m(v);h&&v-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 C1(e,t,r){var n=e.scale,a=ko(e),i=[];return M(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 T1=[0,1],eI=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 wg(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(),N1(n,a.count())),qe(t,T1,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,a=this.scale;this.onBand&&a.type==="ordinal"&&(n=n.slice(),N1(n,a.count()));var i=qe(t,n,T1,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=qP(this,r),a=n.ticks,i=j(a,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return tI(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=j(n,function(i){return j(i,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return a},e.prototype.getViewLabels=function(){return YP(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 JP(this)},e}();function N1(e,t){var r=e[1]-e[0],n=t,a=r/n/2;e[0]+=a,e[1]-=a}function tI(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;M(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,v){return h=Ve(h),v=Ve(v),f?h>v:h<v}}const rI=eI;function x1(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,v=h/d;s&&(v=Math.min(Math.max(v,0),1)),v*=d;var m=o[0]=e+v*c,g=o[1]=t+v*f;return Math.sqrt((m-a)*(m-a)+(g-i)*(g-i))}var on=new le,Re=new le,Xe=new le,sn=new le,gr=new le,iu=[],ft=new le;function nI(e,t){if(t<=180&&t>0){t=t/180*Math.PI,on.fromArray(e[0]),Re.fromArray(e[1]),Xe.fromArray(e[2]),le.sub(sn,on,Re),le.sub(gr,Xe,Re);var r=sn.len(),n=gr.len();if(!(r<.001||n<.001)){sn.scale(1/r),gr.scale(1/n);var a=sn.dot(gr),i=Math.cos(t);if(i<a){var o=x1(Re.x,Re.y,Xe.x,Xe.y,on.x,on.y,iu,!1);ft.fromArray(iu),ft.scaleAndAdd(gr,o/Math.tan(Math.PI-t));var s=Xe.x!==Re.x?(ft.x-Re.x)/(Xe.x-Re.x):(ft.y-Re.y)/(Xe.y-Re.y);if(isNaN(s))return;s<0?le.copy(ft,Re):s>1&&le.copy(ft,Xe),ft.toArray(e[1])}}}}function aI(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,on.fromArray(e[0]),Re.fromArray(e[1]),Xe.fromArray(e[2]),le.sub(sn,Re,on),le.sub(gr,Xe,Re);var n=sn.len(),a=gr.len();if(!(n<.001||a<.001)){sn.scale(1/n),gr.scale(1/a);var i=sn.dot(t),o=Math.cos(r);if(i<o){var s=x1(Re.x,Re.y,Xe.x,Xe.y,on.x,on.y,iu,!1);ft.fromArray(iu);var l=Math.PI/2,u=Math.acos(gr.dot(t)),c=l+u-r;if(c>=l)le.copy(ft,Xe);else{ft.scaleAndAdd(gr,s/Math.tan(Math.PI/2-c));var f=Xe.x!==Re.x?(ft.x-Re.x)/(Xe.x-Re.x):(ft.y-Re.y)/(Xe.y-Re.y);if(isNaN(f))return;f<0?le.copy(ft,Re):f>1&&le.copy(ft,Xe)}ft.toArray(e[1])}}}}function yd(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 iI(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=bc(n[0],n[1]),i=bc(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=Sc([],n[1],n[0],o/a),l=Sc([],n[1],n[2],o/i),u=Sc([],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 oI(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<Hs.length;l++){var u=Hs[l],c=t[u],f=u==="normal";if(c){var d=c.get("show"),h=f?s:oe(a.states[u]&&a.states[u].ignore,s);if(h||!oe(d,o)){var v=f?n:n&&n.states[u];v&&(v.ignore=!0),n&&yd(n,!0,u,c);continue}n||(n=new Ga,e.setTextGuideLine(n),!f&&(s||!o)&&yd(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),yd(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=iI}}function sI(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<vt.length;n++){var a=vt[n];r[a]=e.getModel([a,t])}return r}function lI(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var a=n.label,i=a.getComputedTransform(),o=a.getBoundingRect(),s=!i||i[1]<1e-5&&i[2]<1e-5,l=a.style.margin||0,u=o.clone();u.applyTransform(i),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new el(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 uI(e,t,r,n,a,i){var o=e.length;if(o<2)return;e.sort(function(b,N){return b.rect[t]-N.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 v=Math.max(-l,0);c+=v,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&&x(-y),_<0&&x(_);function w(){y=m.rect[t]-n,_=a-g.rect[t]-g.rect[r]}function S(b,N,A){if(b<0){var D=Math.min(N,-b);if(D>0){T(D*A,0,o);var k=D+b;k<0&&C(-k*A,1)}else C(-b*A,1)}}function T(b,N,A){b!==0&&(u=!0);for(var D=N;D<A;D++){var k=e[D],P=k.rect;P[t]+=b,k.label[t]+=b}}function C(b,N){for(var A=[],D=0,k=1;k<o;k++){var P=e[k-1].rect,E=Math.max(e[k].rect[t]-P[t]-P[r],0);A.push(E),D+=E}if(D){var I=Math.min(Math.abs(b)/D,N);if(b>0)for(var k=0;k<o-1;k++){var L=A[k]*I;T(L,0,k+1)}else for(var k=o-1;k>0;k--){var L=A[k-1]*I;T(-L,k,o)}}}function x(b){var N=b<0?-1:1;b=Math.abs(b);for(var A=Math.ceil(b/(o-1)),D=0;D<o-1;D++)if(N>0?T(A,0,D+1):T(-A,o-D-1,o),b-=A,b<=0)return}return u}function cI(e,t,r,n){return uI(e,"y","height",t,r,n)}function fI(e){var t=[];e.sort(function(m,g){return g.priority-m.priority});var r=new _e(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 v=t[h];if(r.intersect(v.rect)){if(o&&v.axisAligned){d=!0;break}if(v.obb||(v.obb=new el(v.localRect,v.transform)),f||(f=new el(s,l)),f.intersect(v.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 hI=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){if(process.env.NODE_ENV!=="production"){var n=r.coordinateSystem;if(n!=="polar"&&n!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return Kl(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new Oe,a=Pr("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=Pr(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}(Er);const dI=hI;function Eo(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var a=Ja(e,t,r[0]);return a!=null?a+"":null}else if(n){for(var i=[],o=0;o<r.length;o++)i.push(Ja(e,t,r[o]));return i.join(" ")}}function D1(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 _d=function(e){H(t,e);function t(r,n,a,i){var o=e.call(this)||this;return o.updateData(r,n,a,i),o}return t.prototype._createSymbol=function(r,n,a,i,o){this.removeAll();var s=Pr(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),s.drift=pI,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(){qi(this.childAt(0))},t.prototype.downplay=function(){ji(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):Qe(d,h,s,n),Qf(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,v,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,v=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"),v=w.get("disabled"),m=Un(_),g=w.getShallow("scale"),y=_.getShallow("cursor")}var S=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(S||0)*Math.PI/180||0);var T=Ol(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"),x=C.fill;if(s instanceof Qr){var b=s.style;s.useStyle(G({image:b.image,x:b.x,y:b.y,width:b.width,height:b.height},C))}else s.__isEmptyBrush?s.useStyle(G({},C)):s.useStyle(C),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var N=r.getItemVisual(n,"liftZ"),A=this._z2;N!=null?A==null&&(this._z2=s.z2,s.z2+=N):A!=null&&(s.z2=A,this._z2=null);var D=o&&o.useNameLabel;Wa(s,m,{labelFetcher:l,labelDataIndex:n,defaultText:k,inheritColor:x,defaultOpacity:C.opacity});function k(I){return D?r.getName(I):Eo(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),Fn(this,d,h,v)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,a){var i=this.childAt(0),o=ge(this).dataIndex,s=a&&a.animation;if(this.silent=i.silent=!0,a&&a.fadeLabel){var l=i.getTextContent();l&&tl(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){i.removeTextContent()}})}else i.removeTextContent();tl(i,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return zh(r.getItemVisual(n,"symbolSize"))},t}(Oe);function pI(e,t){this.parent.drift(e,t)}function wd(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 A1(e){return e!=null&&!J(e)&&(e={isIgnore:e}),e||{}}function k1(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:Un(t),cursorStyle:t.get("cursor")}}var vI=function(){function e(t){this.group=new Oe,this._SymbolCtor=t||_d}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=A1(r);var n=this.group,a=t.hostModel,i=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=k1(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(wd(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),v=c(f);if(!wd(t,v,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(v);else{h.updateData(t,f,l,u);var y={x:v[0],y:v[1]};s?h.attr(y):Qe(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=k1(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=A1(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(wd(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){Ha(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 M1(e,t,r){var n=e.getBaseAxis(),a=e.getOtherAxis(n),i=gI(a,r),o=n.dim,s=a.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=j(e.dimensions,function(v){return t.mapDimension(v)}),d=!1,h=t.getCalculationInfo("stackResultDimension");return na(t,f[0])&&(d=!0,f[0]=h),na(t,f[1])&&(d=!0,f[1]=h),{dataDimsForPoint:f,valueStart:i,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function gI(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:Te(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function E1(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 mI(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 yI(e,t,r,n,a,i,o,s){for(var l=mI(e,t),u=[],c=[],f=[],d=[],h=[],v=[],m=[],g=M1(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,x=void 0;switch(S.cmd){case"=":C=S.idx*2,x=S.idx1*2;var b=y[C],N=y[C+1],A=_[x],D=_[x+1];(isNaN(b)||isNaN(N))&&(b=A,N=D),u.push(b,N),c.push(A,D),f.push(r[C],r[C+1]),d.push(n[x],n[x+1]),m.push(t.getRawIndex(S.idx1));break;case"+":var k=S.idx,P=g.dataDimsForPoint,E=a.dataToPoint([t.get(P[0],k),t.get(P[1],k)]);x=k*2,u.push(E[0],E[1]),c.push(_[x],_[x+1]);var I=E1(g,a,t,k);f.push(I[0],I[1]),d.push(n[x],n[x+1]),m.push(t.getRawIndex(k));break;case"-":T=!1}T&&(h.push(S),v.push(v.length))}v.sort(function(he,ce){return m[he]-m[ce]});for(var L=u.length,R=Ir(L),B=Ir(L),V=Ir(L),W=Ir(L),q=[],w=0;w<v.length;w++){var Q=v[w],ue=w*2,z=Q*2;R[ue]=u[z],R[ue+1]=u[z+1],B[ue]=c[z],B[ue+1]=c[z+1],V[ue]=f[z],V[ue+1]=f[z+1],W[ue]=d[z],W[ue+1]=d[z+1],q[w]=h[Q]}return{current:R,next:B,stackedOnCurrent:V,stackedOnNext:W,status:q}}var ln=Math.min,un=Math.max;function ia(e,t){return isNaN(e)||isNaN(t)}function bd(e,t,r,n,a,i,o,s,l){for(var u,c,f,d,h,v,m=r,g=0;g<n;g++){var y=t[m*2],_=t[m*2+1];if(m>=a||m<0)break;if(ia(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],x=t[T*2+1];C===y&&x===_&&g<n;)g++,T+=i,m+=i,C=t[T*2],x=t[T*2+1],y=t[m*2],_=t[m*2+1],w=y-u,S=_-c;var b=g+1;if(l)for(;ia(C,x)&&b<n;)b++,T+=i,C=t[T*2],x=t[T*2+1];var N=.5,A=0,D=0,k=void 0,P=void 0;if(b>=n||ia(C,x))h=y,v=_;else{A=C-u,D=x-c;var E=y-u,I=C-y,L=_-c,R=x-_,B=void 0,V=void 0;if(s==="x"){B=Math.abs(E),V=Math.abs(I);var W=A>0?1:-1;h=y-W*B*o,v=_,k=y+W*V*o,P=_}else if(s==="y"){B=Math.abs(L),V=Math.abs(R);var q=D>0?1:-1;h=y,v=_-q*B*o,k=y,P=_+q*V*o}else B=Math.sqrt(E*E+L*L),V=Math.sqrt(I*I+R*R),N=V/(V+B),h=y-A*o*(1-N),v=_-D*o*(1-N),k=y+A*o*N,P=_+D*o*N,k=ln(k,un(C,y)),P=ln(P,un(x,_)),k=un(k,ln(C,y)),P=un(P,ln(x,_)),A=k-y,D=P-_,h=y-A*B/V,v=_-D*B/V,h=ln(h,un(u,y)),v=ln(v,un(c,_)),h=un(h,ln(u,y)),v=un(v,ln(c,_)),A=y-h,D=_-v,k=y+A*V/B,P=_+D*V/B}e.bezierCurveTo(f,d,h,v,y,_),f=k,d=P}else e.lineTo(y,_)}u=y,c=_,m+=i}return g}var P1=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),_I=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new P1},t.prototype.buildPath=function(r,n){var a=n.points,i=0,o=a.length/2;if(n.connectNulls){for(;o>0&&ia(a[o*2-2],a[o*2-1]);o--);for(;i<o&&ia(a[i*2],a[i*2+1]);i++);}for(;i<o;)i+=bd(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=On.CMD,s,l,u=n==="x",c=[],f=0;f<i.length;){var d=i[f++],h=void 0,v=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++],v=i[f++],w=u?(r-s)/(h-s):(r-l)/(v-l),w<=1&&w>=0){var S=u?(v-l)*w+l:(h-s)*w+s;return u?[r,S]:[S,r]}s=h,l=v;break;case o.C:h=i[f++],v=i[f++],m=i[f++],g=i[f++],y=i[f++],_=i[f++];var T=u?ds(s,h,m,y,r,c):ds(l,v,g,_,r,c);if(T>0)for(var C=0;C<T;C++){var x=c[C];if(x<=1&&x>=0){var S=u?Fe(l,v,g,_,x):Fe(s,h,m,y,x);return u?[r,S]:[S,r]}}s=y,l=_;break}}},t}(me),wI=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(P1),bI=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new wI},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&&ia(a[s*2-2],a[s*2-1]);s--);for(;o<s&&ia(a[o*2],a[o*2+1]);o++);}for(;o<s;){var u=bd(r,a,o,s,s,1,n.smooth,l,n.connectNulls);bd(r,i,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t}(me);function I1(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 Pe({shape:{x:o,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),v=d.inverse;h?(v&&(f.shape.x+=l),f.shape.width=0):(v||(f.shape.y+=u),f.shape.height=0);var m=ie(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 L1(e,t,r){var n=e.getArea(),a=Ve(n.r0,1),i=Ve(n.r,1),o=new Gn({shape:{cx:Ve(e.cx,1),cy:Ve(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 O1(e,t,r,n,a){if(e){if(e.type==="polar")return L1(e,t,r);if(e.type==="cartesian2d")return I1(e,t,r,n,a)}else return null;return null}function ou(e,t){return e.type===t}function R1(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function B1(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 V1(e,t){var r=B1(e),n=r[0],a=r[1],i=B1(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 $1(e){return Te(e)?e:e?.5:0}function SI(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),a=Ir(n*2),i=0;i<n;i++){var o=E1(r,e,t,i);a[i*2]=o[0],a[i*2+1]=o[1]}return a}function cn(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 CI(e,t){var r=[],n=e.length,a,i;function o(c,f,d){var h=c.coord,v=(d-h)/(f.coord-h),m=px(v,[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 TI(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=j(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=CI(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 v=10,m=d[0].coord-v,g=d[h-1].coord+v,y=g-m;if(y<.001)return"transparent";M(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 ey(0,0,0,0,d,!0);return _[a]=m,_[a+"2"]=g,_}}function NI(e,t,r){var n=e.get("showAllSymbol"),a=n==="auto";if(!(n&&!a)){var i=r.getAxesByScale("ordinal")[0];if(i&&!(a&&xI(i,t))){var o=t.mapDimension(i.dim),s={};return M(i.getViewLabels(),function(l){var u=i.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function xI(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(_d.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function DI(e,t){return isNaN(e)||isNaN(t)}function AI(e){for(var t=e.length/2;t>0&&DI(e[t*2-2],e[t*2-1]);t--);return t-1}function F1(e,t){return[e[t*2],e[t*2+1]]}function kI(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 z1(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<vt.length;t++)if(e.get([vt[t],"endLabel","show"]))return!0;return!1}function Sd(e,t,r,n){if(ou(t,"cartesian2d")){var a=n.getModel("endLabel"),i=a.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=z1(n)?function(h,v){e._endLabelOnDuring(h,v,o,s,i,a,t)}:null,u=t.getBaseAxis().isHorizontal(),c=I1(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."),L1(t,r,n)}function MI(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 EI=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new Oe,n=new vI;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,v=this._symbolDraw,m=this._polyline,g=this._polygon,y=this._lineGroup,_=!n.ssr&&r.get("animation"),w=!c.isEmpty(),S=c.get("origin"),T=M1(o,l,S),C=w&&SI(o,l,T),x=r.get("showSymbol"),b=r.get("connectNulls"),N=x&&!d&&NI(r,l,o),A=this._data;A&&A.eachItemGraphicEl(function(ce,Me){ce.__temp&&(s.remove(ce),A.setItemGraphicEl(Me,null))}),x||v.remove(),s.add(y);var D=d?!1:r.get("step"),k;o&&o.getArea&&r.get("clip",!0)&&(k=o.getArea(),k.width!=null?(k.x-=.1,k.y-=.1,k.width+=.2,k.height+=.2):k.r0&&(k.r0-=.5,k.r+=.5)),this._clipShapeForSymbol=k;var P=TI(l,o,a)||l.getVisual("style")[l.getVisual("drawType")];if(!(m&&h.type===o.type&&D===this._step))x&&v.updateData(l,{isIgnore:N,clipShape:k,disableAnimation:!0,getSymbolPoint:function(ce){return[f[ce*2],f[ce*2+1]]}}),_&&this._initSymbolLabelAnimation(l,o,k),D&&(f=cn(f,o,D,b),C&&(C=cn(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(Sd(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=Sd(this,o,!1,r);Ct(E,{shape:I.shape},r)}else y.setClipPath(Sd(this,o,!0,r));x&&v.updateData(l,{isIgnore:N,clipShape:k,disableAnimation:!0,getSymbolPoint:function(ce){return[f[ce*2],f[ce*2+1]]}}),(!R1(this._stackedOnPoints,C)||!R1(this._points,f))&&(_?this._doUpdateAnimation(l,C,o,a,D,S,b):(D&&(f=cn(f,o,D,b),C&&(C=cn(C,o,D,b))),m.setShape({points:f}),g&&g.setShape({points:f,stackedOnPoints:C})))}var L=r.getModel("emphasis"),R=L.get("focus"),B=L.get("blurScope"),V=L.get("disabled");if(m.useStyle(pe(u.getLineStyle(),{fill:"none",stroke:P,lineJoin:"bevel"})),js(m,r,"lineStyle"),m.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var W=m.getState("emphasis").style;W.lineWidth=+m.style.lineWidth+1}ge(m).seriesIndex=r.seriesIndex,Fn(m,R,B,V);var q=$1(r.get("smooth")),Q=r.get("smoothMonotone");if(m.setShape({smooth:q,smoothMonotone:Q,connectNulls:b}),g){var ue=l.getCalculationInfo("stackedOnSeries"),z=0;g.useStyle(pe(c.getAreaStyle(),{fill:P,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ue&&(z=$1(ue.get("smooth"))),g.setShape({smooth:q,stackedOnSmooth:z,smoothMonotone:Q,connectNulls:b}),js(g,r,"areaStyle"),ge(g).seriesIndex=r.seriesIndex,Fn(g,R,B,V)}var he=function(ce){i._changePolyState(ce)};l.eachItemGraphicEl(function(ce){ce&&(ce.onHoverStateChange=he)}),this._polyline.onHoverStateChange=he,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){ge(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,a,i){var o=r.getData(),s=xn(o,i);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=r.get("zlevel")||0,h=r.get("z")||0;u=new _d(o,s),u.x=c,u.y=f,u.setZ(d,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=d,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Qt.prototype.highlight.call(this,r,n,a,i)},t.prototype.downplay=function(r,n,a,i){var o=r.getData(),s=xn(o,i);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Qt.prototype.downplay.call(this,r,n,a,i)},t.prototype._changePolyState=function(r){var n=this._polygon;_m(this._polyline,r),n&&_m(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new _I({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 bI({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(a),this._polygon=a,a},t.prototype._initSymbolLabelAnimation=function(r,n,a){var i,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(i=s.isHorizontal(),o=!1):n.type==="polar"&&(i=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");ie(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=ie(f)?f(null):f;r.eachItemGraphicEl(function(h,v){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 x=_===y?0:(w-y)/(_-y);l&&(x=1-x);var b=ie(f)?f(v):c*x+d,N=m.getSymbolPath(),A=N.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}),N.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,a){var i=r.getModel("endLabel");if(z1(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=AI(l);c>=0&&(Wa(s,Un(r,"endLabel"),{inheritColor:a,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?D1(o,h):Eo(o,f)},enableTextSetter:!0},MI(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"),v=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),x=y?"x":"y",b=kI(f,S,x),N=b.range,A=N[1]-N[0],D=void 0;if(A>=1){if(A>1&&!h){var k=F1(f,N[0]);u.attr({x:k[0]+T,y:k[1]+C}),o&&(D=d.getRawValue(N[0]))}else{var k=c.getPointOn(S,x);k&&u.attr({x:k[0]+T,y:k[1]+C});var P=d.getRawValue(N[0]),E=d.getRawValue(N[1]);o&&(D=dD(a,v,P,E,b.t))}i.lastFrameIndex=N[0]}else{var I=r===1||i.lastFrameIndex>0?N[0]:0,k=F1(f,I);o&&(D=d.getRawValue(I)),u.attr({x:k[0]+T,y:k[1]+C})}if(o){var L=ll(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=yI(this._data,r,this._stackedOnPoints,n,this._coordSys,a,this._valueOrigin),h=d.current,v=d.stackedOnCurrent,m=d.next,g=d.stackedOnNext;if(o&&(h=cn(d.current,a,o,l),v=cn(d.stackedOnCurrent,a,o,l),m=cn(d.next,a,o,l),g=cn(d.stackedOnNext,a,o,l)),V1(h,m)>3e3||c&&V1(v,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(),Qe(u,y,f),c&&(c.setShape({points:h,stackedOnPoints:v}),c.stopAnimation(),Qe(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 x=u.shape.__points,b=0;b<_.length;b++){var N=_[b].el,A=_[b].ptIdx*2;N.x=x[A],N.y=x[A+1],N.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,a=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),a&&a.eachItemGraphicEl(function(i,o){i.__temp&&(n.remove(i),a.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Qt);const PI=EI;function II(e,t){return{seriesType:e,plan:Bh(),reset:function(r){var n=r.getData(),a=r.coordinateSystem,i=r.pipelineContext,o=t||i.large;if(a){var s=j(a.dimensions,function(h){return n.mapDimension(h)}).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 c=n.getStore(),f=n.getDimensionIndex(s[0]),d=n.getDimensionIndex(s[1]);return l&&{progress:function(h,v){for(var m=h.end-h.start,g=o&&Ir(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]):v.setItemLayout(w,T.slice())}o&&v.setLayout("points",g)}}}}}}var LI={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]}},OI=function(e){return Math.round(e.length/2)};function G1(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 v=void 0;X(i)?v=LI[i]:ie(i)&&(v=i),v&&t.setData(a.downSample(a.mapDimension(u.dim),1/h,v,OI))}}}}}function RI(e){e.registerChartView(PI),e.registerSeriesModel(dI),e.registerLayout(II("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,G1("line"))}var Cd=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return Kl(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)M(i.getAxes(),function(d,h){if(d.type==="category"&&n!=null){var v=d.getTicksCoords(),m=d.getTickModel().get("alignWithLabel"),g=o[h],y=n[h]==="x1"||n[h]==="y1";if(y&&!m&&(g+=1),v.length<2)return;if(v.length===2){s[h]=d.toGlobalCoord(d.getExtent()[y?1:0]);return}for(var _=void 0,w=void 0,S=1,T=0;T<v.length;T++){var C=v[T].coord,x=T===v.length-1?v[T-1].tickValue+S:v[T].tickValue;if(x===g){w=C;break}else if(x<g)_=C;else if(_!=null&&x>g){w=(C+_)/2;break}T===1&&(S=x-v[0].tickValue)}w==null&&(_?_&&(w=v[v.length-1].coord):w=v[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}(Er);Er.registerClass(Cd);var BI=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return Kl(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=cl(Cd.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}(Cd);const VI=BI;var $I=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}(),H1=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new $I},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,v=d?f-c<h:c-f<h;v||(c=f-(d?h:-h));var m=Math.cos(c),g=Math.sin(c),y=Math.cos(f),_=Math.sin(f);v?(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}(me);function FI(e,t){t=t||{};var r=t.isRoundCap;return function(n,a,i){var o=a.position;if(!o||o instanceof Array)return Ds(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,v=(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),x="left",b="top";switch(s){case"startArc":T=c+(h-l)*w(y),C=f+(h-l)*S(y),x="center",b="top";break;case"insideStartArc":T=c+(h+l)*w(y),C=f+(h+l)*S(y),x="center",b="bottom";break;case"startAngle":T=c+v*w(m)+su(m,l+_,!1),C=f+v*S(m)+lu(m,l+_,!1),x="right",b="middle";break;case"insideStartAngle":T=c+v*w(m)+su(m,-l+_,!1),C=f+v*S(m)+lu(m,-l+_,!1),x="left",b="middle";break;case"middle":T=c+v*w(y),C=f+v*S(y),x="center",b="middle";break;case"endArc":T=c+(d+l)*w(y),C=f+(d+l)*S(y),x="center",b="bottom";break;case"insideEndArc":T=c+(d-l)*w(y),C=f+(d-l)*S(y),x="center",b="top";break;case"endAngle":T=c+v*w(g)+su(g,l+_,!0),C=f+v*S(g)+lu(g,l+_,!0),x="left",b="middle";break;case"insideEndAngle":T=c+v*w(g)+su(g,-l+_,!0),C=f+v*S(g)+lu(g,-l+_,!0),x="right",b="middle";break;default:return Ds(n,a,i)}return n=n||{},n.x=T,n.y=C,n.align=x,n.verticalAlign=b,n}}function zI(e,t,r,n){if(Te(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 su(e,t,r){return t*Math.sin(e)*(r?-1:1)}function lu(e,t,r){return t*Math.cos(e)*(r?1:-1)}function Po(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:j(n,function(i){return Xr(i,a)})}}var Td=Math.max,Nd=Math.min;function GI(e,t){var r=e.getArea&&e.getArea();if(ou(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 HI=function(e){H(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,a,i){this._model=r,this._removeOnRenderedListener(a),this._updateDrawMode(r);var o=r.get("coordinateSystem");o==="cartesian2d"||o==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,a):this._renderNormal(r,n,a,i)):process.env.NODE_ENV!=="production"&&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){Ha(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=WI(r,u);h&&this._enableRealtimeSort(h,s,a);var v=r.get("clip",!0)||h,m=GI(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,x=i&&i.type==="changeAxisOrder";function b(D){var k=uu[u.type](s,D),P=KI(u,f,k);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 k=s.getItemModel(D),P=uu[u.type](s,D,k);if(y&&b(D),!(!s.hasValue(D)||!j1[u.type](P))){var E=!1;v&&(E=W1[u.type](m,P));var I=U1[u.type](r,s,D,P,f,d,c.model,!1,g);h&&(I.forceLabelAnimation=!0),Z1(I,s,D,k,P,r,f,u.type==="polar"),C?I.attr({shape:P}):h?Y1(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,k){var P=s.getItemModel(D),E=uu[u.type](s,D,P);if(y){var I=void 0;T.length===0?I=b(k):(I=T[k],I.useStyle(_.getItemStyle()),u.type==="cartesian2d"?I.setShape("r",w):I.setShape("cornerRadius",w),S[D]=I);var L=uu[u.type](s,D),R=ew(f,L,u);Qe(I,{shape:R},d,D)}var B=l.getItemGraphicEl(k);if(!s.hasValue(D)||!j1[u.type](E)){o.remove(B);return}var V=!1;if(v&&(V=W1[u.type](m,E),V&&o.remove(B)),B?Qf(B):B=U1[u.type](r,s,D,E,f,d,c.model,!!B,g),h&&(B.forceLabelAnimation=!0),x){var W=B.getTextContent();if(W){var q=ll(W);q.prevValue!=null&&(q.prevValue=q.value)}}else Z1(B,s,D,P,E,r,f,u.type==="polar");C?B.attr({shape:E}):h?Y1(h,d,B,E,D,f,!0,x):Qe(B,{shape:E},r,D,null),s.setItemGraphicEl(D,B),B.ignore=V,o.add(B)}).remove(function(D){var k=l.getItemGraphicEl(D);k&&rl(k,r,D)}).execute();var N=this._backgroundGroup||(this._backgroundGroup=new Oe);N.removeAll();for(var A=0;A<S.length;++A)N.add(S[A]);o.add(N),this._backgroundEls=S,this._data=s},t.prototype._renderLarge=function(r,n,a){this._clear(),J1(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),J1(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&O1(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:j(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){rl(i,r,ge(i).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Qt),W1={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=Td(t.x,e.x),s=Nd(t.x+t.width,a),l=Td(t.y,e.y),u=Nd(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=Nd(t.r,e.r),i=Td(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}},U1={cartesian2d:function(e,t,r,n,a,i,o,s,l){var u=new Pe({shape:G({},n),z2:1});if(u.__dataIndex=r,u.name="item",i){var c=u.shape,f=a?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,a,i,o,s,l){var u=!a&&l?H1:Gn,c=new u({shape:n,z2:1});c.name="item";var f=X1(a);if(c.calculateTextPosition=FI(f,{isRoundCap:u===H1}),i){var d=c.shape,h=a?"r":"endAngle",v={};d[h]=a?n.r0:n.startAngle,v[h]=n[h],(s?Qe:Ct)(c,{shape:v},i)}return c}};function WI(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 Y1(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?Qe:Ct)(r,{shape:l},t,a,null);var c=t?e.baseAxis.model:null;(o?Qe:Ct)(r,{shape:u},c,a)}function q1(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var UI=["x","y","width","height"],YI=["cx","cy","r","startAngle","endAngle"],j1={cartesian2d:function(e){return!q1(e,UI)},polar:function(e){return!q1(e,YI)}},uu={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),a=r?jI(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 qI(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function X1(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 Z1(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=Po(n.getModel("itemStyle"),c,!0);G(c,f),e.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=n.getShallow("cursor");d&&e.attr("cursor",d);var h=s?o?a.r>=a.r0?"endArc":"startArc":a.endAngle>=a.startAngle?"endAngle":"startAngle":o?a.height>=0?"bottom":"top":a.width>=0?"right":"left",v=Un(n);Wa(e,v,{labelFetcher:i,labelDataIndex:r,defaultText:Eo(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,zI(e,g==="outside"?h:g,X1(o),n.get(["label","rotate"]))}Dk(m,v,i.getRawValue(r),function(_){return D1(t,_)});var y=n.getModel(["emphasis"]);Fn(e,y.get("focus"),y.get("blurScope"),y.get("disabled")),js(e,n),qI(a)&&(e.style.fill="none",e.style.stroke="none",M(e.states,function(_){_.style&&(_.style.fill=_.style.stroke="none")}))}function jI(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 XI=function(){function e(){}return e}(),K1=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new XI},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}(me);function J1(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 K1({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 K1({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")),ge(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",Q1),f.on("mousemove",Q1)),r&&r.push(f)}var Q1=$h(function(e){var t=this,r=ZI(t,e.offsetX,e.offsetY);ge(t).dataIndex=r>=0?r:null},30,!1);function ZI(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 ew(e,t,r){if(ou(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 KI(e,t,r){var n=e.type==="polar"?Gn:Pe;return new n({shape:ew(t,r,e),silent:!0,z2:0})}const JI=HI;function QI(e){e.registerChartView(JI),e.registerSeriesModel(VI),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Se(_P,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,wP("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,G1("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 tw=Math.PI*2,cu=Math.PI/180;function rw(e,t){return jn(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function nw(e,t){var r=rw(e,t),n=e.get("center"),a=e.get("radius");U(a)||(a=[0,a]);var i=Ne(r.width,t.getWidth()),o=Ne(r.height,t.getHeight()),s=Math.min(i,o),l=Ne(a[0],s/2),u=Ne(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=Ne(n[0],i)+r.x,f=Ne(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function eL(e,t,r){t.eachSeriesByType(e,function(n){var a=n.getData(),i=a.mapDimension("value"),o=rw(n,r),s=nw(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*cu,h=n.get("endAngle"),v=n.get("padAngle")*cu;h=h==="auto"?d-tw:-h*cu;var m=n.get("minAngle")*cu,g=m+v,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"),x=a.getDataExtent(i);x[0]=0;var b=S?1:-1,N=[d,h],A=b*v/2;qg(N,!S),d=N[0],h=N[1];var D=Math.abs(h-d),k=D,P=0,E=d;if(a.setLayout({viewRect:o,r:c}),a.each(i,function(L,R){var B;if(isNaN(L)){a.setItemLayout(R,{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,k-=g):P+=L;var V=E+b*B,W=0,q=0;v>B?(W=E+b*B/2,q=W):(W=E+A,q=V-A),a.setItemLayout(R,{angle:B,startAngle:W,endAngle:q,clockwise:S,cx:l,cy:u,r0:f,r:T?qe(L,x,[f,c]):c}),E=V}),k<tw&&y)if(k<=.001){var I=D/y;a.each(i,function(L,R){if(!isNaN(L)){var B=a.getItemLayout(R);B.angle=I;var V=0,W=0;I<v?(V=d+b*(R+1/2)*I,W=V):(V=d+b*R*I+A,W=d+b*(R+1)*I-A),B.startAngle=V,B.endAngle=W}})}else w=k/P,E=d,a.each(i,function(L,R){if(!isNaN(L)){var B=a.getItemLayout(R),V=B.angle===g?g:L*w,W=0,q=0;V<v?(W=E+b*V/2,q=W):(W=E+A,q=E+b*V-A),B.startAngle=W,B.endAngle=q,E+=b*V}})})}function tL(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 aw(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,x=Math.sqrt((1-Math.abs(S*S/y))*C),b=t+(x+w.len2)*a,N=b-w.label.x,A=w.targetTextWidth-N*a;iw(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,x=n+w.len,b=Math.abs(C)<x?Math.sqrt(T*T/(1-C*C/x/x)):x;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 v=e[h].label.x-u;e[h].linePoints[1][0]+=v,e[h].label.x=u}cI(e,l,l+o)&&f(e)}function nL(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;xd(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 v=e[d];if(!xd(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var h=v.label,m=v.linePoints,g=void 0;v.labelAlignTo==="edge"?h.x<t?g=m[2][0]-v.labelDistance-o-v.edgeDistance:g=o+a-v.edgeDistance-m[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?h.x<t?g=c-o-v.bleedMargin:g=o+a-f-v.bleedMargin:h.x<t?g=h.x-o-v.bleedMargin:g=o+a-h.x-v.bleedMargin,v.targetTextWidth=g,iw(v,g)}}aw(u,t,r,n,1,a,i,o,s,f),aw(l,t,r,n,-1,a,i,o,s,c);for(var d=0;d<e.length;d++){var v=e[d];if(!xd(v)&&v.linePoints){var h=v.label,m=v.linePoints,y=v.labelAlignTo==="edge",_=h.style.padding,w=_?_[1]+_[3]:0,S=h.style.backgroundColor?0:w,T=v.rect.width+S,C=m[1][0]-m[2][0];y?h.x<t?m[2][0]=o+v.edgeDistance+T+v.labelDistance:m[2][0]=o+a-v.edgeDistance-T-v.labelDistance:(h.x<t?m[2][0]=h.x+v.labelDistance:m[2][0]=h.x-v.labelDistance,m[1][0]=m[2][0]+C),m[1][1]=m[2][1]=h.y}}}function iw(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,v=t<c?h:r?h>e.unconstrainedWidth?null:h:null;n.setStyle("width",v)}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 xd(e){return e.position==="center"}function aL(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 v(C){if(!C.ignore)return!0;for(var x in C.states)if(C.states[x].ignore===!1)return!0;return!1}t.each(function(C){var x=t.getItemGraphicEl(C),b=x.shape,N=x.getTextContent(),A=x.getTextGuideLine(),D=t.getItemModel(C),k=D.getModel("label"),P=k.get("position")||D.get(["emphasis","label","position"]),E=k.get("distanceToLabelLine"),I=k.get("alignTo"),L=Ne(k.get("edgeDistance"),u),R=k.get("bleedMargin"),B=D.getModel("labelLine"),V=B.get("length");V=Ne(V,u);var W=B.get("length2");if(W=Ne(W,u),Math.abs(b.endAngle-b.startAngle)<o){M(N.states,h),N.ignore=!0,A&&(M(A.states,h),A.ignore=!0);return}if(v(N)){var q=(b.startAngle+b.endAngle)/2,Q=Math.cos(q),ue=Math.sin(q),z,he,ce,Me;n=b.cx,a=b.cy;var He=P==="inside"||P==="inner";if(P==="center")z=b.cx,he=b.cy,Me="center";else{var Ie=(He?(b.r+b.r0)/2*Q:b.r*Q)+n,Ae=(He?(b.r+b.r0)/2*ue:b.r*ue)+a;if(z=Ie+Q*3,he=Ae+ue*3,!He){var re=Ie+Q*(V+l-b.r),ee=Ae+ue*(V+l-b.r),ht=re+(Q<0?-1:1)*W,Le=ee;I==="edge"?z=Q<0?c+L:c+u-L:z=ht+(Q<0?-E:E),he=Le,ce=[[Ie,Ae],[re,ee],[ht,Le]]}Me=He?"center":I==="edge"?Q>0?"right":"left":Q>0?"left":"right"}var Nt=Math.PI,Gt=0,mn=k.get("rotate");if(Te(mn))Gt=mn*(Nt/180);else if(P==="center")Gt=0;else if(mn==="radial"||mn===!0){var Fu=Q<0?-q+Nt:-q;Gt=Fu}else if(mn==="tangential"&&P!=="outside"&&P!=="outer"){var Br=Math.atan2(Q,ue);Br<0&&(Br=Nt*2+Br);var zu=ue>0;zu&&(Br=Nt+Br),Gt=Br-Nt}if(i=!!Gt,N.x=z,N.y=he,N.rotation=Gt,N.setStyle({verticalAlign:"middle"}),He){N.setStyle({align:Me});var mi=N.states.select;mi&&(mi.x+=N.x,mi.y+=N.y)}else{var yn=N.getBoundingRect().clone();yn.applyTransform(N.getComputedTransform());var zo=(N.style.margin||0)+2.1;yn.y-=zo/2,yn.height+=zo,r.push({label:N,labelLine:A,position:P,len:V,len2:W,minTurnAngle:B.get("minTurnAngle"),maxSurfaceAngle:B.get("maxSurfaceAngle"),surfaceNormal:new le(Q,ue),linePoints:ce,textAlign:Me,labelDistance:E,labelAlignTo:I,edgeDistance:L,bleedMargin:R,rect:yn,unconstrainedWidth:yn.width,labelStyleWidth:N.style.width})}x.setTextConfig({inside:He})}}),!i&&e.get("avoidLabelOverlap")&&nL(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&&(M(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?(M(_.states,h),_.ignore=!0):(nI(T,g.minTurnAngle),aI(T,g.surfaceNormal,g.maxSurfaceAngle),_.setShape({points:T}),y.__hostTarget.textGuideLineConfig={anchor:new le(T[0][0],T[0][1])})}}}var iL=function(e){H(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=G(Po(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,Qe(o,{shape:{endAngle:c.endAngle}},s,n))}else Qf(o),Qe(o,{shape:f},s,n);o.useStyle(r.getItemVisual(n,"style")),js(o,l);var h=(c.startAngle+c.endAngle)/2,v=s.get("selectedOffset"),m=Math.cos(h)*v,g=Math.sin(h)*v,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=G({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Po(u.getModel("itemStyle"),c)),G(o.ensureState("select"),{x:m,y:g,shape:Po(l.getModel(["select","itemStyle"]),c)}),G(o.ensureState("blur"),{shape:Po(l.getModel(["blur","itemStyle"]),c)});var _=o.getTextGuideLine(),w=o.getTextContent();_&&G(_.ensureState("select"),{x:m,y:g}),G(w.ensureState("select"),{x:m,y:g}),Fn(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;Wa(i,Un(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 Ga,this.setTextGuideLine(h)),oI(this,sI(o),{stroke:u,opacity:Ur(s.get(["lineStyle","opacity"]),c,1)})}},t}(Gn),oL=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,a,i){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var d=new Gn({shape:nw(r,a)});d.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=d,l.add(d)}o.diff(s).add(function(h){var v=new iL(o,h,u);o.setItemGraphicEl(h,v),l.add(v)}).update(function(h,v){var m=s.getItemGraphicEl(v);m.updateData(o,h,u),m.off("click"),l.add(m),o.setItemGraphicEl(h,m)}).remove(function(h){var v=s.getItemGraphicEl(h);rl(v,r,h)}).execute(),aL(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var a=n.getData(),i=a.getItemLayout(0);if(i){var o=r[0]-i.cx,s=r[1]-i.cy,l=Math.sqrt(o*o+s*s);return l<=i.r&&l>=i.r0}},t.type="pie",t}(Qt);const sL=oL;function lL(e,t,r){t=U(t)&&{coordDimensions:t}||G({encodeDefine:e.getEncode()},t);var n=e.getSource(),a=X_(n,t).dimensions,i=new xo(a,e);return i.initData(n,r),i}var uL=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 cL=uL;var fL=De(),hL=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new cL(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 lL(this,{coordDimensions:["value"],encodeDefaulter:Se(tM,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),a=fL(n),i=a.seats;if(!i){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),i=a.seats=Ux(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){Is(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}(Er);const dL=hL;function pL(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!(Te(o)&&!isNaN(o)&&o<0)})}}}function vL(e){e.registerChartView(sL),e.registerSeriesModel(dL),FE("pie",e.registerAction),e.registerLayout(Se(eL,"pie")),e.registerProcessor(tL("pie")),e.registerProcessor(pL("pie"))}var gL=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(xe);const mL=gL;var Dd=function(e){H(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}(xe);Wt(Dd,WP);var ow={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)"]}}},yL=ve({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},ow),Ad=ve({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},ow),_L=ve({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Ad),wL=pe({logBase:10},Ad);const bL={category:yL,value:Ad,time:_L,log:wL};var SL={value:1,category:1,time:1,log:1};function sw(e,t,r,n){M(SL,function(a,i){var o=ve(ve({},bL[i],!0),n,!0),s=function(l){H(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+i,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=io(this),h=d?oo(c):{},v=f.getTheme();ve(c,v.get(i+"Axis")),ve(c,this.getDefaultOption()),c.type=lw(c),d&&ja(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=ud.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",lw)}function lw(e){return e.type||(e.data?"category":"value")}var CL=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 j(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ye(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 TL=CL;var kd=["x","y"];function uw(e){return e.type==="interval"||e.type==="time"}var NL=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=kd,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!uw(r)||!uw(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,v=this._transform=[c,0,0,f,d,h];this._invTransform=Ic([],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),i=this.dataToPoint(n),o=this.getArea(),s=new _e(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 Dt(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 Dt(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 _e(i,o,s,l)},t}(TL),xL=function(e){H(t,e);function t(r,n,a,i,o){var s=e.call(this,r,n,a)||this;return s.index=0,s.type=i||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(rI);const DL=xL;function Md(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,v=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var m=o.toGlobalCoord(o.dataToCoord(0));v[d.onZero]=Math.max(Math.min(m,v[1]),v[0])}i.position=[u==="y"?v[d[l]]:f[0],u==="x"?v[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?v[d[s]]-v[d.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Wr(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 cw(e){return e.get("coordinateSystem")==="cartesian2d"}function fw(e){var t={xAxisModel:null,yAxisModel:null};return M(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+' "'+Ur(e.get(a+"Index"),e.get(a+"Id"),0)+'" not found');t[n]=i}),t}var Ed=Math.log;function AL(e,t,r){var n=Do.prototype,a=n.getTicks.call(r),i=n.getTicks.call(r,!0),o=a.length-1,s=n.getInterval.call(r),l=d1(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=Ed(e.base);u=[Ed(u[0])/d,Ed(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 v=n.getInterval.call(e),m=u[0],g=u[1];if(c&&f)v=(g-m)/o;else if(c)for(g=u[0]+v*o;g<u[1]&&isFinite(g)&&isFinite(u[1]);)v=fd(v),g=u[0]+v*o;else if(f)for(m=u[1]-v*o;m>u[0]&&isFinite(m)&&isFinite(u[0]);)v=fd(v),m=u[1]-v*o;else{var y=e.getTicks().length-1;y>o&&(v=fd(v));var _=v*o;g=Math.ceil(u[1]/v)*v,m=Ve(g-_),m<0&&u[0]>=0?(m=0,g=Ve(_)):g>0&&u[1]<=0&&(g=0,m=-Ve(_))}var w=(a[0].value-i[0].value)/s,S=(a[o].value-i[o].value)/s;if(n.setExtent.call(e,m+v*w,g+v*S),n.setInterval.call(e,v),(w||S)&&n.setNiceExtent.call(e,m+v,g-v),process.env.NODE_ENV!=="production"){var T=n.getTicks.call(e);T[1]&&(!hP(v)||pf(T[1].value)>pf(v))&&ze("The ticks may be not readable when set min: "+t.get("min")+", max: "+t.get("max")+" and alignTicks: true")}}var kL=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=kd,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=ye(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],v=h.model,m=h.scale;cd(m)&&v.get("alignTicks")&&v.get("interval")==null?c.push(h):(p1(m,v),cd(m)&&(s=h))}c.length&&(s||(s=c.pop(),p1(s.scale,s.model)),M(c,function(g){AL(g.scale,g.model,s.scale)}))}}a(n.x),a(n.y);var i={};M(n.x,function(o){hw(n,"y",o,i)}),M(n.y,function(o){hw(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=jn(a,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),i&&(M(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=zP(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()),M(this._coordsList,function(u){u.calcAffineTransform()});function l(){M(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]),ML(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]}J(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,M(s.x,function(c,f){M(s.y,function(d,h){var v="x"+f+"y"+h,m=new NL(v);m.master=a,m.model=t,a._coordsMap[v]=m,a._coordsList.push(m),m.addAxis(c),m.addAxis(d)})});function u(c){return function(f,d){if(Pd(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 v=new DL(c,$P(f),[0,0],f.get("type"),h),m=v.type==="category";v.onBand=m&&f.get("boundaryGap"),v.inverse=f.get("inverse"),f.axis=v,v.model=f,v.grid=i,v.index=d,i._axesList.push(v),s[c][d]=v,l[c]++}}}},e.prototype._updateScale=function(t,r){M(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(cw(a)){var i=fw(a),o=i.xAxisModel,s=i.yAxisModel;if(!Pd(o,r)||!Pd(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){M(g1(a,i.dim),function(o){i.scale.unionExtentFromData(a,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return M(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(cw(a)){var i=fw(a),o=i.xAxisModel,s=i.yAxisModel,l=o.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!l)throw new Error('Grid "'+Ur(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=kd,e}();function Pd(e,t){return e.getCoordSysModel()===t}function hw(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)dw(a[l])&&(i=a[l]);else for(var u in a)if(a.hasOwnProperty(u)&&dw(a[u])&&!n[c(a[u])]){i=a[u];break}i&&(n[c(i)]=!0);function c(f){return f.dim+"_"+f.index}}function dw(e){return e&&e.type!=="category"&&e.type!=="time"&&FP(e)}function ML(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 EL=kL;var fn=Math.PI,oa=function(){function e(t,r){this.group=new Oe,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 Oe({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!pw[t]},e.prototype.add=function(t){pw[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var a=bg(r-t),i,o;return As(a)?(o=n>0?"top":"bottom",i="center"):As(a-fn)?(o=n>0?"bottom":"top",i="center"):(o="middle",a>0&&a<fn?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}(),pw={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&&(Dt(s,s,o),Dt(l,l,o));var c=G({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new en({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Qi(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)||Te(h))&&(h=[h,h]);var v=Ol(t.get(["axisLine","symbolOffset"])||0,h),m=h[0],g=h[1];M([{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(y,_){if(d[_]!=="none"&&d[_]!=null){var w=Pr(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=LL(r,n,t,e),i=RL(r,n,t,e);if(IL(t,i,a),OL(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=lI(j(i,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));fI(o)}},axisName:function(e,t,r,n){var a=Wr(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,gw(i)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*fn/180);var v;gw(i)?d=oa.innerTextLayout(e.rotation,h??e.rotation,o):(d=PL(e.rotation,i,h||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(d.rotation)),!isFinite(v)&&(v=null)));var m=s.getFont(),g=t.get("nameTruncate",!0)||{},y=g.ellipsis,_=Wr(e.nameTruncateMaxWidth,g.maxWidth,v),w=new Ue({x:f[0],y:f[1],rotation:d.rotation,silent:oa.isLabelSilent(t),style:Zt(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(nh({el:w,componentModel:t,itemName:a}),w.__fullText=a,w.anid="name",t.get("triggerEvent")){var S=oa.makeAxisEventDataBase(t);S.targetType="axisName",S.name=a,ge(w).eventData=S}n.add(w),w.updateTransform(),r.add(w),w.decomposeTransform()}}};function PL(e,t,r,n){var a=bg(r-e),i,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return As(a-fn/2)?(o=l?"bottom":"top",i="center"):As(a-fn*1.5)?(o=l?"top":"bottom",i="center"):(o="middle",a<fn*1.5&&a>fn/2?i=l?"left":"right":i=l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:o}}function IL(e,t,r){if(!v1(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?(Ft(i),Ft(u)):vw(i,o)&&(n?(Ft(o),Ft(c)):(Ft(i),Ft(u))),a===!1?(Ft(s),Ft(f)):vw(l,s)&&(a?(Ft(l),Ft(d)):(Ft(s),Ft(f)))}}function Ft(e){e&&(e.ignore=!0)}function vw(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var a=Mc([]);return Pc(a,a,-e.rotation),r.applyTransform(Da([],a,e.getLocalTransform())),n.applyTransform(Da([],a,t.getLocalTransform())),r.intersect(n)}}function gw(e){return e==="middle"||e==="center"}function mw(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&&(Dt(o,o,t),Dt(s,s,t));var c=new en({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Qi(c.shape,c.style.lineWidth),c.anid=a+"_"+e[l].tickValue,i.push(c)}return i}function LL(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=mw(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 OL(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=mw(o[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function RL(e,t,r,n){var a=r.axis,i=Wr(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!i||a.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=a.getViewLabels(),u=(Wr(n.labelRotate,o.get("rotate"))||0)*fn/180,c=oa.innerTextLayout(n.rotation,u,n.labelDirection),f=r.getCategories&&r.getCategories(!0),d=[],h=oa.isLabelSilent(r),v=r.get("triggerEvent");return M(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];J(T)&&T.textStyle&&(S=new et(T.textStyle,o,r.ecModel))}var C=S.getTextColor()||r.get(["axisLine","lineStyle","color"]),x=a.dataToCoord(y),b=S.getShallow("align",!0)||c.textAlign,N=oe(S.getShallow("alignMinLabel",!0),b),A=oe(S.getShallow("alignMaxLabel",!0),b),D=S.getShallow("verticalAlign",!0)||S.getShallow("baseline",!0)||c.textVerticalAlign,k=oe(S.getShallow("verticalAlignMinLabel",!0),D),P=oe(S.getShallow("verticalAlignMaxLabel",!0),D),E=new Ue({x,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(m.level||0),style:Zt(S,{text:_,align:g===0?N:g===l.length-1?A:b,verticalAlign:g===0?k:g===l.length-1?P:D,fill:ie(C)?C(a.type==="category"?w:a.type==="value"?y+"":y,g):C})});if(E.anid="label_"+y,v){var I=oa.makeAxisEventDataBase(r);I.targetType="axisLabel",I.value=w,I.tickIndex=g,a.type==="category"&&(I.dataIndex=y),ge(E).eventData=I}t.add(E),E.updateTransform(),d.push(E),e.add(E),E.decomposeTransform()}),d}}const yw=oa;function BL(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return VL(r,e,t),r.seriesInvolved&&FL(r,e),r}function VL(e,t,r){var n=t.getComponent("tooltip"),a=t.getComponent("axisPointer"),i=a.get("link",!0)||[],o=[];M(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Io(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(M(s.getAxes(),Se(m,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&M(v.baseAxes,Se(m,h?"cross":!0,d)),h&&M(v.otherAxes,Se(m,"cross",!1))}function m(g,y,_){var w=_.model.getModel("axisPointer",a),S=w.get("show");if(!(!S||S==="auto"&&!g&&!Od(w))){y==null&&(y=w.get("triggerTooltip")),w=g?$L(_,f,a,t,g,y):w;var T=w.get("snap"),C=w.get("triggerEmphasis"),x=Io(_.model),b=y||T||_.type==="category",N=e.axesInfo[x]={key:x,axis:_,coordSys:s,axisPointerModel:w,triggerTooltip:y,triggerEmphasis:C,involveSeries:b,snap:T,useHandle:Od(w),seriesModels:[],linkGroup:null};u[x]=N,e.seriesInvolved=e.seriesInvolved||b;var A=zL(i,_);if(A!=null){var D=o[A]||(o[A]={axesInfo:{}});D.axesInfo[x]=N,D.mapper=i[A].mapper,N.linkGroup=D}}}})}function $L(e,t,r,n,a,i){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};M(s,function(d){l[d]=fe(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 FL(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||M(e.coordSysAxesInfo[Io(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 zL(e,t){for(var r=t.model,n=t.dim,a=0;a<e.length;a++){var i=e[a]||{};if(Id(i[n+"AxisId"],r.id)||Id(i[n+"AxisIndex"],r.componentIndex)||Id(i[n+"AxisName"],r.name))return a}}function Id(e,t){return e==="all"||U(e)&&de(e,t)>=0||e===t}function GL(e){var t=Ld(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=Od(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 Ld(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Io(e)]}function HL(e){var t=Ld(e);return t&&t.axisPointerModel}function Od(e){return!!e.get(["handle","show"])}function Io(e){return e.type+"||"+e.id}var Rd={},_w=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this.axisPointerClass&&GL(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=HL(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"&&Rd[r])throw new Error("axisPointer "+r+" exists");Rd[r]=n},t.getAxisPointerClass=function(r){return r&&Rd[r]},t.type="axis",t}(Jt),Bd=De();function WL(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=Bd(e).splitAreaColors,d=se(),h=0;if(f)for(var v=0;v<u.length;v++){var m=f.get(u[v].tickValue);if(m!=null){h=(m+(c-1)*v)%c;break}}var g=a.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=U(s)?s:[s];for(var v=1;v<u.length;v++){var _=a.toGlobalCoord(u[v].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 x=u[v-1].tickValue;x!=null&&d.set(x,h),t.add(new Pe({anid:x!=null?"area_"+x:null,shape:{x:w,y:S,width:T,height:C},style:pe({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%c}Bd(e).splitAreaColors=d}}}function UL(e){Bd(e).splitAreaColors=null}var YL=["axisLine","axisTickLabel","axisName"],qL=["splitArea","splitLine","minorSplitLine"],ww=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,a,i){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Oe,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=Md(s,r),u=new yw(r,G({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(cd(d[h].getOtherAxis(r.axis).scale))return!0;return!1}},l));M(YL,u.add,u),this._axisGroup.add(u.getGroup()),M(qL,function(f){r.get([f,"show"])&&jL[f](this,this._axisGroup,r,s)},this);var c=i&&i.type==="changeAxisOrder"&&i.isInitSort;c||uy(o,this._axisGroup,r),e.prototype.render.call(this,r,n,a,i)}},t.prototype.remove=function(){UL(this)},t.type="cartesianAxis",t}(_w),jL={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=[],v=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 en({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]},v),silent:!0});Qi(w.shape,v.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 v=0;v<u[h].length;v++){var m=a.toGlobalCoord(u[h][v].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 en({anid:"minor_line_"+u[h][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});Qi(g.shape,d.lineWidth),t.add(g)}},splitArea:function(e,t,r,n){WL(e,t,r,n)}},bw=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(ww),XL=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=bw.type,r}return t.type="yAxis",t}(ww),ZL=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new Pe({shape:r.coordinateSystem.getRect(),style:pe({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(Jt),Sw={offset:0};function KL(e){e.registerComponentView(ZL),e.registerComponentModel(mL),e.registerCoordinateSystem("cartesian2d",EL),sw(e,"x",Dd,Sw),sw(e,"y",Dd,Sw),e.registerComponentView(bw),e.registerComponentView(XL),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var Cw="\0_ec_interaction_mutex";function Tw(e,t){return!!JL(e)[t]}function JL(e){return e[Cw]||(e[Cw]={})}ta({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},st);var QL=function(e){H(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(fe(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(!Av(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||!fu("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||Tw(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&&Na(r.event),Nw(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:i,oldY:o,newX:n,newY:a,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){Av(r)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(r){var n=fu("zoomOnMouseWheel",r,this._opt),a=fu("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;Vd(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);Vd(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!Tw(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;Vd(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Ut);function Vd(e,t,r,n,a){e.pointerChecker&&e.pointerChecker(n,a.originX,a.originY)&&(Na(n.event),Nw(e,t,r,n,a))}function Nw(e,t,r,n,a){a.isAvailableBehavior=te(fu,null,r,n),e.trigger(t,a)}function fu(e,t,r){var n=r[e];return!e||n&&(!X(n)||t.event[n+"Key"])}const eO=QL;var xw=en.prototype,$d=Xf.prototype,Dw=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Dw);function Fd(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var tO=function(e){H(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Dw},t.prototype.buildPath=function(r,n){Fd(n)?xw.buildPath.call(this,r,n):$d.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return Fd(this.shape)?xw.pointAt.call(this,r):$d.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,a=Fd(n)?[n.x2-n.x1,n.y2-n.y1]:$d.tangentAt.call(this,r);return _c(a,a)},t}(me),zd=["fromSymbol","toSymbol"];function Aw(e){return"_"+e+"Type"}function kw(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=zh(a),u=Ol(o||0,l);return n+l+u+(i||"")+(s||"")}function Mw(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=zh(a),u=Ol(o||0,l),c=Pr(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 tO({name:"line",subPixelOptimize:!0});return Gd(t.shape,e),t}function Gd(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 nO=function(e){H(t,e);function t(r,n,a){var i=e.call(this)||this;return i._createLine(r,n,a),i}return t.prototype._createLine=function(r,n,a){var i=r.hostModel,o=r.getItemLayout(n),s=rO(o);s.shape.percent=0,Ct(s,{shape:{percent:1}},i,n),this.add(s),M(zd,function(l){var u=Mw(l,r,n);this.add(u),this[Aw(l)]=kw(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:{}};Gd(l.shape,s),Qe(o,l,i,n),M(zd,function(u){var c=kw(u,r,n),f=Aw(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=Mw(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 v=r.getItemModel(n),m=v.getModel("emphasis");s=m.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),u=v.getModel(["select","lineStyle"]).getLineStyle(),f=m.get("disabled"),d=m.get("focus"),h=m.get("blurScope"),c=Un(v)}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,M(zd,function(C){var x=this.childOfName(C);if(x){x.setColor(y),x.style.opacity=g.opacity;for(var b=0;b<vt.length;b++){var N=vt[b],A=o.getState(N);if(A){var D=A.style||{},k=x.ensureState(N),P=k.style||(k.style={});D.stroke!=null&&(P[x.__isEmptyBrush?"stroke":"fill"]=D.stroke),D.opacity!=null&&(P.opacity=D.opacity)}}x.markRedraw()}},this);var _=i.getRawValue(n);Wa(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(C,x){return i.getFormattedLabel(C,x,r.dataType)}},inheritColor:y||"#000",defaultOpacity:g.opacity,defaultText:(_==null?r.getName(n):isFinite(_)?Ve(_):_)+""});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}),Fn(this,d,h,f)},t.prototype.highlight=function(){qi(this)},t.prototype.downplay=function(){ji(this)},t.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},t.prototype.setLinePoints=function(r){var n=this.childOfName("line");Gd(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=Cv([],f,c);_c(d,d);function h(A,D){var k=A.__specifiedRotation;if(k==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",k)}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 v=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 x=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 N=void 0;switch(i.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":N=-_,m="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":N=_,m="top";break;default:N=0,m="middle"}switch(i.__position){case"end":i.x=d[0]*y+f[0],i.y=d[1]*_+f[1],v=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],v=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*x+c[0],i.y=c[1]+N,v=S[0]<0?"right":"left",i.originX=-y*x,i.originY=-N;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=C[0],i.y=C[1]+N,v="center",i.originY=-N;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-y*x+f[0],i.y=f[1]+N,v=S[0]>=0?"right":"left",i.originX=y*x,i.originY=-N;break}i.scaleX=i.scaleY=o,i.setStyle({verticalAlign:i.__verticalAlign||m,align:i.__align||v})}},t}(Oe);const aO=nO;var iO=function(){function e(t){this.group=new Oe,this._LineCtor=t||aO}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=Ew(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=Ew(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!oO(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var i=r.getItemLayout(a);if(Hd(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){Ha(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var a=t.getItemLayout(r);if(Hd(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(!Hd(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 oO(e){return e.animators&&e.animators.length>0}function Ew(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:Un(t)}}function Pw(e){return isNaN(e[0])||isNaN(e[1])}function Hd(e){return e&&!Pw(e[0])&&!Pw(e[1])}const sO=iO;function hu(e,t,r,n,a,i){e=e||0;var o=r[1]-r[0];if(a!=null&&(a=ii(a,[0,o])),i!=null&&(i=Math.max(i,a??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=ii(s,[0,o]),a=i=ii(s,[a,i]),n=0}t[0]=ii(t[0],r),t[1]=ii(t[1],r);var l=Wd(t,n);t[n]+=e;var u=a||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=ii(t[n],c);var f;return f=Wd(t,n),a!=null&&(f.sign!==l.sign||f.span<a)&&(t[1-n]=t[n]+l.sign*a),f=Wd(t,n),i!=null&&f.span>i&&(t[1-n]=t[n]+f.sign*i),t}function Wd(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 ii(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var Iw={color:"fill",borderColor:"stroke"},lO={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Lr=De(),uO=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return Kl(null,this)},t.prototype.getDataParams=function(r,n,a){var i=e.prototype.getDataParams.call(this,r,n);return a&&(i.info=Lr(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}(Er);const cO=uO;function fO(e,t){return t=t||[0,0],j(["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 hO(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(fO,e)}}}function dO(e,t){return t=t||[0,0],j([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 pO(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(dO,e)}}}function vO(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,a=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-a)-r.dataToCoord(n+a))}function gO(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:te(vO,e)}}}function mO(e,t){return t=t||[0,0],j(["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 yO(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(mO,e)}}}function _O(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 Lw={};function wO(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||Y(e,"text")))}function bO(e,t,r){var n=e,a,i,o;if(t==="text")o=n;else{o={},Y(n,"text")&&(o.text=n.text),Y(n,"rich")&&(o.rich=n.rich),Y(n,"textFill")&&(o.fill=n.textFill),Y(n,"textStroke")&&(o.stroke=n.textStroke),Y(n,"fontFamily")&&(o.fontFamily=n.fontFamily),Y(n,"fontSize")&&(o.fontSize=n.fontSize),Y(n,"fontStyle")&&(o.fontStyle=n.fontStyle),Y(n,"fontWeight")&&(o.fontWeight=n.fontWeight),i={type:"text",style:o,silent:!0},a={};var s=Y(n,"textPosition");r?a.position=s?n.textPosition:"inside":s&&(a.position=n.textPosition),Y(n,"textPosition")&&(a.position=n.textPosition),Y(n,"textOffset")&&(a.offset=n.textOffset),Y(n,"textRotation")&&(a.rotation=n.textRotation),Y(n,"textDistance")&&(a.distance=n.textDistance)}return Ow(o,e),M(o.rich,function(l){Ow(l,l)}),{textConfig:a,textContent:i}}function Ow(e,t){t&&(t.font=t.textFont||t.font,Y(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Y(t,"textAlign")&&(e.align=t.textAlign),Y(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Y(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Y(t,"textWidth")&&(e.width=t.textWidth),Y(t,"textHeight")&&(e.height=t.textHeight),Y(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Y(t,"textPadding")&&(e.padding=t.textPadding),Y(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Y(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Y(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Y(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Y(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Y(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Y(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function Rw(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";Bw(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,M(t.rich,function(s){Bw(s,s)}),n}function Bw(e,t){t&&(Y(t,"fill")&&(e.textFill=t.fill),Y(t,"stroke")&&(e.textStroke=t.fill),Y(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Y(t,"font")&&(e.font=t.font),Y(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Y(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Y(t,"fontSize")&&(e.fontSize=t.fontSize),Y(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Y(t,"align")&&(e.textAlign=t.align),Y(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Y(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Y(t,"width")&&(e.textWidth=t.width),Y(t,"height")&&(e.textHeight=t.height),Y(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Y(t,"padding")&&(e.textPadding=t.padding),Y(t,"borderColor")&&(e.textBorderColor=t.borderColor),Y(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Y(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Y(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Y(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Y(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Y(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Y(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Y(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Y(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Y(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}function Vw(e,t){if(process.env.NODE_ENV!=="production"){var r=e+"^_^"+t;Lw[r]||(console.warn('[ECharts] DEPRECATED: "'+e+'" has been deprecated. '+t),Lw[r]=!0)}}var $w={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Fw=ye($w),du=Sr(ir,function(e,t){return e[t]=1,e},{}),zw=ir.join(", "),pu=["","style","shape","extra"],oi=De();function Ud(e,t,r,n,a){var i=e+"Animation",o=Kf(e,n,a)||{},s=oi(t).userDuring;return o.duration>0&&(o.during=s?te(AO,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),G(o,r[i]),o}function SO(e,t,r,n){n=n||{};var a=n.dataIndex,i=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=oi(e),u=t.style;l.userDuring=t.during;var c={},f={};if(MO(e,t,f),Hw("shape",t,f),Hw("extra",t,f),!i&&s&&(kO(e,t,c),Gw("shape",e,t,c),Gw("extra",e,t,c),EO(e,t,u,c)),f.style=u,TO(e,f,o),xO(e,t),s)if(i){var d={};M(pu,function(v){var m=v?t[v]:t;m&&m.enterFrom&&(v&&(d[v]=d[v]||{}),G(v?d[v]:d,m.enterFrom))});var h=Ud("enter",e,t,r,a);h.duration>0&&e.animateFrom(d,h)}else NO(e,t,a||0,r,c);CO(e,t),u?e.dirty():e.markRedraw()}function CO(e,t){for(var r=oi(e).leaveToProps,n=0;n<pu.length;n++){var a=pu[n],i=a?t[a]:t;i&&i.leaveTo&&(r||(r=oi(e).leaveToProps={}),a&&(r[a]=r[a]||{}),G(a?r[a]:r,i.leaveTo))}}function Yd(e,t,r,n){if(e){var a=e.parent,i=oi(e).leaveToProps;if(i){var o=Ud("update",e,t,r,0);o.done=function(){a.remove(e),n&&n()},e.animateTo(i,o)}else a.remove(e),n&&n()}}function si(e){return e==="all"}function TO(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 NO(e,t,r,n,a){if(a){var i=Ud("update",e,t,n,r);i.duration>0&&e.animateFrom(a,i)}}function xO(e,t){Y(t,"silent")&&(e.silent=t.silent),Y(t,"ignore")&&(e.ignore=t.ignore),e instanceof kn&&Y(t,"invisible")&&(e.invisible=t.invisible),e instanceof me&&Y(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var mr={},DO={setTransform:function(e,t){return process.env.NODE_ENV!=="production"&&ne(Y(du,e),"Only "+zw+" available in `setTransform`."),mr.el[e]=t,this},getTransform:function(e){return process.env.NODE_ENV!=="production"&&ne(Y(du,e),"Only "+zw+" available in `getTransform`."),mr.el[e]},setShape:function(e,t){process.env.NODE_ENV!=="production"&&li(e);var r=mr.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){process.env.NODE_ENV!=="production"&&li(e);var t=mr.el.shape;if(t)return t[e]},setStyle:function(e,t){process.env.NODE_ENV!=="production"&&li(e);var r=mr.el,n=r.style;return n&&(process.env.NODE_ENV!=="production"&&_a(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"&&li(e);var t=mr.el.style;if(t)return t[e]},setExtra:function(e,t){process.env.NODE_ENV!=="production"&&li(e);var r=mr.el.extra||(mr.el.extra={});return r[e]=t,this},getExtra:function(e){process.env.NODE_ENV!=="production"&&li(e);var t=mr.el.extra;if(t)return t[e]}};function li(e){if(process.env.NODE_ENV!=="production"&&(e==="transition"||e==="enterFrom"||e==="leaveTo"))throw new Error('key must not be "'+e+'"')}function AO(){var e=this,t=e.el;if(t){var r=oi(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}mr.el=t,n(DO)}}function Gw(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]={}),si(l))G(o,i);else for(var u=We(l),c=0;c<u.length;c++){var f=u[c],d=i[f];o[f]=d}else if(si(s)||de(s,e)>=0){!o&&(o=n[e]={});for(var h=ye(i),c=0;c<h.length;c++){var f=h[c],d=i[f];PO(a[f],d)&&(o[f]=d)}}}}}function Hw(e,t,r){var n=t[e];if(n)for(var a=r[e]={},i=ye(n),o=0;o<i.length;o++){var s=i[o];a[s]=Ii(n[s])}}function kO(e,t,r){for(var n=t.transition,a=si(n)?ir:We(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"&&Ww(o,"el.transition"),r[o]=s}}}function MO(e,t,r){for(var n=0;n<Fw.length;n++){var a=Fw[n],i=$w[a],o=t[a];o&&(r[i[0]]=o[0],r[i[1]]=o[1])}for(var n=0;n<ir.length;n++){var s=ir[n];t[s]!=null&&(r[s]=t[s])}}function EO(e,t,r,n){if(r){var a=e.style,i;if(a){var o=r.transition,s=t.transition;if(o&&!si(o)){var l=We(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&&(si(s)||si(o)||de(s,"style")>=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!i&&(i=n.style={});for(var v=ye(r),u=0;u<v.length;u++){var c=v[u];if(h[c]){var f=a[c];i[c]=f}}}}}}}function PO(e,t){return it(e)?e!==t:e!=null&&isFinite(e)}var Ww;process.env.NODE_ENV!=="production"&&(Ww=function(e,t){Y(du,e)||ze("Prop `"+e+"` is not a permitted in `"+t+"`. Only `"+ye(du).join("`, `")+"` are permitted.")});var Uw=De(),IO=["percent","easing","shape","style","extra"];function LO(e){e.stopAnimation("keyframe"),e.attr(Uw(e))}function Yw(e,t,r){if(!(!r.isAnimationEnabled()||!t)){if(U(t)){M(t,function(s){Yw(e,s,r)});return}var n=t.keyframes,a=t.duration;if(r&&a==null){var i=Kf("enter",r,0);a=i&&i.duration}if(!(!n||!a)){var o=Uw(e);M(pu,function(s){if(!(s&&!e[s])){var l,u=!1;n.sort(function(c,f){return c.percent-f.percent}),M(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=ye(d);if(s||(h=Ye(h,function(g){return de(IO,g)<0})),!!h.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var v=0;v<f.length;v++)f[v]!==l&&f[v].targetName===l.targetName&&f[v].stopTracks(h);s&&(o[s]=o[s]||{});var m=s?o[s]:o;M(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 Or="emphasis",hn="normal",qd="blur",jd="select",dn=[hn,Or,qd,jd],Xd={normal:["itemStyle"],emphasis:[Or,"itemStyle"],blur:[qd,"itemStyle"],select:[jd,"itemStyle"]},Zd={normal:["label"],emphasis:[Or,"label"],blur:[qd,"label"],select:[jd,"label"]},OO=["x","y"],RO="e\0\0",zt={normal:{},emphasis:{},blur:{},select:{}},qw={cartesian2d:hO,geo:pO,single:gO,polar:yO,calendar:_O};function vu(e){return e instanceof me}function Kd(e){return e instanceof kn}function BO(e,t){t.copyTransform(e),Kd(t)&&Kd(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,vu(t)&&vu(e)&&t.setShape(e.shape))}var VO=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this._progressiveEls=null;var o=this._data,s=r.getData(),l=this.group,u=Xw(r,s,n,a);o||l.removeAll(),s.diff(o).add(function(f){ep(a,null,f,u(f,i),r,l,s)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&Yd(d,Lr(d).option,r)}).update(function(f,d){var h=o.getItemGraphicEl(d);ep(a,h,f,u(f,i),r,l,s)}).execute();var c=r.get("clip",!0)?O1(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=Xw(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=ep(null,null,f,l(f,o),n,this.group,s);d&&(d.traverse(c),u.push(d))}},t.prototype.eachRendered=function(r){Ha(this._progressiveEls||this.group,r)},t.prototype.filterForExposedEvent=function(r,n,a,i){var o=n.element;if(o==null||a.name===o)return!0;for(;(a=a.__hostTarget||a.parent)&&a!==this.group;)if(a.name===o)return!0;return!1},t.type="custom",t}(Qt);const $O=VO;function Jd(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=eb(n);r=il(i,null,a,n.layout||"center"),Lr(r).customPathData=i}else if(t==="image")r=new Qr({}),Lr(r).customImagePath=e.style.image;else if(t==="text")r=new Ue({});else if(t==="group")r=new Oe;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=ry(t);if(!o){var s="";process.env.NODE_ENV!=="production"&&(s='graphic type "'+t+'" can not be found.'),lt(s)}r=new o}return Lr(r).customGraphicType=t,r.name=e.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function Qd(e,t,r,n,a,i,o){LO(t);var s=a&&a.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=OO);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;Y(u,"textFill")&&(u.fill=u.textFill),Y(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=vu(t)?l.decal:null;e&&f&&(f.dirty=!0,c=Fl(f,e)),l.__decalPattern=c}if(Kd(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}SO(t,n,i,{dataIndex:r,isInit:o,clearStyle:!0}),Yw(t,n.keyframeAnimation,i)}function jw(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),wm(i)}}function FO(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++)zO(n,t,dn[s])}}function zO(e,t,r){var n=r===hn,a=n?t:gu(t,r),i=a?a.z2:null,o;i!=null&&(o=n?e:e.ensureState(r),o.z2=i||0)}function Xw(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||qw[i.type],"This coordSys does not support custom series.")),o=i.prepareCustoms?i.prepareCustoms(i):qw[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:x,visual:A,barLayout:D,currentSeriesIndices:k,font:P},o.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:GO(e.getData())},u,c,f={},d={},h={},v={},m=0;m<dn.length;m++){var g=dn[m];h[g]=e.getModel(Xd[g]),v[g]=e.getModel(Zd[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(Xd[I])):y(E).getModel(Xd[I]):h[I]}function w(E,I){return t.hasItemOption?E===u?d[I]||(d[I]=y(E).getModel(Zd[I])):y(E).getModel(Zd[I]):v[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 R=t.getDimensionIndex(E);return R>=0?t.getStore().get(R,I):void 0}var B=t.get(L.name,I),V=L&&L.ordinalMeta;return V?V.categories[B]:B}function C(E,I){process.env.NODE_ENV!=="production"&&Vw("api.style","Please write literal style directly instead."),I==null&&(I=u);var L=t.getItemVisual(I,"style"),R=L&&L.fill,B=L&&L.opacity,V=_(I,hn).getItemStyle();R!=null&&(V.fill=R),B!=null&&(V.opacity=B);var W={inheritColor:X(R)?R:"#000"},q=w(I,hn),Q=Zt(q,null,W,!1,!0);Q.text=q.getShallow("show")?oe(e.getFormattedLabel(I,hn),Eo(t,I)):null;var ue=sl(q,W,!1);return N(E,V),V=Rw(V,Q,ue),E&&b(V,E),V.legacy=!0,V}function x(E,I){process.env.NODE_ENV!=="production"&&Vw("api.styleEmphasis","Please write literal style directly instead."),I==null&&(I=u);var L=_(I,Or).getItemStyle(),R=w(I,Or),B=Zt(R,null,null,!0,!0);B.text=R.getShallow("show")?Ur(e.getFormattedLabel(I,Or),e.getFormattedLabel(I,hn),Eo(t,I)):null;var V=sl(R,null,!0);return N(E,L),L=Rw(L,B,V),E&&b(L,E),L.legacy=!0,L}function b(E,I){for(var L in I)Y(I,L)&&(E[L]=I[L])}function N(E,I){E&&(E.textFill&&(I.textFill=E.textFill),E.textPosition&&(I.textPosition=E.textPosition))}function A(E,I){if(I==null&&(I=u),Y(Iw,E)){var L=t.getItemVisual(I,"style");return L?L[Iw[E]]:null}if(Y(lO,E))return t.getItemVisual(I,E)}function D(E){if(i.type==="cartesian2d"){var I=i.getBaseAxis();return gP(pe({axis:I},E))}}function k(){return r.getCurrentSeriesIndices()}function P(E){return my(E,r)}}function GO(e){var t={};return M(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 ep(e,t,r,n,a,i,o){if(!n){i.remove(t);return}var s=tp(e,t,r,n,a,i);return s&&o.setItemGraphicEl(r,s),s&&Fn(s,n.focus,n.blurScope,n.emphasisDisabled),s}function tp(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&&Zw(t,n,a)&&(o=de(i.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=Jd(n),s&&BO(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),zt.normal.cfg=zt.normal.conOpt=zt.emphasis.cfg=zt.emphasis.conOpt=zt.blur.cfg=zt.blur.conOpt=zt.select.cfg=zt.select.conOpt=null,zt.isLegacy=!1,WO(u,r,n,a,l,zt),HO(u,r,n,a,l),Qd(e,u,r,n,zt,a,l),Y(n,"info")&&(Lr(u).info=n.info);for(var c=0;c<dn.length;c++){var f=dn[c];if(f!==hn){var d=gu(n,f),h=rp(n,d,f);jw(f,u,d,h,zt)}}return FO(u,n,a),n.type==="group"&&UO(e,u,r,n,a),o>=0?i.replaceAt(u,o):i.add(u),u}function Zw(e,t,r){var n=Lr(e),a=t.type,i=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||a!=null&&a!==n.customGraphicType||a==="path"&&XO(i)&&eb(i)!==n.customPathData||a==="image"&&Y(o,"image")&&o.image!==n.customImagePath}function HO(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&&Zw(o,i,n)&&(o=null),o||(o=Jd(i),process.env.NODE_ENV!=="production"&&ne(vu(o),"Only any type of `path` can be used in `clipPath`, rather than "+o.type+"."),e.setClipPath(o)),Qd(null,o,t,i,null,n,a)}}function WO(e,t,r,n,a,i){if(!e.isGroup){Kw(r,null,i),Kw(r,Or,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=Jd(o),e.setTextContent(c)),Qd(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!==hn){var v=i[h].conOpt;jw(h,c,v,rp(o,v,h),null)}}f?c.dirty():c.markRedraw()}}}}function Kw(e,t,r){var n=t?gu(e,t):e,a=t?rp(e,n,Or):e.style,i=e.type,o=n?n.textConfig:null,s=e.textContent,l=s?t?gu(s,t):s:null;if(a&&(r.isLegacy||wO(a,i,!!o,!!l))){r.isLegacy=!0;var u=bO(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 gu(e,t){return t?e?e[t]:null:e}function rp(e,t,r){var n=t&&t.style;return n==null&&r===Or&&e&&(n=e.styleEmphasis),n}function UO(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){qO({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),tp(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 v=t.childAt(h);YO(t,v,a)}}}function YO(e,t,r){t&&Yd(t,Lr(e).option,r)}function qO(e){new z_(e.oldChildren,e.newChildren,Jw,Jw,e).add(Qw).update(Qw).remove(jO).execute()}function Jw(e,t){var r=e&&e.name;return r??RO+t}function Qw(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,a=t!=null?r.oldChildren[t]:null;tp(r.api,a,r.dataIndex,n,r.seriesModel,r.group)}function jO(e){var t=this.context,r=t.oldChildren[e];r&&Yd(r,Lr(r).option,t.seriesModel)}function eb(e){return e&&(e.pathData||e.d)}function XO(e){return e&&(Y(e,"pathData")||Y(e,"d"))}function ZO(e){e.registerChartView($O),e.registerSeriesModel(cO)}var sa=De(),tb=fe,np=te,KO=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 Oe,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Se(rb,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}ib(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=Ld(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=sa(t).pointerEl=new Ck[i.type](tb(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,a){if(r.label){var i=sa(t).labelEl=new Ue(tb(r.label));t.add(i),ab(i,a)}},e.prototype.updatePointerEl=function(t,r,n){var a=sa(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=sa(t).labelEl;i&&(i.setStyle(r.label.style),n(i,{x:r.label.x,y:r.label.y}),ab(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=th(i.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Na(u.event)},onmousedown:np(this._onHandleDragMove,this,0,0),drift:np(this._onHandleDragMove,this),ondragend:np(this._onHandleDragEnd,this)}),n.add(a)),ib(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,kl(this,"_doDispatchAxisPointer",i.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){rb(this._axisPointerModel,!r&&this._moveAnimation,this._handle,ap(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(ap(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=a,n.stopAnimation(),n.attr(ap(a)),sa(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),Ml(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 rb(e,t,r,n){nb(sa(r).lastProp,n)||(sa(r).lastProp=n,t?Qe(r,n,e):(r.stopAnimation(),r.attr(n)))}function nb(e,t){if(J(e)&&J(t)){var r=!0;return M(t,function(n,a){r=r&&nb(e[a],n)}),!!r}else return e===t}function ab(e,t){e[t.get(["label","show"])?"show":"hide"]()}function ap(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function ib(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 JO=KO;function QO(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 eR(e,t,r,n,a){var i=r.get("value"),o=ob(i,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=_l(s.get("padding")||0),u=s.getFont(),c=sf(o,u),f=a.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],v=a.align;v==="right"&&(f[0]-=d),v==="center"&&(f[0]-=d/2);var m=a.verticalAlign;m==="bottom"&&(f[1]-=h),m==="middle"&&(f[1]-=h/2),tR(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:Zt(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:g}),z2:10}}function tR(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 ob(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:gd(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};M(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):ie(o)&&(i=o(s))}return i}function sb(e,t,r){var n=xa();return Pc(n,n,r.rotation),Ec(n,n,r.position),eo([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function rR(e,t,r,n,a,i){var o=yw.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=a.get(["label","margin"]),eR(t,n,a,i,{position:sb(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function nR(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function aR(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var iR=function(e){H(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,a,i,o){var s=a.axis,l=s.grid,u=i.get("type"),c=lb(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=QO(i),h=oR[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var v=Md(l.model,a);rR(n,r,v,a,i,o)},t.prototype.getHandleTransform=function(r,n,a){var i=Md(n.axis.grid.model,n,{labelInside:!1});i.labelMargin=a.get(["handle","margin"]);var o=sb(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=lb(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 v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:h,tooltipOption:v[c]}},t}(JO);function lb(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var oR={line:function(e,t,r){var n=nR([t,r[0]],[t,r[1]],ub(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:aR([t-n/2,r[0]],[n,a],ub(e))}}};function ub(e){return e.dim==="x"?0:1}const sR=iR;var lR=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(xe);const uR=lR;var Rr=De(),cR=M;function cb(e,t,r){if(!ae.node){var n=t.getZr();Rr(n).records||(Rr(n).records={}),fR(n,t);var a=Rr(n).records[e]||(Rr(n).records[e]={});a.handler=r}}function fR(e,t){if(Rr(e).initialized)return;Rr(e).initialized=!0,r("click",Se(fb,"click")),r("mousemove",Se(fb,"mousemove")),r("globalout",dR);function r(n,a){e.on(n,function(i){var o=pR(t);cR(Rr(e).records,function(s){s&&a(s,i,o.dispatchAction)}),hR(o.pendings,t)})}}function hR(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 dR(e,t,r){e.handler("leave",null,r)}function fb(e,t,r,n){t.handler(e,r,n)}function pR(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 ip(e,t){if(!ae.node){var r=t.getZr(),n=(Rr(r).records||{})[e];n&&(Rr(r).records[e]=null)}}var vR=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){var i=n.getComponent("tooltip"),o=r.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";cb("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){ip("axisPointer",n)},t.prototype.dispose=function(r,n){ip("axisPointer",n)},t.type="axisPointer",t}(Jt);const gR=vR;function hb(e,t){var r=[],n=e.seriesIndex,a;if(n==null||!(a=t.getSeriesByIndex(n)))return{point:[]};var i=a.getData(),o=xn(i,e);if(o==null||o<0||U(o))return{point:[]};var s=i.getItemGraphicEl(o),l=a.coordinateSystem;if(a.getTooltipPosition)r=a.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,v=i.mapDimension(d),m=[];m[h]=i.get(v,o),m[1-h]=i.get(i.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(m)||[]}else r=l.dataToPoint(i.getValues(j(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 db=De();function mR(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){mu(a)&&(a=hb({seriesIndex:i.seriesIndex,dataIndex:i.dataIndex},t).point);var l=mu(a),u=i.axesInfo,c=s.axesInfo,f=n==="leave"||mu(a),d={},h={},v={list:[],map:{}},m={showPointer:Se(_R,h),showTooltip:Se(wR,v)};M(s.coordSysMap,function(y,_){var w=l||y.containPoint(a);M(s.coordSysAxesInfo[_],function(S,T){var C=S.axis,x=TR(u,S);if(!f&&w&&(!u||x)){var b=x&&x.value;b==null&&!l&&(b=C.pointToData(a)),b!=null&&pb(S,b,m,!1,d)}})});var g={};return M(c,function(y,_){var w=y.linkGroup;w&&!h[_]&&M(w.axesInfo,function(S,T){var C=h[T];if(S!==y&&C){var x=C.value;w.mapper&&(x=y.axis.scale.parse(w.mapper(x,vb(S),vb(y)))),g[y.key]=x}})}),M(g,function(y,_){pb(c[_],y,m,!0,d)}),bR(h,c,d),SR(v,a,e,o),CR(c,o,r),d}}function pb(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=yR(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&a.seriesIndex==null&&G(a,s[0]),!n&&e.snap&&i.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function yR(e,t){var r=t.axis,n=r.dim,a=e,i=[],o=Number.MAX_VALUE,s=-1;return M(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 v=e-f,m=Math.abs(v);m<=o&&((m<o||v>=0&&s<0)&&(o=m,s=v,a=f,i.length=0),M(d,function(g){i.push({seriesIndex:l.seriesIndex,dataIndexInside:g,dataIndex:l.getData().getRawIndex(g)})}))}}),{payloadBatch:i,snapToValue:a}}function _R(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function wR(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=Io(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 bR(e,t,r){var n=r.axesInfo=[];M(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 SR(e,t,r,n){if(mu(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 CR(e,t,r){var n=r.getZr(),a="axisPointerLastHighlights",i=db(n)[a]||{},o=db(n)[a]={};M(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&M(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];M(i,function(u,c){!o[c]&&l.push(u)}),M(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 TR(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 vb(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 mu(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function gb(e){_w.registerAxisPointerClass("CartesianAxisPointer",sR),e.registerComponentModel(uR),e.registerComponentView(gR),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!U(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=BL(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},mR)}function NR(e){vr(KL),vr(gb)}var mb=["x","y","radius","angle","single"],xR=["cartesian2d","polar","singleAxis"];function DR(e){var t=e.get("coordinateSystem");return de(xR,t)>=0}function pn(e){return process.env.NODE_ENV!=="production"&&ne(e),e+"Axis"}function AR(e,t){var r=se(),n=[],a=se();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 v=r.get(d);v&&v[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(r.get(f)||r.set(f,[]))[d]=!0})}return n}function yb(e){var t=e.ecModel,r={infoList:[],infoMap:se()};return e.eachTargetAxis(function(n,a){var i=t.getComponent(pn(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 op=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}(),yu=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,a){var i=_b(r);this.settledOption=i,this.mergeDefaultAndTheme(r,a),this._doInit(i)},t.prototype.mergeOption=function(r){var n=_b(r);ve(this.option,r,!0),ve(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var a=this.settledOption;M([["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=se(),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 M(mb,function(a){var i=this.getReferringComponents(pn(a),cD);if(i.specified){n=!0;var o=new op;M(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 op;if(d.add(f.componentIndex),r.set(c,d),i=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",pt).models[0];h&&M(u,function(v){f.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",pt).models[0]&&d.add(v.componentIndex)})}}}i&&M(mb,function(u){if(i){var c=a.findComponents({mainType:pn(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new op;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");M([["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(pn(n),a))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(a,i){M(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(pn(r),n)},t.prototype.setRawRange=function(r){var n=this.option,a=this.settledOption;M([["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;M(["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}(xe);function _b(e){var t={};return M(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var kR=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a,i){this.dataZoomModel=r,this.ecModel=n,this.api=a},t.type="dataZoom",t}(Jt);const wb=kR;var ui=M,bb=Vi,MR=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(DR(r)){var n=pn(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 fe(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;ui(["start","end"],function(d,h){var v=t[d],m=t[d+"Value"];i[h]==="percent"?(v==null&&(v=o[h]),m=a.parse(qe(v,o,r))):(u=!0,m=m==null?r[h]:a.parse(m),v=qe(m,r,o)),l[h]=m==null||isNaN(m)?r[h]:m,s[h]=v==null||isNaN(v)?o[h]:v}),bb(l),bb(s);var c=this._minMaxSpan;u?f(l,s,r,o,!1):f(s,l,o,r,!0);function f(d,h,v,m,g){var y=g?"Span":"ValueSpan";hu(0,d,v,"all",c["min"+y],c["max"+y]);for(var _=0;_<2;_++)h[_]=qe(d[_],v,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=ER(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;ui(a,function(l){var u=l.getData(),c=u.mapDimensionsAll(n);if(c.length){if(i==="weakFilter"){var f=u.getStore(),d=j(c,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var v,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&&(v=!0),T&&(m=!0)}return g&&v&&m})}else ui(c,function(h){if(i==="empty")l.setData(u=u.map(h,function(m){return s(m)?m:NaN}));else{var v={};v[h]=o,u.selectRange(v)}});ui(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;ui(["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=qe(n[0]+o,n,[0,100],!0):i!=null&&(o=qe(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=wg(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 ER(e,t,r){var n=[1/0,-1/0];ui(r,function(o){HP(n,o.getData(),t)});var a=e.getAxisModel(),i=h1(a.axis.scale,a,n).calculate();return[i.min,i.max]}var PR={getTargetSeries:function(e){function t(a){e.eachComponent("dataZoom",function(i){i.eachTargetAxis(function(o,s){var l=e.getComponent(pn(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 MR(a,i,s,e),r.push(o.__dzAxisProxy))});var n=se();return M(r,function(a){M(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 IR=PR;function LR(e){e.registerAction("dataZoom",function(t,r){var n=AR(r,t);M(n,function(a){a.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Sb=!1;function Cb(e){Sb||(Sb=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,IR),LR(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function OR(e,t){var r=_l(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Pe({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 RR=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(xe);const BR=RR;function Tb(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function Nb(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 xb=Nb(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),VR=Nb(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Db(e,t){if(!e)return t;t=Ly(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function $R(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?t?r[t]:r:null}var FR=Db(VR,"transition"),sp=Db(xb,"transform"),zR="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ae.transform3dSupported?"will-change:transform;":"");function GR(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function HR(e,t,r){if(!X(r)||r==="inside")return"";var n=e.get("backgroundColor"),a=e.get("borderWidth");t=qn(t);var i=GR(r),o=Math.max(Math.round(a)*1.5,6),s="",l=sp+":",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 v=t+" solid "+a+"px;",m=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'<div style="'+m.join("")+'"></div>'}function WR(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?","+sp+n:",left"+n+",top"+n),FR+":"+a}function Ab(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;"+sp+":"+o+";":[["top",0],["left",0],[xb,o]]}function UR(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),M(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function YR(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=M0(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&a&&n.push(WR(a,r)),i&&n.push("background-color:"+i),M(["width","color","radius"],function(h){var v="border-"+h,m=Ly(v),g=e.get(m);g!=null&&n.push(v+":"+g+(h==="color"?"":"px"))}),n.push(UR(c)),f!=null&&n.push("padding:"+_l(f).join("px ")+"px"),n.join(";")+";"}function kb(e,t,r,n,a){var i=t&&t.painter;if(r){var o=i&&i.getViewportRoot();o&&IN(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 qR=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):ya(i)?i:ie(i)&&i(t.getDom()));kb(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=$R(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=zR+YR(t,!this._firstShow,this._longHide)+Ab(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"&&!Tb(n)&&(s=HR(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++)ya(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(kb(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var a=this.el.style,i=Ab(n[0],n[1]);M(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 jR=qR;var XR=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Eb(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;J(t)&<(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:M0(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),M(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),M(["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=Mb(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;Eb(a,this._zr,t,r),t=a[0],r=a[1];var i=n.style,o=vn(i.borderWidth||0),s=Mb(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 vn(e){return Math.max(0,e)}function Mb(e){var t=vn(e.shadowBlur||0),r=vn(e.shadowOffsetX||0),n=vn(e.shadowOffsetY||0);return{left:vn(t-r),right:vn(t+r),top:vn(t-n),bottom:vn(t+n)}}function Eb(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var ZR=new Pe({shape:{x:-1,y:-1,width:2,height:2}}),KR=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(ae.node||!n.getDom())){var a=r.getComponent("tooltip"),i=this._renderMode=hD(a.get("renderMode"));this._tooltipContent=i==="richText"?new XR(n):new jR(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")?kl(this,"_updatePosition",50,"fixRate"):Ml(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");cb("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=Pb(i,a);this._ticket="";var s=i.dataByCoordSys,l=tB(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=ZR;c.x=i.x,c.y=i.y,c.update(),ge(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=hb(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(Pb(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=Lo([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=ge(a);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;mo(a,function(c){if(ge(c).dataIndex!=null)return l=c,!0;if(ge(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=Lo([n.tooltipOption],i),l=this._renderMode,u=[],c=Jn("section",{blocks:[],noHeader:!0}),f=[],d=new Lh;M(r,function(_){M(_.dataByAxis,function(w){var S=a.getComponent(w.axisDim+"Axis",w.axisIndex),T=w.value;if(!(!S||T==null)){var C=ob(T,S.axis,a,w.seriesDataIndices,w.valueLabelOpt),x=Jn("section",{header:C,noHeader:!nr(C),sortBlocks:!0,blocks:[]});c.blocks.push(x),M(w.seriesDataIndices,function(b){var N=a.getSeriesByIndex(b.seriesIndex),A=b.dataIndexInside,D=N.getDataParams(A);if(!(D.dataIndex<0)){D.axisDim=w.axisDim,D.axisIndex=w.axisIndex,D.axisType=w.axisType,D.axisId=w.axisId,D.axisValue=gd(S.axis,{value:T}),D.axisValueLabel=C,D.marker=d.makeTooltipMarker("item",qn(D.color),l);var k=g0(N.formatTooltip(A,!0,null)),P=k.frag;if(P){var E=Lo([N],i).get("valueFormatter");x.blocks.push(E?G({valueFormatter:E},P):P)}k.text&&f.push(k.text),u.push(D)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,v=s.get("order"),m=A0(c,d,l,v,a.get("useUTC"),s.get("textStyle"));m&&f.unshift(m);var g=l==="richText"?`
|
|
42
42
|
|
|
43
|
-
`:"<br/>",y=f.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,i[0],i[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",i[0],i[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,a){var o=this._ecModel,i=ge(n),s=i.seriesIndex,l=o.getSeriesByIndex(s),u=i.dataModel||l,c=i.dataIndex,f=i.dataType,d=u.getData(f),h=this._renderMode,v=r.positionDefault,m=Li([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),g=m.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(c,f),w=new Lh;y.marker=w.makeTooltipMarker("item",qn(y.color),h);var _=v0(u.formatTooltip(c,!1,f)),S=m.get("order"),x=m.get("valueFormatter"),C=_.frag,N=C?D0(x?G({valueFormatter:x},C):C,w,h,S,o.get("useUTC"),m.get("textStyle")):_.text,b="item_"+u.name+"_"+c;this._showOrMove(m,function(){this._showTooltipContent(m,N,y,b,r.offsetX,r.offsetY,r.position,r.target,w)}),a({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,a){var o=ge(n),i=o.tooltipConfig,s=i.option||{};if(X(s)){var l=s;s={content:l,formatter:l}}var u=[s],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&u.push(c),u.push({formatter:s.content});var f=r.positionDefault,d=Li(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),v=Math.random()+"",m=new Lh;this._showOrMove(d,function(){var g=fe(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,v,r.offsetX,r.offsetY,r.position,n,m)}),a({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,a,o,i,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,v=this._getNearestPoint([i,s],a,r.get("trigger"),r.get("borderColor")),m=v.color;if(d)if(X(d)){var g=r.ecModel.get("useUTC"),y=U(a)?a[0]:a,w=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=d,w&&(h=pl(y.axisValue,h,g)),h=Oy(h,a,!0)}else if(oe(d)){var _=te(function(S,x){S===this._ticket&&(f.setContent(x,c,r,m,l),this._updatePosition(r,l,i,s,f,a,u))},this);this._ticket=o,h=d(a,o,_)}else h=d;f.setContent(h,c,r,m,l),f.show(r,m),this._updatePosition(r,l,i,s,f,a,u)}},t.prototype._getNearestPoint=function(r,n,a,o){if(a==="axis"||U(n))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!U(n))return{color:o||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,a,o,i,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=i.getSize(),d=r.get("align"),h=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),oe(n)&&(n=n([a,o],s,i.el,v,{viewSize:[u,c],contentSize:f.slice()})),U(n))a=Te(n[0],u),o=Te(n[1],c);else if(J(n)){var m=n;m.width=f[0],m.height=f[1];var g=jn(m,{width:u,height:c});a=g.x,o=g.y,d=null,h=null}else if(X(n)&&l){var y=QR(n,v,f,r.get("borderWidth"));a=y[0],o=y[1]}else{var y=KR(a,o,i,u,c,d?null:20,h?null:20);a=y[0],o=y[1]}if(d&&(a-=Pb(d)?f[0]/2:d==="right"?f[0]:0),h&&(o-=Pb(h)?f[1]/2:h==="bottom"?f[1]:0),Cb(r)){var y=JR(a,o,i,u,c);a=y[0],o=y[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||[],c=r[l]||{},f=c.dataByAxis||[];i=i&&u.length===f.length,i&&k(u,function(d,h){var v=f[h]||{},m=d.seriesDataIndices||[],g=v.seriesDataIndices||[];i=i&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&m.length===g.length,i&&k(m,function(y,w){var _=g[w];i=i&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),o&&k(d.seriesDataIndices,function(y){var w=y.seriesIndex,_=n[w],S=o[w];_&&S&&S.data!==_.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){ae.node||!n.getDom()||(kl(this,"_updatePosition"),this._tooltipContent.dispose(),op("itemTooltip",n))},t.type="tooltip",t}(Jt);function Li(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 o=e.length-1;o>=0;o--){var i=e[o];i&&(i instanceof et&&(i=i.get("tooltip",!0)),X(i)&&(i={formatter:i}),i&&(a=new et(i,a,n)))}return a}function Eb(e,t){return e.dispatchAction||te(t.dispatchAction,t)}function KR(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 JR(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 QR(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,c=t.height;switch(e){case"inside":s=t.x+u/2-a/2,l=t.y+c/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+c+i;break;case"left":s=t.x-a-i,l=t.y+c/2-o/2;break;case"right":s=t.x+u+i,l=t.y+c/2-o/2}return[s,l]}function Pb(e){return e==="center"||e==="middle"}function eB(e,t,r){var n=mf(e).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var o=Go(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 c=ge(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:i.componentIndex,el:l}}}}const tB=ZR;function rB(e){vr(vb),e.registerComponentModel(RR),e.registerComponentView(tB),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},it),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},it)}var nB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Ne),aB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){if(this.group.removeAll(),!!r.get("show")){var o=this.group,i=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=ie(r.get("textBaseline"),r.get("textVerticalAlign")),c=new Ue({style:Zt(i,{text:r.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),h=new Ue({style:Zt(s,{text:d,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),m=r.get("sublink"),g=r.get("triggerEvent",!0);c.silent=!v&&!g,h.silent=!m&&!g,v&&c.on("click",function(){Ry(v,"_"+r.get("target"))}),m&&h.on("click",function(){Ry(m,"_"+r.get("subtarget"))}),ge(c).eventData=ge(h).eventData=g?{componentType:"title",componentIndex:r.componentIndex}:null,o.add(c),d&&o.add(h);var y=o.getBoundingRect(),w=r.getBoxLayoutParams();w.width=y.width,w.height=y.height;var _=jn(w,{width:a.getWidth(),height:a.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),o.x=_.x,o.y=_.y,o.markRedraw();var S={align:l,verticalAlign:u};c.setStyle(S),h.setStyle(S),y=o.getBoundingRect();var x=_.margin,C=r.getItemStyle(["color","opacity"]);C.fill=r.get("backgroundColor");var N=new Pe({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:r.get("borderRadius")},style:C,subPixelOptimize:!0,silent:!0});o.add(N)}},t.type="title",t}(Jt);function oB(e){e.registerComponentModel(nB),e.registerComponentView(aB)}function iB(e,t){if(!e)return!1;for(var r=U(e)?e:[e],n=0;n<r.length;n++)if(r[n]&&r[n][t])return!0;return!1}function _u(e){Is(e,"label",["show"])}var wu=De(),Ib=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.createdBySelf=!1,r}return t.prototype.init=function(r,n,a){if(process.env.NODE_ENV!=="production"&&this.type==="marker")throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(r,a),this._mergeOption(r,a,!1,!0)},t.prototype.isAnimationEnabled=function(){if(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,o){var i=this.mainType;a||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=wu(s)[i];if(!l||!l.data){wu(s)[i]=null;return}u?u._mergeOption(l,n,!0):(o&&_u(l),k(l.data,function(c){c instanceof Array?(_u(c[0]),_u(c[1])):_u(c)}),u=this.createMarkerModelFromSeries(l,this,n),G(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),wu(s)[i]=u},this)},t.prototype.formatTooltip=function(r,n,a){var o=this.getData(),i=this.getRawValue(r),s=o.getName(r);return Jn("section",{header:this.name,blocks:[Jn("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 wu(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Ne);Wt(Ib,p0.prototype);const bu=Ib;function sB(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function lB(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function Su(e,t,r,n,a,o){var i=[],s=na(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=up(t,l,e),c=t.indicesOfNearest(l,u)[0];i[a]=t.get(r,c),i[o]=t.get(l,c);var f=t.get(n,c),d=ir(t.get(n,c));return d=Math.min(d,20),d>=0&&(i[o]=+i[o].toFixed(d)),[i,f]}var lp={min:Se(Su,"min"),max:Se(Su,"max"),average:Se(Su,"average"),median:Se(Su,"median")};function Lb(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,a=n&&n.dimensions;if(!lB(t)&&!U(t.coord)&&U(a)){var o=Ob(t,r,n,e);if(t=fe(t),t.type&&lp[t.type]&&o.baseAxis&&o.valueAxis){var i=de(a,o.baseAxis.dim),s=de(a,o.valueAxis.dim),l=lp[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||!U(a))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)lp[u[c]]&&(u[c]=up(r,r.mapDimension(a[c]),u[c]));return t}}function Ob(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 Rb(e,t){return e&&e.containData&&t.coord&&!sB(t)?e.containData(t.coord):!0}function cB(e,t){return e?function(r,n,a,o){var i=o<2?r.coord&&r.coord[o]:r.value;return Qa(i,t[o])}:function(r,n,a,o){return Qa(r.value,t[o])}}function up(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 cp=De(),fB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=se()},t.prototype.render=function(r,n,a){var o=this,i=this.markerGroupMap;i.each(function(s){cp(s).keep=!1}),n.eachSeries(function(s){var l=bu.getMarkerModelFromSeries(s,o.type);l&&o.renderSeries(s,l,n,a)}),i.each(function(s){!cp(s).keep&&o.group.remove(s.group)})},t.prototype.markKeep=function(r){cp(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var a=this;k(r,function(o){var i=bu.getMarkerModelFromSeries(o,a.type);if(i){var s=i.getData();s.eachItemGraphicEl(function(l){l&&(n?Sm(l):$f(l))})}})},t.type="marker",t}(Jt);const hB=fB;var dB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(bu);const pB=dB;var Cu=De(),vB=function(e,t,r,n){var a=e.getData(),o;if(U(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=Wr(n.yAxis,n.xAxis);else{var u=Ob(n,a,t,e);s=u.valueAxis;var c=X_(a,u.valueDataDim);l=up(a,c,i)}var f=s.dim==="x"?0:1,d=1-f,h=fe(n),v={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,v.coord[d]=1/0;var m=r.get("precision");m>=0&&xe(l)&&(l=+l.toFixed(Math.min(m,20))),h.coord[f]=v.coord[f]=l,o=[h,v,{type:i,valueIndex:n.valueIndex,value:l}]}else process.env.NODE_ENV!=="production"&&Hr("Invalid markLine data."),o=[]}var g=[Lb(e,o[0]),Lb(e,o[1]),G({},o[2])];return g[2].type=g[2].type||null,ve(g[2],g[0]),ve(g[2],g[1]),g};function xu(e){return!isNaN(e)&&!isFinite(e)}function Bb(e,t,r,n){var a=1-e,o=n.dimensions[e];return xu(t[a])&&xu(r[a])&&t[e]===r[e]&&n.getAxis(o).containData(t[e])}function gB(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(Bb(1,r,n,e)||Bb(0,r,n,e)))return!0}return Rb(e,t[0])&&Rb(e,t[1])}function fp(e,t,r,n,a){var o=n.coordinateSystem,i=e.getItemModel(t),s,l=Te(i.get("x"),a.getWidth()),u=Te(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 c=o.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=o.dataToPoint([f,d])}if(iu(o,"cartesian2d")){var h=o.getAxis("x"),v=o.getAxis("y"),c=o.dimensions;xu(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):xu(e.get(c[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 mB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(o){var i=bu.getMarkerModelFromSeries(o,"markLine");if(i){var s=i.getData(),l=Cu(i).from,u=Cu(i).to;l.each(function(c){fp(l,c,!0,o,a),fp(u,c,!1,o,a)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),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,c=u.get(s)||u.set(s,new iO);this.group.add(c.group);var f=yB(i,r,n),d=f.from,h=f.to,v=f.line;Cu(n).from=d,Cu(n).to=h,n.setData(v);var m=n.get("symbol"),g=n.get("symbolSize"),y=n.get("symbolRotate"),w=n.get("symbolOffset");U(m)||(m=[m,m]),U(g)||(g=[g,g]),U(y)||(y=[y,y]),U(w)||(w=[w,w]),f.from.each(function(S){_(d,S,!0),_(h,S,!1)}),v.each(function(S){var x=v.getItemModel(S).getModel("lineStyle").getLineStyle();v.setItemLayout(S,[d.getItemLayout(S),h.getItemLayout(S)]),x.stroke==null&&(x.stroke=d.getItemVisual(S,"style").fill),v.setItemVisual(S,{fromSymbolKeepAspect:d.getItemVisual(S,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(S,"symbolOffset"),fromSymbolRotate:d.getItemVisual(S,"symbolRotate"),fromSymbolSize:d.getItemVisual(S,"symbolSize"),fromSymbol:d.getItemVisual(S,"symbol"),toSymbolKeepAspect:h.getItemVisual(S,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(S,"symbolOffset"),toSymbolRotate:h.getItemVisual(S,"symbolRotate"),toSymbolSize:h.getItemVisual(S,"symbolSize"),toSymbol:h.getItemVisual(S,"symbol"),style:x})}),c.updateData(v),f.line.eachItemGraphicEl(function(S){ge(S).dataModel=n,S.traverse(function(x){ge(x).dataModel=n})});function _(S,x,C){var N=S.getItemModel(x);fp(S,x,C,r,o);var b=N.getModel("itemStyle").getItemStyle();b.fill==null&&(b.fill=Z0(l,"color")),S.setItemVisual(x,{symbolKeepAspect:N.get("symbolKeepAspect"),symbolOffset:ie(N.get("symbolOffset",!0),w[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}(hB);function yB(e,t,r){var n;e?n=j(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return G(G({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new Ni(n,r),o=new Ni(n,r),i=new Ni([],r),s=j(r.get("data"),Se(vB,t,e,r));e&&(s=Ye(s,Se(gB,e)));var l=cB(!!e,n);return a.initData(j(s,function(u){return u[0]}),null,l),o.initData(j(s,function(u){return u[1]}),null,l),i.initData(j(s,function(u){return u[2]})),i.hasItemOption=!0,{from:a,to:o,line:i}}const _B=mB;function wB(e){e.registerComponentModel(pB),e.registerComponentView(_B),e.registerPreprocessor(function(t){iB(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var bB=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"])}},SB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,a=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),U(n)&&k(n,function(o,i){X(o)&&(o={type:o}),n[i]=ve(o,bB(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 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&&vf(l)&&n.push(l.name)}),this._availableNames=a;var o=this.get("data")||n,i=se(),s=j(o,function(l){return(X(l)||xe(l))&&(l={name:l}),i.get(l.name)?null:(i.set(l.name,!0),new et(l,this,this.ecModel))},this);this._data=Ye(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])&&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}(Ne);const hp=SB;var co=Se,dp=k,Tu=Oe,CB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new Tu),this.group.add(this._selectorGroup=new Tu),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 c=r.getBoxLayoutParams(),f={width:a.getWidth(),height:a.getHeight()},d=r.get("padding"),h=jn(c,f,d),v=this.layoutInner(r,i,h,o,l,u),m=jn(pe({width:v.width,height:v.height},c),f,d);this.group.x=m.x-v.x,this.group.y=m.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=LR(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(),c=se(),f=n.get("selectedMode"),d=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),dp(n.getData(),function(h,v){var m=h.get("name");if(!this.newlineDisabled&&(m===""||m===`
|
|
44
|
-
`)){var g=new
|
|
45
|
-
`||u==="")){var c=i.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 DB(e){e.registerAction("legendToggleSelect","legendselectchanged",Se(Oi,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Se(Oi,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Se(Oi,"inverseSelect")),e.registerAction("legendSelect","legendselected",Se(Oi,"select")),e.registerAction("legendUnSelect","legendunselected",Se(Oi,"unSelect"))}function zb(e){e.registerComponentModel(hp),e.registerComponentView(Fb),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,NB),e.registerSubTypeDefaulter("legend",function(){return"plain"}),DB(e)}var AB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,a){var o=si(r);e.prototype.init.call(this,r,n,a),Gb(this,r,o)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),Gb(this,this.option,r)},t.type="legend.scroll",t.defaultOption=cl(hp.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}(hp);function Gb(e,t,r){var n=e.getOrient(),a=[1,1];a[n.index]=0,ja(t,r,{type:"box",ignoreSize:!!a})}const MB=AB;var Hb=Oe,gp=["width","height"],mp=["x","y"],kB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new Hb),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Hb)},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 c=this._controllerGroup,f=n.get("pageIconSize",!0),d=U(f)?f:[f,f];v("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})),v("pageNext",1);function v(m,g){var y=m+"DataIndex",w=th(n.get("pageIcons",!0)[n.getOrient().name][g],{onclick:te(u._pageGo,u,y,n,o)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});w.name=m,c.add(w)}},t.prototype.layoutInner=function(r,n,a,o,i,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=gp[u],f=mp[u],d=gp[1-u],h=mp[1-u];i&&oi("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),m=l.getBoundingRect(),g=[-m.x,-m.y],y=fe(a);i&&(y[c]=a[c]-m[c]-v);var w=this._layoutContentAndController(r,o,y,u,c,d,h,f);if(i){if(s==="end")g[u]+=w[c]+v;else{var _=m[c]+v;g[u]-=_,w[f]-=_}w[c]+=m[c]+v,g[1-u]+=w[h]+w[d]/2-m[d]/2,w[d]=Math.max(w[d],m[d]),w[h]=Math.min(w[h],m[h]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return w},t.prototype._layoutContentAndController=function(r,n,a,o,i,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;oi(r.get("orient"),c,r.get("itemGap"),o?a.width:null,o?null:a.height),oi("horizontal",d,r.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),v=d.getBoundingRect(),m=this._showController=h[i]>a[i],g=[-h.x,-h.y];n||(g[o]=c[u]);var y=[0,0],w=[-v.x,-v.y],_=ie(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(m){var S=r.get("pageButtonPosition",!0);S==="end"?w[o]+=a[i]-v[i]:y[o]+=v[i]+_}w[1-o]+=h[s]/2-v[s]/2,c.setPosition(g),f.setPosition(y),d.setPosition(w);var x={x:0,y:0};if(x[i]=m?a[i]:h[i],x[s]=Math.max(h[s],v[s]),x[l]=Math.min(0,v[l]+w[1-o]),f.__rectSize=a[i],m){var C={x:0,y:0};C[i]=Math.max(a[i]-v[i]-_,0),C[s]=x[s],f.setClipPath(new Pe({shape:C})),f.__rectSize=C[i]}else d.eachChild(function(b){b.attr({invisible:!0,silent:!0})});var N=this._getPageInfo(r);return N.pageIndex!=null&&Qe(c,{x:N.contentPosition[0],y:N.contentPosition[1]},m?r:null),this._updatePageInfoView(r,N),x},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(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 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",X(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=gp[i],l=mp[i],u=this._findTargetItemIndex(n),c=a.children(),f=c[u],d=c.length,h=d?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var m=S(f);v.contentPosition[i]=-m.s;for(var g=u+1,y=m,w=m,_=null;g<=d;++g)_=S(c[g]),(!_&&w.e>y.s+o||_&&!x(_,y.s))&&(w.i>y.i?y=w:y=_,y&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=y.i),++v.pageCount)),w=_;for(var g=u-1,y=m,w=m,_=null;g>=-1;--g)_=S(c[g]),(!_||!x(w,_.s))&&y.i<w.i&&(w=y,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=y.i),++v.pageCount,++v.pageIndex),y=_;return v;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 x(C,N){return C.e>=N&&C.s<=N+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}(Fb);const EB=kB;function PB(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 IB(e){vr(zb),e.registerComponentModel(MB),e.registerComponentView(EB),PB(e)}function LB(e){vr(zb),vr(IB)}var OB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=cl(yu.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(yu);const RB=OB;var yp=De();function BB(e,t,r){yp(e).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=r)})}function VB(e,t){for(var r=yp(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||Wb(r,i))}}}function Wb(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function $B(e,t){var r={model:t,containsPoint:Se(zB,t),dispatchAction:Se(FB,e),dataZoomInfoMap:null,controller:null},n=r.controller=new QL(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 FB(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function zB(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function GB(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 HB(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=yp(r),a=n.coordSysRecordMap||(n.coordSysRecordMap=se());a.each(function(o){o.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){var i=mb(o);k(i.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,$B(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=se());c.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){Wb(a,o);return}var c=GB(l);i.enable(c.controlType,c.opt),i.setPointerChecker(o.containsPoint),Ml(o,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var WB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,a){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),BB(a,r,{pan:te(_p.pan,this),zoom:te(_p.zoom,this),scrollMove:te(_p.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){VB(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(_b),_p={zoom:function(e,t,r,n){var a=this.range,o=a.slice(),i=e.axisModels[0];if(i){var s=wp[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 c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(hu(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}},pan:Ub(function(e,t,r,n,a,o){var i=wp[n]([o.oldX,o.oldY],[o.newX,o.newY],t,a,r);return i.signal*(e[1]-e[0])*i.pixel/i.pixelLength}),scrollMove:Ub(function(e,t,r,n,a,o){var i=wp[n]([0,0],[o.scrollDelta,o.scrollDelta],t,a,r);return i.signal*(e[1]-e[0])*o.scrollDelta})};function Ub(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(hu(l,i,[0,100],"all"),this.range=i,o[0]!==i[0]||o[1]!==i[1])return i}}}var wp={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 UB=WB;function YB(e){Sb(e),e.registerComponentModel(RB),e.registerComponentView(UB),HB(e)}var qB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=cl(yu.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}(yu);const jB=qB;var Ri=Pe,Yb=7,XB=1,bp=30,ZB=7,Bi="horizontal",qb="vertical",KB=5,JB=["line","bar","candlestick","scatter"],QB={easing:"cubicOut",duration:100,delay:0},eV=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=te(this._onBrush,this),this._onBrushEnd=te(this._onBrushEnd,this)},t.prototype.render=function(r,n,a,o){if(e.prototype.render.apply(this,arguments),Ml(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(){kl(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?ZB:0,i=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Bi?{right:s.width-i.x-i.width,top:s.height-bp-Yb-o,width:i.width,height:bp}:{right:Yb,top:i.y,width:bp,height:i.height},u=si(r.option);k(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=jn(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===qb&&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===Bi&&!i?{scaleY:l?1:-1,scaleX:1}:a===Bi&&i?{scaleY:l?1:-1,scaleX:-1}:a===qb&&!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 Ri({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var i=new Ri({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();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,c=this._shadowPolylinePts;if(i!==this._shadowData||l!==this._shadowDim||n[0]!==a[0]||n[1]!==a[1]){var f=i.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,n[1]],v=[0,n[0]],m=[[n[0],0],[0,0]],g=[],y=v[1]/(i.count()-1),w=0,_=Math.round(i.count()/n[0]),S;i.each([l],function(T,M){if(_>0&&M%_){w+=y;return}var D=T==null||isNaN(T)||T==="",A=D?0:qe(T,f,h,!0);D&&!S&&M?(m.push([m[m.length-1][0],0]),g.push([g[g.length-1][0],0])):!D&&S&&(m.push([w,0]),g.push([w,0])),m.push([w,A]),g.push([w,A]),w+=y,S=D}),u=this._shadowPolygonPts=m,c=this._shadowPolylinePts=g}this._shadowData=i,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var x=this.dataZoomModel;function C(T){var M=x.getModel(T?"selectedDataBackground":"dataBackground"),D=new Oe,A=new jf({shape:{points:u},segmentIgnoreThreshold:1,style:M.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new Ga({shape:{points:c},segmentIgnoreThreshold:1,style:M.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(A),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,o=this.ecModel;return r.eachTargetAxis(function(i,s){var l=r.getAxisProxy(i,s).getTargetSeriesModels();k(l,function(u){if(!a&&!(n!==!0&&de(JB,u.get("type"))<0)){var c=o.getComponent(pn(i),s).axis,f=tV(i),d,h=u.coordinateSystem;f!=null&&h.getOtherAxis&&(d=h.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),a={thisAxis:c,series:u,thisDim:i,otherDim:f,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,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=n.filler=new Ri({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});i.add(d),i.add(new Ri({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:XB,fill:"rgba(0,0,0,0)"}})),k([0,1],function(_){var S=l.get("handleIcon");!Ll[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 x=Pr(S,-1,0,2,2,null,!0);x.attr({cursor:jb(this._orient),draggable:!0,drift:te(this._onDragMove,this,_),ondragend:te(this._onDragEnd,this),onmouseover:te(this._showDataInfo,this,!0),onmouseout:te(this._showDataInfo,this,!1),z2:5});var C=x.getBoundingRect(),N=l.get("handleSize");this._handleHeight=Te(N,this._size[1]),this._handleWidth=C.width/C.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),qs(x);var b=l.get("handleColor");b!=null&&(x.style.fill=b),i.add(a[_]=x);var T=l.getModel("textStyle");r.add(o[_]=new Ue({silent:!0,invisible:!0,style:Zt(T,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:T.getTextColor(),font:T.getFont()}),z2:10}))},this);var h=d;if(f){var v=Te(l.get("moveHandleSize"),s[1]),m=n.moveHandle=new Pe({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),g=v*.8,y=n.moveHandleIcon=Pr(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+v/2-.5,m.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var w=Math.min(s[1]/2,Math.max(v,10));h=n.moveZone=new Pe({invisible:!0,shape:{y:s[1]-w,height:v+w}}),h.on("mouseover",function(){u.enterEmphasis(m)}).on("mouseout",function(){u.leaveEmphasis(m)}),i.add(m),i.add(y),i.add(h)}h.attr({draggable:!0,cursor:jb(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=[qe(r[0],[0,100],n,!0),qe(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];hu(n,o,i,a.get("zoomLock")?"all":r,s.minSpan!=null?qe(s.minSpan,l,i,!0):null,s.maxSpan!=null?qe(s.maxSpan,l,i,!0):null);var u=this._range,c=this._range=$o([qe(o[0],i,l,!0),qe(o[1],i,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,a=this._handleEnds,o=$o(a.slice()),i=this._size;k([0,1],function(h){var v=n.handles[h],m=this._handleHeight;v.attr({scaleX:m/2,scaleY:m/2,x:a[h]+(h?-1:1),y:i[1]/2-m/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]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new Pe,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],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,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=$o(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(v){var m=oy(a.handles[v].parent,this.group),g=iy(v===0?"right":"left",m),y=this._handleWidth/2+KB,w=ti([d[v]+(v===0?-y:y),this._size[1]/2],m);o[v].setStyle({x:w[0],y:w[1],verticalAlign:i===Bi?"middle":g,align:i===Bi?g:"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 oe(o)?o(r,s):X(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,Ta(o.event);var i=this._displayables.sliderGroup.getLocalTransform(),s=ti([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 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,o=+new Date;if(!(o-this._brushStartTime<200&&Math.abs(a.width)<5)){var i=this._getViewExtent(),s=[0,100];this._range=$o([qe(a.x,i,s,!0),qe(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&&(Ta(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 Ri({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),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),i.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?QB:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=mb(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}(_b);function tV(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function jb(e){return e==="vertical"?"ns-resize":"ew-resize"}const rV=eV;function nV(e){e.registerComponentModel(jB),e.registerComponentView(rV),Sb(e)}function aV(e){vr(YB),vr(nV)}function Xb(e,t,r){var n=ga.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 oV=function(e){H(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||Ns,typeof r=="string"?i=Xb(r,n,a):J(r)&&(i=r,r=i.id),o.id=r,o.dom=i;var s=i.style;return s&&(wv(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=Xb("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 _e(0,0,0,0);function c(w){if(!(!w.isFinite()||w.isZero()))if(i.length===0){var _=new _e(0,0,0,0);_.copy(w),i.push(_)}else{for(var S=!1,x=1/0,C=0,N=0;N<i.length;++N){var b=i[N];if(b.intersect(w)){var T=new _e(0,0,0,0);T.copy(b),T.union(w),i[N]=T,S=!0;break}else if(l){u.copy(w),u.union(b);var M=w.width*w.height,D=b.width*b.height,A=u.width*u.height,P=A-M-D;P<x&&(x=P,C=N)}}if(l&&(i[C].union(w),S=!0),!S){var _=new _e(0,0,0,0);_.copy(w),i.push(_)}l||(l=i.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=r[f];if(d){var h=d.shouldBePainted(a,o,!0,!0),v=d.__isRendered&&(d.__dirty&wt||!h)?d.getPrevPaintRect():null;v&&c(v);var m=h&&(d.__dirty&wt||!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,o,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var v=d.getPrevPaintRect();v&&c(v)}}var g;do{g=!1;for(var f=0;f<i.length;){if(i[f].isZero()){i.splice(f,1);continue}for(var y=f+1;y<i.length;)i[f].intersect(i[y])?(g=!0,i[f].union(i[y]),i.splice(y,1)):y++;f++}}while(g);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,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/f,l/f));var h=this.domBack;function v(m,g,y,w){if(i.clearRect(m,g,y,w),n&&n!=="transparent"){var _=void 0;if(os(n)){var S=n.global||n.__width===y&&n.__height===w;_=S&&n.__canvasGradient||Gh(i,n,{x:0,y:0,width:y,height:w}),n.__canvasGradient=_,n.__width=y,n.__height=w}else wT(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,_=Hh(i,n,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));i.save(),i.fillStyle=_||n,i.fillRect(m,g,y,w),i.restore()}u&&(i.save(),i.globalAlpha=c,i.drawImage(h,m,g,y,w),i.restore())}!a||u?v(0,0,s,l):a.length&&k(a,function(m){v(m.x*f,m.y*f,m.width*f,m.height*f)})},t}(Ut);const Sp=oV;var Zb=1e5,la=314159,Nu=.01,iV=.001;function sV(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function lV(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 o=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=G({},n||{}),this.dpr=n.devicePixelRatio||Ns,this._singleCanvas=o,this.root=t;var i=t.style;i&&(wv(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(o){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 Sp(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[la]=h,h.zlevel=la,s.push(la),this._domRoot=t}else{this._width=Bl(t,0,n),this._height=Bl(t,1,n);var u=this._domRoot=lV(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(Zb)),o||(o=n.ctx,o.save()),ea(o,s,a,i===r-1))}o&&o.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(Zb)},e.prototype.paintOne=function(t,r){c_(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;Vc(function(){l._paintList(t,r,n,a)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(la).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 c=!0,f=!1,d=function(m){var g=o[m],y=g.ctx,w=i&&g.createRepaintRects(t,r,h._width,h._height),_=n?g.__startIndex:g.__drawIndex,S=!n&&g.incremental&&Date.now,x=S&&Date.now(),C=g.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(g.__startIndex===g.__endIndex)g.clear(!1,C,w);else if(_===g.__startIndex){var N=t[_];(!N.incremental||!N.notClear||n)&&g.clear(!1,C,w)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=g.__startIndex);var b,T=function(P){var E={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(b=_;b<g.__endIndex;b++){var I=t[b];if(I.__inHover&&(f=!0),a._doPaintEl(I,g,i,P,E,b===g.__endIndex-1),S){var L=Date.now()-x;if(L>15)break}}E.prevElClipPaths&&y.restore()};if(w)if(w.length===0)b=g.__endIndex;else for(var M=h.dpr,D=0;D<w.length;++D){var A=w[D];y.save(),y.beginPath(),y.rect(A.x*M,A.y*M,A.width*M,A.height*M),y.clip(),T(A),y.restore()}else y.save(),T(),y.restore();g.__drawIndex=b,g.__drawIndex<g.__endIndex&&(c=!1)},h=this,v=0;v<o.length;v++)d(v);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,o,i){var s=r.ctx;if(n){var l=t.getPaintRect();(!a||l&&l.intersect(a))&&(ea(s,t,o,i),t.setPrevPaintRect(l))}else ea(s,t,o,i)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=la);var n=this._layers[t];return n||(n=new Sp("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?ve(n,this._layerConfig[t],!0):this._layerConfig[t-Nu]&&ve(n,this._layerConfig[t-Nu],!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"&&Hr("ZLevel "+t+" has been used already");return}if(!sV(r)){process.env.NODE_ENV!=="production"&&Hr("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(f,d){f.__dirty=f.__used=!1});function r(f){o&&(o.__endIndex!==f&&(o.__dirty=!0),o.__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 o=null,i=0,s,l;for(l=0;l<t.length;l++){var a=t[l],u=a.zlevel,c=void 0;s!==u&&(s=u,i=0),a.incremental?(c=this.getLayer(u+iV,this._needsManuallyCompositing),c.incremental=!0,i=1):c=this.getLayer(u+(i>0?Nu:0),this._needsManuallyCompositing),c.__builtin__||Hr("ZLevel "+u+" has been used by unkown layer "+c.id),c!==o&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),o=c),a.__dirty&wt&&!a.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,k(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?ve(n[t],r,!0):n[t]=r;for(var a=0;a<this._zlevelList.length;a++){var o=this._zlevelList[a];if(o===t||o===t+Nu){var i=this._layers[o];ve(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(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,o=this.root;if(t!=null&&(a.width=t),r!=null&&(a.height=r),t=Bl(o,0,a),r=Bl(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(la).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[la].dom;var r=new Sp("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(f){f.__builtin__?n.drawImage(f.dom,0,0,a,o):f.renderToCanvas&&(n.save(),f.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 c=s[l];ea(n,c,i,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();const cV=uV;function fV(e){e.registerPainter("canvas",cV)}const hV={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"}}}},dV={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"}}}};ql("white",hV),ql("dark",dV),vr([JI,OI,pL,XO,oB,rB,xR,fV,LB,aV,wB]);const pV={display:"flex",flexDirection:"column",width:"100%",height:"100%"},yr=new WeakMap,Kb=p.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(()=>K.theme,()=>{this.dispose(),this.init()}),this.init()},created(){window.onload=()=>{yr.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:K.theme?"dark":"white",a=P5(e,n,{renderer:t,devicePixelRatio:window.devicePixelRatio});yr.set(this,a),r(yr.get(this))})})},setOption(){if(!yr.get(this))return;const e=this.notMerge,t=this.lazyUpdate,r=this.silent,n=this.options,a=yr.get(this);a==null||a.setOption(n,{notMerge:e,lazyUpdate:t,silent:r})},resizeChart(){this.$nextTick(()=>{var e;(e=yr.get(this))==null||e.resize()})},getInstance(){return yr.get(this)},dispose(){var e;this.resizeAble&&window.removeEventListener("resize",this.resizeChart),(e=yr.get(this))==null||e.dispose(),yr.set(this,null),yr.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({},pV,e||{});return p.h("div",{style:t})}}),vV=p.defineComponent({name:"OcError",components:{NButton:O.NButton},props:{type:{type:String,default:"404"}},setup(e){const t={404:{img:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/404.jpg",txt:"404",title:"404 页面走丢了",title2:"Something's missing."},500:{img:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/500.png",txt:"500",title:"服务暂时中断,请稍后重试.",title2:"Oops! No Internet connection found."}},r=p.ref({img:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/404.jpg",txt:"404",title:"404 页面走丢了",title2:"Something's missing."}),n=()=>{wr.push(K.platformUrl)},a=p.ref();return p.onMounted(()=>{r.value=t[e.type],a.value=setInterval(()=>{wr.push(K.platformUrl)},3e3)}),p.onBeforeUnmount(()=>{clearInterval(a.value)}),{goBack:n,content:r}}}),gV={class:"com-card flex-center oc-error"},mV=["src","alt"],yV={class:"oc-miss-txt"},_V={class:"oc-miss-title"},wV={class:"oc-miss-title2"};function bV(e,t,r,n,a,o){const i=p.resolveComponent("NButton");return p.openBlock(),p.createElementBlock("div",gV,[p.createElementVNode("img",{src:e.content.img,alt:e.content.txt,width:"360"},null,8,mV),p.createElementVNode("div",yV,p.toDisplayString(e.content.txt),1),p.createElementVNode("p",_V,p.toDisplayString(e.content.title),1),p.createElementVNode("p",wV,p.toDisplayString(e.content.title2),1),p.createVNode(i,{tertiary:"",onClick:e.goBack},{default:p.withCtx(()=>[p.createTextVNode("返回首页")]),_:1},8,["onClick"])])}const Jb=Z(vV,[["render",bV]]),SV=p.defineComponent({name:"OcFooter",props:{version:{type:String,default:""}}}),CV={class:"oc-footer"},xV=p.createElementVNode("span",{style:{"font-family":"Arial, Helvetica, sans-serif"}},"©",-1),TV=p.createElementVNode("a",{href:"https://beian.miit.gov.cn/",target:"_blank",class:"oc-footer-record"}," 沪ICP备 18025935号-3 ",-1);function NV(e,t,r,n,a,o){return p.openBlock(),p.createElementBlock("footer",CV,[p.createTextVNode(" Copyright "),xV,p.createTextVNode(" 2020-2024 "+p.toDisplayString(e.$t("Common.title"))+" ",1),e.version?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createTextVNode("v"+p.toDisplayString(e.version)+" ",1)],64)):p.createCommentVNode("",!0),TV])}const Qb=Z(SV,[["render",NV]]);var Du=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function DV(){this.__data__=[],this.size=0}var AV=DV;function MV(e,t){return e===t||e!==e&&t!==t}var eS=MV,kV=eS;function EV(e,t){for(var r=e.length;r--;)if(kV(e[r][0],t))return r;return-1}var Au=EV,PV=Au,IV=Array.prototype,LV=IV.splice;function OV(e){var t=this.__data__,r=PV(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():LV.call(t,r,1),--this.size,!0}var RV=OV,BV=Au;function VV(e){var t=this.__data__,r=BV(t,e);return r<0?void 0:t[r][1]}var $V=VV,FV=Au;function zV(e){return FV(this.__data__,e)>-1}var GV=zV,HV=Au;function WV(e,t){var r=this.__data__,n=HV(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var UV=WV,YV=AV,qV=RV,jV=$V,XV=GV,ZV=UV;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=YV,fo.prototype.delete=qV,fo.prototype.get=jV,fo.prototype.has=XV,fo.prototype.set=ZV;var Mu=fo,KV=Mu;function JV(){this.__data__=new KV,this.size=0}var QV=JV;function e3(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var t3=e3;function r3(e){return this.__data__.get(e)}var n3=r3;function a3(e){return this.__data__.has(e)}var o3=a3,i3=typeof Du=="object"&&Du&&Du.Object===Object&&Du,tS=i3,s3=tS,l3=typeof self=="object"&&self&&self.Object===Object&&self,u3=s3||l3||Function("return this")(),rr=u3,c3=rr,f3=c3.Symbol,xp=f3,rS=xp,nS=Object.prototype,h3=nS.hasOwnProperty,d3=nS.toString,Vi=rS?rS.toStringTag:void 0;function p3(e){var t=h3.call(e,Vi),r=e[Vi];try{e[Vi]=void 0;var n=!0}catch{}var a=d3.call(e);return n&&(t?e[Vi]=r:delete e[Vi]),a}var v3=p3,g3=Object.prototype,m3=g3.toString;function y3(e){return m3.call(e)}var _3=y3,aS=xp,w3=v3,b3=_3,S3="[object Null]",C3="[object Undefined]",oS=aS?aS.toStringTag:void 0;function x3(e){return e==null?e===void 0?C3:S3:oS&&oS in Object(e)?w3(e):b3(e)}var $i=x3;function T3(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var gn=T3,N3=$i,D3=gn,A3="[object AsyncFunction]",M3="[object Function]",k3="[object GeneratorFunction]",E3="[object Proxy]";function P3(e){if(!D3(e))return!1;var t=N3(e);return t==M3||t==k3||t==A3||t==E3}var iS=P3,I3=rr,L3=I3["__core-js_shared__"],O3=L3,Tp=O3,sS=function(){var e=/[^.]+$/.exec(Tp&&Tp.keys&&Tp.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function R3(e){return!!sS&&sS in e}var B3=R3,V3=Function.prototype,$3=V3.toString;function F3(e){if(e!=null){try{return $3.call(e)}catch{}try{return e+""}catch{}}return""}var lS=F3,z3=iS,G3=B3,H3=gn,W3=lS,U3=/[\\^$.*+?()[\]{}|]/g,Y3=/^\[object .+?Constructor\]$/,q3=Function.prototype,j3=Object.prototype,X3=q3.toString,Z3=j3.hasOwnProperty,K3=RegExp("^"+X3.call(Z3).replace(U3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function J3(e){if(!H3(e)||G3(e))return!1;var t=z3(e)?K3:Y3;return t.test(W3(e))}var Q3=J3;function e$(e,t){return e==null?void 0:e[t]}var t$=e$,r$=Q3,n$=t$;function a$(e,t){var r=n$(e,t);return r$(r)?r:void 0}var ua=a$,o$=ua,i$=rr,s$=o$(i$,"Map"),Np=s$,l$=ua,u$=l$(Object,"create"),ku=u$,uS=ku;function c$(){this.__data__=uS?uS(null):{},this.size=0}var f$=c$;function h$(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var d$=h$,p$=ku,v$="__lodash_hash_undefined__",g$=Object.prototype,m$=g$.hasOwnProperty;function y$(e){var t=this.__data__;if(p$){var r=t[e];return r===v$?void 0:r}return m$.call(t,e)?t[e]:void 0}var _$=y$,w$=ku,b$=Object.prototype,S$=b$.hasOwnProperty;function C$(e){var t=this.__data__;return w$?t[e]!==void 0:S$.call(t,e)}var x$=C$,T$=ku,N$="__lodash_hash_undefined__";function D$(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=T$&&t===void 0?N$:t,this}var A$=D$,M$=f$,k$=d$,E$=_$,P$=x$,I$=A$;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=M$,ho.prototype.delete=k$,ho.prototype.get=E$,ho.prototype.has=P$,ho.prototype.set=I$;var L$=ho,cS=L$,O$=Mu,R$=Np;function B$(){this.size=0,this.__data__={hash:new cS,map:new(R$||O$),string:new cS}}var V$=B$;function $$(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var F$=$$,z$=F$;function G$(e,t){var r=e.__data__;return z$(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Eu=G$,H$=Eu;function W$(e){var t=H$(this,e).delete(e);return this.size-=t?1:0,t}var U$=W$,Y$=Eu;function q$(e){return Y$(this,e).get(e)}var j$=q$,X$=Eu;function Z$(e){return X$(this,e).has(e)}var K$=Z$,J$=Eu;function Q$(e,t){var r=J$(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var e7=Q$,t7=V$,r7=U$,n7=j$,a7=K$,o7=e7;function po(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])}}po.prototype.clear=t7,po.prototype.delete=r7,po.prototype.get=n7,po.prototype.has=a7,po.prototype.set=o7;var i7=po,s7=Mu,l7=Np,u7=i7,c7=200;function f7(e,t){var r=this.__data__;if(r instanceof s7){var n=r.__data__;if(!l7||n.length<c7-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 h7=f7,d7=Mu,p7=QV,v7=t3,g7=n3,m7=o3,y7=h7;function vo(e){var t=this.__data__=new d7(e);this.size=t.size}vo.prototype.clear=p7,vo.prototype.delete=v7,vo.prototype.get=g7,vo.prototype.has=m7,vo.prototype.set=y7;var _7=vo;function w7(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var b7=w7,S7=ua,C7=function(){try{var e=S7(Object,"defineProperty");return e({},"",{}),e}catch{}}(),x7=C7,fS=x7;function T7(e,t,r){t=="__proto__"&&fS?fS(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var hS=T7,N7=hS,D7=eS,A7=Object.prototype,M7=A7.hasOwnProperty;function k7(e,t,r){var n=e[t];(!(M7.call(e,t)&&D7(n,r))||r===void 0&&!(t in e))&&N7(e,t,r)}var dS=k7,E7=dS,P7=hS;function I7(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?P7(r,s,l):E7(r,s,l)}return r}var Pu=I7;function L7(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var O7=L7;function R7(e){return e!=null&&typeof e=="object"}var go=R7,B7=$i,V7=go,$7="[object Arguments]";function F7(e){return V7(e)&&B7(e)==$7}var z7=F7,pS=z7,G7=go,vS=Object.prototype,H7=vS.hasOwnProperty,W7=vS.propertyIsEnumerable,U7=pS(function(){return arguments}())?pS:function(e){return G7(e)&&H7.call(e,"callee")&&!W7.call(e,"callee")},Y7=U7,q7=Array.isArray,Dp=q7,Iu={exports:{}};function j7(){return!1}var X7=j7;Iu.exports,function(e,t){var r=rr,n=X7,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}(Iu,Iu.exports);var gS=Iu.exports,Z7=9007199254740991,K7=/^(?:0|[1-9]\d*)$/;function J7(e,t){var r=typeof e;return t=t??Z7,!!t&&(r=="number"||r!="symbol"&&K7.test(e))&&e>-1&&e%1==0&&e<t}var Q7=J7,e4=9007199254740991;function t4(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=e4}var mS=t4,r4=$i,n4=mS,a4=go,o4="[object Arguments]",i4="[object Array]",s4="[object Boolean]",l4="[object Date]",u4="[object Error]",c4="[object Function]",f4="[object Map]",h4="[object Number]",d4="[object Object]",p4="[object RegExp]",v4="[object Set]",g4="[object String]",m4="[object WeakMap]",y4="[object ArrayBuffer]",_4="[object DataView]",w4="[object Float32Array]",b4="[object Float64Array]",S4="[object Int8Array]",C4="[object Int16Array]",x4="[object Int32Array]",T4="[object Uint8Array]",N4="[object Uint8ClampedArray]",D4="[object Uint16Array]",A4="[object Uint32Array]",Ee={};Ee[w4]=Ee[b4]=Ee[S4]=Ee[C4]=Ee[x4]=Ee[T4]=Ee[N4]=Ee[D4]=Ee[A4]=!0,Ee[o4]=Ee[i4]=Ee[y4]=Ee[s4]=Ee[_4]=Ee[l4]=Ee[u4]=Ee[c4]=Ee[f4]=Ee[h4]=Ee[d4]=Ee[p4]=Ee[v4]=Ee[g4]=Ee[m4]=!1;function M4(e){return a4(e)&&n4(e.length)&&!!Ee[r4(e)]}var k4=M4;function E4(e){return function(t){return e(t)}}var Ap=E4,Lu={exports:{}};Lu.exports,function(e,t){var r=tS,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}(Lu,Lu.exports);var Mp=Lu.exports,P4=k4,I4=Ap,yS=Mp,_S=yS&&yS.isTypedArray,L4=_S?I4(_S):P4,O4=L4,R4=O7,B4=Y7,V4=Dp,$4=gS,F4=Q7,z4=O4,G4=Object.prototype,H4=G4.hasOwnProperty;function W4(e,t){var r=V4(e),n=!r&&B4(e),a=!r&&!n&&$4(e),o=!r&&!n&&!a&&z4(e),i=r||n||a||o,s=i?R4(e.length,String):[],l=s.length;for(var u in e)(t||H4.call(e,u))&&!(i&&(u=="length"||a&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||F4(u,l)))&&s.push(u);return s}var wS=W4,U4=Object.prototype;function Y4(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||U4;return e===r}var kp=Y4;function q4(e,t){return function(r){return e(t(r))}}var bS=q4,j4=bS,X4=j4(Object.keys,Object),Z4=X4,K4=kp,J4=Z4,Q4=Object.prototype,eF=Q4.hasOwnProperty;function tF(e){if(!K4(e))return J4(e);var t=[];for(var r in Object(e))eF.call(e,r)&&r!="constructor"&&t.push(r);return t}var rF=tF,nF=iS,aF=mS;function oF(e){return e!=null&&aF(e.length)&&!nF(e)}var SS=oF,iF=wS,sF=rF,lF=SS;function uF(e){return lF(e)?iF(e):sF(e)}var Ep=uF,cF=Pu,fF=Ep;function hF(e,t){return e&&cF(t,fF(t),e)}var dF=hF;function pF(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var vF=pF,gF=gn,mF=kp,yF=vF,_F=Object.prototype,wF=_F.hasOwnProperty;function bF(e){if(!gF(e))return yF(e);var t=mF(e),r=[];for(var n in e)n=="constructor"&&(t||!wF.call(e,n))||r.push(n);return r}var SF=bF,CF=wS,xF=SF,TF=SS;function NF(e){return TF(e)?CF(e,!0):xF(e)}var Pp=NF,DF=Pu,AF=Pp;function MF(e,t){return e&&DF(t,AF(t),e)}var kF=MF,Ou={exports:{}};Ou.exports,function(e,t){var r=rr,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,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}(Ou,Ou.exports);var EF=Ou.exports;function PF(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var IF=PF;function LF(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 OF=LF;function RF(){return[]}var CS=RF,BF=OF,VF=CS,$F=Object.prototype,FF=$F.propertyIsEnumerable,xS=Object.getOwnPropertySymbols,zF=xS?function(e){return e==null?[]:(e=Object(e),BF(xS(e),function(t){return FF.call(e,t)}))}:VF,Ip=zF,GF=Pu,HF=Ip;function WF(e,t){return GF(e,HF(e),t)}var UF=WF;function YF(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var TS=YF,qF=bS,jF=qF(Object.getPrototypeOf,Object),NS=jF,XF=TS,ZF=NS,KF=Ip,JF=CS,QF=Object.getOwnPropertySymbols,ez=QF?function(e){for(var t=[];e;)XF(t,KF(e)),e=ZF(e);return t}:JF,DS=ez,tz=Pu,rz=DS;function nz(e,t){return tz(e,rz(e),t)}var az=nz,oz=TS,iz=Dp;function sz(e,t,r){var n=t(e);return iz(e)?n:oz(n,r(e))}var AS=sz,lz=AS,uz=Ip,cz=Ep;function fz(e){return lz(e,cz,uz)}var hz=fz,dz=AS,pz=DS,vz=Pp;function gz(e){return dz(e,vz,pz)}var mz=gz,yz=ua,_z=rr,wz=yz(_z,"DataView"),bz=wz,Sz=ua,Cz=rr,xz=Sz(Cz,"Promise"),Tz=xz,Nz=ua,Dz=rr,Az=Nz(Dz,"Set"),Mz=Az,kz=ua,Ez=rr,Pz=kz(Ez,"WeakMap"),Iz=Pz,Lp=bz,Op=Np,Rp=Tz,Bp=Mz,Vp=Iz,MS=$i,mo=lS,kS="[object Map]",Lz="[object Object]",ES="[object Promise]",PS="[object Set]",IS="[object WeakMap]",LS="[object DataView]",Oz=mo(Lp),Rz=mo(Op),Bz=mo(Rp),Vz=mo(Bp),$z=mo(Vp),ca=MS;(Lp&&ca(new Lp(new ArrayBuffer(1)))!=LS||Op&&ca(new Op)!=kS||Rp&&ca(Rp.resolve())!=ES||Bp&&ca(new Bp)!=PS||Vp&&ca(new Vp)!=IS)&&(ca=function(e){var t=MS(e),r=t==Lz?e.constructor:void 0,n=r?mo(r):"";if(n)switch(n){case Oz:return LS;case Rz:return kS;case Bz:return ES;case Vz:return PS;case $z:return IS}return t});var $p=ca,Fz=Object.prototype,zz=Fz.hasOwnProperty;function Gz(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&zz.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Hz=Gz,Wz=rr,Uz=Wz.Uint8Array,Yz=Uz,OS=Yz;function qz(e){var t=new e.constructor(e.byteLength);return new OS(t).set(new OS(e)),t}var Fp=qz,jz=Fp;function Xz(e,t){var r=t?jz(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Zz=Xz,Kz=/\w*$/;function Jz(e){var t=new e.constructor(e.source,Kz.exec(e));return t.lastIndex=e.lastIndex,t}var Qz=Jz,RS=xp,BS=RS?RS.prototype:void 0,VS=BS?BS.valueOf:void 0;function e8(e){return VS?Object(VS.call(e)):{}}var t8=e8,r8=Fp;function n8(e,t){var r=t?r8(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var a8=n8,o8=Fp,i8=Zz,s8=Qz,l8=t8,u8=a8,c8="[object Boolean]",f8="[object Date]",h8="[object Map]",d8="[object Number]",p8="[object RegExp]",v8="[object Set]",g8="[object String]",m8="[object Symbol]",y8="[object ArrayBuffer]",_8="[object DataView]",w8="[object Float32Array]",b8="[object Float64Array]",S8="[object Int8Array]",C8="[object Int16Array]",x8="[object Int32Array]",T8="[object Uint8Array]",N8="[object Uint8ClampedArray]",D8="[object Uint16Array]",A8="[object Uint32Array]";function M8(e,t,r){var n=e.constructor;switch(t){case y8:return o8(e);case c8:case f8:return new n(+e);case _8:return i8(e,r);case w8:case b8:case S8:case C8:case x8:case T8:case N8:case D8:case A8:return u8(e,r);case h8:return new n;case d8:case g8:return new n(e);case p8:return s8(e);case v8:return new n;case m8:return l8(e)}}var k8=M8,E8=gn,$S=Object.create,P8=function(){function e(){}return function(t){if(!E8(t))return{};if($S)return $S(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),I8=P8,L8=I8,O8=NS,R8=kp;function B8(e){return typeof e.constructor=="function"&&!R8(e)?L8(O8(e)):{}}var V8=B8,$8=$p,F8=go,z8="[object Map]";function G8(e){return F8(e)&&$8(e)==z8}var H8=G8,W8=H8,U8=Ap,FS=Mp,zS=FS&&FS.isMap,Y8=zS?U8(zS):W8,q8=Y8,j8=$p,X8=go,Z8="[object Set]";function K8(e){return X8(e)&&j8(e)==Z8}var J8=K8,Q8=J8,e6=Ap,GS=Mp,HS=GS&&GS.isSet,t6=HS?e6(HS):Q8,r6=t6,n6=_7,a6=b7,o6=dS,i6=dF,s6=kF,l6=EF,u6=IF,c6=UF,f6=az,h6=hz,d6=mz,p6=$p,v6=Hz,g6=k8,m6=V8,y6=Dp,_6=gS,w6=q8,b6=gn,S6=r6,C6=Ep,x6=Pp,T6=1,N6=2,D6=4,WS="[object Arguments]",A6="[object Array]",M6="[object Boolean]",k6="[object Date]",E6="[object Error]",US="[object Function]",P6="[object GeneratorFunction]",I6="[object Map]",L6="[object Number]",YS="[object Object]",O6="[object RegExp]",R6="[object Set]",B6="[object String]",V6="[object Symbol]",$6="[object WeakMap]",F6="[object ArrayBuffer]",z6="[object DataView]",G6="[object Float32Array]",H6="[object Float64Array]",W6="[object Int8Array]",U6="[object Int16Array]",Y6="[object Int32Array]",q6="[object Uint8Array]",j6="[object Uint8ClampedArray]",X6="[object Uint16Array]",Z6="[object Uint32Array]",Me={};Me[WS]=Me[A6]=Me[F6]=Me[z6]=Me[M6]=Me[k6]=Me[G6]=Me[H6]=Me[W6]=Me[U6]=Me[Y6]=Me[I6]=Me[L6]=Me[YS]=Me[O6]=Me[R6]=Me[B6]=Me[V6]=Me[q6]=Me[j6]=Me[X6]=Me[Z6]=!0,Me[E6]=Me[US]=Me[$6]=!1;function Ru(e,t,r,n,a,o){var i,s=t&T6,l=t&N6,u=t&D6;if(r&&(i=a?r(e,n,a,o):r(e)),i!==void 0)return i;if(!b6(e))return e;var c=y6(e);if(c){if(i=v6(e),!s)return u6(e,i)}else{var f=p6(e),d=f==US||f==P6;if(_6(e))return l6(e,s);if(f==YS||f==WS||d&&!a){if(i=l||d?{}:m6(e),!s)return l?f6(e,s6(i,e)):c6(e,i6(i,e))}else{if(!Me[f])return a?e:{};i=g6(e,f,s)}}o||(o=new n6);var h=o.get(e);if(h)return h;o.set(e,i),S6(e)?e.forEach(function(g){i.add(Ru(g,t,r,g,e,o))}):w6(e)&&e.forEach(function(g,y){i.set(y,Ru(g,t,r,y,e,o))});var v=u?l?d6:h6:l?x6:C6,m=c?void 0:v(e);return a6(m||e,function(g,y){m&&(y=g,g=e[y]),o6(i,y,Ru(g,t,r,y,e,o))}),i}var K6=Ru,J6=K6,Q6=1,eG=4;function tG(e){return J6(e,Q6|eG)}var rG=tG;const zt=Cp(rG),nG=p.defineComponent({name:"OcForm",components:{NIcon:O.NIcon,NGrid:O.NGrid,NForm:O.NForm,NFormItemGi:O.NFormItemGi,NButton:O.NButton,NInput:O.NInput,NSelect:O.NSelect,NInputNumber:O.NInputNumber,NDatePicker:O.NDatePicker,NTimePicker:O.NTimePicker,NSwitch:O.NSwitch,NUpload:O.NUpload,NUploadDragger:O.NUploadDragger,IconMailInboxAdd:wo},props:{items:{required:!0,type:Array,default:()=>[]},data:{required:!0,type:Object,default:()=>({})},edit:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},labelWidth:{type:[String,Number],default:"auto"},labelAlign:{type:String,default:"left"},labelPlacement:{type:String,default:"top"}},setup(e,{expose:t}){const r=p.ref(),n=p.ref({}),a=p.ref([]),{t:o}=Ht.useI18n(),i=v=>!((v==null?void 0:v.show)===!1||e.edit&&v.edit&&!v.edit.show),s=()=>{const v=zt(e.items);v.forEach(m=>{if(m.rule&&m.rule.validator&&typeof m.rule.validator=="string"){const g=m.rule.validator,y=new Function("rule","value",g);m.rule.validator=(w,_)=>y(w,_)}if(m.input==="date"&&m.isDateDisabled&&typeof m.isDateDisabled=="string"){const g=m.isDateDisabled,y=new Function("ts","detail",g);m.isDateDisabled=(w,_)=>y(w,_)}m.input==="select"&&m.fallbackOption&&m.multiple&&(!n.value[m.key]||n.value[m.key].length===0)&&(n.value[m.key]=[""])}),a.value=v},l=(v,m)=>{if(v.updateValue){const g=zt(n.value);if(typeof v.updateValue=="string"){const y=v.updateValue;new Function("value","formValue",y)(m,g)}else v.updateValue(m,g)}},u=(v,m)=>new Promise((g,y)=>{v.file.file&&(n.value[m]=v.file.file,g()),y()}),c=(v,m)=>{v.length===0&&(n.value[m]="")},f=v=>v.fallbackOption?typeof v.fallbackOption=="boolean"?()=>({label:o("Common.message.all"),value:"",disabled:!0}):v.fallbackOption:!1,d=()=>new Promise((v,m)=>{var g;(g=r.value)==null||g.validate(y=>{if(y)m();else{const w=zt(n.value),_=JSON.stringify(w,(S,x)=>x===void 0?null:Array.isArray(x)?x.filter(C=>C!==""):x);v(JSON.parse(_))}})}),h=()=>{var v;(v=r.value)==null||v.restoreValidation()};return p.onMounted(()=>{n.value=zt(e.data),s()}),t({validate:d,restoreValidation:h}),p.watch(()=>e.items,()=>{s()},{deep:!0}),p.watch(()=>e.data,v=>{n.value=zt(v)},{deep:!0}),{formRef:r,formValue:n,formItems:a,cloneDeep:zt,updateValue:l,beforeUpload:u,uploadChange:c,elementShow:i,selectFallback:f}}}),aG=p.createElementVNode("br",null,null,-1),oG=p.createElementVNode("p",null,"点击或者拖动文件到该区域来上传",-1),iG=p.createElementVNode("p",null," 请不要上传敏感数据,比如你的银行卡号和密码,信用卡号有效期和安全码 ",-1);function sG(e,t,r,n,a,o){const i=p.resolveComponent("NInput"),s=p.resolveComponent("NInputNumber"),l=p.resolveComponent("NDatePicker"),u=p.resolveComponent("NSelect"),c=p.resolveComponent("NTimePicker"),f=p.resolveComponent("NSwitch"),d=p.resolveComponent("IconMailInboxAdd"),h=p.resolveComponent("NIcon"),v=p.resolveComponent("NUploadDragger"),m=p.resolveComponent("NUpload"),g=p.resolveComponent("NFormItemGi"),y=p.resolveComponent("NGrid"),w=p.resolveComponent("NForm");return p.openBlock(),p.createBlock(w,{ref:"formRef",model:e.formValue,disabled:e.disabled,inline:e.inline,labelWidth:e.labelWidth,labelAlign:e.labelAlign,labelPlacement:e.labelPlacement},{default:p.withCtx(()=>[p.createVNode(y,{cols:12,"x-gap":8},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(e.formItems,_=>(p.openBlock(),p.createElementBlock(p.Fragment,{key:_.key},[e.elementShow(_)?(p.openBlock(),p.createBlock(g,{key:0,span:_.span||6,label:typeof _.label=="function"?_.label():_.label,path:_.key,rule:_.rule},{default:p.withCtx(()=>[_.input==="input"?(p.openBlock(),p.createBlock(i,{key:0,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,type:_.type,placeholder:typeof _.placeholder=="function"?_.placeholder():_.placeholder,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,readonly:e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,minlength:_.minlength,maxlength:_.maxlength,rows:_.rows,"show-count":!!_.maxlength,"on-update:value":S=>{e.formValue[_.key]=S.trim(),e.updateValue(_,S.trim())}},null,8,["value","onUpdate:value","type","placeholder","disabled","readonly","clearable","minlength","maxlength","rows","show-count","on-update:value"])):p.createCommentVNode("",!0),_.input==="number"?(p.openBlock(),p.createBlock(s,{key:1,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,placeholder:typeof _.placeholder=="function"?_.placeholder():_.placeholder,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,readonly:e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,min:_.min,max:_.max,step:_.step,showButton:_.showButton,"update-value-on-input":!1,parse:S=>_.precision&&_.precision>-1?Number(Number(S).toFixed(_.precision)):Number(S),"on-update:value":S=>{e.formValue[_.key]=S,e.updateValue(_,S)}},null,8,["value","onUpdate:value","placeholder","disabled","readonly","clearable","min","max","step","showButton","parse","on-update:value"])):p.createCommentVNode("",!0),_.input==="date"&&!_.format?(p.openBlock(),p.createBlock(l,{key:2,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,type:_.type,placeholder:typeof _.placeholder=="function"?_.placeholder():_.placeholder,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,"input-readonly":e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,"time-picker-props":_.timePickerProps,"is-date-disabled":(S,x)=>_.isDateDisabled?_.isDateDisabled(S,x):!1,"close-on-select":"","on-update:value":S=>{e.formValue[_.key]=S,e.updateValue(_,S)}},null,8,["value","onUpdate:value","type","placeholder","disabled","input-readonly","clearable","time-picker-props","is-date-disabled","on-update:value"])):p.createCommentVNode("",!0),_.input==="date"&&_.format?(p.openBlock(),p.createBlock(l,{key:3,"formatted-value":e.formValue[_.key],"onUpdate:formattedValue":S=>e.formValue[_.key]=S,type:_.type,placeholder:typeof _.placeholder=="function"?_.placeholder():_.placeholder,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,"input-readonly":e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,format:_.format,"time-picker-props":_.timePickerProps,"is-date-disabled":(S,x)=>_.isDateDisabled?_.isDateDisabled(S,x):!1,"close-on-select":"","on-update:formatted-value":S=>{e.formValue[_.key]=S,e.updateValue(_,S)}},null,8,["formatted-value","onUpdate:formattedValue","type","placeholder","disabled","input-readonly","clearable","format","time-picker-props","is-date-disabled","on-update:formatted-value"])):p.createCommentVNode("",!0),_.input==="select"?(p.openBlock(),p.createBlock(u,{key:4,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,placeholder:typeof _.placeholder=="function"?_.placeholder():_.placeholder,options:_.options,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,readonly:e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,filterable:_.filterable,multiple:_.multiple,"fallback-option":e.selectFallback(_),maxTagCount:_.maxTagCount,"render-label":_.renderLabel,"render-option":_.renderOption,"render-tag":_.renderTag,"on-update:value":S=>{let x=S,C=S;if(_.multiple){let N=S.filter(b=>b);N.length===0?(x=[""],C=[]):(x=N,C=N)}e.formValue[_.key]=x,e.updateValue(_,C)}},null,8,["value","onUpdate:value","placeholder","options","disabled","readonly","clearable","filterable","multiple","fallback-option","maxTagCount","render-label","render-option","render-tag","on-update:value"])):p.createCommentVNode("",!0),_.input==="time"?(p.openBlock(),p.createBlock(c,{key:5,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,placeholder:typeof _.placeholder=="function"?_.placeholder():_.placeholder,format:_.format,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,readonly:e.edit&&_.edit?_.edit.readonly:_.readonly,clearable:_.clearable,"on-update:value":S=>{e.formValue[_.key]=S,e.updateValue(_,S)}},null,8,["value","onUpdate:value","placeholder","format","disabled","readonly","clearable","on-update:value"])):p.createCommentVNode("",!0),_.input==="switch"?(p.openBlock(),p.createBlock(f,{key:6,value:e.formValue[_.key],"onUpdate:value":S=>e.formValue[_.key]=S,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,size:"large","on-update:value":S=>{e.formValue[_.key]=S,e.updateValue(_,S)}},null,8,["value","onUpdate:value","disabled","on-update:value"])):p.createCommentVNode("",!0),_.input==="upload"?(p.openBlock(),p.createBlock(m,{key:7,"default-file-list":e.formValue[_.key]?[{id:"1",name:"File",status:"finished",url:e.formValue[_.key]}]:void 0,"on-before-upload":S=>{e.beforeUpload(S,_.key)},accept:_.accept,disabled:e.edit&&_.edit?_.edit.disabled:_.disabled,max:_.max,"on-update:file-list":S=>{e.uploadChange(S,_.key)},"directory-dnd":""},{default:p.withCtx(()=>[p.withDirectives(p.createVNode(v,null,{default:p.withCtx(()=>[p.createVNode(h,{size:"32"},{default:p.withCtx(()=>[p.createVNode(d)]),_:1}),aG,oG,iG]),_:2},1536),[[p.vShow,!e.formValue[_.key]]])]),_:2},1032,["default-file-list","on-before-upload","accept","disabled","max","on-update:file-list"])):p.createCommentVNode("",!0)]),_:2},1032,["span","label","path","rule"])):p.createCommentVNode("",!0)],64))),128))]),_:1})]),_:1},8,["model","disabled","inline","labelWidth","labelAlign","labelPlacement"])}const qS=Z(nG,[["render",sG]]),jS=e=>{const t=JSON.parse(JSON.stringify(e));return t.password=Hi(t.password),nt("api/user/v2/login",t)},lG=()=>new Promise(async(e,t)=>{nt("api/auth/user/getCurrentUserInfo",{},"json",1e4).then(async r=>{await iv();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:()=>zr.global.t("Platform.iot"),key:r.industryCategory==="0"?"/iot/home/all":"/prt/home/all"}];switch(Object.keys(K.owned).forEach(i=>{const s=a.includes(Number(i));if(r[K.owned[i]]=s,s){const l=K.owned[i].split("_")[1],u=K.platformList[l];u&&o.push({label:()=>zr.global.t(u.platformName),key:u.platformUrl})}}),Vx(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)})}),uG=()=>nt("api/auth/user/logout"),cG=()=>nt("api/manager/message/markReadAll"),fG=()=>nt("api/auth/user/updateTenantRenewalStatus"),hG=e=>nt("api/manager/job/remove",e),dG=e=>nt("api/manager/job/retry",{jobId:e}),pG=e=>new Promise((t,r)=>{const n=So(e);nt("api/manager/job/page",n).then(a=>{const o=bo(a);t(o)}).catch(()=>{r()})}),zp=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])}),cc("api/manager/job/submit",n).then(()=>{fc(!0),t()}).catch(a=>{r(a)})}),vG=e=>new Promise((t,r)=>{const n=So(e);n.status===-1&&(n.status=""),nt("api/manager/message/messagePage",n).then(a=>{const o=bo(a);t({data:o,unRead:a.unRead})}).catch(()=>{r()})}),gG=e=>nt("api/manager/message/markRead",{messageId:e}),F=p.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 Gp(e){try{const t=window.location.host;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"&&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 Bu(){return new Promise((e,t)=>{lG().then(r=>{Gp(r),e(r)}).catch(()=>{t()})})}function Vu(){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 Hp(){await uG().catch(()=>null),da("token"),Vu(),window.location.href="/login"}const mG=p.defineComponent({name:"HeaderPop",components:{NFlex:O.NFlex,NInput:O.NInput,NPopover:O.NPopover,NTooltip:O.NTooltip,NButton:O.NButton,NIcon:O.NIcon,NDataTable:O.NDataTable,IconSearch:qi,IconArrowClockwise:fa,IconArrowSquareDown:qu},setup(){const{t:e}=Ht.useI18n(),t=p.ref(!1),r=O.useNotification(),n=p.ref([]),a=p.ref(""),o=p.ref(!1),i=p.ref({page:1,pageCount:1,pageSize:30}),s=p.ref([{title:()=>e("Common.importer.fileName"),key:"jobName",width:300,render(h){return p.h("div",{},{default:()=>[p.h("p",{},{default:()=>h.jobName||"--"}),p.h("p",{style:{color:"rgba(var(--font), 0.6)"}},{default:()=>_r(h.commitTime,"yyyy-MM-dd hh:mm:ss")})]})}},{title:()=>e("Common.importer.status"),key:"jobStatus",align:"center",width:90,render(h){let v=e("Common.processing");return h.jobStatus===1&&(v=e("Common.success")),h.jobStatus===2&&(v=e("Common.failed")),p.h("span",{},{default:()=>v})}},{title:()=>e("Common.action"),key:"action",align:"center",fixed:"right",width:90,render(h){const v=[{type:"delete",onClick:()=>{hG([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?v.unshift({type:"custom",onClick:()=>{dG(h.jobId).then(()=>{r.success({content:()=>e("Notice.success"),duration:3e3}),f()}).catch(()=>{r.error({content:()=>e("Notice.error"),duration:3e3})})},icon:fa,color:"info",tooltipText:()=>e("Common.importer.retry")}):v.unshift({type:"custom",disabled:h.jobStatus!==1,onClick:()=>{window.open(h.downloadUrl)},icon:_o,color:"success",tooltipText:()=>e("Common.importer.btnDownload")}),Gr(v)}}]),l=h=>{i.value.page=h,f()},u=h=>{i.value.pageSize=h,i.value.page=1,f()},c=()=>{i.value.page=1,f()},f=()=>{o.value||(o.value=!0,pG({jobType:"EXPORT",jobName:a.value,query:i.value}).then(h=>{i.value=h.query,n.value=h.records,o.value=!1}).catch(()=>{o.value=!1}))},d=h=>{fc(h),t.value=h};return f(),p.watch(()=>K.download,h=>{t.value=h,h&&f()}),{jobName:a,loading:o,columns:s,coldata:n,query:i,popDownload:t,init:f,pageChange:l,pageSizeChange:u,doSearch:c,popDownloadUpdate:d}}}),yG={class:"oc-header-download"};function _G(e,t,r,n,a,o){const i=p.resolveComponent("IconArrowSquareDown"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NInput"),c=p.resolveComponent("IconSearch"),f=p.resolveComponent("NTooltip"),d=p.resolveComponent("IconArrowClockwise"),h=p.resolveComponent("NFlex"),v=p.resolveComponent("NDataTable"),m=p.resolveComponent("NPopover");return p.openBlock(),p.createBlock(m,{trigger:"click",placement:"bottom-end",show:e.popDownload,"show-arrow":!1,"on-update:show":e.popDownloadUpdate,style:{width:"650px"}},{trigger:p.withCtx(()=>[p.createVNode(l,{text:"",style:{"margin-left":"15px"}},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(i)]),_:1})]),_:1})]),default:p.withCtx(()=>[p.createVNode(h,{justify:"end",wrap:!1},{default:p.withCtx(()=>[p.createElementVNode("span",yG,p.toDisplayString(e.$t("Common.validDays")),1),p.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"]),p.createVNode(f,{trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{loading:e.loading,class:"button-primary",onClick:e.doSearch},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(c)]),_:1})]),_:1},8,["loading","onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.search")),1)]),_:1}),p.createVNode(f,{trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{onClick:e.init},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(d)]),_:1})]),_:1},8,["onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.refresh")),1)]),_:1})]),_:1}),p.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 wG=Z(mG,[["render",_G]]),bG=p.defineComponent({name:"HeaderPop",components:{NBadge:O.NBadge,NPopover:O.NPopover,NFlex:O.NFlex,NTooltip:O.NTooltip,NButton:O.NButton,NIcon:O.NIcon,NDataTable:O.NDataTable,NRadioGroup:O.NRadioGroup,NRadioButton:O.NRadioButton,IconAlert:Wu,IconClear:Uu,IconArrowClockwise:fa},setup(){const{t:e}=Ht.useI18n(),t=p.ref(0),r=p.ref(0),n=p.ref([]),a=p.ref(""),o=p.ref(!1),i=p.ref({page:1,pageCount:1,pageSize:30}),s=p.ref([{title:()=>e("Common.message.title2"),key:"messageContent",width:300,render(h){return[p.h("div",{class:h.status===1?"card-grey-txt":""},{default:()=>h.messageContent}),p.h("div",{class:"card-grey-txt"},{default:()=>_r(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?Gr([{type:"custom",color:"primary",tooltipText:()=>e("Common.message.read"),buttonText:()=>e("Common.message.read"),onClick:()=>{gG(h.messageId).then(()=>{d()}).catch(()=>{d()})}}]):p.h("div",{},{default:()=>`${h.updateByName} ${e("Common.message.read")}`})}}]),l=h=>{i.value.page=1,t.value=h,d()},u=()=>{cG().then(()=>{d()}).catch(()=>{d()})},c=h=>{i.value.page=h,d()},f=h=>{i.value.pageSize=h,i.value.page=1,d()},d=()=>{o.value||(o.value=!0,vG({status:t.value,query:i.value}).then(h=>{r.value=h.unRead,i.value=h.data.query,n.value=h.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:c,pageSizeChange:f,init:d,radiosChecked:l}}}),SG={class:"com-title"};function CG(e,t,r,n,a,o){const i=p.resolveComponent("IconAlert"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NBadge"),c=p.resolveComponent("NRadioButton"),f=p.resolveComponent("NRadioGroup"),d=p.resolveComponent("IconClear"),h=p.resolveComponent("NTooltip"),v=p.resolveComponent("IconArrowClockwise"),m=p.resolveComponent("NFlex"),g=p.resolveComponent("NDataTable"),y=p.resolveComponent("NPopover");return p.openBlock(),p.createBlock(y,{trigger:"click",placement:"bottom-end","show-arrow":!1,style:{width:"650px"}},{trigger:p.withCtx(()=>[p.createVNode(u,{value:e.badge,max:99,offset:[5,-10]},{default:p.withCtx(()=>[p.createVNode(l,{text:"",style:{"margin-left":"30px"}},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(i)]),_:1})]),_:1})]),_:1},8,["value"])]),default:p.withCtx(()=>[p.createVNode(m,{justify:"space-between"},{default:p.withCtx(()=>[p.createElementVNode("div",SG,p.toDisplayString(e.$t("Common.message.title")),1),p.createVNode(f,{value:e.radios,"onUpdate:value":t[0]||(t[0]=w=>e.radios=w),name:"radios","on-update:value":e.radiosChecked},{default:p.withCtx(()=>[p.createVNode(c,{key:"0",value:0,label:e.$t("Common.message.unRead")},null,8,["label"]),p.createVNode(c,{key:"-1",value:-1,label:e.$t("Common.message.all")},null,8,["label"]),p.createVNode(c,{key:"1",value:1,label:e.$t("Common.message.read")},null,8,["label"])]),_:1},8,["value","on-update:value"]),p.createElementVNode("div",null,[p.createVNode(h,{trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{onClick:e.clearAll},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(d)]),_:1})]),_:1},8,["onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.message.readAll")),1)]),_:1}),p.createVNode(h,{trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{onClick:e.init},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(v)]),_:1})]),_:1},8,["onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.refresh")),1)]),_:1})])]),_:1}),p.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 xG=Z(bG,[["render",CG]]),TG=p.defineComponent({name:"OcHeader",components:{Pop:wG,Message:xG,NDropdown:O.NDropdown,NMenu:O.NMenu,NIcon:O.NIcon,NButton:O.NButton,NDrawer:O.NDrawer,NFlex:O.NFlex,NDrawerContent:O.NDrawerContent,NCard:O.NCard,IconWeatherSunny:Yi,IconWeatherMoon:Ui,IconGridDots:ju,IconDismiss:$r,IconNavigation:Ki,IconUser:rc},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}=Ht.useI18n(),r=Tt.useRoute(),n=Tt.useRouter(),a=O.useNotification(),o=p.ref(K.platformUrl),i=p.ref(!1),s=p.ref(void 0),l=p.ref(10),u=p.ref(K.platformMenu),c=T=>{xo(T),ht("theme",T,0)},f=T=>{T.indexOf("/iot/home")>-1&&(T="/iot/home/all"),T.indexOf("/iot/timeline")>-1&&(T="/iot/timeline/all"),o.value=T,Qi()},d=T=>{T.disabled||(f(T.key),n.push(T.key))},h=T=>{if(!T.disabled){if(T.children)return;f(T.key),n.push(T.key),i.value=!1}},v=T=>p.h("div",{onClick:()=>d(T)},{default:()=>typeof T.label=="function"?T.label():T.label}),m=T=>p.h("div",{onClick:()=>h(T)},{default:()=>typeof T.label=="function"?T.label():T.label}),g=T=>T.icon?p.h(O.NIcon,{size:24,onClick:()=>d(T)},{default:()=>T.icon&&T.icon()}):!1,y=T=>{n.replace(T)},w=()=>{i.value=!1},_=()=>{const T=[{label:F.tenantName,key:"tenantName"},{label:`${t("Common.dropdownMenu.theme")} ${K.theme?t("Common.dropdownMenu.light"):t("Common.dropdownMenu.dark")}`,key:"theme"}];return K.language&&T.push({label:`${t("Common.dropdownMenu.language")} ${K.lang==="zh-CN"?"EN":"中文"}`,key:"language"}),T.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&&T.push({label:t("Common.dropdownMenu.report"),key:"report"}),T.push({label:t("Common.dropdownMenu.info"),key:"info"},{label:t("Common.dropdownMenu.logout"),key:"logout"}),T},S=async T=>{T==="logout"&&Hp(),T==="theme"&&c(!K.theme),T==="language"&&va(),T==="info"&&n.push("/custom/my"),T==="report"&&n.push("/custom/report"),T==="android"&&window.open("http://miiot.partexiot.cn/dk7u"),T==="ios"&&window.open("https://apps.apple.com/cn/app/id1587313547"),T==="chrome"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/chrome_installer.exe"),T==="edge"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/MicrosoftEdgeSetup.exe"),T==="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"),T==="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")},x=()=>{fG().then(()=>{a.success({content:"续订请求已发送,七个工作日内将会有专人联系",duration:3e3})}).catch(()=>{a.error({content:()=>t("Notice.error"),duration:3e3})})},C=()=>{if(F.tenantStatus===0&&F.renewalStatus===0){const T=document.getElementById("app");T&&T.classList.add("outrange"),a.info({action:()=>p.h(O.NFlex,{size:[15,15]},{default:()=>p.h(O.NButton,{class:"button-primary","on-click":()=>{x()}},{default:()=>"立即续订"})}),closable:!1,content:`您的订阅已于${_r(F.endTime)}到期,如需继续使用请联系我们`,title:"到期提示"})}if(F.tenantStatus===2&&F.renewalStatus===0){let T=`您的订阅即将于${_r(F.endTime)}到期,请联系管理员进行续订`,M=[p.h(O.NButton,{secondary:!0,"on-click":()=>{a.destroyAll()}},{default:()=>"了解"})];F.kind===99&&(T=`您的订阅即将于${_r(F.endTime)}到期,为保证持续有效的提供服务请立即续订`,M=[p.h(O.NButton,{secondary:!0,"on-click":()=>{a.destroyAll()}},{default:()=>"稍后提示我"}),p.h(O.NButton,{class:"button-primary","on-click":()=>{x()}},{default:()=>"立即续订"})]),a.info({action:()=>p.h(O.NFlex,{size:[15,15]},{default:()=>M}),closable:!1,content:T,title:"温馨提示"})}},N=()=>{n.push(K.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 T=document.body;T&&T.classList.add("outrange")}};return p.onMounted(()=>{C(),f(r.path),b()}),p.watch(()=>r.path,T=>{f(T),b()}),p.watch(()=>K.needUpdate,T=>{if(T){s.value=setInterval(()=>{l.value=l.value-1,l.value<=0&&(clearInterval(window.versionMonitor),clearInterval(s.value),s.value=void 0,M.destroy())},1e3);const M=a.create({title:"检测到系统有新版本需要更新",content:()=>`是否立即更新?更新需要重新加载页面,请确保所有项目都已经保存完毕。${l.value}秒后自动关闭`,meta:_r(new Date,"yyyy-MM-dd hh:mm:ss"),onClose:()=>{clearInterval(window.versionMonitor)},action:()=>p.h(O.NFlex,{justify:"space-between"},{default:()=>[p.h(O.NButton,{quaternary:!0,onClick:()=>{clearInterval(window.versionMonitor),M.destroy()}},{default:()=>"稍后"}),p.h(O.NButton,{type:"primary",onClick:()=>{window.location.reload()}},{default:()=>"更新"})]})})}}),{userStore:F,commonStore:K,activeMenu:o,platformOption:u,showMenu:i,fnSetLang:va,setDropdownMenu:_,renderMenuLabel:v,renderMenuLabel2:m,renderMenuIcon:g,indexClick:N,platformClick:y,dropdownClick:S,changeTheme:c,closeModel:w}}}),NG={class:"oc-header"},DG={class:"menu"};function AG(e,t,r,n,a,o){const i=p.resolveComponent("IconGridDots"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NDropdown"),c=p.resolveComponent("IconNavigation"),f=p.resolveComponent("NMenu"),d=p.resolveComponent("Pop"),h=p.resolveComponent("Message"),v=p.resolveComponent("IconWeatherMoon"),m=p.resolveComponent("IconWeatherSunny"),g=p.resolveComponent("IconUser"),y=p.resolveComponent("NDrawerContent"),w=p.resolveComponent("NDrawer");return p.openBlock(),p.createElementBlock("header",NG,[e.platformOption.length>1&&e.platformShow?(p.openBlock(),p.createBlock(u,{key:0,trigger:"hover",placement:"bottom-start",size:"huge",options:e.platformOption,onSelect:e.platformClick},{default:p.withCtx(()=>[p.createVNode(l,{style:{padding:"0 14px 0 0"}},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(i)]),_:1})]),_:1})]),_:1},8,["options","onSelect"])):p.createCommentVNode("",!0),p.createElementVNode("a",{href:"javascript:;",class:"logo",onClick:t[0]||(t[0]=(..._)=>e.indexClick&&e.indexClick(..._))}),e.commonStore.isPad?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("a",{key:1,href:"javascript:;",class:"platform-txt",onClick:t[1]||(t[1]=(..._)=>e.indexClick&&e.indexClick(..._))}," | "+p.toDisplayString(e.commonStore.platformName()),1)),p.createElementVNode("div",DG,[e.commonStore.isPad?(p.openBlock(),p.createBlock(l,{key:0,onClick:t[2]||(t[2]=_=>e.showMenu=!0)},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(c)]),_:1})]),_:1})):(p.openBlock(),p.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?(p.openBlock(),p.createBlock(d,{key:2})):p.createCommentVNode("",!0),e.message&&!e.commonStore.isPad?(p.openBlock(),p.createBlock(h,{key:3})):p.createCommentVNode("",!0),e.commonStore.isPad?p.createCommentVNode("",!0):(p.openBlock(),p.createBlock(l,{key:4,style:{"margin-left":"15px"},onClick:t[3]||(t[3]=_=>e.changeTheme(!e.commonStore.theme))},{icon:p.withCtx(()=>[p.withDirectives(p.createVNode(s,{color:"#8e54c8"},{default:p.withCtx(()=>[p.createVNode(v)]),_:1},512),[[p.vShow,e.commonStore.theme]]),p.withDirectives(p.createVNode(s,{color:"#f2a651"},{default:p.withCtx(()=>[p.createVNode(m)]),_:1},512),[[p.vShow,!e.commonStore.theme]])]),_:1})),e.commonStore.language&&!e.commonStore.isPad?(p.openBlock(),p.createBlock(l,{key:5,onClick:t[4]||(t[4]=_=>e.fnSetLang())},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.commonStore.lang==="zh-CN"?"EN":"中文"),1)]),_:1})):p.createCommentVNode("",!0),e.userStore.name?(p.openBlock(),p.createBlock(u,{key:6,trigger:"click",placement:"bottom-end",options:e.setDropdownMenu(),onSelect:e.dropdownClick},{default:p.withCtx(()=>[p.createVNode(l,{text:"",class:"user",title:e.userStore.name},p.createSlots({default:p.withCtx(()=>[e.commonStore.isPad?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createTextVNode(p.toDisplayString(e.userStore.name),1)],64))]),_:2},[e.commonStore.isPad?{name:"icon",fn:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(g)]),_:1})]),key:"0"}:void 0]),1032,["title"])]),_:1},8,["options","onSelect"])):p.createCommentVNode("",!0)]),p.createVNode(w,{show:e.showMenu,"onUpdate:show":t[5]||(t[5]=_=>e.showMenu=_)},{default:p.withCtx(()=>[p.createVNode(y,{title:e.commonStore.platformName(),"native-scrollbar":!1,closable:""},{default:p.withCtx(()=>[p.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 XS=Z(TG,[["render",AG]]),ZS=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])}),cc("api/manager/job/submit",t)},MG=e=>new Promise((t,r)=>{const n=So(e);nt("api/manager/job/page",n).then(a=>{const o=bo(a);t(o)}).catch(()=>{r()})}),kG=(e,t={})=>av(e,t,"blob"),EG=p.defineComponent({name:"OcImporter",components:{IconDismiss:$r,IconArrowClockwise:fa,IconMailInboxAdd:wo,IconCloudArrowDown:Zi,NModal:O.NModal,NCard:O.NCard,NFlex:O.NFlex,NUpload:O.NUpload,NButton:O.NButton,NTooltip:O.NTooltip,NIcon:O.NIcon,NDataTable:O.NDataTable},props:{show:{required:!0,type:Boolean,default:!1},data:{required:!0,type:Object,default:()=>({type:"",file:""})}},emits:["update:show"],setup(e,{emit:t}){const{t:r}=Ht.useI18n(),n=O.useNotification(),a=p.ref(!1),o=p.ref(!1),i=p.ref({page:1,pageCount:1,pageSize:30}),s=p.ref([{title:"#",width:60,align:"center",key:"index",render(m,g){return p.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")),p.h("span",{},{default:()=>g})}},{title:r("Common.importer.createTime"),key:"commitTime",width:200,render(m){return p.h("div",{},{default:()=>_r(m.commitTime,"yyyy-MM-dd hh:mm:ss")})}},{title:r("Common.action"),key:"action",align:"center",fixed:"right",width:120,render(m){return Gr([{type:"custom",disabled:m.jobStatus===0,onClick:()=>{window.open(m.downloadUrl)},icon:_o,color:"success",tooltipText:()=>r("Common.importer.btnDownload")}])}}]),l=p.ref([]),u=()=>{t("update:show",!1)},c=m=>{i.value.page=m,h()},f=m=>{i.value.pageSize=m,i.value.page=1,h()},d=m=>new Promise((g,y)=>{m.file.file&&ZS({jobType:"IMPORT",jobTypeName:e.data.type,jobParams:e.data.params,file:m.file.file}).then(()=>{h(),g()}).catch(()=>{h(),y()}),y()}),h=()=>{o.value=!0,MG({jobType:"IMPORT",jobTypeName:e.data.type,query:i.value}).then(m=>{o.value=!1,l.value=m.records,i.value=m.query}).catch(()=>{o.value=!1})},v=()=>{e.data.steam?kG(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 p.watch(()=>e.show,m=>{a.value=m,m&&(i.value={page:1,pageCount:1,pageSize:30},h())}),{modal:a,columns:s,coldata:l,query:i,loading:o,init:h,closeModel:u,pageChange:c,pageSizeChange:f,beforeUpload:d,downloadFile:v}}}),PG={class:"oc-header-download"};function IG(e,t,r,n,a,o){const i=p.resolveComponent("IconMailInboxAdd"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NUpload"),c=p.resolveComponent("IconCloudArrowDown"),f=p.resolveComponent("IconArrowClockwise"),d=p.resolveComponent("NTooltip"),h=p.resolveComponent("IconDismiss"),v=p.resolveComponent("NFlex"),m=p.resolveComponent("NDataTable"),g=p.resolveComponent("NCard"),y=p.resolveComponent("NModal");return p.openBlock(),p.createBlock(y,{show:e.modal,"onUpdate:show":t[0]||(t[0]=w=>e.modal=w),"on-mask-click":e.closeModel},{default:p.withCtx(()=>[p.createVNode(g,{style:{width:"900px"}},{header:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.$t("Common.importer.title"))+" ",1),p.createElementVNode("span",PG,p.toDisplayString(e.$t("Common.validDays")),1)]),"header-extra":p.withCtx(()=>[p.createVNode(v,{justify:"end",wrap:!1},{default:p.withCtx(()=>[p.createVNode(u,{"on-before-upload":e.beforeUpload,accept:".xlsx,.xls","show-file-list":!1},{default:p.withCtx(()=>[p.createVNode(l,null,{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(i)]),_:1})]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.importer.file")),1)]),_:1})]),_:1},8,["on-before-upload"]),p.renderSlot(e.$slots,"default"),p.createVNode(l,{onClick:e.downloadFile},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(c)]),_:1})]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.importer.download")),1)]),_:1},8,["onClick"]),p.createVNode(d,{trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{loading:e.loading,onClick:e.init},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(f)]),_:1})]),_:1},8,["loading","onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.refresh")),1)]),_:1}),p.createVNode(l,{quaternary:"",onClick:e.closeModel},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(h)]),_:1})]),_:1},8,["onClick"])]),_:3})]),default:p.withCtx(()=>[p.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 Wp=Z(EG,[["render",IG]]),LG=p.defineComponent({name:"OcLogin",components:{NTabs:O.NTabs,NTabPane:O.NTabPane,NForm:O.NForm,NFormItem:O.NFormItem,NDropdown:O.NDropdown,NInput:O.NInput,NButton:O.NButton,NGrid:O.NGrid,NGi:O.NGi,NIcon:O.NIcon,NPopover:O.NPopover,IconWeatherSunny:Yi,IconWeatherMoon:Ui},props:{bg:{type:String,default:void 0},version:{type:String,default:""},info:{required:!1,type:Object,default:()=>({href:"",text:""})}},setup(){const{t:e}=Ht.useI18n(),t=O.useNotification(),r=Tt.useRouter(),n=p.ref(dt("loginTab","1")),a=p.ref(),o=p.ref(),i=p.ref(),s=p.ref(),l=p.ref(!1),u=p.ref(!1),c=p.ref(!1),f=p.ref(!1),d=p.ref({phone:"",name:"",password:""}),h=p.ref({name:{required:!0,message:()=>e("Common.login.userNameMessage"),trigger:"blur"},phone:{required:!0,validator:(L,R)=>R?/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(R):!1,message:()=>e("Common.login.mobileMessage"),trigger:"blur"},password:{required:!0,message:()=>e("Common.login.passwordMessage"),trigger:"input"}}),v=p.ref([]),m=p.ref([]),g=p.ref([]),y=p.ref([]),w=()=>{const L=dt("loginOption",{}),R=[];Object.keys(L).forEach(B=>{R.push({label:B,key:B})}),v.value=R,m.value=R},_=()=>{const L=dt("phoneOption",{}),R=[];Object.keys(L).forEach(B=>{R.push({label:B,key:B})}),g.value=R,y.value=R},S=L=>{ht("token",L,0),Bu().then(R=>{t.success({content:()=>e("Notice.success"),duration:3e3}),R.kind!==1&&r.replace(K.platformUrl)}).catch(()=>{t.error({content:()=>e("Notice.error"),duration:3e3}),d.value.password="",u.value=!1})},x=()=>{var L,R;u.value||(u.value=!0,n.value==="0"?(L=o.value)==null||L.validate(B=>{B?u.value=!1:jS({type:n.value,...d.value}).then(V=>{const W=dt("loginOption",{});W[d.value.name]=!0,ht("loginOption",W,0),S(V)}).catch(()=>{d.value.password="",u.value=!1})}):(R=a.value)==null||R.validate(B=>{B?u.value=!1:jS({type:n.value,...d.value}).then(V=>{const W=dt("phoneOption",{});W[d.value.name]=!0,ht("phoneOption",W,0),S(V)}).catch(()=>{d.value.password="",u.value=!1})}))},C=L=>{d.value.name=L;const R=m.value.filter(B=>B.label.indexOf(L)>-1);v.value=R,R.length===0?f.value=!1:f.value=!0},N=L=>{d.value.name=L,f.value=!1,i.value.focus(),setTimeout(()=>{var R;(R=o.value)==null||R.restoreValidation()},80)},b=L=>{var R;v.value.length===0?f.value=!1:f.value=L,(R=o.value)==null||R.restoreValidation()},T=L=>{d.value.phone=L;const R=y.value.filter(B=>B.label.indexOf(L)>-1);g.value=R,R.length===0?c.value=!1:c.value=!0},M=L=>{d.value.phone=L,c.value=!1,s.value.focus(),setTimeout(()=>{var R;(R=a.value)==null||R.restoreValidation()},80)},D=L=>{var R;g.value.length===0?c.value=!1:c.value=L,(R=a.value)==null||R.restoreValidation()},A=L=>{l.value=L,xo(L),ht("theme",L,0)},P=L=>{var R,B;n.value=L,d.value={phone:"",name:"",password:""},ht("loginTab",L,0),(R=o.value)==null||R.restoreValidation(),(B=a.value)==null||B.restoreValidation()},E=L=>p.h("div",{style:{position:"relative"}},{default:()=>[p.h("div",{},{default:()=>L.label}),p.h($r,{class:"oc-login-drop-menu",onclick:R=>{R.stopPropagation(),R.stopImmediatePropagation();const B=dt("loginOption",{});delete B[L.label],ht("loginOption",B,0),w();const V=d.value.name,W=m.value.filter(q=>q.label.indexOf(V)>-1);v.value=W}},{default:()=>""})]}),I=L=>p.h("div",{style:{position:"relative"}},{default:()=>[p.h("div",{},{default:()=>L.label}),p.h($r,{class:"oc-login-drop-menu",onclick:R=>{R.stopPropagation(),R.stopImmediatePropagation();const B=dt("phoneOption",{});delete B[L.label],ht("phoneOption",B,0),_();const V=d.value.name,W=y.value.filter(q=>q.label.indexOf(V)>-1);g.value=W}},{default:()=>""})]});return Vu(),da("token"),w(),_(),{tabs:n,commonStore:K,pwdRef:i,pwdPhoneRef:s,formRef:o,formPhoneRef:a,formValue:d,formRules:h,showPhoneDropdown:c,showNameDropdown:f,optionsName:v,optionsPhone:g,loading:u,theme:l,submit:x,tabChange:P,nameChange:C,phoneChange:T,changeTheme:A,fnSetLang:va,dropNameSelect:N,dropPhoneSelect:M,showDropdownNameChange:b,showDropdownPhoneChange:D,renderDropdownNameLabel:E,renderDropdownPhoneLabel:I}}}),OG={class:"oc-login"},RG=[p.createElementVNode("img",{src:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/login.png",alt:"logo",class:"oc-login-img"},null,-1)],BG={class:"oc-login-right"},VG={class:"oc-login-language"},$G=p.createElementVNode("div",{class:"oc-login-title"},null,-1),FG={class:"oc-login-platform"},zG={class:"oc-login-form"},GG=p.createElementVNode("br",null,null,-1),HG=p.createElementVNode("br",null,null,-1),WG={class:"oc-login-submit"},UG=["href"],YG=p.createElementVNode("div",{class:"oc-google-play"},null,-1),qG=p.createElementVNode("img",{src:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/android_qr.png",alt:"AndroidQr",width:"300",height:"300"},null,-1),jG=p.createElementVNode("div",{class:"oc-app-store"},null,-1),XG=p.createElementVNode("img",{src:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/ios_qr.png",alt:"iOSQr",width:"300",height:"300"},null,-1),ZG={class:"oc-login-footer"},KG=p.createElementVNode("span",{style:{"font-family":"Arial, Helvetica, sans-serif"}},"©",-1),JG=p.createElementVNode("a",{href:"https://beian.miit.gov.cn/",target:"_blank",class:"oc-footer-record"}," 沪ICP备 18025935号-3 ",-1);function QG(e,t,r,n,a,o){const i=p.resolveComponent("IconWeatherMoon"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("IconWeatherSunny"),u=p.resolveComponent("NButton"),c=p.resolveComponent("NInput"),f=p.resolveComponent("NDropdown"),d=p.resolveComponent("NFormItem"),h=p.resolveComponent("NForm"),v=p.resolveComponent("NTabPane"),m=p.resolveComponent("NTabs"),g=p.resolveComponent("NPopover"),y=p.resolveComponent("NGi"),w=p.resolveComponent("NGrid");return p.openBlock(),p.createElementBlock("div",OG,[p.createElementVNode("div",{class:"oc-login-left",style:p.normalizeStyle(e.bg?`background-image: url(${e.bg})`:"")},RG,4),p.createElementVNode("div",BG,[p.createElementVNode("div",VG,[p.createVNode(u,{onClick:t[0]||(t[0]=_=>e.changeTheme(!e.theme))},{icon:p.withCtx(()=>[p.withDirectives(p.createVNode(s,{color:"#8e54c8"},{default:p.withCtx(()=>[p.createVNode(i)]),_:1},512),[[p.vShow,e.theme]]),p.withDirectives(p.createVNode(s,{color:"#f2a651"},{default:p.withCtx(()=>[p.createVNode(l)]),_:1},512),[[p.vShow,!e.theme]])]),_:1}),e.commonStore.language?(p.openBlock(),p.createBlock(u,{key:0,onClick:t[1]||(t[1]=_=>e.fnSetLang())},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.commonStore.lang==="zh-CN"?"EN":"中文"),1)]),_:1})):p.createCommentVNode("",!0)]),$G,p.createElementVNode("div",FG,p.toDisplayString(e.commonStore.platformName()),1),p.createElementVNode("div",zG,[p.createVNode(m,{value:e.tabs,"on-update:value":e.tabChange,type:"segment","justify-content":"end",animated:""},{default:p.withCtx(()=>[p.createVNode(v,{name:"1",tab:e.$t("Common.login.mobile")},{default:p.withCtx(()=>[GG,p.createVNode(h,{ref:"formPhoneRef",model:e.formValue,rules:e.formRules,"show-require-mark":!1,"label-placement":"top",onKeyup:p.withKeys(e.submit,["enter"])},{default:p.withCtx(()=>[p.createVNode(d,{label:e.$t("Common.login.mobile"),path:"phone"},{default:p.withCtx(()=>[p.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:p.withCtx(()=>[p.createVNode(c,{value:e.formValue.phone,"onUpdate:value":t[2]||(t[2]=_=>e.formValue.phone=_),placeholder:e.$t("Common.login.mobilePlaceholder"),"on-update:value":e.phoneChange,onClick:t[3]||(t[3]=_=>e.showDropdownPhoneChange(!0)),onFocus:t[4]||(t[4]=_=>e.showDropdownPhoneChange(!0))},null,8,["value","placeholder","on-update:value"])]),_:1},8,["show","options","render-label","onSelect"])]),_:1},8,["label"]),p.createVNode(d,{label:e.$t("Common.login.password"),path:"password"},{default:p.withCtx(()=>[p.createVNode(c,{ref:"pwdPhoneRef",value:e.formValue.password,"onUpdate:value":t[6]||(t[6]=_=>e.formValue.password=_),type:"password","show-password-on":"click",placeholder:e.$t("Common.login.passwordPlaceholder"),onFocus:t[7]||(t[7]=_=>e.showDropdownPhoneChange(!1))},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules","onKeyup"])]),_:1},8,["tab"]),p.createVNode(v,{name:"0",tab:e.$t("Common.login.userName")},{default:p.withCtx(()=>[HG,p.createVNode(h,{ref:"formRef",model:e.formValue,rules:e.formRules,"show-require-mark":!1,"label-placement":"top",onKeyup:p.withKeys(e.submit,["enter"])},{default:p.withCtx(()=>[p.createVNode(d,{label:e.$t("Common.login.userName"),path:"name"},{default:p.withCtx(()=>[p.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:p.withCtx(()=>[p.createVNode(c,{value:e.formValue.name,"onUpdate:value":t[8]||(t[8]=_=>e.formValue.name=_),placeholder:e.$t("Common.login.userNamePlaceholder"),"on-update:value":e.nameChange,onClick:t[9]||(t[9]=_=>e.showDropdownNameChange(!0)),onFocus:t[10]||(t[10]=_=>e.showDropdownNameChange(!0))},null,8,["value","placeholder","on-update:value"])]),_:1},8,["show","options","render-label","onSelect"])]),_:1},8,["label"]),p.createVNode(d,{label:e.$t("Common.login.password"),path:"password"},{default:p.withCtx(()=>[p.createVNode(c,{ref:"pwdRef",value:e.formValue.password,"onUpdate:value":t[12]||(t[12]=_=>e.formValue.password=_),type:"password","show-password-on":"click",placeholder:e.$t("Common.login.passwordPlaceholder")},null,8,["value","placeholder"])]),_:1},8,["label"])]),_:1},8,["model","rules","onKeyup"])]),_:1},8,["tab"])]),_:1},8,["value","on-update:value"]),p.createElementVNode("div",WG,[p.createVNode(u,{loading:e.loading,class:"button-primary",onClick:e.submit},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.$t("Common.login.in")),1)]),_:1},8,["loading","onClick"])]),e.info.href?(p.openBlock(),p.createElementBlock("a",{key:0,href:e.info.href,class:"oc-login-other"},p.toDisplayString(e.info.text),9,UG)):p.createCommentVNode("",!0),p.createVNode(w,{"x-gap":"15",cols:2},{default:p.withCtx(()=>[p.createVNode(y,null,{default:p.withCtx(()=>[p.createVNode(g,{trigger:"hover",placement:"top"},{trigger:p.withCtx(()=>[YG]),default:p.withCtx(()=>[qG]),_:1})]),_:1}),p.createVNode(y,null,{default:p.withCtx(()=>[p.createVNode(g,{trigger:"hover",placement:"top"},{trigger:p.withCtx(()=>[jG]),default:p.withCtx(()=>[XG]),_:1})]),_:1})]),_:1})]),p.createElementVNode("footer",ZG,[p.createTextVNode(" Copyright "),KG,p.createTextVNode(" 2020-2024 "+p.toDisplayString(e.$t("Common.title"))+" ",1),e.version?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createTextVNode("v"+p.toDisplayString(e.version)+" ",1)],64)):p.createCommentVNode("",!0),JG])])])}const KS=Z(LG,[["render",QG]]),e9=p.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=p.ref(!1),r=p.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 c=()=>{const d=performance.now(),h=Math.min(d-f,u),v=s+(l-s)*n(h/u);if(h===u){r.value=a(Number(e.value)),t.value=!1;return}const m=Number(v.toFixed(e.precision));r.value=a(m),requestAnimationFrame(c)},f=performance.now();c()}const i=(s=0,l=e.value)=>{t.value=!0,r.value=a(s),String(s)!==String(l)&&o(s,Number(l))};return p.watch(()=>e.value,(s,l)=>{i(Number(l)||0,Number(s))}),p.onMounted(()=>{i()}),{displayedValueRef:r}}});function t9(e,t,r,n,a,o){return p.toDisplayString(e.displayedValueRef)}const Up=Z(e9,[["render",t9]]),r9=p.defineComponent({name:"OcLogo",components:{NGrid:O.NGrid,NGi:O.NGi,NDivider:O.NDivider,NumberRoll:Up},props:{text:{type:String,default:"智能效率监测平台"}},setup(){const e=p.ref(Date.now()),t=p.ref(void 0),r=n=>_r(n,"yyyy-MM-dd hh:mm:ss");return p.onMounted(()=>{t.value=setInterval(()=>{e.value=Date.now()},1e3)}),p.onBeforeUnmount(()=>{clearInterval(t.value),t.value=void 0}),{time:e,numFormat:r}}}),n9=p.createElementVNode("div",{class:"oc-logo"},null,-1);function a9(e,t,r,n,a,o){const i=p.resolveComponent("NGi"),s=p.resolveComponent("NDivider"),l=p.resolveComponent("NumberRoll"),u=p.resolveComponent("NGrid");return p.openBlock(),p.createBlock(u,{cols:5,class:"oc-dashboard-logo"},{default:p.withCtx(()=>[p.createVNode(i,{span:"1",class:"flex-center-left"},{default:p.withCtx(()=>[n9]),_:1}),p.createVNode(i,{span:"3",class:"flex-center"},{default:p.withCtx(()=>[p.createVNode(s,{class:"oc-dashboard-title-show"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.text),1)]),_:1})]),_:1}),p.createVNode(i,{span:"1",class:"flex-center-right oc-time"},{default:p.withCtx(()=>[p.createVNode(l,{value:e.time,format:e.numFormat},null,8,["value","format"])]),_:1})]),_:1})}const JS=Z(r9,[["render",a9]]);O.darkTheme.common.cardColor="#32323b",O.darkTheme.common.primaryColor="#b274ef",O.darkTheme.common.primaryColorHover="#b274ef",O.darkTheme.common.borderRadius="16px",O.darkTheme.common.borderRadiusSmall="8px",O.darkTheme.DataTable.tdColor="#2d2d31";const QS={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"}},eC=O.darkTheme,o9=p.defineComponent({name:"OcMain",components:{NConfigProvider:O.NConfigProvider,NDialogProvider:O.NDialogProvider,NNotificationProvider:O.NNotificationProvider},props:{hljs:{type:Object,default:void 0}},setup(){return{zhCN:O.zhCN,dateZhCN:O.dateZhCN,commonStore:K,lightTheme:QS,darkTheme:eC}}});function i9(e,t,r,n,a,o){const i=p.resolveComponent("NNotificationProvider"),s=p.resolveComponent("NDialogProvider"),l=p.resolveComponent("NConfigProvider");return p.openBlock(),p.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:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(i,{placement:"top"},{default:p.withCtx(()=>[p.renderSlot(e.$slots,"default")]),_:3})]),_:3})]),_:3},8,["theme","theme-overrides","locale","date-locale","hljs"])}const tC=Z(o9,[["render",i9]]),s9=e=>{const t=JSON.parse(JSON.stringify(e));return t.oldPassword=Hi(t.oldPassword),t.newPassword=Hi(t.newPassword),t.comfirmPassword=Hi(t.comfirmPassword),nt("api/auth/user/modifyPassword",t)},l9=e=>nt("api/auth/user/update",e),u9=p.defineComponent({name:"OcMy",components:{NGrid:O.NGrid,NGi:O.NGi,NForm:O.NForm,NFormItem:O.NFormItem,NInput:O.NInput,NButton:O.NButton},setup(){const{t:e}=Ht.useI18n(),t=O.useNotification(),r=p.ref(),n=p.ref(),a=p.ref(!1),o=p.ref({oldPassword:"",newPassword:"",comfirmPassword:""}),i=p.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=p.ref(F),l=p.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:o,formValue:s,pwdRules:i,formRules:l,loading:a,pwdSubmit:()=>{var f;a.value||(a.value=!0,(f=r.value)==null||f.validate(d=>{d?a.value=!1:s9(o.value).then(()=>{var h;o.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:l9(s.value).then(()=>{t.success({content:()=>e("Notice.success"),duration:3e3}),a.value=!1,Bu().catch(()=>null)}).catch(()=>{a.value=!1})}))}}}}),c9={class:"com-card"},f9={class:"com-title"},h9=p.createElementVNode("br",null,null,-1),d9={class:"text-right"},p9={class:"com-card"},v9={class:"com-title"},g9=p.createElementVNode("br",null,null,-1),m9={class:"text-right"};function y9(e,t,r,n,a,o){const i=p.resolveComponent("NInput"),s=p.resolveComponent("NFormItem"),l=p.resolveComponent("NForm"),u=p.resolveComponent("NButton"),c=p.resolveComponent("NGi"),f=p.resolveComponent("NGrid");return p.openBlock(),p.createBlock(f,{"x-gap":"15","y-gap":"15",cols:2},{default:p.withCtx(()=>[p.createVNode(c,{span:"1"},{default:p.withCtx(()=>[p.createElementVNode("div",c9,[p.createElementVNode("div",f9,p.toDisplayString(e.$t("Common.my.title")),1),h9,p.createVNode(l,{ref:"formRef",model:e.formValue,rules:e.formRules,"label-placement":"top"},{default:p.withCtx(()=>[p.createVNode(s,{label:e.$t("Common.my.tenantCode"),path:"tenantLoginCode"},{default:p.withCtx(()=>[p.createVNode(i,{value:e.formValue.tenantLoginCode,"onUpdate:value":t[0]||(t[0]=d=>e.formValue.tenantLoginCode=d),readonly:""},null,8,["value"])]),_:1},8,["label"]),p.createVNode(s,{label:e.$t("Common.my.tenantName"),path:"tenantName"},{default:p.withCtx(()=>[p.createVNode(i,{value:e.formValue.tenantName,"onUpdate:value":t[1]||(t[1]=d=>e.formValue.tenantName=d),readonly:""},null,8,["value"])]),_:1},8,["label"]),p.createVNode(s,{label:e.$t("Common.my.name"),path:"name"},{default:p.withCtx(()=>[p.createVNode(i,{value:e.formValue.name,"onUpdate:value":t[2]||(t[2]=d=>e.formValue.name=d),readonly:""},null,8,["value"])]),_:1},8,["label"]),p.createVNode(s,{label:e.$t("Common.my.email"),path:"email"},{default:p.withCtx(()=>[p.createVNode(i,{value:e.formValue.email,"onUpdate:value":t[3]||(t[3]=d=>e.formValue.email=d),placeholder:"邮箱"},null,8,["value"])]),_:1},8,["label"]),p.createVNode(s,{label:e.$t("Common.my.realName"),path:"realName"},{default:p.withCtx(()=>[p.createVNode(i,{value:e.formValue.realName,"onUpdate:value":t[4]||(t[4]=d=>e.formValue.realName=d),placeholder:"真实姓名"},null,8,["value"])]),_:1},8,["label"]),p.createVNode(s,{label:e.$t("Common.my.phone"),path:"phone"},{default:p.withCtx(()=>[p.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"]),p.createElementVNode("div",d9,[p.createVNode(u,{loading:e.loading,class:"button-primary",onClick:e.formSubmit},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.$t("Common.my.submit")),1)]),_:1},8,["loading","onClick"])])])]),_:1}),p.createVNode(c,{span:"1"},{default:p.withCtx(()=>[p.createElementVNode("div",p9,[p.createElementVNode("div",v9,p.toDisplayString(e.$t("Common.my.password")),1),g9,p.createVNode(l,{ref:"pwdRef",model:e.pwdValue,rules:e.pwdRules,"label-placement":"top"},{default:p.withCtx(()=>[p.createVNode(s,{label:e.$t("Common.my.oldPassword"),path:"oldPassword"},{default:p.withCtx(()=>[p.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"]),p.createVNode(s,{label:e.$t("Common.my.newPassword"),path:"newPassword"},{default:p.withCtx(()=>[p.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"]),p.createVNode(s,{label:e.$t("Common.my.checkPassword"),path:"comfirmPassword"},{default:p.withCtx(()=>[p.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"]),p.createElementVNode("div",m9,[p.createVNode(u,{loading:e.loading,class:"button-primary",onClick:e.pwdSubmit},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.$t("Common.my.submit")),1)]),_:1},8,["loading","onClick"])])])]),_:1})]),_:1})}const rC=Z(u9,[["render",y9]]);function _9(e){return new Promise((t,r)=>{nt("api/manager/factory-params/detail",{keyName:e}).then(n=>{const a=JSON.parse(n.valueJson??"[]");t(a)}).catch(()=>{r()})})}const w9=p.defineComponent({name:"OcReport",components:{NFlex:O.NFlex,NDataTable:O.NDataTable,NDatePicker:O.NDatePicker,NInputGroup:O.NInputGroup,NInputGroupLabel:O.NInputGroupLabel},setup(){const{t:e}=Ht.useI18n(),t=p.ref(!0),r=O.useNotification(),n=p.ref([{title:"#",width:60,align:"center",key:"index",render(l,u){return p.h("span",{},{default:()=>u+1})}},{title:"名称",key:"name"},{title:"备注",key:"content"},{title:"操作",key:"action",align:"center",fixed:"right",width:120,render(l){return Gr([{type:"custom",onClick:()=>{i(l.key)},icon:_o,color:"success",tooltipText:"下载"}])}}]),a=p.ref([]),o=p.ref([Date.now(),Date.now()]),i=l=>{t.value=!0,ZS({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}),fc(!0)}).catch(()=>{t.value=!1,r.error({content:()=>e("Notice.error"),duration:3e3})})},s=l=>l>Date.now();return _9("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}}}),b9={class:"com-card"},S9=p.createElementVNode("br",null,null,-1);function C9(e,t,r,n,a,o){const i=p.resolveComponent("NInputGroupLabel"),s=p.resolveComponent("NDatePicker"),l=p.resolveComponent("NInputGroup"),u=p.resolveComponent("NFlex"),c=p.resolveComponent("n-data-table");return p.openBlock(),p.createElementBlock("div",b9,[p.createVNode(u,{justify:"end"},{default:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(i,{class:"oc-group-label"},{default:p.withCtx(()=>[p.createTextVNode("日期")]),_:1}),p.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}),S9,p.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 nC=Z(w9,[["render",C9]]);var x9=rr,T9=function(){return x9.Date.now()},N9=T9,D9=/\s/;function A9(e){for(var t=e.length;t--&&D9.test(e.charAt(t)););return t}var M9=A9,k9=M9,E9=/^\s+/;function P9(e){return e&&e.slice(0,k9(e)+1).replace(E9,"")}var I9=P9,L9=$i,O9=go,R9="[object Symbol]";function B9(e){return typeof e=="symbol"||O9(e)&&L9(e)==R9}var V9=B9,$9=I9,aC=gn,F9=V9,oC=NaN,z9=/^[-+]0x[0-9a-f]+$/i,G9=/^0b[01]+$/i,H9=/^0o[0-7]+$/i,W9=parseInt;function U9(e){if(typeof e=="number")return e;if(F9(e))return oC;if(aC(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=aC(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=$9(e);var r=G9.test(e);return r||H9.test(e)?W9(e.slice(2),r?2:8):z9.test(e)?oC:+e}var Y9=U9,q9=gn,Yp=N9,iC=Y9,j9="Expected a function",X9=Math.max,Z9=Math.min;function K9(e,t,r){var n,a,o,i,s,l,u=0,c=!1,f=!1,d=!0;if(typeof e!="function")throw new TypeError(j9);t=iC(t)||0,q9(r)&&(c=!!r.leading,f="maxWait"in r,o=f?X9(iC(r.maxWait)||0,t):o,d="trailing"in r?!!r.trailing:d);function h(C){var N=n,b=a;return n=a=void 0,u=C,i=e.apply(b,N),i}function v(C){return u=C,s=setTimeout(y,t),c?h(C):i}function m(C){var N=C-l,b=C-u,T=t-N;return f?Z9(T,o-b):T}function g(C){var N=C-l,b=C-u;return l===void 0||N>=t||N<0||f&&b>=o}function y(){var C=Yp();if(g(C))return w(C);s=setTimeout(y,m(C))}function w(C){return s=void 0,d&&n?h(C):(n=a=void 0,i)}function _(){s!==void 0&&clearTimeout(s),u=0,n=l=a=s=void 0}function S(){return s===void 0?i:w(Yp())}function x(){var C=Yp(),N=g(C);if(n=arguments,a=this,l=C,N){if(s===void 0)return v(l);if(f)return clearTimeout(s),s=setTimeout(y,t),h(l)}return s===void 0&&(s=setTimeout(y,t)),i}return x.cancel=_,x.flush=S,x}var sC=K9;const lC=Cp(sC);function qp(e,t=1e3){const r=lC(e,t);return{run:r,cancel:r.cancel,flush:r.flush}}var J9=sC,Q9=gn,eH="Expected a function";function tH(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(eH);return Q9(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),J9(e,t,{leading:n,maxWait:t,trailing:a})}var rH=tH;const nH=Cp(rH);function aH(e,t=1e3){const r=p.ref(e),n=p.computed(()=>nH((...a)=>r.value([...a]),t));return p.onUnmounted(()=>{n.value.cancel()}),{run:n.value,cancel:n.value.cancel,flush:n.value.flush}}function oH(e,t){const r=()=>dt(e,t==null?void 0:t.defaultValue);return[p.ref(r()),o=>{typeof o>"u"?da(e):ht(e,o,(t==null?void 0:t.expired)||"1 Day")}]}function iH(e,t,r){const n=`useQuery-${e}`,a=p.ref(),o=p.ref(),i=p.ref(),s=p.ref(!1),l=p.ref("idle"),u=p.ref(),c=p.ref(0),f=p.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 x=new Promise((C,N)=>{a.value=N});S=await Promise.race([x,t()])}m(!1,"success"),v(S),ht(n,S,0)}catch(S){g(S),m(!1,"error"),c.value>0&&(c.value=c.value-1,setTimeout(()=>{d()},f.value))}}},{run:h}=qp(d,300),v=S=>{let x=S;r!=null&&r.formatResult&&(x=r.formatResult(S)),o.value=x},m=(S,x)=>{s.value=S,x&&(l.value=x)},g=S=>{u.value=S},y=()=>{nv(),a.value&&a.value()},w=()=>{y(),h()},_=()=>{clearInterval(i.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&&v(r.initialData()),r===void 0||r.initialData===void 0||r.cache===void 0||r.cache===!0)try{const S=dt(n,!1);S&&v(S)}catch{v(!1)}return(r===void 0||r.manual===void 0||r.manual===!1)&&h(),r!=null&&r.pollingInterval&&(i.value=setInterval(()=>{h()},r==null?void 0:r.pollingInterval)),p.onBeforeUnmount(()=>{_()}),{status:l,data:o,loading:s,error:u,stopPollingInterval:_,cancel:y,refetch:w}}const sH=p.defineComponent({name:"OcScan",components:{NButton:O.NButton,NModal:O.NModal,NCard:O.NCard,NFlex:O.NFlex,NIcon:O.NIcon,IconDismiss:$r},emits:["on-update:value"],setup(e,{emit:t}){const r=p.ref(),n=p.ref(),a=p.ref(!1),o=p.ref(!1),i=O.useNotification(),s=1280,l=720;let u=null,c=null;const f=(x,C)=>{u.beginPath(),u.moveTo(x.x,x.y),u.lineTo(C.x,C.y),u.lineWidth=2,u.strokeStyle="green",u.stroke()},d=()=>{o.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 x=u.getImageData(0,0,s,l);try{const C=TC(x.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),v()}}catch{o.value=!1,i.error({content:"扫描失败,请重试",duration:3e3})}}d()},v=()=>{r.value&&r.value.srcObject&&(r.value.srcObject.getTracks().forEach(x=>x.stop()),o.value=!1,u=null,c=null,r.value.srcObject=null,r.value.src=null),a.value=!1},m=x=>{r.value.srcObject!==void 0?r.value.srcObject=x:window.videoEl.mozSrcObject!==void 0?r.value.mozSrcObject=x:window.URL.createObjectURL?r.value.src=window.URL.createObjectURL(x):window.webkitURL?r.value.src=window.webkitURL.createObjectURL(x):r.value.src=x,r.value.play().then(d)},g=()=>{var x,C;(x=n.value)==null||x.focus(),(C=n.value)==null||C.select(),a.value=!0,p.nextTick(()=>{navigator.mediaDevices&&navigator.mediaDevices.getUserMedia?(o.value=!0,c=document.getElementById("oc-scan-canvas"),c&&(u=c.getContext("2d",{willReadFrequently:!0})),navigator.mediaDevices.getUserMedia({video:!0}).then(m).catch(()=>{o.value=!1,i.error({content:"未获取到摄像头权限,请确认赋予相关权限",duration:3e3})})):(o.value=!1,i.error({content:"您的设备未检测到摄像头,无法进行扫码识别",duration:3e3}))})};let y="",w=0;const{run:_}=qp(()=>{y&&t("on-update:value",y),y="",w=0},300);function S(x){let C=new Date().getTime();C-w<=50?_():y="",w=C,y+=x.key}return p.onMounted(()=>{window.addEventListener("keypress",S)}),p.onBeforeUnmount(()=>{window.removeEventListener("keypress",S),v()}),{videoRef:r,inputRef:n,modal:a,loading:o,doScan:g,closeAll:v}}}),lH=p.createElementVNode("div",{class:"oc-scan-canvas-main"},[p.createElementVNode("canvas",{id:"oc-scan-canvas",width:"1280",height:"720"})],-1),uH={class:"oc-scan-video"},cH={ref:"videoRef",playsInline:""},fH={ref:"inputRef",type:"text",class:"oc-scan-input"};function hH(e,t,r,n,a,o){const i=p.resolveComponent("NButton"),s=p.resolveComponent("IconDismiss"),l=p.resolveComponent("NIcon"),u=p.resolveComponent("NFlex"),c=p.resolveComponent("NCard"),f=p.resolveComponent("NModal");return p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createVNode(i,{type:"primary",loading:e.loading,onClick:e.doScan},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.$t("Common.scan.label")),1)]),_:1},8,["loading","onClick"]),p.createVNode(f,{show:e.modal,"onUpdate:show":t[0]||(t[0]=d=>e.modal=d),"on-mask-click":e.closeAll},{default:p.withCtx(()=>[p.createVNode(c,{style:{width:"1320px"}},{header:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.$t("Common.scan.label")),1)]),"header-extra":p.withCtx(()=>[p.createVNode(u,{justify:"end"},{default:p.withCtx(()=>[p.createVNode(i,{quaternary:"",onClick:e.closeAll},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(s)]),_:1})]),_:1},8,["onClick"])]),_:1})]),default:p.withCtx(()=>[lH]),_:1})]),_:1},8,["show","on-mask-click"]),p.createElementVNode("div",uH,[p.createElementVNode("video",cH,null,512)]),p.createElementVNode("input",fH,null,512)],64)}const uC=Z(sH,[["render",hH]]),dH=p.defineComponent({name:"OcTimePickRange",components:{NInputGroup:O.NInputGroup,NTimePicker:O.NTimePicker},props:{value:{required:!0,type:Array,default:()=>[]},format:{required:!1,type:String,default:"HH:mm"},disabled:{required:!1,type:Boolean,default:!1},clearable:{required:!1,type:Boolean,default:!1}},emits:["on-update:value"],setup(e,{emit:t}){const r=p.ref(null),n=p.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 p.onMounted(()=>{e.value&&(r.value=e.value[0],n.value=e.value[1])}),p.watch(()=>e.value,i=>{i&&(r.value=i[0],n.value=i[1])}),{startTime:r,endTime:n,updateStartValue:a,updateEndValue:o}}}),pH=p.createElementVNode("span",{class:"oc-time-picker-separator"},"-",-1);function vH(e,t,r,n,a,o){const i=p.resolveComponent("NTimePicker"),s=p.resolveComponent("NInputGroup");return p.openBlock(),p.createBlock(s,{class:"oc-time-picker"},{default:p.withCtx(()=>[p.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"]),pH,p.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 gH=Z(dH,[["render",vH]]),mH=p.defineComponent({name:"OcSearchBarItem",components:{NIcon:O.NIcon,NButton:O.NButton,NGrid:O.NGrid,NGridItem:O.NGridItem,NInput:O.NInput,NInputNumber:O.NInputNumber,NSelect:O.NSelect,NTooltip:O.NTooltip,NPopover:O.NPopover,NDataTable:O.NDataTable,NCascader:O.NCascader,NTreeSelect:O.NTreeSelect,NDatePicker:O.NDatePicker,NInputGroup:O.NInputGroup,NInputGroupLabel:O.NInputGroupLabel,OcTimePickRange:gH,IconArrowDown:Ji,IconArrowUp:ec},props:{cols:{type:Number,default:4},small:{type:Boolean,default:!1}},setup(e,{expose:t,slots:r}){const{t:n}=Ht.useI18n(),a=p.ref(!!r.header),o=p.ref({}),i=p.ref(!0),s=p.ref(!1),l=p.ref(0),u=p.ref({}),c=p.ref({}),f=p.ref([{key:"label"}]),d=_=>_.fallbackOption?typeof _.fallbackOption=="boolean"?()=>({label:n("Common.message.all"),value:"",disabled:!0}):_.fallbackOption:!1,h=(_,S,x)=>{const C=x.options.filter(N=>String(N.label).toLocaleLowerCase().indexOf(String(S).toLocaleLowerCase())>-1)||[];u.value[_].options=C,C.length===0?u.value[_].display=!1:u.value[_].display=!0},v=_=>{var b;Object.keys(_).forEach(T=>{var D,A,P;const M=_[T];M.show=M.show??!0,M.type==="dropdown"&&(u.value[T]={display:!1,options:M.options}),M.type==="select"&&M.fallbackOption&&M.multiple&&c.value[T].length===0&&(c.value[T]=[""]),M.type==="group"&&(c.value[T]||(c.value[T]=M.options[0].value),M.inputTemp=M.input.options[c.value[T]?c.value[T]:M.options[0].value],((D=M.inputTemp)==null?void 0:D.type)==="select"&&((A=M.inputTemp)!=null&&A.fallbackOption)&&((P=M.inputTemp)!=null&&P.multiple)&&c.value[M.input.key].length===0&&(c.value[M.input.key]=[""]))});let S=0;const x=e.small?1:e.cols,C=Object.keys(_);if(Object.keys(_).length>0)for(let T=0;T<=x;T++)(b=_[C[T]])!=null&&b.show&&(S=S+1);let N=x-S>=0?x-S-1:-1;a.value&&(N=N-1,S=S+1),l.value=N,S>x?s.value=!0:s.value=!1,e.small&&(i.value=!1,s.value=!1),o.value=_},m=_=>{u.value[_].options.length===0?u.value[_].display=!1:u.value[_].display=!0},g=()=>{i.value=!i.value},y=()=>{const _=JSON.stringify(c.value,(S,x)=>x===void 0?null:Array.isArray(x)?x.filter(C=>C!==""):x);return JSON.parse(_)},w=_=>{_&&(c.value=_)};return t({getValues:y,setValues:w,dataFactory:v}),{more:s,offset:l,dataList:o,collapsed:i,searchData:c,dropDisplay:u,columnsPopover:f,isSlotHeader:a,showMore:g,setValues:w,dropValueChange:h,dropDisplayToggle:m,getDefaultDate:ha,selectFallback:d}}}),yH={class:"oc-search-bar-line"},_H={class:"oc-search-bar-title"},wH={key:0,class:"oc-search-action-more"};function bH(e,t,r,n,a,o){const i=p.resolveComponent("NGridItem"),s=p.resolveComponent("NInputGroupLabel"),l=p.resolveComponent("NInput"),u=p.resolveComponent("NInputNumber"),c=p.resolveComponent("NSelect"),f=p.resolveComponent("NDataTable"),d=p.resolveComponent("NPopover"),h=p.resolveComponent("NCascader"),v=p.resolveComponent("NTreeSelect"),m=p.resolveComponent("OcTimePickRange"),g=p.resolveComponent("NDatePicker"),y=p.resolveComponent("NInputGroup"),w=p.resolveComponent("NGrid"),_=p.resolveComponent("IconArrowDown"),S=p.resolveComponent("NIcon"),x=p.resolveComponent("IconArrowUp"),C=p.resolveComponent("NButton"),N=p.resolveComponent("NTooltip");return p.openBlock(),p.createElementBlock("div",yH,[p.createVNode(w,{"x-gap":"15","y-gap":"15",cols:e.small?1:e.cols,"collapsed-rows":1,collapsed:e.collapsed,responsive:"screen","item-responsive":""},{default:p.withCtx(()=>[e.isSlotHeader?(p.openBlock(),p.createBlock(i,{key:0,span:e.small?1:`${e.cols} s:2 l:1`},{default:p.withCtx(()=>[p.createElementVNode("div",_H,[p.renderSlot(e.$slots,"header")])]),_:3},8,["span"])):p.createCommentVNode("",!0),e.offset>-1?(p.openBlock(),p.createBlock(i,{key:1,offset:e.offset},null,8,["offset"])):p.createCommentVNode("",!0),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(e.dataList,(b,T,M)=>(p.openBlock(),p.createBlock(i,{key:`${T}_${M}`,span:b.show?e.small?1:b.span?b.span:`${e.cols} s:2 l:1`:0},{default:p.withCtx(()=>[b.type!=="group"?(p.openBlock(),p.createBlock(y,{key:0},{default:p.withCtx(()=>{var D;return[p.createVNode(s,{class:"oc-group-label"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(typeof b.title=="string"?b.title:b.title&&b.title()),1)]),_:2},1024),b.type==="input"?(p.openBlock(),p.createBlock(l,{key:0,value:e.searchData[T],"onUpdate:value":A=>e.searchData[T]=A,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":A=>{b.updateValue?b.updateValue(A.trim(),JSON.parse(JSON.stringify(e.searchData)),P=>e.setValues(P)):e.searchData[T]=A.trim()},clearable:b.clearable??!0},null,8,["value","onUpdate:value","disabled","placeholder","on-update:value","clearable"])):p.createCommentVNode("",!0),b.type==="number"?(p.openBlock(),p.createBlock(u,{key:1,value:e.searchData[T],"onUpdate:value":A=>e.searchData[T]=A,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":A=>{b.updateValue?b.updateValue(A,JSON.parse(JSON.stringify(e.searchData)),P=>e.setValues(P)):e.searchData[T]=A},clearable:b.clearable??!0},p.createSlots({_:2},[b!=null&&b.suffix?{name:"suffix",fn:p.withCtx(()=>[p.createTextVNode(p.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"])):p.createCommentVNode("",!0),b.type==="select"?(p.openBlock(),p.createBlock(c,{key:2,value:e.searchData[T],"onUpdate:value":A=>e.searchData[T]=A,"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":A=>{let P=A,E=A;if(b.multiple){let I=A.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[T]=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"])):p.createCommentVNode("",!0),b.type==="dropdown"?(p.openBlock(),p.createBlock(d,{key:3,width:"trigger",trigger:"manual",style:{padding:"5px"},"show-arrow":!1,show:(D=e.dropDisplay[T])==null?void 0:D.display,"on-clickoutside":()=>{e.dropDisplay[T].display=!1}},{trigger:p.withCtx(()=>[p.createVNode(l,{value:e.searchData[T],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":A=>{e.searchData[T]=A.trim(),e.dropValueChange(T,A.trim(),b)},onClick:A=>e.dropDisplayToggle(T),onFocus:A=>e.dropDisplayToggle(T)},null,8,["value","disabled","placeholder","clearable","on-update:value","onClick","onFocus"])]),default:p.withCtx(()=>{var A;return[p.createVNode(f,{columns:e.columnsPopover,data:((A=e.dropDisplay[T])==null?void 0:A.options)||[],"max-height":300,bordered:!1,"bottom-bordered":!1,"row-props":P=>({style:"cursor: pointer;",onClick:()=>{e.searchData[T]=P.value,e.dropDisplay[T].display=!1}}),size:"small","virtual-scroll":"",class:"oc-popover-table"},null,8,["columns","data","row-props"])]}),_:2},1032,["show","on-clickoutside"])):p.createCommentVNode("",!0),b.type==="cascader"?(p.openBlock(),p.createBlock(h,{key:4,value:e.searchData[T],"onUpdate:value":A=>e.searchData[T]=A,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":A=>{b.updateValue?b.updateValue(A,JSON.parse(JSON.stringify(e.searchData)),P=>e.setValues(P)):e.searchData[T]=A},clearable:b.clearable??!0,"max-tag-count":"responsive",filterable:""},null,8,["value","onUpdate:value","disabled","placeholder","options","check-strategy","multiple","on-update:value","clearable"])):p.createCommentVNode("",!0),b.type==="treeSelect"?(p.openBlock(),p.createBlock(v,{key:5,value:e.searchData[T],"onUpdate:value":A=>e.searchData[T]=A,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":A=>{b.updateValue?b.updateValue(A,JSON.parse(JSON.stringify(e.searchData)),P=>e.setValues(P)):e.searchData[T]=A},clearable:b.clearable??!0,"max-tag-count":"responsive",filterable:""},null,8,["value","onUpdate:value","disabled","placeholder","options","check-strategy","multiple","on-update:value","clearable"])):p.createCommentVNode("",!0),b.type==="timePicker"?(p.openBlock(),p.createBlock(m,{key:6,value:e.searchData[T],"onUpdate:value":A=>e.searchData[T]=A,disabled:b==null?void 0:b.disabled,"onOnUpdate:value":A=>{b.updateValue?b.updateValue(A,JSON.parse(JSON.stringify(e.searchData)),P=>e.setValues(P)):e.searchData[T]=[...A]},format:b==null?void 0:b.format,clearable:b.clearable??!0},null,8,["value","onUpdate:value","disabled","onOnUpdate:value","format","clearable"])):p.createCommentVNode("",!0),b.type==="datePicker"?(p.openBlock(),p.createBlock(g,{key:7,value:e.searchData[T],"onUpdate:value":A=>e.searchData[T]=A,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":A=>{b.updateValue?b.updateValue(A,JSON.parse(JSON.stringify(e.searchData)),P=>e.setValues(P)):e.searchData[T]=A},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"])):p.createCommentVNode("",!0)]}),_:2},1024)):p.createCommentVNode("",!0),b.type==="group"?(p.openBlock(),p.createBlock(y,{key:1},{default:p.withCtx(()=>{var D,A,P,E,I,L,R,B,V,W,q,Q,ue,z,he,ce,ke,He,Ie,Ae,re,ee,ft,Le,xt,Gt,mn,Fu,Br,zu,yn,zi,yo;return[p.createVNode(c,{value:e.searchData[T],"onUpdate:value":Ce=>e.searchData[T]=Ce,options:b.options,"show-checkmark":!1,style:p.normalizeStyle(b.width?typeof b.width=="number"?{width:`${b.width}px`}:{width:b.width}:{}),"on-update:value":Ce=>{if(b.inputTemp=b.input.options[Ce],b.inputTemp.type==="datePicker"){let Be=0;(b.inputTemp.dateType.indexOf("date")>-1||b.inputTemp.dateType.indexOf("quarter")>-1||b.inputTemp.dateType.indexOf("week")>-1)&&(Be=e.getDefaultDate()),b.inputTemp.dateType.indexOf("month")>-1&&(Be=e.getDefaultDate(void 0,void 0,1)),b.inputTemp.dateType.indexOf("year")>-1&&(Be=e.getDefaultDate(void 0,1,1)),b.inputTemp.dateType.indexOf("range")>-1&&(Be=[Be,Be]),e.searchData[b.input.key]=Be}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(Ce,JSON.parse(JSON.stringify(e.searchData)),Be=>e.setValues(Be)):e.searchData[T]=Ce},class:"oc-group-select",placeholder:" "},null,8,["value","onUpdate:value","options","style","on-update:value"]),((D=b.inputTemp)==null?void 0:D.type)==="input"?(p.openBlock(),p.createBlock(l,{key:0,value:e.searchData[b.input.key],"onUpdate:value":Ce=>e.searchData[b.input.key]=Ce,disabled:(A=b.inputTemp)==null?void 0:A.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":Ce=>{var Be;(Be=b.inputTemp)!=null&&Be.updateValue?b.inputTemp.updateValue(Ce.trim(),JSON.parse(JSON.stringify(e.searchData)),Vr=>e.setValues(Vr)):e.searchData[b.input.key]=Ce.trim()},clearable:b.inputTemp.clearable??!0,style:{flex:"1"}},null,8,["value","onUpdate:value","disabled","placeholder","on-update:value","clearable"])):p.createCommentVNode("",!0),((R=b.inputTemp)==null?void 0:R.type)==="number"?(p.openBlock(),p.createBlock(u,{key:1,value:e.searchData[b.input.key],"onUpdate:value":Ce=>e.searchData[b.input.key]=Ce,disabled:(B=b.inputTemp)==null?void 0:B.disabled,placeholder:typeof((V=b.inputTemp)==null?void 0:V.placeholder)=="string"?(W=b.inputTemp)==null?void 0:W.placeholder:((q=b.inputTemp)==null?void 0:q.placeholder)&&((Q=b.inputTemp)==null?void 0:Q.placeholder()),min:(ue=b.inputTemp)==null?void 0:ue.min,max:(z=b.inputTemp)==null?void 0:z.max,step:((he=b.inputTemp)==null?void 0:he.step)||1,"show-button":((ce=b.inputTemp)==null?void 0:ce.showButton)||!0,"update-value-on-input":!1,validator:(ke=b.inputTemp)==null?void 0:ke.validator,"on-update:value":Ce=>{var Be;(Be=b.inputTemp)!=null&&Be.updateValue?b.inputTemp.updateValue(Ce,JSON.parse(JSON.stringify(e.searchData)),Vr=>e.setValues(Vr)):e.searchData[b.input.key]=Ce},clearable:b.inputTemp.clearable??!0,style:{flex:"1"}},p.createSlots({_:2},[(He=b.inputTemp)!=null&&He.suffix?{name:"suffix",fn:p.withCtx(()=>{var Ce;return[p.createTextVNode(p.toDisplayString((Ce=b.inputTemp)==null?void 0:Ce.suffix),1)]}),key:"0"}:void 0]),1032,["value","onUpdate:value","disabled","placeholder","min","max","step","show-button","validator","on-update:value","clearable"])):p.createCommentVNode("",!0),((Ie=b.inputTemp)==null?void 0:Ie.type)==="datePicker"?(p.openBlock(),p.createBlock(g,{key:2,value:e.searchData[b.input.key],"onUpdate:value":Ce=>e.searchData[b.input.key]=Ce,disabled:(Ae=b.inputTemp)==null?void 0:Ae.disabled,placeholder:typeof((re=b.inputTemp)==null?void 0:re.placeholder)=="string"?(ee=b.inputTemp)==null?void 0:ee.placeholder:((ft=b.inputTemp)==null?void 0:ft.placeholder)&&((Le=b.inputTemp)==null?void 0:Le.placeholder()),type:b.inputTemp.dateType,format:(xt=b.inputTemp)==null?void 0:xt.format,"is-date-disabled":(Gt=b.inputTemp)==null?void 0:Gt.isDateDisabled,shortcuts:(mn=b.inputTemp)==null?void 0:mn.shortcuts,"update-value-on-close":b.inputTemp.dateType!=="year","on-update:value":Ce=>{var Be;(Be=b.inputTemp)!=null&&Be.updateValue?b.inputTemp.updateValue(Ce,JSON.parse(JSON.stringify(e.searchData)),Vr=>e.setValues(Vr)):e.searchData[b.input.key]=Ce},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"])):p.createCommentVNode("",!0),((Fu=b.inputTemp)==null?void 0:Fu.type)==="select"?(p.openBlock(),p.createBlock(c,{key:3,value:e.searchData[b.input.key],"onUpdate:value":Ce=>e.searchData[b.input.key]=Ce,"show-checkmark":!1,disabled:(Br=b.inputTemp)==null?void 0:Br.disabled,placeholder:typeof((zu=b.inputTemp)==null?void 0:zu.placeholder)=="string"?(yn=b.inputTemp)==null?void 0:yn.placeholder:((zi=b.inputTemp)==null?void 0:zi.placeholder)&&((yo=b.inputTemp)==null?void 0:yo.placeholder()),options:b.inputTemp.options,multiple:b.inputTemp.multiple,"fallback-option":e.selectFallback(b.inputTemp),"on-update:value":Ce=>{var SC,CC,xC;let Be=Ce,Vr=Ce;if(((SC=b.inputTemp)==null?void 0:SC.type)==="select"&&((CC=b.inputTemp)!=null&&CC.multiple)){let Gi=Ce.filter(AW=>AW!=="");Gi.length===0?(Be=[""],Vr=[]):(Be=Gi,Vr=Gi)}(xC=b.inputTemp)!=null&&xC.updateValue?b.inputTemp.updateValue(Vr,JSON.parse(JSON.stringify(e.searchData)),Gi=>e.setValues(Gi)):e.searchData[b.input.key]=Be},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"])):p.createCommentVNode("",!0)]}),_:2},1024)):p.createCommentVNode("",!0)]),_:2},1032,["span"]))),128))]),_:3},8,["cols","collapsed"]),e.more?(p.openBlock(),p.createElementBlock("div",wH,[p.createVNode(N,{trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(C,{onClick:e.showMore},{icon:p.withCtx(()=>[e.collapsed?(p.openBlock(),p.createBlock(S,{key:0},{default:p.withCtx(()=>[p.createVNode(_)]),_:1})):(p.openBlock(),p.createBlock(S,{key:1},{default:p.withCtx(()=>[p.createVNode(x)]),_:1}))]),_:1},8,["onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.more")),1)]),_:1})])):p.createCommentVNode("",!0)])}const SH=Z(mH,[["render",bH]]),CH=p.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)}}}}),xH={class:"oc-search-bar-pop"},TH={class:"oc-search-bar-pop-plan"},NH={class:"oc-search-bar-pop-action"},DH={class:"oc-search-bar-pop-content"};function AH(e,t,r,n,a,o){return p.withDirectives((p.openBlock(),p.createElementBlock("div",xH,[p.createElementVNode("div",{class:"oc-search-bar-pop-mask",onClick:t[0]||(t[0]=(...i)=>e.close&&e.close(...i))}),p.createElementVNode("div",TH,[p.createElementVNode("div",NH,[p.renderSlot(e.$slots,"action")]),p.createElementVNode("div",DH,[p.renderSlot(e.$slots,"default")])])],512)),[[p.vShow,e.value]])}const MH=Z(CH,[["render",AH]]),kH=p.defineComponent({name:"OcSearchBar",components:{NFlex:O.NFlex,NIcon:O.NIcon,NTooltip:O.NTooltip,NButton:O.NButton,NPopover:O.NPopover,IconArrowDown:Ji,IconReset:tc,IconSearch:qi,IconFilter:ji,OcSearchBarItem:SH,OcSearchBarPop:MH},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=Tt.useRoute(),o=Tt.useRouter(),i=p.ref(),s=p.ref({}),l=p.ref(!1),u=p.ref(!!r.header),c=p.ref(!!r.action),f=(m=!1)=>{if(!e.loading&&i.value){const g=i.value.getValues();if(!m&&g.query&&(g.query.page=1),t("update:loading",!0),t("on-update:value",g),e.cache){const y=a.path,w=Fr(g),_=Fr(y);o.replace(`${y}?cursor=${w}&routerId=${_}`)}}},d=()=>{e.loading||(h(JSON.parse(JSON.stringify(e.defaultValue))),f())},h=(m,g=!1)=>{if(i.value&&i.value.setValues(JSON.parse(JSON.stringify(m))),v(e.data),g)o.replace(a.path);else if(e.cache){const y=a.path,w=Fr(m),_=Fr(y);o.replace(`${y}?cursor=${w}&routerId=${_}`)}},v=m=>{i.value&&i.value.dataFactory(m)};return n({setValues:h,setData:v}),p.onMounted(()=>{setTimeout(()=>{let m=e.value;if(e.cache){const{cursor:g,routerId:y}=a.query;if(g&&y){const w=a.path,_=Co(y),S=Co(g);_===w&&(m=S)}}i.value&&(i.value.setValues(JSON.parse(JSON.stringify(m))),i.value.dataFactory(e.data)),e.autoSubmit&&f(!0)},100)}),{itemRef:i,drawer:l,isSlotHeader:u,isSlotAction:c,commonStore:K,itemData:s,doSearch:f,clearAll:d}}}),EH={key:1,class:"oc-search-bar-popover"},PH={key:0},IH={class:"oc-search-bar-center"};function LH(e,t,r,n,a,o){const i=p.resolveComponent("OcSearchBarItem"),s=p.resolveComponent("IconArrowDown"),l=p.resolveComponent("NIcon"),u=p.resolveComponent("NButton"),c=p.resolveComponent("IconReset"),f=p.resolveComponent("IconSearch"),d=p.resolveComponent("NFlex"),h=p.resolveComponent("OcSearchBarPop"),v=p.resolveComponent("IconFilter"),m=p.resolveComponent("NTooltip");return p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["oc-search-bar",{small:!e.isSlotHeader&&(e.small||e.commonStore.isMobile)}]),onKeyup:t[6]||(t[6]=p.withKeys(g=>e.doSearch(!1),["enter"]))},[(e.small||e.commonStore.isMobile)&&e.isSlotHeader?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(["oc-search-bar-title",e.commonStore.isMobile?"tiny":""])},[p.renderSlot(e.$slots,"header")],2)):p.createCommentVNode("",!0),e.small||e.commonStore.isMobile?(p.openBlock(),p.createElementBlock("div",EH,[p.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:p.withCtx(()=>[p.createVNode(d,{size:15,justify:"space-between",wrap:!1},{default:p.withCtx(()=>[p.createVNode(u,{onClick:t[0]||(t[0]=g=>e.drawer=!1)},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(s)]),_:1})]),_:1}),e.resetButton?(p.openBlock(),p.createBlock(u,{key:0,loading:e.loading,onClick:e.clearAll},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(c)]),_:1})]),_:1},8,["loading","onClick"])):p.createCommentVNode("",!0),e.data&&Object.keys(e.data).length>0?(p.openBlock(),p.createBlock(u,{key:1,loading:e.loading,class:"button-primary",onClick:t[1]||(t[1]=()=>{e.drawer=!1,e.doSearch(!1)})},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(f)]),_:1})]),_:1},8,["loading"])):p.createCommentVNode("",!0)]),_:1}),e.isSlotAction?(p.openBlock(),p.createElementBlock("br",PH)):p.createCommentVNode("",!0),e.isSlotAction?(p.openBlock(),p.createBlock(d,{key:1,size:15,justify:"space-between",class:"oc-search-action"},{default:p.withCtx(()=>[p.renderSlot(e.$slots,"action")]),_:3})):p.createCommentVNode("",!0)]),default:p.withCtx(()=>[p.createVNode(i,{ref:"itemRef",loading:e.loading,small:""},null,8,["loading"])]),_:3},8,["value"]),p.createVNode(u,{onClick:t[4]||(t[4]=g=>e.drawer=!0)},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(v)]),_:1})]),_:1})])):(p.openBlock(),p.createElementBlock(p.Fragment,{key:2},[p.createElementVNode("div",IH,[p.createVNode(i,{ref:"itemRef",loading:e.loading,cols:e.cols},p.createSlots({_:2},[e.isSlotHeader?{name:"header",fn:p.withCtx(()=>[p.renderSlot(e.$slots,"header")]),key:"0"}:void 0]),1032,["loading","cols"]),p.createVNode(d,{size:5,wrap:!1,style:{"padding-left":"15px"}},{default:p.withCtx(()=>[e.data&&Object.keys(e.data).length>0?(p.openBlock(),p.createBlock(m,{key:0,trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(u,{loading:e.loading,class:"button-primary",onClick:t[5]||(t[5]=g=>e.doSearch(!1))},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(f)]),_:1})]),_:1},8,["loading"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.search")),1)]),_:1})):p.createCommentVNode("",!0),e.resetButton?(p.openBlock(),p.createBlock(m,{key:1,trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(u,{loading:e.loading,onClick:e.clearAll},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(c)]),_:1})]),_:1},8,["loading","onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.reset")),1)]),_:1})):p.createCommentVNode("",!0)]),_:1})]),p.createVNode(d,{size:0,wrap:!1,class:"oc-search-action"},{default:p.withCtx(()=>[p.renderSlot(e.$slots,"action")]),_:3})],64))],34)}const jp=Z(kH,[["render",LH]]),OH=p.defineComponent({name:"OcSkeleton",components:{NGrid:O.NGrid,NGi:O.NGi,NSkeleton:O.NSkeleton},props:{cols:{type:Number,default:6},num:{type:Array,default:()=>[[12,1]]}},setup(){return{}}}),RH={class:"com-skeleton"};function BH(e,t,r,n,a,o){const i=p.resolveComponent("NSkeleton"),s=p.resolveComponent("NGi"),l=p.resolveComponent("NGrid");return p.openBlock(),p.createElementBlock("div",RH,[p.createVNode(l,{"x-gap":"15","y-gap":"15",cols:e.cols,"item-responsive":"",responsive:"screen"},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(e.num,(u,c)=>(p.openBlock(),p.createElementBlock(p.Fragment,{key:`skeleton_${c}`},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(e.num[c][0],(f,d)=>(p.openBlock(),p.createBlock(s,{key:`skeleton_${c}_${d}`,span:`${e.cols/2} m:2 l:${e.num[c][1]}`},{default:p.withCtx(()=>[p.createVNode(i)]),_:2},1032,["span"]))),128))],64))),128))]),_:1},8,["cols"])])}const cC=Z(OH,[["render",BH]]),VH=p.defineComponent({name:"OcTable",components:{NDataTable:O.NDataTable,NTooltip:O.NTooltip,NPopover:O.NPopover,NButton:O.NButton,NIcon:O.NIcon,NFlex:O.NFlex,NPopconfirm:O.NPopconfirm,IconFilter:ji,IconNavigation:Ki,IconEye:Xi,IconEyeOff:Zu,IconPin:Ju,IconPinOff:Qu,IconAdd:Wi,IconMailInboxAdd:wo,IconCloudArrowDown:Zi,Draggable:NC,OcSearchBar:jp,OcImporter:Wp},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}){const n=p.ref(),{t:a}=Ht.useI18n(),o=Tt.useRoute(),i=Tt.useRouter(),s=O.useNotification(),l=p.ref(!1),u=p.ref(!1),c=p.ref(!1),f=p.ref([]),d=p.ref([]),h=p.ref([]),v=p.ref({query:{page:1}}),m=p.ref({}),g=p.ref({}),y=p.ref(void 0),w=p.ref(void 0),_=o.path,S=R=>{l.value=!0,t("update:loading",!0),R&&(v.value.query={...v.value.query,...R});const B=So(v.value);e.fetch&&e.fetch(B).then(V=>{const W=bo(V);v.value.query=W.query,h.value=W.records,n.value&&n.value.setValues(v.value),l.value=!1,t("on-update:value",zt(v.value)),t("update:loading",!1)}).catch(()=>{l.value=!1,t("update:loading",!1)})},x=R=>{v.value.query.page=R,Qi(),S()},C=R=>{v.value.query.pageSize=R,v.value.query.page=1,Qi(),S()},N=R=>{R?(v.value.query.columnKey=R.columnKey,v.value.query.order=R.order):(v.value.query.columnKey=null,v.value.query.order=null),S()},b=R=>{R.pin=!R.pin,R.pin?R.fixed="left":R.fixed=R.fixTemp??void 0,L()},T=R=>{R.show=!R.show,L()},M=()=>{const R=[];d.value.forEach(B=>{B.show&&R.push(B)}),f.value=R},D=R=>{if(v.value=R,e.cache){const B=Fr(_),V=Fr(v.value);i.replace(`${_}?cursor=${V}&routerId=${B}`)}S()},A=()=>{u.value=!0,zp({...e.exporter,jobParams:JSON.stringify(v.value)}).then(()=>{s.success({content:()=>a("Notice.success"),duration:3e3}),setTimeout(()=>{u.value=!1},2e3)}).catch(()=>{u.value=!1})},P=(R=!1)=>{let B=zt(e.columns);const V=[],W=[],q={},Q={};let ue={};if(e.filters&&(B=e.filters.map(he=>{const ce=B.find(ke=>ke.key===he.key);return ce?(ce.show=he.show,ce.hide=he.hide,ce.pin=he.pin,ce.fixed=he.fixed,ce):he})),B.forEach(async z=>{var he,ce,ke,He,Ie,Ae,re;if(z.search){if(z.search.title||(z.search.title=z.title),z.search.defaultValue!==void 0)q[z.search.key||z.key]=z.search.defaultValue;else{if(z.search.type==="input"&&(q[z.search.key||z.key]=""),z.search.type==="number"&&(q[z.search.key||z.key]=null),z.search.type==="dropdown"&&(q[z.search.key||z.key]=null),(z.search.type==="cascader"||z.search.type==="treeSelect")&&((he=z.search)!=null&&he.multiple?q[z.search.key||z.key]=[]:q[z.search.key||z.key]=null),z.search.type==="datePicker"){let ee=0;(z.search.dateType.indexOf("date")>-1||z.search.dateType.indexOf("quarter")>-1||z.search.dateType.indexOf("week")>-1)&&(ee=ha()),z.search.dateType.indexOf("month")>-1&&(ee=ha(void 0,void 0,1)),z.search.dateType.indexOf("year")>-1&&(ee=ha(void 0,1,1)),z.search.dateType.indexOf("range")>-1&&(ee=[ee,ee]),q[((ce=z.search)==null?void 0:ce.key)||z.key]=ee}z.search.type==="select"&&(typeof z.search.options=="function"&&await z.search.options().then(ee=>{z.search.options=ee}),(ke=z.search)!=null&&ke.multiple?z.search.fallbackOption?q[((He=z.search)==null?void 0:He.key)||z.key]=[""]:q[((Ie=z.search)==null?void 0:Ie.key)||z.key]=[]:q[((Ae=z.search)==null?void 0:Ae.key)||z.key]=null)}Q[((re=z.search)==null?void 0:re.key)||z.key]=zt(z.search)}if(delete z.search,z.render&&typeof z.render=="string"){const ee=z.render,ft=new Function("rowData","rowIndex","h",ee);z.render=(Le,xt)=>ft(Le,xt,p.h)}V.push(zt(z)),m.value=zt(q),W.push({...z,show:(z==null?void 0:z.show)??!0,pin:!!z.fixed,fixTemp:z.fixed})}),R&&e.cache){const{cursor:z,routerId:he}=o.query;if(z&&he){const ce=Co(he),ke=Co(z);ce===_&&(ue=ke)}}if(e.actions&&e.actions.length>0){const z=zt(e.actions),he={title:()=>a("Common.action"),key:"action",align:"center",fixed:"right",width:e.actionsWidth,resizable:!0,checked:!0,show:!0,hide:!0,render(ce,ke){return Gr(z,ce,ke)}};V.push(he),W.push(he)}f.value=V,g.value=Q,v.value={...v.value,...q,...ue},d.value=W,n.value&&n.value.setValues(JSON.parse(JSON.stringify(v.value))),n.value&&n.value.setData(JSON.parse(JSON.stringify(g.value)))},E=R=>typeof R=="number"?`${R}px`:R,I=()=>{if(e.height){const R=E(e.height);y.value=R,w.value=R;return}e.minHeight&&(y.value=E(e.minHeight)),e.maxHeight&&(w.value=E(e.maxHeight))},L=()=>{const R=f.value.map(B=>({key:B.key,show:B.show,hide:B.hide,fixed:B.fixed}));t("on-update:filter",R)};return r({init:S}),p.onMounted(()=>{P(!0),I()}),p.watch(()=>d.value,()=>{M()},{deep:!0}),p.watch(()=>e.columns,()=>{e.realtime&&P()},{deep:!0}),p.watch(()=>e.actions,()=>{e.realtime&&P()},{deep:!0}),{loading:l,minH:y,maxH:w,searchRef:n,exportLoading:u,tableColumns:f,tableData:h,tableQuery:v,searchDefaultValue:m,searchData:g,baseColumns:d,showImporter:c,pageChange:x,pageSizeChange:C,pageSorter:N,pinChange:b,showChange:T,submit:D,exportData:A,getDefaultDate:ha,handleColumnChange:L}}}),$H={class:"com-card"};function FH(e,t,r,n,a,o){const i=p.resolveComponent("IconAdd"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NTooltip"),c=p.resolveComponent("IconMailInboxAdd"),f=p.resolveComponent("IconCloudArrowDown"),d=p.resolveComponent("NPopconfirm"),h=p.resolveComponent("IconFilter"),v=p.resolveComponent("IconNavigation"),m=p.resolveComponent("IconPin"),g=p.resolveComponent("IconPinOff"),y=p.resolveComponent("IconEye"),w=p.resolveComponent("IconEyeOff"),_=p.resolveComponent("Draggable"),S=p.resolveComponent("NPopover"),x=p.resolveComponent("OcSearchBar"),C=p.resolveComponent("NDataTable"),N=p.resolveComponent("OcImporter");return p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createVNode(x,{ref:"searchRef",value:e.tableQuery,defaultValue:e.searchDefaultValue,data:e.searchData,loading:e.loading,cache:!1,autoSubmit:e.autoSubmit,resetButton:e.resetButton,"onOnUpdate:value":e.submit},{action:p.withCtx(()=>[e.addFn?(p.openBlock(),p.createBlock(u,{key:0,trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{onClick:e.addFn},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(i)]),_:1})]),_:1},8,["onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.add")),1)]),_:1})):p.createCommentVNode("",!0),e.importer?(p.openBlock(),p.createBlock(u,{key:1,trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{onClick:t[0]||(t[0]=b=>e.showImporter=!0)},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(c)]),_:1})]),_:1})]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.importer.title")),1)]),_:1})):p.createCommentVNode("",!0),e.exporter?(p.openBlock(),p.createBlock(u,{key:2,trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(d,{"positive-text":e.$t("Common.export"),placement:"bottom-end",onPositiveClick:e.exportData},{trigger:p.withCtx(()=>[p.createVNode(l,{loading:e.exportLoading},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(f)]),_:1})]),_:1},8,["loading"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.export"))+"? ",1)]),_:1},8,["positive-text","onPositiveClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.export")),1)]),_:1})):p.createCommentVNode("",!0),e.filterButton?(p.openBlock(),p.createBlock(u,{key:3,trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(S,{placement:"bottom-end",trigger:"click","show-arrow":!1},{trigger:p.withCtx(()=>[p.createVNode(l,null,{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(h)]),_:1})]),_:1})]),default:p.withCtx(()=>[p.createVNode(_,p.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:p.withCtx(({element:b})=>[b.hide?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("div",{key:b.key,class:"oc-table-sort"},[p.createVNode(l,{quaternary:"",class:"oc-drag-handle"},{icon:p.withCtx(()=>[p.createVNode(s,{size:"24"},{default:p.withCtx(()=>[p.createVNode(v)]),_:1})]),_:1}),p.createVNode(l,{quaternary:"",class:"oc-table-sort-title"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(typeof b.title=="string"?b.title:b.title&&b.title()),1)]),_:2},1024),e.pinButton?(p.openBlock(),p.createBlock(l,{key:0,type:"tertiary",onClick:T=>e.pinChange(b),quaternary:""},{icon:p.withCtx(()=>[p.createVNode(s,{size:"24"},{default:p.withCtx(()=>[b.pin?(p.openBlock(),p.createBlock(m,{key:0})):(p.openBlock(),p.createBlock(g,{key:1}))]),_:2},1024)]),_:2},1032,["onClick"])):p.createCommentVNode("",!0),p.createVNode(l,{type:"tertiary",onClick:T=>e.showChange(b),quaternary:""},{icon:p.withCtx(()=>[p.createVNode(s,{size:"24"},{default:p.withCtx(()=>[b.show?(p.openBlock(),p.createBlock(y,{key:0})):(p.openBlock(),p.createBlock(w,{key:1}))]),_:2},1024)]),_:2},1032,["onClick"])]))]),_:1},16,["modelValue","onEnd"])]),_:1})]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.filter")),1)]),_:1})):p.createCommentVNode("",!0),p.renderSlot(e.$slots,"action")]),_:3},8,["value","defaultValue","data","loading","autoSubmit","resetButton","onOnUpdate:value"]),p.createElementVNode("div",$H,[p.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?(p.openBlock(),p.createBlock(N,{key:0,show:e.showImporter,"onUpdate:show":t[2]||(t[2]=b=>e.showImporter=b),data:e.importer},null,8,["show","data"])):p.createCommentVNode("",!0)],64)}const fC=Z(VH,[["render",FH]]),zH=p.defineComponent({name:"OcWorkflowAdd",components:{IconAdd:Wi,NButton:O.NButton,NIcon:O.NIcon,NPopover:O.NPopover},emits:["update:add"],setup(e,{emit:t}){const r=p.ref(!1);return{showPopover:r,submit:a=>{r.value=!1,t("update:add",a)}}}});function GH(e,t,r,n,a,o){const i=p.resolveComponent("IconAdd"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NFlex"),c=p.resolveComponent("NPopover");return p.openBlock(),p.createBlock(c,{trigger:"manual",show:e.showPopover},{trigger:p.withCtx(()=>[p.createVNode(l,{type:"primary",onClick:t[0]||(t[0]=f=>e.showPopover=!0)},{default:p.withCtx(()=>[p.createVNode(s,{size:"18"},{default:p.withCtx(()=>[p.createVNode(i)]),_:1})]),_:1})]),default:p.withCtx(()=>[p.createVNode(u,null,{default:p.withCtx(()=>[p.createVNode(l,{type:"primary",onClick:t[1]||(t[1]=f=>e.submit(2))},{default:p.withCtx(()=>[p.createTextVNode("节点")]),_:1}),p.createVNode(l,{type:"primary",onClick:t[2]||(t[2]=f=>e.submit(1))},{default:p.withCtx(()=>[p.createTextVNode("分支")]),_:1})]),_:1})]),_:1},8,["show"])}const hC=Z(zH,[["render",GH]]),HH=p.defineComponent({name:"OcWorkflowCard",components:{NFlex:O.NFlex,OcWorkflowAdd:hC,IconDismiss:$r},props:{data:{type:Object,default:()=>({})}},emits:["update:add","update:delete"],setup(e,{emit:t}){return{addOne:a=>{t("update:add",a)},doDelete:()=>{t("update:delete",!0)}}}}),WH={class:"oc-workflow-node"},UH={class:"oc-workflow-node-ctx"},YH=p.createElementVNode("div",{class:"oc-workflow-node-desc"},"功能",-1),qH={class:"oc-workflow-node-more"};function jH(e,t,r,n,a,o){const i=p.resolveComponent("IconDismiss"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NFlex"),c=p.resolveComponent("OcWorkflowAdd");return p.openBlock(),p.createElementBlock("div",WH,[p.createElementVNode("div",UH,[p.createVNode(u,{justify:"space-between",class:"oc-workflow-node-title"},{default:p.withCtx(()=>[p.createElementVNode("div",null,p.toDisplayString(e.data.title),1),e.data.type===1||e.data.type===2?(p.openBlock(),p.createBlock(l,{key:0,onClick:e.doDelete},{default:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(i)]),_:1})]),_:1},8,["onClick"])):p.createCommentVNode("",!0)]),_:1}),YH]),p.createElementVNode("div",qH,[p.createVNode(c,{"onUpdate:add":t[0]||(t[0]=f=>{e.addOne(f)})})])])}const XH=Z(HH,[["render",jH]]),ZH=p.defineComponent({name:"OcWorkflowNode",components:{NButton:O.NButton,OcWorkflowAdd:hC,OcWorkflowCard:XH},props:{data:{type:Array,default:()=>[]}},setup(e){function t(c){const f=String(Date.now());return{title:"IF",type:1,key:f,parentKey:String(c),children:[{title:"条件1",type:1,key:`${f}1`,parentKey:f,children:[]},{title:"条件2",type:1,key:`${f}2`,parentKey:f,children:[]}]}}function r(c){const f=String(Date.now());return{title:`功能${Math.floor(Math.random()*101)}`,type:2,key:f,parentKey:String(c),children:[]}}return{addStartOne:c=>{e.data.splice(1,0,c===1?t(""):r(""))},addNodeOne:(c,f)=>{if(c.parentKey)e.data.push(f===1?t(c.parentKey):r(c.parentKey));else{const d=e.data.indexOf(c);e.data.splice(d+1,0,f===1?t(""):r(""))}},addCondition:c=>{const f=String(Date.now());c.children.push({title:`条件${c.children.length+1}`,type:1,key:f,parentKey:c.key,children:[]})},addConditionBottom:(c,f)=>{if(c.parentKey)e.data.push(f===1?t(c.parentKey):r(c.parentKey));else{const d=e.data.indexOf(c);e.data.splice(d+1,0,f===1?t(""):r(""))}},addConditionSide:(c,f)=>{c.children.length===0?c.children.push(f===1?t(c.parentKey):r(c.parentKey)):c.children.unshift(f===1?t(c.parentKey):r(c.parentKey))},deleteNodeOne:c=>{e.data.splice(c,1)},deleteConditionSide:(c,f)=>{if(c.children.length===2){const d=e.data.indexOf(c);e.data.splice(d,1)}else c.children.splice(f,1)}}}}),KH={key:2},JH={class:"oc-workflow-node-branch-add"},QH={class:"oc-workflow-branch-ctx"},eW={class:"oc-workflow-node-branch-add-bottom"},tW={key:3,class:"oc-workflow-node-end"},rW=[p.createElementVNode("div",{class:"oc-workflow-node-title-end"},"流程结束",-1)];function nW(e,t,r,n,a,o){const i=p.resolveComponent("OcWorkflowCard"),s=p.resolveComponent("NButton"),l=p.resolveComponent("OcWorkflowNode"),u=p.resolveComponent("OcWorkflowAdd");return p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(e.data,(c,f)=>(p.openBlock(),p.createElementBlock(p.Fragment,{key:c.key},[c.type===0?(p.openBlock(),p.createBlock(i,{data:c,key:f,"onUpdate:add":e.addStartOne},null,8,["data","onUpdate:add"])):p.createCommentVNode("",!0),c.type===2?(p.openBlock(),p.createBlock(i,{data:c,key:f,class:"arrow","onUpdate:add":d=>{e.addNodeOne(c,d)},"onUpdate:delete":d=>e.deleteNodeOne(f)},null,8,["data","onUpdate:add","onUpdate:delete"])):p.createCommentVNode("",!0),c.type===1?(p.openBlock(),p.createElementBlock("div",KH,[(p.openBlock(),p.createElementBlock("div",{class:"oc-workflow-branch",key:f},[p.createElementVNode("div",JH,[p.createVNode(s,{type:"success",onClick:d=>e.addCondition(c)},{default:p.withCtx(()=>[p.createTextVNode("添加条件")]),_:2},1032,["onClick"])]),p.createElementVNode("div",QH,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(c.children,(d,h)=>(p.openBlock(),p.createElementBlock("div",{key:`children-${h}`},[p.createVNode(i,{data:d,"onUpdate:add":v=>{e.addConditionSide(d,v)},"onUpdate:delete":v=>e.deleteConditionSide(c,h)},null,8,["data","onUpdate:add","onUpdate:delete"]),p.createVNode(l,{data:d.children},null,8,["data"])]))),128))])])),p.createElementVNode("div",eW,[p.createVNode(u,{"onUpdate:add":d=>{e.addConditionBottom(c,d)}},null,8,["onUpdate:add"])])])):p.createCommentVNode("",!0),c.type===99?(p.openBlock(),p.createElementBlock("div",tW,rW)):p.createCommentVNode("",!0)],64))),128)}const aW=Z(ZH,[["render",nW]]),oW=p.defineComponent({name:"OcWorkflow",components:{OcWorkflowNode:aW,NSlider:O.NSlider,NSelect:O.NSelect},props:{data:{type:Array,default:()=>[{title:"流程开始",type:0,key:"1",parentKey:"",children:[]},{title:"流程结束",type:99,key:"2",parentKey:"",children:[]}]}},setup(){const e=p.ref(1),t=p.ref(100),r=p.ref([{label:"50%",value:50},{label:"80%",value:80},{label:"100%",value:100},{label:"120%",value:120},{label:"150%",value:150}]);return{scaleShow:e,scaleFilter:t,scaleOption:r,scaleHandle:i=>{t.value=i,e.value=i/100},formatTooltip:i=>`${i}%`,renderSelectLabel:i=>p.h("div",{},{default:()=>`${i.value}%`})}}}),iW={class:"oc-workflow"},sW={class:"oc-workflow-tools"},lW={class:"oc-workflow-ctx"},uW={class:"oc-workflow-main"};function cW(e,t,r,n,a,o){const i=p.resolveComponent("NSelect"),s=p.resolveComponent("NSlider"),l=p.resolveComponent("OcWorkflowNode");return p.openBlock(),p.createElementBlock("div",iW,[p.createElementVNode("div",sW,[p.createVNode(i,{value:e.scaleFilter,"onUpdate:value":t[0]||(t[0]=u=>e.scaleFilter=u),options:e.scaleOption,"render-label":e.renderSelectLabel,"on-update:value":e.scaleHandle,style:{width:"100px"}},null,8,["value","options","render-label","on-update:value"]),p.createVNode(s,{value:e.scaleFilter,"onUpdate:value":t[1]||(t[1]=u=>e.scaleFilter=u),min:50,max:150,step:10,style:{width:"100px"},"on-update:value":e.scaleHandle,"format-tooltip":e.formatTooltip,class:"oc-workflow-slider"},null,8,["value","on-update:value","format-tooltip"])]),p.createElementVNode("div",lW,[p.createElementVNode("div",uW,[p.createElementVNode("div",{class:"oc-workflow-warp",style:p.normalizeStyle({transform:`scale(${e.scaleShow})`})},[p.createVNode(l,{data:e.data},null,8,["data"])],4)])])])}const dC=Z(oW,[["render",cW]]),pC=Object.freeze(Object.defineProperty({__proto__:null,IconAdd:Wi,IconAlert:Wu,IconArrowClockwise:fa,IconArrowDown:Ji,IconArrowSquareDown:qu,IconArrowUp:ec,IconCalendarArrowDown:_o,IconChevronLeft:Yu,IconClear:Uu,IconCloudArrowDown:Zi,IconDelete:Xu,IconDismiss:$r,IconDrafts:Ku,IconEye:Xi,IconEyeOff:Zu,IconFilter:ji,IconFullScreenMaximize:Jp,IconGridDots:ju,IconMailInboxAdd:wo,IconNavigation:Ki,IconPin:Ju,IconPinOff:Qu,IconReset:tc,IconSearch:qi,IconUser:rc,IconWeatherMoon:Ui,IconWeatherSunny:Yi,OcActionButton:Kp,OcAuth:uv,OcBack:cv,OcCircle:fv,OcEcharts:Kb,OcError:Jb,OcFooter:Qb,OcForm:qS,OcHeader:XS,OcImporter:Wp,OcLogin:KS,OcLogo:JS,OcMain:tC,OcMy:rC,OcNumberRoll:Up,OcReport:nC,OcScan:uC,OcSearchBar:jp,OcSkeleton:cC,OcTable:fC,OcWorkflow:dC,commonStore:K,fnClearUser:Vu,fnDownload:zp,fnGetUser:Bu,fnRenderAction:Gr,fnSetLang:va,fnSetTheme:xo,fnSetUser:Gp,fnUserLogout:Hp,i18n:zr,userStore:F},Symbol.toStringTag,{value:"Module"}));let Xp=3840,Zp=2160;const vC=p.reactive({scale:1});function fW(e,t){Xp=e,Zp=t}function gC(){let e=1;const t=window.innerWidth,r=window.innerHeight,n=Xp,a=Zp,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}vC.scale=e}function hW(){const e=lC(gC,200);return e(),window.addEventListener("resize",e),()=>{Xp=3840,Zp=2160,window.removeEventListener("resize",e)}}const dW=e=>!!(F.kind===-1||F.kind===99||F.iot_menu_authorization.includes(e)),pW=e=>F.platform_tdm?F.kind===-1||F.kind===99||e==="home"?!0:F.tdm_menu_authorization.includes(e):!1,vW=e=>F.platform_qms?F.kind===-1||F.kind===99||e==="home"?!0:F.qms_menu_authorization.includes(e):!1,gW=e=>F.platform_twin?(F.kind===-1||F.kind===99||e==="home",!0):!1,mW=e=>!!(F.kind===-1||F.kind===99||F.maintain_menu_authorization.includes(e)),yW=e=>!!(F.kind===-1||F.kind===99||F.order_menu_authorization.includes(e)),_W="2.0.111";let Fi="";const be=navigator.userAgent.toLocaleUpperCase(),wW=()=>{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 c=/OS [\d_]+/.exec(be);return`iPhone ${c?c[0].split(" ")[1].replace(/_/g,"."):""}`}if(s.test(be)){const c=/OS [\d_]+/.exec(be);return`iPad${c?c[0].split(" ")[1].replace(/_/g,"."):""}`}if(l.test(be)){const c=/ [\d_]+/.exec(be);return`MAC ${c?c[0].replace(/_/g,".").replace(/ /g,""):""}`}return"Other Platform"},bW=()=>{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 mC(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 SW(e,t,r,n=!1){e.addEventListener(t,r,n)}function CW(){if(!("XMLHttpRequest"in window))return;const e=XMLHttpRequest.prototype;mC(e,"open",t=>function(...r){this.xhr={method:r[0].toUpperCase(),url:r[1],startTime:Date.now(),type:"xhr"},t.apply(this,r)}),mC(e,"send",t=>function(...r){const{url:n}=this.xhr;this.ontimeout=function(){$u(3,n,"Network Timeout")},SW(this,"loadend",function(){try{const a=JSON.parse(this.response);(this.status===500||this.status===405)&&$u(3,n,`${r[0]}-${this.status}-${this.response}`)}catch{}}),t.apply(this,r)})}function xW(e,t){Fi=typeof t=="string"?t:Fi,!(!t||!Fi)&&(CW(),window.addEventListener("error",function(r){$u(1,window.location.href,r)}),window.addEventListener("unhandledrejection",function(r){r.preventDefault()}),e.config.errorHandler=r=>{$u(2,window.location.href,r)})}const $u=(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:bW(),platform:wW(),system:K.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:be}},a=Fr(n);if(window.navigator.sendBeacon)window.navigator.sendBeacon(Fi,a);else{const o=document.body;let i=new Image;i.src=Fi+"?data="+a,i.onload=i.onerror=function(){o.removeChild(i),i=null},o.append(i)}}catch{}};let yC;async function _C(){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 TW(){const e=await _C();yC!==e&&zx(!0)}async function NW(){yC=await _C(),window.versionMonitor&&clearInterval(window.versionMonitor),window.versionMonitor=setInterval(()=>{TW()},60*1e3)}function wC({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:c=!1,local:f="zh-CN"}=o,d=dt("theme",!1),h=dt("lang",f);Fx(i),$x(c),va(h),xo(d),zr.global.locale.value=h,l&&NW(),s&&xW(a,s)}}return{version:_W,install:n}}const bC=wC({components:Object.keys(pC).map(e=>pC[e])}),DW=bC.install;$.CUSTOM=ov,$.FILE=cc,$.GET=av,$.IconAdd=Wi,$.IconAlert=Wu,$.IconArrowClockwise=fa,$.IconArrowDown=Ji,$.IconArrowSquareDown=qu,$.IconArrowUp=ec,$.IconCalendarArrowDown=_o,$.IconChevronLeft=Yu,$.IconClear=Uu,$.IconCloudArrowDown=Zi,$.IconDelete=Xu,$.IconDismiss=$r,$.IconDrafts=Ku,$.IconEye=Xi,$.IconEyeOff=Zu,$.IconFilter=ji,$.IconFullScreenMaximize=Jp,$.IconGridDots=ju,$.IconMailInboxAdd=wo,$.IconNavigation=Ki,$.IconPin=Ju,$.IconPinOff=Qu,$.IconReset=tc,$.IconSearch=qi,$.IconUser=rc,$.IconWeatherMoon=Ui,$.IconWeatherSunny=Yi,$.OcActionButton=Kp,$.OcAuth=uv,$.OcBack=cv,$.OcCircle=fv,$.OcEcharts=Kb,$.OcError=Jb,$.OcFooter=Qb,$.OcForm=qS,$.OcHeader=XS,$.OcImporter=Wp,$.OcLogin=KS,$.OcLogo=JS,$.OcMain=tC,$.OcMy=rC,$.OcNumberRoll=Up,$.OcReport=nC,$.OcScan=uC,$.OcSearchBar=jp,$.OcSkeleton=cC,$.OcTable=fC,$.OcWorkflow=dC,$.POST=nt,$.commonStore=K,$.create=wC,$.darkTheme=eC,$.default=bC,$.fnCancelFetch=nv,$.fnCheckDashRole=gW,$.fnCheckIoTRole=dW,$.fnCheckMaintainRole=mW,$.fnCheckOrderRole=yW,$.fnCheckQMSRole=vW,$.fnCheckTDMRole=pW,$.fnClearUser=Vu,$.fnComputedScale=gC,$.fnDecodeCursor=Co,$.fnDelStorage=da,$.fnDeleteLoad=tv,$.fnDownload=zp,$.fnEncodeCursor=Fr,$.fnFormatTime=_r,$.fnFormatUnits=Ix,$.fnFullScreen=Px,$.fnGetStorage=dt,$.fnGetUser=Bu,$.fnListenerScale=hW,$.fnPageModel2Naive=bo,$.fnPageNaive2Model=So,$.fnRenderAction=Gr,$.fnScrollTop=Qi,$.fnSetLang=va,$.fnSetNormalWidthAndHeight=fW,$.fnSetStorage=ht,$.fnSetTheme=xo,$.fnSetUser=Gp,$.fnThrottle=Ex,$.fnUserLogout=Hp,$.getDefaultDate=ha,$.i18n=zr,$.install=DW,$.lightTheme=QS,$.scaleStore=vC,$.useDebounceFn=qp,$.useLocalStorage=oH,$.useQuery=iH,$.useThrottleFn=aH,$.userStore=F,Object.defineProperties($,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
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=ge(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,v=r.positionDefault,m=Lo([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),g=m.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(c,f),_=new Lh;y.marker=_.makeTooltipMarker("item",qn(y.color),h);var w=g0(u.formatTooltip(c,!1,f)),S=m.get("order"),T=m.get("valueFormatter"),C=w.frag,x=C?A0(T?G({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,x,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=ge(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=Lo(u,this._tooltipModel,f?{position:f}:null),h=d.get("content"),v=Math.random()+"",m=new Lh;this._showOrMove(d,function(){var g=fe(d.get("formatterParams")||{});this._showTooltipContent(d,h,g,v,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,v=this._getNearestPoint([o,s],a,r.get("trigger"),r.get("borderColor")),m=v.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=pl(y.axisValue,h,g)),h=Ry(h,a,!0)}else if(ie(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"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),ie(n)&&(n=n([a,i],s,o.el,v,{viewSize:[u,c],contentSize:f.slice()})),U(n))a=Ne(n[0],u),i=Ne(n[1],c);else if(J(n)){var m=n;m.width=f[0],m.height=f[1];var g=jn(m,{width:u,height:c});a=g.x,i=g.y,d=null,h=null}else if(X(n)&&l){var y=eB(n,v,f,r.get("borderWidth"));a=y[0],i=y[1]}else{var y=JR(a,i,o,u,c,d?null:20,h?null:20);a=y[0],i=y[1]}if(d&&(a-=Ib(d)?f[0]/2:d==="right"?f[0]:0),h&&(i-=Ib(h)?f[1]/2:h==="bottom"?f[1]:0),Tb(r)){var y=QR(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&&M(a,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&M(u,function(d,h){var v=f[h]||{},m=d.seriesDataIndices||[],g=v.seriesDataIndices||[];o=o&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&m.length===g.length,o&&M(m,function(y,_){var w=g[_];o=o&&y.seriesIndex===w.seriesIndex&&y.dataIndex===w.dataIndex}),i&&M(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()||(Ml(this,"_updatePosition"),this._tooltipContent.dispose(),ip("itemTooltip",n))},t.type="tooltip",t}(Jt);function Lo(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 Pb(e,t){return e.dispatchAction||te(t.dispatchAction,t)}function JR(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 QR(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 eB(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 Ib(e){return e==="center"||e==="middle"}function tB(e,t,r){var n=mf(e).queryOptionMap,a=n.keys()[0];if(!(!a||a==="series")){var i=zi(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=ge(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:a,componentIndex:o.componentIndex,el:l}}}}const rB=KR;function nB(e){vr(gb),e.registerComponentModel(BR),e.registerComponentView(rB),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},st),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},st)}var aB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(xe),iB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,a){if(this.group.removeAll(),!!r.get("show")){var i=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=oe(r.get("textBaseline"),r.get("textVerticalAlign")),c=new Ue({style:Zt(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),h=new Ue({style:Zt(s,{text:d,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),m=r.get("sublink"),g=r.get("triggerEvent",!0);c.silent=!v&&!g,h.silent=!m&&!g,v&&c.on("click",function(){By(v,"_"+r.get("target"))}),m&&h.on("click",function(){By(m,"_"+r.get("subtarget"))}),ge(c).eventData=ge(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=jn(_,{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 x=new Pe({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(x)}},t.type="title",t}(Jt);function oB(e){e.registerComponentModel(aB),e.registerComponentView(iB)}function sB(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 _u(e){Is(e,"label",["show"])}var wu=De(),Lb=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.createdBySelf=!1,r}return t.prototype.init=function(r,n,a){if(process.env.NODE_ENV!=="production"&&this.type==="marker")throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(r,a),this._mergeOption(r,a,!1,!0)},t.prototype.isAnimationEnabled=function(){if(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=wu(s)[o];if(!l||!l.data){wu(s)[o]=null;return}u?u._mergeOption(l,n,!0):(i&&_u(l),M(l.data,function(c){c instanceof Array?(_u(c[0]),_u(c[1])):_u(c)}),u=this.createMarkerModelFromSeries(l,this,n),G(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),wu(s)[o]=u},this)},t.prototype.formatTooltip=function(r,n,a){var i=this.getData(),o=this.getRawValue(r),s=i.getName(r);return Jn("section",{header:this.name,blocks:[Jn("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 wu(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(xe);Wt(Lb,v0.prototype);const bu=Lb;function lB(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function uB(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function Su(e,t,r,n,a,i){var o=[],s=na(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=up(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=or(t.get(n,c));return d=Math.min(d,20),d>=0&&(o[i]=+o[i].toFixed(d)),[o,f]}var lp={min:Se(Su,"min"),max:Se(Su,"max"),average:Se(Su,"average"),median:Se(Su,"median")};function Ob(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,a=n&&n.dimensions;if(!uB(t)&&!U(t.coord)&&U(a)){var i=Rb(t,r,n,e);if(t=fe(t),t.type&&lp[t.type]&&i.baseAxis&&i.valueAxis){var o=de(a,i.baseAxis.dim),s=de(a,i.valueAxis.dim),l=lp[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++)lp[u[c]]&&(u[c]=up(r,r.mapDimension(a[c]),u[c]));return t}}function Rb(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(cB(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 cB(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function Bb(e,t){return e&&e.containData&&t.coord&&!lB(t)?e.containData(t.coord):!0}function fB(e,t){return e?function(r,n,a,i){var o=i<2?r.coord&&r.coord[i]:r.value;return Qa(o,t[i])}:function(r,n,a,i){return Qa(r.value,t[i])}}function up(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 cp=De(),hB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=se()},t.prototype.render=function(r,n,a){var i=this,o=this.markerGroupMap;o.each(function(s){cp(s).keep=!1}),n.eachSeries(function(s){var l=bu.getMarkerModelFromSeries(s,i.type);l&&i.renderSeries(s,l,n,a)}),o.each(function(s){!cp(s).keep&&i.group.remove(s.group)})},t.prototype.markKeep=function(r){cp(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var a=this;M(r,function(i){var o=bu.getMarkerModelFromSeries(i,a.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?Cm(l):$f(l))})}})},t.type="marker",t}(Jt);const dB=hB;var pB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,a){return new t(r,n,a)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(bu);const vB=pB;var Cu=De(),gB=function(e,t,r,n){var a=e.getData(),i;if(U(n))i=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=Wr(n.yAxis,n.xAxis);else{var u=Rb(n,a,t,e);s=u.valueAxis;var c=Z_(a,u.valueDataDim);l=up(a,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=fe(n),v={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,v.coord[d]=1/0;var m=r.get("precision");m>=0&&Te(l)&&(l=+l.toFixed(Math.min(m,20))),h.coord[f]=v.coord[f]=l,i=[h,v,{type:o,valueIndex:n.valueIndex,value:l}]}else process.env.NODE_ENV!=="production"&&Hr("Invalid markLine data."),i=[]}var g=[Ob(e,i[0]),Ob(e,i[1]),G({},i[2])];return g[2].type=g[2].type||null,ve(g[2],g[0]),ve(g[2],g[1]),g};function Tu(e){return!isNaN(e)&&!isFinite(e)}function Vb(e,t,r,n){var a=1-e,i=n.dimensions[e];return Tu(t[a])&&Tu(r[a])&&t[e]===r[e]&&n.getAxis(i).containData(t[e])}function mB(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(Vb(1,r,n,e)||Vb(0,r,n,e)))return!0}return Bb(e,t[0])&&Bb(e,t[1])}function fp(e,t,r,n,a){var i=n.coordinateSystem,o=e.getItemModel(t),s,l=Ne(o.get("x"),a.getWidth()),u=Ne(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(ou(i,"cartesian2d")){var h=i.getAxis("x"),v=i.getAxis("y"),c=i.dimensions;Tu(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):Tu(e.get(c[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 yB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,a){n.eachSeries(function(i){var o=bu.getMarkerModelFromSeries(i,"markLine");if(o){var s=o.getData(),l=Cu(o).from,u=Cu(o).to;l.each(function(c){fp(l,c,!0,i,a),fp(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 sO);this.group.add(c.group);var f=_B(o,r,n),d=f.from,h=f.to,v=f.line;Cu(n).from=d,Cu(n).to=h,n.setData(v);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)}),v.each(function(S){var T=v.getItemModel(S).getModel("lineStyle").getLineStyle();v.setItemLayout(S,[d.getItemLayout(S),h.getItemLayout(S)]),T.stroke==null&&(T.stroke=d.getItemVisual(S,"style").fill),v.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(v),f.line.eachItemGraphicEl(function(S){ge(S).dataModel=n,S.traverse(function(T){ge(T).dataModel=n})});function w(S,T,C){var x=S.getItemModel(T);fp(S,T,C,r,i);var b=x.getModel("itemStyle").getItemStyle();b.fill==null&&(b.fill=K0(l,"color")),S.setItemVisual(T,{symbolKeepAspect:x.get("symbolKeepAspect"),symbolOffset:oe(x.get("symbolOffset",!0),_[C?0:1]),symbolRotate:oe(x.get("symbolRotate",!0),y[C?0:1]),symbolSize:oe(x.get("symbolSize"),g[C?0:1]),symbol:oe(x.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}(dB);function _B(e,t,r){var n;e?n=j(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return G(G({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var a=new xo(n,r),i=new xo(n,r),o=new xo([],r),s=j(r.get("data"),Se(gB,t,e,r));e&&(s=Ye(s,Se(mB,e)));var l=fB(!!e,n);return a.initData(j(s,function(u){return u[0]}),null,l),i.initData(j(s,function(u){return u[1]}),null,l),o.initData(j(s,function(u){return u[2]})),o.hasItemOption=!0,{from:a,to:i,line:o}}const wB=yB;function bB(e){e.registerComponentModel(vB),e.registerComponentView(wB),e.registerPreprocessor(function(t){sB(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var SB=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"])}},CB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,a){this.mergeDefaultAndTheme(r,a),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,a=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),U(n)&&M(n,function(i,o){X(i)&&(i={type:i}),n[o]=ve(i,SB(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&&vf(l)&&n.push(l.name)}),this._availableNames=a;var i=this.get("data")||n,o=se(),s=j(i,function(l){return(X(l)||Te(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new et(l,this,this.ecModel))},this);this._data=Ye(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;M(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;M(r,function(a){n[a.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;M(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}(xe);const hp=CB;var ci=Se,dp=M,Nu=Oe,TB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new Nu),this.group.add(this._selectorGroup=new Nu),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=jn(c,f,d),v=this.layoutInner(r,o,h,i,l,u),m=jn(pe({width:v.width,height:v.height},c),f,d);this.group.x=m.x-v.x,this.group.y=m.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=OR(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,i,o,s,l){var u=this.getContentGroup(),c=se(),f=n.get("selectedMode"),d=[];a.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),dp(n.getData(),function(h,v){var m=h.get("name");if(!this.newlineDisabled&&(m===""||m===`
|
|
44
|
+
`)){var g=new Nu;g.newline=!0,u.add(g);return}var y=a.getSeriesByName(m)[0];if(!c.get(m)){if(y){var _=y.getData(),w=_.getVisual("legendLineStyle")||{},S=_.getVisual("legendIcon"),T=_.getVisual("style"),C=this._createItem(y,m,v,h,n,r,w,T,S,f,i);C.on("click",ci($b,m,null,i,d)).on("mouseover",ci(pp,y.name,null,i,d)).on("mouseout",ci(vp,y.name,null,i,d)),a.ssr&&C.eachChild(function(x){var b=ge(x);b.seriesIndex=y.seriesIndex,b.dataIndex=v,b.ssrType="legend"}),c.set(m,!0)}else a.eachRawSeries(function(x){if(!c.get(m)&&x.legendVisualProvider){var b=x.legendVisualProvider;if(!b.containName(m))return;var N=b.indexOfName(m),A=b.getItemVisual(N,"style"),D=b.getItemVisual(N,"legendIcon"),k=Cr(A.fill);k&&k[3]===0&&(k[3]=.2,A=G(G({},A),{fill:ys(k,"rgba")}));var P=this._createItem(x,m,v,h,n,r,{},A,D,f,i);P.on("click",ci($b,null,m,i,d)).on("mouseover",ci(pp,null,m,i,d)).on("mouseout",ci(vp,null,m,i,d)),a.ssr&&P.eachChild(function(E){var I=ge(E);I.seriesIndex=x.seriesIndex,I.dataIndex=v,I.ssrType="legend"}),c.set(m,!0)}},this);process.env.NODE_ENV!=="production"&&(c.get(m)||console.warn(m+" series not exists. Legend data should be same with series name or data name."))}},this),o&&this._createSelector(o,n,i,s,l)},t.prototype._createSelector=function(r,n,a,i,o){var s=this.getSelectorGroup();dp(r,function(u){var c=u.type,f=new Ue({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){a.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Wa(f,{normal:d,emphasis:h},{defaultText:u.title}),qs(f)})},t.prototype._createItem=function(r,n,a,i,o,s,l,u,c,f,d){var h=r.visualDrawType,v=o.get("itemWidth"),m=o.get("itemHeight"),g=o.isSelected(n),y=i.get("symbolRotate"),_=i.get("symbolKeepAspect"),w=i.get("icon");c=w||c||"roundRect";var S=NB(c,i,l,u,h,g,d),T=new Nu,C=i.getModel("textStyle");if(ie(r.getLegendIcon)&&(!w||w==="inherit"))T.add(r.getLegendIcon({itemWidth:v,itemHeight:m,icon:c,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:_}));else{var x=w==="inherit"&&r.getData().getVisual("symbol")?y==="inherit"?r.getData().getVisual("symbolRotate"):y:0;T.add(xB({itemWidth:v,itemHeight:m,icon:c,iconRotate:x,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:_}))}var b=s==="left"?v+5:-5,N=s,A=o.get("formatter"),D=n;X(A)&&A?D=A.replace("{name}",n??""):ie(A)&&(D=A(n));var k=g?C.getTextColor():i.get("inactiveColor");T.add(new Ue({style:Zt(C,{text:D,x:b,y:m/2,fill:k,align:N,verticalAlign:"middle"},{inheritColor:k})}));var P=new Pe({shape:T.getBoundingRect(),style:{fill:"transparent"}}),E=i.getModel("tooltip");return E.get("show")&&nh({el:P,componentModel:o,itemName:n,itemTooltipOption:E.option}),T.add(P),T.eachChild(function(I){I.silent=!0}),P.silent=!f,this.getContentGroup().add(T),qs(T),T.__legendDataIndex=a,T},t.prototype.layoutInner=function(r,n,a,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();ao(r.get("orient"),l,r.get("itemGap"),a.width,a.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){ao("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],v=r.get("selectorButtonGap",!0),m=r.getOrient().index,g=m===0?"width":"height",y=m===0?"height":"width",_=m===0?"y":"x";s==="end"?h[m]+=c[g]+v:f[m]+=d[g]+v,h[1-m]+=c[y]/2-d[y]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var w={x:0,y:0};return w[g]=c[g]+v+d[g],w[y]=Math.max(c[y],d[y]),w[_]=Math.min(0,d[_]+h[1-m]),w}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Jt);function NB(e,t,r,n,a,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),dp(g,function(_,w){g[w]==="inherit"&&(g[w]=y[w])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:Fl(f,o),u.fill==="inherit"&&(u.fill=n[a]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(a==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!i){var v=t.get("inactiveBorderWidth"),m=u[c];u.lineWidth=v==="auto"?n.lineWidth>0&&m?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function xB(e){var t=e.icon||"roundRect",r=Pr(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 $b(e,t,r,n){vp(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),pp(e,t,r,n)}function Fb(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 pp(e,t,r,n){Fb(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function vp(e,t,r,n){Fb(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}const zb=TB;function DB(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 Oo(e,t,r){var n={},a=e==="toggleSelected",i;return r.eachComponent("legend",function(o){a&&i!=null?o[i?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),i=o.isSelected(t.name));var s=o.getData();M(s,function(l){var u=l.get("name");if(!(u===`
|
|
45
|
+
`||u==="")){var c=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&c:n[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function AB(e){e.registerAction("legendToggleSelect","legendselectchanged",Se(Oo,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Se(Oo,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Se(Oo,"inverseSelect")),e.registerAction("legendSelect","legendselected",Se(Oo,"select")),e.registerAction("legendUnSelect","legendunselected",Se(Oo,"unSelect"))}function Gb(e){e.registerComponentModel(hp),e.registerComponentView(zb),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,DB),e.registerSubTypeDefaulter("legend",function(){return"plain"}),AB(e)}var kB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,a){var i=oo(r);e.prototype.init.call(this,r,n,a),Hb(this,r,i)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),Hb(this,this.option,r)},t.type="legend.scroll",t.defaultOption=cl(hp.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}(hp);function Hb(e,t,r){var n=e.getOrient(),a=[1,1];a[n.index]=0,ja(t,r,{type:"box",ignoreSize:!!a})}const MB=kB;var Wb=Oe,gp=["width","height"],mp=["x","y"],EB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new Wb),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Wb)},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];v("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})),v("pageNext",1);function v(m,g){var y=m+"DataIndex",_=th(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=gp[u],f=mp[u],d=gp[1-u],h=mp[1-u];o&&ao("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),m=l.getBoundingRect(),g=[-m.x,-m.y],y=fe(a);o&&(y[c]=a[c]-m[c]-v);var _=this._layoutContentAndController(r,i,y,u,c,d,h,f);if(o){if(s==="end")g[u]+=_[c]+v;else{var w=m[c]+v;g[u]-=w,_[f]-=w}_[c]+=m[c]+v,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;ao(r.get("orient"),c,r.get("itemGap"),i?a.width:null,i?null:a.height),ao("horizontal",d,r.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),v=d.getBoundingRect(),m=this._showController=h[o]>a[o],g=[-h.x,-h.y];n||(g[i]=c[u]);var y=[0,0],_=[-v.x,-v.y],w=oe(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(m){var S=r.get("pageButtonPosition",!0);S==="end"?_[i]+=a[o]-v[o]:y[i]+=v[o]+w}_[1-i]+=h[s]/2-v[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],v[s]),T[l]=Math.min(0,v[l]+_[1-i]),f.__rectSize=a[o],m){var C={x:0,y:0};C[o]=Math.max(a[o]-v[o]-w,0),C[s]=T[s],f.setClipPath(new Pe({shape:C})),f.__rectSize=C[o]}else d.eachChild(function(b){b.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(r);return x.pageIndex!=null&&Qe(c,{x:x.contentPosition[0],y:x.contentPosition[1]},m?r:null),this._updatePageInfoView(r,x),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;M(["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=gp[o],l=mp[o],u=this._findTargetItemIndex(n),c=a.children(),f=c[u],d=c.length,h=d?1:0,v={contentPosition:[a.x,a.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var m=S(f);v.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&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=y.i),++v.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,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=y.i),++v.pageCount,++v.pageIndex),y=w;return v;function S(C){if(C){var x=C.getBoundingRect(),b=x[l]+C[l];return{s:b,e:b+x[s],i:C.__legendDataIndex}}}function T(C,x){return C.e>=x&&C.s<=x+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}(zb);const PB=EB;function IB(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 LB(e){vr(Gb),e.registerComponentModel(MB),e.registerComponentView(PB),IB(e)}function OB(e){vr(Gb),vr(LB)}var RB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=cl(yu.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(yu);const BB=RB;var yp=De();function VB(e,t,r){yp(e).coordSysRecordMap.each(function(n){var a=n.dataZoomInfoMap.get(t.uid);a&&(a.getRange=r)})}function $B(e,t){for(var r=yp(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||Ub(r,o))}}}function Ub(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function FB(e,t){var r={model:t,containsPoint:Se(GB,t),dispatchAction:Se(zB,e),dataZoomInfoMap:null,controller:null},n=r.controller=new eO(e.getZr());return M(["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 zB(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function GB(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function HB(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 WB(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=yp(r),a=n.coordSysRecordMap||(n.coordSysRecordMap=se());a.each(function(i){i.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(i){var o=yb(i);M(o.infoList,function(s){var l=s.model.uid,u=a.get(l)||a.set(l,FB(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=se());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){Ub(a,i);return}var c=HB(l);o.enable(c.controlType,c.opt),o.setPointerChecker(i.containsPoint),kl(i,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var UB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,a){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),VB(a,r,{pan:te(_p.pan,this),zoom:te(_p.zoom,this),scrollMove:te(_p.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){$B(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(wb),_p={zoom:function(e,t,r,n){var a=this.range,i=a.slice(),o=e.axisModels[0];if(o){var s=wp[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(hu(0,i,[0,100],0,c.minSpan,c.maxSpan),this.range=i,a[0]!==i[0]||a[1]!==i[1])return i}},pan:Yb(function(e,t,r,n,a,i){var o=wp[n]([i.oldX,i.oldY],[i.newX,i.newY],t,a,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:Yb(function(e,t,r,n,a,i){var o=wp[n]([0,0],[i.scrollDelta,i.scrollDelta],t,a,r);return o.signal*(e[1]-e[0])*i.scrollDelta})};function Yb(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(hu(l,o,[0,100],"all"),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}}}var wp={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 YB=UB;function qB(e){Cb(e),e.registerComponentModel(BB),e.registerComponentView(YB),WB(e)}var jB=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=cl(yu.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}(yu);const XB=jB;var Ro=Pe,qb=7,ZB=1,bp=30,KB=7,Bo="horizontal",jb="vertical",JB=5,QB=["line","bar","candlestick","scatter"],eV={easing:"cubicOut",duration:100,delay:0},tV=function(e){H(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=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),kl(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(){Ml(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"),i=a?KB:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Bo?{right:s.width-o.x-o.width,top:s.height-bp-qb-i,width:o.width,height:bp}:{right:qb,top:o.y,width:bp,height:o.height},u=oo(r.option);M(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=jn(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===jb&&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===Bo&&!o?{scaleY:l?1:-1,scaleX:1}:a===Bo&&o?{scaleY:l?1:-1,scaleX:-1}:a===jb&&!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 Ro({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Ro({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]],v=[0,n[0]],m=[[n[0],0],[0,0]],g=[],y=v[1]/(o.count()-1),_=0,w=Math.round(o.count()/n[0]),S;o.each([l],function(N,A){if(w>0&&A%w){_+=y;return}var D=N==null||isNaN(N)||N==="",k=D?0:qe(N,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([_,k]),g.push([_,k]),_+=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(N){var A=T.getModel(N?"selectedDataBackground":"dataBackground"),D=new Oe,k=new jf({shape:{points:u},segmentIgnoreThreshold:1,style:A.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),P=new Ga({shape:{points:c},segmentIgnoreThreshold:1,style:A.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return D.add(k),D.add(P),D}for(var x=0;x<3;x++){var b=C(x===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();M(l,function(u){if(!a&&!(n!==!0&&de(QB,u.get("type"))<0)){var c=i.getComponent(pn(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 Ro({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Ro({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:ZB,fill:"rgba(0,0,0,0)"}})),M([0,1],function(w){var S=l.get("handleIcon");!Ll[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=Pr(S,-1,0,2,2,null,!0);T.attr({cursor:Xb(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(),x=l.get("handleSize");this._handleHeight=Ne(x,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(),qs(T);var b=l.get("handleColor");b!=null&&(T.style.fill=b),o.add(a[w]=T);var N=l.getModel("textStyle");r.add(i[w]=new Ue({silent:!0,invisible:!0,style:Zt(N,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:N.getTextColor(),font:N.getFont()}),z2:10}))},this);var h=d;if(f){var v=Ne(l.get("moveHandleSize"),s[1]),m=n.moveHandle=new Pe({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),g=v*.8,y=n.moveHandleIcon=Pr(l.get("moveHandleIcon"),-g/2,-g/2,g,g,"#fff",!0);y.silent=!0,y.y=s[1]+v/2-.5,m.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var _=Math.min(s[1]/2,Math.max(v,10));h=n.moveZone=new Pe({invisible:!0,shape:{y:s[1]-_,height:v+_}}),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:Xb(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=[qe(r[0],[0,100],n,!0),qe(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];hu(n,i,o,a.get("zoomLock")?"all":r,s.minSpan!=null?qe(s.minSpan,l,o,!0):null,s.maxSpan!=null?qe(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Vi([qe(i[0],o,l,!0),qe(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=Vi(a.slice()),o=this._size;M([0,1],function(h){var v=n.handles[h],m=this._handleHeight;v.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 Pe,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=Vi(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(v){var m=oy(a.handles[v].parent,this.group),g=sy(v===0?"right":"left",m),y=this._handleWidth/2+JB,_=eo([d[v]+(v===0?-y:y),this._size[1]/2],m);i[v].setStyle({x:_[0],y:_[1],verticalAlign:o===Bo?"middle":g,align:o===Bo?g:"center",text:s[v]})}},t.prototype._formatLabel=function(r,n){var a=this.dataZoomModel,i=a.get("labelFormatter"),o=a.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=r==null||isNaN(r)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(r)}):r.toFixed(Math.min(o,20));return ie(i)?i(r,s):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,Na(i.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=eo([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=Vi([qe(a.x,o,s,!0),qe(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&&(Na(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 Ro({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?eV:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=yb(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}(wb);function rV(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function Xb(e){return e==="vertical"?"ns-resize":"ew-resize"}const nV=tV;function aV(e){e.registerComponentModel(XB),e.registerComponentView(nV),Cb(e)}function iV(e){vr(qB),vr(aV)}function Zb(e,t,r){var n=ga.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 oV=function(e){H(t,e);function t(r,n,a){var i=e.call(this)||this;i.motionBlur=!1,i.lastFrameAlpha=.7,i.dpr=1,i.virtual=!1,i.config={},i.incremental=!1,i.zlevel=0,i.maxRepaintRectCount=5,i.__dirty=!0,i.__firstTimePaint=!0,i.__used=!1,i.__drawIndex=0,i.__startIndex=0,i.__endIndex=0,i.__prevStartIndex=null,i.__prevEndIndex=null;var o;a=a||xs,typeof r=="string"?o=Zb(r,n,a):J(r)&&(o=r,r=o.id),i.id=r,i.dom=o;var s=o.style;return s&&(bv(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=Zb("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 _e(0,0,0,0);function c(_){if(!(!_.isFinite()||_.isZero()))if(o.length===0){var w=new _e(0,0,0,0);w.copy(_),o.push(w)}else{for(var S=!1,T=1/0,C=0,x=0;x<o.length;++x){var b=o[x];if(b.intersect(_)){var N=new _e(0,0,0,0);N.copy(b),N.union(_),o[x]=N,S=!0;break}else if(l){u.copy(_),u.union(b);var A=_.width*_.height,D=b.width*b.height,k=u.width*u.height,P=k-A-D;P<T&&(T=P,C=x)}}if(l&&(o[C].union(_),S=!0),!S){var w=new _e(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),v=d.__isRendered&&(d.__dirty&bt||!h)?d.getPrevPaintRect():null;v&&c(v);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 v=d.getPrevPaintRect();v&&c(v)}}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 v(m,g,y,_){if(o.clearRect(m,g,y,_),n&&n!=="transparent"){var w=void 0;if(is(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 wN(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,w=Hh(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?v(0,0,s,l):a.length&&M(a,function(m){v(m.x*f,m.y*f,m.width*f,m.height*f)})},t}(Ut);const Sp=oV;var Kb=1e5,la=314159,xu=.01,sV=.001;function lV(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function uV(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 cV=function(){function e(t,r,n,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var i=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=G({},n||{}),this.dpr=n.devicePixelRatio||xs,this._singleCanvas=i,this.root=t;var o=t.style;o&&(bv(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 Sp(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[la]=h,h.zlevel=la,s.push(la),this._domRoot=t}else{this._width=Bl(t,0,n),this._height=Bl(t,1,n);var u=this._domRoot=uV(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(Kb)),i||(i=n.ctx,i.save()),ea(i,s,a,o===r-1))}i&&i.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(Kb)},e.prototype.paintOne=function(t,r){f_(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;Vc(function(){l._paintList(t,r,n,a)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(la).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 x=t[w];(!x.incremental||!x.notClear||n)&&g.clear(!1,C,_)}w===-1&&(console.error("For some unknown reason. drawIndex is -1"),w=g.__startIndex);var b,N=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 k=_[D];y.save(),y.beginPath(),y.rect(k.x*A,k.y*A,k.width*A,k.height*A),y.clip(),N(k),y.restore()}else y.save(),N(),y.restore();g.__drawIndex=b,g.__drawIndex<g.__endIndex&&(c=!1)},h=this,v=0;v<i.length;v++)d(v);return ae.wxa&&M(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))&&(ea(s,t,i,o),t.setPrevPaintRect(l))}else ea(s,t,i,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=la);var n=this._layers[t];return n||(n=new Sp("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?ve(n,this._layerConfig[t],!0):this._layerConfig[t-xu]&&ve(n,this._layerConfig[t-xu],!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"&&Hr("ZLevel "+t+" has been used already");return}if(!lV(r)){process.env.NODE_ENV!=="production"&&Hr("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+sV,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?xu:0),this._needsManuallyCompositing),c.__builtin__||Hr("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,M(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?ve(n[t],r,!0):n[t]=r;for(var a=0;a<this._zlevelList.length;a++){var i=this._zlevelList[a];if(i===t||i===t+xu){var o=this._layers[i];ve(o,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,a=r[t];a&&(a.dom.parentNode.removeChild(a.dom),delete r[t],n.splice(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=Bl(i,0,a),r=Bl(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(la).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[la].dom;var r=new Sp("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];ea(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 fV=cV;function hV(e){e.registerPainter("canvas",fV)}const dV={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"}}}},pV={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"}}}};ql("white",dV),ql("dark",pV),vr([QI,RI,vL,ZO,oB,nB,NR,hV,OB,iV,bB]);const vV={display:"flex",flexDirection:"column",width:"100%",height:"100%"},yr=new WeakMap,Jb=p.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(()=>K.theme,()=>{this.dispose(),this.init()}),this.init()},created(){window.onload=()=>{yr.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:K.theme?"dark":"white",a=I5(e,n,{renderer:t,devicePixelRatio:window.devicePixelRatio});yr.set(this,a),r(yr.get(this))})})},setOption(){if(!yr.get(this))return;const e=this.notMerge,t=this.lazyUpdate,r=this.silent,n=this.options,a=yr.get(this);a==null||a.setOption(n,{notMerge:e,lazyUpdate:t,silent:r})},resizeChart(){this.$nextTick(()=>{var e;(e=yr.get(this))==null||e.resize()})},getInstance(){return yr.get(this)},dispose(){var e;this.resizeAble&&window.removeEventListener("resize",this.resizeChart),(e=yr.get(this))==null||e.dispose(),yr.set(this,null),yr.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({},vV,e||{});return p.h("div",{style:t})}}),gV=p.defineComponent({name:"OcError",components:{NButton:O.NButton},props:{type:{type:String,default:"404"}},setup(e){const t={404:{img:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/404.jpg",txt:"404",title:"404 页面走丢了",title2:"Something's missing."},500:{img:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/500.png",txt:"500",title:"服务暂时中断,请稍后重试.",title2:"Oops! No Internet connection found."}},r=p.ref({img:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/404.jpg",txt:"404",title:"404 页面走丢了",title2:"Something's missing."}),n=()=>{wr.push(K.platformUrl)},a=p.ref();return p.onMounted(()=>{r.value=t[e.type],a.value=setInterval(()=>{wr.push(K.platformUrl)},3e3)}),p.onBeforeUnmount(()=>{clearInterval(a.value)}),{goBack:n,content:r}}}),mV={class:"com-card flex-center oc-error"},yV=["src","alt"],_V={class:"oc-miss-txt"},wV={class:"oc-miss-title"},bV={class:"oc-miss-title2"};function SV(e,t,r,n,a,i){const o=p.resolveComponent("NButton");return p.openBlock(),p.createElementBlock("div",mV,[p.createElementVNode("img",{src:e.content.img,alt:e.content.txt,width:"360"},null,8,yV),p.createElementVNode("div",_V,p.toDisplayString(e.content.txt),1),p.createElementVNode("p",wV,p.toDisplayString(e.content.title),1),p.createElementVNode("p",bV,p.toDisplayString(e.content.title2),1),p.createVNode(o,{tertiary:"",onClick:e.goBack},{default:p.withCtx(()=>[p.createTextVNode("返回首页")]),_:1},8,["onClick"])])}const Qb=Z(gV,[["render",SV]]),CV=p.defineComponent({name:"OcFooter",props:{version:{type:String,default:""}}}),TV={class:"oc-footer"},NV=p.createElementVNode("span",{style:{"font-family":"Arial, Helvetica, sans-serif"}},"©",-1),xV=p.createElementVNode("a",{href:"https://beian.miit.gov.cn/",target:"_blank",class:"oc-footer-record"}," 沪ICP备 18025935号-3 ",-1);function DV(e,t,r,n,a,i){return p.openBlock(),p.createElementBlock("footer",TV,[p.createTextVNode(" Copyright "),NV,p.createTextVNode(" 2020-2024 "+p.toDisplayString(e.$t("Common.title"))+" ",1),e.version?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createTextVNode("v"+p.toDisplayString(e.version)+" ",1)],64)):p.createCommentVNode("",!0),xV])}const eS=Z(CV,[["render",DV]]);var Du=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function AV(){this.__data__=[],this.size=0}var kV=AV;function MV(e,t){return e===t||e!==e&&t!==t}var tS=MV,EV=tS;function PV(e,t){for(var r=e.length;r--;)if(EV(e[r][0],t))return r;return-1}var Au=PV,IV=Au,LV=Array.prototype,OV=LV.splice;function RV(e){var t=this.__data__,r=IV(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():OV.call(t,r,1),--this.size,!0}var BV=RV,VV=Au;function $V(e){var t=this.__data__,r=VV(t,e);return r<0?void 0:t[r][1]}var FV=$V,zV=Au;function GV(e){return zV(this.__data__,e)>-1}var HV=GV,WV=Au;function UV(e,t){var r=this.__data__,n=WV(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var YV=UV,qV=kV,jV=BV,XV=FV,ZV=HV,KV=YV;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=qV,fi.prototype.delete=jV,fi.prototype.get=XV,fi.prototype.has=ZV,fi.prototype.set=KV;var ku=fi,JV=ku;function QV(){this.__data__=new JV,this.size=0}var e3=QV;function t3(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var r3=t3;function n3(e){return this.__data__.get(e)}var a3=n3;function i3(e){return this.__data__.has(e)}var o3=i3,s3=typeof Du=="object"&&Du&&Du.Object===Object&&Du,rS=s3,l3=rS,u3=typeof self=="object"&&self&&self.Object===Object&&self,c3=l3||u3||Function("return this")(),rr=c3,f3=rr,h3=f3.Symbol,Tp=h3,nS=Tp,aS=Object.prototype,d3=aS.hasOwnProperty,p3=aS.toString,Vo=nS?nS.toStringTag:void 0;function v3(e){var t=d3.call(e,Vo),r=e[Vo];try{e[Vo]=void 0;var n=!0}catch{}var a=p3.call(e);return n&&(t?e[Vo]=r:delete e[Vo]),a}var g3=v3,m3=Object.prototype,y3=m3.toString;function _3(e){return y3.call(e)}var w3=_3,iS=Tp,b3=g3,S3=w3,C3="[object Null]",T3="[object Undefined]",oS=iS?iS.toStringTag:void 0;function N3(e){return e==null?e===void 0?T3:C3:oS&&oS in Object(e)?b3(e):S3(e)}var $o=N3;function x3(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var gn=x3,D3=$o,A3=gn,k3="[object AsyncFunction]",M3="[object Function]",E3="[object GeneratorFunction]",P3="[object Proxy]";function I3(e){if(!A3(e))return!1;var t=D3(e);return t==M3||t==E3||t==k3||t==P3}var sS=I3,L3=rr,O3=L3["__core-js_shared__"],R3=O3,Np=R3,lS=function(){var e=/[^.]+$/.exec(Np&&Np.keys&&Np.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function B3(e){return!!lS&&lS in e}var V3=B3,$3=Function.prototype,F3=$3.toString;function z3(e){if(e!=null){try{return F3.call(e)}catch{}try{return e+""}catch{}}return""}var uS=z3,G3=sS,H3=V3,W3=gn,U3=uS,Y3=/[\\^$.*+?()[\]{}|]/g,q3=/^\[object .+?Constructor\]$/,j3=Function.prototype,X3=Object.prototype,Z3=j3.toString,K3=X3.hasOwnProperty,J3=RegExp("^"+Z3.call(K3).replace(Y3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Q3(e){if(!W3(e)||H3(e))return!1;var t=G3(e)?J3:q3;return t.test(U3(e))}var e$=Q3;function t$(e,t){return e==null?void 0:e[t]}var r$=t$,n$=e$,a$=r$;function i$(e,t){var r=a$(e,t);return n$(r)?r:void 0}var ua=i$,o$=ua,s$=rr,l$=o$(s$,"Map"),xp=l$,u$=ua,c$=u$(Object,"create"),Mu=c$,cS=Mu;function f$(){this.__data__=cS?cS(null):{},this.size=0}var h$=f$;function d$(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var p$=d$,v$=Mu,g$="__lodash_hash_undefined__",m$=Object.prototype,y$=m$.hasOwnProperty;function _$(e){var t=this.__data__;if(v$){var r=t[e];return r===g$?void 0:r}return y$.call(t,e)?t[e]:void 0}var w$=_$,b$=Mu,S$=Object.prototype,C$=S$.hasOwnProperty;function T$(e){var t=this.__data__;return b$?t[e]!==void 0:C$.call(t,e)}var N$=T$,x$=Mu,D$="__lodash_hash_undefined__";function A$(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=x$&&t===void 0?D$:t,this}var k$=A$,M$=h$,E$=p$,P$=w$,I$=N$,L$=k$;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=M$,hi.prototype.delete=E$,hi.prototype.get=P$,hi.prototype.has=I$,hi.prototype.set=L$;var O$=hi,fS=O$,R$=ku,B$=xp;function V$(){this.size=0,this.__data__={hash:new fS,map:new(B$||R$),string:new fS}}var $$=V$;function F$(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var z$=F$,G$=z$;function H$(e,t){var r=e.__data__;return G$(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Eu=H$,W$=Eu;function U$(e){var t=W$(this,e).delete(e);return this.size-=t?1:0,t}var Y$=U$,q$=Eu;function j$(e){return q$(this,e).get(e)}var X$=j$,Z$=Eu;function K$(e){return Z$(this,e).has(e)}var J$=K$,Q$=Eu;function e7(e,t){var r=Q$(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var t7=e7,r7=$$,n7=Y$,a7=X$,i7=J$,o7=t7;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=n7,di.prototype.get=a7,di.prototype.has=i7,di.prototype.set=o7;var s7=di,l7=ku,u7=xp,c7=s7,f7=200;function h7(e,t){var r=this.__data__;if(r instanceof l7){var n=r.__data__;if(!u7||n.length<f7-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new c7(n)}return r.set(e,t),this.size=r.size,this}var d7=h7,p7=ku,v7=e3,g7=r3,m7=a3,y7=o3,_7=d7;function pi(e){var t=this.__data__=new p7(e);this.size=t.size}pi.prototype.clear=v7,pi.prototype.delete=g7,pi.prototype.get=m7,pi.prototype.has=y7,pi.prototype.set=_7;var w7=pi;function b7(e,t){for(var r=-1,n=e==null?0:e.length;++r<n&&t(e[r],r,e)!==!1;);return e}var S7=b7,C7=ua,T7=function(){try{var e=C7(Object,"defineProperty");return e({},"",{}),e}catch{}}(),N7=T7,hS=N7;function x7(e,t,r){t=="__proto__"&&hS?hS(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var dS=x7,D7=dS,A7=tS,k7=Object.prototype,M7=k7.hasOwnProperty;function E7(e,t,r){var n=e[t];(!(M7.call(e,t)&&A7(n,r))||r===void 0&&!(t in e))&&D7(e,t,r)}var pS=E7,P7=pS,I7=dS;function L7(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?I7(r,s,l):P7(r,s,l)}return r}var Pu=L7;function O7(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var R7=O7;function B7(e){return e!=null&&typeof e=="object"}var vi=B7,V7=$o,$7=vi,F7="[object Arguments]";function z7(e){return $7(e)&&V7(e)==F7}var G7=z7,vS=G7,H7=vi,gS=Object.prototype,W7=gS.hasOwnProperty,U7=gS.propertyIsEnumerable,Y7=vS(function(){return arguments}())?vS:function(e){return H7(e)&&W7.call(e,"callee")&&!U7.call(e,"callee")},q7=Y7,j7=Array.isArray,Dp=j7,Iu={exports:{}};function X7(){return!1}var Z7=X7;Iu.exports,function(e,t){var r=rr,n=Z7,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}(Iu,Iu.exports);var mS=Iu.exports,K7=9007199254740991,J7=/^(?:0|[1-9]\d*)$/;function Q7(e,t){var r=typeof e;return t=t??K7,!!t&&(r=="number"||r!="symbol"&&J7.test(e))&&e>-1&&e%1==0&&e<t}var e4=Q7,t4=9007199254740991;function r4(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=t4}var yS=r4,n4=$o,a4=yS,i4=vi,o4="[object Arguments]",s4="[object Array]",l4="[object Boolean]",u4="[object Date]",c4="[object Error]",f4="[object Function]",h4="[object Map]",d4="[object Number]",p4="[object Object]",v4="[object RegExp]",g4="[object Set]",m4="[object String]",y4="[object WeakMap]",_4="[object ArrayBuffer]",w4="[object DataView]",b4="[object Float32Array]",S4="[object Float64Array]",C4="[object Int8Array]",T4="[object Int16Array]",N4="[object Int32Array]",x4="[object Uint8Array]",D4="[object Uint8ClampedArray]",A4="[object Uint16Array]",k4="[object Uint32Array]",Ee={};Ee[b4]=Ee[S4]=Ee[C4]=Ee[T4]=Ee[N4]=Ee[x4]=Ee[D4]=Ee[A4]=Ee[k4]=!0,Ee[o4]=Ee[s4]=Ee[_4]=Ee[l4]=Ee[w4]=Ee[u4]=Ee[c4]=Ee[f4]=Ee[h4]=Ee[d4]=Ee[p4]=Ee[v4]=Ee[g4]=Ee[m4]=Ee[y4]=!1;function M4(e){return i4(e)&&a4(e.length)&&!!Ee[n4(e)]}var E4=M4;function P4(e){return function(t){return e(t)}}var Ap=P4,Lu={exports:{}};Lu.exports,function(e,t){var r=rS,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}(Lu,Lu.exports);var kp=Lu.exports,I4=E4,L4=Ap,_S=kp,wS=_S&&_S.isTypedArray,O4=wS?L4(wS):I4,R4=O4,B4=R7,V4=q7,$4=Dp,F4=mS,z4=e4,G4=R4,H4=Object.prototype,W4=H4.hasOwnProperty;function U4(e,t){var r=$4(e),n=!r&&V4(e),a=!r&&!n&&F4(e),i=!r&&!n&&!a&&G4(e),o=r||n||a||i,s=o?B4(e.length,String):[],l=s.length;for(var u in e)(t||W4.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||z4(u,l)))&&s.push(u);return s}var bS=U4,Y4=Object.prototype;function q4(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||Y4;return e===r}var Mp=q4;function j4(e,t){return function(r){return e(t(r))}}var SS=j4,X4=SS,Z4=X4(Object.keys,Object),K4=Z4,J4=Mp,Q4=K4,eF=Object.prototype,tF=eF.hasOwnProperty;function rF(e){if(!J4(e))return Q4(e);var t=[];for(var r in Object(e))tF.call(e,r)&&r!="constructor"&&t.push(r);return t}var nF=rF,aF=sS,iF=yS;function oF(e){return e!=null&&iF(e.length)&&!aF(e)}var CS=oF,sF=bS,lF=nF,uF=CS;function cF(e){return uF(e)?sF(e):lF(e)}var Ep=cF,fF=Pu,hF=Ep;function dF(e,t){return e&&fF(t,hF(t),e)}var pF=dF;function vF(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var gF=vF,mF=gn,yF=Mp,_F=gF,wF=Object.prototype,bF=wF.hasOwnProperty;function SF(e){if(!mF(e))return _F(e);var t=yF(e),r=[];for(var n in e)n=="constructor"&&(t||!bF.call(e,n))||r.push(n);return r}var CF=SF,TF=bS,NF=CF,xF=CS;function DF(e){return xF(e)?TF(e,!0):NF(e)}var Pp=DF,AF=Pu,kF=Pp;function MF(e,t){return e&&AF(t,kF(t),e)}var EF=MF,Ou={exports:{}};Ou.exports,function(e,t){var r=rr,n=t&&!t.nodeType&&t,a=n&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===n,o=i?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;function l(u,c){if(c)return u.slice();var f=u.length,d=s?s(f):new u.constructor(f);return u.copy(d),d}e.exports=l}(Ou,Ou.exports);var PF=Ou.exports;function IF(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}var LF=IF;function OF(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 RF=OF;function BF(){return[]}var TS=BF,VF=RF,$F=TS,FF=Object.prototype,zF=FF.propertyIsEnumerable,NS=Object.getOwnPropertySymbols,GF=NS?function(e){return e==null?[]:(e=Object(e),VF(NS(e),function(t){return zF.call(e,t)}))}:$F,Ip=GF,HF=Pu,WF=Ip;function UF(e,t){return HF(e,WF(e),t)}var YF=UF;function qF(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e}var xS=qF,jF=SS,XF=jF(Object.getPrototypeOf,Object),DS=XF,ZF=xS,KF=DS,JF=Ip,QF=TS,ez=Object.getOwnPropertySymbols,tz=ez?function(e){for(var t=[];e;)ZF(t,JF(e)),e=KF(e);return t}:QF,AS=tz,rz=Pu,nz=AS;function az(e,t){return rz(e,nz(e),t)}var iz=az,oz=xS,sz=Dp;function lz(e,t,r){var n=t(e);return sz(e)?n:oz(n,r(e))}var kS=lz,uz=kS,cz=Ip,fz=Ep;function hz(e){return uz(e,fz,cz)}var dz=hz,pz=kS,vz=AS,gz=Pp;function mz(e){return pz(e,gz,vz)}var yz=mz,_z=ua,wz=rr,bz=_z(wz,"DataView"),Sz=bz,Cz=ua,Tz=rr,Nz=Cz(Tz,"Promise"),xz=Nz,Dz=ua,Az=rr,kz=Dz(Az,"Set"),Mz=kz,Ez=ua,Pz=rr,Iz=Ez(Pz,"WeakMap"),Lz=Iz,Lp=Sz,Op=xp,Rp=xz,Bp=Mz,Vp=Lz,MS=$o,gi=uS,ES="[object Map]",Oz="[object Object]",PS="[object Promise]",IS="[object Set]",LS="[object WeakMap]",OS="[object DataView]",Rz=gi(Lp),Bz=gi(Op),Vz=gi(Rp),$z=gi(Bp),Fz=gi(Vp),ca=MS;(Lp&&ca(new Lp(new ArrayBuffer(1)))!=OS||Op&&ca(new Op)!=ES||Rp&&ca(Rp.resolve())!=PS||Bp&&ca(new Bp)!=IS||Vp&&ca(new Vp)!=LS)&&(ca=function(e){var t=MS(e),r=t==Oz?e.constructor:void 0,n=r?gi(r):"";if(n)switch(n){case Rz:return OS;case Bz:return ES;case Vz:return PS;case $z:return IS;case Fz:return LS}return t});var $p=ca,zz=Object.prototype,Gz=zz.hasOwnProperty;function Hz(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&Gz.call(e,"index")&&(r.index=e.index,r.input=e.input),r}var Wz=Hz,Uz=rr,Yz=Uz.Uint8Array,qz=Yz,RS=qz;function jz(e){var t=new e.constructor(e.byteLength);return new RS(t).set(new RS(e)),t}var Fp=jz,Xz=Fp;function Zz(e,t){var r=t?Xz(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var Kz=Zz,Jz=/\w*$/;function Qz(e){var t=new e.constructor(e.source,Jz.exec(e));return t.lastIndex=e.lastIndex,t}var e8=Qz,BS=Tp,VS=BS?BS.prototype:void 0,$S=VS?VS.valueOf:void 0;function t8(e){return $S?Object($S.call(e)):{}}var r8=t8,n8=Fp;function a8(e,t){var r=t?n8(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var i8=a8,o8=Fp,s8=Kz,l8=e8,u8=r8,c8=i8,f8="[object Boolean]",h8="[object Date]",d8="[object Map]",p8="[object Number]",v8="[object RegExp]",g8="[object Set]",m8="[object String]",y8="[object Symbol]",_8="[object ArrayBuffer]",w8="[object DataView]",b8="[object Float32Array]",S8="[object Float64Array]",C8="[object Int8Array]",T8="[object Int16Array]",N8="[object Int32Array]",x8="[object Uint8Array]",D8="[object Uint8ClampedArray]",A8="[object Uint16Array]",k8="[object Uint32Array]";function M8(e,t,r){var n=e.constructor;switch(t){case _8:return o8(e);case f8:case h8:return new n(+e);case w8:return s8(e,r);case b8:case S8:case C8:case T8:case N8:case x8:case D8:case A8:case k8:return c8(e,r);case d8:return new n;case p8:case m8:return new n(e);case v8:return l8(e);case g8:return new n;case y8:return u8(e)}}var E8=M8,P8=gn,FS=Object.create,I8=function(){function e(){}return function(t){if(!P8(t))return{};if(FS)return FS(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),L8=I8,O8=L8,R8=DS,B8=Mp;function V8(e){return typeof e.constructor=="function"&&!B8(e)?O8(R8(e)):{}}var $8=V8,F8=$p,z8=vi,G8="[object Map]";function H8(e){return z8(e)&&F8(e)==G8}var W8=H8,U8=W8,Y8=Ap,zS=kp,GS=zS&&zS.isMap,q8=GS?Y8(GS):U8,j8=q8,X8=$p,Z8=vi,K8="[object Set]";function J8(e){return Z8(e)&&X8(e)==K8}var Q8=J8,e6=Q8,t6=Ap,HS=kp,WS=HS&&HS.isSet,r6=WS?t6(WS):e6,n6=r6,a6=w7,i6=S7,o6=pS,s6=pF,l6=EF,u6=PF,c6=LF,f6=YF,h6=iz,d6=dz,p6=yz,v6=$p,g6=Wz,m6=E8,y6=$8,_6=Dp,w6=mS,b6=j8,S6=gn,C6=n6,T6=Ep,N6=Pp,x6=1,D6=2,A6=4,US="[object Arguments]",k6="[object Array]",M6="[object Boolean]",E6="[object Date]",P6="[object Error]",YS="[object Function]",I6="[object GeneratorFunction]",L6="[object Map]",O6="[object Number]",qS="[object Object]",R6="[object RegExp]",B6="[object Set]",V6="[object String]",$6="[object Symbol]",F6="[object WeakMap]",z6="[object ArrayBuffer]",G6="[object DataView]",H6="[object Float32Array]",W6="[object Float64Array]",U6="[object Int8Array]",Y6="[object Int16Array]",q6="[object Int32Array]",j6="[object Uint8Array]",X6="[object Uint8ClampedArray]",Z6="[object Uint16Array]",K6="[object Uint32Array]",ke={};ke[US]=ke[k6]=ke[z6]=ke[G6]=ke[M6]=ke[E6]=ke[H6]=ke[W6]=ke[U6]=ke[Y6]=ke[q6]=ke[L6]=ke[O6]=ke[qS]=ke[R6]=ke[B6]=ke[V6]=ke[$6]=ke[j6]=ke[X6]=ke[Z6]=ke[K6]=!0,ke[P6]=ke[YS]=ke[F6]=!1;function Ru(e,t,r,n,a,i){var o,s=t&x6,l=t&D6,u=t&A6;if(r&&(o=a?r(e,n,a,i):r(e)),o!==void 0)return o;if(!S6(e))return e;var c=_6(e);if(c){if(o=g6(e),!s)return c6(e,o)}else{var f=v6(e),d=f==YS||f==I6;if(w6(e))return u6(e,s);if(f==qS||f==US||d&&!a){if(o=l||d?{}:y6(e),!s)return l?h6(e,l6(o,e)):f6(e,s6(o,e))}else{if(!ke[f])return a?e:{};o=m6(e,f,s)}}i||(i=new a6);var h=i.get(e);if(h)return h;i.set(e,o),C6(e)?e.forEach(function(g){o.add(Ru(g,t,r,g,e,i))}):b6(e)&&e.forEach(function(g,y){o.set(y,Ru(g,t,r,y,e,i))});var v=u?l?p6:d6:l?N6:T6,m=c?void 0:v(e);return i6(m||e,function(g,y){m&&(y=g,g=e[y]),o6(o,y,Ru(g,t,r,y,e,i))}),o}var J6=Ru,Q6=J6,eG=1,tG=4;function rG(e){return Q6(e,eG|tG)}var nG=rG;const wt=Cp(nG),aG=p.defineComponent({name:"OcFormItem",components:{NIcon:O.NIcon,NInput:O.NInput,NSelect:O.NSelect,NInputNumber:O.NInputNumber,NDatePicker:O.NDatePicker,NTimePicker:O.NTimePicker,NSwitch:O.NSwitch,NUpload:O.NUpload,NUploadDragger:O.NUploadDragger,NDivider:O.NDivider,NColorPicker:O.NColorPicker,NCheckbox:O.NCheckbox,NCheckboxGroup:O.NCheckboxGroup,IconMailInboxAdd:_i},props:{item:{required:!0,type:Object,default:()=>[]},formValue:{required:!0,type:Object,default:()=>({})},edit:{type:Boolean,default:!1}},setup(e){const{t}=Ht.useI18n();return{updateValue:(o,s)=>{if(o.updateValue){const l=wt(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}}}),iG=p.createElementVNode("br",null,null,-1),oG=p.createElementVNode("p",null,"点击或者拖动文件到该区域来上传",-1),sG=p.createElementVNode("p",null,"请不要上传敏感数据,比如你的银行卡号和密码,信用卡号有效期和安全码",-1);function lG(e,t,r,n,a,i){const o=p.resolveComponent("NDivider"),s=p.resolveComponent("NInput"),l=p.resolveComponent("NInputNumber"),u=p.resolveComponent("NDatePicker"),c=p.resolveComponent("NSelect"),f=p.resolveComponent("NCascader"),d=p.resolveComponent("NColorPicker"),h=p.resolveComponent("NCheckbox"),v=p.resolveComponent("NFlex"),m=p.resolveComponent("NCheckboxGroup"),g=p.resolveComponent("NTimePicker"),y=p.resolveComponent("NSwitch"),_=p.resolveComponent("IconMailInboxAdd"),w=p.resolveComponent("NIcon"),S=p.resolveComponent("NUploadDragger"),T=p.resolveComponent("NUpload");return p.openBlock(),p.createElementBlock(p.Fragment,null,[e.item.input==="divider"?(p.openBlock(),p.createBlock(o,{key:0,"title-placement":e.item.placement},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(typeof e.item.label=="function"?e.item.label():e.item.label),1)]),_:1},8,["title-placement"])):p.createCommentVNode("",!0),e.item.input==="input"?(p.openBlock(),p.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"])):p.createCommentVNode("",!0),e.item.input==="number"?(p.openBlock(),p.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 x=e.item;return x.precision&&x.precision>-1?Number(Number(C).toFixed(x.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"])):p.createCommentVNode("",!0),e.item.input==="date"&&!e.item.format?(p.openBlock(),p.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,x)=>{const b=e.item;return b.isDateDisabled?b.isDateDisabled(C,x):!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"])):p.createCommentVNode("",!0),e.item.input==="date"&&e.item.format?(p.openBlock(),p.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,x)=>{const b=e.item;return b.isDateDisabled?b.isDateDisabled(C,x):!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"])):p.createCommentVNode("",!0),e.item.input==="select"?(p.openBlock(),p.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 x=e.item;let b=C,N=C;if(x.multiple){let A=C.filter(D=>D);A.length===0?(b=[""],N=[]):(b=A,N=A)}e.formValue[e.item.key]=b,e.updateValue(e.item,N)}},null,8,["value","placeholder","options","disabled","readonly","clearable","filterable","multiple","fallback-option","maxTagCount","render-label","render-option","render-tag","on-update:value"])):p.createCommentVNode("",!0),e.item.input==="cascader"?(p.openBlock(),p.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 x=e.item;let b=C,N=C;if(x.multiple){let A=C.filter(D=>D);A.length===0?(b=[""],N=[]):(b=A,N=A)}e.formValue[e.item.key]=b,e.updateValue(e.item,N)}},null,8,["value","placeholder","options","disabled","readonly","clearable","filterable","multiple","maxTagCount","on-update:value"])):p.createCommentVNode("",!0),e.item.input==="color"?(p.openBlock(),p.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"])):p.createCommentVNode("",!0),e.item.input==="checkbox"?(p.openBlock(),p.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:p.withCtx(()=>[p.createVNode(v,null,{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(e.item.options,C=>(p.openBlock(),p.createBlock(h,{label:C.label,value:C.value},null,8,["label","value"]))),256))]),_:1})]),_:1},8,["value","disabled"])):p.createCommentVNode("",!0),e.item.input==="time"?(p.openBlock(),p.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"])):p.createCommentVNode("",!0),e.item.input==="switch"?(p.openBlock(),p.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)}},p.createSlots({_:2},[e.item.checked?{name:"checked",fn:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.item.checked),1)]),key:"0"}:void 0,e.item.unchecked?{name:"unchecked",fn:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.item.unchecked),1)]),key:"1"}:void 0]),1032,["value","disabled","on-update:value"])):p.createCommentVNode("",!0),e.item.input==="upload"?(p.openBlock(),p.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:p.withCtx(()=>[p.withDirectives(p.createVNode(S,null,{default:p.withCtx(()=>[p.createVNode(w,{size:"32"},{default:p.withCtx(()=>[p.createVNode(_)]),_:1}),iG,oG,sG]),_:1},512),[[p.vShow,!e.formValue[e.item.key]]])]),_:1},8,["default-file-list","on-before-upload","accept","disabled","max","on-update:file-list"])):p.createCommentVNode("",!0)],64)}const uG=Z(aG,[["render",lG]]),cG=p.defineComponent({name:"OcForm",components:{NGrid:O.NGrid,NForm:O.NForm,NFormItem:O.NFormItem,OcFormItem:uG,Draggable:Kp},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=p.ref(),a=p.ref({}),i=p.ref([]),o=h=>!((h==null?void 0:h.show)===!1||e.edit&&h.edit&&!h.edit.show),s=(h,v)=>{r("on-update:mode",{item:wt(h),index:v})},l=()=>{const h=wt(e.items);h.forEach(v=>{if(v.input!=="divider"&&v.rule&&v.rule.validator&&typeof v.rule.validator=="string"){const m=v.rule.validator,g=new Function("rule","value",m);v.rule.validator=(y,_)=>g(y,_)}if(v.input==="date"&&v.isDateDisabled&&typeof v.isDateDisabled=="string"){const m=v.isDateDisabled,g=new Function("ts","detail",m);v.isDateDisabled=(y,_)=>g(y,_)}v.input==="select"&&v.fallbackOption&&v.multiple&&(!a.value[v.key]||a.value[v.key].length===0)&&(a.value[v.key]=[""])}),i.value=h},u=()=>new Promise((h,v)=>{var m;(m=n.value)==null||m.validate(g=>{if(g)v();else{const y=wt(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",wt(i.value))};return p.onMounted(()=>{a.value=wt(e.data),l()}),t({validate:u,restoreValidation:c}),p.watch(()=>e.items,()=>{l()},{deep:!0}),p.watch(()=>e.data,h=>{a.value=wt(h)},{deep:!0}),{formRef:n,formValue:a,formItems:i,onDragEnd:f,onDragAdd:d,cloneDeep:wt,elementShow:o,onModeClick:s}}}),fG={key:1,class:"oc-form-grid"};function hG(e,t,r,n,a,i){const o=p.resolveComponent("OcFormItem"),s=p.resolveComponent("NFormItem"),l=p.resolveComponent("Draggable"),u=p.resolveComponent("NForm");return p.openBlock(),p.createBlock(u,{ref:"formRef",model:e.formValue,disabled:e.disabled,inline:e.inline,labelWidth:e.labelWidth,labelAlign:e.labelAlign,labelPlacement:e.labelPlacement},{default:p.withCtx(()=>[e.mode?(p.openBlock(),p.createBlock(l,p.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:p.withCtx(({element:c,index:f})=>{var d;return[(p.openBlock(),p.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:p.normalizeClass(["oc-form-grid-item",e.mode?"oc-form-mode":""]),onClick:h=>e.mode?e.onModeClick(c,f):void 0,key:f,style:p.normalizeStyle(`grid-column: span ${c.span||6} / span ${c.span||6};`),"show-feedback":c.input!=="divider"},{default:p.withCtx(()=>[p.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"])):(p.openBlock(),p.createElementBlock("div",fG,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(e.formItems,(c,f)=>{var d;return p.openBlock(),p.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:p.normalizeClass(["oc-form-grid-item",e.mode?"oc-form-mode":""]),onClick:h=>e.mode?e.onModeClick(c,f):void 0,key:f,style:p.normalizeStyle(`grid-column: span ${c.span||6} / span ${c.span||6};`),"show-feedback":c.input!=="divider"},{default:p.withCtx(()=>[p.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"])}),128))]))]),_:1},8,["model","disabled","inline","labelWidth","labelAlign","labelPlacement"])}const jS=Z(cG,[["render",hG]]),XS=e=>{const t=JSON.parse(JSON.stringify(e));return t.password=Ho(t.password),at("api/user/v2/login",t)},dG=()=>new Promise(async(e,t)=>{at("api/auth/user/getCurrentUserInfo",{},"json",1e4).then(async r=>{await sv();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:()=>zr.global.t("Platform.iot"),key:r.industryCategory==="0"?"/iot/home/all":"/prt/home/all"}];switch(Object.keys(K.owned).forEach(o=>{const s=a.includes(Number(o));if(r[K.owned[o]]=s,s){const l=K.owned[o].split("_")[1],u=K.platformList[l];u&&i.push({label:()=>zr.global.t(u.platformName),key:u.platformUrl})}}),VT(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)})}),pG=()=>at("api/auth/user/logout"),vG=()=>at("api/manager/message/markReadAll"),gG=()=>at("api/auth/user/updateTenantRenewalStatus"),mG=e=>at("api/manager/job/remove",e),yG=e=>at("api/manager/job/retry",{jobId:e}),_G=e=>new Promise((t,r)=>{const n=bi(e);at("api/manager/job/page",n).then(a=>{const i=wi(a);t(i)}).catch(()=>{r()})}),zp=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])}),cc("api/manager/job/submit",n).then(()=>{fc(!0),t()}).catch(a=>{r(a)})}),wG=e=>new Promise((t,r)=>{const n=bi(e);n.status===-1&&(n.status=""),at("api/manager/message/messagePage",n).then(a=>{const i=wi(a);t({data:i,unRead:a.unRead})}).catch(()=>{r()})}),bG=e=>at("api/manager/message/markRead",{messageId:e});let ZS=!0;const F=p.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 SG(e){ZS=e}function Gp(e){try{const t=window.location.host;if(t.includes("partexiot.cn")){const r=nt("token",!1);F.industryCategory=e.industryCategory||"0",(!t.includes("test")||!t.includes("vpn"))&&ZS&&(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"&&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 Bu(){return new Promise((e,t)=>{dG().then(r=>{Gp(r),e(r)}).catch(()=>{t()})})}function Vu(){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 Hp(){await pG().catch(()=>null),da("token"),Vu(),window.location.href="/login"}const CG=p.defineComponent({name:"HeaderPop",components:{NFlex:O.NFlex,NInput:O.NInput,NPopover:O.NPopover,NTooltip:O.NTooltip,NButton:O.NButton,NIcon:O.NIcon,NDataTable:O.NDataTable,IconSearch:qo,IconArrowClockwise:fa,IconArrowSquareDown:qu},setup(){const{t:e}=Ht.useI18n(),t=p.ref(!1),r=O.useNotification(),n=p.ref([]),a=p.ref(""),i=p.ref(!1),o=p.ref({page:1,pageCount:1,pageSize:30}),s=p.ref([{title:()=>e("Common.importer.fileName"),key:"jobName",width:300,render(h){return p.h("div",{},{default:()=>[p.h("p",{},{default:()=>h.jobName||"--"}),p.h("p",{style:{color:"rgba(var(--font), 0.6)"}},{default:()=>_r(h.commitTime,"yyyy-MM-dd hh:mm:ss")})]})}},{title:()=>e("Common.importer.status"),key:"jobStatus",align:"center",width:90,render(h){let v=e("Common.processing");return h.jobStatus===1&&(v=e("Common.success")),h.jobStatus===2&&(v=e("Common.failed")),p.h("span",{},{default:()=>v})}},{title:()=>e("Common.action"),key:"action",align:"center",fixed:"right",width:90,render(h){const v=[{type:"delete",onClick:()=>{mG([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?v.unshift({type:"custom",onClick:()=>{yG(h.jobId).then(()=>{r.success({content:()=>e("Notice.success"),duration:3e3}),f()}).catch(()=>{r.error({content:()=>e("Notice.error"),duration:3e3})})},icon:fa,color:"info",tooltipText:()=>e("Common.importer.retry")}):v.unshift({type:"custom",disabled:h.jobStatus!==1,onClick:()=>{window.open(h.downloadUrl)},icon:yi,color:"success",tooltipText:()=>e("Common.importer.btnDownload")}),Gr(v)}}]),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,_G({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=>{fc(h),t.value=h};return f(),p.watch(()=>K.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}}}),TG={class:"oc-header-download"};function NG(e,t,r,n,a,i){const o=p.resolveComponent("IconArrowSquareDown"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NInput"),c=p.resolveComponent("IconSearch"),f=p.resolveComponent("NTooltip"),d=p.resolveComponent("IconArrowClockwise"),h=p.resolveComponent("NFlex"),v=p.resolveComponent("NDataTable"),m=p.resolveComponent("NPopover");return p.openBlock(),p.createBlock(m,{trigger:"click",placement:"bottom-end",show:e.popDownload,"show-arrow":!1,"on-update:show":e.popDownloadUpdate,style:{width:"650px"}},{trigger:p.withCtx(()=>[p.createVNode(l,{text:"",style:{"margin-left":"15px"}},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(o)]),_:1})]),_:1})]),default:p.withCtx(()=>[p.createVNode(h,{justify:"end",wrap:!1},{default:p.withCtx(()=>[p.createElementVNode("span",TG,p.toDisplayString(e.$t("Common.validDays")),1),p.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"]),p.createVNode(f,{trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{loading:e.loading,class:"button-primary",onClick:e.doSearch},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(c)]),_:1})]),_:1},8,["loading","onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.search")),1)]),_:1}),p.createVNode(f,{trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{onClick:e.init},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(d)]),_:1})]),_:1},8,["onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.refresh")),1)]),_:1})]),_:1}),p.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 xG=Z(CG,[["render",NG]]),DG=p.defineComponent({name:"HeaderPop",components:{NBadge:O.NBadge,NPopover:O.NPopover,NFlex:O.NFlex,NTooltip:O.NTooltip,NButton:O.NButton,NIcon:O.NIcon,NDataTable:O.NDataTable,NRadioGroup:O.NRadioGroup,NRadioButton:O.NRadioButton,IconAlert:Wu,IconClear:Uu,IconArrowClockwise:fa},setup(){const{t:e}=Ht.useI18n(),t=p.ref(0),r=p.ref(0),n=p.ref([]),a=p.ref(""),i=p.ref(!1),o=p.ref({page:1,pageCount:1,pageSize:30}),s=p.ref([{title:()=>e("Common.message.title2"),key:"messageContent",width:300,render(h){return[p.h("div",{class:h.status===1?"card-grey-txt":""},{default:()=>h.messageContent}),p.h("div",{class:"card-grey-txt"},{default:()=>_r(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?Gr([{type:"custom",color:"primary",tooltipText:()=>e("Common.message.read"),buttonText:()=>e("Common.message.read"),onClick:()=>{bG(h.messageId).then(()=>{d()}).catch(()=>{d()})}}]):p.h("div",{},{default:()=>`${h.updateByName} ${e("Common.message.read")}`})}}]),l=h=>{o.value.page=1,t.value=h,d()},u=()=>{vG().then(()=>{d()}).catch(()=>{d()})},c=h=>{o.value.page=h,d()},f=h=>{o.value.pageSize=h,o.value.page=1,d()},d=()=>{i.value||(i.value=!0,wG({status:t.value,query:o.value}).then(h=>{r.value=h.unRead,o.value=h.data.query,n.value=h.data.records,i.value=!1}).catch(()=>{i.value=!1}))};return d(),{badge:r,radios:t,jobName:a,loading:i,columns:s,coldata:n,query:o,clearAll:u,pageChange:c,pageSizeChange:f,init:d,radiosChecked:l}}}),AG={class:"com-title"};function kG(e,t,r,n,a,i){const o=p.resolveComponent("IconAlert"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NBadge"),c=p.resolveComponent("NRadioButton"),f=p.resolveComponent("NRadioGroup"),d=p.resolveComponent("IconClear"),h=p.resolveComponent("NTooltip"),v=p.resolveComponent("IconArrowClockwise"),m=p.resolveComponent("NFlex"),g=p.resolveComponent("NDataTable"),y=p.resolveComponent("NPopover");return p.openBlock(),p.createBlock(y,{trigger:"click",placement:"bottom-end","show-arrow":!1,style:{width:"650px"}},{trigger:p.withCtx(()=>[p.createVNode(u,{value:e.badge,max:99,offset:[5,-10]},{default:p.withCtx(()=>[p.createVNode(l,{text:"",style:{"margin-left":"30px"}},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(o)]),_:1})]),_:1})]),_:1},8,["value"])]),default:p.withCtx(()=>[p.createVNode(m,{justify:"space-between"},{default:p.withCtx(()=>[p.createElementVNode("div",AG,p.toDisplayString(e.$t("Common.message.title")),1),p.createVNode(f,{value:e.radios,"onUpdate:value":t[0]||(t[0]=_=>e.radios=_),name:"radios","on-update:value":e.radiosChecked},{default:p.withCtx(()=>[p.createVNode(c,{key:"0",value:0,label:e.$t("Common.message.unRead")},null,8,["label"]),p.createVNode(c,{key:"-1",value:-1,label:e.$t("Common.message.all")},null,8,["label"]),p.createVNode(c,{key:"1",value:1,label:e.$t("Common.message.read")},null,8,["label"])]),_:1},8,["value","on-update:value"]),p.createElementVNode("div",null,[p.createVNode(h,{trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{onClick:e.clearAll},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(d)]),_:1})]),_:1},8,["onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.message.readAll")),1)]),_:1}),p.createVNode(h,{trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{onClick:e.init},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(v)]),_:1})]),_:1},8,["onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.refresh")),1)]),_:1})])]),_:1}),p.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 MG=Z(DG,[["render",kG]]),EG=p.defineComponent({name:"OcHeader",components:{Pop:xG,Message:MG,NDropdown:O.NDropdown,NMenu:O.NMenu,NIcon:O.NIcon,NButton:O.NButton,NDrawer:O.NDrawer,NFlex:O.NFlex,NDrawerContent:O.NDrawerContent,NCard:O.NCard,IconWeatherSunny:Yo,IconWeatherMoon:Uo,IconGridDots:ju,IconDismiss:$r,IconNavigation:Ko,IconUser:rc},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}=Ht.useI18n(),r=xt.useRoute(),n=xt.useRouter(),a=O.useNotification(),i=p.ref(K.platformUrl),o=p.ref(!1),s=p.ref(void 0),l=p.ref(10),u=p.ref(K.platformMenu),c=N=>{Ci(N),dt("theme",N,0)},f=N=>{N.indexOf("/iot/home")>-1&&(N="/iot/home/all"),N.indexOf("/iot/timeline")>-1&&(N="/iot/timeline/all"),i.value=N,Qo()},d=N=>{N.disabled||(f(N.key),n.push(N.key))},h=N=>{if(!N.disabled){if(N.children)return;f(N.key),n.push(N.key),o.value=!1}},v=N=>p.h("div",{onClick:()=>d(N)},{default:()=>typeof N.label=="function"?N.label():N.label}),m=N=>p.h("div",{onClick:()=>h(N)},{default:()=>typeof N.label=="function"?N.label():N.label}),g=N=>N.icon?p.h(O.NIcon,{size:24,onClick:()=>d(N)},{default:()=>N.icon&&N.icon()}):!1,y=N=>{n.replace(N)},_=()=>{o.value=!1},w=()=>{const N=[{label:F.tenantName,key:"tenantName"},{label:`${t("Common.dropdownMenu.theme")} ${K.theme?t("Common.dropdownMenu.light"):t("Common.dropdownMenu.dark")}`,key:"theme"}];return K.language&&N.push({label:`${t("Common.dropdownMenu.language")} ${K.lang==="zh-CN"?"EN":"中文"}`,key:"language"}),N.push({label:t("Common.dropdownMenu.software"),key:"app",children:[{label:t("Common.dropdownMenu.android"),key:"android"},{label:t("Common.dropdownMenu.ios"),key:"ios"},{label:t("Common.dropdownMenu.chrome"),key:"chrome"},{label:t("Common.dropdownMenu.edge"),key:"edge"},{label:t("Common.dropdownMenu.dashboard_IoT"),key:"dashboard_IoT"},{label:t("Common.dropdownMenu.dashboard_Prt"),key:"dashboard_Prt"}]}),e.report&&N.push({label:t("Common.dropdownMenu.report"),key:"report"}),N.push({label:t("Common.dropdownMenu.info"),key:"info"},{label:t("Common.dropdownMenu.logout"),key:"logout"}),N},S=async N=>{N==="logout"&&Hp(),N==="theme"&&c(!K.theme),N==="language"&&va(),N==="info"&&n.push("/custom/my"),N==="report"&&n.push("/custom/report"),N==="android"&&window.open("http://miiot.partexiot.cn/dk7u"),N==="ios"&&window.open("https://apps.apple.com/cn/app/id1587313547"),N==="chrome"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/chrome_installer.exe"),N==="edge"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/MicrosoftEdgeSetup.exe"),N==="dashboard_IoT"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/%E9%9B%B6%E6%8D%B7%E4%BA%92%E8%81%94IoT_v1.2.0.zip"),N==="dashboard_Prt"&&window.open("http://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/Software/%E9%9B%B6%E6%8D%B7%E4%BA%92%E8%81%94%E5%8D%B0%E5%88%B7%E7%89%88_v1.2.0.zip")},T=()=>{gG().then(()=>{a.success({content:"续订请求已发送,七个工作日内将会有专人联系",duration:3e3})}).catch(()=>{a.error({content:()=>t("Notice.error"),duration:3e3})})},C=()=>{if(F.tenantStatus===0&&F.renewalStatus===0){const N=document.getElementById("app");N&&N.classList.add("outrange"),a.info({action:()=>p.h(O.NFlex,{size:[15,15]},{default:()=>p.h(O.NButton,{class:"button-primary","on-click":()=>{T()}},{default:()=>"立即续订"})}),closable:!1,content:`您的订阅已于${_r(F.endTime)}到期,如需继续使用请联系我们`,title:"到期提示"})}if(F.tenantStatus===2&&F.renewalStatus===0){let N=`您的订阅即将于${_r(F.endTime)}到期,请联系管理员进行续订`,A=[p.h(O.NButton,{secondary:!0,"on-click":()=>{a.destroyAll()}},{default:()=>"了解"})];F.kind===99&&(N=`您的订阅即将于${_r(F.endTime)}到期,为保证持续有效的提供服务请立即续订`,A=[p.h(O.NButton,{secondary:!0,"on-click":()=>{a.destroyAll()}},{default:()=>"稍后提示我"}),p.h(O.NButton,{class:"button-primary","on-click":()=>{T()}},{default:()=>"立即续订"})]),a.info({action:()=>p.h(O.NFlex,{size:[15,15]},{default:()=>A}),closable:!1,content:N,title:"温馨提示"})}},x=()=>{n.push(K.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 N=document.body;N&&N.classList.add("outrange")}};return p.onMounted(()=>{C(),f(r.path),b()}),p.watch(()=>r.path,N=>{f(N),b()}),p.watch(()=>K.needUpdate,N=>{if(N){s.value=setInterval(()=>{l.value=l.value-1,l.value<=0&&(clearInterval(window.versionMonitor),clearInterval(s.value),s.value=void 0,A.destroy())},1e3);const A=a.create({title:"检测到系统有新版本需要更新",content:()=>`是否立即更新?更新需要重新加载页面,请确保所有项目都已经保存完毕。${l.value}秒后自动关闭`,meta:_r(new Date,"yyyy-MM-dd hh:mm:ss"),onClose:()=>{clearInterval(window.versionMonitor)},action:()=>p.h(O.NFlex,{justify:"space-between"},{default:()=>[p.h(O.NButton,{quaternary:!0,onClick:()=>{clearInterval(window.versionMonitor),A.destroy()}},{default:()=>"稍后"}),p.h(O.NButton,{type:"primary",onClick:()=>{window.location.reload()}},{default:()=>"更新"})]})})}}),{userStore:F,commonStore:K,activeMenu:i,platformOption:u,showMenu:o,fnSetLang:va,setDropdownMenu:w,renderMenuLabel:v,renderMenuLabel2:m,renderMenuIcon:g,indexClick:x,platformClick:y,dropdownClick:S,changeTheme:c,closeModel:_}}}),PG={class:"oc-header"},IG={class:"menu"};function LG(e,t,r,n,a,i){const o=p.resolveComponent("IconGridDots"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NDropdown"),c=p.resolveComponent("IconNavigation"),f=p.resolveComponent("NMenu"),d=p.resolveComponent("Pop"),h=p.resolveComponent("Message"),v=p.resolveComponent("IconWeatherMoon"),m=p.resolveComponent("IconWeatherSunny"),g=p.resolveComponent("IconUser"),y=p.resolveComponent("NDrawerContent"),_=p.resolveComponent("NDrawer");return p.openBlock(),p.createElementBlock("header",PG,[e.platformOption.length>1&&e.platformShow?(p.openBlock(),p.createBlock(u,{key:0,trigger:"hover",placement:"bottom-start",size:"huge",options:e.platformOption,onSelect:e.platformClick},{default:p.withCtx(()=>[p.createVNode(l,{style:{padding:"0 14px 0 0"}},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(o)]),_:1})]),_:1})]),_:1},8,["options","onSelect"])):p.createCommentVNode("",!0),p.createElementVNode("a",{href:"javascript:;",class:"logo",onClick:t[0]||(t[0]=(...w)=>e.indexClick&&e.indexClick(...w))}),e.commonStore.isPad?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("a",{key:1,href:"javascript:;",class:"platform-txt",onClick:t[1]||(t[1]=(...w)=>e.indexClick&&e.indexClick(...w))}," | "+p.toDisplayString(e.commonStore.platformName()),1)),p.createElementVNode("div",IG,[e.commonStore.isPad?(p.openBlock(),p.createBlock(l,{key:0,onClick:t[2]||(t[2]=w=>e.showMenu=!0)},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(c)]),_:1})]),_:1})):(p.openBlock(),p.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?(p.openBlock(),p.createBlock(d,{key:2})):p.createCommentVNode("",!0),e.message&&!e.commonStore.isPad?(p.openBlock(),p.createBlock(h,{key:3})):p.createCommentVNode("",!0),e.commonStore.isPad?p.createCommentVNode("",!0):(p.openBlock(),p.createBlock(l,{key:4,style:{"margin-left":"15px"},onClick:t[3]||(t[3]=w=>e.changeTheme(!e.commonStore.theme))},{icon:p.withCtx(()=>[p.withDirectives(p.createVNode(s,{color:"#8e54c8"},{default:p.withCtx(()=>[p.createVNode(v)]),_:1},512),[[p.vShow,e.commonStore.theme]]),p.withDirectives(p.createVNode(s,{color:"#f2a651"},{default:p.withCtx(()=>[p.createVNode(m)]),_:1},512),[[p.vShow,!e.commonStore.theme]])]),_:1})),e.commonStore.language&&!e.commonStore.isPad?(p.openBlock(),p.createBlock(l,{key:5,onClick:t[4]||(t[4]=w=>e.fnSetLang())},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.commonStore.lang==="zh-CN"?"EN":"中文"),1)]),_:1})):p.createCommentVNode("",!0),e.userStore.name?(p.openBlock(),p.createBlock(u,{key:6,trigger:"click",placement:"bottom-end",options:e.setDropdownMenu(),onSelect:e.dropdownClick},{default:p.withCtx(()=>[p.createVNode(l,{text:"",class:"user",title:e.userStore.name},p.createSlots({default:p.withCtx(()=>[e.commonStore.isPad?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createTextVNode(p.toDisplayString(e.userStore.name),1)],64))]),_:2},[e.commonStore.isPad?{name:"icon",fn:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(g)]),_:1})]),key:"0"}:void 0]),1032,["title"])]),_:1},8,["options","onSelect"])):p.createCommentVNode("",!0)]),p.createVNode(_,{show:e.showMenu,"onUpdate:show":t[5]||(t[5]=w=>e.showMenu=w)},{default:p.withCtx(()=>[p.createVNode(y,{title:e.commonStore.platformName(),"native-scrollbar":!1,closable:""},{default:p.withCtx(()=>[p.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 KS=Z(EG,[["render",LG]]),JS=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])}),cc("api/manager/job/submit",t)},OG=e=>new Promise((t,r)=>{const n=bi(e);at("api/manager/job/page",n).then(a=>{const i=wi(a);t(i)}).catch(()=>{r()})}),RG=(e,t={})=>iv(e,t,"blob"),BG=p.defineComponent({name:"OcImporter",components:{IconDismiss:$r,IconArrowClockwise:fa,IconMailInboxAdd:_i,IconCloudArrowDown:Zo,NModal:O.NModal,NCard:O.NCard,NFlex:O.NFlex,NUpload:O.NUpload,NButton:O.NButton,NTooltip:O.NTooltip,NIcon:O.NIcon,NDataTable:O.NDataTable},props:{show:{required:!0,type:Boolean,default:!1},data:{required:!0,type:Object,default:()=>({type:"",file:""})}},emits:["update:show"],setup(e,{emit:t}){const{t:r}=Ht.useI18n(),n=O.useNotification(),a=p.ref(!1),i=p.ref(!1),o=p.ref({page:1,pageCount:1,pageSize:30}),s=p.ref([{title:"#",width:60,align:"center",key:"index",render(m,g){return p.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")),p.h("span",{},{default:()=>g})}},{title:r("Common.importer.createTime"),key:"commitTime",width:200,render(m){return p.h("div",{},{default:()=>_r(m.commitTime,"yyyy-MM-dd hh:mm:ss")})}},{title:r("Common.action"),key:"action",align:"center",fixed:"right",width:120,render(m){return Gr([{type:"custom",disabled:m.jobStatus===0,onClick:()=>{window.open(m.downloadUrl)},icon:yi,color:"success",tooltipText:()=>r("Common.importer.btnDownload")}])}}]),l=p.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&&JS({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,OG({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})},v=()=>{e.data.steam?RG(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 p.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:v}}}),VG={class:"oc-header-download"};function $G(e,t,r,n,a,i){const o=p.resolveComponent("IconMailInboxAdd"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NUpload"),c=p.resolveComponent("IconCloudArrowDown"),f=p.resolveComponent("IconArrowClockwise"),d=p.resolveComponent("NTooltip"),h=p.resolveComponent("IconDismiss"),v=p.resolveComponent("NFlex"),m=p.resolveComponent("NDataTable"),g=p.resolveComponent("NCard"),y=p.resolveComponent("NModal");return p.openBlock(),p.createBlock(y,{show:e.modal,"onUpdate:show":t[0]||(t[0]=_=>e.modal=_),"on-mask-click":e.closeModel},{default:p.withCtx(()=>[p.createVNode(g,{style:{width:"900px"}},{header:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.$t("Common.importer.title"))+" ",1),p.createElementVNode("span",VG,p.toDisplayString(e.$t("Common.validDays")),1)]),"header-extra":p.withCtx(()=>[p.createVNode(v,{justify:"end",wrap:!1},{default:p.withCtx(()=>[p.createVNode(u,{"on-before-upload":e.beforeUpload,accept:".xlsx,.xls","show-file-list":!1},{default:p.withCtx(()=>[p.createVNode(l,null,{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(o)]),_:1})]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.importer.file")),1)]),_:1})]),_:1},8,["on-before-upload"]),p.renderSlot(e.$slots,"default"),p.createVNode(l,{onClick:e.downloadFile},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(c)]),_:1})]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.importer.download")),1)]),_:1},8,["onClick"]),p.createVNode(d,{trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{loading:e.loading,onClick:e.init},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(f)]),_:1})]),_:1},8,["loading","onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.refresh")),1)]),_:1}),p.createVNode(l,{quaternary:"",onClick:e.closeModel},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(h)]),_:1})]),_:1},8,["onClick"])]),_:3})]),default:p.withCtx(()=>[p.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 Wp=Z(BG,[["render",$G]]),FG=p.defineComponent({name:"OcLogin",components:{NTabs:O.NTabs,NTabPane:O.NTabPane,NForm:O.NForm,NFormItem:O.NFormItem,NDropdown:O.NDropdown,NInput:O.NInput,NButton:O.NButton,NGrid:O.NGrid,NGi:O.NGi,NIcon:O.NIcon,NPopover:O.NPopover,IconWeatherSunny:Yo,IconWeatherMoon:Uo},props:{bg:{type:String,default:void 0},version:{type:String,default:""},info:{required:!1,type:Object,default:()=>({href:"",text:""})}},setup(){const{t:e}=Ht.useI18n(),t=O.useNotification(),r=xt.useRouter(),n=p.ref(nt("loginTab","1")),a=p.ref(),i=p.ref(),o=p.ref(),s=p.ref(),l=p.ref(!1),u=p.ref(!1),c=p.ref(!1),f=p.ref(!1),d=p.ref({phone:"",name:"",password:""}),h=p.ref({name:{required:!0,message:()=>e("Common.login.userNameMessage"),trigger:"blur"},phone:{required:!0,validator:(L,R)=>R?/^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(R):!1,message:()=>e("Common.login.mobileMessage"),trigger:"blur"},password:{required:!0,message:()=>e("Common.login.passwordMessage"),trigger:"input"}}),v=p.ref([]),m=p.ref([]),g=p.ref([]),y=p.ref([]),_=()=>{const L=nt("loginOption",{}),R=[];Object.keys(L).forEach(B=>{R.push({label:B,key:B})}),v.value=R,m.value=R},w=()=>{const L=nt("phoneOption",{}),R=[];Object.keys(L).forEach(B=>{R.push({label:B,key:B})}),g.value=R,y.value=R},S=L=>{dt("token",L,0),Bu().then(R=>{t.success({content:()=>e("Notice.success"),duration:3e3}),R.kind!==1&&r.replace(K.platformUrl)}).catch(()=>{t.error({content:()=>e("Notice.error"),duration:3e3}),d.value.password="",u.value=!1})},T=()=>{var L,R;u.value||(u.value=!0,n.value==="0"?(L=i.value)==null||L.validate(B=>{B?u.value=!1:XS({type:n.value,...d.value}).then(V=>{const W=nt("loginOption",{});W[d.value.name]=!0,dt("loginOption",W,0),S(V)}).catch(()=>{d.value.password="",u.value=!1})}):(R=a.value)==null||R.validate(B=>{B?u.value=!1:XS({type:n.value,...d.value}).then(V=>{const W=nt("phoneOption",{});W[d.value.name]=!0,dt("phoneOption",W,0),S(V)}).catch(()=>{d.value.password="",u.value=!1})}))},C=L=>{d.value.name=L;const R=m.value.filter(B=>B.label.indexOf(L)>-1);v.value=R,R.length===0?f.value=!1:f.value=!0},x=L=>{d.value.name=L,f.value=!1,o.value.focus(),setTimeout(()=>{var R;(R=i.value)==null||R.restoreValidation()},80)},b=L=>{var R;v.value.length===0?f.value=!1:f.value=L,(R=i.value)==null||R.restoreValidation()},N=L=>{d.value.phone=L;const R=y.value.filter(B=>B.label.indexOf(L)>-1);g.value=R,R.length===0?c.value=!1:c.value=!0},A=L=>{d.value.phone=L,c.value=!1,s.value.focus(),setTimeout(()=>{var R;(R=a.value)==null||R.restoreValidation()},80)},D=L=>{var R;g.value.length===0?c.value=!1:c.value=L,(R=a.value)==null||R.restoreValidation()},k=L=>{l.value=L,Ci(L),dt("theme",L,0)},P=L=>{var R,B;n.value=L,d.value={phone:"",name:"",password:""},dt("loginTab",L,0),(R=i.value)==null||R.restoreValidation(),(B=a.value)==null||B.restoreValidation()},E=L=>p.h("div",{style:{position:"relative"}},{default:()=>[p.h("div",{},{default:()=>L.label}),p.h($r,{class:"oc-login-drop-menu",onclick:R=>{R.stopPropagation(),R.stopImmediatePropagation();const B=nt("loginOption",{});delete B[L.label],dt("loginOption",B,0),_();const V=d.value.name,W=m.value.filter(q=>q.label.indexOf(V)>-1);v.value=W}},{default:()=>""})]}),I=L=>p.h("div",{style:{position:"relative"}},{default:()=>[p.h("div",{},{default:()=>L.label}),p.h($r,{class:"oc-login-drop-menu",onclick:R=>{R.stopPropagation(),R.stopImmediatePropagation();const B=nt("phoneOption",{});delete B[L.label],dt("phoneOption",B,0),w();const V=d.value.name,W=y.value.filter(q=>q.label.indexOf(V)>-1);g.value=W}},{default:()=>""})]});return Vu(),da("token"),_(),w(),{tabs:n,commonStore:K,pwdRef:o,pwdPhoneRef:s,formRef:i,formPhoneRef:a,formValue:d,formRules:h,showPhoneDropdown:c,showNameDropdown:f,optionsName:v,optionsPhone:g,loading:u,theme:l,submit:T,tabChange:P,nameChange:C,phoneChange:N,changeTheme:k,fnSetLang:va,dropNameSelect:x,dropPhoneSelect:A,showDropdownNameChange:b,showDropdownPhoneChange:D,renderDropdownNameLabel:E,renderDropdownPhoneLabel:I}}}),zG={class:"oc-login"},GG=[p.createElementVNode("img",{src:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/login.png",alt:"logo",class:"oc-login-img"},null,-1)],HG={class:"oc-login-right"},WG={class:"oc-login-language"},UG=p.createElementVNode("div",{class:"oc-login-title"},null,-1),YG={class:"oc-login-platform"},qG={class:"oc-login-form"},jG=p.createElementVNode("br",null,null,-1),XG=p.createElementVNode("br",null,null,-1),ZG={class:"oc-login-submit"},KG=["href"],JG=p.createElementVNode("div",{class:"oc-google-play"},null,-1),QG=p.createElementVNode("img",{src:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/android_qr.png",alt:"AndroidQr",width:"300",height:"300"},null,-1),e9=p.createElementVNode("div",{class:"oc-app-store"},null,-1),t9=p.createElementVNode("img",{src:"https://partex-cloud-static.oss-cn-hangzhou.aliyuncs.com/ios_qr.png",alt:"iOSQr",width:"300",height:"300"},null,-1),r9={class:"oc-login-footer"},n9=p.createElementVNode("span",{style:{"font-family":"Arial, Helvetica, sans-serif"}},"©",-1),a9=p.createElementVNode("a",{href:"https://beian.miit.gov.cn/",target:"_blank",class:"oc-footer-record"}," 沪ICP备 18025935号-3 ",-1);function i9(e,t,r,n,a,i){const o=p.resolveComponent("IconWeatherMoon"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("IconWeatherSunny"),u=p.resolveComponent("NButton"),c=p.resolveComponent("NInput"),f=p.resolveComponent("NDropdown"),d=p.resolveComponent("NFormItem"),h=p.resolveComponent("NForm"),v=p.resolveComponent("NTabPane"),m=p.resolveComponent("NTabs"),g=p.resolveComponent("NPopover"),y=p.resolveComponent("NGi"),_=p.resolveComponent("NGrid");return p.openBlock(),p.createElementBlock("div",zG,[p.createElementVNode("div",{class:"oc-login-left",style:p.normalizeStyle(e.bg?`background-image: url(${e.bg})`:"")},GG,4),p.createElementVNode("div",HG,[p.createElementVNode("div",WG,[p.createVNode(u,{onClick:t[0]||(t[0]=w=>e.changeTheme(!e.theme))},{icon:p.withCtx(()=>[p.withDirectives(p.createVNode(s,{color:"#8e54c8"},{default:p.withCtx(()=>[p.createVNode(o)]),_:1},512),[[p.vShow,e.theme]]),p.withDirectives(p.createVNode(s,{color:"#f2a651"},{default:p.withCtx(()=>[p.createVNode(l)]),_:1},512),[[p.vShow,!e.theme]])]),_:1}),e.commonStore.language?(p.openBlock(),p.createBlock(u,{key:0,onClick:t[1]||(t[1]=w=>e.fnSetLang())},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.commonStore.lang==="zh-CN"?"EN":"中文"),1)]),_:1})):p.createCommentVNode("",!0)]),UG,p.createElementVNode("div",YG,p.toDisplayString(e.commonStore.platformName()),1),p.createElementVNode("div",qG,[p.createVNode(m,{value:e.tabs,"on-update:value":e.tabChange,type:"segment","justify-content":"end",animated:""},{default:p.withCtx(()=>[p.createVNode(v,{name:"1",tab:e.$t("Common.login.mobile")},{default:p.withCtx(()=>[jG,p.createVNode(h,{ref:"formPhoneRef",model:e.formValue,rules:e.formRules,"show-require-mark":!1,"label-placement":"top",onKeyup:p.withKeys(e.submit,["enter"])},{default:p.withCtx(()=>[p.createVNode(d,{label:e.$t("Common.login.mobile"),path:"phone"},{default:p.withCtx(()=>[p.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:p.withCtx(()=>[p.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"]),p.createVNode(d,{label:e.$t("Common.login.password"),path:"password"},{default:p.withCtx(()=>[p.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"]),p.createVNode(v,{name:"0",tab:e.$t("Common.login.userName")},{default:p.withCtx(()=>[XG,p.createVNode(h,{ref:"formRef",model:e.formValue,rules:e.formRules,"show-require-mark":!1,"label-placement":"top",onKeyup:p.withKeys(e.submit,["enter"])},{default:p.withCtx(()=>[p.createVNode(d,{label:e.$t("Common.login.userName"),path:"name"},{default:p.withCtx(()=>[p.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:p.withCtx(()=>[p.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"]),p.createVNode(d,{label:e.$t("Common.login.password"),path:"password"},{default:p.withCtx(()=>[p.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"]),p.createElementVNode("div",ZG,[p.createVNode(u,{loading:e.loading,class:"button-primary",onClick:e.submit},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.$t("Common.login.in")),1)]),_:1},8,["loading","onClick"])]),e.info.href?(p.openBlock(),p.createElementBlock("a",{key:0,href:e.info.href,class:"oc-login-other"},p.toDisplayString(e.info.text),9,KG)):p.createCommentVNode("",!0),p.createVNode(_,{"x-gap":"15",cols:2},{default:p.withCtx(()=>[p.createVNode(y,null,{default:p.withCtx(()=>[p.createVNode(g,{trigger:"hover",placement:"top"},{trigger:p.withCtx(()=>[JG]),default:p.withCtx(()=>[QG]),_:1})]),_:1}),p.createVNode(y,null,{default:p.withCtx(()=>[p.createVNode(g,{trigger:"hover",placement:"top"},{trigger:p.withCtx(()=>[e9]),default:p.withCtx(()=>[t9]),_:1})]),_:1})]),_:1})]),p.createElementVNode("footer",r9,[p.createTextVNode(" Copyright "),n9,p.createTextVNode(" 2020-2024 "+p.toDisplayString(e.$t("Common.title"))+" ",1),e.version?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createTextVNode("v"+p.toDisplayString(e.version)+" ",1)],64)):p.createCommentVNode("",!0),a9])])])}const QS=Z(FG,[["render",i9]]),o9=p.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=p.ref(!1),r=p.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),v=s+(l-s)*n(h/u);if(h===u){r.value=a(Number(e.value)),t.value=!1;return}const m=Number(v.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 p.watch(()=>e.value,(s,l)=>{o(Number(l)||0,Number(s))}),p.onMounted(()=>{o()}),{displayedValueRef:r}}});function s9(e,t,r,n,a,i){return p.toDisplayString(e.displayedValueRef)}const Up=Z(o9,[["render",s9]]),l9=p.defineComponent({name:"OcLogo",components:{NGrid:O.NGrid,NGi:O.NGi,NDivider:O.NDivider,NumberRoll:Up},props:{text:{type:String,default:"智能效率监测平台"}},setup(){const e=p.ref(Date.now()),t=p.ref(void 0),r=n=>_r(n,"yyyy-MM-dd hh:mm:ss");return p.onMounted(()=>{t.value=setInterval(()=>{e.value=Date.now()},1e3)}),p.onBeforeUnmount(()=>{clearInterval(t.value),t.value=void 0}),{time:e,numFormat:r}}}),u9=p.createElementVNode("div",{class:"oc-logo"},null,-1);function c9(e,t,r,n,a,i){const o=p.resolveComponent("NGi"),s=p.resolveComponent("NDivider"),l=p.resolveComponent("NumberRoll"),u=p.resolveComponent("NGrid");return p.openBlock(),p.createBlock(u,{cols:5,class:"oc-dashboard-logo"},{default:p.withCtx(()=>[p.createVNode(o,{span:"1",class:"flex-center-left"},{default:p.withCtx(()=>[u9]),_:1}),p.createVNode(o,{span:"3",class:"flex-center"},{default:p.withCtx(()=>[p.createVNode(s,{class:"oc-dashboard-title-show"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.text),1)]),_:1})]),_:1}),p.createVNode(o,{span:"1",class:"flex-center-right oc-time"},{default:p.withCtx(()=>[p.createVNode(l,{value:e.time,format:e.numFormat},null,8,["value","format"])]),_:1})]),_:1})}const eC=Z(l9,[["render",c9]]);O.darkTheme.common.cardColor="#32323b",O.darkTheme.common.primaryColor="#b274ef",O.darkTheme.common.primaryColorHover="#b274ef",O.darkTheme.common.borderRadius="16px",O.darkTheme.common.borderRadiusSmall="8px",O.darkTheme.DataTable.tdColor="#2d2d31";const tC={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"}},rC=O.darkTheme,f9=p.defineComponent({name:"OcMain",components:{NConfigProvider:O.NConfigProvider,NDialogProvider:O.NDialogProvider,NNotificationProvider:O.NNotificationProvider},props:{hljs:{type:Object,default:void 0}},setup(){return{zhCN:O.zhCN,dateZhCN:O.dateZhCN,commonStore:K,lightTheme:tC,darkTheme:rC}}});function h9(e,t,r,n,a,i){const o=p.resolveComponent("NNotificationProvider"),s=p.resolveComponent("NDialogProvider"),l=p.resolveComponent("NConfigProvider");return p.openBlock(),p.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:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(o,{placement:"top"},{default:p.withCtx(()=>[p.renderSlot(e.$slots,"default")]),_:3})]),_:3})]),_:3},8,["theme","theme-overrides","locale","date-locale","hljs"])}const nC=Z(f9,[["render",h9]]),d9=e=>{const t=JSON.parse(JSON.stringify(e));return t.oldPassword=Ho(t.oldPassword),t.newPassword=Ho(t.newPassword),t.comfirmPassword=Ho(t.comfirmPassword),at("api/auth/user/modifyPassword",t)},p9=e=>at("api/auth/user/update",e),v9=p.defineComponent({name:"OcMy",components:{NGrid:O.NGrid,NGi:O.NGi,NForm:O.NForm,NFormItem:O.NFormItem,NInput:O.NInput,NButton:O.NButton},setup(){const{t:e}=Ht.useI18n(),t=O.useNotification(),r=p.ref(),n=p.ref(),a=p.ref(!1),i=p.ref({oldPassword:"",newPassword:"",comfirmPassword:""}),o=p.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=p.ref(F),l=p.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:d9(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:p9(s.value).then(()=>{t.success({content:()=>e("Notice.success"),duration:3e3}),a.value=!1,Bu().catch(()=>null)}).catch(()=>{a.value=!1})}))}}}}),g9={class:"com-card"},m9={class:"com-title"},y9=p.createElementVNode("br",null,null,-1),_9={class:"text-right"},w9={class:"com-card"},b9={class:"com-title"},S9=p.createElementVNode("br",null,null,-1),C9={class:"text-right"};function T9(e,t,r,n,a,i){const o=p.resolveComponent("NInput"),s=p.resolveComponent("NFormItem"),l=p.resolveComponent("NForm"),u=p.resolveComponent("NButton"),c=p.resolveComponent("NGi"),f=p.resolveComponent("NGrid");return p.openBlock(),p.createBlock(f,{"x-gap":"15","y-gap":"15",cols:2},{default:p.withCtx(()=>[p.createVNode(c,{span:"1"},{default:p.withCtx(()=>[p.createElementVNode("div",g9,[p.createElementVNode("div",m9,p.toDisplayString(e.$t("Common.my.title")),1),y9,p.createVNode(l,{ref:"formRef",model:e.formValue,rules:e.formRules,"label-placement":"top"},{default:p.withCtx(()=>[p.createVNode(s,{label:e.$t("Common.my.tenantCode"),path:"tenantLoginCode"},{default:p.withCtx(()=>[p.createVNode(o,{value:e.formValue.tenantLoginCode,"onUpdate:value":t[0]||(t[0]=d=>e.formValue.tenantLoginCode=d),readonly:""},null,8,["value"])]),_:1},8,["label"]),p.createVNode(s,{label:e.$t("Common.my.tenantName"),path:"tenantName"},{default:p.withCtx(()=>[p.createVNode(o,{value:e.formValue.tenantName,"onUpdate:value":t[1]||(t[1]=d=>e.formValue.tenantName=d),readonly:""},null,8,["value"])]),_:1},8,["label"]),p.createVNode(s,{label:e.$t("Common.my.name"),path:"name"},{default:p.withCtx(()=>[p.createVNode(o,{value:e.formValue.name,"onUpdate:value":t[2]||(t[2]=d=>e.formValue.name=d),readonly:""},null,8,["value"])]),_:1},8,["label"]),p.createVNode(s,{label:e.$t("Common.my.email"),path:"email"},{default:p.withCtx(()=>[p.createVNode(o,{value:e.formValue.email,"onUpdate:value":t[3]||(t[3]=d=>e.formValue.email=d),placeholder:"邮箱"},null,8,["value"])]),_:1},8,["label"]),p.createVNode(s,{label:e.$t("Common.my.realName"),path:"realName"},{default:p.withCtx(()=>[p.createVNode(o,{value:e.formValue.realName,"onUpdate:value":t[4]||(t[4]=d=>e.formValue.realName=d),placeholder:"真实姓名"},null,8,["value"])]),_:1},8,["label"]),p.createVNode(s,{label:e.$t("Common.my.phone"),path:"phone"},{default:p.withCtx(()=>[p.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"]),p.createElementVNode("div",_9,[p.createVNode(u,{loading:e.loading,class:"button-primary",onClick:e.formSubmit},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.$t("Common.my.submit")),1)]),_:1},8,["loading","onClick"])])])]),_:1}),p.createVNode(c,{span:"1"},{default:p.withCtx(()=>[p.createElementVNode("div",w9,[p.createElementVNode("div",b9,p.toDisplayString(e.$t("Common.my.password")),1),S9,p.createVNode(l,{ref:"pwdRef",model:e.pwdValue,rules:e.pwdRules,"label-placement":"top"},{default:p.withCtx(()=>[p.createVNode(s,{label:e.$t("Common.my.oldPassword"),path:"oldPassword"},{default:p.withCtx(()=>[p.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"]),p.createVNode(s,{label:e.$t("Common.my.newPassword"),path:"newPassword"},{default:p.withCtx(()=>[p.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"]),p.createVNode(s,{label:e.$t("Common.my.checkPassword"),path:"comfirmPassword"},{default:p.withCtx(()=>[p.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"]),p.createElementVNode("div",C9,[p.createVNode(u,{loading:e.loading,class:"button-primary",onClick:e.pwdSubmit},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.$t("Common.my.submit")),1)]),_:1},8,["loading","onClick"])])])]),_:1})]),_:1})}const aC=Z(v9,[["render",T9]]);function N9(e){return new Promise((t,r)=>{at("api/manager/factory-params/detail",{keyName:e}).then(n=>{const a=JSON.parse(n.valueJson??"[]");t(a)}).catch(()=>{r()})})}const x9=p.defineComponent({name:"OcReport",components:{NFlex:O.NFlex,NDataTable:O.NDataTable,NDatePicker:O.NDatePicker,NInputGroup:O.NInputGroup,NInputGroupLabel:O.NInputGroupLabel},setup(){const{t:e}=Ht.useI18n(),t=p.ref(!0),r=O.useNotification(),n=p.ref([{title:"#",width:60,align:"center",key:"index",render(l,u){return p.h("span",{},{default:()=>u+1})}},{title:"名称",key:"name"},{title:"备注",key:"content"},{title:"操作",key:"action",align:"center",fixed:"right",width:120,render(l){return Gr([{type:"custom",onClick:()=>{o(l.key)},icon:yi,color:"success",tooltipText:"下载"}])}}]),a=p.ref([]),i=p.ref([Date.now(),Date.now()]),o=l=>{t.value=!0,JS({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}),fc(!0)}).catch(()=>{t.value=!1,r.error({content:()=>e("Notice.error"),duration:3e3})})},s=l=>l>Date.now();return N9("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}}}),D9={class:"com-card"},A9=p.createElementVNode("br",null,null,-1);function k9(e,t,r,n,a,i){const o=p.resolveComponent("NInputGroupLabel"),s=p.resolveComponent("NDatePicker"),l=p.resolveComponent("NInputGroup"),u=p.resolveComponent("NFlex"),c=p.resolveComponent("n-data-table");return p.openBlock(),p.createElementBlock("div",D9,[p.createVNode(u,{justify:"end"},{default:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(o,{class:"oc-group-label"},{default:p.withCtx(()=>[p.createTextVNode("日期")]),_:1}),p.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}),A9,p.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 iC=Z(x9,[["render",k9]]);var M9=rr,E9=function(){return M9.Date.now()},P9=E9,I9=/\s/;function L9(e){for(var t=e.length;t--&&I9.test(e.charAt(t)););return t}var O9=L9,R9=O9,B9=/^\s+/;function V9(e){return e&&e.slice(0,R9(e)+1).replace(B9,"")}var $9=V9,F9=$o,z9=vi,G9="[object Symbol]";function H9(e){return typeof e=="symbol"||z9(e)&&F9(e)==G9}var W9=H9,U9=$9,oC=gn,Y9=W9,sC=NaN,q9=/^[-+]0x[0-9a-f]+$/i,j9=/^0b[01]+$/i,X9=/^0o[0-7]+$/i,Z9=parseInt;function K9(e){if(typeof e=="number")return e;if(Y9(e))return sC;if(oC(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oC(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=U9(e);var r=j9.test(e);return r||X9.test(e)?Z9(e.slice(2),r?2:8):q9.test(e)?sC:+e}var J9=K9,Q9=gn,Yp=P9,lC=J9,eH="Expected a function",tH=Math.max,rH=Math.min;function nH(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(eH);t=lC(t)||0,Q9(r)&&(c=!!r.leading,f="maxWait"in r,i=f?tH(lC(r.maxWait)||0,t):i,d="trailing"in r?!!r.trailing:d);function h(C){var x=n,b=a;return n=a=void 0,u=C,o=e.apply(b,x),o}function v(C){return u=C,s=setTimeout(y,t),c?h(C):o}function m(C){var x=C-l,b=C-u,N=t-x;return f?rH(N,i-b):N}function g(C){var x=C-l,b=C-u;return l===void 0||x>=t||x<0||f&&b>=i}function y(){var C=Yp();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:_(Yp())}function T(){var C=Yp(),x=g(C);if(n=arguments,a=this,l=C,x){if(s===void 0)return v(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 uC=nH;const cC=Cp(uC);function qp(e,t=1e3){const r=cC(e,t);return{run:r,cancel:r.cancel,flush:r.flush}}var aH=uC,iH=gn,oH="Expected a function";function sH(e,t,r){var n=!0,a=!0;if(typeof e!="function")throw new TypeError(oH);return iH(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),aH(e,t,{leading:n,maxWait:t,trailing:a})}var lH=sH;const uH=Cp(lH);function cH(e,t=1e3){const r=p.ref(e),n=p.computed(()=>uH((...a)=>r.value([...a]),t));return p.onUnmounted(()=>{n.value.cancel()}),{run:n.value,cancel:n.value.cancel,flush:n.value.flush}}function fH(e,t){const r=()=>nt(e,t==null?void 0:t.defaultValue);return[p.ref(r()),i=>{typeof i>"u"?da(e):dt(e,i,(t==null?void 0:t.expired)||"1 Day")}]}function hH(e,t,r){const n=`useQuery-${e}`,a=p.ref(),i=p.ref(),o=p.ref(),s=p.ref(!1),l=p.ref("idle"),u=p.ref(),c=p.ref(0),f=p.ref(0),d=async()=>{if(!s.value){m(!0,"loading");try{let S;if(Array.isArray(t))S=await new Promise((C,x)=>{a.value=x,Promise.all(t.map(b=>b.call(null))).then(b=>{C(b)}).catch(b=>{x(b)})});else{const T=new Promise((C,x)=>{a.value=x});S=await Promise.race([T,t()])}m(!1,"success"),v(S),dt(n,S,0)}catch(S){g(S),m(!1,"error"),c.value>0&&(c.value=c.value-1,setTimeout(()=>{d()},f.value))}}},{run:h}=qp(d,300),v=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=()=>{av(),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&&v(r.initialData()),r===void 0||r.initialData===void 0||r.cache===void 0||r.cache===!0)try{const S=nt(n,!1);S&&v(S)}catch{v(!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)),p.onBeforeUnmount(()=>{w()}),{status:l,data:i,loading:s,error:u,stopPollingInterval:w,cancel:y,refetch:_}}const dH=p.defineComponent({name:"OcScan",components:{NButton:O.NButton,NModal:O.NModal,NCard:O.NCard,NFlex:O.NFlex,NIcon:O.NIcon,IconDismiss:$r},emits:["on-update:value"],setup(e,{emit:t}){const r=p.ref(),n=p.ref(),a=p.ref(!1),i=p.ref(!1),o=O.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:x,data:b}=C;f(x.topLeftCorner,x.topRightCorner),f(x.topRightCorner,x.bottomRightCorner),f(x.bottomRightCorner,x.bottomLeftCorner),f(x.bottomLeftCorner,x.topLeftCorner),t("on-update:value",b),v()}}catch{i.value=!1,o.error({content:"扫描失败,请重试",duration:3e3})}}d()},v=()=>{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,p.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}=qp(()=>{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 p.onMounted(()=>{window.addEventListener("keypress",S)}),p.onBeforeUnmount(()=>{window.removeEventListener("keypress",S),v()}),{videoRef:r,inputRef:n,modal:a,loading:i,doScan:g,closeAll:v}}}),pH=p.createElementVNode("div",{class:"oc-scan-canvas-main"},[p.createElementVNode("canvas",{id:"oc-scan-canvas",width:"1280",height:"720"})],-1),vH={class:"oc-scan-video"},gH={ref:"videoRef",playsInline:""},mH={ref:"inputRef",type:"text",class:"oc-scan-input"};function yH(e,t,r,n,a,i){const o=p.resolveComponent("NButton"),s=p.resolveComponent("IconDismiss"),l=p.resolveComponent("NIcon"),u=p.resolveComponent("NFlex"),c=p.resolveComponent("NCard"),f=p.resolveComponent("NModal");return p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createVNode(o,{type:"primary",loading:e.loading,onClick:e.doScan},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.$t("Common.scan.label")),1)]),_:1},8,["loading","onClick"]),p.createVNode(f,{show:e.modal,"onUpdate:show":t[0]||(t[0]=d=>e.modal=d),"on-mask-click":e.closeAll},{default:p.withCtx(()=>[p.createVNode(c,{style:{width:"1320px"}},{header:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(e.$t("Common.scan.label")),1)]),"header-extra":p.withCtx(()=>[p.createVNode(u,{justify:"end"},{default:p.withCtx(()=>[p.createVNode(o,{quaternary:"",onClick:e.closeAll},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(s)]),_:1})]),_:1},8,["onClick"])]),_:1})]),default:p.withCtx(()=>[pH]),_:1})]),_:1},8,["show","on-mask-click"]),p.createElementVNode("div",vH,[p.createElementVNode("video",gH,null,512)]),p.createElementVNode("input",mH,null,512)],64)}const fC=Z(dH,[["render",yH]]),_H=p.defineComponent({name:"OcTimePickRange",components:{NInputGroup:O.NInputGroup,NTimePicker:O.NTimePicker},props:{value:{required:!0,type:Array,default:()=>[]},format:{required:!1,type:String,default:"HH:mm"},disabled:{required:!1,type:Boolean,default:!1},clearable:{required:!1,type:Boolean,default:!1}},emits:["on-update:value"],setup(e,{emit:t}){const r=p.ref(null),n=p.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 p.onMounted(()=>{e.value&&(r.value=e.value[0],n.value=e.value[1])}),p.watch(()=>e.value,o=>{o&&(r.value=o[0],n.value=o[1])}),{startTime:r,endTime:n,updateStartValue:a,updateEndValue:i}}}),wH=p.createElementVNode("span",{class:"oc-time-picker-separator"},"-",-1);function bH(e,t,r,n,a,i){const o=p.resolveComponent("NTimePicker"),s=p.resolveComponent("NInputGroup");return p.openBlock(),p.createBlock(s,{class:"oc-time-picker"},{default:p.withCtx(()=>[p.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"]),wH,p.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 SH=Z(_H,[["render",bH]]),CH=p.defineComponent({name:"OcSearchBarItem",components:{NIcon:O.NIcon,NButton:O.NButton,NGrid:O.NGrid,NGridItem:O.NGridItem,NInput:O.NInput,NInputNumber:O.NInputNumber,NSelect:O.NSelect,NTooltip:O.NTooltip,NPopover:O.NPopover,NDataTable:O.NDataTable,NCascader:O.NCascader,NTreeSelect:O.NTreeSelect,NDatePicker:O.NDatePicker,NInputGroup:O.NInputGroup,NInputGroupLabel:O.NInputGroupLabel,OcTimePickRange:SH,IconArrowDown:Jo,IconArrowUp:ec},props:{cols:{type:Number,default:4},small:{type:Boolean,default:!1}},setup(e,{expose:t,slots:r}){const{t:n}=Ht.useI18n(),a=p.ref(!!r.header),i=p.ref({}),o=p.ref(!0),s=p.ref(!1),l=p.ref(0),u=p.ref({}),c=p.ref({}),f=p.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(x=>String(x.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},v=w=>{var b;Object.keys(w).forEach(N=>{var D,k,P;const A=w[N];A.show=A.show??!0,A.type==="dropdown"&&(u.value[N]={display:!1,options:A.options}),A.type==="select"&&A.fallbackOption&&A.multiple&&c.value[N].length===0&&(c.value[N]=[""]),A.type==="group"&&(c.value[N]||(c.value[N]=A.options[0].value),A.inputTemp=A.input.options[c.value[N]?c.value[N]:A.options[0].value],((D=A.inputTemp)==null?void 0:D.type)==="select"&&((k=A.inputTemp)!=null&&k.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 N=0;N<=T;N++)(b=w[C[N]])!=null&&b.show&&(S=S+1);let x=T-S>=0?T-S-1:-1;a.value&&(x=x-1,S=S+1),l.value=x,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:v}),{more:s,offset:l,dataList:i,collapsed:o,searchData:c,dropDisplay:u,columnsPopover:f,isSlotHeader:a,showMore:g,setValues:_,dropValueChange:h,dropDisplayToggle:m,getDefaultDate:ha,selectFallback:d}}}),TH={class:"oc-search-bar-line"},NH={class:"oc-search-bar-title"},xH={key:0,class:"oc-search-action-more"};function DH(e,t,r,n,a,i){const o=p.resolveComponent("NGridItem"),s=p.resolveComponent("NInputGroupLabel"),l=p.resolveComponent("NInput"),u=p.resolveComponent("NInputNumber"),c=p.resolveComponent("NSelect"),f=p.resolveComponent("NDataTable"),d=p.resolveComponent("NPopover"),h=p.resolveComponent("NCascader"),v=p.resolveComponent("NTreeSelect"),m=p.resolveComponent("OcTimePickRange"),g=p.resolveComponent("NDatePicker"),y=p.resolveComponent("NInputGroup"),_=p.resolveComponent("NGrid"),w=p.resolveComponent("IconArrowDown"),S=p.resolveComponent("NIcon"),T=p.resolveComponent("IconArrowUp"),C=p.resolveComponent("NButton"),x=p.resolveComponent("NTooltip");return p.openBlock(),p.createElementBlock("div",TH,[p.createVNode(_,{"x-gap":"15","y-gap":"15",cols:e.small?1:e.cols,"collapsed-rows":1,collapsed:e.collapsed,responsive:"screen","item-responsive":""},{default:p.withCtx(()=>[e.isSlotHeader?(p.openBlock(),p.createBlock(o,{key:0,span:e.small?1:`${e.cols} s:2 l:1`},{default:p.withCtx(()=>[p.createElementVNode("div",NH,[p.renderSlot(e.$slots,"header")])]),_:3},8,["span"])):p.createCommentVNode("",!0),e.offset>-1?(p.openBlock(),p.createBlock(o,{key:1,offset:e.offset},null,8,["offset"])):p.createCommentVNode("",!0),(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(e.dataList,(b,N,A)=>(p.openBlock(),p.createBlock(o,{key:`${N}_${A}`,span:b.show?e.small?1:b.span?b.span:`${e.cols} s:2 l:1`:0},{default:p.withCtx(()=>[b.type!=="group"?(p.openBlock(),p.createBlock(y,{key:0},{default:p.withCtx(()=>{var D;return[p.createVNode(s,{class:"oc-group-label"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(typeof b.title=="string"?b.title:b.title&&b.title()),1)]),_:2},1024),b.type==="input"?(p.openBlock(),p.createBlock(l,{key:0,value:e.searchData[N],"onUpdate:value":k=>e.searchData[N]=k,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":k=>{b.updateValue?b.updateValue(k.trim(),JSON.parse(JSON.stringify(e.searchData)),P=>e.setValues(P)):e.searchData[N]=k.trim()},clearable:b.clearable??!0},null,8,["value","onUpdate:value","disabled","placeholder","on-update:value","clearable"])):p.createCommentVNode("",!0),b.type==="number"?(p.openBlock(),p.createBlock(u,{key:1,value:e.searchData[N],"onUpdate:value":k=>e.searchData[N]=k,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":k=>{b.updateValue?b.updateValue(k,JSON.parse(JSON.stringify(e.searchData)),P=>e.setValues(P)):e.searchData[N]=k},clearable:b.clearable??!0},p.createSlots({_:2},[b!=null&&b.suffix?{name:"suffix",fn:p.withCtx(()=>[p.createTextVNode(p.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"])):p.createCommentVNode("",!0),b.type==="select"?(p.openBlock(),p.createBlock(c,{key:2,value:e.searchData[N],"onUpdate:value":k=>e.searchData[N]=k,"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":k=>{let P=k,E=k;if(b.multiple){let I=k.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[N]=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"])):p.createCommentVNode("",!0),b.type==="dropdown"?(p.openBlock(),p.createBlock(d,{key:3,width:"trigger",trigger:"manual",style:{padding:"5px"},"show-arrow":!1,show:(D=e.dropDisplay[N])==null?void 0:D.display,"on-clickoutside":()=>{e.dropDisplay[N].display=!1}},{trigger:p.withCtx(()=>[p.createVNode(l,{value:e.searchData[N],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":k=>{e.searchData[N]=k.trim(),e.dropValueChange(N,k.trim(),b)},onClick:k=>e.dropDisplayToggle(N),onFocus:k=>e.dropDisplayToggle(N)},null,8,["value","disabled","placeholder","clearable","on-update:value","onClick","onFocus"])]),default:p.withCtx(()=>{var k;return[p.createVNode(f,{columns:e.columnsPopover,data:((k=e.dropDisplay[N])==null?void 0:k.options)||[],"max-height":300,bordered:!1,"bottom-bordered":!1,"row-props":P=>({style:"cursor: pointer;",onClick:()=>{e.searchData[N]=P.value,e.dropDisplay[N].display=!1}}),size:"small","virtual-scroll":"",class:"oc-popover-table"},null,8,["columns","data","row-props"])]}),_:2},1032,["show","on-clickoutside"])):p.createCommentVNode("",!0),b.type==="cascader"?(p.openBlock(),p.createBlock(h,{key:4,value:e.searchData[N],"onUpdate:value":k=>e.searchData[N]=k,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":k=>{b.updateValue?b.updateValue(k,JSON.parse(JSON.stringify(e.searchData)),P=>e.setValues(P)):e.searchData[N]=k},clearable:b.clearable??!0,"max-tag-count":"responsive",filterable:""},null,8,["value","onUpdate:value","disabled","placeholder","options","check-strategy","multiple","on-update:value","clearable"])):p.createCommentVNode("",!0),b.type==="treeSelect"?(p.openBlock(),p.createBlock(v,{key:5,value:e.searchData[N],"onUpdate:value":k=>e.searchData[N]=k,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":k=>{b.updateValue?b.updateValue(k,JSON.parse(JSON.stringify(e.searchData)),P=>e.setValues(P)):e.searchData[N]=k},clearable:b.clearable??!0,"max-tag-count":"responsive",filterable:""},null,8,["value","onUpdate:value","disabled","placeholder","options","check-strategy","multiple","on-update:value","clearable"])):p.createCommentVNode("",!0),b.type==="timePicker"?(p.openBlock(),p.createBlock(m,{key:6,value:e.searchData[N],"onUpdate:value":k=>e.searchData[N]=k,disabled:b==null?void 0:b.disabled,"onOnUpdate:value":k=>{b.updateValue?b.updateValue(k,JSON.parse(JSON.stringify(e.searchData)),P=>e.setValues(P)):e.searchData[N]=[...k]},format:b==null?void 0:b.format,clearable:b.clearable??!0},null,8,["value","onUpdate:value","disabled","onOnUpdate:value","format","clearable"])):p.createCommentVNode("",!0),b.type==="datePicker"?(p.openBlock(),p.createBlock(g,{key:7,value:e.searchData[N],"onUpdate:value":k=>e.searchData[N]=k,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":k=>{b.updateValue?b.updateValue(k,JSON.parse(JSON.stringify(e.searchData)),P=>e.setValues(P)):e.searchData[N]=k},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"])):p.createCommentVNode("",!0)]}),_:2},1024)):p.createCommentVNode("",!0),b.type==="group"?(p.openBlock(),p.createBlock(y,{key:1},{default:p.withCtx(()=>{var D,k,P,E,I,L,R,B,V,W,q,Q,ue,z,he,ce,Me,He,Ie,Ae,re,ee,ht,Le,Nt,Gt,mn,Fu,Br,zu,yn,zo,mi;return[p.createVNode(c,{value:e.searchData[N],"onUpdate:value":Ce=>e.searchData[N]=Ce,options:b.options,"show-checkmark":!1,style:p.normalizeStyle(b.width?typeof b.width=="number"?{width:`${b.width}px`}:{width:b.width}:{}),"on-update:value":Ce=>{if(b.inputTemp=b.input.options[Ce],b.inputTemp.type==="datePicker"){let Be=0;(b.inputTemp.dateType.indexOf("date")>-1||b.inputTemp.dateType.indexOf("quarter")>-1||b.inputTemp.dateType.indexOf("week")>-1)&&(Be=e.getDefaultDate()),b.inputTemp.dateType.indexOf("month")>-1&&(Be=e.getDefaultDate(void 0,void 0,1)),b.inputTemp.dateType.indexOf("year")>-1&&(Be=e.getDefaultDate(void 0,1,1)),b.inputTemp.dateType.indexOf("range")>-1&&(Be=[Be,Be]),e.searchData[b.input.key]=Be}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(Ce,JSON.parse(JSON.stringify(e.searchData)),Be=>e.setValues(Be)):e.searchData[N]=Ce},class:"oc-group-select",placeholder:" "},null,8,["value","onUpdate:value","options","style","on-update:value"]),((D=b.inputTemp)==null?void 0:D.type)==="input"?(p.openBlock(),p.createBlock(l,{key:0,value:e.searchData[b.input.key],"onUpdate:value":Ce=>e.searchData[b.input.key]=Ce,disabled:(k=b.inputTemp)==null?void 0:k.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":Ce=>{var Be;(Be=b.inputTemp)!=null&&Be.updateValue?b.inputTemp.updateValue(Ce.trim(),JSON.parse(JSON.stringify(e.searchData)),Vr=>e.setValues(Vr)):e.searchData[b.input.key]=Ce.trim()},clearable:b.inputTemp.clearable??!0,style:{flex:"1"}},null,8,["value","onUpdate:value","disabled","placeholder","on-update:value","clearable"])):p.createCommentVNode("",!0),((R=b.inputTemp)==null?void 0:R.type)==="number"?(p.openBlock(),p.createBlock(u,{key:1,value:e.searchData[b.input.key],"onUpdate:value":Ce=>e.searchData[b.input.key]=Ce,disabled:(B=b.inputTemp)==null?void 0:B.disabled,placeholder:typeof((V=b.inputTemp)==null?void 0:V.placeholder)=="string"?(W=b.inputTemp)==null?void 0:W.placeholder:((q=b.inputTemp)==null?void 0:q.placeholder)&&((Q=b.inputTemp)==null?void 0:Q.placeholder()),min:(ue=b.inputTemp)==null?void 0:ue.min,max:(z=b.inputTemp)==null?void 0:z.max,step:((he=b.inputTemp)==null?void 0:he.step)||1,"show-button":((ce=b.inputTemp)==null?void 0:ce.showButton)||!0,"update-value-on-input":!1,validator:(Me=b.inputTemp)==null?void 0:Me.validator,"on-update:value":Ce=>{var Be;(Be=b.inputTemp)!=null&&Be.updateValue?b.inputTemp.updateValue(Ce,JSON.parse(JSON.stringify(e.searchData)),Vr=>e.setValues(Vr)):e.searchData[b.input.key]=Ce},clearable:b.inputTemp.clearable??!0,style:{flex:"1"}},p.createSlots({_:2},[(He=b.inputTemp)!=null&&He.suffix?{name:"suffix",fn:p.withCtx(()=>{var Ce;return[p.createTextVNode(p.toDisplayString((Ce=b.inputTemp)==null?void 0:Ce.suffix),1)]}),key:"0"}:void 0]),1032,["value","onUpdate:value","disabled","placeholder","min","max","step","show-button","validator","on-update:value","clearable"])):p.createCommentVNode("",!0),((Ie=b.inputTemp)==null?void 0:Ie.type)==="datePicker"?(p.openBlock(),p.createBlock(g,{key:2,value:e.searchData[b.input.key],"onUpdate:value":Ce=>e.searchData[b.input.key]=Ce,disabled:(Ae=b.inputTemp)==null?void 0:Ae.disabled,placeholder:typeof((re=b.inputTemp)==null?void 0:re.placeholder)=="string"?(ee=b.inputTemp)==null?void 0:ee.placeholder:((ht=b.inputTemp)==null?void 0:ht.placeholder)&&((Le=b.inputTemp)==null?void 0:Le.placeholder()),type:b.inputTemp.dateType,format:(Nt=b.inputTemp)==null?void 0:Nt.format,"is-date-disabled":(Gt=b.inputTemp)==null?void 0:Gt.isDateDisabled,shortcuts:(mn=b.inputTemp)==null?void 0:mn.shortcuts,"update-value-on-close":b.inputTemp.dateType!=="year","on-update:value":Ce=>{var Be;(Be=b.inputTemp)!=null&&Be.updateValue?b.inputTemp.updateValue(Ce,JSON.parse(JSON.stringify(e.searchData)),Vr=>e.setValues(Vr)):e.searchData[b.input.key]=Ce},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"])):p.createCommentVNode("",!0),((Fu=b.inputTemp)==null?void 0:Fu.type)==="select"?(p.openBlock(),p.createBlock(c,{key:3,value:e.searchData[b.input.key],"onUpdate:value":Ce=>e.searchData[b.input.key]=Ce,"show-checkmark":!1,disabled:(Br=b.inputTemp)==null?void 0:Br.disabled,placeholder:typeof((zu=b.inputTemp)==null?void 0:zu.placeholder)=="string"?(yn=b.inputTemp)==null?void 0:yn.placeholder:((zo=b.inputTemp)==null?void 0:zo.placeholder)&&((mi=b.inputTemp)==null?void 0:mi.placeholder()),options:b.inputTemp.options,multiple:b.inputTemp.multiple,"fallback-option":e.selectFallback(b.inputTemp),"on-update:value":Ce=>{var TC,NC,xC;let Be=Ce,Vr=Ce;if(((TC=b.inputTemp)==null?void 0:TC.type)==="select"&&((NC=b.inputTemp)!=null&&NC.multiple)){let Go=Ce.filter(LW=>LW!=="");Go.length===0?(Be=[""],Vr=[]):(Be=Go,Vr=Go)}(xC=b.inputTemp)!=null&&xC.updateValue?b.inputTemp.updateValue(Vr,JSON.parse(JSON.stringify(e.searchData)),Go=>e.setValues(Go)):e.searchData[b.input.key]=Be},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"])):p.createCommentVNode("",!0)]}),_:2},1024)):p.createCommentVNode("",!0)]),_:2},1032,["span"]))),128))]),_:3},8,["cols","collapsed"]),e.more?(p.openBlock(),p.createElementBlock("div",xH,[p.createVNode(x,{trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(C,{onClick:e.showMore},{icon:p.withCtx(()=>[e.collapsed?(p.openBlock(),p.createBlock(S,{key:0},{default:p.withCtx(()=>[p.createVNode(w)]),_:1})):(p.openBlock(),p.createBlock(S,{key:1},{default:p.withCtx(()=>[p.createVNode(T)]),_:1}))]),_:1},8,["onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.more")),1)]),_:1})])):p.createCommentVNode("",!0)])}const AH=Z(CH,[["render",DH]]),kH=p.defineComponent({name:"OcSearchBarPop",props:{value:{required:!0,type:Boolean,default:!1}},emits:["on-update:value"],setup(e,{emit:t}){return{close:()=>{t("on-update:value",!1)}}}}),MH={class:"oc-search-bar-pop"},EH={class:"oc-search-bar-pop-plan"},PH={class:"oc-search-bar-pop-action"},IH={class:"oc-search-bar-pop-content"};function LH(e,t,r,n,a,i){return p.withDirectives((p.openBlock(),p.createElementBlock("div",MH,[p.createElementVNode("div",{class:"oc-search-bar-pop-mask",onClick:t[0]||(t[0]=(...o)=>e.close&&e.close(...o))}),p.createElementVNode("div",EH,[p.createElementVNode("div",PH,[p.renderSlot(e.$slots,"action")]),p.createElementVNode("div",IH,[p.renderSlot(e.$slots,"default")])])],512)),[[p.vShow,e.value]])}const OH=Z(kH,[["render",LH]]),RH=p.defineComponent({name:"OcSearchBar",components:{NFlex:O.NFlex,NIcon:O.NIcon,NTooltip:O.NTooltip,NButton:O.NButton,NPopover:O.NPopover,IconArrowDown:Jo,IconReset:tc,IconSearch:qo,IconFilter:jo,OcSearchBarItem:AH,OcSearchBarPop:OH},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=xt.useRoute(),i=xt.useRouter(),o=p.ref(),s=p.ref({}),l=p.ref(!1),u=p.ref(!!r.header),c=p.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,_=Fr(g),w=Fr(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))),v(e.data),g)i.replace(a.path);else if(e.cache){const y=a.path,_=Fr(m),w=Fr(y);i.replace(`${y}?cursor=${_}&routerId=${w}`)}},v=m=>{o.value&&o.value.dataFactory(m)};return n({setValues:h,setData:v}),p.onMounted(()=>{setTimeout(()=>{let m=e.value;if(e.cache){const{cursor:g,routerId:y}=a.query;if(g&&y){const _=a.path,w=Si(y),S=Si(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:K,itemData:s,doSearch:f,clearAll:d}}}),BH={key:1,class:"oc-search-bar-popover"},VH={key:0},$H={class:"oc-search-bar-center"};function FH(e,t,r,n,a,i){const o=p.resolveComponent("OcSearchBarItem"),s=p.resolveComponent("IconArrowDown"),l=p.resolveComponent("NIcon"),u=p.resolveComponent("NButton"),c=p.resolveComponent("IconReset"),f=p.resolveComponent("IconSearch"),d=p.resolveComponent("NFlex"),h=p.resolveComponent("OcSearchBarPop"),v=p.resolveComponent("IconFilter"),m=p.resolveComponent("NTooltip");return p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(["oc-search-bar",{small:!e.isSlotHeader&&(e.small||e.commonStore.isMobile)}]),onKeyup:t[6]||(t[6]=p.withKeys(g=>e.doSearch(!1),["enter"]))},[(e.small||e.commonStore.isMobile)&&e.isSlotHeader?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(["oc-search-bar-title",e.commonStore.isMobile?"tiny":""])},[p.renderSlot(e.$slots,"header")],2)):p.createCommentVNode("",!0),e.small||e.commonStore.isMobile?(p.openBlock(),p.createElementBlock("div",BH,[p.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:p.withCtx(()=>[p.createVNode(d,{size:15,justify:"space-between",wrap:!1},{default:p.withCtx(()=>[p.createVNode(u,{onClick:t[0]||(t[0]=g=>e.drawer=!1)},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(s)]),_:1})]),_:1}),e.resetButton?(p.openBlock(),p.createBlock(u,{key:0,loading:e.loading,onClick:e.clearAll},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(c)]),_:1})]),_:1},8,["loading","onClick"])):p.createCommentVNode("",!0),e.data&&Object.keys(e.data).length>0?(p.openBlock(),p.createBlock(u,{key:1,loading:e.loading,class:"button-primary",onClick:t[1]||(t[1]=()=>{e.drawer=!1,e.doSearch(!1)})},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(f)]),_:1})]),_:1},8,["loading"])):p.createCommentVNode("",!0)]),_:1}),e.isSlotAction?(p.openBlock(),p.createElementBlock("br",VH)):p.createCommentVNode("",!0),e.isSlotAction?(p.openBlock(),p.createBlock(d,{key:1,size:15,justify:"space-between",class:"oc-search-action"},{default:p.withCtx(()=>[p.renderSlot(e.$slots,"action")]),_:3})):p.createCommentVNode("",!0)]),default:p.withCtx(()=>[p.createVNode(o,{ref:"itemRef",loading:e.loading,small:""},null,8,["loading"])]),_:3},8,["value"]),p.createVNode(u,{onClick:t[4]||(t[4]=g=>e.drawer=!0)},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(v)]),_:1})]),_:1})])):(p.openBlock(),p.createElementBlock(p.Fragment,{key:2},[p.createElementVNode("div",$H,[p.createVNode(o,{ref:"itemRef",loading:e.loading,cols:e.cols},p.createSlots({_:2},[e.isSlotHeader?{name:"header",fn:p.withCtx(()=>[p.renderSlot(e.$slots,"header")]),key:"0"}:void 0]),1032,["loading","cols"]),p.createVNode(d,{size:5,wrap:!1,style:{"padding-left":"15px"}},{default:p.withCtx(()=>[e.data&&Object.keys(e.data).length>0?(p.openBlock(),p.createBlock(m,{key:0,trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(u,{loading:e.loading,class:"button-primary",onClick:t[5]||(t[5]=g=>e.doSearch(!1))},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(f)]),_:1})]),_:1},8,["loading"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.search")),1)]),_:1})):p.createCommentVNode("",!0),e.resetButton?(p.openBlock(),p.createBlock(m,{key:1,trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(u,{loading:e.loading,onClick:e.clearAll},{icon:p.withCtx(()=>[p.createVNode(l,null,{default:p.withCtx(()=>[p.createVNode(c)]),_:1})]),_:1},8,["loading","onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.reset")),1)]),_:1})):p.createCommentVNode("",!0)]),_:1})]),p.createVNode(d,{size:0,wrap:!1,class:"oc-search-action"},{default:p.withCtx(()=>[p.renderSlot(e.$slots,"action")]),_:3})],64))],34)}const jp=Z(RH,[["render",FH]]),zH=p.defineComponent({name:"OcSkeleton",components:{NGrid:O.NGrid,NGi:O.NGi,NSkeleton:O.NSkeleton},props:{cols:{type:Number,default:6},num:{type:Array,default:()=>[[12,1]]}},setup(){return{}}}),GH={class:"com-skeleton"};function HH(e,t,r,n,a,i){const o=p.resolveComponent("NSkeleton"),s=p.resolveComponent("NGi"),l=p.resolveComponent("NGrid");return p.openBlock(),p.createElementBlock("div",GH,[p.createVNode(l,{"x-gap":"15","y-gap":"15",cols:e.cols,"item-responsive":"",responsive:"screen"},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(e.num,(u,c)=>(p.openBlock(),p.createElementBlock(p.Fragment,{key:`skeleton_${c}`},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(e.num[c][0],(f,d)=>(p.openBlock(),p.createBlock(s,{key:`skeleton_${c}_${d}`,span:`${e.cols/2} m:2 l:${e.num[c][1]}`},{default:p.withCtx(()=>[p.createVNode(o)]),_:2},1032,["span"]))),128))],64))),128))]),_:1},8,["cols"])])}const hC=Z(zH,[["render",HH]]),WH=p.defineComponent({name:"OcTable",components:{NDataTable:O.NDataTable,NTooltip:O.NTooltip,NPopover:O.NPopover,NButton:O.NButton,NIcon:O.NIcon,NFlex:O.NFlex,NPopconfirm:O.NPopconfirm,IconFilter:jo,IconNavigation:Ko,IconEye:Xo,IconEyeOff:Zu,IconPin:Ju,IconPinOff:Qu,IconAdd:Wo,IconMailInboxAdd:_i,IconCloudArrowDown:Zo,Draggable:Kp,OcSearchBar:jp,OcImporter:Wp},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}){const n=p.ref(),{t:a}=Ht.useI18n(),i=xt.useRoute(),o=xt.useRouter(),s=O.useNotification(),l=p.ref(!1),u=p.ref(!1),c=p.ref(!1),f=p.ref([]),d=p.ref([]),h=p.ref([]),v=p.ref({query:{page:1}}),m=p.ref({}),g=p.ref({}),y=p.ref(void 0),_=p.ref(void 0),w=i.path,S=R=>{l.value=!0,t("update:loading",!0),R&&(v.value.query={...v.value.query,...R});const B=bi(v.value);e.fetch&&e.fetch(B).then(V=>{const W=wi(V);v.value.query=W.query,h.value=W.records,n.value&&n.value.setValues(v.value),l.value=!1,t("on-update:value",wt(v.value)),t("update:loading",!1)}).catch(()=>{l.value=!1,t("update:loading",!1)})},T=R=>{v.value.query.page=R,Qo(),S()},C=R=>{v.value.query.pageSize=R,v.value.query.page=1,Qo(),S()},x=R=>{R?(v.value.query.columnKey=R.columnKey,v.value.query.order=R.order):(v.value.query.columnKey=null,v.value.query.order=null),S()},b=R=>{R.pin=!R.pin,R.pin?R.fixed="left":R.fixed=R.fixTemp??void 0,L()},N=R=>{R.show=!R.show,L()},A=()=>{const R=[];d.value.forEach(B=>{B.show&&R.push(B)}),f.value=R},D=R=>{if(v.value=R,e.cache){const B=Fr(w),V=Fr(v.value);o.replace(`${w}?cursor=${V}&routerId=${B}`)}S()},k=()=>{u.value=!0,zp({...e.exporter,jobParams:JSON.stringify(v.value)}).then(()=>{s.success({content:()=>a("Notice.success"),duration:3e3}),setTimeout(()=>{u.value=!1},2e3)}).catch(()=>{u.value=!1})},P=(R=!1)=>{let B=wt(e.columns);const V=[],W=[],q={},Q={};let ue={};if(e.filters&&(B=e.filters.map(he=>{const ce=B.find(Me=>Me.key===he.key);return ce?(ce.show=he.show,ce.hide=he.hide,ce.pin=he.pin,ce.fixed=he.fixed,ce):he})),B.forEach(async z=>{var he,ce,Me,He,Ie,Ae,re;if(z.search){if(z.search.title||(z.search.title=z.title),z.search.defaultValue!==void 0)q[z.search.key||z.key]=z.search.defaultValue;else{if(z.search.type==="input"&&(q[z.search.key||z.key]=""),z.search.type==="number"&&(q[z.search.key||z.key]=null),z.search.type==="dropdown"&&(q[z.search.key||z.key]=null),(z.search.type==="cascader"||z.search.type==="treeSelect")&&((he=z.search)!=null&&he.multiple?q[z.search.key||z.key]=[]:q[z.search.key||z.key]=null),z.search.type==="datePicker"){let ee=0;(z.search.dateType.indexOf("date")>-1||z.search.dateType.indexOf("quarter")>-1||z.search.dateType.indexOf("week")>-1)&&(ee=ha()),z.search.dateType.indexOf("month")>-1&&(ee=ha(void 0,void 0,1)),z.search.dateType.indexOf("year")>-1&&(ee=ha(void 0,1,1)),z.search.dateType.indexOf("range")>-1&&(ee=[ee,ee]),q[((ce=z.search)==null?void 0:ce.key)||z.key]=ee}z.search.type==="select"&&(typeof z.search.options=="function"&&await z.search.options().then(ee=>{z.search.options=ee}),(Me=z.search)!=null&&Me.multiple?z.search.fallbackOption?q[((He=z.search)==null?void 0:He.key)||z.key]=[""]:q[((Ie=z.search)==null?void 0:Ie.key)||z.key]=[]:q[((Ae=z.search)==null?void 0:Ae.key)||z.key]=null)}Q[((re=z.search)==null?void 0:re.key)||z.key]=wt(z.search)}if(delete z.search,z.render&&typeof z.render=="string"){const ee=z.render,ht=new Function("rowData","rowIndex","h",ee);z.render=(Le,Nt)=>ht(Le,Nt,p.h)}V.push(wt(z)),m.value=wt(q),W.push({...z,show:(z==null?void 0:z.show)??!0,pin:!!z.fixed,fixTemp:z.fixed})}),R&&e.cache){const{cursor:z,routerId:he}=i.query;if(z&&he){const ce=Si(he),Me=Si(z);ce===w&&(ue=Me)}}if(e.actions&&e.actions.length>0){const z=wt(e.actions),he={title:()=>a("Common.action"),key:"action",align:"center",fixed:"right",width:e.actionsWidth,resizable:!0,checked:!0,show:!0,hide:!0,render(ce,Me){return Gr(z,ce,Me)}};V.push(he),W.push(he)}f.value=V,g.value=Q,v.value={...v.value,...q,...ue},d.value=W,n.value&&n.value.setValues(JSON.parse(JSON.stringify(v.value))),n.value&&n.value.setData(JSON.parse(JSON.stringify(g.value)))},E=R=>typeof R=="number"?`${R}px`:R,I=()=>{if(e.height){const R=E(e.height);y.value=R,_.value=R;return}e.minHeight&&(y.value=E(e.minHeight)),e.maxHeight&&(_.value=E(e.maxHeight))},L=()=>{const R=f.value.map(B=>({key:B.key,show:B.show,hide:B.hide,fixed:B.fixed}));t("on-update:filter",R)};return r({init:S}),p.onMounted(()=>{P(!0),I()}),p.watch(()=>d.value,()=>{A()},{deep:!0}),p.watch(()=>e.columns,()=>{e.realtime&&P()},{deep:!0}),p.watch(()=>e.actions,()=>{e.realtime&&P()},{deep:!0}),{loading:l,minH:y,maxH:_,searchRef:n,exportLoading:u,tableColumns:f,tableData:h,tableQuery:v,searchDefaultValue:m,searchData:g,baseColumns:d,showImporter:c,pageChange:T,pageSizeChange:C,pageSorter:x,pinChange:b,showChange:N,submit:D,exportData:k,getDefaultDate:ha,handleColumnChange:L}}}),UH={class:"com-card"};function YH(e,t,r,n,a,i){const o=p.resolveComponent("IconAdd"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NTooltip"),c=p.resolveComponent("IconMailInboxAdd"),f=p.resolveComponent("IconCloudArrowDown"),d=p.resolveComponent("NPopconfirm"),h=p.resolveComponent("IconFilter"),v=p.resolveComponent("IconNavigation"),m=p.resolveComponent("IconPin"),g=p.resolveComponent("IconPinOff"),y=p.resolveComponent("IconEye"),_=p.resolveComponent("IconEyeOff"),w=p.resolveComponent("Draggable"),S=p.resolveComponent("NPopover"),T=p.resolveComponent("OcSearchBar"),C=p.resolveComponent("NDataTable"),x=p.resolveComponent("OcImporter");return p.openBlock(),p.createElementBlock(p.Fragment,null,[p.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},{action:p.withCtx(()=>[e.addFn?(p.openBlock(),p.createBlock(u,{key:0,trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{onClick:e.addFn},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(o)]),_:1})]),_:1},8,["onClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.add")),1)]),_:1})):p.createCommentVNode("",!0),e.importer?(p.openBlock(),p.createBlock(u,{key:1,trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(l,{onClick:t[0]||(t[0]=b=>e.showImporter=!0)},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(c)]),_:1})]),_:1})]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.importer.title")),1)]),_:1})):p.createCommentVNode("",!0),e.exporter?(p.openBlock(),p.createBlock(u,{key:2,trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(d,{"positive-text":e.$t("Common.export"),placement:"bottom-end",onPositiveClick:e.exportData},{trigger:p.withCtx(()=>[p.createVNode(l,{loading:e.exportLoading},{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(f)]),_:1})]),_:1},8,["loading"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.export"))+"? ",1)]),_:1},8,["positive-text","onPositiveClick"])]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.export")),1)]),_:1})):p.createCommentVNode("",!0),e.filterButton?(p.openBlock(),p.createBlock(u,{key:3,trigger:"hover"},{trigger:p.withCtx(()=>[p.createVNode(S,{placement:"bottom-end",trigger:"click","show-arrow":!1},{trigger:p.withCtx(()=>[p.createVNode(l,null,{icon:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(h)]),_:1})]),_:1})]),default:p.withCtx(()=>[p.createVNode(w,p.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:p.withCtx(({element:b})=>[b.hide?p.createCommentVNode("",!0):(p.openBlock(),p.createElementBlock("div",{key:b.key,class:"oc-table-sort"},[p.createVNode(l,{quaternary:"",class:"oc-drag-handle"},{icon:p.withCtx(()=>[p.createVNode(s,{size:"24"},{default:p.withCtx(()=>[p.createVNode(v)]),_:1})]),_:1}),p.createVNode(l,{quaternary:"",class:"oc-table-sort-title"},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(typeof b.title=="string"?b.title:b.title&&b.title()),1)]),_:2},1024),e.pinButton?(p.openBlock(),p.createBlock(l,{key:0,type:"tertiary",onClick:N=>e.pinChange(b),quaternary:""},{icon:p.withCtx(()=>[p.createVNode(s,{size:"24"},{default:p.withCtx(()=>[b.pin?(p.openBlock(),p.createBlock(m,{key:0})):(p.openBlock(),p.createBlock(g,{key:1}))]),_:2},1024)]),_:2},1032,["onClick"])):p.createCommentVNode("",!0),p.createVNode(l,{type:"tertiary",onClick:N=>e.showChange(b),quaternary:""},{icon:p.withCtx(()=>[p.createVNode(s,{size:"24"},{default:p.withCtx(()=>[b.show?(p.openBlock(),p.createBlock(y,{key:0})):(p.openBlock(),p.createBlock(_,{key:1}))]),_:2},1024)]),_:2},1032,["onClick"])]))]),_:1},16,["modelValue","onEnd"])]),_:1})]),default:p.withCtx(()=>[p.createTextVNode(" "+p.toDisplayString(e.$t("Common.filter")),1)]),_:1})):p.createCommentVNode("",!0),p.renderSlot(e.$slots,"action")]),_:3},8,["value","defaultValue","data","loading","autoSubmit","resetButton","onOnUpdate:value"]),p.createElementVNode("div",UH,[p.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?(p.openBlock(),p.createBlock(x,{key:0,show:e.showImporter,"onUpdate:show":t[2]||(t[2]=b=>e.showImporter=b),data:e.importer},null,8,["show","data"])):p.createCommentVNode("",!0)],64)}const dC=Z(WH,[["render",YH]]),qH=p.defineComponent({name:"OcWorkflowAdd",components:{IconAdd:Wo,NButton:O.NButton,NIcon:O.NIcon,NPopover:O.NPopover},emits:["update:add"],setup(e,{emit:t}){const r=p.ref(!1);return{showPopover:r,submit:a=>{r.value=!1,t("update:add",a)}}}});function jH(e,t,r,n,a,i){const o=p.resolveComponent("IconAdd"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NFlex"),c=p.resolveComponent("NPopover");return p.openBlock(),p.createBlock(c,{trigger:"manual",show:e.showPopover},{trigger:p.withCtx(()=>[p.createVNode(l,{type:"primary",onClick:t[0]||(t[0]=f=>e.showPopover=!0)},{default:p.withCtx(()=>[p.createVNode(s,{size:"18"},{default:p.withCtx(()=>[p.createVNode(o)]),_:1})]),_:1})]),default:p.withCtx(()=>[p.createVNode(u,null,{default:p.withCtx(()=>[p.createVNode(l,{type:"primary",onClick:t[1]||(t[1]=f=>e.submit(2))},{default:p.withCtx(()=>[p.createTextVNode("节点")]),_:1}),p.createVNode(l,{type:"primary",onClick:t[2]||(t[2]=f=>e.submit(1))},{default:p.withCtx(()=>[p.createTextVNode("分支")]),_:1})]),_:1})]),_:1},8,["show"])}const pC=Z(qH,[["render",jH]]),XH=p.defineComponent({name:"OcWorkflowCard",components:{NFlex:O.NFlex,OcWorkflowAdd:pC,IconDismiss:$r},props:{data:{type:Object,default:()=>({})}},emits:["update:add","update:delete"],setup(e,{emit:t}){return{addOne:a=>{t("update:add",a)},doDelete:()=>{t("update:delete",!0)}}}}),ZH={class:"oc-workflow-node"},KH={class:"oc-workflow-node-ctx"},JH=p.createElementVNode("div",{class:"oc-workflow-node-desc"},"功能",-1),QH={class:"oc-workflow-node-more"};function eW(e,t,r,n,a,i){const o=p.resolveComponent("IconDismiss"),s=p.resolveComponent("NIcon"),l=p.resolveComponent("NButton"),u=p.resolveComponent("NFlex"),c=p.resolveComponent("OcWorkflowAdd");return p.openBlock(),p.createElementBlock("div",ZH,[p.createElementVNode("div",KH,[p.createVNode(u,{justify:"space-between",class:"oc-workflow-node-title"},{default:p.withCtx(()=>[p.createElementVNode("div",null,p.toDisplayString(e.data.title),1),e.data.type===1||e.data.type===2?(p.openBlock(),p.createBlock(l,{key:0,onClick:e.doDelete},{default:p.withCtx(()=>[p.createVNode(s,null,{default:p.withCtx(()=>[p.createVNode(o)]),_:1})]),_:1},8,["onClick"])):p.createCommentVNode("",!0)]),_:1}),JH]),p.createElementVNode("div",QH,[p.createVNode(c,{"onUpdate:add":t[0]||(t[0]=f=>{e.addOne(f)})})])])}const tW=Z(XH,[["render",eW]]),rW=p.defineComponent({name:"OcWorkflowNode",components:{NButton:O.NButton,OcWorkflowAdd:pC,OcWorkflowCard:tW},props:{data:{type:Array,default:()=>[]}},setup(e){function t(c){const f=String(Date.now());return{title:"IF",type:1,key:f,parentKey:String(c),children:[{title:"条件1",type:1,key:`${f}1`,parentKey:f,children:[]},{title:"条件2",type:1,key:`${f}2`,parentKey:f,children:[]}]}}function r(c){const f=String(Date.now());return{title:`功能${Math.floor(Math.random()*101)}`,type:2,key:f,parentKey:String(c),children:[]}}return{addStartOne:c=>{e.data.splice(1,0,c===1?t(""):r(""))},addNodeOne:(c,f)=>{if(c.parentKey)e.data.push(f===1?t(c.parentKey):r(c.parentKey));else{const d=e.data.indexOf(c);e.data.splice(d+1,0,f===1?t(""):r(""))}},addCondition:c=>{const f=String(Date.now());c.children.push({title:`条件${c.children.length+1}`,type:1,key:f,parentKey:c.key,children:[]})},addConditionBottom:(c,f)=>{if(c.parentKey)e.data.push(f===1?t(c.parentKey):r(c.parentKey));else{const d=e.data.indexOf(c);e.data.splice(d+1,0,f===1?t(""):r(""))}},addConditionSide:(c,f)=>{c.children.length===0?c.children.push(f===1?t(c.parentKey):r(c.parentKey)):c.children.unshift(f===1?t(c.parentKey):r(c.parentKey))},deleteNodeOne:c=>{e.data.splice(c,1)},deleteConditionSide:(c,f)=>{if(c.children.length===2){const d=e.data.indexOf(c);e.data.splice(d,1)}else c.children.splice(f,1)}}}}),nW={key:2},aW={class:"oc-workflow-node-branch-add"},iW={class:"oc-workflow-branch-ctx"},oW={class:"oc-workflow-node-branch-add-bottom"},sW={key:3,class:"oc-workflow-node-end"},lW=[p.createElementVNode("div",{class:"oc-workflow-node-title-end"},"流程结束",-1)];function uW(e,t,r,n,a,i){const o=p.resolveComponent("OcWorkflowCard"),s=p.resolveComponent("NButton"),l=p.resolveComponent("OcWorkflowNode"),u=p.resolveComponent("OcWorkflowAdd");return p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(e.data,(c,f)=>(p.openBlock(),p.createElementBlock(p.Fragment,{key:c.key},[c.type===0?(p.openBlock(),p.createBlock(o,{data:c,key:f,"onUpdate:add":e.addStartOne},null,8,["data","onUpdate:add"])):p.createCommentVNode("",!0),c.type===2?(p.openBlock(),p.createBlock(o,{data:c,key:f,class:"arrow","onUpdate:add":d=>{e.addNodeOne(c,d)},"onUpdate:delete":d=>e.deleteNodeOne(f)},null,8,["data","onUpdate:add","onUpdate:delete"])):p.createCommentVNode("",!0),c.type===1?(p.openBlock(),p.createElementBlock("div",nW,[(p.openBlock(),p.createElementBlock("div",{class:"oc-workflow-branch",key:f},[p.createElementVNode("div",aW,[p.createVNode(s,{type:"success",onClick:d=>e.addCondition(c)},{default:p.withCtx(()=>[p.createTextVNode("添加条件")]),_:2},1032,["onClick"])]),p.createElementVNode("div",iW,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(c.children,(d,h)=>(p.openBlock(),p.createElementBlock("div",{key:`children-${h}`},[p.createVNode(o,{data:d,"onUpdate:add":v=>{e.addConditionSide(d,v)},"onUpdate:delete":v=>e.deleteConditionSide(c,h)},null,8,["data","onUpdate:add","onUpdate:delete"]),p.createVNode(l,{data:d.children},null,8,["data"])]))),128))])])),p.createElementVNode("div",oW,[p.createVNode(u,{"onUpdate:add":d=>{e.addConditionBottom(c,d)}},null,8,["onUpdate:add"])])])):p.createCommentVNode("",!0),c.type===99?(p.openBlock(),p.createElementBlock("div",sW,lW)):p.createCommentVNode("",!0)],64))),128)}const cW=Z(rW,[["render",uW]]),fW=p.defineComponent({name:"OcWorkflow",components:{OcWorkflowNode:cW,NSlider:O.NSlider,NSelect:O.NSelect},props:{data:{type:Array,default:()=>[{title:"流程开始",type:0,key:"1",parentKey:"",children:[]},{title:"流程结束",type:99,key:"2",parentKey:"",children:[]}]}},setup(){const e=p.ref(1),t=p.ref(100),r=p.ref([{label:"50%",value:50},{label:"80%",value:80},{label:"100%",value:100},{label:"120%",value:120},{label:"150%",value:150}]);return{scaleShow:e,scaleFilter:t,scaleOption:r,scaleHandle:o=>{t.value=o,e.value=o/100},formatTooltip:o=>`${o}%`,renderSelectLabel:o=>p.h("div",{},{default:()=>`${o.value}%`})}}}),hW={class:"oc-workflow"},dW={class:"oc-workflow-tools"},pW={class:"oc-workflow-ctx"},vW={class:"oc-workflow-main"};function gW(e,t,r,n,a,i){const o=p.resolveComponent("NSelect"),s=p.resolveComponent("NSlider"),l=p.resolveComponent("OcWorkflowNode");return p.openBlock(),p.createElementBlock("div",hW,[p.createElementVNode("div",dW,[p.createVNode(o,{value:e.scaleFilter,"onUpdate:value":t[0]||(t[0]=u=>e.scaleFilter=u),options:e.scaleOption,"render-label":e.renderSelectLabel,"on-update:value":e.scaleHandle,style:{width:"100px"}},null,8,["value","options","render-label","on-update:value"]),p.createVNode(s,{value:e.scaleFilter,"onUpdate:value":t[1]||(t[1]=u=>e.scaleFilter=u),min:50,max:150,step:10,style:{width:"100px"},"on-update:value":e.scaleHandle,"format-tooltip":e.formatTooltip,class:"oc-workflow-slider"},null,8,["value","on-update:value","format-tooltip"])]),p.createElementVNode("div",pW,[p.createElementVNode("div",vW,[p.createElementVNode("div",{class:"oc-workflow-warp",style:p.normalizeStyle({transform:`scale(${e.scaleShow})`})},[p.createVNode(l,{data:e.data},null,8,["data"])],4)])])])}const vC=Z(fW,[["render",gW]]),gC=Object.freeze(Object.defineProperty({__proto__:null,IconAdd:Wo,IconAlert:Wu,IconArrowClockwise:fa,IconArrowDown:Jo,IconArrowSquareDown:qu,IconArrowUp:ec,IconCalendarArrowDown:yi,IconChevronLeft:Yu,IconClear:Uu,IconCloudArrowDown:Zo,IconDelete:Xu,IconDismiss:$r,IconDrafts:Ku,IconEye:Xo,IconEyeOff:Zu,IconFilter:jo,IconFullScreenMaximize:Qp,IconGridDots:ju,IconMailInboxAdd:_i,IconNavigation:Ko,IconPin:Ju,IconPinOff:Qu,IconReset:tc,IconSearch:qo,IconUser:rc,IconWeatherMoon:Uo,IconWeatherSunny:Yo,OcActionButton:Jp,OcAuth:cv,OcBack:fv,OcCircle:hv,OcEcharts:Jb,OcError:Qb,OcFooter:eS,OcForm:jS,OcHeader:KS,OcImporter:Wp,OcLogin:QS,OcLogo:eC,OcMain:nC,OcMy:aC,OcNumberRoll:Up,OcReport:iC,OcScan:fC,OcSearchBar:jp,OcSkeleton:hC,OcTable:dC,OcWorkflow:vC,commonStore:K,fnClearUser:Vu,fnDownload:zp,fnGetUser:Bu,fnRenderAction:Gr,fnSetLang:va,fnSetTheme:Ci,fnSetUser:Gp,fnUserLogout:Hp,i18n:zr,userStore:F},Symbol.toStringTag,{value:"Module"}));let Xp=3840,Zp=2160;const mC=p.reactive({scale:1});function mW(e,t){Xp=e,Zp=t}function yC(){let e=1;const t=window.innerWidth,r=window.innerHeight,n=Xp,a=Zp,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}mC.scale=e}function yW(){const e=cC(yC,200);return e(),window.addEventListener("resize",e),()=>{Xp=3840,Zp=2160,window.removeEventListener("resize",e)}}const _W=e=>!!(F.kind===-1||F.kind===99||F.iot_menu_authorization.includes(e)),wW=e=>F.platform_tdm?F.kind===-1||F.kind===99||e==="home"?!0:F.tdm_menu_authorization.includes(e):!1,bW=e=>F.platform_qms?F.kind===-1||F.kind===99||e==="home"?!0:F.qms_menu_authorization.includes(e):!1,SW=e=>F.platform_twin?(F.kind===-1||F.kind===99||e==="home",!0):!1,CW=e=>!!(F.kind===-1||F.kind===99||F.maintain_menu_authorization.includes(e)),TW=e=>!!(F.kind===-1||F.kind===99||F.order_menu_authorization.includes(e)),NW="2.0.113";let Fo="";const be=navigator.userAgent.toLocaleUpperCase(),xW=()=>{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(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(i.test(be)){const u=i.exec(be);return`Android ${u?u[0].split(" ")[1]:""}`}if(o.test(be)){const c=/OS [\d_]+/.exec(be);return`iPhone ${c?c[0].split(" ")[1].replace(/_/g,"."):""}`}if(s.test(be)){const c=/OS [\d_]+/.exec(be);return`iPad${c?c[0].split(" ")[1].replace(/_/g,"."):""}`}if(l.test(be)){const c=/ [\d_]+/.exec(be);return`MAC ${c?c[0].replace(/_/g,".").replace(/ /g,""):""}`}return"Other Platform"},DW=()=>{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(be)&&o.test(be))return"SogouIE";if(o.test(be))return"SogouFast";if(s.test(be))return"UC";if(l.test(be))return"Android";if(i.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 _C(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 AW(e,t,r,n=!1){e.addEventListener(t,r,n)}function kW(){if(!("XMLHttpRequest"in window))return;const e=XMLHttpRequest.prototype;_C(e,"open",t=>function(...r){this.xhr={method:r[0].toUpperCase(),url:r[1],startTime:Date.now(),type:"xhr"},t.apply(this,r)}),_C(e,"send",t=>function(...r){const{url:n}=this.xhr;this.ontimeout=function(){$u(3,n,"Network Timeout")},AW(this,"loadend",function(){try{const a=JSON.parse(this.response);(this.status===500||this.status===405)&&$u(3,n,`${r[0]}-${this.status}-${this.response}`)}catch{}}),t.apply(this,r)})}function MW(e,t){Fo=typeof t=="string"?t:Fo,!(!t||!Fo)&&(kW(),window.addEventListener("error",function(r){$u(1,window.location.href,r)}),window.addEventListener("unhandledrejection",function(r){r.preventDefault()}),e.config.errorHandler=r=>{$u(2,window.location.href,r)})}const $u=(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:DW(),platform:xW(),system:K.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:be}},a=Fr(n);if(window.navigator.sendBeacon)window.navigator.sendBeacon(Fo,a);else{const i=document.body;let o=new Image;o.src=Fo+"?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 EW(){const e=await bC();wC!==e&&zT(!0)}async function PW(){wC=await bC(),window.versionMonitor&&clearInterval(window.versionMonitor),window.versionMonitor=setInterval(()=>{EW()},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=nt("theme",!1),h=nt("lang",f);FT(o),SG(u),$T(c),va(h),Ci(d),zr.global.locale.value=h,l&&PW(),s&&MW(a,s)}}return{version:NW,install:n}}const CC=SC({components:Object.keys(gC).map(e=>gC[e])}),IW=CC.install;$.CUSTOM=ov,$.FILE=cc,$.GET=iv,$.IconAdd=Wo,$.IconAlert=Wu,$.IconArrowClockwise=fa,$.IconArrowDown=Jo,$.IconArrowSquareDown=qu,$.IconArrowUp=ec,$.IconCalendarArrowDown=yi,$.IconChevronLeft=Yu,$.IconClear=Uu,$.IconCloudArrowDown=Zo,$.IconDelete=Xu,$.IconDismiss=$r,$.IconDrafts=Ku,$.IconEye=Xo,$.IconEyeOff=Zu,$.IconFilter=jo,$.IconFullScreenMaximize=Qp,$.IconGridDots=ju,$.IconMailInboxAdd=_i,$.IconNavigation=Ko,$.IconPin=Ju,$.IconPinOff=Qu,$.IconReset=tc,$.IconSearch=qo,$.IconUser=rc,$.IconWeatherMoon=Uo,$.IconWeatherSunny=Yo,$.OcActionButton=Jp,$.OcAuth=cv,$.OcBack=fv,$.OcCircle=hv,$.OcEcharts=Jb,$.OcError=Qb,$.OcFooter=eS,$.OcForm=jS,$.OcHeader=KS,$.OcImporter=Wp,$.OcLogin=QS,$.OcLogo=eC,$.OcMain=nC,$.OcMy=aC,$.OcNumberRoll=Up,$.OcReport=iC,$.OcScan=fC,$.OcSearchBar=jp,$.OcSkeleton=hC,$.OcTable=dC,$.OcWorkflow=vC,$.POST=at,$.commonStore=K,$.create=SC,$.darkTheme=rC,$.default=CC,$.fnCancelFetch=av,$.fnCheckDashRole=SW,$.fnCheckIoTRole=_W,$.fnCheckMaintainRole=CW,$.fnCheckOrderRole=TW,$.fnCheckQMSRole=bW,$.fnCheckTDMRole=wW,$.fnClearUser=Vu,$.fnComputedScale=yC,$.fnDecodeCursor=Si,$.fnDelStorage=da,$.fnDeleteLoad=rv,$.fnDownload=zp,$.fnEncodeCursor=Fr,$.fnFormatTime=_r,$.fnFormatUnits=IT,$.fnFullScreen=PT,$.fnGetStorage=nt,$.fnGetUser=Bu,$.fnListenerScale=yW,$.fnPageModel2Naive=wi,$.fnPageNaive2Model=bi,$.fnRenderAction=Gr,$.fnScrollTop=Qo,$.fnSetLang=va,$.fnSetNormalWidthAndHeight=mW,$.fnSetStorage=dt,$.fnSetTheme=Ci,$.fnSetUser=Gp,$.fnThrottle=ET,$.fnUserLogout=Hp,$.getDefaultDate=ha,$.i18n=zr,$.install=IW,$.lightTheme=tC,$.scaleStore=mC,$.useDebounceFn=qp,$.useLocalStorage=fH,$.useQuery=hH,$.useThrottleFn=cH,$.userStore=F,Object.defineProperties($,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|